Remote control device and control device
Patent Information
- Application Number
- JP2023037832
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-03-10
Smart Images

Figure 2024128695000001
Abstract
Description
[Technical field]
[0001] SUMMARY OF THE DISCLOSURE Embodiments of the present invention relate to a remote control device and a control device. [Background technology]
[0002] Control devices such as PLCs (Programmable Logic Controllers) are installed in factories and the like, and execute control calculations to operate the controlled equipment using data collected from sensors, etc. In addition, control programs for periodically executing control calculations are also stored in the controlled equipment on-site, and all of the constituent equipment, such as the control devices, sensors, and controlled equipment, are managed on-site.
[0003] In recent years, the construction of a control system in which the control calculations performed by a control device are executed by a remote control device installed remotely via a wide area network has been considered. In this control system, a control program is also stored in the remote control device, and the control calculations are executed by the remote control device. By constructing a system in which control calculations can be executed remotely, resources can be allocated to the remote control device to distribute the load, and this is also effective from the viewpoint of system redundancy. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 593767 Summary of the Invention [Problem to be solved by the invention]
[0005] There is a technique for switching from a pre-update control program to an updated control program within the same control device. In this technique, when switching the control program, the control device outputs a switching signal, and switches the control program after completing execution of the periodic program.
[0006] However, this technology does not take into consideration switching of control programs between the on-site control device and the remote control device. For example, if a communication failure in the wide area network occurs and the switching signal does not arrive, or if the control device is unable to receive the control calculation results of the remote control device, it may not be possible to control the equipment to be controlled in real time.
[0007] Therefore, an embodiment of the present invention provides a control device and a remote control device that can execute a control program while maintaining the periodicity of the control calculation. [Means for solving the problem]
[0008] According to one embodiment, the remote control device includes a communication unit that receives, from a control device that performs a control calculation of a controlled facility, a transition start notification regarding the transition of the control calculation and a received value including sensor data of the controlled facility and control information during the calculation of the control calculation. The remote control device further includes a control program execution unit that executes a control program for the control calculation based on the sensor data and the control information during the calculation after receiving the transition start notification. [Brief description of the drawings]
[0009] [Figure 1] 1 is an example of an overall configuration diagram of a control system according to a first embodiment. [Diagram 2] 2 is an example of a block diagram of a control system according to the first embodiment; FIG. [Diagram 3] 5A to 5C are block diagrams of another example of the control system in the first embodiment. [Figure 4] FIG. 4 is a diagram showing an example of a processing sequence before start-up of a remote control device in the first embodiment. [Diagram 5] 5 is a diagram showing an example of a processing sequence at the time of control transfer between the remote control device and the control device in the first embodiment. FIG. [Figure 6] 4 is a timing chart of a normal processing sequence of the remote control device and the control device in the first embodiment. [Figure 7]FIG. 4 is a diagram illustrating an example of a normal processing sequence between the remote control device and a control device in the first embodiment. [Figure 8] FIG. 11 is a diagram illustrating an example of a processing sequence during normal operation between the remote control device and a control device in the second embodiment. [Figure 9] 13 is a diagram showing an example of a processing sequence at the time of control transfer between the remote control device and the control device in the second embodiment. FIG. [Figure 10] FIG. 13 is a diagram illustrating an example of a processing sequence at the time of control transfer between the remote control device and the control device in the third embodiment. [Figure 11] 13 is a diagram illustrating an example of a processing sequence when a control device in a third embodiment starts storing received values. FIG. [Figure 12] 13 is a diagram showing another example of a processing sequence at the time of control transfer between the remote control device and the control device in the third embodiment. FIG. [Figure 13] FIG. 13 is a hardware configuration diagram of a remote control device according to a fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment of the present disclosure will be described with reference to the drawings. The present embodiment does not limit the present invention. The drawings are schematic or conceptual, and the ratio of each part is not necessarily the same as the actual one. In the specification and drawings, elements similar to those described above with respect to the previous drawings are given the same reference numerals, and detailed descriptions are omitted as appropriate.
[0011] (First embodiment) FIG. 1 is an example of an overall configuration diagram of a control system in the first embodiment.
[0012] The control system 100 includes a remote control device 1, a wide area network 2, a control device 3, a sensor 4, an actuator 5, and an HMI (Human machine Interface) 40.
[0013] The remote control device 1 and the control device 3 are capable of communicating with each other via a wide area network 2 .
[0014] The remote control device 1 is installed, for example, in a management office away from a factory. The remote control device 1 may be installed in the cloud instead of in the management office. After the remote control device 1 is started up, the remote control device 1 receives data of the sensor 4 from the control device 3 via the wide area network 2 and executes a control calculation for controlling the equipment to be controlled (not shown). The result of the control calculation is transmitted to the control device 3 via the wide area network 2.
[0015] The control device 3 is installed in a plant such as a factory. Before the remote control device 1 is started up, the control device 3 performs a control calculation within the device and generates a control signal for controlling the actuator 5 based on the result of the control calculation. Furthermore, when a control calculation is performed by the remote control device 1, the control device 3 generates a control signal for controlling the actuator 5 based on the result of the control calculation received from the remote control device 1. The actuator 5 is driven by the control signal, and the controlled equipment is operated.
[0016] The wide area network 2 is constructed by wired lines such as optical lines or metal lines, as well as wireless lines such as 4G (4th Generation) lines, 5G (5th Generation) lines, multiple wireless lines, or satellite lines. Descriptions of network equipment such as routers in each of the networks 20 and 21 are omitted. The wide area network 2 may be constructed as a dedicated line, or may be constructed using a public line such as the Internet. Furthermore, the wide area network 2 may be configured as a LAN (Local Area Network) instead of a WAN (Wide Area Network).
[0017] In FIG. 1, a control system 100 has a plurality of control devices 3 connected to one remote control device 1 via a wide area network 2, and each control device 3 controls a different piece of equipment to be controlled. In this embodiment, an example in which two control devices 3 are connected will be described. For the sake of explanation, one of the two control devices 3 will be referred to as control device A, and the other as control device B. In addition, a sensor 4 and an actuator 5 are connected to each of the control devices A and B.
[0018] A user of the control system 100 monitors the status of the remote control device 1 and the control device 3 via the HMI 40. User programs for operating these devices can be downloaded through the HMI 40. In this figure, the HMI 40 is connected to the remote control device 1 to centrally monitor the control system 100, but the HMI 40 may be connected to the control device 3.
[0019] FIG. 2 is an example of a block diagram of the control system according to the first embodiment.
[0020] 2, a block diagram of the remote control device 1 and the control devices A and B will be described. In addition, since the control devices A and B have similar block diagrams, they will be described as the control device 3.
[0021] The remote control device 1 includes a communication unit 11, a control program execution unit 12, and a control memory 13. The remote control device 1 can be realized by installing a program for the remote control device 1 in, for example, a PC (Personal Computer). A CPU (Central Processing Unit) in the remote control device 1 executes the program for the remote control device 1 to realize the functions of the communication unit 11, the control program execution unit 12, and the control memory 13. The control memory 13 is constructed, for example, on a RAM (Random Access Memory). The remote control device 1 may also be implemented as a VM (Virtual Machine) in the PC.
[0022] After the remote control device 1 is started up, the communication unit 11 communicates with a communication unit 31 of the control device 3 (described later) via the wide area network 2. Transmission of control calculation results to the control device 3 and reception of data of the sensor 4 from the control device 3 are performed via the communication unit 11.
[0023] The control program execution unit 12 executes control calculations for controlling the equipment to be controlled.
[0024] The control memory 13 stores the data of the sensor 4, the results of the control calculation, and control information during the calculation. The control program execution unit 12 reads out the data of the sensor 4 stored in the control memory 13, and executes the control calculation.
[0025] The results of the control calculations calculated by the control program execution unit 12 are stored in the control memory 13 and transmitted to the control device 3 via the communication unit 11.
[0026] The control information during the calculation is, for example, the value of a variable used in the control calculation. More specifically, the control information during the calculation is the data of the sensor 4, the number of times that the result of the control calculation calculated in the past exceeded a threshold, or a value used in the past control calculation, and corresponds to intermediate information necessary for outputting the result of the control calculation. Hereinafter, the control information during the calculation is also simply called control information.
[0027] The control device 3 includes a communication unit 31, a control program execution unit 32, a control memory 33, and a control switching determination unit 34. The control device 3 can be realized by installing a program for the control device 3 in, for example, a PC (Personal Computer). A CPU (Central Processing Unit) in the control device 3 executes the program for the control device 3 to realize the functions of the communication unit 31, the control program execution unit 32, the control memory 33, and the control switching determination unit 34. The control memory 13 is constructed on, for example, a RAM (Random Access Memory) such as a memory. The control device 3 may also be implemented as a PLC.
[0028] After the remote control device 1 is started up, the communication unit 31 communicates with the communication unit 11 via the wide area network 2. The data of the sensor 4 to be transmitted to the remote control device 1 and the results of control calculation received from the remote control device 1 are transmitted and received via the communication unit 31.
[0029] Before the remote control device 1 is started up, the control program execution unit 32 executes control calculations for controlling the equipment to be controlled.
[0030] Before the remote control device 1 is started up, the control memory 33 stores the data from the sensor 4, as well as the results of control calculations calculated by the control device 3 and control information during the calculations.
[0031] After the remote control device 1 starts up, the control memory 33 receives and stores the data from the sensor 4, as well as the results of control calculations performed by the remote control device 1 and control information during the calculation.
[0032] When the control device 3 executes a control calculation, the control program execution unit 32 reads out the data of the sensor 4 stored in the control memory 33 as an input value, and executes the control calculation.
[0033] Furthermore, when a control calculation is executed by the control device 3, the result of the control calculation is stored in the control memory 33 and then transmitted to the actuator 5 by the communication unit 31 as a control signal.
[0034] The control switching determination unit 34 determines whether to switch the control calculation when the remote control device 1 is started up. For example, when the control switching determination unit 34 determines that the control calculation is to be switched from the control device 3 to the remote control device 1, the control calculation is executed by the control program execution unit 12 of the remote control device 1 after the switching process.
[0035] FIG. 3 is a block diagram of another example of the control system in the first embodiment.
[0036] FIG. 3 is an example in which a plurality of virtual remote control devices 1 are operating in one physical PC 50. In this example, two virtual remote control devices 1 share resources such as the CPU and memory of one physical PC 50. In this example, the remote control device 1 that executes the control operation of the control device A is called the remote control device A, and the remote control device 1 that executes the control operation of the control device B is called the remote control device B. In this way, the remote control device 1 may be implemented as an individual VM that operates each control device 3. In addition, data such as variables handled by each device of the control system 100 may be stored in, for example, a ring buffer and shared between the devices. This allows the control system 100 to suppress an increase in memory usage in each device. In the following, in order to explain the switching operation from the control device 3 to the remote control device 1, switching between one remote control device 1 and one control device 3 will be explained.
[0037] FIG. 4 is a diagram showing an example of a processing sequence before the start-up of the remote control device in the first embodiment.
[0038] 4 shows, for example, a processing sequence before the start-up of the remote control device 1. Before the start-up of the remote control device 1, control calculations are executed by the on-site control device 3. Before the start-up of the remote control device 1, each process T1 and T6 is executed independently in this order. In addition, T1 and T6 are executed periodically by a T1 period timer and a T6 period timer.
[0039] T1 is a communication process between the control device 3 and the sensor 4 and actuator 5. The communication unit 31 receives data from the sensor 4 and stores it as an input value in the control memory 33. The communication unit 31 also reads out the result of the control calculation from the control memory 33 as an output value for the actuator 5 and transmits it to the actuator 5.
[0040] T6 is a process of executing a control program in the control device 3. Specifically, the control program execution unit 32 reads the data of the sensor 4 from the control memory 33 and executes a control calculation. Furthermore, the control program execution unit 32 stores in the control memory 33 control information during the calculation in addition to the result of the control calculation.
[0041] The control program execution unit 32 in this embodiment stores control information calculated in the middle of calculation by the control device 3 so that the remote control device 1 can execute control calculations after the remote control device 1 starts up.
[0042] FIG. 5 is a diagram showing an example of a processing sequence at the time of control transfer between the remote control device and the control device in the first embodiment.
[0043] Here, an example of process T7 in which the execution location of the control program is transferred from the control device 3 to the remote control device 1 without stopping the control calculation being executed by the control device 3 after the remote control device 1 has started up will be described.
[0044] Meanwhile, the remote control device 1 and the control device 3 perform periodic communication. The control device 3 confirms that the remote control device 1 has started up by confirming communication between the devices through periodic communication. Furthermore, when communication is confirmed through this periodic communication in the wide area network 2 connecting the devices, each device also confirms recovery from a communication failure. Furthermore, periodic communication between the devices may be performed by a general communication confirmation method such as PING (Packet InterNet Groper).
[0045] At T7, first, the control switching determination unit 34 sends a transition start notification to the communication unit 31 to transition the control calculation, and sends a control stop notification to stop the control calculation to the control program execution unit 32. The communication unit 31 that has received the transition start notification transmits an input value and a transition start notification, starts storing received values, and starts a T2 period timer.
[0046] In transmitting the input value and transition start, the communication unit 31 reads out the data of the sensor 4 and the control information in the middle of the calculation from the control memory 33 as input values and transmits them to the communication unit 11. When transmitting the input value, the communication unit 31 also transmits a transition start notification. This transition start notification may be transmitted as transmission data separate from the input value, or may be transmitted as the same transmission data by adding, for example, an identification header to the transmission data of the input value.
[0047] When starting to store received values, after the remote control device 1 starts a control calculation, the communication unit 31 receives the results of the control calculation and control information in the middle of the calculation, and starts the process of storing these data in the control memory 33 as received values.
[0048] In the T2 period timer start, the control device 3 starts the T2 period timer in order to start process T2 for periodically transmitting the contents of the control memory 33 from the control device 3 to the remote control device 1. The details of process T2 will be described later.
[0049] In addition, upon receiving the control stop notification, the control program execution unit 32 stops the T6 period timer to prevent confusion between the results of the control calculation received from the remote control device 1 and the results of the control calculation executed by the control program execution unit 32.
[0050] The communication unit 11 of the remote control device 1 that has received the input value and the transition start notification from the control device 3 stores the received value, notifies the control start, and starts the T4 period timer.
[0051] In the received value storage step, the communication unit 11 stores the data of the sensor 4 received from the communication unit 31 and the control information in the middle of the calculation as received values in the control memory 13. In the control start notification step, the communication unit 11 issues a control start notification to the control program execution unit 12 to start the control calculation. In the T4 period timer start step, the control device 3 starts the T4 period timer to start the process T4 of periodically repeating transmission to the control device 3. The details of the process T4 will be described later.
[0052] Furthermore, upon receiving the control start notification, the control program execution unit 12 reflects the control information, performs control calculation, and starts the T3 period timer.
[0053] In the control information reflection step, the control program execution unit 12 reads out control information in the middle of calculation from the control memory 13 and reflects it as internal information of the program. In the control calculation step, the control program execution unit 12 reads out data from the sensor 4 from the control memory 13, executes a control calculation using this data, and stores the result in the control memory 13. In the T3 period timer start step, the control device 3 starts a T3 period timer that periodically executes a control calculation in the remote control device 1. Details of the process T3 will be described later.
[0054] The above-mentioned processing sequence causes a transition from a state in which T1 and T6 are being executed to a state in which T1 to T4 are being executed independently in this order by T7. Also, T1 to T4 are periodically executed by T1 to T4 periodic timers, respectively.
[0055] FIG. 6 is a timing chart of a normal processing sequence of the remote control device and the control device in the first embodiment.
[0056] Under normal circumstances, T1 to T4 are periodically repeated in this order to execute the processing sequence, thereby achieving remote control calculation. In this embodiment, the time interval from when each of T1 to T4 is executed until when each of T1 to T4 is executed again in the next cycle is called the cycle time. In FIG. 6, the cycle times of each of the processes T1 to T4 are represented by t1 to t4, respectively. In this example, t1 to t4 are set to the same value in order to execute the processes T1 to T4 in each cycle. In addition, the execution start times of these cycle times are managed by cycle timers T1 to T4.
[0057] FIG. 7 is a diagram showing an example of a normal processing sequence between the remote control device and the control device in the first embodiment.
[0058] T1 is the same process as described above, and therefore description thereof will be omitted. T2 is a process of transmitting the contents of the control memory 33 of the control device 3 to the remote control device 1. The communication unit 31 of the control device 3 reads the data of the sensor 4 from the control memory 33 as an input value and transmits it to the remote control device 1. Also, the communication unit 11 of the remote control device 1, which has received the data of the sensor 4, stores the value as a received value in the control memory 13. Note that, since the control device 3 is not performing a control calculation in T2, the communication unit 31 of the control device 3 does not transmit control information in the middle of the calculation to the remote control device 1. Therefore, in T2, the control information in the middle of the calculation is not included in the received value of the communication unit 11 of the remote control device 1.
[0059] T3 is a process of executing a control program in the remote control device 1. The control program execution unit 12 reads the data of the sensor 4 from the control memory 13 and executes a control calculation. The remote control device 1 stores in the control memory 13 the results of the executed control calculation and control information during the calculation.
[0060] T4 is a process for transmitting the data stored in the control memory 13 of the remote control device 1 to the control device 3. The communication unit 11 of the remote control device 1 reads out the control calculation result and the control information in the middle of the calculation from the control memory 13, and transmits them as output values to the control device 3. The communication unit 31 of the control device 3 receives the control calculation result and the control information in the middle of the calculation, and stores these values in the control memory 33 as received values.
[0061] In addition, when a control calculation is being performed by the control device 3 due to a communication failure in the wide area network 2, the control system 100 can transfer the execution location of the control program by a similar processing sequence when the control calculation is performed by the remote control device 1 after the communication failure is recovered.
[0062] According to this embodiment, the control system 100 can transition from a state in which T1 and T6 are executed, that is, a state in which the control calculation is executed by the control device 3, to a state in which T1 to T4 are executed, that is, a state in which the control calculation is executed by the remote control device 1. This allows the control system 100 to transfer the execution location of the control program from the on-site control device 3 to the remote control device 1.
[0063] Furthermore, according to this embodiment, the control device 3 stores control information in the middle of the calculation in the control memory 33 and transmits it to the remote control device 1 via the communication unit 31. Moreover, the remote control device 1 receives this value from the control device 3 and stores it in the control memory 13. The remote control device 1 can reflect past data in the control calculation by reading this value when starting the execution of the control program. As a result, when the remote control device 1 has confirmed communication with the control device 3 or when remotely executing a control calculation after a communication failure in the wide area network 2 is restored, the remote control device 1 can remotely and continuously execute the control calculation without data loss between the remote control device 1 and the control device 3.
[0064] Second embodiment FIG. 8 is a diagram showing an example of a normal processing sequence between the remote control device and the control device in the second embodiment.
[0065] Since T1 to T3 are the same processes as in the first embodiment, the description thereof will be omitted.
[0066] At T4, the communication unit 11 of the remote control device 1 reads out the control calculation result and the control information in the middle of the calculation from the control memory 13, and transmits them as output values to the control device 3. The communication unit 31 of the control device 3 receives the control calculation result and the control information in the middle of the calculation, and stores these values as received values in the control memory 33. The communication unit 31 also notifies the control switching determination unit 34 of the reception time of the received value. When the control switching determination unit 34 is notified of the reception time by the communication unit 31, it updates the reception timer.
[0067] This embodiment is different from the first embodiment in that the control switching determination unit 34 updates the reception timer based on the reception time of the received value.
[0068] FIG. 9 is a diagram showing an example of a processing sequence at the time of control transfer between the remote control device and the control device in the second embodiment.
[0069] The processing sequence in FIG. 9 is a continuation of the processing sequence explained in FIG. 8, and this processing sequence is executed when a communication failure occurs in the wide area network 2, for example.
[0070] T5 is a process for transferring the execution location of the control program from the remote control device 1 to the control device 3. The control switching determination unit 34 monitors whether or not the result of the control calculation and the control information in the middle of the calculation have been received from the remote control device 1 using a reception timer. As described in the processing sequence of FIG. 8, after the communication unit 31 receives the result of the control calculation and the control information in the middle of the calculation from the remote control device 1, it notifies the control switching determination unit 34 of the reception time (see T4). While the normal processing sequence is being executed, the reception timer in the control switching determination unit 34 updates the reception time every time a reception value is received at T4. If the reception time is not updated even after a certain time has elapsed since the last updated reception time, a timeout occurs, and the control switching determination unit 34 determines that communication between the remote control device 1 and the control device 3 is not possible, and starts the processing sequence for control transfer.
[0071] Here, the fixed time for timeout is set to a value shorter than the cycle times t1 to t4 of T1 to T4. For example, if the cycle time t4 of T4 is 1 second, the fixed time may be half that, or 0.5 seconds, and if the process at the time of control transition requires 0.2 seconds, the fixed time may be set to 0.8 seconds.
[0072] Furthermore, after the fixed time for timeout is set, the reception time notification at T4 must be performed shorter than the fixed time for timeout. Methods for this include re-setting the time t4 to a shorter time and transmitting a communication packet for confirming survival at a cycle time different from that for output value transmission at T4. By re-setting the time t4 to a shorter time, the output value transmission at the remote control device 1 is performed shorter than the fixed time for timeout, and the reception time notification at the control device 3 can be performed before the timeout. In addition, for the survival confirmation communication packet, another timer different from that for output value transmission is prepared at T4, and a communication packet for confirming survival at a cycle time different from that for output value transmission is transmitted, so that the reception time notification can be performed before the timeout. Since the communication packet for confirming survival does not require the result of the control calculation and the control information during the calculation, the communication load can be reduced more than by re-setting the time t4 to a shorter time.
[0073] T5 is a process for transferring the control calculation from the remote control device 1 to the control device 3. When a timeout occurs at T5, the control switching determination unit 34 issues a control start notification to the control program execution unit 32 of the control device 3 to start a processing sequence for control transfer. The control switching determination unit 34 also issues a received value storage stop notification to the communication unit 31 so as not to store the received value from the remote control device 1 in the control memory 33. Although this processing sequence shows an example in which the control start notification is issued first and the received value storage stop notification is issued later, the order of these notifications may be reversed.
[0074] The control program execution unit 32, which has received the control start notification, reflects the control information, reads the control information in the middle of calculation from the control memory 33, and reflects it as internal information of the program. After the reflection, the control program execution unit 32 reads the data of the sensor 4 from the control memory 33, executes the control calculation, and stores the result of the control calculation in the control memory 33. Thereafter, the control device 3 starts a T6 period timer to start T6, in which the control device 3 periodically executes the control calculation.
[0075] The communication unit 31, which receives the received value storage stop notification at T5, does not store the received values from the remote control device 1 after the received value storage stop notification in the control memory 33 in order to avoid confusion between the delayed result of the control calculation of the remote control device 1 and the result of the control calculation executed by the control program execution unit 32.
[0076] After completion of T5, the control device 3 may stop executing T2. Similarly to the control switching determination unit 34 of the control device 3, the control program execution unit 12 of the remote control device 1 may update the reception timer when storing the reception value (see T2). As a result, if the reception time is not updated even after a certain period of time has elapsed, the remote control device 1 may time out and stop executing T3 and T4.
[0077] At T6, the control program executing unit 32 reads the data of the sensor 4 from the control memory 33 and executes a control calculation. The control program executing unit 32 also stores in the control memory 33 control information during the calculation in addition to the result of the control calculation.
[0078] The control device 3 periodically executes T1 and T6 according to a T1 period timer and a T6 period timer.
[0079] Furthermore, after the communication failure in the wide area network 2 is restored, the execution location of the control program can be shifted from the control device 3 to the remote control device 1 by executing T7, as in the first embodiment.
[0080] According to this embodiment, the control device 3 updates the reception timer every time it receives a control calculation result or the like from the remote control device 1, and checks the soundness of the communication between the control device 3 and the remote control device 1. Furthermore, the control device 3 can continue the control calculation even if it cannot receive the control calculation result from the remote control device 1 by switching the execution location of the control program from the remote control device 1 to the control device 3 based on the timeout of the reception timer.
[0081] Furthermore, according to this embodiment, the remote control device 1 stores control information in the middle of the calculation in the control memory 13 and transmits it to the control device 3 via the communication unit 11. The control device 3 also receives this value from the remote control device 1 and stores it in the control memory 33. The control device 3 can reflect past data in the control calculation by reading this value when starting to execute the control program. This allows the control device 3 to continuously execute the control calculation on-site without data loss between the remote control device 1 and the control device 3 even if a communication failure occurs in the wide area network 2.
[0082] Furthermore, according to this embodiment, when the control device 3 executes a control calculation in the control program execution unit 32, the control device 3 does not store the received value from the remote control device 1 by stopping storage of the received value. This makes it possible to avoid confusion between the result of the control calculation of the remote control device 1 that arrives late and the result of the control calculation executed by the control program execution unit 32.
[0083] Third embodiment FIG. 10 is a diagram showing an example of a processing sequence at the time of control transfer between the remote control device and the control device in the third embodiment.
[0084] When a communication failure in the wide area network 2 is restored, if the remote control device 1 cannot receive the sensor 4 data, the control information in the middle of the calculation, and the transition start notification transmitted from the control device 3, the control system 100 stops the control calculation in both the remote control device 1 and the control device 3. Therefore, in the third embodiment, the control system 100 repeats communication between the remote control device 1 and the control device 3 multiple times, and stops the control calculation in the control device 3 after confirming that the communication status of the wide area network 2 has stabilized.
[0085] At T7', some of the processes executed at T7 are not executed. Specifically, at T7', the control switchover determination unit 34 does not issue a control stop notice and the communication unit 31 does not start storing received values.
[0086] In the control switching determination unit 34, the control stop notification is not executed, so the control program execution unit 32 continues to execute the control calculation (T6). Also, at T4, the communication unit 31 does not execute the start of storage of the received value, so the received value received by the communication unit 31 is not stored in the control memory 33.
[0087] FIG. 11 is a diagram showing an example of a processing sequence when the control device starts storing received values in the third embodiment.
[0088] The communication unit 31 does not start storing the received values at T7', and instead performs a reception count determination in the control switching determination unit 34 in order to confirm the stability of the communication situation of the wide area network 2. In the reception count determination, the control switching determination unit 34 determines whether or not the number of times that the communication unit 31 has been able to receive the output value transmitted by the communication unit 11 of the remote control device 1, that is, the control calculation result and the control information during the calculation, within a certain period of time exceeds a threshold value. Hereinafter, in this embodiment, the control calculation result and the control information during the calculation received by the communication unit 31 will be described as received values.
[0089] In Fig. 11, the communication unit 31 notifies the control switching determination unit 34 of the time when the received value was received, and the control switching determination unit 34 updates the reception timer based on this notification. Also, the control switching determination unit 34 has a processing sequence in which it determines the number of receptions each time the reception timer is updated. When the reception timer is not updated as in Fig. 7, the control device 3 may be configured such that the communication unit 31 transmits a signal to the control switching determination unit 34 indicating that the received value was received within a certain period of time, and the control switching determination unit 34 determines the number of receptions.
[0090] T4' is a processing sequence when it is determined that the number of times the received value is received does not exceed the threshold value, and T4'' is a processing sequence when it is determined that the number of times the received value is received exceeds the threshold value. The execution cycles of both T4' and T4'' are managed by a T4 cycle timer.
[0091] At T4'', if it is determined that the number of times the received value has been received has exceeded the threshold, the control device 3 executes a control stop notification and starts storing the received values. In the control stop notification, the control switching determination unit 34 notifies the control program execution unit 32, and the control switching determination unit 34 stops the T6' period timer. In addition, the control switching determination unit 34 notifies the communication unit 31 to start storing the received values, and the communication unit 31 executes the received value storage process. After the received value storage start process is executed, T4 is executed instead of the process of T4''.
[0092] As a result, the control system 100 can transition from a state in which T1 and T6 are executed to a state in which T1 to T4 and T6 are executed independently and periodically by T7'. Furthermore, when the number of times the communication unit 31 receives a received value exceeds a threshold, T4'' is executed as T4'. As a result, T6 is stopped and T4 is resumed, and the control system 100 can transition to a state in which T1 to T4 are executed independently and periodically. In other words, the control system 100 can recover to a normal processing sequence in which the remote control device 1 performs a control calculation.
[0093] This threshold value may be set as an arbitrary value by the user of the control system 100. The larger the threshold value, the greater the number of reception count determinations, so that the control switching determination unit 34 can determine that the communication status of the wide area network 2 is stable.
[0094] FIG. 12 is a diagram showing another example of a processing sequence at the time of control transfer between the remote control device and the control device in the third embodiment.
[0095] An example of a processing sequence for determining the number of times an output value is received within a certain period of time is shown in Fig. 11. An example of a processing sequence for when the reception timer times out is shown in Fig. 12.
[0096] The control switching determination unit 34 determines whether the output value from the remote control device 1 has been stably received based on the reception timer and the number of receptions. The reception timer in the control switching determination unit 34 updates the reception timer every time a reception time notification is received at T4'. When a timeout occurs, the control switching determination unit 34 resets the number of receptions and starts T7' again. Here, the T2 to T4 period timers that are started again at T7' are overwritten by the control switching determination unit 34. As a result, even if a timeout occurs and T7' is executed again, T6 continues to be executed, so the control program does not stop. Also, by overwriting each period timer, the control switching determination unit 34 does not need to manage multiple timers.
[0097] According to this embodiment, the control device 3 stores the control information in the middle of the calculation in the control memory 33 and transmits it to the remote control device 1 via the communication unit 31. The remote control device 1 also receives this value from the control device 3 and stores it in the control memory 13. The remote control device 1 can reflect past data in the control calculation by reading this value when starting the execution of the control program. This allows the remote control device 1 to remotely execute the control calculation continuously without data loss between the remote control device 1 and the control device 3 when communication with the control device 3 is confirmed or when remotely executing the control calculation after the communication failure of the wide area network 2 is restored.
[0098] Furthermore, according to this embodiment, the control system 100 repeats communication between the remote control device 1 and the control device 3 multiple times, and after confirming that the communication status of the wide area network 2 is stable, stops the control calculation in the control device 3. In this way, the control system 100 can prevent the control calculation in both the remote control device 1 and the control device 3 from being stopped.
[0099] Furthermore, according to this embodiment, when the reception timer times out, the control switching determination unit 34 resets the number of receptions and counts the number of receptions again. This allows the control system 100 to stop the control calculation in the control device 3 after confirming that the communication situation in the wide area network 2 has become more stable, and prevents the control calculation in both the remote control device 1 and the control device 3 from being stopped.
[0100] (Fourth embodiment) FIG. 13 is a hardware configuration diagram of a remote control device in the fourth embodiment.
[0101] 13 includes a processor 52 such as a CPU, a main memory device 53 such as a RAM, an auxiliary memory device 54 such as a HDD, a network interface 55 such as a LAN (Local Area Network) board, a device interface 56 such as a memory slot or memory port, and a bus 57 that connects these devices together. The remote control device 1 is, for example, a computer such as a PC, and includes input devices such as a keyboard and a mouse, and an output device such as an LCD (Liquid Crystal Display) monitor.
[0102] In this embodiment, a program for causing a computer to execute information processing of the remote control device 1 is installed in the auxiliary storage device 54. The remote control device 1 deploys this program in the main storage device 53 and executes it using the processor 52. This allows the functions of each block shown in FIG. 2 to be realized within the remote control device 1, enabling the transition of the processing sequence described in the first embodiment, etc. Note that data generated by this information processing is temporarily held in the main storage device 53, or stored and saved in the auxiliary storage device 54.
[0103] This program can be installed, for example, by attaching an external device 58 on which this program is recorded to the device interface 56 and storing this program from the external device 58 in the auxiliary storage device 54. Examples of the external device 58 are a computer-readable recording medium and a recording device incorporating such a recording medium. Examples of the recording medium are a CD-ROM (Compact Disk Read Only Memory), a CD-R (Compact Disk Recordable), a flexible disk, a DVD-ROM (Digital Versatile Disk Read Only Memory), and a DVD-R (Digital Versatile Disk Recordable), and an example of the recording device is a HDD. Also, this program can be installed, for example, by downloading this program via the network interface 55.
[0104] According to this embodiment, the functions of the remote control device 1 in the first embodiment can be realized by software. Similarly, the control device 3 can be realized by software.
[0105] Although several embodiments have been described above, these embodiments are presented only as examples and are not intended to limit the scope of the invention. The novel remote control device 1 and control device 3 described in this specification can be embodied in various other forms. In addition, various omissions, substitutions, and modifications can be made to the forms of the remote control device 1 and control device 3 described in this specification without departing from the gist of the invention. The appended claims and their equivalents are intended to include such forms and modifications that fall within the scope and gist of the invention. [Explanation of symbols]
[0106] 1: Remote control device, 2: Wide area network, 3: Control device, 4: Sensor, 5: actuator, 11: communication unit, 12: control program execution unit, 13: control memory, 31: communication unit, 32: control program execution unit, 33: control memory, 34: control switching determination unit, 40: HMI, 52: processor, 53: main memory device, 54: auxiliary memory device, 55: network interface, 56: device interface, 57: Bus, 58: External device
Claims
1. A communication unit that receives, from a control device that performs a control calculation of a controlled equipment, a transition start notification regarding the transition of the control calculation, and a received value including sensor data of the controlled equipment and control information during the control calculation; a control program execution unit that executes a control program for the control calculation based on the sensor data and the control information during the calculation after receiving the transition start notification. Remote control device.
2. The remote control device according to claim 1 , wherein the control program execution unit reflects the control information during the calculation as internal information of the control program, and executes the control program using the data from the sensor.
3. A communication unit that receives a received value including a result of the control calculation and control information during the control calculation from a remote control device that remotely performs a control calculation of a controlled equipment; a control switching determination unit that performs a control start notification regarding the start of a control program for the control calculation when the received value is not received within a certain time; a control program execution unit that executes the control program based on the control information during the calculation after receiving the control start notification. Control device.
4. The control device according to claim 3 , wherein the control program execution unit reflects the control information during the calculation as internal information of the control program, and executes the control program using data from a sensor of a controlled facility.
5. the control switching determination unit further issues a received value storage stop notification to stop storing the received value from the remote control device; The communication unit stops storing the received value after receiving the notification to stop storing the received value. The control device according to claim 3.
6. The control switching determination unit further performs a transition start notification regarding the transition of the control calculation, a control stop notification for stopping control of the control device based on the number of times the reception value is received; The control device according to claim 3.
Citation Information
Patent Citations
Synchronization and hot standby method and system for primary system and standby system of apparatus
EP3748439A1
Information processing system
JP2015032152A
System transition program, system transition method, and information processing system
JP2015099521A
Controller that outputs switching notice signal in switching of sequence program
JP2015210790A
Remote control system and remote control method
JP2018085576A
Cited By
Laminate, battery, and method for manufacturing laminate
CN121484151A
