Device for machine learning about feedforward control over control object, training data generation program, and training data generation method

A machine learning-based prediction model generates training data to enhance feedforward control accuracy by predicting compensation values, addressing the challenge of updating inverse models in response to process fluctuations and disturbances.

JP2024124174AInactive Publication Date: 2024-09-12OMRON CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023032164
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-02
Publication Date
2024-09-12
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing feedforward control systems struggle to accurately update their inverse models in response to fluctuations in disturbances and changes in process characteristics, leading to inadequate suppression of disturbances in controlled objects.

Method used

A machine learning-based approach that utilizes a prediction model to predict feedforward compensation values by generating training data through a learning data generation unit, which includes a learning unit to approximate relationships between measured values and estimated values, and a feedforward compensation unit to generate compensation values using an inverse model of the mathematical model.

Benefits of technology

This approach improves the accuracy of feedforward control by adapting the prediction model in real-time to the characteristics of the controlled object, effectively suppressing disturbances and maintaining control accuracy despite changes in process conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024124174000001
    Figure 2024124174000001
Patent Text Reader

Abstract

To provide a device which improves the accuracy of feedforward control over a control object.SOLUTION: A learning data generation section 130 acquires a measurement value do, a manipulated variable r, and a controlled variable q, generates a first estimated value qwh of a primary controlled variable qw from the manipulated variable r by using a mathematical model 131 of a control element 210, generates a second estimated value dh of a variation amount d on the basis of the controlled variable q and the first estimated value qwh at a time obtained by pushing back a specific time Lh from a time at which the controlled variable q has been acquired, and outputs such training data Dt that the measurement value do corresponds to the second estimated value dh of the time of the measurement value do as a correct answer.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an apparatus for machine learning regarding feedforward control of a control object, a program for generating teacher data, and a method for generating teacher data. [Background technology]

[0002] Conventionally, there is known a control device that performs feedforward control on a control target. For example, Japanese Patent Laid-Open Publication No. 10-222207 (Patent Document 1) discloses a feedforward control device that performs control by a feedforward signal generator on a predetermined process that is subject to disturbance. The feedforward control device includes a parameter learner that learns parameters required for calculation in the feedforward signal generator from parameters calculated in the feedforward signal generator. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 10-222207 Summary of the Invention [Problem to be solved by the invention]

[0004] The configuration of the feedforward compensator included in the feedforward signal generator disclosed in Patent Document 1 is predetermined. In general, a configuration for calculating a feedforward compensation value of feedback control such as a feedforward compensator is designed as an inverse model (inverse system) of a process to be controlled. Since designing an inverse model of a process requires analysis of the process, it is difficult to update the structure of the inverse model in a short time in response to fluctuations in disturbances and changes in process characteristics. Therefore, according to the feedforward control device disclosed in Patent Document 1, it may be difficult to suppress the influence of disturbances on the control of the controlled object depending on the degree of fluctuations in disturbances or the degree of changes in process characteristics.

[0005] The present disclosure has been made to solve the above-mentioned problems, and has an object to improve the accuracy of feedforward control of a control target. [Means for solving the problem]

[0006] An apparatus according to an aspect of the present disclosure is an apparatus for machine learning for a prediction model that predicts a specific value required for generating a feedforward compensation value of a feedback manipulated variable to a control target that is subject to a disturbance. The feedback manipulated variable is determined by feedback control of a control device of the control target so that the controlled variable approaches a target value based on an error between a target value and a controlled variable of the control target. A value obtained by subtracting the feedforward compensation value from the feedback manipulated variable is output from the control device to the control target as a manipulated variable. The control target is expressed by a control element expressed as a mathematical model that receives the manipulated variable, a disturbance element that receives a disturbance, and a dead time element. The control element outputs a primary controlled variable in response to the manipulated variable. The disturbance element outputs a fluctuation amount in response to the disturbance. The dead time element delays the output of the sum of the primary controlled variable and the fluctuation amount to the outside of the control target. The prediction model predicts the fluctuation amount as a specific value from a measured value of the disturbance. The apparatus includes a learning data generating unit. The learning data generation unit acquires the measurement values, the operation variables, and the control variables, generates a first estimate of the primary control variable from the operation variables using a mathematical model of the control element, generates a second estimate of the fluctuation variable based on the control variable and the first estimate at a time that is a specific time back from the time when the control variable was acquired, and outputs teacher data in which the second estimate at the time when the measurement values ​​were acquired corresponds to the measurement values ​​as the correct answer.

[0007] According to this disclosure, since appropriate correct answers are associated with measurement values ​​in the training data, the accuracy of feedforward control of the control object can be improved by performing machine learning on a predictive model using the training data.

[0008] In the above disclosure, the device further includes a learning unit that performs machine learning on the prediction model using teacher data. The learning unit approximates the relationship between the measurement value and the second estimated value expressed by the prediction model as a function with the second estimated value as a response variable and the measurement value as an explanatory variable.

[0009] According to this disclosure, a predictive model can be adapted in real time to the measured values ​​and the characteristics of the controlled object in parallel with the feedforward control.

[0010] In the above disclosure, the apparatus further includes a feedforward compensation unit that generates a feedforward compensation value from the amount of variation predicted by the prediction model, using an inverse model of the mathematical model.

[0011] According to this disclosure, it is possible to make the control amount output from the controlled object after a specific time has elapsed approach a normal value corresponding to the feedback manipulated variable at a time that is a specific time prior to the time of the control amount.

