Control system, relay device, and communication method
By using relay units to detect and forward communication status and time information of the transmission path, the problem of control performance and operating rate being affected by changes in communication status in network distributed control systems is solved, thus realizing system stability and rapid recovery capability.
Patent Information
- Application Number
- CN202380043065.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-06-21
- Filing Date
- 2023-03-07
- Publication Date
- 2025-01-07
AI Technical Summary
In network distributed control systems, data exchange between controllers is affected by changes in the communication status of the transmission path, leading to unstable control performance and operating rate, and making it difficult to effectively monitor and manage the communication status at any given moment.
The system uses relay units to detect the communication status of the transmission path and exchanges status data with the controller through an interface. This includes detection time information, enabling time synchronization and status data forwarding, and supporting periodic and message communication.
It enables real-time monitoring of communication status between controllers, improves the control performance and operating rate of the network distributed control system, and supports rapid event recovery and analysis.
Smart Images

Figure CN119278610A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a control system, a relay device and a communication method. Background Art
[0002] With the rapid development of information and communication technology in recent years, the need to process more data in industrial equipment is also increasing. More specifically, technological innovations using communication technologies, such as IoT (Internet of Things) and Industry 4.0, are developing. As a result, the amount of data exchanged within the system is increasing.
[0003] As one of the solutions to the increase in the amount of data to be processed, International Publication No. 2013 / 137023 (Patent Document 1) discloses a structure that enables more appropriate data update between devices in a structure including a plurality of communication lines.
[0004] When multiple controllers are connected to form a network distributed control system, a relay unit is used as a gateway responsible for data forwarding between controllers. In such a network distributed control system, a controller exchanges data with other controllers via the relay unit. Through such data exchange, control status monitoring, control between controllers, etc. are achieved.
[0005] Prior art literature
[0006] Patent Literature
[0007] Patent Document 1: International Publication No. 2013 / 137023 Summary of the invention
[0008] Problems to be solved by the invention
[0009] In the above-mentioned network distributed control system, data exchange between controllers is realized via a transmission path and a relay unit, so the control performance or operation rate of the network distributed control system may change according to the change of the communication state of the transmission path. Therefore, in order to maintain the control performance or operation rate of the network distributed control system, it is important to monitor the communication state of the transmission path. In order to perform such monitoring, it is desirable to obtain the time when the communication state is detected together with the communication state of the transmission path.
[0010] Means for solving problems
[0011] A control system of an example of the present disclosure comprises: a first controller having an interface for connecting to a first transmission path; a second controller having an interface for connecting to a second transmission path; and a relay unit having a first interface for connecting to the first transmission path and a second interface for connecting to the second transmission path, the relay unit having a detection unit for detecting the communication status of the first transmission path, the relay unit sending output data sent from the first controller to the second controller in accordance with a forwarding setting, and sending first status data indicating the detected communication status of the first transmission path to the second controller, the first status data indicating the communication status of the first transmission path including time data indicating the time when the communication status was detected.
[0012] According to the control system, when the relay unit detects the communication state of the first transmission path, it sends the first state data indicating the detected communication state and the time when the communication state is detected to the second controller. Thus, the second controller can obtain the time when the state is detected together with the communication state of the first transmission path. In addition, in the device that can obtain the time when the state is detected together with the communication state of the first transmission path, it is possible to include a second controller connected to a second transmission path different from the first transmission path.
[0013] In the above control system, the timing at which the communication state is detected is based on the output of a timer that manages time.
[0014] According to the above control system, the time at which the communication state is detected can be acquired from the output of the timer.
[0015] In the control system, the timer includes: a first timer synchronized with a timer for managing time included in the first controller; and a second timer synchronized with a timer for managing time included in the second controller.
[0016] According to the control system, in order to obtain the time when the communication state of the first transmission path is detected, the output of the first timer synchronized with the timer included in the first controller and the output of the second timer synchronized with the timer included in the second controller can be used.
[0017] In the above control system, the relay unit acquires the time when the communication state is detected based on the output of one of the first timer and the second timer in accordance with the time setting.
[0018] According to the above control system, the detection time of the communication state of the first transmission path can be acquired based on the output of one of the first timer and the second timer.
[0019] In the control system described above, the relay unit acquires the first time based on the output of the first timer and the second time based on the output of the second timer as the time when the communication state is detected, according to the time setting.
[0020] According to the above control system, the detection time of the communication state of the first transmission path can be acquired as the time based on the output of each of the first timer and the second timer.
[0021] In the above-mentioned control system, the moment data included in the first state data includes first moment data based on the first moment and second moment data based on the second moment. The control system provides a user interface for outputting the first state data, and the user interface accepts a user operation of selecting one or both of the first moment data and the second moment data as the moment data included in the output first state data.
[0022] According to the control system, the user can select one of the first time data and the second time data, or can select both, as the time data presented together with the first status data via the user interface.
[0023] In the above control system, a user interface for setting the time setting for the control system is provided according to the user operation.
[0024] According to the control system, the user can set the time data of the detection time included in the first state data to one of the first time data and the second time data, or to both of them, by performing an operation of setting the time in the control system.
[0025] In the above-mentioned control system, the detection unit further detects the communication status of the second transmission path, and the relay unit further sends the output data sent from the second controller to the first controller according to the forwarding setting, and sends the second status data indicating the communication status of the detected second transmission path to the first controller, and the second status data indicating the communication status of the second transmission path includes time data indicating the time when the communication status is detected.
[0026] According to the control system, the relay unit detects the communication state of the second transmission path, and sends the second state data indicating the detected communication state and the time when the communication state is detected to the first controller. Thus, the device capable of obtaining the time when the state is detected together with the communication state of the second transmission path can include the first controller connected to the first transmission path different from the second transmission path.
[0027] In the above control system, the relay unit communicates with the communication master connected to the first transmission path via the first transmission path, and communicates with the second controller as the communication master via the second transmission path.
[0028] According to the above control system, the relay unit can operate as a slave device in the communication via the first transmission path and the communication via the second transmission path.
[0029] According to an example of the present disclosure, a relay device is connected to a first controller via a first transmission path, and is connected to a second controller via a second transmission path. The relay device has: a first interface for connecting to the first transmission path; a second interface for connecting to the second transmission path; a detection unit for detecting a communication state of the first transmission path; and a processing circuit for sending output data sent from the first controller to the second controller according to a forwarding setting, and sending first status data indicating the detected communication state of the first transmission path to the second controller, the first status data including time data indicating the time when the communication state is detected.
[0030] When the relay device detects the communication state of the first transmission path, it transmits the first state data indicating the detected communication state and the time when the communication state is detected to the second controller. Thus, the second controller can obtain the time when the state is detected together with the communication state of the first transmission path. In addition, the device capable of obtaining the time when the state is detected together with the communication state of the first transmission path can include a second controller connected to a second transmission path different from the first transmission path.
[0031] According to an example of the present disclosure, a communication method is a communication method implemented in a control system, the control system having: a first controller having an interface for connecting to a first transmission path; and a second controller having an interface for connecting to a second transmission path. The communication method has the following steps: detecting a communication state of the first transmission path; sending output data sent from the first controller to the second controller according to a forwarding setting; and sending first state data indicating the communication state of the first transmission path to the second controller, the first state data including time data indicating the time when the communication state is detected.
[0032] When the communication method is implemented, when the communication state of the first transmission path is detected, the first state data indicating the detected communication state and the time when the communication state is detected is sent to the second controller. Thus, the second controller can obtain the time when the state is detected together with the communication state of the first transmission path. In addition, the device capable of obtaining the time when the state is detected together with the communication state of the first transmission path can include a second controller connected to a second transmission path different from the first transmission path.
[0033] Effects of the Invention
[0034] According to the present disclosure, the second controller connected to the second transmission path different from the first transmission path can acquire the time when the communication state is detected together with the communication state of the first transmission path. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a schematic diagram showing an application example of the control system 1 according to the present embodiment.
[0036] Figure 2 It is a schematic diagram showing an overall configuration example of the control system 1 according to the present embodiment.
[0037] Figure 3 1 is a block diagram showing a hardware configuration example of the calculation unit 100 of the main control device 10 according to the present embodiment.
[0038] Figure 4 It is a block diagram showing a hardware configuration example of the calculation unit 200 of the sub-controller 20 according to the present embodiment.
[0039] Figure 5 This is a block diagram showing a hardware configuration example of the relay unit 250 of the sub-controller 20 according to the present embodiment.
[0040] Figure 6 This is a diagram showing an example of the currently occurring event information 265 according to this embodiment.
[0041] Figure 7 This is a diagram showing an example of the currently occurring event information 265 according to this embodiment.
[0042] Figure 8 This is a diagram showing an example of the currently occurring event information 265 according to this embodiment.
[0043] Fig. 9 It is a schematic diagram showing an outline of data communication in the control system 1 according to the present embodiment.
[0044] Fig.10 This is a schematic diagram showing an example of a data structure used for data communication in the control system 1 according to the present embodiment.
[0045] Fig.11 This is a diagram for explaining the processing in the relay unit 250 of the control system 1 according to the present embodiment.
[0046] Fig.12 This is a diagram for explaining I / O data transmission by periodic communication in the control system 1 according to the present embodiment.
[0047] Fig.13 This is a diagram showing an example of the data structure of this embodiment.
[0048] Fig.14This is a diagram for explaining the event management of the present embodiment.
[0049] Fig.15 This is a diagram for explaining the event management of the present embodiment.
[0050] Fig.16 This is a diagram for explaining the event management of the present embodiment.
[0051] Fig.17 This is a diagram showing an example of the user interface of the present embodiment.
[0052] Fig.18 This is a flowchart showing an example of the registration process of event information of the relay unit 250 of the present embodiment.
[0053] Fig.19 This is a flowchart showing an example of the deletion and cancellation process of the relay unit 250 of the present embodiment. Detailed Embodiment
[0054] 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.
[0055] <A. Application Example>
[0056] First, an example of the scenario to which the present invention is applied will be described.
[0057] Figure 1 This is a schematic diagram showing an application example of the control system 1 of the present embodiment. Referring to Figure 1 , the control system 1 that can constitute a distributed control system includes a first controller and a second controller. The first controller has an interface for connecting to a first transmission path. The second controller has an interface for connecting to a second transmission path.
[0058] The control system 1 further includes a relay unit that has a first interface for connecting to the first transmission path and a second interface for connecting to the second transmission path. The relay unit has a gateway module and a module for detecting the communication state of the first transmission path. The relay unit sends the output data sent from the first controller to the second controller according to the forwarding setting, and sends the first state data indicating the detected communication state of the first transmission path including the time data indicating the time of the detected state to the second controller. For example, the relay unit sends the output data sent from the first controller through periodic communication to the second controller through periodic communication, and sends the first state data to the second controller through periodic communication. Such a relay unit is configured to be able to perform the message communication described later.
[0059] In this specification, "detecting the communication state of the transmission path" means detecting whether a predetermined type of specific event has occurred in the transmission path or the relay unit. The specific event is not limited, and includes, for example, different types of events such as communication timeout and inability to start communication. The occurrence of the event indicates that an abnormality has occurred in the communication of the transmission path. The communication state of the transmission path includes an abnormal state in which such an abnormality has occurred and a normal state in which no abnormality has occurred. The normal state is also a concept including a recovery state in which an event such as an abnormality has occurred.
[0060] In this specification, "cyclic communication" is a method of transmitting predetermined data at predetermined transmission cycles (for example, 1 msec to several hundred msec).
[0061] In this specification, "message communication" is a method of transmitting data in response to a request from a transmission source or a transmission destination. In "message communication", data may be transmitted even when data transmission is requested.
[0062] pass Figure 1 The data sent by the periodic communication shown has a relatively high priority and a relatively small amount of data. In contrast, the data sent by the message communication has a relatively low priority and a relatively large amount of data. In this way, in addition to the periodic communication as a high-frequency data exchange method, the message communication without time limit can also be used.
[0063] In this specification, the terms "input data" and "output data" indicate what the object data means from the perspective of the controller concerned.
[0064] More specifically, "input data" refers to data input to the controller of interest (data referenced by the controller of interest). "Input data" includes, for example, command values provided from other controllers, state values obtained by sensors connected to other controllers, and the like.
[0065] On the other hand, “output data” refers to data output by the unit concerned (data whose value is changed by the unit concerned). “Output data” includes, for example, command values provided to other controllers and / or actuators connected to other controllers.
[0066] exist Figure 1 In the configuration example shown, data is transferred from the first controller to the second controller via the relay unit. Even the same data may be viewed as "output data" from the first controller as the transmission source, and may be viewed as "input data" from the second controller as the transmission destination.
[0067] In the following description, "input data" and "output data" are sometimes collectively referred to as "input / output data" or "I / O data". However, "input / output data" and "I / O data" sometimes include only input data or only output data.
[0068] In the control system 1 of this embodiment, it is possible to arbitrarily set which of periodic communication and message communication to use according to the characteristics of the data to be sent, etc.
[0069] In this way, in the control system 1, the following structure is adopted: The relay unit not only sends the output data sent from the first controller to the second controller (forwarding process), but also the relay unit detects the communication state of the first transmission path (detection process), obtains the time when the detected state is obtained (time acquisition process), and notifies the second controller of the first state data indicating the obtained detection time (notification process). By adopting such a structure, the relay unit can send a "status notification" indicating the state and detection time detected for the communication of the first transmission path to the second controller connected to the second transmission path different from the first transmission path. Thereby, it is possible to include the second controller connected to the second transmission path in a device that can respond to an event indicated by the communication state of the first transmission path. Thus, in the control system 1, a structure is provided that can cause the communication state of the first transmission path to change to a recovery state based on the detection time of the state. For example, it is possible to provide a judgment criterion such as preferentially responding to a frequently detected state according to the detection time, or preferentially responding starting from the most recently detected state.
[0070] In this disclosure, the first state data indicating the communication state of the first transmission path can be sent by periodic communication or message communication, but in this embodiment, the state data indicating the communication state of the transmission path is sent by periodic communication.
[0071] In addition, the first state data indicating the communication state of the first transmission path can also be sent not only to the second controller but also to the first controller. Similarly, when the communication state of the second transmission path is detected, the second state data indicating the state and the detection time is sent to the first controller, but it can also be sent not only to the first controller but also to the second controller.
[0072] Hereinafter, as a more specific application example, the detailed structure and processing of the control system 1 including the relay unit of this embodiment will be described.
[0073] <B. Overall structure example>
[0074] Next, an overall structure example of the control system 1 of this embodiment will be described.
[0075] Figure 2Schematic diagram showing an example of the overall configuration of a control system 1 according to the present embodiment. Figure 2 The control system 1 of this embodiment includes a main control device 10 and one or more sub-control devices 20.
[0076] In this specification, the "main control device" and "sub-control device" are distinguished for the convenience of explanation, and can be substantially the same hardware structure or substantially the same functional structure. The main control device and the sub-control device can also be a computer such as a PLC (programmable logic controller).
[0077] The main control device 10 is connected to one or more sub-control devices 20 via a field network 4. The field network 4 supports periodic communication and message communication. As the field network 4, for example, EtherCAT (registered trademark), EtherNet / IP (registered trademark), PROFINET (registered trademark), PROFIBUS (registered trademark), DeviceNet (registered trademark), FL-net, CompoNet (registered trademark), etc. can also be used.
[0078] In this way, the main control device 10 corresponds to the first controller, and has an interface for connecting to the field network 4 corresponding to the first transmission path.
[0079] The main control device 10 includes a calculation unit 100 that performs control calculations. The calculation unit 100 can perform data communication via the field network 4. The main control device 10 may further include a power supply unit, an I / O unit, a special unit, and the like.
[0080] The sub-controller 20 includes a calculation unit 200 that executes control calculations and a relay unit 250 that performs data communication using the field network 4. The sub-controller 20 may further include a power supply unit, an I / O unit, a special unit, and the like.
[0081] The arithmetic unit 200 and the relay unit 250 communicate with each other via the internal bus 6 (see Figure 4 and Figure 5 ) is connected. In addition, when the sub-controller 20 includes an I / O unit and / or a special unit, the unit is also connected via the internal bus 6.
[0082] Thus, the calculation unit 200 corresponds to the second controller, and has an interface for connecting to the internal bus 6 corresponding to the second transmission path.
[0083] The relay unit 250 relays the data sent from the main control device 10 in a manner that can be referred to by the arithmetic unit 200, and relays the data output by the arithmetic unit 200 in a manner that can be sent to the main control device 10. That is, the relay unit 250 is a gateway having a first interface for connecting to the field network 4 (the first transmission path) and a second interface for connecting to the internal bus 6 (the second transmission path).
[0084] The control system 1 may also include a support device 300 for creating and changing programs or settings executed by the main control device 10 and / or the sub-control device 20, and a display 400 mainly providing a monitor function. The support device 300 and the display 400 may be connected to the arithmetic unit 200 of the sub-control device 20 or the arithmetic unit 100 of the main control device 10.
[0085] <C. Hardware structure example>
[0086] Next, a hardware structure example of the main devices of the control system 1 of the present embodiment will be described.
[0087] (c1: Arithmetic unit 100)
[0088] Figure 3 is a block diagram showing a hardware structure example of the arithmetic unit 100 of the main control device 10 of the present embodiment. Refer to Figure 3 , the arithmetic unit 100 includes a processor 102 such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit), a chipset 104, a memory 106, a timer 107, a storage 108, an upper network interface 110, a USB (Universal Serial Bus) interface 112, a memory card interface 114, and a field network interface 120.
[0089] The processor 102 reads various programs stored in the storage 108, expands and executes them in the memory 106, thereby implementing the processing required in the arithmetic unit 100. The chipset 104 controls data communication between the processor 102 and each component.
[0090] Typically, a system program 131 and a user program 132 containing computer-readable codes required for control operations are stored in the storage 108.
[0091] By executing the programs stored in the storage 108, the arithmetic unit 100 as a computer executes the processing described in this specification, and the functional structure described in this specification is implemented in the arithmetic unit 100 as a computer.
[0092] The host network interface 110 controls data communication with other devices via the host network. The USB interface 112 controls data communication with the support device 300 or the display 400 via a USB connection.
[0093] 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 .
[0094] The field network interface 120 controls data communication with the sub-controller 20 via the field network 4. More specifically, the field network interface 120 includes: a receiving buffer 121 for holding received data; a sending buffer 122 for generating data to be sent, etc.; and a counter 123. The field network interface 120 is connected to one or more field devices 90 via the network 5. The field device 90 includes an actuator that exerts a certain physical action on a manufacturing device or a production line, etc., and an input / output device including a sensor that exchanges information with the field. The data exchanged between the sub-controller 20 and the field device 90 via the network 5 is updated in an extremely short cycle of several hundred μsec to several tens of msec.
[0095] The counter 123 is used as a time reference for managing the time of communication processing via the network 5 or the field network 4. Typically, the counter 123 increments or decrements the count value at every predetermined period. As the counter 123, for example, a free-running counter is applied, but it can also be implemented using a high-precision event timer (HPET: High Precision Event Timer) or the like, or it can also be implemented using a dedicated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array: Field Programmable Gate Array). The timer 107 is a counter that provides the current time to the processor 102 or the like.
[0096] (c2: operation unit 200)
[0097] Figure 4 2 is a block diagram showing a hardware configuration example of the arithmetic unit 200 of the sub-controller 20 according to the present embodiment. Figure 4 The computing unit 200 includes a processor 202 such as a CPU or an MPU, a chipset 204, a memory 206, a timer 207, a storage 208, a host network interface 210, a USB interface 212, a memory card interface 214, a field network controller 215, and an internal bus interface 220.
[0098] The processor 202 reads various programs stored in the storage 208, expands and executes them in the memory 206, thereby realizing the processing required by the arithmetic unit 200. The chipset 204 controls data communication and the like between the processor 202 and various components.
[0099] The memory 208 typically stores a system program 231 and a user program 232 including a computer-readable code required for control operations.
[0100] By executing the program stored in the memory 208 , the arithmetic unit 200 as a computer executes the processing described in the present specification, and the functional configuration described in the present specification is implemented in the arithmetic unit 200 as a computer.
[0101] The host network interface 210 controls data communication with other devices via the host network. The USB interface 212 controls data communication with the support device 300 or the display 400 via a USB connection.
[0102] The memory card interface 214 is configured to be able to attach and detach the memory card 216 , and is capable of writing data to the memory card 216 and reading various data (user programs, trace data, etc.) from the memory card 216 .
[0103] The internal bus interface 220 controls data communication with one or more units (including the relay unit 250) via the internal bus 6. More specifically, the internal bus interface 220 includes a reception buffer 221 for holding received data and a transmission buffer 222 for generating data to be transmitted.
[0104] The internal bus 6 supports periodic communication and message communication similarly to the field network 4. As the internal bus 6, a manufacturer-specific communication method may be used, for example, EtherCAT (registered trademark), EtherNet / IP (registered trademark), PROFINET (registered trademark), PROFIBUS (registered trademark), DeviceNet (registered trademark), FL-net, CompoNet (registered trademark), etc. may also be used.
[0105] The field network controller 215 includes: a receiving buffer 221 for holding received data; a sending buffer 222 for generating data to be sent, etc.; and a counter 223, which is a counter for managing communication via the network 5 and has the same function as the counter 123 ( Figure 4 ) The field network controller 215 is connected to one or more field devices 90 via the network 5. The field network controller 215 has the same structure as Figure 3 The field network interface 120 is the same as that of the field network interface 120, so the description is not repeated. Figure 3 The timer 107 is also a counter that provides the current time to the processor 202, etc.
[0106] (c3: relay unit 250)
[0107] Figure 5 2 is a block diagram showing a hardware configuration example of the relay unit 250 of the sub-controller 20 according to the present embodiment. Figure 5 The relay unit 250 includes a processing circuit 260 , a field network interface 270 , and an internal bus interface 280 .
[0108] The processing circuit 260 implements the processing and functions of the relay unit 250 described later. More specifically, the processing circuit 260 includes a processor 262, a memory 264, and a storage 267. The processor 262 reads out the system program (firmware) stored in the storage 267, expands and executes it in the memory 264, thereby implementing the processing required in the relay unit 250. In addition to the system program, the memory 267 also stores a forwarding setting 268 for realizing data forwarding, status information 269, an event log 280, a time setting 289, and an event management program 288. The relay unit 250 implements event management processing, event registration processing, etc. by executing the event management program 288. The event management processing includes the elimination and release processing described later.
[0109] The forwarding setting 268 includes setting items for data forwarded from the operation unit 200 to the main control device 10 and setting items for data forwarded from the main control device 10 to the operation unit 200. Such setting items include identifiers of data to be forwarded, etc. In addition, the forwarding setting 268 may include items for setting the type of state to be sent to the operation unit 200 or the main control device 10 among various communication states detected in the transmission path (field network 4 or internal bus 6). These setting items can be set by user operation, for example.
[0110] The field network interface 270 controls data communication between the main control device 10 and the sub-control device 20 via the field network 4. More specifically, the field network interface 270 includes: a detection unit 271 that detects the communication status of the field network 4; a buffer 272 that includes a buffer for holding received data and a buffer for generating data to be sent, etc.; and a counter 273. The counter 273 has a Figure 3 The counter 123 shown in the figure manages the time related to the data communication via the field network 4.
[0111] The internal bus interface 280 controls data communication via the internal bus 6 with one or more units (including the arithmetic unit 200). More specifically, the internal bus interface 280 includes: a detection unit 281 that detects the communication state of the internal bus 6; a buffer 282 that includes buffers for holding received data and buffers for generating data to be transmitted, etc.; and a counter 283. The counter 283 has the same structure as the Figure 3 counter 123 shown, and manages the time related to data communication via the internal bus 6.
[0112] (c4: Other structures)
[0113] In Figure 3 to Figure 5 , a structural example of providing required functions by a processor executing a program is shown, but a dedicated hardware circuit (such as an ASIC or an FPGA, etc.) can also be used to install a part or all of these provided functions.
[0114] In this specification, the "processor" is not limited to a narrow sense processor that executes processing in a stored program manner, and may also include hardwired circuits such as an ASIC or an FPGA. Therefore, the term "processor" can also be replaced by a processing circuitry pre-defined with processing by computer-readable code and / or hardwired circuits.
[0115] The main part of the arithmetic unit can also be implemented using hardware that follows a general architecture (such as an industrial personal computer based on a general personal computer). In this case, virtualization technology can also be used to execute multiple OSs (Operating System) with different uses in parallel, and execute required applications on each OS.
[0116] (c5: Support device 300 and display 400)
[0117] As an example, the support device 300 and the display 400 of the present embodiment are composed of a general computer that follows a general architecture. The hardware structure example of the general computer is well-known, so it will not be described in detail.
[0118] <D. Management of time synchronization and communication state>
[0119] The relay unit 250 performs time synchronization with the arithmetic unit, and in addition, the relay unit 250 detects the communication state.
[0120] (d1: Time synchronization)
[0121] In the present embodiment, "time synchronization" is implemented between the operation unit 200 and the relay unit 250 connected to the operation unit 200 via the internal bus 6. In addition, "time synchronization" is implemented between the operation unit 200 and the operation unit 100 connected to the operation unit 200 via the field network 4. Time synchronization means synchronizing timers, time data, etc. that are mutually possessed. Through such time synchronization, the count value counted by the counter 283 of the internal bus interface 280 is synchronized with the time counted by the timer 207 of the operation unit 200. In addition, the count value counted by the counter 273 of the field network interface 270 is synchronized with the time counted by the timer 107 of the operation unit 100.
[0122] (d2: Detection of communication status)
[0123] The detection unit 281 is implemented by a program (firmware) executed by a processor circuit such as an ASIC or FPGA (not shown) possessed by the internal bus interface 280. Specifically, by executing the program, the detection unit 281 detects the communication state of the internal bus 6. Specifically, the occurrence of an event in the communication is detected, and an event code identifying the detected event is output to the processing circuit 260. As an event, the detection unit 281 detects a timeout based on the communication of the internal bus 6, or detects that the communication cannot be started based on the communication data of the internal bus 6 or the data from the processing circuit 260. In addition, whenever the processing circuit 260 inputs an event code of an event occurring in the communication state of the internal bus 6 from the detection unit 281, the input event code is compared with the event code detected so far, and when it is determined based on the comparison result that there is an event that is no longer detected, that is, when it is detected that the event is eliminated, the event code identifying the eliminated event is obtained.
[0124] In addition, the detection unit 271 is implemented by a program (firmware) executed by a processor circuit such as an ASIC or FPGA (not shown) possessed by the field network interface 270. Specifically, by executing the program, the detection unit 271 detects the communication state of the field network. Specifically, the occurrence of an event in the communication is detected, and an event code 31 described later for identifying the detected event is output to the processing circuit 260. As an event, the detection unit 271 detects a timeout based on the communication of the field network 4, or detects that the communication cannot be started based on the communication data of the field network 4 or the data from the processing circuit 260. In addition, whenever the processing circuit 260 inputs an event code of an event occurring in the communication state of the field network 4 from the detection unit 271, the input event code is compared with the event code detected so far, and when it is determined based on the comparison result that there is an event that is no longer detected, that is, when it is detected that the event is eliminated, the event code identifying the eliminated event is obtained.
[0125] The in - progress event information 265 described later is stored in the memory 264 of the relay unit 250. In addition, the status information 269 of the memory 267 has a plurality of event codes and the status corresponding to each event code. The status information 269 has a data structure that can retrieve the status corresponding to the event based on the event code. In the present embodiment, "status" represents the importance of the corresponding event. The importance represents the degree of influence of the event on communication, or represents the degree of necessity for coping with the communication status indicated by the event, or represents the degree of urgency for coping. Thus, the higher the importance represented by the status, the higher the necessity or urgency for coping with the corresponding event.
[0126] <E. An example of the in - progress event information 265>
[0127] Figure 6 、 Figure 7 以及 Figure 8 are diagrams showing an example of the in - progress event information 265 of the present embodiment. Figure 6 represents the basic structure of the record 266 of the present embodiment. Refer to Figure 6 , the in - progress event information 265 has, for example, a table - like structure that can register 10 records 266. The record 266 representing the detailed information of the event includes an entry number 30, an event code 31, the importance 32 of the event indicated by the event code 31, and an elimination flag 33 indicating whether the elimination of the event has been detected. The importance 32 corresponding to the status is not limited. For example, it is divided into 5 stages of flags F1 to F5. The flag F1 corresponds to a failure level that causes the entire control system 1 to stop operating for the corresponding event, indicating the highest importance. The flag F2 corresponds to a failure level that causes a part of the control system 1 to stop operating for the corresponding event, indicating the second - highest importance. The flag F3 represents an importance lower than that of the flag F2. For example, it represents that the corresponding event conforms to a minor failure level. The flag F4 represents an importance lower than that of the flag F3. For example, it represents that the corresponding event conforms to the level of monitoring information. The flag F5 represents an importance lower than that of the flag F4. For example, it represents that the corresponding event conforms to general information. When registering the record 266 in the in - progress event information 265, the elimination flag 33 of the record 266 is set to "1". When the elimination of the corresponding event is detected, the elimination flag 33 of the record 266 is set to "0", that is, changed from "1" to "0". In addition, based on the importance determined for the event, any one of the flags F1 to F5 is set to "1". The number of records 266 that can be registered in the in - progress event information 265 is 10, but it is not limited to this number.
[0128] 如 Figure 7 所示,发生中事件信息265的记录266可构成为在 Figure 6Append the time data 34 indicating the time when the event is detected to the information. The time data 34 represents the time based on the counter value output from either the counter 273 or the counter 283 when the event indicated by the event code 31 is detected. In the present embodiment, the counter that provides the counter value as the basis for the time data 34 can be specified by the time setting 289 based on a user operation received from the support device 300 or the like.
[0129] In the record 266, as the time when such an event is detected, as Figure 8 shown, it may also include the first time data 35 based on the output of the counter 273 and the second time data 36 based on the output of the counter 283.
[0130] The structure of the record 266 registered in the in - progress event information 265 can be adopted, for example, by a user operation received from the support device 300 or the like, Figure 6 to Figure 8 any one of the structures shown below. Hereinafter, the record 266 has, for example, Figure 7 or Figure 8 the structure.
[0131] <F. Data Communication>
[0132] Next, the data communication in the control system 1 of the present embodiment will be described.
[0133] Fig. 9 is a schematic diagram showing the outline of the data communication in the control system 1 of the present embodiment. Fig. 9 Shows an example of the transmission of I / O data between the main control device 10 and the arithmetic unit 200.
[0134] Referring to Fig. 9 , a relay unit 250 is arranged as a gateway between the main control device 10 and the arithmetic unit 200. A field network 4 equivalent to the first transmission path is connected between the main control device 10 and the relay unit 250.
[0135] It is assumed that the output data of the main control device 10 is sent to the arithmetic unit 200 via the relay unit 250 and the output data of the arithmetic unit 200 is sent to the main control device 10 via the relay unit 250. In the present embodiment, for any transmission, either a method based on periodic communication or a method based on message communication can be adopted.
[0136] In a normal control system, I / O data is only sent through periodic communication, but in the present embodiment, it is also possible to select either periodic communication or message communication according to the amount of data to be sent and the required timeliness, etc.
[0137] The data (output data) transmitted from the main control device 10 is transmitted to the relay unit 250. The relay unit 250 transmits the data received as the output data of the main control device 10 to the calculation unit 200 as the input data of the calculation unit 200.
[0138] On the other hand, data (output data) transmitted from the operation unit 200 is transmitted to the relay unit 250. The relay unit 250 transmits the data received as the output data of the operation unit 200 to the main control device 10 as input data of the main control device 10.
[0139] In this way, the relay unit 250 forwards data between the main control device 10 and the computing unit 200. That is, the relay unit 250 forwards data according to the forwarding setting 268 ( Figure 5 ), the output data sent from the main control device 10 (first controller) through periodic communication is sent to the operation unit 200 (second controller), and the relay unit 250 sends the output data sent from the main control device 10 through message communication to the operation unit 200.
[0140] Likewise, the relay unit 250 transmits the output data sent from the arithmetic unit 200 by periodic communication to the main control device 10 according to the forwarding setting 268 , and transmits the output data sent from the arithmetic unit 200 by message communication to the main control device 10 .
[0141] At this time, the relay unit 250 may also transmit the output data transmitted from the main control device 10 by periodic communication to the operation unit 200 by periodic communication, and transmit the output data transmitted from the main control device 10 by message communication to the operation unit 200 by message communication. Alternatively, the method of transmitting data from the main control device 10 to the relay unit 250 and the method of transmitting data from the relay unit 250 to the operation unit 200 may be different.
[0142] In periodic communication, data is transmitted at every predetermined transmission cycle, so the latest data can always be used at the transmission destination.
[0143] Fig.10 This is a schematic diagram showing an example of a data structure used for data communication in the control system 1 according to the present embodiment.
[0144] Reference Fig.10 In the field network 4, a communication frequency band is divided in each transmission cycle. Each transmission cycle includes a periodic communication frequency band 12 and a message communication frequency band 14. In the periodic communication frequency band 12, a frame 16 of a predetermined data size is transmitted. The frame 16 is sequentially forwarded between devices (units) connected to the field network 4. Thus, the frame 16 circulates periodically in the field network 4.
[0145] In the periodic communication frequency band 12, an area is prepared for writing output data to each device connected to the field network 4. Fig.10 , an example is shown in which N areas are prepared for N devices to write output data respectively. A device connected to the field network 4 can refer to data stored in areas other than the area for writing data of the device itself (ie, data written by other devices).
[0146] Furthermore, in the periodic communication frequency band 12, in addition to the area for writing output data, an area for storing management information (communication management information 18) necessary for communication of the control system 1 is prepared.
[0147] In addition, the frame 16 of the periodic communication frequency band 12 is also prepared with an area for storing the importance 32 of each event registered in the ongoing event information 265. The relay unit 250 writes the importance 32 of the ongoing event information 265 in the memory 264 into the frame 16 received from one transmission path of the internal bus 6 and the field network 4, and transmits the frame 16 to the other transmission path of the internal bus 6 and the field network 4. Thus, the importance 32 of each ongoing event circulates periodically between the devices (units) connected to the field network 4. Through such circulation, the devices (units) connected to the field network 4 can receive the importance 32 of the ongoing event.
[0148] On the other hand, the message communication frequency band 14 is used for message communication from the designated device to one or more other devices according to the instruction of the device (e.g., called "communication master device" or "master device") that manages the field network 4. In addition, in message communication, data with a larger size than that transmitted in one periodic communication may be transmitted, so that one data transmission may require multiple periodic communication frequency bands.
[0149] In addition, in the internal bus 6, Fig.10 Similarly, the communication frequency band is divided for each transmission cycle, and each transmission cycle includes a periodic communication frequency band and a message communication frequency band.
[0150] In this embodiment, an area is prepared in the message communication frequency band 14 for the relay unit 250 to store the ongoing event information 265. The controller (main control device 10 or operation unit 200) receives the ongoing event information 265 from the relay unit 250 through message communication. Thus, the controller can obtain the ongoing event information 265 indicating the event details indicated by the importance 32 in the periodically received frame 16 through message communication.
[0151] Fig.11This is a diagram for explaining the processing in the relay unit 250 of the control system 1 according to this embodiment. In Fig.11 it mainly shows the data forwarding processing in the relay unit 250.
[0152] Referring to Fig.11 the relay unit 250 includes a field network interface 270 connected to the field network 4 and an internal bus interface 280 connected to the internal bus 6.
[0153] The buffer 272 of the field network interface 270 has a receive buffer 274 and a transmit buffer 275. The receive buffer 274 holds the data received from the main control device 10, and the transmit buffer 275 holds the data to be sent to the main control device 10.
[0154] The buffer 282 of the internal bus interface has a receive buffer 284 and a transmit buffer 285. The receive buffer 284 holds the data received from the arithmetic unit 200, and the transmit buffer 285 holds the data to be sent to the arithmetic unit 200.
[0155] The relay unit 250 copies the data held in the receive buffer 274 of the field network interface 270 to the transmit buffer 285 of the internal bus interface 280, and copies the data held in the receive buffer 284 of the internal bus interface 280 to the transmit buffer 275 of the field network interface 270.
[0156] The relay unit 250 realizes data forwarding through such data copying between buffers.
[0157] <G. I / O Data Transmission Based on Periodic Communication>
[0158] Next, the I / O data transmission based on periodic communication in the control system 1 according to this embodiment will be described.
[0159] Fig.12 This is a diagram for explaining the I / O data transmission based on periodic communication in the control system 1 according to this embodiment. Fig.12 It shows the frame 16A that circulates periodically in the field network 4 and the frame 16B that circulates periodically in the internal bus 6.
[0160] Fig.12 The processing example for realizing the data transmission from the main control device 10 to the arithmetic unit 200 is shown in (A) of Fig.12 Referring to (A) of
[0161] The relay unit 250 extracts the output data of the main control device 10 included in the frame 16A, and writes the extracted output data of the main control device 10 to the area allocated to the frame 16B. That is, the frame 16B includes the output data of the main control device 10 as the output data of the relay unit 250. In addition, the relay unit 250 writes the importance 32 corresponding to each event of the event information 265 in the frame 16B. Then, the frame 16B is sent to the operation unit 200. The operation unit 200 extracts the output data of the relay unit 250 (the output data of the main control device 10) included in the frame 16B as input data.
[0162] Fig.12 (B) shows an example of processing for realizing data transmission from the sub-control device 20 to the main control device 10. Fig.12 At (B), the operation unit 200 writes the output data to the area allocated to the frame 16B. Then, the frame 16B is transmitted to the relay unit 250.
[0163] The relay unit 250 extracts the output data of the operation unit 200 included in the frame 16B, and writes the extracted output data of the operation unit 200 to the area allocated to the frame 16A. That is, the frame 16A includes the output data of the operation unit 200 as the output data of the relay unit 250. At this time, the relay unit 250 writes the importance 32 corresponding to each event of the event information 265 in the frame 16A. Then, the frame 16A is sent to the main control device 10. The main control device 10 extracts the output data of the relay unit 250 (the output data of the operation unit 200) included in the frame 16A as input data.
[0164] like Fig.12 As shown, the relay unit 250 realizes I / O data transmission based on periodic communication by exchanging (copying) data between the frame 16A that cyclically circulates in the field network 4 and the frame 16B that cyclically circulates in the internal bus 6 .
[0165] Fig.11 and Fig.12 The exchange (copy) of data in the relay unit 250 shown is to exchange (copy) the importance 32 of each event stored in the frame 16 together with the output data of the frame 16. Thus, the importance 32 of each event occurring is also cyclically circulated in the internal bus 6 and the field network 4.
[0166] In the control system 1 providing the above communication environment, the relay device 250 communicates with the communication master connected to the field network 4 and communicates with the arithmetic unit 200 as the communication master connected to the internal bus 6 in the communication via the internal bus 6 .
[0167] <H. Handling of Events>
[0168] Refer to Figure 13 to Figure 16 , and the event handling based on the relay unit 250 will be described. Fig.13 is a diagram showing an example of the data structure of the present embodiment. Fig.14 is a diagram for explaining the event management of the present embodiment. In the present embodiment, as Fig.14 shown, when the relay unit 250 detects the occurrence of an event, it registers the record 266 of the information based on the detected event into the in-progress event information 265, and registers the log data 40 of the information based on the detected event into the event log 287. The event log 287 is configured to accumulate the log data 40 for each detected event, so the history of the occurred events is represented by the event log 287.
[0169] Refer to Fig.13 in (A). The record 266 of the in-progress event information 265 includes the entry number 30, the importance 32 indicated by the flag F3 being "1", the event code 31, the cancellation flag 33, and the time data 34. The event code 31 includes the event number indicating the setting abnormality and the details indicating the input (IN) data being improper as the detailed information of the event. The event code 31 includes the transmission path identifier 31a for identifying the transmission path where the event is detected.
[0170] Refer to Fig.13 in (B). The event log 287 includes one or more log data 40 accumulated in a record form. The log data 40 includes the number identifying the log data 40 and the information of the detected event. The information of this event includes the importance 32, the event code 31, and the time data 34. When a record 266 in (A) of the information based on the detected event is newly registered in the in-progress event information 265 upon detecting an event, the log data 40 in (B) of the information based on this event is simultaneously registered in the event log 287. Fig.13 Fig.13
[0171] The relay unit 250 performs cancellation and解除 processing on the in-progress event information 265. Refer to Fig.15 , when the relay unit 250 detects the cancellation of an event or receives a解除 operation, it performs cancellation and解除 processing.
[0172] When the relay unit 250 detects the cancellation of an event, based on the event code indicated by this detection, it retrieves the record 266 having the event code 31 consistent with this event code from the in-progress event information 265, and sets the cancellation flag 33 of the retrieved record 266 to "0". Thus, this record 266 in the in-progress event information 265 is set to indicate that the event has been cancelled.
[0173] When receiving the release operation, the relay unit 250 retrieves the record 266 having the event code 31 that matches the event code from the ongoing event information 265 based on the event code indicated by the release operation. When it is determined that the deletion flag 33 of the retrieved record 266 is set to "0", the relay unit 250 deletes the record 266 from the ongoing event information 265. In addition, when the deletion flag 33 of the retrieved record 266 indicates "1", that is, when the event deletion has not been detected, the relay unit 250 does not delete the record 266 from the ongoing event information 265.
[0174] In this way, the record 266 of the ongoing event information 265 is deleted from the ongoing event information 265 when the cancellation of the event is instructed (operated) after the elimination of the corresponding event is detected. Fig.16 The specific processing flow is shown in FIG. Fig.16 In the example, event (1) occurs at time T1, and a record 266 of event (1) is registered in the ongoing event information 265. Event (2) occurs at time T2 thereafter, and a record 266 of event (2) is registered in the ongoing event information 265.
[0175] At a later time T3, when the elimination of event (1) is detected, the elimination flag 33 of event (1) is set to "0", but the record 266 is not deleted and is retained. At a later time T4, when the cancellation operation of event (1) is accepted, the elimination flag 33 based on event (1) is set to "0", and the record 266 is deleted from the occurring event information 265.
[0176] At the subsequent time T5, when the elimination of event (2) is detected, the elimination flag 33 of event (2) is set to "0", but the record 266 is not deleted and is retained. At the subsequent time T6, the release operation of event (2) is accepted. At this time, the elimination flag 33 of event (2) is set to "0", so based on the accepted release operation, the record 266 is deleted from the occurring event information 265.
[0177] according to Fig.16 When the occurrence of an event is detected, the information of the event is registered in the occurring event information 265 and the event log 287. When the elimination of the event registered in this way is detected and the release operation is subsequently accepted, the information of the event is deleted from the occurring event information 265 while being retained in the event log 287.
[0178] Thus, when an event is "detected and eliminated" and then "released", the event information (record 366) is deleted from the ongoing event information 265, and the periodic transmission of the importance 32 corresponding to the event is stopped.
[0179] <I. Example of User Interface>
[0180] Fig.17 This is a diagram showing an example of the user interface of the present embodiment. Devices such as the main control device 10 or the sub-control device 20 display the importance 32 of events received through periodic communication or the ongoing event information 265 received through message communication. For example, the device forwards the importance 32 of the event and the ongoing event information 265 to the support device 300 or the display 400 connected to the device for display. Fig.17 For example, an example of the screen 350 displayed on the display of the support device 300 is shown. The display 400 can also display a Fig.17 similar screen. The provision structure of such a user interface is not limited to the structure provided using the tools of the support device 300 or the display 400.
[0181] Fig.17 The screen 350 contains information for dealing with ongoing events. In the screen 350, based on each record 266 of the ongoing event information 265, it includes the sequence 351 corresponding to the item number 30, the importance 352 corresponding to the importance 32, the category 352A and event name 353 based on the event code 31, the occurrence time 354 based on the time data 34, the cause 355, and the response 356. The cause 355 represents the estimated cause (factor) of the event occurrence, and the response 356 represents the information for dealing with the event based on this cause. The support device 300 retrieves the corresponding estimated cause and response information from the pre-determined information based on the event code 31 of the ongoing event information 265. Thus, the information of the cause 355 and the response 356 is obtained. The response 356 may include, for example, the information 357 of the corresponding page of the user manual for troubleshooting.
[0182] The screen 350 also includes buttons 359 and 360 that are operated to accept user operations. The button 359 is a cancel operation button and is operated when canceling an ongoing event. When the support device 300 or the display 400 accepts the operation of the button 359, it forwards an instruction for the cancel operation including the event code to the relay unit 250. Thus, the relay unit 250 can accept the cancel operation of the event. The event code included in such a cancel operation, for example, includes the event code of the event specified by a touch operation of the user on the Fig.17 screen 350.
[0183] Operate the operation button 360 to set one of the first time based on the counter value of the counter 273 and the second time based on the counter value of the counter 283, or set both, as the time of the record 266 registered in the occurring event information 265. Through such user operation, the setting of the time is forwarded to the relay unit 250 and saved as the time setting 289.
[0184] In addition, such a user interface may also be configured to: accept a user operation on the Fig.17 screen to switch the time 354 of each event to the display of one of the first time and the second time, or switch to the display of both.
[0185] The screen of such a user interface may be configured to include a screen that only displays the importance level 352 corresponding to each occurring event received through periodic communication, and a screen based on the occurring event information 265 received through message communication Fig.17 of.
[0186] <J. Processing Flowchart>
[0187] Next, a processing example implemented by the relay unit 250 in the control system 1 of the present embodiment will be described.
[0188] Fig.18 It is a flowchart showing an example of the registration process of the event information of the relay unit 250 of the present embodiment. Fig.19 It is a flowchart showing an example of the deletion and解除 processing of the relay unit 250 of the present embodiment. Fig.18 and Fig.19 Each step shown can also be implemented by the processor 262 of the relay unit 250 executing the event management program 288.
[0189] Refer to Fig.18 , the relay unit 250 determines whether the communication state of the field network 4 detects a predetermined state, such as a state in which an event such as a predetermined abnormality occurs (step S2). If the state in which an event occurs is detected (step S2: Yes), the relay unit 250 creates a record 266 of event information based on the event code indicating the detected event. The relay unit 250 obtains the time (the first time, the second time, or both times) set by the time setting 289 and sets it as the time data 34 of the record 266 (step S4). Then, the relay unit 250 registers the created record 266 in the occurring event information 265 (step S6), and performs logging (step S8). That is, the relay unit 250 creates log data 40 based on the above event information and registers it in the event log 287. Then, it transfers to step S10.
[0190] If it is detected that the communication state of the field network 4 is not in a state where an event is occurring (step S2 : No), the processing of steps S4 to S8 is skipped and the flow proceeds to step S10 .
[0191] The relay unit 250 determines whether the communication state of the internal bus 6 detects a predetermined state, such as a state where an event such as a predetermined abnormality occurs (step S10). If the state where an event occurs is detected (step S10: yes), the process of steps S4 to S8 is performed on the event detected in the communication state of the internal bus 6. That is, a record 266 of event information based on an event code representing the event is created (step S4), the record 266 is registered in the event information 265 that is occurring (step S6), and the log data 40 based on the event information is created and registered in the event log 287 (step S8). Then, the process moves to step S2.
[0192] On the other hand, when it is detected that the communication state of the internal bus 6 is not in a state where an event has occurred (step S10: No), the processing of steps S4 to S8 is skipped and the process moves to step S2, and the processing of subsequent steps S2 to S10 is repeatedly performed in the same manner as described above.
[0193] Reference Fig.19 The relay unit 250 determines whether the event elimination is detected or the release operation is accepted based on the communication status of the field network 4 or the internal bus 6 (step S20).
[0194] When it is determined that event elimination is not detected and the release operation is not accepted (step S20: No), the process of step S20 is repeatedly performed. If it is determined that event elimination is detected (step S24: Yes), the relay unit 250 retrieves the record 266 having the event code 31 that matches the event code from the event information 265 that is currently occurring based on the event code of the event whose elimination is detected (step S26). The relay unit 250 sets the elimination flag 33 of the retrieved record 266 to "0" (step S28).
[0195] If it is determined in step S20 that a release operation has been accepted (step S30: Yes), the relay unit 250 retrieves a record 266 having an event code 31 that matches the event code from the ongoing event information 265 based on the event code represented by the accepted release operation (step S32). The relay unit 250 determines whether the deletion flag 33 of the retrieved record 266 is set to "0" (step S34). If it is determined that the deletion flag 33 of the record 266 is set to "0" (step S34: Yes), the relay unit 250 deletes the record 266 from the ongoing event information 265 (step S36). Then, the process returns to step S20, and the relay unit 250 repeatedly implements the subsequent processing in the same manner as described above.
[0196] When it is determined that the event elimination is not detected (step S24: No), the process transfers to step S30. In addition, when it is determined that the release operation is not accepted (step S30: No), or when it is determined that the elimination flag 33 of the retrieved record 266 is not set to "0" (step S34: No), the process returns to step S20.
[0197] (Variation Example)
[0198] As described above, the control system or the relay device 250 is configured such that, when the state of the event occurrence in the transmission path is detected, the importance 32 of the event is sent to the controller (main control device 10 or operation unit 200) through periodic communication, and the time data (time data 34, first time data 35, second time data 36) indicating the time when the state of the event occurrence is detected is sent to the controller through message communication. The structure of sending the time data is not limited to this, and for example, the time data may be sent together with the importance 32 of the event through periodic communication.
[0199] (Advantages of the Implementation Method)
[0200] According to the control system 1, when the relay device 250 detects a state in which an event has occurred in the transmission path, it sends the importance 32 of the event and the time data indicating the time when the state is detected to the controller (main control device 10 or operation unit 200). The controller provides a Fig.17 The user interface shown in FIG. Such a user interface provides the user with support information for determining events of high importance, events that occur frequently, events that occurred recently (or earliest), etc. Based on such support information, the user can easily implement responses for event analysis and event elimination. As a result, it is possible to achieve rapid recovery from the state of event occurrence and improve the operating rate of the control system 1.
[0201] Furthermore, the relay device 250 measures the time at which the event occurrence state is detected based on the output of one or both of the timer (counter 273) synchronized with the timer 107 of the main control device 100 and the timer (counter 283) synchronized with the timer 207 of the operation unit 200. Such measured time represents a consistent time based on the output of the synchronized timer, so the event occurrence sequence represented by the time data becomes reliable information.
[0202] In addition, a button 360 is provided to the user as a tool for selecting whether to set the moment to be used for event analysis as the output moment of either the timer (counter 273) synchronized with the time management timer 107 of the main control device 100 or the timer (counter 283) synchronized with the time management timer 207 of the arithmetic unit 200, or to set it as the moment based on the outputs of both. Therefore, the user can, for example, select the moment data based on the output of this one timer or the moment data based on the outputs of both according to the purpose of the analysis.
[0203] <K Note>
[0204] The present embodiment described above includes the following technical ideas.
[0205] [Structure 1]
[0206] The control system (1) includes:
[0207] A first controller (100) having an interface (120) for connecting to a first transmission path (4);
[0208] A second controller (200) having an interface (220) for connecting to a second transmission path (6); and
[0209] A relay unit (250) having a first interface (270) for connecting to the first transmission path and a second interface (280) for connecting to the second transmission path,
[0210] The relay unit has a detection unit (281) for detecting the communication state of the first transmission path,
[0211] The relay unit sends the output data sent from the first controller to the second controller according to the forwarding setting (268), and sends first status data indicating the detected communication state of the first transmission path to the second controller,
[0212] The first status data indicating the communication state of the first transmission path includes time data (34) indicating the moment when the communication state is detected.
[0213] [Structure 2]
[0214] In the control system described in Structure 1,
[0215] The moment when the communication state is detected is based on the output of a timer that manages time.
[0216] [Structure 3]
[0217] In the control system described in Structure 2,
[0218] The timer comprises:
[0219] a first timer (273) synchronized with a time management timer (107) of the first controller; and
[0220] The second timer (283) is synchronized with the timer (207) for managing time included in the second controller.
[0221] [Structure 4]
[0222] In the control system described in Structure 3,
[0223] The relay unit obtains the time when the communication state is detected based on the output of one of the first timer and the second timer according to the time setting (289).
[0224] [Structure 5]
[0225] In the control system described in structure 3 or 4,
[0226] The relay unit obtains a first time based on an output of the first timer and a second time based on an output of the second timer as the time when the communication state is detected according to the time setting (289).
[0227] [Structure 6]
[0228] In the control system described in Structure 5,
[0229] The time data included in the first status data includes first time data based on the first time and second time data based on the second time,
[0230] The control system provides a user interface (350) for outputting the first status data.
[0231] The user interface receives a user operation of selecting one or both of the first time data and the second time data as time data included in the output first status data.
[0232] [Structure 7]
[0233] In the control system described in any one of structures 4 to 6,
[0234] The control system provides a user interface (360) for setting the time setting for the control system according to user operation.
[0235] [Structure 8]
[0236] In the control system described in any one of structures 1 to 7,
[0237] The detection unit further detects the communication state of the second transmission path,
[0238] The relay unit further transmits the output data transmitted from the second controller to the first controller according to the forwarding setting, and transmits second status data indicating the detected communication status of the second transmission path to the first controller,
[0239] The second status data indicating the communication status of the second transmission path includes time data indicating a time when the communication status is detected.
[0240] [Structure 9]
[0241] In the control system described in any one of structures 1 to 8,
[0242] The relay unit communicates with a communication host device connected to the first transmission path via the first transmission path, and communicates with the second controller serving as the communication host device via the second transmission path.
[0243] [Structure 10]
[0244] A relay device (250) is connected to a first controller (100) via a first transmission path (4) and is connected to a second controller (200) via a second transmission path (6), wherein the relay device (250) comprises:
[0245] a first interface (270), which is used to connect to the first transmission path;
[0246] a second interface (280) for connecting to the second transmission path;
[0247] a detection unit (271) for detecting a communication state of the first transmission path; and
[0248] a processing circuit (260) that transmits output data transmitted from the first controller to the second controller according to a forwarding setting (268), and transmits first status data indicating a detected communication status of the first transmission path to the second controller,
[0249] The first status data includes time data (34) indicating the time when the communication status was detected.
[0250] [Structure 11]
[0251] A communication method is implemented in a control system (1), the control system (1) comprising: a first controller (100) having an interface (120) for connecting to a first transmission path (4); and a second controller (200) having an interface (220) for connecting to a second transmission path (6), wherein the communication method comprises the following steps:
[0252] detecting a communication status of the first transmission path;
[0253] sending the output data sent from the first controller to the second controller according to the forwarding setting; and
[0254] sending first status data indicating a communication status of the first transmission path to the second controller,
[0255] The first status data includes time data (34) indicating the time when the communication status was detected.
[0256] The embodiments disclosed this time should be considered in all respects as illustrative and non-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.
[0257] Description of symbols
[0258] 1: control system; 4: field network; 6: internal bus; 10: main control device; 12: frequency band for periodic communication; 14: frequency band for message communication; 16, 16A, 16B: frame; 18: communication management information; 20: sub-control device; 30: item number; 31: event code; 32, 352: importance; 33: elimination flag; 34: time data; 35: first time data; 36: second time data; 90: field device; 100, 20 0: operation unit; 102, 202, 262: processor; 104, 204: chipset; 106, 206, 264: memory; 107, 207: timer; 108, 208, 267: storage; 110, 210: upper network interface; 112, 212: interface; 114, 214: memory card interface; 116, 216: memory card; 120, 270: field network interface; 121, 221, 274, 284: receiving Buffer; 122, 222, 275, 285: Send buffer; 123, 223, 273, 283: Counter; 131, 231: System program; 132, 232: User program; 215: Field network controller; 220, 280: Internal bus interface; 250: Relay unit; 260: Processing circuit; 265: Event information; 266: Record; 268: Forwarding setting; 269: Status information; 271, 281: Detection Detection unit; 272, 282: buffer; 287: event log; 288: event manager; 289: time setting; 300: support device; 350: screen; 351: sequence; 352A: category; 353: event name; 354, T1, T2, T3, T4, T5, T6: time; 355: reason; 356: response; 358, 359, 360: button; 400: display; F1, F2, F3, F4, F5: flag.
Claims
1. A control system, wherein: The control system has: A first controller having an interface for connecting to a first transmission path; a second controller having an interface for connecting to a second transmission path; as well as a relay unit having a first interface for connecting to the first transmission path and a second interface for connecting to the second transmission path, The relay unit includes a detection unit for detecting a communication state of the first transmission path. The relay unit transmits the output data transmitted from the first controller to the second controller according to the forwarding setting, and transmits the first status data indicating the detected communication status of the first transmission path to the second controller, The first status data indicating the communication status of the first transmission path includes time data indicating a time when the communication status is detected.
2. The control system according to claim 1, wherein: The timing at which the communication state is detected is based on an output of a timer that manages time.
3. The control system according to claim 2, wherein: The timer comprises: a first timer synchronized with a timer for managing time included in the first controller; and The second timer is synchronized with a timer for managing time included in the second controller.
4. The control system according to claim 3, wherein: The relay unit acquires the time at which the communication state is detected based on an output of one of the first timer and the second timer in accordance with the time setting.
5. The control system according to claim 3 or 4, wherein: The relay unit acquires, according to time setting, a first time based on an output of the first timer and a second time based on an output of the second timer as times when the communication state is detected.
6. The control system according to claim 5, wherein: The time data included in the first status data includes first time data based on the first time and second time data based on the second time, The control system provides a user interface for outputting the first status data, The user interface receives a user operation of selecting one or both of the first time data and the second time data as time data included in the output first status data.
7. The control system according to any one of claims 4 to 6, wherein: The control system provides a user interface for setting the time setting for the control system according to a user operation.
8. The control system according to any one of claims 1 to 7, wherein: The detection unit further detects the communication state of the second transmission path, The relay unit further transmits the output data transmitted from the second controller to the first controller according to the forwarding setting, and transmits second status data indicating the detected communication status of the second transmission path to the first controller, The second status data indicating the communication status of the second transmission path includes time data indicating a time when the communication status is detected.
9. The control system according to any one of claims 1 to 8, wherein: The relay unit communicates with a communication host device connected to the first transmission path via the first transmission path, and communicates with the second controller serving as the communication host device via the second transmission path.
10. A relay device connected to a first controller via a first transmission path and connected to a second controller via a second transmission path, wherein: The relay device has: A first interface, which is used to connect to the first transmission path; a second interface, which is used to connect to the second transmission path; a detection unit configured to detect a communication state of the first transmission path; as well as a processing circuit that transmits the output data transmitted from the first controller to the second controller according to the forwarding setting, and transmits first status data indicating the detected communication status of the first transmission path to the second controller, The first status data includes time data indicating the time when the communication status is detected.
11. A communication method implemented in a control system comprising: a first controller having an interface for connecting to a first transmission path; and a second controller having an interface for connecting to a second transmission path, wherein: The communication method has the following steps: detecting a communication status of the first transmission path; sending the output data sent from the first controller to the second controller according to the forwarding setting; as well as sending first status data indicating a communication status of the first transmission path to the second controller, The first status data includes time data indicating the time when the communication status is detected.
Citation Information
Patent Citations
Control device, image processing device, control method, computer-readable recording medium, and program
WO2013137023A1