Control System

By connecting the data line and signal line of the timer value in the factory automation control system, and using the trigger signal to synchronize the timer value, the problem of difficult timer synchronization between multiple control devices is solved, the time synchronization process is simplified, and the time efficiency is improved. System efficiency.

CN114080574BActive Publication Date: 2024-09-03OMRON CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080046725.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-07-04
Filing Date
2020-07-02
Publication Date
2024-09-03
Estimated Expiration
2040-07-02

AI Technical Summary

Technical Problem

In existing factory automation control systems, it is difficult to synchronize timers between multiple control devices, resulting in inconsistent control times between devices and affecting the overall synchronization and efficiency of the system.

Method used

A control system with data lines and signal lines between units with timers is used to synchronize the timer value through a trigger signal, and the adjustment unit obtains the timer value through the data line when receiving the signal, thereby realizing the timer connection between the second unit and the first unit. The unit's timer alignment eliminates request/response communication sessions and simplifies time synchronization processing.

Benefits of technology

This simplifies and shortens time synchronization processing between units, ensures timer alignment between multiple control devices, and improves the overall synchronization and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114080574B_ABST
    Figure CN114080574B_ABST
Patent Text Reader

Abstract

The control system comprises: a first unit and a second unit each having a timer; a data line for transmitting data including a timer value represented by the timer between the first unit and the second unit; a signal line for electrically connecting the first unit and the second unit; and an adjustment unit connected to the signal line and the data line, wherein the adjustment unit obtains the timer value via the data line when receiving a trigger signal via the signal line, and aligns the timer of the second unit with the timer of the first unit based on the obtained timer value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a control system of FA (Factory Automation). Background Art

[0002] FA technology using control devices such as PLC (Programmable Logic Controller) has become widely used in various production sites. Such control devices send and receive data with one or more devices via a bus or network.

[0003] As control systems become more highly functional, a structure in which multiple control devices that perform independent control processing are connected via a network is also being realized. For example, Japanese Patent Publication No. 2015-118505 (Patent Document 1) discloses a control system in which multiple control devices are connected to a controller-level network. Multiple input-output devices are connected to multiple control devices via a device-level network, respectively. Each control device sends input values ​​obtained from multiple input-output devices to a server via a controller-level network.

[0004] In Japanese Patent Application Laid-Open No. 2014-146877 (Patent Document 2), the first communication device and the second communication device are connected via a PCIe cable IF. Regarding the correction amount calculation for time synchronization, a time request packet is sent from the first communication device to the second communication device, and a time response packet is sent from the second communication device to the first communication device.

[0005] Prior art literature

[0006] Patent Literature

[0007] Patent Document 1: Japanese Patent Application Publication No. 2015-118505

[0008] Patent Document 2: Japanese Patent Application Publication No. 2014-146877 Summary of the invention

[0009] Problems to be solved by the invention

[0010] In Patent Document 1, a plurality of control devices perform control processing independently of each other, so that the timing of collecting data (input data) collected or generated in a device or the timing of sending data such as instructions for the device (output data) to an object device cannot be synchronized between one control device and other control devices.

[0011] In addition, in order to make the equipment connected to the above-mentioned one control device and the equipment connected to the above-mentioned other control devices operate in conjunction, it is necessary to exchange information of each device between these control devices, but it is impossible to synchronize the timing of collecting input data or the timing of outputting output data with each other, so it is difficult to synchronize the control timing between multiple devices.

[0012] Patent document 2 provides a unit for calculating the correction amount of time synchronization for such timing synchronization, but the time synchronization process requires the exchange of time request packets and time response packets. Therefore, the synchronization process is complicated, and the communication time of the packets and the time synchronization processing including the correction take time.

[0013] One object of the present disclosure is to provide a structure that simplifies the processing related to time synchronization between units and shortens the time required for the processing.

[0014] Means for solving problems

[0015] A control system for factory automation in an example of the present disclosure includes: a first unit and a second unit each having a timer; a data line for exchanging data including a timer value represented by the timer between the first unit and the second unit; a signal line electrically connecting the first unit and the second unit; and an adjustment unit connected to the signal line and the data line. The first unit includes: a network interface connected to a first network including the Internet; and a data communication circuit connected to the data line. The second unit includes: a network controller connected to a second network different from the first network; and a communication controller connected to the data line. The communication controller of the second unit is connected to the first network via the network interface of the first unit. The first unit performs the following information processing: the information processing includes a process of setting a value synchronized with the time of a master clock in the first network to the timer of the first unit, and a process of monitoring access to the second unit from the first network. When receiving a trigger signal via the signal line, the adjustment unit obtains the timer value via the data line, and aligns the timer of the second unit with the timer of the first unit based on the obtained timer value.

[0016] According to the present disclosure, the adjustment related to time synchronization such as aligning the timers between the units can be implemented with the trigger signal as an opportunity. In addition, when the trigger signal is provided, the adjustment unit obtains the timer value transmitted in the data line between the units, and aligns the timer of the second unit with the timer of the first unit based on the obtained timer value.

[0017] Therefore, the period for aligning the timer can be simply determined by the trigger signal. In addition, the adjustment unit can align the timer by using the timer value transmitted in the data line. As a result, there is no need for a communication session of request / response of the timer value between the units in order to synchronize the time such as aligning the timer, so the time spent on the timer alignment can be shortened accordingly.

[0018] In the above disclosure, one of the first unit and the second unit transmits the trigger signal to the signal line.

[0019] According to the present disclosure, the transmission source of the trigger signal may be either the first unit or the second unit. Therefore, either the first unit or the second unit can determine the timing for performing the calibration process.

[0020] In the above disclosure, the control system further includes a unit that transmits a trigger signal to a signal line, which is different from the first unit and the second unit.

[0021] According to the present disclosure, it is possible to cause another unit different from the first unit and the second unit to transmit a trigger signal.

[0022] In the above disclosure, the adjustment unit is provided in one of the first unit and the second unit.

[0023] According to the present disclosure, it is possible to cause either the first unit or the second unit to perform a process for time synchronization such as an alignment timer.

[0024] In the above disclosure, the control system further includes a unit including an adjustment unit different from the first unit and the second unit.

[0025] According to the present disclosure, a unit other than the first unit and the second unit can perform a process for time synchronization such as an alignment timer, thereby preventing the load of the process from being imposed on the first unit and the second unit.

[0026] In the above disclosure, when the adjustment unit receives a trigger signal via the signal line, it uses the timer value obtained via the data line to obtain the difference between the timer value of the timer of the first unit and the timer value of the timer of the second unit, and uses the adjustment value based on the obtained difference to adjust the timer value of the timer of the second unit, thereby aligning the timer of the second unit with the timer of the first unit.

[0027] According to the present disclosure, the adjustment value used for the adjustment of the time synchronization such as the alignment timer can be determined based on the difference between the timer value of the timer of the first unit and the timer value of the timer of the second unit, that is, the size of the synchronization deviation. For example, the adjustment can be implemented so that the larger the synchronization deviation, the larger the adjustment value.

[0028] In the above disclosure, the adjustment unit determines the adjustment value according to the trend of the magnitude change of the difference detected each time the trigger signal is received.

[0029] According to the present disclosure, the adjustment value can be determined based on the trend of the magnitude change of the synchronization deviation represented by the difference. For example, when the synchronization deviation tends to increase, the adjustment value can be increased.

[0030] In the above disclosure, the control system further includes a plurality of control devices connected to the first network, each of the plurality of control devices includes a first unit and a second unit, and the plurality of control devices are synchronized with each other through a common time received via the first network and a time used for synchronization between timers.

[0031] According to the present disclosure, the time can be synchronized between the control devices including the first unit and the second unit, and in each control device, the time can be synchronized between the units using a synchronized timer. Therefore, each control device and each unit included in each control device can be synchronized with each other.

[0032] In the above disclosure, the control system also has: one or more devices connected to multiple control devices respectively via a second network lower than the first network; and a synchronization timer synchronized with each other between the multiple control devices, and the control device and one or more devices connected to the second network of the control device are synchronized with each other through the timer value of the synchronization timer.

[0033] Therefore, each control device, each unit included in each control device, and each device connected to each control device can be synchronized with each other.

[0034] Effects of the Invention

[0035] According to the present disclosure, the processing related to the time synchronization between units is simplified, and the time required for the processing is shortened. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram showing an example of an application scenario of the control system 1 of the present embodiment.

[0037] Figure 2 It is a schematic diagram showing an example of the overall configuration of the control system 1 according to the present embodiment.

[0038] Figure 3 Schematic diagram showing a network configuration example of the control system 1 according to the present embodiment.

[0039] Figure 4 It is a schematic diagram showing the data communication process of the control system 1 according to the present embodiment.

[0040] Figure 5It is a schematic diagram showing a configuration example of units of the control device 2 according to the present embodiment.

[0041] Figure 6 1 is a block diagram showing a hardware configuration example of the CPU unit 100 included in the control device 2 according to the present embodiment.

[0042] Figure 7 1 is a block diagram showing a hardware configuration example of a functional unit 200 included in the control device 2 according to the present embodiment.

[0043] Figure 8 1 is a block diagram showing a hardware configuration example of the functional unit 300 included in the control device 2 according to the present embodiment.

[0044] Fig. 9 This is a block diagram showing a software configuration example of the CPU unit 100 according to the present embodiment.

[0045] Fig. 10A This is a diagram schematically showing an example of a configuration for time synchronization managed by the control device 2 according to the present embodiment.

[0046] Fig. 10B This is a diagram schematically showing an example of a configuration for time synchronization managed by the control device 2 according to the present embodiment.

[0047] Fig.11 This is a diagram showing an example of a flowchart of the processing according to the present embodiment.

[0048] Fig.12 1 is a diagram showing a configuration example of a manufacturing execution system 400 according to the present embodiment.

[0049] Fig.13 It means that by executing Fig.12 A diagram of a DB manager provided by the DB management program 411.

[0050] Fig.14A This is a schematic diagram showing a processing example when the control device 2 according to the present embodiment transmits time-series data to the manufacturing execution system 400 .

