Control calculation device and control device

The control calculation device with dual communication units and a switching mechanism addresses network failure issues in control systems, ensuring continuous control communication by switching between networks and maintaining periodic intervals.

JP2024114285APending Publication Date: 2024-08-23KK TOSHIBA +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023019951
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-13
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing control systems using periodic communication in control devices like PLCs fail to maintain communication when network failures occur, leading to potential disruptions in controlling instrumentation equipment.

Method used

A control calculation device equipped with dual communication units and a communication control mechanism that switches between networks to maintain periodic communication by calculating timeout times and sending switching notifications, ensuring continuous control even in network failures.

Benefits of technology

Ensures uninterrupted control communication by seamlessly switching between networks, maintaining periodic communication intervals and preventing equipment control disruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024114285000001_ABST
    Figure 2024114285000001_ABST
Patent Text Reader

Abstract

To provide a control calculation device and a control device which switch a communication unit while maintaining a periodic communication.SOLUTION: A control calculation device includes: a first communication unit which performs periodic communication being a constant period communication with a first route; a second communication unit which performs periodic communication with a second route; and further a communication control unit which controls the periodic communication, and transmits a switch notice regarding switching of the first communication unit or the second communication unit. Further, the control calculation device includes a time calculation unit which calculates time-out time of the periodic communication. Further, the control calculation device includes a control calculation unit which performs control calculation of a control object facility on the basis of sensor data received from a control device, and transmits the control calculation result of the control object facility to the control device. Further, on the basis of the time-out time, the communication control unit transmits a switch notice for switching the first communication unit to the second communication unit, or transmits a switch notice for switching the second communication unit to the first communication unit.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] An embodiment of the present invention relates to a control operation device and a control device. [Background technology]

[0002] Conventionally, control was performed by control devices such as PLC (Programmable Logic Controller). In the control calculation device that executes the control calculation on the cloud, the results of the control calculation are The control device at the site receives the results of the control calculations and transmits them to the control device at the edge via the network. The results are used to control instrumentation equipment, etc.

[0003] In addition, the cloud-based control and calculation device communicates with the on-site control device at a constant frequency via the network. Communication is performed periodically (periodic communication) to control instrumentation devices, etc. In the event that the routers that make up the network fail, the equipment will be unable to continue this regular communication. If this is not possible, it may become impossible to control the instrumentation. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent No. 5183802 Summary of the Invention [Problem to be solved by the invention]

[0005] In the above-mentioned technique, a first network interface is connected to a second network interface. However, the above technique does not support periodic communication. There is no description of how to maintain and switch, so it is not suitable for control communication in instrumentation devices, etc. It is.

[0006] Therefore, the embodiment of the present invention provides a control and arithmetic device that maintains periodic communication and switches communication units. and a control device. [Means for solving the problem]

[0007] According to one embodiment, the control and arithmetic device performs periodic communication via a first path. The control and arithmetic device further includes a first communication unit for performing the first and second communication via a second path. The control and arithmetic device further includes a second communication unit that performs periodic communication. A message for transmitting a switching notification regarding switching between the first communication unit and the second communication unit. Further, the control and arithmetic device calculates a timeout period for the periodic communication. Further, the control arithmetic device includes a time calculation unit for calculating the time from the sensor data received from the control device. Based on the data, a control calculation is performed for the controlled equipment, and the result of the control calculation for the controlled equipment is The control unit includes a control calculation unit that transmits the time signal to the control device. The switching notification for switching the first communication unit to the second communication unit based on a time out. or transmits the switching notification for switching the second communication unit to the first communication unit. do. [Brief description of the drawings]

[0008] [Figure 1] 1 is an overall configuration diagram of a control system according to a first embodiment. [Diagram 2] FIG. 2 is a connection diagram between a control arithmetic device and a control device in the first embodiment. [Diagram 3] 4 is a message sequence chart when the control arithmetic device and the control device in the first embodiment switch from a first communication unit to a second communication unit. [Figure 4]4 is an example of data transmitted by a first communication unit and a second communication unit of the control device in the first embodiment. [Diagram 5] 5 is a flowchart when a communication control unit in the first embodiment switches from a first communication unit to a second communication unit. [Figure 6] 4 is an example of a round trip time database in the first embodiment. [Figure 7] FIG. 4 is a diagram illustrating an example of setting a timeout period in the first embodiment. [Figure 8] FIG. 11 is a hardware configuration diagram of a control arithmetic device and the like in a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, an embodiment of the present disclosure will be described with reference to the drawings. The drawings are schematic or conceptual, and the proportions of each part do not necessarily correspond to those of the actual device. The above description and drawings are not necessarily the same as the actual drawings. The same elements are given the same reference numerals and detailed explanations are omitted as appropriate.

[0010] (First embodiment) FIG. 1 is an overall configuration diagram of a control system in the first embodiment.

[0011] The control system 1 in this embodiment includes a control arithmetic device 10 and a control device 11. The control arithmetic device 10 and the control device 11 are connected to a first network 20 and a second network The control device 11 is connected to a control target facility, such as a factory, via a network 21. The control and arithmetic device 10 is installed on the edge side where the plant is operated, and the control and arithmetic device 10 is installed on a cloud remote from the plant, for example. will be installed.