[0012] A program for generating teacher data according to another aspect of the present disclosure is a program for machine learning for a prediction model that predicts a specific value required for generating a feedforward compensation value of a feedback manipulated variable to a control target that is subjected to a disturbance. The feedback manipulated variable is determined by feedback control of a control device of the control target so that the controlled variable approaches the target value based on an error between a target value and a controlled variable of the control target. A value obtained by subtracting the feedforward compensation value from the feedback manipulated variable is output from the control device to the control target as a manipulated variable. The control target is expressed by a control element expressed as a mathematical model that receives the manipulated variable, a disturbance element that receives a disturbance, and a dead time element. The control element outputs a primary controlled variable in response to the manipulated variable. The disturbance element outputs a fluctuation amount in response to the disturbance. The dead time element delays the output of the sum of the primary controlled variable and the fluctuation amount to the outside of the control target. The prediction model predicts the fluctuation amount as a specific value from a measured value of the disturbance. When executed by a processor, the program acquires measurement values, manipulated variables, and controlled variables, generates a first estimate of a primary controlled variable from the manipulated variable using a mathematical model of the control element, generates a second estimate of a fluctuation variable based on the controlled variable and the first estimate at a time that is a specific time back from the time when the controlled variable was acquired, and outputs training data that corresponds to the measurement value with the second estimate at the time when the measurement value was acquired as the correct answer.

[0013] According to this disclosure, since an appropriate correct answer is associated with a measurement value in the teacher data, the teacher data is used to perform machine learning on a prediction model, thereby improving the accuracy of feedforward control of a control target. Note that the invention according to the present disclosure can also be realized as a non-transitory computer-readable medium that stores the above program.

[0014] A method for generating teacher data according to another aspect of the present disclosure is a method for machine learning for a prediction model that predicts a specific value required for generating a feedforward compensation value of a feedback manipulated variable to a control target that is subjected to a disturbance. The feedback manipulated variable is determined by feedback control of a control device of the control target so that the controlled variable approaches a target value based on an error between a target value and a controlled variable of the control target. A value obtained by subtracting the feedforward compensation value from the feedback manipulated variable is output from the control device to the control target as a manipulated variable. The control target is expressed by a control element expressed as a mathematical model that receives the manipulated variable, a disturbance element that receives a disturbance, and a dead time element. The control element outputs a primary controlled variable in response to the manipulated variable. The disturbance element outputs a fluctuation amount in response to the disturbance. The dead time element delays the output of the sum of the primary controlled variable and the fluctuation amount to the outside of the control target. The prediction model predicts the fluctuation amount as a specific value from a measured value of the disturbance. The method includes acquiring a measurement value, an operating variable, and a control variable, generating a first estimate of a primary control variable from the operating variable using a mathematical model of the control element, generating a second estimate of a fluctuation variable based on the control variable and the first estimate at the time when the control variable is acquired, and outputting teacher data in which the measurement value is associated with the second estimate at the time when the measurement value is acquired as a correct answer.

[0015] According to this disclosure, since appropriate correct answers are associated with measurement values ​​in the training data, the accuracy of feedforward control of the control object can be improved by performing machine learning on a predictive model using the training data. Effect of the Invention

[0016] According to the device, program, and method disclosed herein, it is possible to improve the accuracy of feedforward control of a control target. [Brief description of the drawings]

[0017] [Figure 1] 2 is a block diagram showing a functional configuration of a control device according to the first embodiment. FIG. [Diagram 2] 13 is a diagram showing an example of a distribution of a plurality of training data, and an example of a prediction model as a regression surface. FIG. [Diagram 3] 2 is a flowchart showing the flow of processing performed by each of a feedback control system, a feedforward control system, a learning data generating unit, and a learning unit in FIG. 1. FIG. [Figure 4] 4 is a flowchart showing a specific process flow of the learning data generation process of FIG. 3. [Diagram 5] 5 is a diagram for explaining the correspondence between the times of the measurement values, the manipulated variables, the controlled variables, and the estimated primary controlled variables in FIG. 4 and the times of the estimated secondary controlled variables that are set back from the times of the controlled variables by a dead time. [Figure 6] FIG. 2 is a block diagram showing a functional configuration of a control device according to a first modified example of the first embodiment. [Figure 7] FIG. 11 is a block diagram showing a functional configuration of a control system according to a second embodiment. [Figure 8] FIG. 11 is a schematic diagram showing an example of a network configuration of a control system according to a third embodiment. [Figure 9] 9 is a block diagram showing an example of a hardware configuration of the control device shown in FIG. 8. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] Hereinafter, the embodiments will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are designated by the same reference characters and, in principle, the description thereof will not be repeated.

[0019] [Embodiment 1] <Application Examples> Fig. 1 is a block diagram showing a functional configuration of a control device 100 according to embodiment 1. As shown in Fig. 1, the control device 100 includes a feedback control unit 110, a feedforward compensation unit 120, a learning data generation unit 130, a storage unit 140, a subtractor 150, a subtractor 160, and a learning unit 170.

[0020] The control device 100 outputs a value obtained by subtracting a feedforward compensation value rf from a feedback control amount rb to the control object 200 as a control amount r to the control object 200 so that a control amount q, which is an output value of the control object 200 subjected to a disturbance ds, approaches a target value qr. The storage unit 140 stores a prediction model Mp and teacher data Dt. The control device 100 and the control object 200 may be connected via a network (for example, the Internet or a cloud system) and may be located remotely from each other. A deep binary tree or a support vector machine may be mentioned as a machine learning algorithm for constructing the prediction model Mp.

[0021] The disturbance ds is an amount that disturbs the state of a control system including the control device 100 and the controlled object 200. The disturbance ds includes a plurality of disturbance elements, such as the amount of light, voltage, current, and temperature that are accidentally or suddenly input to the controlled object. The measured value of the disturbance ds is expressed as do.