[0051] Fig. 14B This is a schematic diagram showing a processing example when the control device 2 according to the present embodiment transmits time-series data to the manufacturing execution system 400 .

[0052] Fig.15 Schematically showing frames of time-series data generated by the control device 2 according to the present embodiment. DETAILED DESCRIPTION

[0053] The embodiments of the present invention will be described in detail with reference to the accompanying drawings. In addition, the same or corresponding parts in the drawings are denoted by the same reference numerals and their description will not be repeated.

[0054] <A. Application examples>

[0055] Reference Figure 1 , an example of a scenario in which the present invention is applied is described. Figure 1 1 is a schematic diagram showing an example of an application scenario of the control system 1 of the present embodiment. The control system 1 of the present embodiment is a control system for factory automation, and has a plurality of control devices 2A, 2B, and 2C. Each control device controls any control object (for example, a manufacturing device or equipment) including field equipment 90 (90A, 90B, 90C, 90D, 90E, 90F, and 90I). Each control device has the same structure, so the control device 2A is used as a representative for description.

[0056] In the control system 1, each control device 2A includes: a CPU unit 100 and a functional unit 200 each having a timer, a data bus 111 for exchanging data between the CPU unit 100 and the functional unit 200, and a signal line 113 for electrically connecting the CPU unit 100 and the functional unit 200. Time synchronization is performed using the timer value represented by the counter OC1 of the functional unit 200 and the timer value represented by the counter DC2 of the CPU unit 100.

[0057] Specifically, for example, at startup, the functional unit 200 obtains the absolute time obtained from the master clock 191A, and sets the value synchronized with the obtained absolute time in the counter OC1. The value of the counter OC1 is transmitted to the CPU unit 100 via the data bus 111, and the value of the counter OC1, that is, the timer value, is set in the counter DC2 in the CPU unit 100. Thereafter, the CPU unit 100 periodically updates (increments or decrements) the value of the counter DC2 using the output of the internal hardware circuit.

[0058] After startup, the functional unit 200 periodically updates the value of the counter OC1 based on the absolute time obtained from the master clock 191A. The functional unit 200 periodically transmits the value of the counter OC1, that is, the timer value, via the data bus 111.

[0059] When a trigger signal is provided via the signal line 113, a correction process for synchronizing the time is implemented. Specifically, when the CPU unit 100 receives the time synchronization signal via the signal line 113, it latches (receives) the timer value represented by the counter OC1 transmitted in the data bus 111, and obtains (latches) the timer value represented by the counter DC2 of the CPU unit 100. Based on these obtained timer values, the CPU unit 100 aligns the timer (counter DC2) of the CPU unit 100 with the timer (counter OC1) of the functional unit 200. That is, the CPU unit 100 calculates the difference between the two obtained timer values, that is, the deviation of the time synchronization, and corrects the value of the counter DC2 to reduce the calculated synchronization deviation. In this embodiment, the correction of the timer value or the counter value is a concept that includes the adjustment of the timer value so that the time synchronization deviation is reduced.

[0060] Thus, even if a synchronization mismatch occurs due to an error in a hardware circuit of the functional unit 200 or the CPU unit 100 , the value of the counter DC2 can be always synchronized with the value of the counter OC1 , that is, the master clock 191A.

[0061] In addition, in each control device 2, the timer value of the counter DC2 is referred to in order to schedule the control program for controlling various devices such as the field device 90 and the input / output program for exchanging data with the field device 90 via the network 110. Therefore, in each control device 2, such scheduling can be performed in synchronization with the timer value of the counter DC2 that is always synchronized with the master clock 191A.

[0062] In each control device 2, correction processing related to time synchronization between units can be implemented with a trigger signal. For example, by periodically transmitting a time synchronization signal as a trigger signal, correction processing for correcting the value of the counter DC2 to eliminate (or reduce) synchronization deviation can be periodically implemented.

[0063] As described above, the control devices 2A, 2B, and 2C include the counter OC1 and the counter DC2 that are time-synchronized (corresponding to the time synchronization (2) in the figure).

[0064] Since the counter OC1 is synchronized with the common timer 191A, the multiple control devices 2A, 2B, and 2C can be synchronized with each other (equivalent to the time synchronization (1) in the figure). In addition, the counter DC2 of each of the control devices 2A, 2B, and 2C is synchronized with the timers 91A, 91B, 91C, 91D, 91E, 91F, 91G, 91H, and 91I (hereinafter collectively referred to as timers 91A to 91I) of one or more field devices 90 connected via the network 110. As a result, the control devices 2A, 2B, and 2C are synchronized with the field devices 90A to 90I (equivalent to the time synchronization (3) in the figure). As a result, the devices of the entire control system 1 can be synchronized with each other with the time of the master clock 191A.

[0065] Hereinafter, more specific application examples of the present embodiment will be described.

[0066] In the following description, as a typical example of a "control device", a PLC (programmable logic controller) is used as a specific example for description, but it is not limited to the name of PLC, and the technical ideas disclosed in this specification can be applied to any control device. In addition, the entire system including the PLC (control device) will also be referred to as a "control system" below.

[0067] <B. Overall structure of the control system>

[0068] First, the overall configuration of a control system for FA (Factory Automation) applicable to the present embodiment will be described. Figure 2 It is a schematic diagram showing an example of the overall configuration of the control system 1 according to the present embodiment.

[0069] Reference Figure 2 In the control system 1, the network connection is divided into multiple levels, and different functions are assigned to each level of the network. There is no specific limitation, for example, four levels of networks 11 to 14 are provided.

[0070] The network 11 is a control-level network. The network 11 is connected to a plurality of control devices 2A, 2B, and 2C (hereinafter, sometimes collectively referred to as "control devices 2"), a device / production line management device 190, and a display device 280 that provides SCADA (Supervisory Control And Data Acquisition) functions, forming a data link in the network 11 that can exchange data between devices. The device / production line management device 190 and the display device 280 are equivalent to devices connected to the network and equipment for managing production lines. The network 11 mainly provides the transmission of information related to the control system as its main function.

[0071] Various field devices 90 such as sensors and actuators are connected to the control device 2. These field devices 90 may be directly connected to the control device 2 via an input / output unit installed in the control device 2, or may be connected to the control device 2 via a network 110. Figure 2 In the illustrated configuration example, the control device 2 is connected to one or more networks 110. One or more field devices 90 are connected to each network 110. The one or more field devices 90 each include an actuator that imparts a certain physical effect to a manufacturing device or production line (hereinafter, also collectively referred to as "field"), and an input / output device that exchanges information with the field. Figure 2 In the control system 1 shown, in addition to the four levels of networks 11 to 14 , a field-level network 110 is added.

[0072] The data exchanged between the control device 2 and the field device 90 via the network 110 is updated in an extremely short cycle of several hundred μsec to several tens of msec. The updating process of the exchanged data is also referred to as input / output refreshing process.

[0073] The network 12 is provided as a management-level network. A device / line management device 190 for managing devices and production lines, and manufacturing management devices 380 and 390 for managing manufacturing plans, etc. are connected to the network 12. The device / line management device 190 and the manufacturing management devices 380 and 390 exchange management information such as manufacturing plans and information on devices or production lines via the network 12.

[0074] The network 13 is provided as a computer-level network. Manufacturing management devices 380 and 390 and a manufacturing execution system (EMS: Manufacturing Execution System) 400 that manages a time series DB (abbreviation of database) 450 are connected to the network 13. The manufacturing management devices 380 and 390 and the manufacturing execution system 400 exchange data of production management and information systems via the network 13.

[0075] The manufacturing execution system 400 stores observation values, which are input values ​​from the field devices 90 collected via the network 13 , in the time series DB 450 as time series data in the order in which they were observed.

[0076] Specifically, in this embodiment, the control device 2 has a function of generating a frame including a designated observation value. The control device 2 transmits the generated frame to the manufacturing execution system 400 via the networks 11, 12, and 13. The manufacturing execution system 400 stores the frames of the observation value received from the control device 2 in the time series DB 450 in a time series.

[0077] In this embodiment, data stored in the time series DB 450 is also referred to as “time series data.” In this embodiment, “time series data” refers to a series of values ​​obtained by continuously (or discontinuously at certain intervals) observing temporal changes in data (observation values) about an arbitrary object.

[0078] In this specification, "observation value" is a concept that collectively refers to values ​​(actual values) that can be used in control calculations by the control device 2, and typically includes values ​​obtained from the control object and input to the control calculation (measurement values ​​obtained from the field, etc.), output values ​​for the control object determined by the control calculation based on the obtained input values ​​(command values ​​given to the field, etc.), calculation values ​​calculated during the control calculation (arbitrary variable values), etc. In other words, "observation value" includes any value that can be stored as data in the control device 2 or can be output from the control device 2 as data to the outside.

[0079] The network 14 includes an external network such as the Internet. The manufacturing execution system 400 and external devices on the cloud are connected to the network 14. The manufacturing execution system 400 exchanges data with the devices on the cloud and transmits the data of the time series DB 450 to the devices on the cloud.

[0080] The control device 2 can be connected to a support device 500. The support device 500 is a device that assists the control device 2 in making preparations required for controlling a control target.

[0081] The control devices 2A, 2B and 2C connected to the network 11 of the control system 1 are used for different processes 3A, 3B and 3C, respectively. Although not limited, for example, process 3A represents the assembly process of the product (workpiece), process 3B represents the painting process of the assembled product, and process 3C represents the inspection process of the painted product.

[0082] exist Figure 2 In the control system 1 shown, the network 12 and the networks 11 and 110 at the levels below it are also referred to as "factory networks", and provide control system communications for exchanging data for actually controlling devices (hereinafter, sometimes collectively referred to as "control system data"). On the other hand, the network 13 and the networks 14 at the levels above it are also referred to as "company networks", and provide information system communications for exchanging data for monitoring, managing, and controlling production activities in production lines / factories, etc. (hereinafter, sometimes collectively referred to as "information system data").