[0012] In addition, a sensor 40 and an actuator 50 are connected to the control device 11. 1 is a sensor 40 that detects temperature, humidity, pressure, and the like, as well as a sensor for detecting on / off of a switch. Collect data and use either the first network 20 or the second network 21 and transmits it to the control arithmetic device 10.

[0013] The control arithmetic unit 10 controls the control object based on the sensor data transmitted from the control unit 11. A control calculation is carried out to control the equipment. The result of the control calculation is again transmitted to the first network. 20 or the second network 21 to the control device 11. The device 11 generates a control signal based on the result of the control calculation and transmits it to the actuator 50. do.

[0014] The actuator 50 is operated by a control signal, and the control signal, which is an electrical signal, is converted into a physical movement. The converted signal is used to operate the controlled equipment (not shown).

[0015] In addition, an HMI (Human Machine Interface) 30 is connected to the control arithmetic device 10. For example, the user creates a control and calculation program using the HMI 30 and executes the control and calculation program. 10 and downloading programs to the control device 11.

[0016] In this embodiment, the control arithmetic device 10 is also called a cloud-side control device, and the control device 1 The control arithmetic unit 10 is a higher-level unit than the control unit 11. Since the control arithmetic device 10 is connected to the upper side, the side where the control arithmetic device 10 is installed is called the upper side, and the control device 1 The side where 1 is installed is called the lower side. Each device will be explained below.

[0017] The control arithmetic device 10 determines the control target setting based on the sensor data received from the control device 11. The control calculation device 10 performs a control calculation to control the equipment. The data is transmitted to the device 11. The data is transmitted to the device 11, such as receiving sensor data and transmitting the results of control calculations. The transmission and reception is performed via either the first network 20 or the second network 21. When a fault occurs in one of the networks, the control and arithmetic device 10 performs a first And by switching the second communication units 12a and 12b, the other network is switched to. The network can transmit and receive data and continue to control the equipment to be controlled. The switching operation will be described in detail later.

[0018] The control device 11 acquires sensor data from the sensor 40 and transmits it to the control arithmetic device 10. The control device 11 also receives the results of the control calculation performed by the control calculation device 10. The control unit 11 generates a control signal based on the result of the control operation received from the control operation device 10. The control device 11 also transmits a control signal to the actuator 50. The first controller 100 operates to transmit and receive data, such as transmitting sensor data and receiving the results of control calculations. The control device 100 controls the communication between the first network 20 and the second network 21. 11, when a failure occurs in one of the networks, the first and second communication units 12, which will be described later, By switching between a' and 12b', data can be sent and received by switching to the other network. The control operation device 10 can continue to control the equipment to be controlled by transmitting the control signal. The network switching operation will be described in detail later.

[0019] The first network 20 and the second network 21 are connected to a control arithmetic device 10 and a control device Each of the networks 20 and 21 is constructed as a redundant line between the optical fiber In addition to wired lines such as metal lines, 4G (4th Generation) lines, 5G (5th Generation) lines, n) A network is constructed by radio circuits such as a line, multiple radio circuits or satellite circuits. The description of network equipment such as routers in 20 and 21 is omitted. The networks 20 and 21 may be constructed as dedicated lines, or may be constructed using public lines such as the Internet. In addition, each of the networks 20 and 21 may be constructed such that one of the networks is a wired line. The other network may be constructed as a wireless line. In addition, the network may include both wired and wireless circuits. The network 20 is an example of a first path, and the second network 21 is an example of a second path. It is.

[0020] In addition, the control arithmetic device 10 and the control device 11 are always connected to the first network 20 and the second network 21. When data is sent and received using two lines of network 21, the increase in data volume The bandwidth used will increase, and the line costs will rise. The control equipment 11 uses only either the first network 20 or the second network. Communication is carried out using this.

[0021] The HMI30 displays the control status of the controlled equipment through a user interface. The operator can monitor the equipment to be controlled through the HMI 30. The control arithmetic device 10 and the control device 11 download the control program from the HMI 30. As will be described later in detail, the HMI30 calculates the timeout period from the user. The input data for the purpose of the calculation is accepted.

[0022] FIG. 2 is a connection diagram between the control arithmetic device and the control device in the first embodiment.

[0023] Below, each functional block in the control arithmetic device 10 and each functional block in the control device 11 will be described. In order to distinguish the first communication unit 12a in the control device 11 from the first communication unit 1 2a'. The second communication unit 12b, the communication control unit 13, the time calculation unit 14, and the round trip time The database 15 and the storage unit 16 are respectively connected to a second communication unit 12b′ and a communication control unit The time calculation unit 14', the round trip time database 15' and the storage unit 16' are also shown. In addition, since these functional blocks have similar functions, they will be described using the control and arithmetic device 10.

[0024] The first communication unit 12a of the control arithmetic device 10 and the first communication unit 12a′ of the control device 11 , are connected via a first network 20. Also, the second communication units 12b and 12b ' are connected via a second network 21 .

[0025] The control and arithmetic device 10 includes a communication control unit 13, a time calculation unit 14, a storage unit 16, and a control and arithmetic unit 1 The control and arithmetic device 10 is, for example, a personal computer (PC). This can be realized by installing a program for the control and arithmetic device 10. A PU (Central Processing Unit) executes a program of the control arithmetic device 10. As a result, the functions of the communication control unit 13, the time calculation unit 14, the storage unit 16, and the control calculation unit 17 are realized. The storage unit 16 includes a round trip time database 1 which is an area for storing timeout times and the like. 5, and is constructed on an auxiliary storage device on a HDD (Hard Disc Drive). The control and arithmetic device 10 may be implemented as a VM (virtual machine) in a PC.