[0022] The transmission of information (signals) in the controlled object 200 is represented by a control element 210, a disturbance element 220, a dead time element 230, and an adder 240. The control element 210 receives an operation amount r and outputs a primary controlled amount qw to the adder 240. The disturbance element 220 receives a disturbance ds and outputs a fluctuation amount d to the adder 240. The adder 240 adds the fluctuation amount d to the primary controlled amount qw and outputs a secondary controlled amount qo to the dead time element 230. The dead time element 230 delays the output of the secondary controlled amount qo to the outside of the controlled object 200. Specifically, the dead time element 230 outputs the secondary controlled amount qo as a controlled amount q to the outside of the controlled object 200 after a dead time L has elapsed since receiving the secondary controlled amount qo.

[0023] Hereinafter, a configuration including feedback control section 110 and subtractor 150 will also be referred to as a feedback control system, and a configuration including feedforward compensation section 120 and subtractor 160 will also be referred to as a feedforward control system.

[0024] The subtractor 150 outputs an error eq (=qr−q) between the target value qr and the controlled variable q to the feedback control unit 110. The feedback control unit 110 determines a feedback manipulated variable rb based on the error eq and outputs it to the subtractor 160.

[0025] The learning data generating unit 130 generates teacher data Dt used in machine learning for the prediction model Mp. The learning data generating unit 130 acquires a measurement value do, an operation amount r, and a control amount q at each of a plurality of timings. The learning data generating unit 130 estimates a fluctuation amount d as an estimated fluctuation amount dh from the operation amount r and the control amount q. The learning data generating unit 130 outputs a combination of the measurement value do (explanatory variable) and the estimated fluctuation amount dh (objective variable) to the storage unit 140 as teacher data Dt. The learning data generating unit 130 may directly output the teacher data Dt to the learning unit 170.

[0026] The variation d corresponding to the measurement value do at time t1 is added to the primary control amount qw at time t1 to become the secondary control amount qo. However, the timing at which the secondary control amount qo is output from the controlled object 200 as the control amount q is time t2 (=t1+L) after the lapse of the dead time L from time t1. Therefore, the learning data generating unit 130 associates the measurement value do at time t1 with the control amount q at time t2, not with the control amount q at time t1. As a result, in the teacher data Dt output from the learning data generating unit 130, the estimated variation amount dh of the variation amount d at the same time as the measurement value do is measured is regarded as the correct answer for the measurement value do. That is, in the teacher data Dt generated by the learning data generating unit 130, the correspondence relationship between the explanatory variable and the objective variable is correctly set. According to the control device 100, machine learning can be performed on the prediction model Mp using the teacher data Dt having the appropriate correspondence relationship, so that the prediction accuracy of the prediction model Mp can be improved. As a result, the accuracy of the feedforward control of the control target 200, which is performed using the trained prediction model Mp, can be improved.

[0027] The information transmission in the learning data generation unit 130 is represented by a mathematical model 131, a time converter 132, a subtractor 133, and an output generator 134. The mathematical model 131 is estimated as a correspondence relationship between the manipulated variable r and the primary controlled variable qw, and is represented as a function with the manipulated variable r as an argument. The mathematical model 131 is also represented as Gwh(r) below.

[0028] The mathematical model 131 receives the manipulated variable r and outputs an estimated primary controlled variable qwh (first estimated value) to the subtractor 133. The estimated primary controlled variable qwh is an estimated value corresponding to the primary controlled variable qw. The time converter 132 returns the measurement time t10 of the controlled variable q by an estimated dead time Lh (specific time) and outputs an estimated secondary controlled variable qoh to the subtractor 133. The estimated dead time Lh is an estimated value of the dead time L. The estimated secondary controlled variable qoh is an estimated value of the secondary controlled variable qo. The mathematical model 131 and the estimated dead time Lh can be determined in physical modeling or system identification based on general design information in feedback control of the controlled object 200. For example, the feedback control unit 110 in an open loop state may apply a step signal to the controlled object 200, and the gain, time constant, and dead time may be calculated from response data of the controlled variable. From these calculation results, the PID (Proportional-Integral-Differential) parameters of the feedback control can be determined by the Ziegler Nichols method or the CHR (Chien-Hrones-Reswick) method.

[0029] The value obtained by subtracting the primary control amount qw acquired at time t11 from the secondary control amount qo acquired at time t11 is the fluctuation amount d at time t11. The primary control amount qw is the control amount q at time t12, which is a time delay L from time t11. The control amount q acquired at time t12 is set as the estimated secondary control amount qoh at time t11, which is returned from time t12 by the estimated time delay Lh by the time converter 132. The value obtained by subtracting the estimated primary control amount qwh at time t11 from the estimated secondary control amount qoh at time t11 is the estimated fluctuation amount dh (second estimated value), which is an estimate of the fluctuation amount d at time t11.

[0030] The subtractor 133 subtracts the estimated primary control amount qwh at the same time as the estimated secondary control amount qoh from the estimated secondary control amount qoh, and outputs the estimated fluctuation amount dh to the output generator 134. The output generator 134 outputs a combination of the measurement value do and the estimated fluctuation amount dh at the same time as the measurement value do to the storage unit 140 as teacher data Dt.

[0031] The learning unit 170 uses a plurality of teacher data Dt to approximate the relationship between the measured value do and the estimated variation amount dh as a function (regression curve or regression surface) with the estimated variation amount dh as the objective variable and the measured value do as the explanatory variable. The prediction model Mp includes this function. When machine learning (initial learning or additional learning) for the prediction model Mp is completed and the characteristics of the control object 200 have changed, the learning unit 170 resumes machine learning (additional learning) for the prediction model Mp. The characteristics of the control object 200 include, for example, the correspondence between the measured value do and the manipulated variable r and the controlled variable q.

