Control system and control method
By measuring and using pre-measured response times to correct command values, the control system achieves high precision in controlling devices in non-real-time communication, addressing the uncertainty in detection times.
Patent Information
- Application Number
- PCT/JP2023/043909
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-23
- Filing Date
- 2023-12-07
- Publication Date
- 2024-09-26
AI Technical Summary
In non-real-time communication, the control system cannot specify the detection time, making it difficult to control controlled devices with high precision due to the uncertainty in the time difference between the transmission of a control request and the reception of its response.
The control system measures the response time in non-real-time communication and uses this pre-measured response time to correct the command value, allowing for accurate control by associating an appropriate time with the detected value, thereby enabling precise control of controlled devices.
This approach allows for accurate control of controlled devices in non-real-time communication by correcting command values based on pre-measured response times, ensuring high precision despite the longer response times.
Smart Images

Figure JP2023043909_26092024_PF_FP
Abstract
Description
Control system and control method
[0001] The present invention relates generally to controlling controlled devices.
[0002] Time management is necessary to accurately control controlled devices. For example, techniques for time management are known from Patent Documents 1 to 3.
[0003] WO2014 / 108999JP2014-225112JP2012-134895
[0004] 2. Description of the Related Art A control system is known that generates a control request for a controlled device based on a detected value relating to the controlled device and transmits the control request to the controlled device.
[0005] Non-real-time communication may be adopted as communication for transmitting a control request due to the execution environment (e.g., OS (Operating System)) of a program for transmitting a control request to a controlled device or for other reasons. "Non-real-time communication" refers to communication with a relatively long response time, such as communication using UDP (User Datagram Protocol) / IP (Internet Protocol) or serial communication. Non-real-time communication may be an example of a first communication that provides a first response time. In contrast to non-real-time communication, "real-time communication" refers to communication with a relatively short response time (e.g., communication in which a maximum response time is defined in the specifications), such as communication using EtherCAT (registered trademark). Real-time communication may be an example of a second communication that provides a second response time that is shorter than the first response time (e.g., a response time equal to or shorter than the maximum response time defined in the specifications).
[0006] The controlled device operates in accordance with a control request from the control system, and this operation may cause a change in the detected value of the controlled device. Therefore, for the control system, the detection time, which is the time when the detected value of the controlled device occurs, is any time between the time when the control request is sent and the time when a response to the control request is received.
[0007] In non-real-time communication, the control system cannot identify the detection time, and therefore it is difficult to control the controlled device with high accuracy in non-real-time communication.
[0008] The control system repeatedly generates acquisition requests to acquire detection values related to controlled devices, transmits the acquisition requests in real-time communication, and receives detection data representing the detection values as responses to the acquisition requests. The control system also repeatedly performs a correction process for command values for the controlled devices, generates control requests having the corrected command values, transmits the control requests in non-real-time communication, and receives control result data representing return values for the command values included in the control requests. For each control request, the correction process is a process of outputting a corrected command value for the command value in a third set based on a first set of time and return value, a second set of time and detection value, and a third set of time and command value. In the correction process, the time in the second set is a corrected time determined based on the transmission time at which the control request is transmitted and a response time measured in advance for non-real-time communication.
[0009] According to the present invention, it is possible to control a controlled device with high precision in non-real-time communication.
[0010] 1 shows an example of the physical configuration of a system including a control system according to an embodiment; FIG. 2 schematically shows control of a processing machine by a control device and control of a robot by an extension device; FIG. 3 schematically shows an example of a method for pre-measuring response time in non-real-time communication; FIG. 4 shows an example of a response time table; FIG. 5 shows an example of time-shared data; FIG. 6 shows a flow of robot control processing; FIG. 7 shows an example of learning a correction model; and FIG. 8 schematically shows the correction processing of S602. FIG. 9 shows an example of the configuration of a control system according to a modified example.
[0011] In the following description, an "interface apparatus" may refer to one or more interface devices, which may be one or more homogeneous communication interface devices or two or more heterogeneous communication interface devices.
[0012] In the following description, "memory" refers to one or more memory devices, typically a primary storage device. At least one of the memory devices may be a volatile memory device or a non-volatile memory device.
[0013] In the following description, a "persistent storage device" refers to one or more persistent storage devices. A persistent storage device is typically a non-volatile storage device (e.g., an auxiliary storage device), and specifically, for example, a hard disk drive (HDD) or a solid state drive (SSD).
[0014] In the following description, the term "storage device" may refer to at least one of memory and persistent storage device.
[0015] Furthermore, in the following description, a "processor" may refer to one or more processor devices. The at least one processor device may typically be a microprocessor device such as a CPU (Central Processing Unit), but may also be other types of processor devices such as a GPU (Graphics Processing Unit). The at least one processor device may be a single-core or multi-core. The at least one processor device may also be a processor core. The at least one processor device may also be a processor device in a broader sense, such as a hardware circuit that performs part or all of the processing (for example, an FPGA (Field-Programmable Gate Array), a CPLD (Complex Programmable Logic Device), or an ASIC (Application Specific Integrated Circuit)).
[0016] In the following description, processing may be described using a "program" as the subject. However, since a program is executed by a processor to perform a predetermined process using a storage device and / or an interface device, etc., as appropriate, the subject of the process may also be the processor (or a device such as a controller having the processor). A program may be installed in a device such as a computer from a program source. The program source may be, for example, a program distribution server or a computer-readable (e.g., non-transitory) recording medium. In the following description, two or more programs may be realized as one program, or one program may be realized as two or more programs.
[0017] Furthermore, in the following description, functions may be described using the expression "yyy unit," but the functions may be realized by one or more computer programs being executed by a processor. When a function is realized by a program being executed by a processor, the specified processing is performed using a storage device and / or an interface device, etc., as appropriate, and therefore the function may be considered to be at least a part of the processor. Processing described using a function as the subject may also be processing performed by a processor or a device having that processor. The description of each function is an example, and multiple functions may be combined into one function, or one function may be divided into multiple functions.
[0018] In the following description, information that provides an output in response to an input may be described using expressions such as "xxx table." However, this information may be data of any structure (for example, structured data or unstructured data), or may be a neural network that generates an output in response to an input, or a learning model such as a genetic algorithm or random forest. Therefore, "xxx table" may be referred to as "xxx information." In the following description, the structure of each table is an example, and one table may be divided into two or more tables, or all or part of two or more tables may be one table.
[0019] In addition, in the following description, an ID, a name, or a number is used as an example of identification information, but the identification information may include other types of elements instead of or in addition to at least one of the ID, name, and number.
[0020] In addition, in the following description, when describing elements of the same type without distinguishing between them, common parts of the reference symbols will be used, and when describing elements of the same type with distinction between them, reference symbols will be used.
[0021] FIG. 1 shows an example of the physical configuration of a system including a control system according to an embodiment.
[0022] A control system 109 is installed in a factory 10 where controlled devices are located. The controlled devices are, for example, a processing machine 119 that processes a set workpiece, or a robot 120 that sets the workpiece on the processing machine 119. The factory 10 is an example of a site where controlled devices are located.
[0023] The control system 109 is connected to, for example, a communication network 19 (for example, a LAN (Local Area Network)) within the factory 10. The communication network 19 is an example of a communication network used for non-real-time communication.
[0024] The sensors 12 provided on the control system 109, the processing machine 119, and the robot 120 are connected to a communication network 118 (e.g., Ethernet (registered trademark)). The communication network 118 is an example of a communication network used for real-time communication.
[0025] The control system 109 includes one or more computing devices 40. Each computing device 40 includes an interface device, a storage device, and a processor connected to the ... and a storage device connected to the interface device, and a storage device connected to the interface device, and a storage device connected to the interface device, and a storage device connected to the interface device, and a storage device connected to the interface device, and a storage device connected to the interface device, and a storage device connected to the interface device, and a storage device connected to the interface device, and a storage device connected to the interface device, and a storage device connected to the interface device, and a storage device connected to
[0026] The system configuration depends on the presence or absence of an expansion device 40E and the type of communication medium to which the control device 40M and the expansion device 40E are connected. In the example of FIG. 1, the expansion device 40E1 is connected to a communication network 118. The expansion device 40E2 is connected to a PIO bus 28 (an example of a bus) ("PIO" stands for Programmed I / O). The PIO bus 28 may be a bus printed on a baseboard, and by connecting the control device 40M and the expansion device 40E2 to the baseboard, the control device 40M and the expansion device 40E2 may communicate data via the PIO bus 28.
[0027] As described above, the control system 109 includes at least one control device 40M. The control device 40M has a control application that periodically performs a scanning process. The "scanning process" may include reading information from a device (e.g., a controlled device) connected to an I / O (Input / Output) port, calculating the read information, and writing the calculated information. The scanning process may be an example of a control process.
[0028] The hardware configuration of the arithmetic unit 40 will be described below using the control unit 40M as an example. That is, the control unit 40M includes a memory 169 (e.g., an EPROM 208 and a main memory 210), a peripheral control unit 212, an I / O control unit 214, a non-volatile storage device 215, a network I / F device 213, and a processor 209 connected thereto. The I / O control unit 214 and the network I / F device 213 are examples of interface devices. The memory 169 and the non-volatile storage device 215 are examples of storage devices.
[0029] The peripheral control device 212 is connected to a network I / F device 213, an I / O control device 214, a nonvolatile storage device 215, and a bus 211. The bus 211 is also connected to a memory 169 and a processor 209.
[0030] EPROM 208 may store programs downloaded from a program source such as a program distribution server (not shown).
[0031] The processor 209 reads out the program stored in the EPROM 208 into the main memory 210, executes it, and controls the operation of the program. For example, the processor 209 controls the processing machine 119 and acquires detection data from the sensor 12 via the I / O control device 214. Also, for example, the processor 209 communicates with the expansion device 40E that controls the robot 120 via the network I / F device 213 (or by another method).
[0032] FIG. 2 schematically shows the control of the processing machine 119 by the control device 40M and the control of the robot 120 by the expansion device 40E.
[0033] The processor 209M of the control device 40M executes multiple computer programs, thereby executing an OS 211M in the control device 40M, and realizing functions such as a time synchronization unit 260M, a response time measurement unit 252, and a control unit 251 on the OS 211M. The operation of the control unit 251 and other functions may be controlled by the OS 211M (or runtime software). The OS 211M may be a real-time OS, for example, a real-time general-purpose OS (an OS that is a type of general-purpose OS for information processing but has real-time functions that can provide the required real-time performance).
[0034] The time synchronization unit 260M communicates with the time synchronization units of the other arithmetic units 40, and synchronizes the current time of the control unit 40M with that of the other arithmetic units 40. In other words, the current time managed by each arithmetic unit 40 is the same.
[0035] The response time measurement unit 252 measures the response time in non-real-time communication, generates a response time table 280 that indicates the measured response time, and stores the response time table 280 in the memory 169 .
[0036] The control unit 251 performs control processing including controlling the processing machine 119 in a control cycle. The control unit 251 has a function as, for example, a PLC (Programmable Logic Controller) and performs the above control processing as sequence control.
[0037] The control unit 251 generates time-shared data 281 (data representing the response time measured in advance) based on the response time table 280 , and transmits the time-shared data 281 to each of the other arithmetic devices 40 .
[0038] The processor 209E of the expansion device 40E executes multiple computer programs, thereby executing an OS 211E in the expansion device 40E, and implementing functions such as a time synchronization unit 260E, an RT correction unit 271, and a robot control unit 272 on the OS 211E ("RT" stands for real time). The OS 211E may be the same as the OS 211M, or may be a different OS. For example, the OS 211E may be a ROS (Robot Operating System).
[0039] The time synchronization unit 260E communicates with the time synchronization units of the other arithmetic devices 40, and synchronizes the current time of this arithmetic device 40E with that of the other arithmetic devices 40.
[0040] The RT correction unit 271 corrects the command value specified in the control request sent by the robot control unit 272. The correction is performed on a model basis, specifically, using a correction model 290, which is a machine learning model. The correction may also be performed by a method other than a model-based method, for example, a rule-based method.
[0041] The robot control unit 272 controls the robot 120. To control the robot 120, the robot control unit 272 transmits a control request specifying a command value to the robot 120.
[0042] The control unit 251 periodically executes processing according to a predetermined sequence. In each cycle (e.g., cycle time (which may also be called scan time)), the processing includes generating an acquisition request to acquire a detection value from the sensor 12, transmitting the acquisition request, and receiving detection data representing the detection value as a response to the acquisition request. The periodically executed processing may include transmitting the received detection data to the expansion device 40E (robot control unit 272). The transmission of the acquisition request and the reception of the detection data are performed through real-time communication (e.g., communication via the I / O control device 214 and the communication network 118). For example, the robot 120 may have an arm and multiple servo motors, and the sensor 12 may be a force sensor attached to the arm of the robot 120. The detection data may include the rotational axis angle of each servo motor. "Real-time communication" refers to communication with a relatively short response time (e.g., communication with a maximum response time specified in the specifications), such as communication via EtherCAT (registered trademark).
[0043] The robot control unit 272 repeatedly performs robot control processing according to instructions from the control unit 251 (or at a predetermined timing without instructions from the control unit 251). The robot control processing includes correcting command values for the robot 120, generating a control request having the corrected command values, transmitting the control request, and receiving control result data representing a return value for the command value contained in the control request. The control performed by the robot control unit 272 may be PTP (Point-To-Point Control or Pose-To-Pose Control). Therefore, the command values may be data representing the positions of parts of the robot 120 (e.g., joint angles). The transmission of the control request and the reception of the control result data are performed via non-real-time communication (e.g., communication via the network I / F device 213 and the communication network 19). "Non-real-time communication" refers to communication with a relatively long response time, such as communication using UDP / IP or serial communication.
[0044] The robot 120 operates in accordance with a control request from the robot control unit 272, and this operation may cause a change in the detection value of the sensor 12 of the robot 120. The time (detection time) at which a detection value (change in detection value) occurs in control (robot operation) performed in response to a control request is any time between the time the control request is sent and the time a response to the control request is received. The response time in non-real-time communication (the time between the time sent and the time received) is longer than the response time in real-time communication. However, non-real-time communication is adopted for communication to control the robot due to the convenience of the OS 211E (e.g., ROS) or other reasons.
[0045] Although the detection data of the sensor 12 may be collected by the extension device 40E, collection by non-real-time communication may result in a relatively large discrepancy between the detection time and the reception time of the detection data. Furthermore, it is expected that the collection of the detection data of the sensor 12 will be more accurate if it is collected by periodic processing of the control unit 251, which has a function as a PLC.
[0046] The response time in non-real-time communication differs from the response time in real-time communication. Specifically, for example, in real-time communication, the difference between the reception time of the detection data and the detection time (the time when the detected value (change in the detected value) occurs) is small (for example, the difference is small enough that the reception time can be considered the detection time), but in non-real-time communication, the difference between the detection time and the reception time of the control result data is large. If data with different time resolutions like this are used for control or correction for control, the accuracy of the control may be reduced.
[0047] Therefore, in this embodiment, the control unit 251 collects the detection data through real-time communication, and the control unit 251 provides the detection data to the robot control unit 272. The communication of the detection data between the devices 40M and 40E may be performed through an interface and a network (e.g., the I / O control unit 214 and the communication network 118) used for real-time communication.
[0048] In addition, the response time, which is the difference between the transmission time (the transmission time of the control request) in non-real-time communication and the detection time (the time when the detection value (change in the detection value) occurs as a result of control according to the control request), is measured in advance, and correction processing of the command value specified in the control request is performed based on the response time measured in advance.
[0049] FIG. 3 is a diagram illustrating an example of a method for measuring response times in advance in non-real-time communication.
[0050] In non-real-time communication, the response time measurement unit 252 of the control device 40M transmits a control request and receives a response (a response having control result data) from the controlled device 319 that has been controlled in accordance with the control request. The time at which the control request is transmitted is defined as "T0," and the time at which the response to the control request is received is defined as "T1." The controlled device 319 may be the robot 120 or another device.
[0051] A sensor 302 is provided in the controlled device 319. The sensor 302 may be the sensor 12 provided in the robot 120 or another sensor.
[0052] The controlled device 319 operates in accordance with the control request from the time it receives the control request until it transmits a response, and this operation causes a detection value (change in detection value) to occur in the sensor 302 .
[0053] Therefore, the control unit 40M is provided with an analog I / O device 301 that receives an analog signal from the sensor 302. The signal (detection data) from the sensor 302 may be received by another interface device instead of the analog I / O device 301, and the signal may be a digital signal (digital data). In the preliminary measurement, the communication between the sensor 302 and the control unit 40M is communication in which the difference between the detection time (the time when the detection value is generated by the sensor 302) and the reception time (the time when the detection data is received) is so small that the two times can be considered to be substantially the same. This communication may be the same real-time communication as the real-time communication used to collect the detection data, or it may be a different real-time communication. The reception time of the detection data (≒ detection time) is defined as "T2." Specifically, T2 may be the time when the analog I / O device 301 receives an analog signal representing the detection value (change in the detection value) (the time when the control unit 40M detects the reception of the analog signal).
[0054] The response time measurement unit 252 calculates T2-T0 and measures the calculated value (time) as the response time in non-real-time communication.
[0055] FIG. 4 shows an example of the response time table 280 .
[0056] The response time measurement unit 252 indicates the device ID and response time for each device that outputs detection data. For example, when the control device 40M receives detection data from the sensor 302 (sensor 12), the response time measurement unit 252 records the ID of the sensor 302 (sensor 12), "sensor A," as the device ID in the response time table 280, and records the calculated value "0.234567" as the response time in the response time table 280.
[0057] FIG. 5 shows an example of the time-shared data 281.
[0058] The control unit 251 generates time-shared data 281 based on the response time table 280, and transmits the time-shared data 281 to each of the other computing devices 40. The time-shared data 281 represents the transmission time (the time when the robot control unit 272 transmits a control request), data (a value representing the detection data of the sensor 12), and response time (the response time recorded in the response time table 280, i.e., the response time measured in advance).
[0059] An example of the processing performed in this embodiment will be described below.
[0060] In this embodiment, the robot control is a pre-planned (predetermined) control. For example, the position of the arm of the robot 120 at a given time is planned in advance, and the robot is controlled according to the plan. Specifically, for example, the command values specified in a control request are pre-determined for each transmission time of the control request. Therefore, in the robot control, a control request specifying the pre-determined command values is transmitted at a predetermined transmission time.
[0061] However, it is generally not easy to actually control a robot as planned, so in this embodiment, the planned command values are corrected as appropriate based on the detection values of the sensor 12, and the corrected command values are specified in the control request.
[0062] Furthermore, robot control may be initiated in response to an instruction from the control unit 251 of the control device 40M to the robot control unit 272 of the expansion device 40E. After the robot control is initiated, the transmission of a control request for each cycle of robot control may be actively performed by the robot control unit 272 in accordance with a predetermined plan, or the control unit 251 may transmit an instruction to the robot control unit 272 for each cycle in accordance with a predetermined plan and the control request may be transmitted in response to that instruction.
[0063] FIG. 6 shows the flow of the robot control process.
[0064] The robot control process includes steps S601 to S605, which are repeatedly performed in this embodiment as shown in the figure. The robot control process is started in accordance with an instruction from the control unit 251 of the control device 40M or at a predetermined timing.
[0065] In S601, the robot control unit 272 reads out data. The data read out here is data necessary for correction processing, specifically data including the following: The following are stored in the memory 169 and are read out from the memory 169: A return value represented by the processing result data received for the control request transmitted by the robot control unit 272 most recently (in the immediately preceding cycle). A detection value represented by the latest detection data (detection data recently received from the control unit 251 and stored). Time-shared data 281 in which the current transmission time (the transmission time of the control request transmitted this time) is recorded. A command value planned for the current transmission time.
[0066] For example, in each cycle of robot control, the processing result data is stored in memory 169 by the robot control unit 272. Also, for example, the detection data may be repeatedly (for example, periodically) acquired by the control unit 251 at the same timing as or different from the start of each cycle of robot control and transferred to the robot control unit 272, and the periodically acquired detection data may be stored in memory 169 by the robot control unit 272. Also, data representing a planned command value for each transmission time may be stored in memory 169 in advance, or the robot control unit 272 may receive a planned command value for each transmission time from the control unit 251 and store the transmission time and the planned command value in memory 169.
[0067] In S602, the robot control unit 272 causes the RT correction unit 271 to execute a correction process. Specifically, for example, the RT correction unit 271 identifies the transmission time and the response time from the time-shared data 281, which is part of the data read in S601, and calculates a corrected time, which is the time obtained by adding the response time to the transmission time. Based on a first pair of the time and the return value, a second pair of the time and the detection value, and a third pair of the time and the command value, the RT correction unit 271 outputs a command value after correcting the command value in the third pair (details of this correction process will be described later with reference to FIG. 8).
[0068] In S603, the robot control unit 272 generates a control request specifying the corrected command value, and in non-real-time communication, transmits the control request to the robot 120 at the current transmission time (the transmission time recorded in the time-sharing data 281).
[0069] In S604, the robot control unit 272 receives a response to the control request sent in S603 in non-real-time communication (a response including control result data having a return value (e.g., position information) as a result of control in accordance with the control request).
[0070] In S605, the robot control unit 272 stores in the memory 169 the return value included in the response received in S604.
[0071] In S606, the robot control unit 272 determines whether or not the robot control has ended (for example, whether or not the robot control process for the last cycle has ended). If the determination result in S606 is true (S606: Yes), the process ends.
[0072] If the determination result in S606 is false (S606: No), the robot control unit 272 determines whether the next control is to be started (S607). Specifically, for example, the robot control unit 272 determines whether the current time has reached the next pre-planned time, or whether an instruction to transmit the next control request has been received (for example, whether time-shared data 281 recording the next transmission time and response time has been received from the control unit 251 of the control device 40M). If the determination result in S607 is false (S607: No), the process returns to S607 after a certain period of time has elapsed. If the determination result in S607 is true (S607: Yes), the process returns to S601.
[0073] FIG. 7 shows an example of training the correction model 290.
[0074] The correction model 290 is trained, for example, by supervised learning. The training data set includes data representing many patterns of force application when the workpiece insertion angle and the machine tool axis are shifted (changing the insertion angle and the amount of shift). Specifically, for example, the training data set includes many combinations of a first set (a set of time and return value), a second set (a set of time and detected value), a third set (a set of time and command value), and a corrected command value, and the correction model 290 is trained using the training data set. Note that the times in each of the first set to the third set are defined as appropriate times. For example, the time in the second set may be the time obtained by adding a pre-measured response time (a response time in non-real-time communication) to the time in the first set or the third set. More specifically, the teacher data set may be a data set including a first set of time series (e.g., time series data of transmission time and return value (e.g., each joint angle)), a second set of time series (e.g., time series data of detection time and detection value (e.g., force sensor reading)), and a third set of time series (e.g., time series data of transmission time and planned command value (e.g., each joint angle)).
[0075] FIG. 8 shows a schematic diagram of the correction process in S602.
[0076] As described above, the RT correction unit 271 outputs a command value after correcting the command value in the third set based on the first set of time and return value, the second set of time and detection value, and the third set of time and command value. Specifically, the RT correction unit 271 inputs the first set, the second set, and the third set to the correction model 290 and obtains an output of the corrected command value.
[0077] In the first set input to the correction model 290, the return value is the return value read out in S601, and the time is the current transmission time (or the previous transmission time).
[0078] In the second set input to the correction model 290, the detection value is the detection value read out in S601, and the time is the corrected time (the time obtained by adding the response time represented by the time-shared data 281 to the current transmission time).
[0079] In the third set input to the correction model 290, the command value is the command value read out in S601, and the time is the current transmission time.
[0080] One embodiment has been described above, but this is merely an example for explaining the present invention, and it is not intended that the scope of the present invention be limited to only this embodiment.
[0081] For example, the above description can be summarized as follows: The following summary may include supplementary explanations and explanations of variations of the above.
[0082] The control system 109 includes one or more interface devices (e.g., the I / O control device 214 and / or the network I / F device 213 of each computing device 40) and one or more processors (e.g., processors 209M and / or 209E).
[0083] The one or more processors perform the following (X) and (Y): (X) repeatedly generate an acquisition request to acquire a detection value related to the robot 120 (an example of a controlled device), transmit the acquisition request in real-time communication via the interface device, and receive detection data representing the detection value as a response to the acquisition request via the interface device; (Y) repeatedly perform a correction process for a command value for the robot 120, generate a control request having the corrected command value, transmit the control request in non-real-time communication via the interface device, and receive control result data representing a return value for the command value included in the control request via the interface device.
[0084] Of the repeated processing in (X) and the repeated processing in (Y), at least the processing in (X) may be a processing that is performed periodically, and the repeated processing in (Y) may or may not be a periodic processing.
[0085] For each control request, the correction process is a process of outputting a command value after correcting the command value in the third set based on a first set of time and return value, a second set of time and detection value, and a third set of time and command value, and in this correction process, the time in the second set is a corrected time, which is a time determined based on the transmission time at which the control request is sent and a response time measured in advance for non-real-time communication.
[0086] The time of the detected value is corrected based on the response time measured in advance for non-real-time communication, and the corrected command value is determined based on the corrected time. Therefore, the controlled device can be controlled with high accuracy in non-real-time communication. Note that the "corrected time" (corrected detection time) may be the corrected time in the embodiment (the time obtained by adding the response time measured in advance for non-real-time communication to the transmission time at which the control request is transmitted) or may be a time determined by another method based on the transmission time and the response time measured in advance.
[0087] The pre-measured response time may be the difference between the measurement start time and the actual operation time. The measurement start time may be the time when a control request is sent via non-real-time communication. The actual operation time may be the time when it is determined that a change in the detection value of the controlled device that operated in response to the control request has occurred. In other words, the pre-measured response time may be the time from when a control request is sent to when a change in the detection value occurs in response to the control request. This makes it possible to associate an appropriate time as the time of the detection value with the detection value in control via non-real-time communication, and to obtain an appropriate corrected command value.
[0088] The control system 109 may be a distributed control system having multiple computing devices, including a first computing device (e.g., control device 40M) and a second computing device (e.g., expansion device 40E). The one or more processors may include a first processor (e.g., processor 209M) that performs at least (X) and a second processor (e.g., processor 209E) that performs at least the correction processing of (Y). The first computing device may include the first processor, and the second computing device may include the second processor. This allows (X) to be executed by the first computing device having a function or hardware suitable for executing (X), and at least the correction processing of (Y) to be executed by the second computing device having a function or hardware suitable for executing at least the correction processing of (Y).
[0089] The correction process may be a process using a machine learning model (e.g., correction model 290) that inputs the first set, the second set, and the third set and outputs a corrected command value. This allows the model to be trained based on a teacher data set including multiple combinations of the first set, the second set, and the third set and the corrected command value, thereby enabling the acquisition of a corrected command value for accurate control. Furthermore, the second arithmetic unit (e.g., the second processor) may be a arithmetic unit having hardware resources (e.g., a processor including a GPU) sufficient to perform the correction process using the machine learning model, while the first arithmetic unit may be a arithmetic unit having hardware resources sufficient to perform a predetermined periodic process (e.g., function as a PLC).
[0090] The first processor may measure a response time in non-real-time communication in advance and transmit time-shared data (e.g., time-shared data 281) representing the measured response time to the second arithmetic device. In the correction process performed by the second processor, the response time on which the corrected time is based may be the response time represented by the time-shared data. This allows the arithmetic device that measured the response time in advance and the arithmetic device that actually controls the controlled device to share the pre-measured response time, thereby enabling accurate control of the controlled device in non-real-time communication.
[0091] The time-shared data may be the response time table 280 itself, in which case the second processor may calculate a corrected detection time by adding the response time represented by the response time table 280 to the transmission time each time a correction process is performed. Furthermore, for example, for each transmission time of a control request to a controlled device, time-shared data representing the transmission time and a pre-measured response time may be transmitted from the first computing device to the second computing device. For each transmission time, the second processor may calculate (determine) a corrected detection time based on the transmission time and the response time obtained from the time-shared data corresponding to the transmission time.
[0092] The controlled device may be a robot (e.g., robot 120). The second processor may perform (Y). The first processor may perform control processing including scan time control of a controlled device other than the robot (e.g., processing machine 119). (X) may be included in the control processing or may be separate from the control processing. Although it is expected that the robot will be controlled by the ROS, the robot control is performed by the second arithmetic unit based on detection values collected in real-time communication by the first arithmetic unit having real-time capabilities, so that accurate robot control is expected even if the second arithmetic unit does not have real-time capabilities.
[0093] The control process of another controlled device may be performed in parallel with the robot control process or after the robot control process is completed. For example, the control of the processing machine 119 may be performed after the setting of a workpiece on the processing machine 119 is completed (after the robot control is completed). When control of the robot 120 is required depending on the progress of processing by the processing machine 119, the control of the processing machine 119 (control via real-time communication) and the control of the robot 120 (control via non-real-time communication) may be performed in parallel or sequentially.
[0094] Furthermore, the same arithmetic unit may control both the robot and another controlled device. For example, as illustrated in Fig. 9, the robot control unit 272 and the RT correction unit 271 may be provided in a control unit 40M having a control unit 251. Although not shown, of the robot control unit 272 and the RT correction unit 271 in Fig. 9, the RT correction unit 271 may be provided in an extension unit 40E.
[0095] Furthermore, for example, the corrected detection time may reflect the response time in real-time communication in addition to the response time measured in advance in non-real-time communication. The response time in real-time communication may be a measured response time (e.g., a response time measured using the same or a different method as the method for measuring the response time in non-real-time communication in advance), or may be a worst-case response time (e.g., the maximum value of the response time specified in the standard (specification) for real-time communication). For example, the corrected detection time may be the time obtained by adding the response time measured in advance in non-real-time communication and the response time in real-time communication to the transmission time.
[0096] Furthermore, in this specification, "time" may be in units of year, month, day, hour, minute, and second, or in units of coarser or finer than that, or may be the difference (time) from a certain reference point in time.
[0097] 109...Control System
Claims
1. A control system for controlling a controlled device, comprising one or more interface devices and one or more processors, wherein the one or more processors: (X) repeatedly generate an acquisition request for acquiring a detection value related to the controlled device, transmit the acquisition request in real-time communication through the interface device, and receive detection data representing the detection value as a response to the acquisition request through the interface device; (Y) repeatedly perform a correction process for a command value for the controlled device, generate a control request having the corrected command value, transmit the control request in non-real-time communication through the interface device, and receive control result data representing a return value for the command value held by the control request through the interface device; and for each control request, the correction process is a process of outputting a command value after correction of the command value in the third set based on a first set of time and return value, a second set of time and detection value, and a third set of time and command value, In the correction process, the time in the second set is a corrected time that is determined based on a transmission time at which the control request is transmitted and a response time measured in advance for the non-real-time communication.
2. The control system of claim 1, wherein the pre-measured response time is the difference between the measurement start time and the actual operation time, the measurement start time is the time when a control request is sent in the non-real-time communication, and the actual operation time is the time when it is determined that a change has occurred in the detection value of the controlled device that operated in response to the control request.
3. A distributed control system comprising a plurality of arithmetic units including a first arithmetic unit and a second arithmetic unit, said one or more processors comprising: a first processor that performs at least (X); and a second processor that performs at least the correction processing of (Y), said first arithmetic unit comprising said first processor, and said second arithmetic unit comprising said second processor. The control system described in claim 2.
4. The control system according to claim 3, wherein the correction process is a process using a machine learning model that uses the first set, the second set, and the third set as input and outputs a corrected command value.
5. The control system of claim 3, wherein the first processor measures the response time in advance and transmits time-shared data representing the measured response time to the second computing device, and in the correction process performed by the second processor, the response time on which the corrected time is based is the response time represented by the time-shared data.
6. The control system of claim 3, wherein the controlled device is a robot, the second processor performs (Y), the first processor performs a control process including scan time control of a controlled device other than the robot, and (X) is included in the control process or is separate from the control process.
7. The control system according to claim 1, wherein the correction process is a process using a machine learning model that takes the first set, the second set, and the third set as input and outputs a corrected command value.
8. A control method in which a computer repeatedly generates an acquisition request to acquire a detection value related to a controlled device, transmits the acquisition request in real-time communication, and receives detection data representing the detection value as a response to the acquisition request, wherein the computer repeatedly performs a correction process of a command value for the controlled device, generates a control request having a corrected command value, transmits the control request in non-real-time communication, and receives control result data representing a return value for the command value held by the control request, wherein for each control request, the correction process is a process of outputting a corrected command value for the command value in a first set of time and return value, a second set of time and detection value, and a third set of time and command value, wherein the time in the second set in the correction process is a corrected time that is determined based on the transmission time at which the control request is transmitted and a response time measured in advance for the non-real-time communication.
Citation Information
Patent Citations
Control device, control program, and control system
JP2018173710A
Control device, control method, and program
WO2019117249A1