[0026] The control and arithmetic device 10 also includes a first communication unit 12a and a second communication unit 12b. Each of the communication units 12a and 12b is, for example, a network interface. Each of the communication units 12a and 12b may be implemented as two physical ports, or a virtual port. A single physical port may be implemented with two ports as a single port.

[0027] In the following example, the first communication unit 12a and the second communication unit 12b each have a physical port. This will be explained as follows.

[0028] The communication control unit 13 determines whether periodic communication is performed smoothly based on a timeout period, which will be described later. and determining whether the first communication unit 12a or the second communication unit 12b is connected to the Decide whether to use

[0029] The time calculation unit 14 calculates the timeout time based on the input data input to the HMI 30. The time calculation unit 14 will be described in detail later.

[0030] The round trip time database 15 stores input data and timeout times. For example, The round trip time database 15 holds timeout times for each time and day of the week.

[0031] The control calculation unit 17 communicates with the control device 1 via the first communication unit 12a or the second communication unit 12b. Based on the sensor data received from 1, control calculations are performed to operate the equipment to be controlled. The control calculation is a calculation for controlling the equipment to be controlled. For example, 17 receives a sensor signal from the control device 11 via the first communication unit 12a or the second communication unit 12b. The control calculation unit 17 receives the sensor data from the sensor 40. Based on the calculated output value, the output value of the actuator 50 is calculated to operate the equipment to be controlled. The result of this control calculation is transmitted to the control unit 12 via the first communication unit 12a or the second communication unit 12b. It is transmitted to device 11.

[0032] The control device 11 includes a communication control unit 13', a time calculation unit 14', a storage unit 16', and a control unit 18'. The control device 11 is provided with, for example, a PC (Personal Computer). This can be realized by installing the program. The control unit 11 executes the program of the control device 11, thereby controlling the communication control unit 1 The functions of the memory unit 16', the time calculation unit 14', the memory unit 16' and the control unit 18 are realized. ' includes a round trip time database 15' which is an area for storing timeout times, etc. For example, it is constructed on an auxiliary storage device on a HDD (Hard Disc Drive). 1 may be implemented as a PLC.

[0033] The control unit 18 receives the sensor data via the first communication unit 12a' or the second communication unit 12b'. The control unit 18 also transmits the first data to the control arithmetic device 10. The result of the control calculation is received via the first communication unit 12a' or the second communication unit 12b'. The control unit 18 generates a control signal for controlling the actuator 50 based on the result of the control calculation. The actuator 50 is operated by the control signal. This causes the controlled equipment to operate.

[0034] In the following, the communication control unit 13 or 13′ controls the first communication unit 12a or the second communication unit 12 Sending periodic communication data via b at regular intervals is called periodic communication. The time from the start of cyclic communication to the start of the next cyclic communication is called the period of cyclic communication. Below, we explain how to switch between networks while maintaining periodic communication. In order to simplify the explanation of the switching operation, the following is explained: The explanation of the transmission and reception of the results will be omitted.

[0035] FIG. 3 is a block diagram showing a configuration of a control arithmetic unit and a control device according to the first embodiment, in which a first communication unit transmits a second communication signal to the control device. 13 is a message sequence chart for switching to a signal section.

[0036] FIG. 3 shows a specific flow of switching communication units while maintaining periodic communication by the control arithmetic device 10. This will be explained.

[0037] In step S21, the control arithmetic device 10 receives the command from the communication control unit 13 via the first communication unit 12a. Then, the control device 10 transmits periodic communication data to the first communication unit 12a'. In the device 11, the communication control unit 13' communicates with the first communication unit 12a via the first communication unit 12a'. Transmits periodic communication data.

[0038] The timing of transmitting this periodic communication data is controlled by the communication control units 13 and 13' using a timer. The control operation device 10 and the control device 11 may be provided with a periodic communication management unit (not shown). The periodic communication management unit may be realized by using a timer or the like. Furthermore, the transmission timing of the periodic communication data may be realized using other means.

[0039] While the transmission and reception of periodic communication data is performed normally, the operations of steps S21 to S22 are In this embodiment, the communication control unit 13 receives periodic communication data from the first communication unit 12a. The periodic communication data transmitted by the communication control unit 13′ is stored as the first communication data from the time when the transmission of the periodic communication data started. The time it takes for the signal to be received by the unit 12a is called the round trip time of the periodic communication. From the time when the communication control unit 13 starts transmitting the periodic communication data from the second communication unit 12b, The periodic communication data transmitted by the communication control unit 13' is received by the second communication unit 12b. The round trip time of the periodic communication may be expressed as, for example, The processing time required for transmitting the periodic communication data is also included in the communication control units 13 and 13'. This may also be possible.

[0040] The first network 20 and the second network 21 communicate using different communication media. Therefore, when the control arithmetic device 10 transmits periodic communication data from each path, a delay is generated. The times may be different. In the following description of the present embodiment, the round trip time of the periodic communication is The following description will be given on the assumption that the calculation is performed by periodic communication via the network 20.