[0032] 2 is a diagram showing an example of the distribution of multiple teaching data Dt and an example of a prediction model Mp as a regression surface. In FIG. 2, a case is shown in which the measurement value do includes multiple elements (dimensions) do1 and do2, and Gwh(r)=1.23×r.

[0033] 1 again, the feedforward compensation unit 120 obtains an estimated fluctuation amount dh from the measurement value do using the prediction model Mp. The feedforward compensation unit 120 includes an inverse model 121. The inverse model 121 is an inverse function Gwh of the mathematical model 131 that takes an estimated primary controlled variable qwh as an argument and outputs an operation variable r. -1 (qwh). The inverse model 121 receives the estimated fluctuation amount dh from the prediction model Mp.

[0034] The purpose of the feedforward control is to suppress the disturbance of the primary control amount qw caused by the disturbance ds. Therefore, the feedforward compensation unit 120 obtains, from the inverse model 121, the operation amount input to the control element 210 such that the value output from the control element 210 becomes the estimated variation amount dh, as the feedforward compensation value rf. The subtractor 160 subtracts the feedforward compensation value rf from the feedforward compensation unit 120 from the feedback operation amount rb, and outputs the operation amount r (=rb-rf) to the control element 210. In the primary control amount qw corresponding to the operation amount r, the increase in the variation amount d is suppressed in advance by the feedforward compensation value rf. Therefore, even if the variation amount d is added to the primary control amount qw, the disturbance caused by the variation amount d in the secondary control amount qo is canceled by the feedforward compensation value rf. As a result, the control amount q output from the controlled object 200 after the lapse of the dead time L approaches a normal value corresponding to the feedback operation amount rb at the time preceding the time of the control amount q by the dead time L.

[0035] According to the control device 100, since an appropriate correct answer is associated with the measurement value do in the teacher data Dt, the accuracy of the feedforward control for the control object 200 can be improved by performing machine learning on the prediction model Mp using the teacher data Dt. Furthermore, according to the control device 100, in parallel with the feedforward control, the prediction model Mp can be adapted in real time to the measurement value do and the characteristics of the control object 200. Furthermore, since the machine learning is continued until the accuracy of the prediction model Mp becomes sufficiently high, the accuracy of the feedforward control for the control object 200 can be sufficiently improved. Furthermore, since the prediction model Mp is re-adapted to the characteristics according to the change in the characteristics of the control object 200, the deterioration of the accuracy of the feedforward control due to the change in the characteristics of the control object 200 can be suppressed.

[0036] Fig. 3 is a diagram showing a flowchart showing the flow of processing performed by each of the feedback control system, the feedforward control system, the learning data generating unit 130, and the learning unit 170 in Fig. 1. The routines corresponding to the respective flowcharts of the feedback control system and the feedforward control system are executed, for example, at each sampling time. The routines corresponding to the respective flowcharts of the learning data generating unit 130 and the learning unit 170 are executed, for example, in response to the first execution of the routines corresponding to the respective flowcharts of the feedforward control system. Below, a step is simply abbreviated as S.

[0037] 3, in S111, the subtractor 150 calculates the error eq between the target value qr and the controlled variable q, and outputs the error eq to the feedback control unit 110. In S312, the feedback control unit 110 determines the feedback manipulated variable rb based on the error eq, and outputs the determined value to the subtractor 160, thereby completing the process.

[0038] In S121, the feedforward compensation unit 120 determines a feedforward compensation value rf from the measurement value do and outputs it to the subtractor 160. In S122, the subtractor 160 outputs the difference obtained by subtracting the feedforward compensation value rf from the feedback manipulated variable rb as the manipulated variable r to the control object 200 and the learning data generation unit 130, and the process ends.

[0039] The training data generation unit 130 generates the training data Dt in S130 and ends the process. The training unit 170 performs machine learning on the prediction model Mp using the training data Dt in S170 and ends the process.

[0040] Fig. 4 is a flowchart showing a specific process flow of the learning data generation process S130 in Fig. 3. Fig. 5 is a diagram for explaining the correspondence between the time of the measured value do, the manipulated variable r, the controlled variable q, and the estimated primary controlled variable qwh in Fig. 4, and the time of the estimated secondary controlled variable qoh, which is set back from the time of the controlled variable q by the estimated dead time Lh. Fig. 5 shows a case where a plurality of measured values ​​do, a plurality of manipulated variables r, and a plurality of controlled variables q are acquired during a trial period from time t21 to t24. Time t22 is the time (t21+Lh) when the estimated dead time Lh has elapsed from time t21. Time t23 (>t22) is the time (t24-Lh) when the estimated dead time Lh has elapsed from time t24.

[0041] 4 and 5, the learning data generating unit 130 acquires the measurement value do, the operation amount r, and the control amount q at each of a plurality of timings in S131, and proceeds to processing in S132. In S132, the learning data generating unit 130 acquires an estimated primary control amount qwh from the operation amount r using the mathematical model 131, and proceeds to processing in S133. The learning data generating unit 130 returns the time of the control amount q by the estimated dead time Lh to generate an estimated secondary control amount qoh, and proceeds to processing in S134. As shown in FIG. 5, the plurality of control amounts q included in the times t22 to t23 acquired in S131 are slid as a whole in the direction going back in time by the estimated dead time Lh by the processing in S133.

[0042] 4, the learning data generation unit 130 subtracts the estimated primary control amount qwh at the time of the estimated secondary control amount qoh from the estimated secondary control amount qoh to generate an estimated variation amount dh, and proceeds to S135. The learning data generation unit 130 sets the correct answer for the measured value do to the estimated variation amount dh at the time of the measured value do, generates teacher data Dt, and ends the process.