[0083] In networks 11 to 14 and network 110, protocols and architectures corresponding to such required characteristic differences are adopted. For example, as the protocol of networks 11 and 12 belonging to the factory network, EtherNet / IP (registered trademark), an industrial open network in which a control protocol is installed on the general Ethernet (registered trademark), may be used. In addition, as the protocol of network 110, EtherCAT (registered trademark), which is an example of a network for machine control, may also be adopted. In addition, the protocol of network 11 (first protocol) and the protocol of network 110 (second protocol) may be the same or different. By adopting a network technology suitable for such machine control, it is possible to provide real-time performance that guarantees the time required for transmission between devices.

[0084] On the other hand, as the protocol of the networks 13 and 14 belonging to the company network, in order to ensure the diversity of connection destinations, general-purpose Ethernet or the like is used. By adopting general-purpose Ethernet, it is possible to eliminate restrictions such as the amount of data that can be transmitted.

[0085] <C. Time synchronization in control system 1>

[0086] exist Figure 1 In the factory network shown, a plurality of control devices 2A, 2B, and 2C connected to the network 11 respectively transmit and receive data with one or more field devices 90 connected via the network 110. Specifically, the control device 2 performs processing (input processing) of collecting data (input data) collected or generated in the field device 90, processing (calculation processing) of generating data (output data) such as instructions for the field device 90, and processing (output processing) of sending the generated output data to the target field device 90.

[0087] The arrival time of data needs to be guaranteed in the network 110. Therefore, the control device 2 has a timer that regulates the timing of data transmission and synchronizes the time between the entities that transmit and receive data (that is, one or more field devices 90).

[0088] However, when time synchronization is not achieved between the plurality of control devices 2, for example, the field device 90 connected to one control device 2 cannot be synchronized with the field device 90 connected to another control device 2. As a result, the timing of input / output refresh processing may be inconsistent, making it difficult to operate the plurality of field devices 90 connected to different control devices 2 in a coordinated manner.

[0089] Therefore, in the control system 1 of the present embodiment, the timers of the plurality of control devices 2 are synchronized with each other, thereby realizing cooperative control of the plurality of field devices 90 connected to different control devices 2, that is, between different processes.

[0090] Next, the time synchronization function provided by the control system 1 of the present embodiment will be described.

[0091] (c1. Network structure example)

[0092] Next, a network configuration example of the control system 1 according to the present embodiment will be described. Figure 3 Schematic diagram showing a network configuration example of the control system 1 according to the present embodiment.

[0093] Figure 3 The control system 1 shown has a plurality of control devices 2A, 2B, and 2C and a plurality of field devices 90A to 90I. As an example, at least a portion of the control devices of the control system 1 adopts a daisy-chain connected network. The control devices 2A, 2B, and 2C each function as a master device that manages data transmission within the corresponding network 110. The field devices 90A to 90I function as slave devices that perform data transmission according to instructions from the corresponding master device.

[0094] The control devices 2A, 2B, and 2C are connected to a control-level network 11 (higher network). The network 11 is connected to, for example, a device / line management device 190 .

[0095] On the network 110 connected to the control device 2A, field devices 90A, 90B, and 90C are connected in sequence in a daisy chain manner; on the network 110 connected to the control device 2B, field devices 90D, 90E, and 90F are connected in sequence in a daisy chain manner; and on the network 110 connected to the control device 2C, field devices 90G, 90H, and 90I are connected in sequence in a daisy chain manner.

[0096] In the network 110, the control device 2 and one or more field devices 90 can be regarded as communication devices with data transmission function. Figure 3 In the example shown, the control device 2 and one or more field devices 90 each have a function of, when receiving data transmitted on the network from a communication device connected adjacently, transmitting the data to another communication device connected adjacently as needed.

[0097] In the control system 1 of the present embodiment, the transmission and reception timings are synchronized (equivalent to the time synchronization (3) in the figure) between the plurality of communication devices connected to the network 110, namely, the control device 2 and the one or more field devices 90. Specifically, the control device 2 and the one or more field devices 90 each have a timer (or a counter that increases or decreases synchronously) that is time-synchronized with each other. The control device 2 and the one or more field devices 90 each determine the timing of sending or receiving data according to their time-synchronized timers or counters.

[0098] In the present embodiment, "timing" means a concept of a period, time or moment of occurrence of a certain phenomenon. In addition, "time synchronization" means synchronizing timers, time data, etc. that are mutually available.

[0099] exist Figure 3 In the example shown, timers 101A, 101B, and 101C are respectively connected to counter OC1 (refer to Figure 1 ) corresponds to the timers 102A, 102B and 102C respectively corresponding to the counter DC2 (refer to Figure 1 ) corresponds. Figure 3 , more specifically Figure 1 The times shown are synchronized (1), (2) and (3).

[0100] The control device 2A has a timer 102A, and the field devices 90A, 90B, and 90C have timers 91A, 91B, and 91C, respectively. The timer 102A of the control device 2A functions as a master device, and the timers 91A, 91B, and 91C of the field devices 90A, 90B, and 90C synchronize their timings with respect to the master device. For example, a value based on the timer value of the timer 102A is set in the timers 91A, 91B, and 91C.

[0101] The control device 2B has a timer 102B, and the field devices 90D, 90E, and 90F have timers 91D, 91E, and 91F, respectively. The timer 102B of the control device 2B functions as a master device, and the timers 91D, 91E, and 91F of the field devices 90D, 90E, and 90F synchronize their timings with respect to the master device. For example, a value based on the timer value of the timer 102B is set in the timers 91D, 91E, and 91F.

[0102] The control device 2C has a timer 102C, and the field devices 90G, 90H, and 90I have timers 91G, 91H, and 91I, respectively. The timer 102C of the control device 2C functions as a master device, and the timers 91G, 91H, and 91I of the field devices 90G, 90H, and 90I synchronize their timing with respect to the master device. For example, a value based on the timer value of the timer 102C is set in the timers 91G, 91H, and 91I.

[0103] That is, the control devices 2A, 2B, and 2C each function as a master device that manages data transmission within the corresponding network 110, and the field device 90 connected to each control device 2 functions as a slave device that performs data transmission according to instructions from the master device. By synchronizing the timers between the master device and the slave device at all times, the data transmission timing and the like can be made consistent between the control device 2 and the field device 90 constituting the network 110.

[0104] exist Figure 3 In the example shown, the control device 2A also includes a timer 101A that is synchronized with the timer 102A. The control device 2B also includes a timer 101B that is synchronized with the timer 102B. The control device 2C also includes a timer 101C that is synchronized with the timer 102C (equivalent to the time synchronization (2) in the figure). In the control system 1, for example, any one of the timers 101A, 101B, and 101C can function as a master device of the entire control system 1.

[0105] As an example, in Figure 3 In the example, the timer 101A of the control device 2A is set as the master device, and the timers of the control devices 2B and 2C are synchronized with the master device. Thus, the multiple control devices 2A, 2B, and 2C can be synchronized with each other (equivalent to the time synchronization (1) in the figure).

[0106] In this way, the plurality of control devices 2A, 2B, and 2C respectively have inter-device timers (timers 101A, 101B, and 101C) that are time-synchronized between the plurality of control devices 2A, 2B, and 2C, and inter-device timers (timers 102A, 102B, and 102C) that are time-synchronized with one or more field devices 90 connected via the network 110, and the inter-device timers and the inter-device timers are time-synchronized with each other. As a result, the inter-device timer (timer 102A) that is time-synchronized between the control device 2A and the field devices 90A, 90B, and 90C, the inter-device timer (timer 102B) that is time-synchronized between the control device 2B and the field devices 90D, 90E, and 90F, and the inter-device timer (timer 102C) that is time-synchronized between the control device 2C and the field devices 90G, 90H, and 90I are time-synchronized with each other.

[0107] In addition, Figure 2 In the description, a structural example of setting the timer of any control device 2 as the master device is described, but the time obtained from the outside via the network 11 can also be used as the master device, or the timer of an external device such as the device / production line management device 190 can also be used as the master device.

[0108] (c2. Data communication synchronized at all times)

[0109] Figure 4 Schematic diagram showing data communication processing of the control system 1 according to the present embodiment. Figure 4 Data is exchanged between the control device 2A and the plurality of field devices 90A to 90C connected to the network 110 according to a predetermined system cycle.

[0110] Data is also exchanged between the control device 2B and the plurality of field devices 90D to 90F, and between the control device 2C and the plurality of field devices 90G to 90I, in accordance with the system cycle. Through such data exchange, control actions of the control device 2 and the field devices 90 are realized. In the following description, communication on the network 110 is also referred to as "lower network (NW) communication".

[0111] The control devices 2A, 2B, and 2C connected to the upper network 11 exchange data collected from the field devices 90 by input processing, output data generated by calculation processing, and the like according to a predetermined system cycle. Through such data exchange, the field devices 90 connected to the control device 2A, the field devices 90 connected to the control device 2B, and the field devices 90 connected to the control device 2C can be operated in a linked manner. In other words, the field devices 90 can be operated in a linked manner between different processes. In the following description, communication on the network 11 is also referred to as "upper network (NW) communication".

[0112] In the control system 1 of the present embodiment, the timing at which data transmission in the lower network communication should be started is determined based on the timers that are constantly synchronized between the plurality of control devices 2A, 2B, and 2C. As a result, the timing of data exchange with the field device 90 can be made consistent between the plurality of control devices 2A, 2B, and 2C, and as a result, the control timing of the field device 90 can be synchronized between different processes.

[0113] <D. Configuration and Time Synchronization of Control Device 2>

[0114] Figure 5 Schematic diagram showing a configuration example of a unit of the control device 2 of the present embodiment. Figure 5 The control device 2 of the control system 1 includes a CPU (Central Processing Unit) unit 100 (hereinafter referred to as the CPU unit 100), one or more functional units 200, and one or more functional units 300. Figure 5In the embodiment, the control device 2 has four function units 300, but may have one or more function units 300. In addition, the control device 2 has one function unit 200, but may have two or more function units 200. The CPU unit 100 connects one or more function units 200 to the data bus 111 via the signal line 113. In addition, the CPU unit 100 connects one or more function units 300 via the data bus 112.

[0115] The data bus 111 is not limited, and is, for example, a bus that complies with an I / O serial interface of PCIe (PCI Express (Peripheral Component Interconnect Express)). The signal line 113 is an optical fiber cable or an electrical signal cable, and transmits a timing synchronization signal 130 as a trigger signal.

