Control device, control system, and time synchronization method
The control device addresses clock deviation issues in distributed control systems by using a communication unit, shared data storage, time management, and arbitration to ensure accurate time synchronization, enhancing real-time control precision and stability.
Patent Information
- Application Number
- JP2021168749
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-10-14
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-10-14
AI Technical Summary
Existing time synchronization methods in distributed control systems do not effectively consider the clock deviation between multiple control devices, leading to inaccuracies in real-time control.
A control device that includes a communication unit for exchanging time synchronization information, a shared data storage unit for storing and updating time synchronization data, a time management unit for detecting clock deviations, and an arbitration unit for selecting a time master device based on clock deviation information, ensuring accurate time synchronization among multiple control devices.
Enables highly accurate real-time control by continuously maintaining time synchronization, improving product quality and accuracy even in cases of communication disruptions.
Smart Images

Figure 0007577044000001 
Figure 0007577044000002 
Figure 0007577044000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a control device that constitutes a control system. [Background technology]
[0002] A control system is installed in various social infrastructure systems. The control system automates and streamlines the control system by using a plurality of control devices that execute arithmetic processing, thereby automating and streamlining the social infrastructure systems.
[0003] A control device constituting such a control system acquires information such as various state quantities from detection devices such as sensors installed in the field, and a central processing unit of the control device executes calculation processing. The control device then outputs control commands to operation devices such as motors and actuators installed in the field, and controls the operation devices to be controlled in real time.
[0004] In addition, in the control systems of large-scale social infrastructure systems, multiple control devices are connected via a common network to form a distributed control system. In a distributed control system, information obtained from multiple detection devices installed in a vast field is collected in a single control device, which then performs arithmetic processing. In such a distributed control system, the roles of a control device that performs arithmetic processing and a control device that outputs control commands are shared, and highly efficient control is achieved.
[0005] A shared memory method is a method for synchronizing data between control devices in a distributed control system. In the shared memory method, each control device that makes up the distributed control system has a shared memory in the memory installed in each control device, and the control device transmits data stored in the shared memory to the other control devices. This allows data to be shared between the control devices, reducing the communication load between the control devices.
[0006] Furthermore, by synchronizing the time of multiple control devices and outputting control commands to the controlled objects in a timely manner, it is possible to perform multiple processes simultaneously or to process them at desired times in a chronological order, thereby enabling highly accurate real-time control. For this reason, the aforementioned common network exchanges information for time synchronization, and each control device synchronizes its time.
[0007] As background technology in this technical field, there is JP 2009-284054 A (Patent Document 1). Patent Document 1 describes a communication system including a base station that can establish direct time synchronization with UTC transmitted by a time reference device and a base station that cannot establish direct time synchronization, in which the base station that cannot establish direct time synchronization acquires time error information from the base station that can establish direct time synchronization, selects a master station for establishing time synchronization based on the acquired information, transmits a delay amount measurement signal for measuring the delay amount to the master station, the master station transfers the delay amount measurement signal to the base station, measures the delay amount E and notifies the base station, and the base station establishes time synchronization with the master station based on the delay amount E. [Prior art documents] [Patent documents]
[0008] [Patent Document 1] JP 2009-284054 A Summary of the Invention [Problem to be solved by the invention]
[0009] In the communication system described in Patent Document 1, time synchronization is established by selecting a base station that is the smallest step from the ultimate clock master from among multiple base stations that are clock masters. However, Patent Document 1 does not consider the amount of clock discrepancy between the clock master and the local station, or describe technology for arbitrating between information shared among multiple base stations to determine a single clock master.
[0010] Therefore, the present invention aims to provide a control device that achieves time synchronization by arbitration using information shared between multiple control devices, maintains highly accurate real-time control, and realizes highly accurate control that improves product quality and accuracy. [Means for solving the problem]
[0011] A representative example of the invention disclosed in the present application is as follows: That is, a control device constituting a control system that executes control over a controlled device is characterized in that it includes a communication unit that transmits and receives information about the control device, a shared data storage unit that stores time synchronization information received from a control device that is a time master device via the communication unit, a synchronization update unit that controls storage of time synchronization information in the shared data storage unit of its own control device in synchronization with storage in the shared data storage units of the other control devices, a time management unit that detects a clock deviation amount relative to the time master device and stores the detected clock deviation amount in the shared data storage unit, and an arbitration unit that selects a time master device based on the clock deviation amount stored in the shared data storage unit and arbitrates with the other control devices to determine the time master device. Effect of the Invention
[0012] According to one aspect of the present invention, it is possible to realize highly accurate real-time control. Problems, configurations and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram illustrating a configuration of a control system according to a first embodiment. [Diagram 2] FIG. 2 is an explanatory diagram illustrating a configuration of a control device according to the first embodiment. [Diagram 3] FIG. 2 is a diagram illustrating a functional configuration of a control device according to the first embodiment. [Figure 4] FIG. 4 is a diagram illustrating another functional configuration of the control device according to the first embodiment. [Diagram 5] 4 is a timing chart showing operation timing of the control device according to the first embodiment. [Figure 6] 4 is a diagram illustrating an example of contents of an information storage unit of the control device according to the first embodiment; FIG. [Figure 7] FIG. 4 is an explanatory diagram illustrating an example of the contents of a shared data storage unit of the control device according to the first embodiment; [Figure 8] 6 is a diagram illustrating an example of time synchronization information of the control device according to the first embodiment; [Figure 9] 11 illustrates an example of corrected time synchronization information of each control device according to the first embodiment. [Figure 10] 4 is a diagram illustrating a state of a time synchronization operation of the control device according to the first embodiment. FIG. [Figure 11] 1 is a flowchart of a process in which the control device (control system) according to the first embodiment shares acquired information and time synchronization information acquired from a sensor. [Figure 12] 4 is a flowchart of a process in which the control device according to the first embodiment calculates a control command and the control device shares the control command. [Figure 13] FIG. 11 is an explanatory diagram for explaining an example in which the control device according to the second embodiment is applied to an iron and steel system. [Figure 14] FIG. 11 is an explanatory diagram for explaining an example in which the control device according to the third embodiment is applied to an FA system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the same reference numerals are used to designate substantially the same or similar components, and where explanations are repeated, they may be omitted. EXAMPLES
[0015] First, the configuration of a control system according to a first embodiment will be described.
[0016] FIG. 1 is a diagram illustrating a configuration of a control system according to the first embodiment.
[0017] In the control system of the first embodiment, a control device (control A) 100, a control device (control B) 101, and a control device (control C) 102 are connected via a common network 1 to configure a distributed control system.
[0018] The control devices 100, 101, and 102 output control commands (control data such as control signals and command values) to operation devices (controlled devices to be controlled) such as motors 8 and 11 and actuators 9 installed in the field, and control the operation devices in real time. In other words, the distributed control system is composed of control devices that execute control over the operation devices.
[0019] The common network 1 is a network that improves the time determinism of communication delays between control devices by using time slot communication based on time division control, such as a network that executes data communication by a communication method configured in IEEE standards called TSN (Time Sensitive Network) or an industrial network standardized by IEC 61784. The connection form may be a wired cable connection or a wireless connection such as a mobile phone network or wireless LAN.
[0020] The control device 100 includes a CPU (Central Processing Unit) 1001 and a memory 1002. Similarly, the control device 101 includes a CPU 1011 and a memory 1012, and the control device 102 includes a CPU 1021 and a memory 1022.
[0021] Memory 1002 is provided with an area for storing program A running on each control device, an area for storing retained information A acquired by each control device, and an area (shared data area) for storing shared data shared between each control device via common network 1. The shared data here includes information such as acquired information obtained by control A and control commands received from other control devices. Similarly, memory 1012 is provided with an area for storing program B and retained information B, and an area for storing shared data, and memory 1022 is provided with an area for storing program C and retained information C, and an area for storing shared data.
[0022] In addition, a sensor A7, a motor A8, and an actuator A9 are connected to the control device 100 via a field network 20. Similarly, a sensor B10 and a motor B11 are connected to the control device 101 via a field network 21, and a sensor C12 and a sensor C13 are connected to the control device 102 via a field network 22.
[0023] The field networks 20, 21, 22 may be, for example, a network defined by IEC 61158. Digital signals and analog signals may be input and output by directly connecting the control device 100 etc. to the detection devices 7 etc. and the operation devices 8, 9 etc. In this case, it is preferable that the control device 100 etc. and each of the detection devices 7 etc. and each of the control targets 8, 9 etc. are connected by a plurality of input and output signal lines.
[0024] The control device 100 shares the sensing data input from the sensor 7 as shared data with the control devices 101 and 102 via the common network 1. Similarly, the control device 101 shares the sensing data input from the sensor 10 as shared data with the control devices 100 and 102 via the common network 1, and the control device 102 receives input from the sensors 12 and 13 and shares the shared data with the control devices 101 and 102 via the common network 1.
[0025] In particular, the control device 102 calculates control commands (command values) for, for example, the motor 8, the actuator 9, and the motor 11 from the shared input data, and shares the control commands with the control devices 101 and 102. On the other hand, the control device 100 controls the motor 8 and the actuator 9 according to the shared control commands, and similarly, the control device 101 controls the motor 11 according to the shared control commands.
[0026] The sensors 7, 10, 12, and 13 installed in the field are detection devices that detect and acquire information that is state quantities such as various flow rates, temperatures, pressures, tensions, and rotational speeds.
[0027] Next, the configuration of the control device 100 according to the first embodiment will be described.
[0028] FIG. 2 is a diagram illustrating a configuration of the control device 100 according to the first embodiment.
[0029] The control device 100 includes a CPU 1001 , a memory 1002 , a communication control unit 1003 , an interface unit 1004 , a non-volatile storage medium 1005 , a bus 1006 , and an input / output unit 1007 .
[0030] Although the control device 100 will be described here, the control devices 101 and 102 also have the same basic configuration as the control device 100.
[0031] The CPU 1001 is a central processing unit that controls the operation of each component of the control device 100 .
[0032] The memory 1002 is a temporary storage area used when the CPU 1001 operates, and stores an operating system (hereinafter referred to as OS) and application programs transferred from a non-volatile storage medium 1005.
[0033] In addition, memory 1002 is provided with an area for storing program A running on each control device, an area for storing retained information A acquired by each control device (information acquired by each control device from detection equipment or controlled objects), and an area for storing shared data shared between each control device via common network 1 (acquired information and control commands acquired by control A).
[0034] The communication control unit 1003 executes data communication with the control devices 101 and 102 via the common network 1. For example, the function of the MAC (Media Access Control) layer of the IEEE802.3 standard may be implemented as the data communication method. Examples of the implementation of the communication control unit 1003 include an IC (Integrated Circuit), an FPGA (Field Programmable Gate Array), and a gate array. The communication control unit 1003 may be integrated with the CPU 1001.
[0035] Furthermore, the communication control unit 1003 has a function of executing a time synchronization protocol by exchanging time synchronization packets using a network. That is, the communication control unit 1003 has a clocking function when transmitting and receiving time synchronization packets, and a function of setting and adding a correction value to the time synchronization packet. As such a time synchronization protocol, IEEE1588, IEEE802.1AS, NTP, and SNTP are used. The communication control unit 1003 also has a time management function based on the synchronized time, and communicates synchronized time information to the control devices 101 and 102.
[0036] The interface unit 1004 transmits and receives data to and from the common network 1. The interface unit 1004 implements, for example, a function of the physical layer of IEEE802.3. The interface unit 1004 may be included in the communication control unit 1003.
[0037] In FIG. 2, the control device 100 has one communication control unit 1003 and one interface unit 1004 , but may have a plurality of communication control units 1003 and a plurality of interface units 1004 .
[0038] The non-volatile storage medium 1005 is an information storage medium, and stores, for example, the OS, applications, device drivers, programs that operate the CPU 1001, and the results of program execution.
[0039] The non-volatile storage medium 1005 is, for example, a hard disk drive, a solid state drive, a flash memory, etc. The non-volatile storage medium 1005 may also be an easily removable external storage medium such as a USB memory or a solid state drive.
[0040] The input / output unit 1007 is an input / output interface that acquires information from a device connected to the control device 100, for example, a sensor 7, and controls a motor 8 or an actuator 9. The input / output unit 1007 is implemented with, for example, the functions of the various field networks 20 described above, a digital input / output function, and an analog input / output function. Note that, although one signal line is illustrated from the input / output unit 1007 in FIG. 2, there may be multiple signal lines.
[0041] The bus 1006 connects the CPU 1001, the memory 1002, the communication control unit 1003, the non-volatile storage medium 1005, and the input / output unit 1007 so that they can communicate with each other.
[0042] Next, a functional configuration of the control device according to the first embodiment will be described.
[0043] FIG. 3 is a diagram illustrating a functional configuration of the control device according to the first embodiment.
[0044] 3 includes a time synchronization unit 300, a communication unit 301, a synchronization update unit 302, a shared data storage unit 303, a time management unit 304, an input / output control unit 305, an information holding unit 306, and an arbitration unit 307. That is, it is preferable that the control unit 100, the control unit 101, and the control unit 102 include these functional units. It is particularly preferable that the control unit 100 and the control unit 101 include these functional units.
[0045] The time synchronization unit 300 executes a time synchronization procedure. The time synchronization protocol executed by the time synchronization unit 300 is the above-mentioned IEEE1588, IEEE802.1AS, NTP, SNTP, etc. The time synchronization unit 300 performs time synchronization with the control device 101 and the control device 102 by using the time measured at the time of transmission or reception of a time synchronization packet by the communication unit 301 described later. In other words, the time synchronization unit 300 performs time synchronization with other control devices constituting the distributed control system.
[0046] The time synchronization unit 300 may be realized by an application running on the CPU 1001, and the communication control unit 1003 may be realized by a hardware logic circuit using an IC or FPGA. The time synchronization unit 300 may also be configured by both the software of the CPU 1001 and the hardware of the communication control unit 1003. In this case, the measurement function of the transmission timing and reception timing of the time synchronization packet and the generation of the time synchronization packet format may be processed by the communication control unit 1003.
[0047] The communication unit 301 is a functional unit that connects to the common network 1 and communicates based on the communication protocol of the common network 1. For example, the communication unit 301 is composed of software that runs on the CPU 1001, a communication control unit 1003, and an interface unit 1004. That is, the communication unit 301 transmits information about its own control device to other control devices and receives information about the other control devices from the other control devices via the common network 1. The communication unit 301 transmits information (sensor information) acquired by its own control device regarding its own control device and receives information (sensor information) acquired by the other control devices regarding the other control devices.
[0048] The synchronous update unit 302 holds the communication contents received from the communication unit 301. The synchronous update unit 302 stores the held information in the shared data storage unit 303 described later, in accordance with synchronous time information (including time notification and time notification interruption) notified from the time management unit 304 described later. In other words, the synchronous update unit 302 stores the shared data (information) in the shared data storage unit 303 of its own control device in synchronization with the storage of the shared data (information) in the shared data storage unit 303 of the other control device, or in synchronization with the storage of the shared data (information) from the shared data storage unit 303 of the other control device.
[0049] The shared data storage unit 303 is a functional unit that stores shared data shared between each control device. A shared data area for each control device is assigned to the shared data storage unit 303. For example, each control device executes periodic broadcast communication, and the control device that receives the broadcast identifies the control device that sent the broadcast and updates the corresponding shared data area. The shared data storage unit 303 stores information stored in the information storage unit 306 described below. The shared data storage unit 303 stores shared data transmitted from other control devices, and stores a control command for a control target calculated by a calculation unit 401 described below.
[0050] The time management unit 304 manages the synchronized time information in the information storage unit 306 (to be described later) in each control device based on the synchronized time.
[0051] The input / output control unit 305, for example, acquires information from the sensor 7 connected to the control device 100, controls the motor 8 and the actuator 9, and inputs and outputs information. In other words, the input / output control unit 305 acquires information from a detection device, and inputs and outputs information for controlling a control target.
[0052] The information holding unit 306 holds the sensor information and the like input from the input / output control unit 305. The information holding unit 306 is formed of, for example, a ring buffer, and when holding the sensor information, the information holding unit 306 holds the synchronization time information (sensor information to which the time when the sensor information was acquired is added) notified from the time management unit 304, that is, the sensor information and the time when the sensor information was acquired. The information holding unit 306 also receives and holds information on the time synchronization state from the time management unit 304. Then, the information holding unit 306 stores the held data in the shared data storage unit 303. The information holding unit 306 also takes in and holds the information stored in the shared data storage unit 303.
[0053] The arbitration unit 307 selects a clock master for time synchronization from among the control devices connected to the common network 1, based on the time synchronization information of each control device connected to the common network 1, which is stored in the shared data. For example, if a message cannot be received from the clock master, communication with the clock master is disconnected, and a new clock master is selected. Disconnection of communication can occur, for example, due to instability in wireless communication, or disconnection of a wired communication line due to a broken cable or disconnection of a connector.
[0054] In this manner, the control device according to the first embodiment includes a time synchronization unit 300 that synchronizes time with other control devices that constitute the distributed control system, a communication unit 301 that transmits information about the control device to the other control devices and receives information about the other control devices from the other control devices, an information retention unit 306 that adds synchronized time information to the information and retains the information, and a shared data storage unit 303 that stores shared data.
[0055] In addition, the synchronous update unit 302 transmits the shared data via the communication unit 301 .
[0056] Next, another functional configuration of the control device according to the first embodiment will be described.
[0057] FIG. 4 is a diagram illustrating another functional configuration of the control device according to the first embodiment.
[0058] 4 includes a time synchronization unit 300, a communication unit 301, a synchronization update unit 302, a shared data storage unit 303, a time management unit 304, an input / output control unit 305 (not shown), an information holding unit 306, an arbitration unit 307, and a calculation unit 401. Note that the time synchronization unit 300, the communication unit 301, the synchronization update unit 302, the shared data storage unit 303, the time management unit 304, the input / output control unit 305, the information holding unit 306, and the arbitration unit 307 are the same as the functional units shown in FIG.
[0059] This control device particularly has a calculation unit 401, and corresponds to the control device 102. Note that the control device shown in FIG.
[0060] The calculation unit 401 calculates necessary control commands to control motors and actuators connected to the input / output control unit 305. The calculation process in the calculation unit 401 is executed using acquired information (sensor information) acquired by each control device from the shared data storage unit 303. The calculation unit 401 reads out the acquired information (sensor information) stored in the shared data storage unit 303 and calculates control commands. The calculated control commands are stored in the shared data storage unit 303 and shared with other control devices (control device 100 and control device 101). In other words, the calculation unit 401 calculates a control command for a control target based on the shared data transmitted by the communication unit 301.
[0061] A control command assigned to the control device (control device 100 and control device 101) is read from the shared data storage unit 303 of the control device and output to a motor or actuator connected to the input / output unit 1007 shown in Fig. 2 (the input / output control unit 305 shown in Fig. 3). The calculation unit 401 is realized by software that runs on the CPU 1001.
[0062] Next, the operation timing of the control device according to the first embodiment will be described.
[0063] FIG. 5 is a timing chart showing the operation timing of the control device according to the first embodiment, and shows a state in which the control system executes processes based on a predetermined control period.
[0064] FIG. 5(a) shows that the control device 100, the control device 101, and the control device 102 share the shared data at the beginning of a control period.
[0065] The control device 100 shares data, and when the data sharing time of the control device 100 ends, the control device 101 shares the data, and when the data sharing time of the control device 101 ends, the control device 102 shares the data. Then, when the data sharing time of the control device 102 ends, the CPU of each control device executes another process such as calculation or control until the start time of the next control cycle.
[0066] In other words, each control device acquires and retains sensor information and time synchronization information until the next data sharing time, and the synchronization update unit 302 updates the shared data storage unit 303 of each control device every control period, thereby sharing the data.
[0067] FIG. 5(b) shows that the control device 102 calculates a control command and shares the calculation result (control command).
[0068] When the data sharing period of the control device 101 ends, the control device 102 calculates a control command based on the sensor information, which is the shared data transmitted from the control devices 100 and 101, and the sensor information in the control device 102.
[0069] Then, at the next data sharing time, the obtained calculation results (control commands) are shared (the control device 102 transmits the obtained calculation results (control commands) to the control device 100 and the control device 101), and the control device 100 and the control device 101 execute control of the corresponding motors and actuators based on the control commands transmitted from the control device 102.
[0070] Next, an example of the contents of the information storage unit 306 of the control device according to the first embodiment will be described.
[0071] FIG. 6 is a diagram illustrating an example of the contents of the information storage unit 306 of the control device according to the first embodiment.
[0072] Figure 6 shows an example of the contents of the holding area of the information holding unit 306 of each control device at time t1, where Figure 6(a) shows holding area 60, which is an example of the contents of the holding area of the information holding unit 306 of the control device 100, Figure 6(b) shows holding area 61, which is an example of the contents of the holding area of the information holding unit 306 of the control device 101, and Figure 6(c) shows holding area 62, which is an example of the contents of the holding area of the information holding unit 306 of the control device 102.
[0073] The holding area 60 stores sensor information a acquired by the sensor 7 connected to the control device 100, and time synchronization information at, together with the acquisition time. The holding area 61 stores sensor information b acquired by the sensor 10 connected to the control device 101, and time synchronization information bt, together with the acquisition time. The holding area 62 stores sensor information c1, c2 acquired by the sensors 12 and 13 connected to the control device 102, and time synchronization information ct, together with the acquisition time.
[0074] The information stored in the holding area 60 of each of these control devices is stored in the shared data storage unit 303 of each of the control devices.
[0075] The calculation unit 401 of the control device 102 calculates a control command based on data information acquired from the other control devices and the control device itself, which is stored in the shared data storage unit 303 of the control device 102. That is, for this calculation, the sensor information of the sensor 7 acquired by the control device 100, the sensor information of the sensor 10 acquired by the control device 101, and the sensor information of the sensors 12 and 13 acquired by the control device 102 are used.
[0076] Next, an example of the contents of the shared data storage unit 303 of the control device according to the first embodiment will be described.
[0077] FIG. 7 is a diagram illustrating an example of the contents of the shared data storage unit 303 of the control device according to the first embodiment.
[0078] In the control device 102, before the calculation of a control command, the sensor information (sensor value a) and time synchronization information (time synchronization at) acquired by the sensor 7 in the control device 100, the sensor information (sensor value b) and time synchronization information (time synchronization bt) acquired by the sensor 10 in the control device 101, and the sensor information (sensor values c1 and c2) and time synchronization information (time synchronization ct) acquired by the sensors 12 and 13 in the control device 102 are stored in the shared data storage unit 303 as shared data 70.
[0079] Then, the control device 102 calculates a control command based on these pieces of sensor information, and stores the calculation result (control command value) in the shared data storage unit 303.
[0080] Next, an example of the time synchronization information of the control device according to the first embodiment will be described.
[0081] FIG. 8 is a diagram illustrating an example of time synchronization information of the control device according to the first embodiment, and is obtained by extracting the time synchronization information from the shared data 70 in FIG.
[0082] FIG. 8(a) shows time synchronization information 80 when the control device 102 is the clock master, and for example, the amount of clock deviation from the clock master is stored. The time synchronization at stores the difference Δa1 in the time change between the clock of the control device 100 and the control device 102, and the time difference Δa2. Similarly, the time synchronization bt stores the difference Δb1 in the time change between the clock of the control device 101 and the control device 102, and the time difference Δb2. The time synchronization ct has a value of zero because the control device 102 is the clock master that provides the reference time. These values are also stored in the holding area 60 of each control device. The CPU 1001 (calculation unit 401) adds the difference in the time change and the time difference to correct the clock.
[0083] Here, when the control device 102, which is the clock master, leaves the shared network and the next clock master is selected, the arbitration unit 307 mentioned above refers to the shared time synchronization information and selects, from the control devices connected to the common network 1, a control device whose clock difference with the control device 102 is the smallest. After the control device 101 is selected and becomes the clock master, the time synchronization information 81 becomes as shown in FIG. 8(b). That is, the time synchronization at stores the difference Δa1' in the time change between the clock of the control device 100 and the control device 101, and the time difference Δa2'. Since the control device 101 is the clock master that provides the reference time, the time synchronization bt has a value of zero.
[0084] The arbitration unit 307 may determine the control device to become the clock master based on information about the communication path stored in the shared data storage unit 303. For example, quality information about the common network 1 to which each control device is connected may be used. In addition, if the common network 1 is a wireless connection, the connection stability may be evaluated based on radio wave strength, information about whether the network is a base station or a relay station, and the like, to determine the control device to become the clock master.
[0085] In addition, the shared time synchronization information does not need to be shared among all control devices connected to the network, and for example, a memory area for five devices may be prepared to store the time synchronization information of a control device with a small deviation. By limiting the number of time synchronization information items to be stored, the capacity of the shared memory can be reduced.
[0086] FIG. 9 shows an example of the corrected time synchronization information of each control device when the control device 101 is selected as the clock master of the control system according to the first embodiment.
[0087] 9(a) shows the corrected time synchronization information 90 of the control device 100, to which the time synchronization information when the clock master was the control device 102 has been added. The control device 100 performs a time synchronization operation based on this time synchronization information, thereby making it possible to maintain the time synchronization state when the control device 102 was selected as the clock master, and to realize highly accurate real-time control.
[0088] 9(b) shows the corrected time synchronization information 91 of the control device 101, to which the time synchronization information when the clock master was the control device 102 has been added. The control device 101 performs a time synchronization operation based on this time synchronization information, thereby making it possible to maintain the time synchronization state when the control device 102 was selected as the clock master, and similarly making it possible to realize highly accurate real-time control.
[0089] This time synchronization information 90 is calculated from the values held in the shared memory stored in the holding area 60 , and may be added to the holding area 60 .
[0090] FIG. 10 is a diagram showing a state of the time synchronization operation of the control device 100 according to the first embodiment, and shows a state in which the clock master is changed from the control device 102 to the control device 101 at time tm.
[0091] Line 111 is the time on the clock of the control device 102, and line 112 is the time on the clock of the control device 100. Using the time synchronization protocol described above, the difference in the clock with the clock master is detected, and the clock of the control device 100 is controlled to be adjusted in order to synchronize with time 111. At this time, as described above, the difference in the time changes of the clocks and the difference in time are shared by each control device. Line 113 is the time on the clock of the control device 101. Using the time synchronization information after the correction described above, the time synchronization state when the control device 102 was selected as the clock master can be maintained even after time tm, thereby achieving highly accurate real-time control.
[0092] As another method, when the control device 101 distributes time information, the control device 101 may distribute time information to which the amount of clock discrepancy between the control device 101 and the control device 102 has been added, with the same effect being obtained.
[0093] Furthermore, when the control device 102 regains connection to the common network 600, the control device 102 can be selected as the clock master, thereby enabling time synchronization to be continued without deviation.
[0094] Furthermore, the control device that has been disconnected from the common network 600 continues to correct its clock using the corrected time synchronization information stored in the holding area 60 until the connection is restored, and can maintain time synchronization without deviation when the connection to the common network 600 is restored. Even if arbitration of the clock master takes time, the control device can operate independently using the corrected time synchronization information, thereby maintaining time synchronization without deviation even when the connection with the clock master is restored.
[0095] Next, a process in which the control device (control system) according to the first embodiment shares shared information will be described.
[0096] FIG. 11 is a flowchart of a process in which the control device (control system) according to the first embodiment shares shared data (acquired information and time synchronization information) acquired from a sensor.
[0097] In step S91, the operational flow of the control system starts.
[0098] In step S92, the control system is started.
[0099] In step S93, the time synchronization unit 300 performs a time synchronization operation with other control devices. Also, as described above, a clock master is selected.
[0100] In step S94, each control device stores the acquired sensor information and time synchronization information in the information storage unit 306 together with the acquisition time.
[0101] In step S95, each control device stores the sensor information and time synchronization information stored in the information holding unit 306 in the shared data storage unit 303, and shares them with the other control devices as shared data.
[0102] These steps are then repeatedly executed for each control period.
[0103] Next, a process in which the control device (control system) according to the first embodiment calculates a control command and the control device (control system) shares the control command will be described.
[0104] FIG. 12 is a flowchart of a process in which the control device (control system) according to the first embodiment calculates a control command and the control device (control system) shares the control command.
[0105] In step S101, the operational flow of the control system starts.
[0106] In step S102, the control system is started.
[0107] In step S103, the time synchronization unit 300 performs a time synchronization operation with other control devices. Also, as described above, a clock master is selected.
[0108] In step S104, each control device shares the shared data. This step corresponds to step S95.
[0109] In step S104, the calculation unit 401 calculates a control command.
[0110] In step S105, each control device shares the calculated control command.
[0111] These steps are then repeated for each control period.
[0112] The time synchronization information 80 may be shared between the control devices by storing it in a user-defined area of a time synchronization packet in a time synchronization protocol.
[0113] As described above, according to the first embodiment, it is possible to provide a control device that maintains time synchronization without deviation, improves product quality, and realizes highly accurate control. EXAMPLES
[0114] Next, an embodiment in which the above-mentioned control device is applied to an iron and steel system will be described.
[0115] FIG. 13 is an explanatory diagram illustrating an example in which the control device according to the second embodiment is applied to an iron and steel system.
[0116] In the steel system, hot rolling equipment 800 for steel is controlled by control devices 100, 101, 102, 104, and 105. Control devices 100, 101, 102, 104, and 105 are controlled by a terminal 500 connected to a common network 600. Furthermore, control devices 100, 101, 102, 104, and 105, and terminal 500, all connected to the common network 600, are time-synchronized with each other using, for example, control device 105 as a clock master.
[0117] Steel heated in a heating furnace 801 is fed into a hot rolling facility 800. The hot rolling facility 800 includes a roughing mill 802, a finishing mill 803, a cooling facility 804, and a winder 805.
[0118] The temperature of the heating furnace 801 acquired by the temperature sensor 700 is input to the control device 100 via the field network 601 .
[0119] The control device 101 controls the feed control / strip speed sensor unit 701, adjusts the rotation speed of the roughing mill 802, and detects the feed speed of the steel.
[0120] The control device 102 controls the rolling control / plate thickness sensor unit 702, adjusts the rotation speed and tension of the finishing rolling mill 803, and detects the thickness of the steel plate.
[0121] The temperature of the cooling equipment 804 acquired by the temperature sensor 703 is input to the control device 104 .
[0122] The control device 105 controls the winding control / thickness sensor / speed sensor unit 704, adjusts the rotation speed of the winder 805, and detects the thickness of the steel and the winding speed of the steel. The control device 105 also executes calculations of control commands for each control device.
[0123] Furthermore, each control device executes control in accordance with the above-mentioned operation flow.
[0124] Here, even if the control device 105 is disconnected from other control devices due to a break in the wired cable connecting the control device 105 and the common network 600, stable time synchronization can be maintained by the other control devices that remain connected. Therefore, optimal control commands can be calculated from the acquired information, and high-quality, high-precision control can be achieved. EXAMPLES
[0125] Next, an embodiment in which the above-mentioned control device is applied to an FA (Factory Automation) control system will be described.
[0126] FIG. 14 is a diagram illustrating an example in which the control device according to the third embodiment is applied to an FA system.
[0127] A server 520, a monitoring terminal 521, a wireless bridge 522, and a wireless bridge 523 are connected to the LAN 620. Furthermore, the control devices 120 and 121 are wirelessly connected to the wireless bridge 522, and the control devices 122 and 123 are wirelessly connected to the wireless bridge 523. This executes control of the control devices 120, 121, 122, and 123. Furthermore, the control devices 121, 122, and 123 are time-synchronized with the control device 120 as a clock master.
[0128] The control device 120 controls a connected PLC (Programmable Logic Controller) 720, and the control device 121 controls a connected PLC 721. The control device 122 controls a connected PLC 722, and the control device 123 controls a connected PLC 723.
[0129] The PLC 720 controls a picking robot 822 , the PLC 721 controls a conveyor motor 823 and a camera 821 , the PLC 722 controls a painting robot 824 , and the PLC 723 controls a camera 825 .
[0130] Products (products) placed on the belt conveyor 826 are placed in a predetermined position and posture (e.g., the product is facing in the correct direction) by a picking robot 822 controlled by the PLC 720. The belt conveyor 826 moves at a predetermined speed by a conveyor motor 823 controlled by the PLC 721. The products moving on the belt conveyor 826 are photographed by a camera 821 controlled by the PLC 721, and this camera 821 observes whether or not the products are placed in the predetermined position.
[0131] PLC 721 acquires an image of the product captured by camera 821, and performs an inspection to determine whether the product is installed in a predetermined position. A painting robot 824 controlled by PLC 722 paints the surface of the product. A camera 825 controlled by PLC 723 captures an image of the painted product, and observes whether the product is painted correctly. PLC 723 acquires an image of the product captured by camera 825, and performs an inspection to determine whether the product is painted correctly.
[0132] Then, camera information (sensor information) from camera 821 is input to control device 121, and camera information (sensor information) from camera 852 is input to control device 123.
[0133] Then, the control devices 121 and 122 select shared data, which is camera information for the same product, based on the input camera information, and the control device 120 calculates a control command for the picking robot 822 based on the shared data. Also, the control device 122 calculates a control command for the painting robot 824 based on the shared data.
[0134] A picking robot 822 places the product, a camera 821 photographs the product, and a painting robot 824 paints the product. The time at which the camera 825 photographs the product is managed by the time management unit 304 of the control device.
[0135] Here, if the wireless connection between the control device 120 and the wireless bridge 522 is disconnected, as described in the first embodiment, a new clock master is selected through arbitration from among the control devices 121, 122, and 123 that are still connected, based on the time synchronization information in the shared memory.
[0136] As described above, according to the third embodiment, even if the wireless connection is cut off, it is possible to stably maintain time synchronization. Therefore, it is possible to calculate optimal control commands from the acquired information, and it is possible to realize high-quality and high-precision control.
[0137] The control device of Example 1 can be used in various control systems, such as FA systems, steelmaking systems, water and sewage treatment systems, power generation control systems, elevator control systems, railway control systems, automobile control systems, and construction machinery control systems.
[0138] As described above, the control device of this embodiment is equipped with a communication unit 301 that transmits and receives information regarding the control device, a shared data storage unit 303 that stores time synchronization information received from a control device that is a time master device via the communication unit 301, a synchronization update unit 302 that controls the storage of time synchronization information in the shared data storage unit 303 of its own control device in synchronization with the storage in the shared data storage unit 303 of the other control devices, a time management unit 304 that detects the amount of clock deviation relative to the time master device and stores the detected amount of clock deviation in the shared data storage unit 303, and an arbitration unit 307 that selects a time master device based on the amount of clock deviation stored in the shared data storage unit 303 and arbitrates with the other control devices to determine the time master device.Therefore, it is possible to provide a control device that realizes time synchronization by arbitrating information shared between a plurality of control devices, can continue high-precision real-time control, improves product quality, and realizes high-precision control.
[0139] Furthermore, when communication with the time master device is interrupted, the arbitration unit 307 selects a new time master device from the other control devices, so that time synchronization can be continued using the control devices that are operating normally.
[0140] Furthermore, the arbitration unit 307 selects the control device with the smallest amount of clock deviation stored in the shared data storage unit 303 as the time master device, so that the amount of time correction is small and the time error can be reduced.
[0141] In addition, the time management unit 304 stores information about the connected communication path in the shared data storage unit 303, and the arbitration unit 307 selects a time master device based on the stored communication path information, so that stable time synchronization can be achieved by using the time synchronization information transferred via a communication path with stable communication.
[0142] In addition, when communication with the control device that was the original time master device is restored, the arbitration unit 307 selects the control device as the time master device, so that by returning to the original time master device, unnecessary corrections are unnecessary and stable time synchronization can be achieved.
[0143] In addition, after communication from the control device is cut off, the time management unit 304 corrects the clock by adding the clock deviation of the control device itself until reconnection and operates independently, so that the system as a whole can continue to operate even if time synchronization becomes impossible.
[0144] In addition, the shared data storage unit 303 has a memory area for storing time synchronization information received from a predetermined number of control devices, and stores time synchronization information from control devices with small clock differences, so that the number of pieces of time synchronization information stored can be limited, thereby reducing the storage capacity of the shared data storage unit 303.
[0145] In addition, the clock deviation is the time difference and the time change difference, and the arbitration unit 307 selects the control device with the smallest clock time difference as the time master device, and the control device corrects the clock by adding the time difference and the time change difference, so that the time can be synchronized more accurately than in time synchronization using the time difference. In other words, if the time change difference is not used, the time difference between the control devices becomes large after time synchronization, but time synchronization using the time change difference can reduce the time error for a long period of time.
[0146] The present invention is not limited to the above-described embodiments, and includes various modified examples and equivalent configurations within the spirit of the appended claims. For example, the above-described embodiments have been described in detail to clearly explain the present invention, and the present invention is not necessarily limited to those including all of the configurations described. Furthermore, a part of the configuration of one embodiment may be replaced with the configuration of another embodiment. Furthermore, the configuration of another embodiment may be added to the configuration of one embodiment. Furthermore, a part of the configuration of each embodiment may be added, deleted, or replaced with another configuration.
[0147] In addition, each of the above-mentioned configurations, functions, processing units, processing means, etc. may be realized in hardware, for example by designing some or all of them as an integrated circuit, or may be realized in software by a processor interpreting and executing a program that realizes each function.
[0148] Information such as programs, tables, and files that realize each function can be stored in a storage device such as a memory, a hard disk, or an SSD (Solid State Drive), or in a recording medium such as an IC card, an SD card, or a DVD.
[0149] In addition, the control lines and information lines shown are those considered necessary for the explanation, and do not necessarily show all the control lines and information lines necessary for implementation. In reality, it can be considered that almost all components are connected to each other. [Explanation of symbols]
[0150] 1, 600... common network, 20, 21, 22, 601... field network, 1001, 1011, 1021... CPU, 1002, 1012, 1022... memory, 7, 10, 12, 13... sensor, 8, 11... motor, 9... actuator, 100, 101, 102, 104, 105, 120, 121, 122, 123... control device, 1003... communication control unit, 1004... interface unit, 1005... non-volatile storage medium, 1006... bus, 1007... input / output unit, 300... time synchronization unit, 301... communication unit, 302... synchronization update unit, 303... shared data storage unit, 304... time management unit, 305...input / output control unit, 306...information storage unit, 307...arbitration unit, 401...calculation unit, 520...server, 521...monitoring terminal, 700, 703...temperature sensor, 701...feed control / strip speed sensor, 702...rolling control / strip thickness sensor, 704...winding control / strip thickness sensor / strip speed sensor, 720, 721, 722, 723...PLC, 822...picking robot, 821...camera, 823...conveyor motor, 824...painting robot, 825...camera, 826...belt conveyor, 800...rolling equipment, 801...heating furnace, 802...roughing rolling machine, 803...finishing rolling machine, 804...cooling equipment, 805...winding machine.
Claims
1. A control device constituting a control system that executes control over a controlled device, A communication unit that transmits and receives information related to the control device; a shared data storage unit for storing time synchronization information received from a control device that is a time master device via the communication unit; A synchronization update unit that controls storage of time synchronization information in the shared data storage unit of the control device in synchronization with storage in the shared data storage unit of the other control device; a time management unit that detects a clock deviation amount with respect to the time master device and stores the detected clock deviation amount in the shared data storage unit; A control device comprising: an arbitration unit that selects a time master device based on the amount of clock discrepancy stored in the shared data storage unit, and arbitrates with other control devices to determine the time master device.
2. The control device according to claim 1 , The control device, wherein the arbitration unit, when communication with the time master device is interrupted, selects a new time master device from among the other control devices.
3. The control device according to claim 1 , The control device, wherein the arbitration unit selects a control device having the smallest amount of deviation of the clock stored in the shared data storage unit as a time master device.
4. The control device according to claim 1 , The time management unit stores information about a connected communication path in the shared data storage unit, The control device, wherein the arbitration unit selects a time master device based on the stored communication path information.
5. The control device according to claim 1 , A control device characterized in that, when the control device is determined to be a time master device, the time management unit adds a clock deviation amount of the control device and transmits time synchronization information to the other control devices.
6. The control device according to claim 2, The control device, wherein the arbitration unit, when communication with a control device that is the original time master device is restored, selects the control device as the time master device.
7. The control device according to claim 6, The control device according to the present invention is characterized in that, after communication of the control device is interrupted, the time management unit corrects the clock by adding a clock deviation amount of the control device itself until reconnection, and operates independently.
8. The control device according to claim 1 , The control device, characterized in that the shared data storage unit has a memory area for storing time synchronization information received from a predetermined number of the control devices, and stores the time synchronization information of a control device having a small clock difference.
9. The control device according to claim 1 , The clock deviation is a time difference and a time change difference, the arbitration unit selects a control device having a smallest difference between the times of the clocks as a time master device; The control device is characterized in that it corrects the clock by adding the time difference and the time change difference.
10. A control system that executes control on a controlled device, A network that connects a plurality of control devices to each other so that the plurality of control devices can communicate with each other; Each of the plurality of control devices A communication unit that transmits and receives information related to the control device; a shared data storage unit for storing time synchronization information received from a control device that is a time master device via the communication unit; A synchronization update unit that controls storage of time synchronization information in the shared data storage unit of the control device in synchronization with storage in the shared data storage unit of the other control device; a time management unit that detects a difference in time change of a clock and a difference in time with respect to the time master device and stores the detected clock difference in the shared data storage unit; A control system comprising an arbitration unit that selects a time master device based on the difference in clock times of the control devices stored in the shared data storage unit, and arbitrates with other control devices to determine the time master device.
11. A time synchronization method executed by a control device constituting a control system that executes control on a controlled device, The control system includes a plurality of control devices and a network that communicatively connects the plurality of control devices; The time synchronization method includes: The control device stores the time synchronization information received from the control device that is the time master device in a shared data storage unit, The control device controls storage of time synchronization information in the shared data storage unit of the control device in synchronization with storage in the shared data storage unit of the other control devices, the control device detects a difference in time change of the clock with respect to the time master device and a time difference, and stores the detected clock time difference in the shared data storage unit; A time synchronization method, characterized in that the control device selects a time master device based on a clock difference of the control device stored in the shared data storage unit, and arbitrates with other control devices to determine the time master device.
Citation Information
Patent Citations
Communication system, radio station, router, and time synchronizing method
JP2009284054A
JP284054A
Control device and distributed control system
WO2021079599A1
Control system
WO2021131530A1