[0043] As shown in FIG. 5, among the multiple control amounts q acquired during the trial period from time t21 to t24, the time of the control amount q acquired from time t21 to t22 is returned to before time t21 by the process of S133. There is no corresponding estimated primary control amount qwh before time t21. Therefore, the control amount q acquired from time t21 to t22 is not used in generating the teacher data Dt. In addition, there are no estimated secondary control amounts qoh and estimated fluctuation amounts dh from time t23 to t24. Therefore, the measurement value do, the operation amount r, and the estimated primary control amount qwh acquired during the period from time t23 to t24 are not used in generating the teacher data Dt.

[0044] [First Modification of First Embodiment] In the first embodiment, a configuration including both a feedback control system and a feedforward control system has been described. In the first modification of the first embodiment, a configuration not including a feedback control system will be described.

[0045] Fig. 6 is a block diagram showing a functional configuration of a control device 100A according to a first modification of the first embodiment. The configuration of the control device 100A is a configuration in which the subtractor 150 and the feedback control unit 110 are removed from the control device 100 in Fig. 1. Since the rest is similar, the description of the similar configuration will not be repeated. Note that the subtractor 160 does not have to be included in the control device 100A.

[0046] 6, the control device 100A determines a feedforward compensation value rf of a feedback operation amount rb to the control object 200 such that a control amount q of the control object 200 receiving a measurement value do approaches a target value qr. According to the control device 100A, by adding a control device to an existing feedback control system while leaving the existing feedback control system, it is possible to easily expand the existing feedback control system to a control system including a feedforward control system and a learning function.

[0047] As described above, according to the device and method according to the first embodiment and the first modification, it is possible to improve the accuracy of feedforward control of a control target.

[0048] [Embodiment 2] In the first embodiment, a case where a feedback control system, a feedforward control system, and a configuration for performing machine learning on a prediction model are included in one control device is described. In the second embodiment, a configuration is described in which the feedback control system, the feedforward control system, and a configuration for performing machine learning on a prediction model are separated into separate devices.

[0049] Fig. 7 is a block diagram showing a functional configuration of a control system 2 according to embodiment 2. In Fig. 7, components denoted by the same reference symbols as those in Fig. 1 have the same functions as the components identified by the reference symbols described in embodiment 1, and therefore description of the similar components will not be repeated.

[0050] As shown in FIG. 7, the control system 2 includes a feedback control device 11, a feedforward compensation device 12, a learning data generation device 13, a storage device 14, and a learning device 17. The learning data generation device 13, the storage device 14, and the learning device 17 correspond to the learning data generation unit 130, the storage unit 140, and the learning unit 170 in FIG. 1, respectively. The feedback control device 11 includes a feedback control unit 110 and a subtractor 150. The feedforward compensation device 12 includes a feedforward compensation unit 120 and a subtractor 160. The feedback control device 11, the feedforward compensation device 12, the learning data generation device 13, the storage device 14, the learning device 17, and the control target 200 may be connected to each other via a network and may be located remotely from each other. The subtractor 160 may be included in the feedback control device 11 instead of the feedforward compensation device 12.

[0051] According to the control system 2, the existing control system can be easily expanded by adding a feedforward compensation device, a learning data generating device, and a learning device to the existing feedback control device while leaving the existing feedback control device in place.

[0052] As described above, according to the device and method of the second embodiment, it is possible to improve the accuracy of feedforward control of a controlled object.

[0053] [Embodiment 3] In the third embodiment, as an example of the control device according to the first embodiment, a configuration in which the control device includes a PLC (Programmable Logic Controller) will be described.

[0054] <Control system network configuration example> Fig. 8 is a schematic diagram showing an example of a network configuration of a control system 3 according to the third embodiment. As shown in Fig. 8, the control system 3 includes a device group in which a plurality of devices are configured to be able to communicate with each other. Typically, the devices may include a control device 300 that is a processing entity that executes a control program, and peripheral devices connected to the control device 300. The control device 300 has a similar functional configuration to the control device 100 shown in Fig. 1.

[0055] The control device 300 corresponds to an industrial controller that controls control targets such as various facilities or devices. The control device 300 is a type of computer that executes control calculations, and typically includes a PLC (Programmable Logic Controller). The control device 300 is connected to field devices 200C via a field network 20. The control device 300 exchanges data with at least one field device 200C via the field network 20.

[0056] The control calculations executed in the control device 300 include a process of collecting data collected or generated in the field device 200C, a process of generating data such as a command value (operation amount) for the field device 200C, and a process of transmitting the generated output data to the target field device 200C. The data collected or generated in the field device 200C includes data on disturbances input to the field device 200C and a control amount resulting from the actual operation of the field device 200C according to the command value. The command value for the field device 200C is determined by adding a feedforward compensation value predicted from the disturbance by a prediction model to a manipulation amount provisionally calculated based on an error between a control target value (target value) calculated based on a control program executed by the control device 300 and an actual control amount.

[0057] It is preferable that the field network 20 employs a bus or network that performs periodic communication. Known examples of such buses or networks that perform periodic communication include EtherCAT (registered trademark), EtherNet / IP (registered trademark), DeviceNet (registered trademark), and CompoNet (registered trademark). EtherCAT (registered trademark) is preferable because it guarantees the arrival time of data.

[0058] Any field device 200C can be connected to the field network 20. The field device 200C includes an actuator that exerts some physical action on a robot or a conveyor in the field, and an input / output device that exchanges information with the field.

[0059] In the control system 3, the field device 200C includes a plurality of servo drivers 220_1 and 220_2, and a plurality of servo motors 222_1 and 222_2 respectively connected to the plurality of servo drivers 220_1 and 220_2. The field device 200C is an example of a "controlled object".