[0116] The CPU unit 100 includes a program execution unit that executes a program created in accordance with a control target. More specifically, the CPU unit 100 corresponds to a calculation processing unit that executes a system program and various user programs.

[0117] The functional unit 200 performs communication processing or information processing. The functional unit 200 has an interface connected to the data bus 111 and a signal port 212P connected to the signal line 113. The functional unit 200 is arranged as an intermediary between the network 11 and the control device 2, so that the CPU unit 100 can perform data communication with the device connected to the network 11 via the functional unit 200. In addition, by connecting the signal line 113 between the signal port 110P of the CPU unit 100 and the signal port 212P of the functional unit 200, the CPU unit 100 and the functional unit 200 receive the time synchronization signal 130 via the signal line 113.

[0118] In this embodiment, the functional unit 200 monitors access to the CPU unit 100 from the Internet such as the network 14 and access to the CPU unit 100 from other devices in the network 11, and when the occurrence of certain security events is detected, a notification related to the detected security event is made to the inside or outside of the control device 2. In addition, the information processing implemented by the functional unit 200 is not limited to security monitoring processing.

[0119] The functional unit 300 has the function of a so-called I / O unit that exchanges signals with the control target devices and apparatuses such as the field device 90, and various devices (sensors, actuators, etc.) configured thereon. Specifically, the functional unit 300 outputs the command value calculated in the CPU unit 100 to the field, or collects input values ​​from the field. As the functional unit 300, for example, there are one or more modules including a DI (Digital Input) module that receives a digital signal from the control target, a DO (Digital Output) module that outputs a digital signal to the control target, an AI (Analog Input) module that receives an analog signal from the control target, and an AO (Analog Output) module that outputs an analog signal to the control target. In addition, as the functional unit 300, a controller equipped with special functions such as PID (Proportional Integral Derivative) control or motion control may be included.

[0120] The functional unit 200 or the functional unit 300 can be provided as an extension unit that can be detachably attached to the CPU unit 100 .

[0121] (d1. Configuration of CPU unit 100)

[0122] Figure 6 1 is a block diagram showing a hardware configuration example of the CPU unit 100 included in the control device 2 according to the present embodiment.

[0123] The CPU unit 100 includes a processor 102, a chipset 104, a primary storage device 106, a secondary storage device 108, an upper network controller 105, a USB (Universal Serial Bus) controller 107, a memory card interface 114, local bus controllers 120, 122, a field network controller 118, a counter 126, an RTC (Real Time Clock) 128, and a signal port 110P.

[0124] The processor 102 is composed of a CPU, an MPU (microprocessor unit), a GPU (Graphics Processing Unit), etc., reads various programs stored in the secondary storage device 108, expands and executes them in the main storage device 106, thereby realizing control corresponding to the control object and various processes described later. The secondary storage device 108 is composed of a non-volatile storage device such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive). The main storage device 106 is composed of a volatile storage device such as a DRAM (Dynamic Random Access Memory) or an SRAM (Static Random Access Memory).

[0125] The chipset 104 realizes processing as a whole of the CPU unit 100 by controlling the processor 102 and each device.

[0126] In addition to system programs for realizing basic functions, user programs created according to manufacturing devices or equipment to be controlled are stored in the secondary storage device 108. In addition, a time series database described later is also stored in the secondary storage device 108.

[0127] The upper network controller 105 communicates with the manufacturing execution system 400 or a device on the cloud via the upper network 11 (see Figure 1 ) etc. The USB controller 107 controls data exchange with the support device 500 via the USB connection.

[0128] The memory card interface 114 is configured to allow the memory card 116 to be attached and detached, and is capable of writing data to the memory card 116 and reading various data (user programs, trace data, etc.) from the memory card 116 .

[0129] The counter 126 is used as a time reference for managing the execution timing of various processes in the CPU unit 100. The counter 126 typically increments or decrements the counter value at each predetermined cycle. In the CPU unit 100, as the counter 126, a high precision event timer (HPET: High Precision Event Timer) as a hardware timer configured on the system bus of the drive processor 102 can be used for implementation, or a dedicated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array: Field Programmable Gate Array) can be used for implementation.

[0130] The RTC 128 is a counter having a timing function, and provides the current time to the processor 102 and the like.

[0131] The local bus controller 122 is an interface for exchanging data with the functional units 300-1, 300-2, ... that can be connected to the CPU unit 100. The local bus controller 122 has a counter 123, and the counter 123 is used as a time reference for managing timing with other devices connected via the data bus 112, that is, the functional units 300-1, 300-2, .... Similarly, the functional units 300-1, 300-2, ... also have counters 125, and the counters 123 are used as time references for managing timing with the local bus controller 122 and other functional units 300. The counters 123 and 125 can have the same structure as the counter 126 described above.

[0132] The field network controller 118 controls data exchange with other devices including the field device 90 via the network 110. The field network controller 118 includes a counter 119, and the counter 119 is used as a time reference for managing timing with other devices.

[0133] The local bus controller 120 is an interface for exchanging data with the functional units 200-1, 200-2, ... that can be connected to the CPU unit 100. The local bus controller 120 has a counter 121, and the counter 121 is used as a time reference for managing timing with other devices connected via the data bus 111, that is, the functional units 200-1, 200-2, .... Similarly, the functional units 200-1, 200-2, ... also have counters 213, respectively, and the counters 213 are used as time references for managing timing with the local bus controller 120. The counters 121 and 213 can have the same structure as the counter 126 described above.

[0134] In addition, each device on the network 110 also has a counter used as a time reference for managing timing with the field network controller 118 .

[0135] The counter 119 and the counters included in each device can have the same configuration as the counter 126 described above.

[0136] The field network controller 118 functions as a communication master device for performing constant cycle communication via the network 110, and sequentially monitors the difference between the counter value indicated by the counter of each device connected to the field bus and the counter value indicated by the counter 119, and outputs a synchronization signal for instructing correction to the device having a deviation in the counter value as necessary. In this way, the field network controller 118 has a synchronization management function for providing an instruction to the device to make the counter value indicated by the counter of the device consistent with the counter value indicated by the counter 119.

[0137] The signal port 110P is connected to a signal line 113 that transmits a time synchronization signal 130 .

[0138] exist Figure 6 In the CPU unit 100, the counter 119, the counter 121, the counter 123 and the counter 126 are synchronized.

[0139] exist Figure 6 In the figure, a structural example is shown in which the required functions are provided by executing a program by the processor 102, but the CPU unit 100 can also use a dedicated hardware circuit (for example, ASIC (Application specific Integrated Circuit) or FPGA (Field-Programmable Gate Array) etc.) to install part or all of these provided functions. Alternatively, the main part of the CPU unit 100 can be implemented using hardware that follows a general architecture (for example, an industrial personal computer based on a general-purpose personal computer). In this case, virtualization technology can also be used to execute multiple OS (Operating System: operating system) with different purposes in parallel, and the required applications can be executed on each OS.

[0140] In the control system 1 of the present embodiment, the CPU unit 100 and the support device 500 are configured separately, but a configuration may be adopted in which all or part of these functions are integrated into a single device.

[0141] (d2. Structure of Functional Unit 200)

[0142] Figure 72 is a block diagram showing a hardware configuration example of a functional unit 200 included in the control device 2 of the present embodiment. Figure 7 The functional unit 200 includes a processor 202 , a chipset 204 , a main memory 206 , a storage 208 , an inter-unit interface 210 , a network interface 220 , and a signal port 212P. The signal port 212P is connected to the signal line 113 for transmitting the time synchronization signal 130 .

[0143] The processor 202 is composed of a CPU, an MPU, a GPU, etc. Similar to the above-mentioned CPU unit 100, the functional unit 200 includes one or more processors 202 and / or a processor 202 having one or more cores. The chipset 204 realizes the processing of the functional unit 200 as a whole by controlling the processor 202 and peripheral components. The chipset 204 includes a signal generator 26 as a circuit element for generating a time synchronization signal 130. The time synchronization signal 130 from the signal generator 26 is sent to the signal line 113 via the signal port 212P. The main memory 206 is composed of a volatile storage device such as a DRAM, an SRAM, etc. The storage 208 is composed of a non-volatile storage device such as a flash memory, etc.

[0144] The processor 202 reads various programs stored in the storage 208, expands and executes them in the main memory 206, thereby realizing processing such as monitoring of security protection events. The storage 208 stores a system program 22 and a user program 20 for realizing basic processing. In addition, the storage 208 has a storage area 21 for storing time series data of observation values ​​collected by the functional unit 200.

[0145] The user program 20 includes a time synchronization program 23 for time synchronization between control units and a safety protection program 24 for safety protection monitoring processing. The time synchronization program 23 includes a correction program 25, and the correction program 25 is used to implement the correction unit 20A or the correction unit 20B described later by being executed. In addition, the safety protection program 24 implements safety protection monitoring processing based on safety protection settings and rules predetermined by the operator or manager of the control device 2, collects observation values ​​based on the processing results, and stores them in the storage area 21 as time series data.

[0146] The inter-unit interface 210 is connected to the data bus 111 . The inter-unit interface 210 exchanges data with the CPU unit 100 via the data bus 111 .

[0147] The inter-unit interface 210 includes: a data communication circuit 211 having a controller (Tx / Rx CTRL) and a buffer for transmitting and receiving data with the CPU unit 100 or other functional units 200 ; and a counter 213 .

[0148] The network interface 220 includes a controller (Tx / RxCTRL) 222 and a buffer 226 for exchanging data via the network 11 .

[0149] The buffers provided in the inter-unit interface 210 and the network interface 220 are equivalent to storage units for temporarily storing data to be transmitted and received. The counter 213 has the same functions as the counter 126 (see Figure 6 )Same structure.

[0150] The network interface 220 and the inter-unit interface 210 of the functional unit 200 may also be formed by a NIC (Network Interface Card). Figure 7 2 shows a configuration example in which the processor 202 executes a program to implement the required processing, but a part or all of the provided processing may be implemented using a dedicated hardware circuit (eg, ASIC or FPGA, etc.).