[0041] In step S22, within the timeout period, the first communication unit 12a receives a If the periodic communication data cannot be received, in step S23, the communication control unit 13 The step of detecting a timeout and determining that an abnormality has occurred in the communication using the first communication unit 12a. In S24, the communication control unit 13 switches communication from the first communication unit 12a to the second communication unit 12b. In order to switch the communication between the control device 11 and the second communication unit 12b, the second communication unit 12b sends the following to the second communication unit 12b' of the control device 11: Send a switch notification.

[0042] Although not shown in this flowchart, the communication control unit 13 transmits a switching notification. Before the switching, the second communication unit 12b checks whether a switching notification has been received from the control device 11. may also be included.

[0043] In addition, when the communication control unit 13 transmits the switching notification in step S24, the second communication unit 12 b and the second communication unit 12b' negotiate to enable communication with each other. Alternatively, the negotiation may be performed in advance, for example, before the control system 1 is put into service. It may be implemented.

[0044] In step S25, the communication control unit 13′ receives the switching notification at the second communication unit 12b′. Then, the subsequent periodic communications are switched from the first communication unit 12a' to the second communication unit 12b'. When the communication control unit 13' performs the switching process in step S25, in step S26 The communication control unit 13' then transmits a switch response to the second communication unit 12b.

[0045] In step S27, when the second communication unit 12b receives the switching response, the communication control unit 13 Then, the subsequent periodic communications are switched from the first communication unit 12a to the second communication unit 12b. In step S28, the control arithmetic device 10 receives the command from the communication control unit 13 via the second communication unit 12b. Then, it transmits periodic communication data to the second communication section 12b'.

[0046] In step S29, the communication control unit 13' determines whether the second communication unit 12b' The periodic communication data is transmitted to the second communication unit 12b via the

[0047] In the subsequent periodic communications, the operations of steps S28 to S29 are repeated.

[0048] FIG. 4 is a diagram showing data transmitted by a first communication unit and a second communication unit of the control device according to the first embodiment. This is an example of data.

[0049] The data transmitted by the control arithmetic device 10 and the control device 11 in periodic communication is the same. Therefore, in FIG. 4, an example in which the control device 11 transmits data and the control arithmetic device 10 receives the data is shown. explain.

[0050] In the above-mentioned periodic communication, for example, the first communication unit 12a detects a timeout. After the first communication unit 12a receives the periodic communication data from the first communication unit 12a′ with a delay, In this way, even if data is received late, the switching process can be performed without errors. Explain how to continue.

[0051] As shown in FIG. 4, data transmitted from the communication control units 13 and 13' is assigned a serial number. The serial number is assigned by the communication control unit 13 or 13'. The allocated bandwidth is increased each time the communication control unit 13 or 13' transmits data. This serial number is also sent along with each transmission data such as periodic communication data and switching notification. In addition, this serial number does not necessarily have to start with a number such as 0 or 1, and can be any number other than the periodic signal. It is sufficient that the allocation is such that the transmission order of the transmission data can be determined.

[0052] The serial number transmitted from the communication control unit 13 or 13' is managed by the receiving side. The communication control unit 13' or 13 checks the serial number attached to the received data and If the serial number is increased from the serial number assigned to the transmitted data, the transmitted data is adopted. If it is an old number or the same number, discard the data.

[0053] FIG. 4 shows that after the second communication unit 12b receives the switching response in step S26, the periodic communication data In other words, the communication control unit 13 receives the timeout data of the periodic communication. Upon detection, a switching process was performed from the first communication unit 12a to the second communication unit 12b. 13 shows an example in which the second communication unit 12b receives periodic communication data with a delay thereafter.

[0054] In this example, the communication control unit 13′ assigns the serial number “3” to the periodic communication data, which is the first transmission data. The following shows an example in which the serial number "1" is assigned to the next transmission data, the switching response, and the serial number "32" is assigned to the next transmission data. The second communication unit 12b, which is the receiving side, receives the switching response for the serial number "32" first. After that, the periodic communication data with the serial number "31" is received late. The cyclic communication data with the serial number "31" has a smaller serial number than the previously received switching response with the serial number "32". Therefore, the periodic communication data is discarded by the communication control unit 13.

[0055] The communication control unit 13 discards the periodic communication data to ensure that the correct message sequence control As shown in the figure, in step S27, the first communication unit 12a is switched to the second communication unit 12b. Perform processing.

[0056] In this way, the communication control unit 13' assigns a serial number that increases in number to each piece of data to be transmitted. The communication control unit 13 on the receiving side judges the change in the serial number, and the control arithmetic unit 10 and the control Control device 11 can continue communication without error.

[0057] FIG. 5 is a diagram showing a state in which the communication control unit in the first embodiment switches from the first communication unit to the second communication unit. 13 is a flowchart showing the process of

[0058] The control operation device 10 and the control device 11 switch the communication units in the same manner. 5, the communication control unit 13 transfers the first communication unit 12a to the second communication unit 12b. An example of switching to the above will be given.

[0059] In this flowchart, the control arithmetic device 10 and the control device 11 each include a first communication unit The following description will be given on the assumption that periodic communication is performed using 12a and 12a'.