[0060] The servo drivers 220_1 and 220_2 drive corresponding ones of the servo motors 222_1 and 222_2 according to command values ​​(such as a position command value or a speed command value) from the control device 300. In this manner, the control device 300 can control the field device 200C.

[0061] The control device 300 is also connected to other devices via a higher-level network 32. The higher-level network 32 is connected to the Internet 900, which is an external network, via a gateway 700. The higher-level network 32 may employ Ethernet (registered trademark) or EtherNet / IP (registered trademark), which are general network protocols. More specifically, at least one server device 600 and at least one display device 500 may be connected to the higher-level network 32.

[0062] The server device 600 may be a database system or a manufacturing execution system (MES). The manufacturing execution system acquires information from the manufacturing device or facility to be controlled, monitors and manages the entire production, and may handle order information, quality information, shipping information, and the like. In addition, a device that provides an information system service may be connected to the upper network 32. The information system service may be a process that acquires information from the manufacturing device or facility to be controlled and performs macro or micro analysis. For example, the information system service may be data mining that extracts some characteristic tendency contained in the information from the manufacturing device or facility to be controlled, or a machine learning tool that performs machine learning based on the information from the facility or machine to be controlled.

[0063] The display device 500 receives operations from a user, outputs commands to the control device 300 in response to the user operations, and also graphically displays the results of calculations performed by the control device 300, etc.

[0064] A support device 400 can be connected to the control device 300. The support device 400 may be connected to the control device 300 via the higher-level network 32 or the Internet 900. The support device 400 is a device that supports the preparations required for the control device 300 to control the control target. Specifically, the support device 400 provides a development environment (program creation and editing tools, parsers, compilers, etc.) for the program executed by the control device 300, a setting environment for setting configuration information (configuration) of the control device 300 and various devices connected to the control device 300, a function for outputting the generated program to the control device 300, and a function for correcting and changing the program executed on the control device 300 online.

[0065] In the control system 3, the control device 300, the support device 400, and the display device 500 are configured as separate entities, but a configuration in which all or part of these functions are integrated into a single device may be adopted.

[0066] The control device 300 may be used not only at one production site but also at other production sites, and may also be used at a plurality of different lines at one production site.

[0067] <Example of control device hardware configuration> Fig. 9 is a block diagram showing an example of a hardware configuration of the control device 300 in Fig. 8. As shown in Fig. 7, the control device 300 includes a processor 302, a main memory 304, a storage 360, a memory card interface 312, a host network controller 306, a field network controller 308, a local bus controller 316, and a USB controller 370 that provides a USB (Universal Serial Bus) interface. These components are connected via a processor bus 318.

[0068] 9, the processor 302 corresponds to an arithmetic processing unit that executes control calculations, and is configured with a CPU (Central Processing Unit) and the like. The processor 302 may include a GPU (Graphics Processing Unit). Specifically, the processor 302 reads out a program stored in the storage 360, expands it in the main memory 304, and executes it to realize control calculations for a control target.

[0069] The main memory 304 is configured with a volatile storage device such as a dynamic random access memory (DRAM). The main memory 304 may include a static random access memory (SRAM). The storage 360 ​​is configured with a non-volatile storage device such as a solid state drive (SSD). The storage 360 ​​may include a hard disk drive (HDD).

[0070] The storage 360 ​​stores a control program Pc, teacher data Dt, and a prediction model Mp. The storage 360 ​​corresponds to the memory unit 140 in Fig. 1. The control program Pc includes a program for comprehensively controlling the control device 300 and realizing each function of the control device 300. That is, the processor 302 that executes the control program Pc corresponds to the feedback control system (feedback control unit 110 and subtractor 150), the feedforward control system (feedforward compensation unit 120 and subtractor 160), the learning data generation unit 130, and the learning unit 170 in Fig. 1.

[0071] The memory card interface 312 accepts a memory card 314, which is an example of a removable storage medium. The memory card interface 312 is capable of reading and writing any data from and to the memory card 314.

[0072] The host network controller 306 transmits and receives data to and from any information processing device connected to the host network 32 (eg, a local area network) via the host network 32 .

[0073] The field network controller 308 transmits and receives data to and from any device such as the servo motors 222_1 and 222_2 via the field network 20.

[0074] The local bus controller 316 exchanges data with any functional unit 380 constituting the control device 300 via the local bus 122. The functional unit 380 may be, for example, an analog I / O unit responsible for at least one of input and output of analog signals, a digital I / O unit responsible for at least one of input and output of digital signals, and a counter unit that receives pulses from an encoder or the like.

[0075] The USB controller 370 exchanges data with any information processing device via a USB connection. The USB controller 370 is connected to a support device 400, for example.

[0076] As described above, according to the device, the program, and the control method according to the third embodiment, it is possible to improve the accuracy of the feedforward control of the controlled object.

[0077] <Additional Notes> The present embodiment as described above includes the following technical idea.