[0151] (d3. Structure of Functional Unit 300)

[0152] Figure 8 2 is a block diagram showing a hardware configuration example of a functional unit 300 included in the control device 2 of the present embodiment. Figure 8 The functional units 300 provide various functions required for realizing the control system 1 to control various machines or devices. More specifically, each functional unit 300 includes a functional module 157 , an I / O interface 159 , and a communication circuit 161 .

[0153] The functional module 157 is a part that executes the main processing of each functional unit 300, and is responsible for collecting on-site information from the controlled machine or equipment, etc., and outputting command signals to the controlled machine or equipment, etc.

[0154] The I / O interface 159 is a circuit that mediates signal exchange with a controlled machine or device.

[0155] The communication circuit 161 processes the data sequentially transmitted in the data bus 112. That is, if the communication circuit 161 receives certain data via the data bus 112, it processes the received data and then sends the communication data to the functional unit 300 located at the next position on the data bus 112. The communication circuit 161 provides a function of relaying such data.

[0156] More specifically, the communication circuit 161 includes transceiver ports 162 , 164 , a controller 166 for transceiver, and a counter 168 .

[0157] The transceiver ports 162 and 164 are physically connected to the data bus 112 and receive and reproduce data transmitted on the data bus 112 according to instructions from the controller 166, thereby realizing sequential transmission of data.

[0158] The controller 166 performs data processing such as reading and modifying data transmitted on the data bus 112 .

[0159] The counter 168 generates a clock that serves as a reference for timing of command output from the controller 166 or execution of processing in the functional module 157. As the counter 168, for example, a counter based on a real-time clock can be used, but in this embodiment, a free-running counter that counts up (increments) at a predetermined period can be applied.

[0160] (d4. Example of Software Configuration of CPU Unit 100)

[0161] Next, a software configuration example of the CPU unit 100 constituting the control system 1 of the present embodiment will be described.

[0162] Fig. 9 1 is a block diagram showing an example of the software configuration of the CPU unit 100 according to the present embodiment. Fig. 9 The CPU unit 100 includes a PLC engine 150 , a time series database 180 , a host connection program 192 , and a gateway program 194 .

[0163] Typically, the PLC engine 150 provides an execution environment for various programs by having the processor 102 of the CPU unit 100 read out a system program stored in the secondary storage device 108 and execute it in the main storage device 106 . Various programs can be executed in this execution environment.

[0164] More specifically, the PLC engine 150 includes a control program 152, a variable management program 160, a scheduling program 170, an input program 172, an output program 174, and a time synchronization program 177. The variable management program 160, the scheduling program 170, the input program 172, and the output program 174 may be installed as part of a system program. In this case, the functions provided by these programs may be provided by a single system program.

[0165] The control program 152 is typically composed of a user program 154, a database writing program 156, and a serial communication program 158. The user program 154 corresponds to a main part that provides a control operation function, and can be arbitrarily configured according to a manufacturing device or equipment that is a control target of the CPU unit 100. The user program 154 can be defined by, for example, ladder logic using function blocks or the like.

[0166] The database writing program 156 is called by a command specified in the user program 154 , and writes designated data into the time series database 180 .

[0167] The serialization communication program 158 performs serialization processing on the data written from the database writing program 156 to the time series database 180. More specifically, the serialization communication program 158 performs processing (serialization) to convert the time series data into a storable byte string. After the object data is converted into a prescribed byte string by the serialization processing, it is stored in the time series database 180. In addition, the serialization processing is not necessarily performed according to the speed of writing data to the time series database 180 and the data capacity. That is, the serialization communication program 158 is an optional structure.

[0168] The variable management program 160 manages values ​​that can be used in the PLC engine 150 in the form of variables. More specifically, the variable management program 160 manages system variables that represent the state of the CPU unit 100, device variables that represent values ​​held by various devices connected to the CPU unit 100 via a local bus or a field bus, and user variables that represent values ​​held by the user program 154 executed by the CPU unit 100.

[0169] The input program 172 provides a function of acquiring input data from various devices connected to the CPU unit 100 via a local bus or a field bus.

[0170] The output program 174 outputs the command value (output data) calculated by the user program 154 executed in the CPU unit 100 to a target device connected via the data bus 112 or the network 110 .

[0171] When the time synchronization program 177 executes the control program in the CPU unit 100, the time synchronization is realized among the CPU unit 100, the functional unit 200 connected to the data bus 111, the functional unit 300 connected to the data bus 112, and the field device 90 connected to the network 110. The time synchronization program 177 has a correction program 178 for appropriately correcting the timer managed to achieve time synchronization. The correction unit 10B described later is realized by executing the correction program 178. The correction processing performed by the correction unit 10B will be described later.

[0172] The scheduler 170 manages resource allocation, execution timing, etc. for processes or tasks of the CPU unit 100. Such processes or tasks include processes or tasks that can be generated by the CPU unit 100 executing the control program 152 and the variable management program 160, the input program 172, the output program 174, and the time synchronization program 177.

[0173] The time series database 180 is typically configured in the primary storage device 106 or the secondary storage device 108, and is equipped with a function of storing data, and is equipped with a function of retrieving data specified in response to a request (query) from the outside. The time series database 180 stores the time series data 182 written by the database writing program 156. That is, the time series database 180 stores at least a part of the input data, output data, calculation data calculated in the control calculation of the control program 152, manufacturing data, and event data in time series. Such input data and output data include data received by the CPU unit 100 from the functional unit 300, and data sent by the CPU unit 100 to the functional unit 300. In addition, the event data may include data related to safety protection monitoring received by the CPU unit 100 from the functional unit 200.

[0174] The upper connection program 192 exchanges data with an external device such as a manufacturing execution system 400 connected to the upper network 13. In the CPU unit 100 of the present embodiment, input data or operation data can be output from the CPU unit 100 to the manufacturing execution system 400, and manufacturing information can be received from the manufacturing execution system 400. In this way, the upper connection program 192 provides a manufacturing data acquisition function for acquiring manufacturing data from the manufacturing execution system 400 associated with the control target.

[0175] In the present embodiment, the manufacturing execution system 400 has a time series DB 450. In this case, a database connection program 193 can be provided instead of the upper connection program 192 or as a part of the upper connection program 192. The database connection program 193 can also execute, for example, a process of sending a query such as SQL to a relational database and receiving a response. By executing the database connection program 193, the time series data 182 of the time series database 180 in the CPU unit 100 can be transmitted to the manufacturing execution system 400 and stored in the time series DB 450. The details of the time series data output to the manufacturing execution system 400 by the database connection program 193 will be described later.

[0176] The gateway program 194 communicates with the device on the cloud. For example, the time series data 182 of the time series database 180 is provided to the device providing IoT services on the cloud. Specifically, the gateway program 194 obtains the data of the specified type from the time series database 180 at a specified period and outputs it as the time series data. The time series data output to the IoT service providing device through the gateway program 194 can have the same structure as the time series data output to the manufacturing execution system 400 through the database connection program 193.

[0177] The input program 172 of the CPU unit 100 obtains input data from the field devices 90 such as sensors via the data buses 111 , 112 and / or the network 110 .

[0178] The upper connection program 192 of the CPU unit 100 acquires manufacturing data from the manufacturing execution system 400. The variable management program 160 manages the acquired input data and manufacturing data as variables.

[0179] The user program 154 executes a control operation designated in advance while referring to the system variables, device variables, and user variables managed by the variable management program 160 , and outputs the execution result (output data) to the variable management program 160 .

[0180] The output program 174 outputs the output data calculated by the control operation of the user program 154 as control output to the field device 90 such as the actuator via the data bus 112 and / or the network 110 .

[0181] The database writing program 156 writes the observation value specified in the variable managed by the variable management program 160 to the time series database 180 .

[0182] The upper connection program 192 outputs the value of a designated variable among the variables managed by the variable management program 160 and / or designated data among the time series data 182 stored in the time series database 180 to the manufacturing execution system 400 as time series data.

[0183] The gateway program 194 outputs the value of a designated variable among the variables managed by the variable management program 160 and / or the designated data among the time series data 182 stored in the time series database 180 as time series data to the IoT service. The IoT service providing device provides, for example, the following services: based on the time series data from the CPU unit 100, behavior analysis is performed to perform predictive maintenance of the equipment or device that is the control object, etc.

[0184] (d5. Structure of time synchronization)

[0185] First, the control device 2 of the present embodiment has a function of synchronizing the time and the counter (hereinafter, also referred to as “time synchronization” and “counter synchronization”, respectively).

[0186] In this specification, "moment" refers to a moment indicating a certain point in the time flow, and is specified using units such as hours, minutes, and seconds. "Counter" includes a value used to control timing in the control device 2 and related devices, and basically indicates a value that is successively increased or decreased by a specified value every predetermined unit time (hereinafter, the value shown by the counter is also referred to as "counter value"). In this embodiment, although not limited, the counter value is equivalent to the value of the timer, for example, it indicates a 64-bit integer value that can express nanoseconds.

[0187] Basically, the synchronization accuracy of time is lower than that of counters, and therefore in this embodiment, time synchronization using counter values ​​is adopted between units constituting the control device 2 and between each unit and other devices including the field device 90 .

[0188] Fig. 10A and Fig. 10B Schematically shows an example of a configuration for time synchronization managed by the control device 2 of this embodiment. Fig. 10A and Fig. 10B , a structure for each control device 2 to obtain a counter value of a master clock from the network 11, and a structure for realizing time synchronization using the time synchronization signal 130 as a trigger are described. Fig. 10A and Fig. 10B In the example, the time synchronization signal 130 is generated by the signal generator 26 (refer to Figure 7 ) is generated and transmitted to signal line 113.

[0189] The configuration for realizing such time synchronization is divided into a case where, for example, a TSN (Time-Sensitive Networking) master clock is provided to the control device 2 via the network 11 (see Fig. 10A ), and a case where an EtherCAT (registered trademark: Ethernet for Control Automation Technology) master clock is provided to the control device 2 via the network 11 (refer to Fig. 10B ) is used for explanation. In addition, the standard of the master clock provided to the control device 2 via the network 11 is not limited to this, and may be, for example, IEEE1588.