[0060] In step S31, the communication control unit 13 obtains the round trip time from the round trip time database 15. The timeout time corresponding to the time is read and the device enters a waiting state for receiving periodic communication data. In this embodiment, the communication control unit 13 reads out from the round trip time database 15 every time periodic communication is performed. However, to speed up processing, the control and arithmetic device 10 uses a cache memory instead. For example, the timeout period corresponding to each time may be accessed. The communication control unit 13 accesses the cache memory every time periodic communication is performed. It is possible to configure the system so that the time-out period corresponding to the time is read out by accessing the time-out period. The timeout period is stored in the cache memory, for example, when the control arithmetic device 10 is started up or In step S32, the communication control unit 13 executes the first communication The periodic communication data transmitted from the communication control unit 13' within the timeout period is Decide whether to receive it.

[0061] In step S32, if the periodic communication data is received within the timeout period, step S In 33, the communication control unit 13 controls the first communication units 12a, 12a′ and the first network 2 0 is determined to be healthy, and the use of the first communication unit 12a is continued. If the periodic communication data is not received within the timeout period, the communication control The control unit 13 detects a failure in either the first communication unit 12a, 12a' or the first network 20. The communication control unit 13 determines that a problem has occurred in the first communication unit 12 used for periodic communication. The second communication unit 12b receives the switching notification sent from the control device 11 instead of the first communication unit 12a. Determine whether or not.

[0062] In step S34, the second communication unit 12b receives the switching notification transmitted from the control device 11. If so, in step S35, the communication control unit 13 transmits the first communication In step S36, the communication control unit 13 transmits a switching response to the communication unit 12b′ of the second The CPU 11 performs a process of switching the periodic communication from the first communication unit 12a to the second communication unit 12b.

[0063] In step S34, the second communication unit 12b receives the switching notification transmitted from the control device 11. If not, in step S37, the communication control unit 13 performs In step S38, the communication control unit 13 is a switching response transmitted from the control device 11 to the second communication unit 12b within the timeout period. The device then determines whether to receive the

[0064] In step S38, the second communication unit 12b receives the switching response transmitted from the control device 11. If so, in step S39, the communication control unit 13 switches the periodic communication from the first communication unit 12a to the In step S38, the second communication unit 12b is switched to the second communication unit 12b. If the switching response transmitted from the control device 11 is not received, the process returns to step S37. Then, the communication control unit 13 transmits the switching notification again to the second communication unit 12b' via the second communication unit 12b. Although not shown in the flowchart, an upper limit may be set for the number of retransmissions. In addition, when the number of retransmissions reaches the upper limit, the communication control unit 13 again periodically transmits the first communication unit 12a. If the number of retransmissions reaches the upper limit, the process returns to step S31. This flowchart may be started. The retransmission method may be, for example, TCP (Transmission An existing communication method having a retransmission function, such as a Transmission Control Protocol (TCP), may be used.

[0065] In step S38, the second communication unit 12b receives the switching response transmitted from the control device 11. If the switching notification is not received, the communication control unit 13 does not resend the switching notification, but performs the step again. Alternatively, the communication control unit 13 may return to step S31 and start this flowchart. The reliability of the switch notification may be improved by continuously transmitting periodic communication data and each notification.

[0066] In addition, in this flowchart, after steps S33, S36 and S39, the switching process ends. However, when the next periodic communication is scheduled, the communication control unit 13 Then, the process starts again from step S31. After the switching is completed, the normal communication is performed. This allows data to be sent and received, such as receiving sensor data and sending the results of control calculations. .

[0067] FIG. 6 is an example of a round trip time database in the first embodiment.

[0068] In this figure, the round trip time database 15 of the control and arithmetic device 10 will be described. The round trip time database 15' of the device 11 is similar to the round trip time database 15, so no explanation is required. The details are omitted.

[0069] The round trip time database 15 stores the types of probability distributions represented by the round trip times of periodic communications. ,The variables to be substituted as parameters into the probability distribution, the mean, median, and standard deviation of the round trip time and timeout times are classified and stored by day of the week and time.

[0070] In this embodiment, the time, day of the week, probability distribution, number of variables, variable group, mean, median, standard deviation The time difference and timeout value are stored. The time item is stored in smaller units such as minutes and seconds. The day of the week item may be stored as a unit such as day or month. good.

[0071] In this embodiment, when storing the above data in the round trip time database 15, the HM I30 accepts input from a user through an input interface (not shown). In this example, the HMI30 can display the following: time, day of the week, type of probability distribution, number of variables, set of variables, average value, The median and standard deviation are accepted as input data. The HMI30 also supports input interfaces. Through the interface, you can upload configuration files related to input data such as CSV files. Also, the input data may be inputted not via the HMI 30 but via the control A maintenance PC may be directly connected to the arithmetic device 10 and input data therein.

[0072] The time calculation unit 14 calculates the timeout time based on the input data. The calculation unit 14 associates the input data with the timeout time and stores it in the round trip time database 15. Store.

[0073] The data stored in the round trip time database 15 is not limited to the above. For example, The data stored in the database 15 includes the maximum, minimum, and most frequent values ​​of round trip times. The data may include data such as skewness. It does not have to be included in the time database 15.

[0074] In general, the degree of congestion on public lines such as the Internet varies depending on the day of the week and the time of day. For example, on weekdays, congestion is more likely to occur at night than during the day. In this case, a delay occurs in the round trip time of periodic communication.