[0078] [Configuration 1] A machine learning device (100) for a prediction model (Mp) that predicts a specific value required for generating a feedforward compensation value (rf) of a feedback manipulated variable (rb) for a control target (200) subjected to a disturbance (ds), the feedback manipulated variable (rb) is determined by feedback control of a control device (100) for the controlled object (200) based on an error between a target value (qr) and a controlled variable (q) of the controlled object (200) so that the controlled variable (q) approaches the target value (qr); A value obtained by subtracting the feedforward compensation value (rf) from the feedback manipulated variable (rb) is output from the control device (100) to the controlled object (200) as a manipulated variable (r); The controlled object (200) is represented by a control element (210) represented as a mathematical model (131) that receives the manipulated variable (r), a disturbance element (220) that receives the disturbance (ds), and a dead time element (230), The control element (210) receives the manipulated variable (r) and outputs a primary controlled variable (qw); The disturbance element (220) receives the disturbance (ds) and outputs a fluctuation amount (d); The dead time element (230) delays the sum of the primary controlled variable (qw) and the fluctuation variable (d) from being output to the outside of the controlled object (200); The prediction model (Mp) predicts the fluctuation amount (d) as the specific value from a measurement value (do) of the disturbance (ds), The device (100) includes a learning data generation unit (130), The learning data generation unit (130) Acquire the measured value (do), the manipulated variable (r), and the controlled variable (q); generating a first estimate (qwh) of the primary controlled variable (qw) from the manipulated variable (r) using the mathematical model (131); generating a second estimate (dh) of the fluctuation amount (d) based on the controlled variable (q) and the first estimate (qwh) at a time that is a specific time (Lh) back from the time when the controlled variable (q) was acquired; The device (100) outputs teacher data (Dt) in which the second estimate (dh) at the time when the measurement value (do) is acquired corresponds to the measurement value (do) as a correct answer.

[0079] [Configuration 2] A learning unit (170) that performs the machine learning on the prediction model (Mp) using the teacher data (Dt), The device (100) of configuration 1, wherein the learning unit (170) approximates the relationship between the measured value (do) and the second estimated value (dh), which is expressed by the prediction model (Mp), as a function having the second estimated value (dh) as an objective variable and the measured value (do) as an explanatory variable.

[0080] [Configuration 3] The apparatus (100) according to configuration 1 or 2, further comprising a feedforward compensation unit (120) that generates the feedforward compensation value (rf) from the fluctuation amount (d) predicted by the prediction model (Mp) using an inverse model (121) of the mathematical model (131).

[0081] [Configuration 4] A program for generating teacher data for machine learning for a prediction model (Mp) that predicts a specific value required for generating a feedforward compensation value (rf) of a feedback manipulated variable (rb) for a control target (200) subjected to a disturbance (ds), the feedback manipulated variable (rb) is determined by feedback control of a control device (100) for the controlled object (200) based on an error between a target value (qr) and a controlled variable (q) of the controlled object (200) so that the controlled variable (q) approaches the target value (qr); A value obtained by subtracting the feedforward compensation value (rf) from the feedback manipulated variable (rb) is output from the control device (100) to the controlled object (200) as a manipulated variable (r); The controlled object (200) is represented by a control element (210) represented as a mathematical model (131) that receives the manipulated variable (r), a disturbance element (220) that receives the disturbance (ds), and a dead time element (230), The control element (210) receives the manipulated variable (r) and outputs a primary controlled variable (qw); The disturbance element (220) receives the disturbance (ds) and outputs a fluctuation amount (d); The dead time element (230) delays the sum of the primary controlled variable (qw) and the fluctuation variable (d) from being output to the outside of the controlled object (200); The prediction model (Mp) predicts the fluctuation amount (d) as the specific value from a measurement value (do) of the disturbance (ds), The program, when executed by a processor, Acquire the measured value (do), the manipulated variable (r), and the controlled variable (q); The time of the control amount (q) is returned by a specific time (Lh), generating a first estimate (qwh) of the primary controlled variable (qw) from the manipulated variable (r) using the mathematical model (131); generating a second estimate (dh) of the fluctuation amount (d) by subtracting the first estimate (qwh) at the time of the controlled variable (q) from the controlled variable (q); a teacher data generating program that outputs teacher data (Dt) in which the second estimated value (dh) at the time of the measurement value (do) corresponds to the measurement value (do) as a correct answer;

[0082] [Configuration 5] A method for generating training data for machine learning for a prediction model (Mp) that predicts a specific value required for generating a feedforward compensation value (rf) of a feedback manipulated variable (rb) for a control target (200) subjected to a disturbance (ds), comprising: the feedback manipulated variable (rb) is determined by feedback control of a control device (100) for the controlled object (200) based on an error between a target value (qr) and a controlled variable (q) of the controlled object (200) so that the controlled variable (q) approaches the target value (qr); A value obtained by subtracting the feedforward compensation value (rf) from the feedback manipulated variable (rb) is output from the control device (100) to the controlled object (200) as a manipulated variable (r); The controlled object (200) is represented by a control element (210) represented as a mathematical model (131) that receives the manipulated variable (r), a disturbance element (220) that receives the disturbance (ds), and a dead time element (230), The control element (210) receives the manipulated variable (r) and outputs a primary controlled variable (qw); The disturbance element (220) receives the disturbance (ds) and outputs a fluctuation amount (d); The dead time element (230) delays the sum of the primary controlled variable (qw) and the fluctuation variable (d) from being output to the outside of the controlled object (200); The prediction model (Mp) predicts the fluctuation amount (d) as the specific value from a measurement value (do) of the disturbance (ds), The method comprises: Obtaining the measured value (do), the manipulated variable (r), and the controlled variable (q); generating a first estimate (qwh) of the primary controlled variable (qw) from the manipulated variable (r) using a mathematical model (131) of the control element (210); generating a second estimate (dh) of the fluctuation amount (d) based on the controlled variable (q) and the first estimate (qwh) at a time that is a specific time (Lh) back from the time when the controlled variable (q) was acquired; A method for generating teacher data, comprising: outputting teacher data (Dt) in which the second estimated value (dh) at the time when the measurement value (do) is obtained corresponds to the measurement value (do) as a correct answer.

[0083] The embodiments disclosed herein are intended to be combined appropriately within the scope of the present invention. The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not the above description, and is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]