[0190] First, refer to Fig. 10A , it is assumed that, for example, a device / line management device 190 on the network 11 provides a TSN master clock 191A. The master clock 191A represents, for example, an absolute time managed by a time synchronization server configured on the Internet. In addition, the master clock 191A may also be another device on the network 11.

[0191] The functional unit 200 has a synchronization processing unit 200A by executing the time synchronization program 23. The synchronization processing unit 200A communicates with the device / line management device 190 via the network interface 220, and refers to the master clock 191A. In addition, the synchronization processing unit 200A has a counter DC1 and a counter OC1. The synchronization processing unit 200A may also have a correction unit 20A that performs correction processing of the counter value. The counter DC1 and the counter OC1 are equivalent to, for example, the counter 213 (see Figure 6 or Figure 7 ).

[0192] In addition, the CPU unit 100 has a synchronization processing unit 100A by executing the time synchronization program 177. The synchronization processing unit 100A has a correction unit 10B, a storage area 10C, a counter DC2, and a counter OC2. The counter DC2 corresponds to the counter 119 and the counter 123 (see Figure 6 ). In addition, the counter DC2 also corresponds to the counter ( Figure 6 In addition, counter OC2 corresponds to counter 121 (refer to Figure 6 ). In addition, counters OC1 and OC2 represent counters based on an Ordinary Clock, and counters DC1 and DC2 represent counters based on a Distributed Clock.

[0193] The synchronization processing unit 200A uses the function of the device / line management device 190 as a time synchronization server to correct the transmission delay of the network 11 and the like when obtaining the time of the master clock 191A. As a result, the synchronization processing unit 200A can obtain a more accurate time from the master clock 191A. The synchronization processing unit 200A sets the counter value based on the time obtained from the master clock 191A to the counter OC1. The synchronization processing unit 200A periodically obtains the time of the master clock 191A from the device / line management device 190 and sets it to the counter OC1.

[0194] Thus, in the functional unit 200 , the synchronization processing unit 200A can synchronize the counter OC1 with the master clock 191A.

[0195] In addition, the functional unit 200 functions as a time synchronization server for the CPU unit 100. That is, the synchronization processing unit 200A periodically sends the counter value of the counter OC1 to the data bus 111. Thus, the functional unit 200 can provide the CPU unit 100 connected to the data bus 111 with a counter value (that is, the counter value of the counter OC1) synchronized with the main clock 191A.

[0196] On the other hand, the synchronous processing unit 100A of the CPU unit 100 receives the timer value of the counter OC1 via the data bus 111, for example, at the time of startup, and sets the received timer value in the counter OC2. Thereafter, the synchronous processing unit 100A periodically updates (increments or decrements) the counter value of the counter OC2 in synchronization with the output from the internal hardware circuit, and sets the updated value in the counter DC2. Thus, the counter value of the counter DC2 is periodically updated.

[0197] Therefore, in the CPU unit 100 , the synchronization processing unit 100A synchronizes the counter OC2 and the counter DC2 with the counter OC1 synchronized with the master clock 191A, and thus the counter DC2 can be synchronized with the master clock 191A.

[0198] The CPU unit 100 performs program scheduling based on synchronization between the master clock 191A and the counter. Figure 6 and Fig. 9 This point will be described. More specifically, the scheduler 170 implements the scheduling of the control program 152 and the like based on the counter 126. In addition, the input program 172 and the output program 174 implement time synchronization with each device based on the counter 119 and the counter 123 synchronized with the counter 126. Thus, the scheduling of the control program 152 and the like in the CPU unit 100 and the time synchronization between each device connected to the control device 2 and the control device 2 can be implemented based on the master clock 191A. As a result, the scheduling of the control program and the like in the CPU unit 100 and the input and output between each device connected to the control device 2 and the control device 2 can be implemented in synchronization with the master clock 191A.

[0199] (d6. Correction of counter based on time synchronization signal)

[0200] In the present embodiment, for example, the counter value of the counter DC2 is updated in synchronization with the output signal of the hardware circuit inside the CPU unit 100. Therefore, there is a possibility that the difference between the counter value of the counter OC1 of the functional unit 200 and the counter value of the counter DC2 of the CPU unit 100 (hereinafter also referred to as synchronization deviation) becomes larger due to errors in the hardware circuit, etc. If the synchronization deviation becomes larger, the scheduling of the control program in the CPU unit 100 and the input and output between each device connected to the control device 2 and the control device 2 cannot be performed synchronously with the main clock 191A. In addition, the main cause of the above-mentioned difference is not limited to errors in the hardware circuit, etc.

[0201] To prevent this, the synchronization processing unit 100A corrects the counter value of the counter DC2 using a value for reducing synchronization misalignment (hereinafter also referred to as an adjustment value D). Specifically, upon receiving the time synchronization signal 130 from the signal line 113, the correction unit 100B performs correction processing including latch processing.

[0202] In the latching process, the correction unit 10B latches (acquires) the counter value of the counter DC2, and stores the latched counter value LDC2 in the storage area 10C. In addition, in the latching process, the correction unit 10B latches (receives) the counter value of the counter OC1 transmitted via the data bus 111, and stores the latched counter value LOC1 in the storage area 10C.

[0203] In the calibration process, the adjustment value D (positive value or negative value) is added to the latched counter value, and the added value is set in the counter DC2.

[0204] As a correction, the above adjustment value D may be divided into N (N≥2) values, and each value Di of the divided value Di (i=1, 2, 3, ... N) is periodically added to the counter value of the counter DC2. Thus, the addition operation is repeated N times, and the counter value of the counter DC2 can be gradually (smoothly) changed.

[0205] Alternatively, as a correction, the adjustment value D may be added to the counter value of the counter DC2 at a predetermined frequency.

[0206] In addition, the above-mentioned adjustment value D may be fixed or variable. As a variable value, it may include a value determined by the size of the difference between the latched counter values ​​LOC1 and LDC2. In addition, the value of "N" may also be fixed or variable, and as a variable value, it may include a value determined by the size of the adjustment value D, for example.

[0207] In addition, the correction unit 10B may detect the trend of the change (drift-like change) of the difference between the counter values ​​LOC1 and LDC2 calculated each time the time synchronization signal 130 is received, and determine the value of the above-mentioned adjustment value D or "N" according to the change trend. That is, the value of the above-mentioned adjustment value D or "N" is determined in such a way that the synchronization deviation calculated each time the time synchronization signal 130 is received becomes smaller, that is, in such a way that the difference in synchronization deviation converges to a predetermined value. For example, the larger the fluctuation range, the larger the adjustment value D is, or the smaller the value of "N" is, so that the synchronization deviation becomes smaller and the synchronization deviation can converge to the predetermined value earlier.

[0208] Note that the correction may include initialization of the counter DC2 by setting the above-mentioned adjustment value D to the value of the counter DC2.

[0209] The timing for performing the correction process may be the time when the time synchronization signal 130 is received, or may be after a predetermined time has passed since the time synchronization signal 130 was received.

[0210] In addition, the unit that sends the time synchronization signal 130 is not limited to the functional unit 200, and may also be Figure 1 Other units of the control system 1. For example, Figure 1 The control system 1 has a predetermined trigger signal generating device (not shown), any control device 2 (CPU unit 100 or functional unit 200, 300 of the control device 2 (refer to Figure 5 )), or the device / line management device 190. In addition, in the present embodiment, the time synchronization signal 130 is periodically output, for example, every 1 m seconds, but is not limited to the periodic output method. For example, it is also possible that the transmission source unit of the time synchronization signal 130 outputs the time synchronization signal 130 when the counter value of the counter OC1 of the synchronization processing unit 200A of the functional unit 200 becomes equal to a certain indication value.

[0211] (d7. Another example of a structure that is synchronized at all times)

[0212] exist Fig. 10A In the example, the time is obtained from the master clock 191A provided by TSN, but the path for obtaining the time of the master clock used for time synchronization is not limited to TSN. Fig. 10B As shown, it can also be obtained from the EtherCAT master clock 191B. In EtherCAT, the master clock 191B is synchronized with the absolute time. Fig. 10B In the example, counters DC1 and DC2 are used for time synchronization.

[0213] Reference Fig. 10B The synchronization processing unit 200B of the functional unit 200 periodically corrects the propagation delay and obtains the time of the master clock 191B. The synchronization processing unit 200B sets the counter value representing the obtained time in the counter DC1. The synchronization processing unit 200B periodically reads the counter value of the counter DC1 and transmits it to the data bus 111. Fig. 10B In the example, counter DC1 and counter 213 (refer to Figure 6 ) corresponds to counter DC2. In addition, counter DC2 corresponds to counters 119, 121, and 123 (refer to Figure 6 ) and in Fig. 9 The counter ( Figure 6 corresponding to counter 126, etc.

[0214] At startup, etc., the synchronization processing unit 100B of the CPU unit 100 sets the counter value received via the data bus 111 to the counter DC2. Then, the value of the counter DC2 is updated (incremented or decremented) in synchronization with the output of the internal hardware circuit. Thus, the counter value of the counter DC2 is periodically updated. In addition, when the correction unit 10B of the synchronization processing unit 100B receives the time synchronization signal 130 via the signal line 113, the counter value received via the data bus 111 is latched, and stored in the storage area 10C as the latched counter value LDC1. In addition, when the correction unit 10B receives the time synchronization signal 130, the counter value of the counter DC2 is latched, and stored in the storage area 10C as the latched counter value LDC2.

[0215] In the correction process of the correction unit 10B, the same Fig. 10A The same correction is applied to the case of Fig. 10B In the embodiment, the adjustment value D used for correction may include a value determined according to the size of the difference (synchronization deviation) between the latch counter values ​​LDC1 and LDC2.

[0216] In addition, the correction unit 10B may detect the trend of the change (drift-like change) of the difference between the latch counter values ​​LDC1 and LDC2 calculated each time the time synchronization signal 130 is received, and determine the value of the above-mentioned adjustment value D or "N" based on the trend of the change. For example, the value of the above-mentioned adjustment value D or "N" may be determined in such a way that the difference calculated each time the time synchronization signal 130 is received becomes smaller, that is, in such a way that the difference converges to a predetermined value.

[0217] In addition, as a correction, the initialization of the counter DC2 may be included by setting the above-mentioned adjustment value to the value of the counter DC2.

[0218] In addition, Fig. 10B In the structure of Fig. 10A In the same period. Fig. 10B For example, when the counter value of the counter DC1 is equal to a certain indication value, the time synchronization signal 130 may be output to the signal line 113 .

[0219] (d8. Another example of counter correction based on time synchronization signal)

[0220] exist Fig. 10A and Fig. 10B In the present invention, the calibration process is not limited to the configuration in which the calibration unit 10B of the CPU unit 100 is implemented, but may be implemented using the calibration unit 20A and the storage unit 20C of the functional unit 200 .

[0221] Specifically, refer to Fig. 10AThe synchronization processing unit 100A of the CPU unit 100 periodically sends the counter value of the counter DC2 to the data bus 111. When receiving the time synchronization signal 130 from the signal line 113, the correction unit 20A performs a latch process.

[0222] In the latching process, the correction unit 20A latches (acquires) the counter value of the counter OC1, and also latches (receives) the counter value of the counter DC2 transmitted via the data bus 111. The counter values ​​latched in this way are stored in the storage unit 20C as latched counter values ​​LOC1 and LDC2.

[0223] In the correction process, the correction unit 20A calculates the difference in synchronization deviation between the latch counter values ​​LOC1 and LDC2 of the storage unit 20C, determines an adjustment value D (positive value or negative value) that makes the difference smaller, and adds the determined adjustment value D to the latch counter value LDC2. The correction unit 20A transmits the added latch counter value to the CPU unit 100 via the data bus 111. The CPU unit 100 sets the received added latch counter value to the counter DC2. As a result, the synchronization deviation of the counter value of the counter DC2 of the CPU unit 100 is corrected.

[0224] In addition, Fig. 10B In the embodiment, the correction unit 20B may use the storage unit 20C to perform the correction processing of the counter value of the counter DC2 of the CPU unit 100. In this case, the synchronization processing unit 100B periodically sends the counter value of the counter DC2 to the data bus 111. The correction unit 20B performs the latch processing when receiving the time synchronization signal 130 from the signal line 113.

[0225] In the latching process, the correction unit 20B latches (acquires) the counter value of the counter DC1, and also latches (receives) the counter value of the counter DC2 transmitted via the data bus 111. The counter values ​​latched in this way are stored in the storage unit 20C as latched counter values ​​LDC1 and LDC2.

[0226] In the correction process, the correction unit 20B determines an adjustment value D that reduces the difference in synchronization deviation between the latch counter values ​​LDC1 and LDC2, and adds the determined adjustment value D to the latch counter value LDC2. The correction unit 20B transmits the added value to the CPU unit 100 via the data bus 111. The CPU unit 100 sets the received added latch counter value LDC2 to the counter DC2. As a result, the synchronization deviation of the counter value of the counter DC2 of the CPU unit 100 is corrected.

[0227] Thus, in the control device 2, when the time synchronization signal 130 is supplied via the signal line 113, one of the first timer value (counter value of counter OC1) indicated by the timer of the first unit (functional unit 200) and the second timer value (timer value of counter DC2) indicated by the timer of the second unit (CPU unit 100) is obtained via the data line (data bus 111), and based on the obtained timer value, the synchronization deviation between the timer of the first unit and the timer of the second unit is corrected. Thus, the timer (counter DC2) of the second unit (CPU unit 100) can be aligned with the timer (counter OC1) of the first unit (functional unit 200).

[0228] Reference Fig. 10A and Fig. 10B The control system 1 may further include a unit 370 different from the CPU unit 100 and the functional unit 200, and the unit 370 may implement the correction process.

[0229] The unit 370 can be connected to the signal line 113 and the data bus 111. The unit 370 has a hardware processor, and the hardware processor executes a program to realize a correction unit 371 equivalent to the correction unit 20A (or correction unit 20B) or the correction unit 10B. When the unit 370 detects the time synchronization signal 130 in the signal line 113, the correction unit 371 reads the counter value from the counter OC1 and the counter DC2 (or the counter DC1 and the counter DC2) via the data bus 111. The correction unit 371 uses the read counter value to correct the counter value of the counter DC2 as described above so that the synchronization deviation becomes smaller. The corrected counter value is set to the counter DC2 via the data bus 111.

[0230] Fig. 10A and Fig. 10B The correction units 20A, 20B, correction unit 10B and correction unit 371 shown are one embodiment of the adjustment unit. The control device 2 or the control system 1 may also use a dedicated hardware circuit (such as ASIC or FPGA, etc.) to implement part or all of the processing provided by the correction units 20A, 20B, correction unit 10B and correction unit 371.

[0231] As described above, in each control device 2, using the time of the master clock 191A (or 191B), (i) time synchronization is achieved between units, (ii) time synchronization is achieved between each unit and a device connected to the unit, and (iii) time synchronization related to the execution of the control program 152, the input program 172, and the output program 174 is achieved by the scheduler 170 in the CPU unit 100. Furthermore, by implementing time synchronization using the common master clocks 191A and 191B in each control device 2, (iv) time synchronization can be achieved between different control devices 2, that is, between different processes.

[0232] exist Fig. 10A and Fig. 10B In the embodiment, the control system 1 is configured to include the correction units 20A and 20B, the correction unit 10B, and the correction unit 371, but may be configured to include at least one of these correction units.

[0233] <E. Processing Flow>

[0234] Fig.11 This is a diagram showing an example of a flowchart of the processing according to the present embodiment. Fig.11 Contains synchronization processing and observation value collection processing. Fig.11 , the processor 202 of the functional unit 200 implements the processing of the synchronization processing unit 200A (or 200B).

[0235] First, the processor 202 obtains the time from the main clock 191A (or 191B) and sets a timer value in the counter OC1 (or DC1) (step S1).

[0236] The processor 202 determines whether it is time to send the time synchronization signal 130 (step S3). If it is determined that it is not time to send the time synchronization signal 130 ("No" in step S3), the process returns to step S1. If it is determined that it is time to send the time synchronization signal 130 ("Yes" in step S3), the signal generator 26 generates the time synchronization signal 130 and outputs it to the signal line 113 (step S5).

[0237] In addition, the processor 202 periodically sends the counter value of the counter OC1 (or DC1) to the data bus 111 (step S7). The counter value is sent regardless of whether the time synchronization signal 130 is sent.

[0238] In addition, in the CPU unit 100, the processor 102 performs processing through the synchronous processing unit 100A (or 100B). Fig.11 In the process, the setting of counter OC2 and the updating of the counter value of counter DC2 are implemented.

[0239] The processor 102 determines whether the time synchronization signal 130 is received from the signal line 113 (step S25). While the time synchronization signal 130 is not received (No in step S25), the process of step S25 is repeated.

[0240] When the processor 102 determines that the time synchronization signal 130 is received ("Yes" in step S25), the latching process of the counter value described above is performed (step S27). The processor 102 determines whether it is time to perform the correction process of the correction unit 10B (step S29). For example, it is determined whether a predetermined time has passed since the time synchronization signal 130 was received. During the period when it is determined that it is not time to perform the correction ("No" in step S29), the process of step S29 is repeated.

[0241] When the processor 102 determines that it is time to perform the correction process, for example, when a predetermined time has elapsed since the time synchronization signal 130 was received (YES in step S29 ), the processor 102 causes the correction unit 10B to perform the correction process described above (step S31 ).

[0242] The correction process includes calculation of the difference between the latched counter values ​​(step S33 ), determination of the adjustment value D for correction (step S35 ), and change of the counter value of the counter DC2 using the adjustment value D (step S37 ).

[0243] In addition, in the CPU unit 100, the processor 102 collects the observation values ​​and stores them in the time series database 180 (step S41). The processor 102 reads the time series data 182 from the time series database 180 and sends it to the manufacturing execution system 400 or the IoT service provider on the cloud (step S43). At this time, a frame for transmission of the time series data 182 is generated and sent in the form of a frame (step S45).

[0244] For example, the manufacturing execution system 400 receives a frame of the time series data 182 from the control device 2 (step S61 ), and stores the frame in the time series DB 450 (step S63 ).

[0245] In addition, Fig.11 In step S31 , the correction for the time synchronization process is performed in the CPU unit 100 . However, as described above, the correction for the time synchronization process may be performed in the functional unit 200 in the same manner as in step S31 .

[0246] exist Fig. 10A , Fig. 10B and Fig.11In the embodiment, the function unit 200 provides the counter value of the counter OC1 (or the counter DC1) to the CPU unit 100 by periodically transmitting the counter value of the counter OC1 (or the counter DC1) to the data bus 111, but the method of providing the counter value to the CPU unit 100 is not limited to this. For example, when the time synchronization signal 130 is transmitted to the signal line 113, the CPU unit 100 may refer to (read out) the counter value of the counter OC1 (or the counter DC1) of the function unit 200 via the data bus 111.

[0247] <F. Processing of time series data>

[0248] Fig.12 1 is a diagram showing a configuration example of a manufacturing execution system 400 according to the present embodiment. As an example, the manufacturing execution system 400 is implemented using hardware (for example, a general-purpose personal computer) conforming to a general-purpose architecture.

[0249] Reference Fig.12 The manufacturing execution system 400 includes a processor 402, a main memory 404, an input unit 406, an output unit 408, a storage 410, an optical drive 412, a USB controller 420 for communicating with external devices, and a network controller 413 connected to the networks 13 and 14. These components are connected via a processor bus 418.

[0250] The processor 402 is composed of a CPU, a GPU, etc., reads out a program stored in the storage 410, expands it in the main memory 404, and executes it, thereby realizing various processes described later.

[0251] The main memory 404 is composed of a volatile storage device such as a DRAM or an SRAM, etc. The storage 410 is composed of a nonvolatile storage device such as an HDD or an SSD, etc., for example.

[0252] In the memory 410, in addition to the OS 412 for realizing basic functions, various programs for providing functions as the manufacturing execution system 400 are stored. The various programs include a DB management program 411. The memory 410 also has an area for storing the time series DB 450.

[0253] The input unit 406 includes a keyboard, a mouse, etc., and receives user operations on the manufacturing execution system 400. The output unit 408 includes a display, various indicators, a printer, etc., and outputs the processing results from the processor 402.

[0254] The manufacturing execution system 400 includes an optical drive 412 that reads a program stored in a recording medium 414 (eg, an optical recording medium such as a DVD (Digital Versatile Disc)) that stores a computer-readable program in a nonvolatile manner and installs the program in the storage 410 or the like.

[0255] exist Fig.12 , an example of a structure in which the functions required by the manufacturing execution system 400 are provided by executing a program by the processor 402 is shown, but the manufacturing execution system 400 may also implement a part or all of these provided functions using a dedicated hardware circuit (such as an ASIC or FPGA, etc.).

[0256] Fig.13 It means that by executing Fig.12 The DB management program 411 is provided for the DB manager. Fig.13 The time series DB 450 is managed (eg, generation, aggregation, editing, analysis, output, etc. of a DB) by a DB manager 451 provided by the processor 402 executing the DB management program 411 .

[0257] (f1. Time synchronization of observation values)

[0258] Fig.14A and Fig. 14B FIG. 4 is a schematic diagram showing an example of processing when the control device 2 of the present embodiment sends time series data to the manufacturing execution system 400. Fig.14A and Fig. 14B In the example, the case where the time synchronization process is not performed is shown in comparison (refer to Fig.14A ) and when implementing time synchronization (refer to Fig. 14B ). Fig.15 It is a diagram schematically showing frames of time-series data and summary data generated in the control device 2 of the present embodiment. Fig.15 (A) represents a frame storing observation values ​​collected by the control device 2B of the process 3B, Fig.15 (B) represents a frame storing the observation values ​​collected by the control device 2A of the step 3A, Fig.15 (C) shows an example of the time series DB 450 storing the observation values ​​compiled by the DB manager 451.

[0259] Fig.14A FIG. 4 shows a configuration in which the control devices 2A and 2B are connected to the manufacturing execution system 400 via the upper network 13. Fig.14A In the illustrated configuration, it is assumed that the time synchronization is not performed between the control device 2A and the control device 2B.

[0260] Each time series data includes the observation values ​​collected by the control devices 2A and 2B and the time corresponding to each observation value. Fig.14A In the configuration shown, the control devices 2A and 2B can only add time as information indicating the timing of collecting each observation value. The time is managed by the control devices 2A and 2B separately, and the time synchronization is not complete.

[0261] As a result, the time periods of the time series data collected by the manufacturing execution system 400 do not completely match each other, and therefore the DB manager 451 cannot aggregate (ie, merge) the respective time series data with accurate timing alignment.

[0262] In contrast, Fig. 14B In the structure shown, the control device 2A and the control device 2B have the above-mentioned counters that are synchronized at the time. As a result, the frames of the time series data sent from the control device 2A and the control device 2B can include the time 452 (for example, the time obtained from the master clock) indicating the timing of collecting each observation value and the counter value 453 (for example, the counter value of the counter DC2) corresponding to the observation value collected in the steps 3A and 3B (see Fig.15 (A) and Fig.15 (B)).

[0263] The DB manager 451 can use the counter value 453 included in the time series data received from the control devices 2A and 2B to align the timing of the observation values ​​included in the time series data. That is, even if the observation values ​​are collected by different control devices 2 (different processes), they can be collected and stored in the time series DB 450 with the time axis almost completely aligned (see Fig.15 (C)), and the aggregated data are used for the analysis of observed values.

[0264] <G. Notes>

[0265] The present embodiment described above includes the following technical ideas.

[0266] [Structure 1]

[0267] A control system (1) is a control system for factory automation, and the control system (1) comprises:

[0268] A first unit (200) and a second unit (100) each having a timer;

[0269] A data line (111) for exchanging data including a timer value represented by the timer between the first unit and the second unit;

[0270] a signal line (113) electrically connecting the first unit and the second unit; and

[0271] an adjustment unit (10B, 20A, 20B), which is connected to the signal line and the data line,

[0272] When the adjustment unit receives a trigger signal (130) via the signal line, it obtains the timer value via the data line, and aligns the timer (DC2) of the second unit with the timer (OC1) of the first unit based on the obtained timer value.

[0273] [Structure 2]

[0274] In the control system described in Structure 1,

[0275] One of the first unit and the second unit transmits the trigger signal to the signal line.

[0276] [Structure 3]

[0277] In the control system described in structure 1 or 2,

[0278] The control system further includes a unit (190) that transmits the trigger signal to the signal line, which is different from the first unit and the second unit.

[0279] [Structure 4]

[0280] In the control system described in any one of structures 1 to 3,

[0281] The adjustment unit is provided in one of the first unit and the second unit.

[0282] [Structure 5]

[0283] In the control system described in any one of structures 1 to 4,

[0284] The control system further includes a unit including the adjustment unit, which is different from the first unit and the second unit.

[0285] [Structure 6]

[0286] In the control system described in any one of structures 1 to 5,

[0287] When the adjustment unit receives the trigger signal via the signal line, it uses the timer value obtained via the data line to obtain the difference between the timer value of the timer of the first unit and the timer value of the timer of the second unit, and uses the adjustment value based on the obtained difference to adjust the timer value of the timer of the second unit, thereby aligning the timer of the second unit with the timer of the first unit.

[0288] [Structure 7]

[0289] In the control system described in structure 6,

[0290] The adjustment unit determines the adjustment value according to a trend of a size change of the difference detected each time the trigger signal is received.

[0291] [Structure 8]

[0292] In the control system described in structure 7,

[0293] The control system further comprises a plurality of control devices (2) connected to the first network (11).

[0294] The plurality of control devices respectively include the first unit and the second unit,

[0295] The plurality of control devices are synchronized with each other by common time (191A, 191B) received via the first network, and the time (191A, 191B) is the time used for synchronization between the timers.

[0296] [Structure 9]

[0297] In the control system described in structure 8,

[0298] The control system also has:

[0299] One or more devices (90) connected to the plurality of control devices respectively via a second network (110) lower than the first network; and

[0300] Synchronous timers (101A, 101B, 101C) mutually synchronized between the plurality of control devices,

[0301] The control device and the one or more devices connected to the second network of the control device are synchronized with each other by a timer value of the synchronization timer.

[0302] The embodiments disclosed this time should be considered as illustrative in all aspects and not restrictive. The scope of the present invention is indicated by the claims rather than the above description, and is intended to include all modifications within the meaning and scope equivalent to the claims.

[0303] Description of symbols

[0304] 1: control system; 2, 2A, 2B, 2C: control device; 3A, 3B, 3C: process; 10B, 20A, 20B: calibration unit; 10C, 21: storage area; 11, 12, 13, 14, 110: network; 23, 177: time synchronization program; 24: safety protection program; 90, 90A, 90C, 90D, 90F, 90G, 90I: field equipment; 91A, 91C, 91D, 91F, 91G, 91I, 101A, 101B, 101C, 102A, 102B, 102C, 401A, 401C: timer; 100: CPU unit; 100A, 100B, 200A, 200B: synchronization processing unit; 1 01, 102, 202, 402: processor; 110P: signal port; 111, 112: data bus; 113: signal line; 119, 121, 123, 125, 126, 168, 213, DC, DC1, DC2, OC, OC1, OC2: counter; 191, 191A, 191B: master clock; 130: time synchronization signal; 178: correction program; 180: time series database; 182: time series data; 190: device / production line management device; 400: manufacturing execution system; 450: time series DB; 451: DB manager; 500: support device; LDC1, LDC2, LOC1: latch counter value.

Claims

1. A control system, which is a control system for factory automation, comprising: A first unit and a second unit each having a timer; a data line for exchanging data including a timer value represented by the timer between the first unit and the second unit; a signal line electrically connecting the first unit and the second unit; and an adjustment unit connected to the signal line and the data line, The first unit has: A network interface connected to a first network including the Internet; and a data communication circuit, which connects the data line, The second unit has: a network controller connected to a second network different from the first network; and a communication controller, which connects the data line, The communication controller of the second unit is connected to the first network via the network interface of the first unit. The first unit performs information processing including a process of setting a timer of the first unit to a value synchronized with the time of a master clock in the first network and a process of monitoring access from the first network to the second unit. The adjustment unit acquires the timer value via the data line when receiving a trigger signal via the signal line, and aligns the timer of the second unit with the timer of the first unit based on the acquired timer value.

2. The control system according to claim 1, wherein: One of the first unit and the second unit transmits the trigger signal to the signal line.

3. The control system according to claim 1 or 2, wherein: The control system further includes a unit that transmits the trigger signal to the signal line, which is different from the first unit and the second unit.

4. The control system according to claim 1 or 2, wherein: The adjustment unit is provided in one of the first unit and the second unit.

5. The control system according to claim 1 or 2, wherein: The control system further includes a unit including the adjustment unit, which is different from the first unit and the second unit.

6. The control system according to claim 1 or 2, wherein: When the adjustment unit receives the trigger signal via the signal line, it uses the timer value obtained via the data line to obtain the difference between the timer value of the timer of the first unit and the timer value of the timer of the second unit, and uses the adjustment value based on the obtained difference to adjust the timer value of the timer of the second unit, thereby aligning the timer of the second unit with the timer of the first unit.

7. The control system according to claim 6, wherein: The adjustment unit determines the adjustment value according to a change trend of the difference obtained each time the trigger signal is received.

8. The control system according to claim 7, wherein: The control system further comprises a plurality of control devices connected to the first network, The plurality of control devices respectively include the first unit and the second unit, The plurality of control devices are synchronized with each other using a common time received via the first network, the time being the time used for synchronization between a timer of the first unit and a timer of the second unit.

9. The control system according to claim 8, wherein: The control system also has: one or more devices connected to each of the plurality of control devices via a second network lower than the first network; and a synchronization timer mutually synchronized between the plurality of control devices, Each of the plurality of control devices and the one or more devices connected to the control device via the second network are synchronized with each other by a timer value of the synchronization timer.