[0075] For the reasons mentioned above, the vertical axis represents probability and the horizontal axis represents time, and the round-trip time of periodic communication is calculated as a probability. When expressed as a distribution, it is not a normal distribution, but rather, for example, a Rayleigh distribution or a gamma distribution. In some cases, the shape of the distribution may be close to a distribution such as a linear or exponential distribution.

[0076] In this embodiment, when inputting data to the HMI 30, the user must first set the periodic communication The types of probability distributions represented by return times are classified by day of the week and time period. The calculation unit 14 calculates the probability distribution from the mean, median, standard deviation, etc., which are expressed according to the type of the probability distribution. Then, the timeout time is calculated for each day of the week and time period, and stored in the round trip time database 15. do.

[0077] In Figure 6, the types of probability distribution are classified into three types: exponential distribution, Rayleigh distribution, and gamma distribution. The number of variables and the set of variables in Figure 6 are used as parameters in the equation for each probability distribution. The types of probability distributions are limited to these. and may be classified into other probability distribution models, such as normal distribution or parade distribution.

[0078] The mean, median and standard deviation in Figure 6 are the parameters of the probability distribution equation. The mean, median, and standard deviation of the round trip time for periodic communication are shown below when the values ​​are substituted. The timeout time in FIG. 6 is the timeout time calculated by the time calculation unit 14. This shows that.

[0079] The type of probability distribution is determined based on, for example, the probability distribution of the round-trip time of periodic communication. The data are classified in advance by the teacher and input to the input interface of the HMI30. For example, the classification may be done automatically by a machine learning model that is related to a different control system. Plot data on the probability distribution of round-trip communication times and the type of probability distribution it represents The time calculation unit 14 learns the above data as teacher data. Take as input plot data on the probability distribution of round trip times for control system 1. When the time calculation unit 14 is set, the time calculation unit 14 may be trained to output the type of probability distribution as an output. In addition to outputting the type of probability distribution, the time calculation unit 14 may also output, for example, the number of variables, Based on these values, the time calculation unit 14 may learn to output a group. The average, median or standard deviation of the round trip communication time may be calculated and output.

[0080] The round trip time database 15 is created, for example, before the control system 1 is put into service. For example, before the control system 1 is put into service, a trial operation period may be set up, The control system 1 may collect the round trip time of the periodic communication. Since the control unit 13 always performs periodic communication, after the control system 1 is put into service, Based on the round-trip time of the periodic communication measured by the communication control unit 13, the time calculation unit 14 calculates a time The timeout time may be updated and stored in the round trip time database 15. To update the time, for example, provide an update button on the input interface of the HMI30 and When the user presses the update button, the time calculation unit 14 calculates the timeout time. The timeout period may be updated at a predetermined timing. This may also be the case.

[0081] FIG. 7 is a diagram illustrating an example of setting the timeout period in the first embodiment.

[0082] The horizontal axis t in Figures 7a to 7c represents elapsed time, and each item on the horizontal axis represents the 1 shows the operation of the control and arithmetic device 10.

[0083] The timeout period is set by the control calculation device 10 and the control device 11 using a similar calculation method. Therefore, in FIG. 7, a method for setting the timeout time in the control arithmetic device 10 will be described. do.

[0084] The communication control unit 13, for example, switches communication from the first communication unit 12a to the second communication unit 12b. When changing the communication mode, in order to maintain the cycle of the cyclic communication, the cyclic communication data for the next cyclic communication must be sent after a certain period. The communication control unit 13 completes the switching process by switching the second communication unit 12 b transmits a switching notification, and then the switching response transmitted from the communication control unit 13′ is treated as the second communication. Since the signal needs to be received by the receiving unit 12b, it takes about the same time as the round trip time for periodic communication. Below, some examples of the timeout period calculated by the time calculation unit 14 will be described. do.

[0085] FIG. 7a shows an example of setting the timeout period in the first embodiment.

[0086] In this embodiment, the time calculation unit 14 calculates the average round-trip time of periodic communication from the interval of periodic communication. The value obtained by subtracting the time is calculated as the timeout period.

[0087] FIG. 7b shows another example of setting the timeout period in the first embodiment.

[0088] Due to congestion and other reasons, the round-trip time for periodic communication varies depending on the time and day of the week. If only the average round trip time of communication is used, the communication control unit 13 cannot maintain the interval of periodic communication. Therefore, the time calculation unit 14 calculates the timeout period by using an average time In this case, the timeout time is the same as the period. The time interval is calculated by subtracting the average time and standard deviation of the round trip time of periodic communication from the interval of periodic communication.

[0089] FIG. 7c shows yet another example of setting the timeout period in the first embodiment.

[0090] In calculating the timeout period, the time calculation unit 14 calculates the first time from the values ​​in FIG. The switching process time for switching communication from the first communication unit 12a to the second communication unit 12b is further subtracted. In this case, the timeout time is determined based on the interval between periodic communications and the round-trip time of periodic communications. The average time, standard deviation, and switching processing time are subtracted from the above.

[0091] Also, the timeout time is calculated by using the median round trip time of periodic communication instead of the average time. In this case, the timeout time is determined based on the interval between periodic communications and the number of round trips of periodic communications. Similarly, the timeout period is calculated by subtracting the median time from the timeout period. The output unit 14 may further subtract the standard deviation from this value. , the switching processing time may further be subtracted from this value.