[0084] 2,3 Control system, 11 Feedback control device, 12 Feedforward compensation device, 13 Learning data generation device, 14 Storage device, 17 Learning device, 20 Field network, 32 Upper network, 100, 100A, 300 Control device, 110 Feedback control unit, 120 Feedforward compensation unit, 121 Inverse model, 122 Local bus, 130 Learning data generation unit, 131 Mathematical model, 132 Time converter, 133, 150, 160 Subtractor, 134 Output generator, 140 Storage unit, 170 Learning unit, 200 Control target, 200C Field device, 210 Control element, 220 Disturbance element, 222 Servo motor, 230 Dead time element, 240 Adder, 302 Processor, 304 Main memory, 306 Upper network controller, 308 Field network controller, 312 memory card interface, 314 memory card, 316 local bus controller, 318 processor bus, 360 storage, 370 controller, 380 functional unit, 400 support device, 500 display device, 600 server device, 700 gateway, 900 Internet, Dt teacher data, L dead time, Lh estimated dead time, Mp prediction model, Pc control program, d fluctuation amount, dh estimated fluctuation amount, do measured value, ds disturbance, eq error, q controlled variable, qo secondary controlled variable, qoh estimated secondary controlled variable, qr target value, qw primary controlled variable, qwh estimated primary controlled variable, r manipulated variable, rb feedback manipulated variable, rf feedforward compensation value.

Claims

1. An apparatus for machine learning for a predictive model that predicts a specific value required for generating a feedforward compensation value of a feedback manipulated variable for a control target subjected to a disturbance, comprising: the feedback manipulated variable is determined by feedback control of a control device of the controlled object based on an error between a target value and a controlled variable of the controlled object so that the controlled variable approaches the target value; a value obtained by subtracting the feedforward compensation value from the feedback manipulated variable is output from the control device to the controlled object as a manipulated variable; the controlled object is represented by a control element represented as a mathematical model that receives the manipulated variable, a disturbance element that receives the disturbance, and a dead time element; The control element receives the manipulated variable and outputs a primary controlled variable; The disturbance element outputs a fluctuation amount in response to the disturbance, the dead time element delays the sum of the primary controlled variable and the fluctuation variable from being output to an outside of the controlled object; the prediction model predicts the amount of fluctuation as the specific value from the measured value of the disturbance; The device includes a training data generation unit, The learning data generation unit Acquiring the measured value, the manipulated variable, and the controlled variable; generating a first estimate of the primary controlled variable from the manipulated variable using the mathematical model; generating a second estimate of the amount of variation based on the controlled variable and the first estimate at a time that is a specific time behind the time at which the controlled variable was acquired; and outputting teacher data in which the second estimate at the time when the measurement value was acquired corresponds to the measurement value as a correct answer.

2. A learning unit that performs the machine learning on the prediction model using the teacher data, The device according to claim 1 , wherein the learning unit approximates the relationship between the measurement value and the second estimated value, as represented by the prediction model, as a function having the second estimated value as a response variable and the measurement value as an explanatory variable.

3. The device according to claim 1 , further comprising a feedforward compensation unit that generates the feedforward compensation value from the amount of variation predicted by the prediction model, using an inverse model of the mathematical formula model.

4. A program for generating teacher data for machine learning for a prediction model that predicts a specific value required for generating a feedforward compensation value of a feedback manipulated variable for a control target subjected to a disturbance, comprising: the feedback manipulated variable is determined by feedback control of a control device of the controlled object based on an error between a target value and a controlled variable of the controlled object so that the controlled variable approaches the target value; a value obtained by subtracting the feedforward compensation value from the feedback manipulated variable is output from the control device to the controlled object as a manipulated variable; the controlled object is represented by a control element represented as a mathematical model that receives the manipulated variable, a disturbance element that receives the disturbance, and a dead time element; The control element receives the manipulated variable and outputs a primary controlled variable; The disturbance element outputs a fluctuation amount in response to the disturbance, the dead time element delays the sum of the primary controlled variable and the fluctuation variable from being output to an outside of the controlled object; the prediction model predicts the amount of fluctuation as the specific value from the measured value of the disturbance; The program for generating teacher data is executed by a processor, Acquiring the measured value, the manipulated variable, and the controlled variable; generating a first estimate of the primary controlled variable from the manipulated variable using the mathematical model; generating a second estimate of the amount of variation based on the controlled variable and the first estimate at a time that is a specific time behind the time at which the controlled variable was acquired; a teacher data generating program that outputs teacher data in which the measurement value corresponds to the second estimated value at the time when the measurement value was acquired as a correct answer;

5. A method for generating teacher data for machine learning for a prediction model that predicts a specific value required for generating a feedforward compensation value of a feedback manipulated variable for a control target subjected to a disturbance, comprising: the feedback manipulated variable is determined by feedback control of a control device of the controlled object based on an error between a target value and a controlled variable of the controlled object so that the controlled variable approaches the target value; a value obtained by subtracting the feedforward compensation value from the feedback manipulated variable is output from the control device to the controlled object as a manipulated variable; the controlled object is represented by a control element represented as a mathematical model that receives the manipulated variable, a disturbance element that receives the disturbance, and a dead time element; The control element receives the manipulated variable and outputs a primary controlled variable; The disturbance element outputs a fluctuation amount in response to the disturbance, the dead time element delays the sum of the primary controlled variable and the fluctuation variable from being output to an outside of the controlled object; the prediction model predicts the amount of fluctuation as the specific value from the measured value of the disturbance; The method for generating teacher data includes: Obtaining the measured values, the manipulated variables, and the controlled variables; generating a first estimate of the primary controlled variable from the manipulated variable using the mathematical model; generating a second estimate of the amount of variation based on the controlled variable and the first estimate at a time that is a specific time behind the time at which the controlled variable was obtained; and outputting teacher data in which the second estimate value at the time when the measurement value was acquired corresponds to the measurement value as a correct answer.

Citation Information

Patent Citations

  • Feedforward controller

    JP1998222207A