[0092] In addition, a margin may be added when calculating the timeout period. A gin can be thought of as measuring processing times other than the switching processing time in advance. Alternatively, the maximum value, minimum value, mode, or skewness of the round trip time of periodic communication may be used.

[0093] In addition, a cumulative probability may be used to calculate the timeout period. Section 14 determines a round-trip time in which the cumulative probability of the round-trip time of the periodic communication falls within 3 sigma or 6 sigma. For example, the standard deviation is sigma. Then, the round trip time that falls within 3 sigma is the average round trip time of periodic communication plus three times the standard deviation. The round trip time that falls within 6 sigma is the round trip time of cyclic communication. This is the sum of the average time between the two periods and six times the standard deviation.

[0094] According to the first embodiment, the control arithmetic device 10 and the control device 11 are connected to the first network 2 Even if communication is not possible due to a failure of the second network 21 or the like, the timeout period The control operation device 1 0 and the control device 11 can continue communication without any loss of periodic communication.

[0095] In addition, according to the present embodiment, the first network 20, the second network 21, etc. Even if a fault occurs, communication can be continued. The transmission of signals can continue and the operation of the controlled equipment can continue.

[0096] According to the present embodiment, the communication control units 13 and 13' transmit and receive the switching notification and the switching response. Based on the communication status, the first communication unit 12a, 12a' or the second communication unit 12b, Therefore, the communication control units 13 and 13' can specifically detect the location of the failure. This eliminates the need for specific operations and allows for quick network switching. The communication control units 13 and 13' control the first communication units 12a and 12a' and the first network 2. 0, where the failure occurs in the second network 21 or the second communication units 12b, 12b' This eliminates the need to identify the cause of the problem, and allows for quick network switching. .

[0097] According to this embodiment, the time calculation unit 14 calculates the average round trip time from the interval of periodic communication. The timeout time is calculated by subtracting the value or the median value. 13' maintains the interval of periodic communication even if a failure occurs, and the first communication unit 12a , 12a' or the second communication unit 12b, 12b'.

[0098] According to the present embodiment, the time calculation unit 14 calculates the timeout period. The standard deviation of the round trip time may be subtracted. Even if there is a delay, the interval of the periodic communication is maintained, and the first communication units 12a, 12a' and Alternatively, the first communication unit 12b, 12b' can be switched.

[0099] According to the present embodiment, the time calculation unit 14 calculates the timeout period by In this way, the control arithmetic device 10 can reduce a large amount of time required for the switching process. Even if it takes a long time, the interval of the periodic communication is maintained, and the first communication units 12a, 12a ' or the second communication units 12b, 12b' can be switched.

[0100] According to the present embodiment, the time calculation unit 14 calculates the timeout period in the following manner: A time may be used in which the cumulative probability of the return time falls within 3 sigma or 6 sigma. The control and arithmetic device 10 can more reliably maintain the intervals between periodic communications.

[0101] According to the present embodiment, the time calculation unit 14 calculates the timeout time for each day of the week and each time period. This allows the communication control unit 13 to flexibly set the time interval according to the congestion status of the communication. You can change the out time.

[0102] Second embodiment FIG. 8 is a hardware configuration diagram of a control arithmetic device and the like in the second embodiment.

[0103] The control and arithmetic device 10 in FIG. 8 includes a processor 52 such as a CPU, and a main memory device 53 such as a RAM. and an auxiliary storage device 54 such as a HDD, and a network device such as a LAN (Local Area Network) board. A network interface 55 and a device interface such as a memory slot or a memory port. 56, and a bus 57 that connects these devices to each other. For example, a computer such as a PC (Personal Computer) with a keyboard, mouse, etc. It is equipped with input devices and output devices such as an LCD (Liquid Crystal Display) monitor.

[0104] In this embodiment, in order to cause a computer to execute the information processing of the control and arithmetic device 10, The above program is installed in the auxiliary storage device 54. The control and arithmetic device 10 This program is loaded into the main memory 53 and executed by the processor 52. The functions of the blocks 13 to 16 shown in FIG. 2 are realized within the control and arithmetic device 10. This makes it possible to calculate the timeout period described above. The data is temporarily stored in the main memory 53 or in the auxiliary memory 54. In this embodiment, two physical ports are allocated to one LAN board. These function as a first communication unit 12a and a second communication unit 12b, respectively.

[0105] This program, for example, is a program for connecting an external device 58 in which the program is recorded to a device interface. The program is then loaded into the auxiliary storage device 54 from an external device 58. An example of the external device 58 is a computer-readable storage medium. An example of a recording medium is a CD-ROM (Computer Read-Only Memory Stick). Compact Disk Read Only Memory), CD-R (Compact Disk Recordable), Flexible Disk, DVD-ROM (Digital Versatile Disk Read Only Memory), DVD-R (D An example of a recording device is a HDD. For example, the program can be downloaded via the network interface 55. It can be installed by loading it.

[0106] According to this embodiment, the functions of the control arithmetic device 10 in the first embodiment are implemented in software. This makes it more feasible.

[0107] Although several embodiments have been described above, these embodiments are presented by way of example only. The present invention is not intended to limit the scope of the present invention. The new control arithmetic device 10 and the control device 11 can be implemented in various other forms. In addition, the present invention provides a feature of the control arithmetic device 10 and the control device 11 described in this specification. Various omissions, substitutions, and modifications can be made without departing from the spirit and scope of the present invention. The scope of the present invention and its equivalents include such forms and modifications as fall within the scope and spirit of the invention. is intended to include. [Explanation of symbols]

[0108] 1: control system, 10: control arithmetic device, 11: control device, 12a: first communication unit, 12a': first communication unit, 12b: second communication unit, 12b': second communication unit, 13: communication control unit, 13': communication control unit, 14: time calculation unit, 14': time calculation unit, 15: round trip time database, 15': round trip time database, 16: storage unit, 17: control calculation unit, 18: control unit, 20: first network, 21: second network, 30: HMI, 40: sensor, 50: actuator, 52: processor, 53: main memory device, 54: auxiliary memory device, 55: network interface, 56: device interface, 57: Bus, 58: External device

Claims

1. a first communication unit that performs periodic communication, which is communication at a fixed period, via a first path; a second communication unit that performs the periodic communication via a second path; Controlling the periodic communication and switching between the first communication unit and the second communication unit A communication control unit that transmits a switching notification; a time calculation unit that calculates a timeout period for the periodic communication; Based on the sensor data received from the control device, control calculations are performed for the controlled equipment, and A control calculation unit that transmits a result of the control calculation of the control target equipment to the control device, The communication control unit Based on the timeout period, Transmitting the switching notification to switch the first communication unit to the second communication unit, or Transmitting the switching notification for switching the second communication unit to the first communication unit. Control calculation device.

2. The communication control unit The first communication unit receives a periodic communication transmitted by the periodic communication within the timeout period. When the second communication unit does not receive the communication data, the second communication unit transmits the switching notification, or, after receiving a switching response, switching to the second communication unit; When the second communication unit does not receive the periodic communication data within the timeout period. The first communication unit transmits the switching notification, and after receiving the switching response, The control arithmetic unit according to claim 1 , further comprising a signal processor for performing switching.

3. The time calculation unit The timeout time is determined based on an interval of the periodic communication and a round-trip time of the periodic communication. The control and arithmetic device according to claim 1 ,

4. The time calculation unit The average or median value of the round trip time of the periodic communication is subtracted from the interval of the periodic communication. , calculating the timeout period, or Based on the type of probability distribution represented by the round trip time of the periodic communication, the day of the week and the time The control arithmetic device according to claim 3 , further comprising: a control unit configured to calculate a corresponding timeout period.

5. The time calculation unit The standard deviation of the round trip time of the periodic communication is further subtracted from the interval of the periodic communication to obtain the previous Calculate the timeout period, or A switching process time required for switching between the first and second communication units from the interval of the periodic communication. and further subtracting the time between the first and second time slots from the time the first and second time slots are in the timeout period to calculate the timeout period. The control and arithmetic device according to claim 4.

6. The time calculation unit A cumulative probability distribution represented by a round-trip time of the periodic communication is calculated from the interval of the periodic communication. The timeout period is calculated by subtracting the time during which the rate falls within 3 sigma or 6 sigma. The control and arithmetic device according to claim 4 .

7. A storage unit for storing the timeout period corresponding to a day of the week and a time, The communication control unit selects from the storage unit a day of the week and a time when the periodic communication is to be performed. The control and arithmetic device according to claim 4 , further comprising: a processor for reading out the timeout period.

8. The time calculation unit calculates a time based on a round-trip time of the periodic communication measured by the communication control unit. The control arithmetic device according to claim 1 , further comprising: a control unit configured to update the timeout period.

9. a first communication unit that performs periodic communication, which is communication at a fixed period, via a first path; a second communication unit that performs the periodic communication via a second path; Controlling the periodic communication and switching between the first communication unit and the second communication unit A communication control unit that transmits a switching notification; a time calculation unit that calculates a timeout period for the periodic communication; Based on the result of the control calculation of the controlled equipment received from the control calculation device, A control unit that generates a control signal related to the equipment, The communication control unit Based on the timeout period, Transmitting the switching notification to switch the first communication unit to the second communication unit, or Transmitting the switching notification for switching the second communication unit to the first communication unit. Control device.

10. The communication control unit The first communication unit receives a periodic communication transmitted by the periodic communication within the timeout period. When the second communication unit does not receive the communication data, the second communication unit transmits the switching notification, or, after receiving a switching response, switching to the second communication unit; When the second communication unit does not receive the periodic communication data within the timeout period. The first communication unit transmits the switching notification, and after receiving the switching response, The control device of claim 9 , further comprising a switch to a signal portion.

11. The time calculation unit The timeout time is determined based on an interval of the periodic communication and a round-trip time of the periodic communication. The control device according to claim 9 , further comprising:

12. The time calculation unit The average or median value of the round trip time of the periodic communication is subtracted from the interval of the periodic communication. , calculating the timeout period, or Based on the type of probability distribution represented by the round trip time of the periodic communication, the day of the week and the time The control device according to claim 11 , further comprising: a controller configured to calculate a corresponding timeout period.

Citation Information

Patent Citations

  • Redundant conversion method of transmission line and system using the same

    JP2000295255A

  • Process control system

    JP2017117267A

  • Communication system

    JP2019022106A

  • Control system

    JP2020149402A

  • Erekutorosuragusaiyokaiyo moorudo

    JP1976083802A