Control system and control device
The control system facilitates software updates in industrial equipment by using dual processing units with synchronized control cycles and a switching management unit to maintain operational continuity during updates.
Patent Information
- Application Number
- JP2022163525
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-10-11
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2042-10-11
AI Technical Summary
Existing software update processes for industrial equipment require downtime, necessitating the temporary shutdown of operations.
A control system and device that utilizes a first processing unit with first software for continuous control, a shared storage unit, and a second processing unit with updated software, managed by a switching management unit to seamlessly transition control without interruption.
Enables software updates without stopping equipment operations, ensuring continuous control by synchronizing control cycles and managing the handover process to minimize downtime.
Smart Images

Figure 0007562615000001 
Figure 0007562615000002 
Figure 0007562615000003
Abstract
Description
[Technical field]
[0001] SUMMARY OF THE DISCLOSURE The present invention relates to a control system and a control device. [Background technology]
[0002] When updating software for industrial equipment, it is common to stop processing once before updating. This means downtime occurs during the update, which means that it is necessary to stop the industrial equipment when updating the software. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 8-137815 Summary of the Invention [Problem to be solved by the invention]
[0004] In order to solve such problems, an object of this embodiment is to provide a control system and a control device that are capable of updating software without stopping a device controlled by the software. [Means for solving the problem]
[0005] According to this embodiment, the control device includes a first processing unit, a switching management unit, and a second processing unit. The first processing unit is a first processing unit that uses first software to execute control of an appliance by repeating a predetermined control period, and executes control of the next control period based on control information changed during the current control period. The switching management unit transmits a switching notification to the first processing unit to instruct switching to the first processing unit. The second processing unit is capable of executing control of the appliance by repeating a predetermined control period using second software different from the first software. The second processing unit starts control of the appliance in the next control period when control of the appliance in the next control period is possible using at least the changed control information by the switching completion time, which is the time point when the control period currently being processed ends. Effect of the Invention
[0006] Software can be updated without shutting down the device. [Brief description of the drawings]
[0007] [Figure 1] FIG. 2 is a block diagram showing an example of the configuration of a control device according to the embodiment. [Diagram 2] FIG. 4 is a diagram showing an example of a control period of the first processing unit. [Diagram 3] FIG. 13 is a diagram showing an example of a message sequence chart when a second processing unit starts a control process. [Figure 4] FIG. 13 is a diagram showing an example of a message sequence chart when the control process is not started. [Diagram 5] FIG. 11 is a diagram showing an example of a message sequence chart according to Modification 1 of the first embodiment. [Figure 6] FIG. 13 is an example of a message sequence chart in a case where the handover is not completed in time. [Figure 7] FIG. 11 is a block diagram showing an example of the configuration of a control device according to a second embodiment. [Figure 8] FIG. 13 is a block diagram showing an example of the configuration of a control system according to a third embodiment. [Figure 9]FIG. 13 is a diagram showing an example of a message sequence chart according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, a control system and a control device according to an embodiment of the present invention will be described in detail with reference to the drawings. Note that the embodiment shown below is an example of an embodiment of the present invention, and the present invention is not limited to these embodiments. In addition, in the drawings referred to in this embodiment, the same parts or parts having similar functions are given the same or similar symbols, and repeated explanations may be omitted. In addition, the dimensional ratios of the drawings may differ from the actual ratios for the convenience of explanation, and some components may be omitted from the drawings.
[0009] (First embodiment) (composition) Fig. 1 is a block diagram showing a configuration example of a control device 10 according to the present embodiment. As shown in Fig. 1, the control device 10 includes a first processing unit 11, a shared storage unit 12, a second processing unit 13, and a switching management unit 14. The control device 10 includes, for example, a multi-core processor, and controls, for example, industrial equipment. The control device 10 can also be configured as, for example, a host for a virtual machine or a host for operating a container.
[0010] The first processing unit 11 executes the control of the device by repeating a predetermined control period, for example, using the first software. The first processing unit 11 controls the driving of an actuator, for example, according to an input signal from a sensor, etc. The first processing unit 11 stores, in the shared storage unit 12, control information that changes over time, such as the position and angle of the controlled object, internal parameters used by the first processing unit 11, memory information that is information on memory allocation to the shared storage unit 12, etc. A detailed example of the control period will be described later with reference to FIG. 2. The software according to this embodiment is an element that constitutes the control device 10, and means a collective term for all elements excluding programs or hardware that is a physical element.
[0011] The shared storage unit 12 is a storage unit that can be read and written by both the first processing unit 11 and the second processing unit 13. The shared storage unit 12 may include, for example, various types of RAM (Random Access Memory), or may include a storage medium such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive).
[0012] The second processing unit 13, like the first processing unit 11, can repeatedly control, for example, industrial equipment in accordance with a control period. That is, the second processing unit 13 can control the industrial equipment by repeating a predetermined control period using second software different from the first software. For example, the second software is software after updating the first software. In this embodiment, the second processing unit 13 will be described as a side that takes over the control processing of the first processing unit 11 after, for example, updating of the controller software has been completed.
[0013] The switching management unit 14 manages switching of control between the first processing unit 11 and the second processing unit 13. In this embodiment, the management is described as switching control from the first processing unit 11 to the second processing unit 13, but is not limited to this. For example, it is also possible to switch control from the second processing unit 13 to the first processing unit 11 after updating the controller software of the first processing unit 11.
[0014] In this embodiment, the control device 10 has a clock, so that the first processing unit 11, the second processing unit 13, and the switching management unit 14 also share clock information.
[0015] 2 is a diagram showing an example of a control cycle of the first processing unit 11. For example, the first processing unit 11 outputs a control signal to a control target during a batch output period S10, and stores, in the shared storage unit 12, control information required for control of the next control cycle, such as the position and angle of the control target.
[0016] Next, the first processing unit 11 inputs an external signal such as an input signal from a sensor or the like from the shared storage unit 12 during a batch input period S12. Then, the first processing unit 11 calculates, for example, a control amount for a control object during a control calculation period S14. Control of the control object is repeated in a control period t10 including a margin for communication time and the like during the batch output period S10, the batch input period S12, the control calculation period S14, etc. Note that after the second processing unit 13 starts control, it also performs control processing in the same control period as the first processing unit 11.
[0017] As shown in Fig. 2, control information including position information of the controlled object changes for each control period t10, t11. For this reason, in order to switch the control processing from the first processing unit 11 to the second processing unit 13, it is necessary to hand over the control information required for control, the control parameters that change depending on the state of the controlled object, and the like to the second processing unit 13. If this handover processing does not end in, for example, the control period t10, the second processing unit 13 will not be able to continuously perform control in the control period t11. In other words, if the start of the control period t11 is delayed due to a delay in the handover processing, this will cause a problem in the control of the controlled object.
[0018] Therefore, when the handover process is completed within the control period, the second processing unit 13 takes over the process of the first processing unit 11 and starts the control process. Here, the handover of the process according to the present embodiment means that, for example, the setting of the internal parameters used for control by the first processing unit 11, memory information which is information on memory allocation to the shared storage unit 12, and control information become available to the second processing unit 13. That is, the second processing unit 13 starts the control of the device in the next control period t11 when the device can be controlled in the next control period t11 using at least the changed control information by the switching completion time which is the time point when the control period t10 currently being processed ends.
[0019] On the other hand, the second processing unit 13 does not start periodic processing if the setting of internal parameters, memory information which is information on memory allocation to the shared storage unit 12, and reflection of control information are not completed within the switching completion time. That is, if the handover processing is not completed within the control period, the second processing unit 13 does not start the control processing, and the first processing unit 11 continues the control processing.
[0020] (action) 3 is a diagram showing an example of a message sequence chart when the second processing unit 13 starts a control process. As shown in FIG. 3, first, the switching management unit 14 monitors an input state such as a switching instruction signal from an external device (S201). When the switching management unit 14 detects a switching instruction signal, it transmits a switching notification to the first processing unit (S202). Note that the switching management unit 14 may determine the control state of the first processing unit 11 and transmit the switching notification. In addition, the switching management unit 14 may notify the state of the first processing unit 11 and the second processing unit 13 via a human machine interface (HMI) of the switching management unit 14 (not shown).
[0021] When the first processing unit 11 receives a switching notification from the switching management unit 14, it calculates a switching completion time, which is the time when the control period ends. For example, periods such as control periods t10 and t11 are set in advance as parameters of the controller software. Therefore, the first processing unit 11 can calculate the switching completion time from the time when the switching signal is input from the switching management unit 14 to the time when the control period t10, t11, etc. ends. Then, the first processing unit 11 outputs a switching notification signal to the second processing unit 13 (S203).
[0022] This switching notification signal includes information such as switching completion time, control information, internal parameters of the first processing unit 11, memory information of the shared storage unit 14, and control contents. At this time, the switching notification may include an identifier of a processing unit, indicating which processing unit is to be switched from to which other processing unit. Also, it may include an identifier indicating switching from the first processing unit 11 to the second processing unit 13. Furthermore, when transmitting the switching notification, the switching management unit 14 may transmit the switching notification after a human inputs transmission permission via a human-machine interface (HMI) of the switching management unit 14 (not shown).
[0023] Next, the second processing unit 13 that has received the switching notification from the first processing unit 11 prepares to enable periodic control calculation (S204). Note that the preparation includes, but is not limited to, setting parameters included in the switching notification, allocating memory from memory information, and setting the next control content in the output unit.
[0024] When all preparations are completed by the switching completion time, the second processing unit 13 transmits a completion notification to the switching management unit 14 and the first processing unit 11 (S205). Then, the second processing unit 13 starts control from the next control cycle (S206).
[0025] Next, when the first processing unit 11 receives a completion notification from the second processing unit 14 before the switching completion time, it stops the control processing (S207). Then, the first processing unit 11 transmits an end notification to the switching management unit 11 (S208). Then, the switching management unit 14 receives the completion notification from the second processing unit and the end notification from the first processing unit 11 (S207). In this way, by including the switching completion time and parameters necessary for control calculation in the switching notification and notifying the switching completion time, it becomes possible to switch the processing unit even in a control system that performs periodic processing.
[0026] Fig. 4 is a diagram showing an example of a message sequence chart in the case where the second processing unit 13 does not start the control process. As shown in Fig. 4, the processes from S201 to S204 are performed in the same manner as in Fig. 3. Then, if the second processing unit 13 is not all ready by the time of the switching completion time, the second processing unit 13 does not transmit a completion notification, and further does not start periodic processing calculations (S305).
[0027] Next, since the first processing unit 11 did not receive a completion notification from the second processing unit 14 within the switching completion time, the first processing unit 11 continues the processing operation and transmits a continuation notification to the switching management unit 14 (S306). Finally, the switching management unit 14 receives the continuation communication from the first processing unit 11 and transmits a continuation notification to the second processing unit 13 (S307).
[0028] In this way, by sharing the switching completion time between the first processing unit 11 and the second processing unit 14, the first processing unit 11 can continue the control process when there is no switching completion notification. This prevents delays (downtime) from occurring in the control process of the control target. If switching fails, the switching management unit 14 can notify the first processing unit 11 of a switching notification until switching is successful. Reasons why switching may not be completed by the switching completion time include exceptional events such as the timing of the control state of the first processing unit 11 and a delay in input from an external sensor. For this reason, by repeating the switching process several times, switching can be performed within the switching completion time.
[0029] As described above, according to this embodiment, the end of the control period during the switching process is set as the switching completion time, and this time is shared by the first processing unit 11 and the second processing unit 14. As a result, if the setting process of the second processing unit 14 is completed by the switching completion time, the second processing unit 14 can start the control process, and the first processing unit 11 can stop the control process. Therefore, it is possible to start the control period of the second processing unit 14 consecutively to the control period of the first processing unit 11.
[0030] On the other hand, if the setting process is not completed by the switching completion time, the second processing unit 14 does not start the control process, so that the occurrence of delays (downtime) in the control process of the control target is suppressed. In this case, the first processing unit 11 is able to continue the control process since there is no switching completion notification from the second processing unit 14. This suppresses the occurrence of delays (downtime) in the control process of the control target.
[0031] (Modification 1 of the first embodiment) The control device 10 according to the first modification of the first embodiment differs from the control device 10 according to the first embodiment in that a switching management unit 14 of the control device 10 manages the start and end of switching. The following describes the differences from the control device 10 according to the first embodiment.
[0032] FIG. 5 is a diagram showing an example of a message sequence chart according to the first modification of the first embodiment. As shown in FIG. 5, first, the switching management unit 14 monitors the input state of a switching instruction signal from an external device, the state of the first processing unit 11, and the second processing unit 13. When the switching management unit 14 detects a switching instruction signal, it transmits a switching notification to the first processing unit (S202). In this case, the switching management unit 14 transmits a switching notification including a switching completion time in accordance with the timing of the end of the control period of the first processing unit 11 (S202). Note that the control period according to this embodiment is almost constant, and the switching management unit 14 can calculate the switching completion time. Then, the first processing unit 11 outputs a switching notification signal to the second processing unit 13 (S203). This switching notification signal includes information such as the received switching completion time, control information, internal parameters of the first processing unit 11, memory information of the shared storage unit 14, and control contents.
[0033] The processes from S204 to S206 are the same as those in the first embodiment. Then, the switching management unit 14, which has received a completion notification from the second processing unit 13 of the switching destination by the switching completion time, transmits an end notification to the first processing unit 11 of the switching source (S406).
[0034] Next, the first processing unit 11, which has received a completion notice from the second processing unit 13 of the switching destination and an end notice from the switching management unit 14 by the switching completion time, stops the periodic processing (S407).
[0035] In this way, the first processing unit 11 stops the control process in response to a termination notification from the switching management unit 14 in response to a completion notification from the second processing unit 13. This allows the switching management unit 14 to centrally manage the switching process while suppressing downtime during updates.
[0036] Fig. 6 is a diagram showing an example of a message sequence chart in the case where the handover is not completed in time. As shown in Fig. 6, the same processes as those in Fig. 5 are performed from S201 to S206. Then, when the switching processing unit 14 does not receive the switching completion notification within a predetermined elapsed time, it determines that the switching completion notification cannot be received within the switching completion time, and transmits a continuation notification to the first processing unit 11 and the second processing unit 13 (S505).
[0037] Possible standards for the switching processing unit 14 to determine that the switching completion notification cannot be received by the switching completion time include, for example, the time obtained by subtracting a predetermined time as a margin from the switching completion time, or the time obtained by subtracting a processing delay time of a process required at the completion of switching from the switching completion time, or the time obtained by subtracting a processing delay time of a process required at the completion of switching from the switching completion time and further subtracting a predetermined time as a margin, etc. In this way, when the switching processing unit 14 transmits a continuation notification, it is possible to provide a time width for the timing of outputting the continuation notification based on the switching completion time.
[0038] Next, the first processing unit 11 that has received the continuation notification from the switching management unit 14 continues the periodic processing. Then, the first processing unit 11 responds with a continuation notification to the switching management unit 14 (S506). At this time, the first processing unit 11 follows the continuation notification from the switching management unit 14 regardless of the switching completion time.
[0039] Next, the second processing unit 13 that has received the continuation notification from the switching management unit 14 does not start the switching process and the periodic process. Then, it sends a continuation notification response to the switching management unit 14 (S507). At this time, the second processing unit 13 follows the continuation notification from the switching management unit 14 regardless of the switching completion time.
[0040] Finally, since there are continuation notification responses from the first processing unit 11 and the second processing unit 13, the switching management unit 14 determines not to switch the periodic processing from the first processing unit 11 to the second processing unit 13, but to continue the periodic processing with the first processing unit 11 (S508). For example, if the switching management unit 14 is unable to receive a continuation notification response from the first processing unit 11 or the second processing unit 13, it may determine that the first processing unit 11 or the second processing unit 13 has not normally received the continuation notification, and may send the continuation notification again.
[0041] In this way, when the switching processing unit 14 sends a continuation notification, in addition to having the same effect as the control device of the first embodiment, it is possible to provide a time range for the timing of outputting the continuation notification or stop notification based on the switching completion time.
[0042] Second embodiment (composition) Fig. 7 is a block diagram showing a configuration example of a control device 10a according to the second embodiment. As shown in Fig. 7, the control device 10a differs from the control device 10 according to the first embodiment in that the first processing unit 11 and the second processing unit 13 each have switching management units 14, 14 as internal functions.
[0043] In this way, since the switching management units 14, 14 exist inside the first processing unit 11 and the second processing unit 13, the notifications necessary for switching can be sent and received more smoothly than in the first embodiment, thereby preventing the switching process from failing.
[0044] Third embodiment (composition) Fig. 8 is a block diagram showing a configuration example of a control system 70 according to the third embodiment. As shown in Fig. 8, the control system 70 includes a control device 10b according to the third embodiment and an orchestration unit 71. Each component of the control device 10b according to the third embodiment is configured by, for example, a container on a cloud server.
[0045] The orchestration unit 71 can deploy the first processing unit 11, the second processing unit 13, and the switching management unit 14 of the control device 10b. Note that the deployment according to this embodiment means making application software provided via a network or the like executable. The deployment according to this embodiment may also include the installation of software.
[0046] For example, the orchestration unit 71 configures the second processing unit 13 and the switching management unit 14 according to this embodiment by deployment during a period in which the first processing unit 11 continues control. That is, the second processing unit 13 and the switching management unit 14 are containers and applications that start operating by being so-called hot deployed by the orchestration unit 71.
[0047] (action) Fig. 9 is a diagram showing an example of a message sequence chart according to the third embodiment. As shown in Fig. 9, first, the orchestration unit 71 deploys the switching management unit 14 and the second processing unit 13 based on a switching trigger of the processing unit (S801).
[0048] The switching trigger here is, for example, a trigger given by a person via an HMI (not shown) of the orchestration unit 71 by pressing a specific button on a screen, but is not limited to this. For example, it may be a trigger given by an IP packet or the like from outside the orchestration unit 71 via a network.
[0049] Next, the second processing unit 13 is deployed and automatically enters a state in which it can receive an instruction to prepare for switching (S802). In this embodiment, when the second processing unit 13 is deployed, it automatically enters a state in which it can receive an instruction to prepare for switching. Alternatively, after deployment, the orchestration unit 71 may again instruct the second processing unit 13 to prepare for switching.
[0050] Next, the switching management unit 14 is deployed and automatically becomes capable of monitoring the states of the first processing unit 11 and the second processing unit 13 (S803). In this embodiment, the switching management unit 14 automatically becomes capable of monitoring the states of the first processing unit 11 and the second processing unit 13, but it is also possible to receive an instruction from the orchestration unit 71 to the switching management unit 14 to monitor the first processing unit 11 and the second processing unit 13 again after deployment. In addition, the switching management unit 14 deploys the second processing unit 13 and the switching management unit 14 in this order, but the order of deployment is not limited to this order. The flow of processing thereafter is the same as that of the first embodiment.
[0051] As described above, according to this embodiment, the orchestration unit 71 deploys the second processing unit 13, which is the processing unit to be switched to, and the switching management unit 14. This makes it possible to update the processing units even in a control system that performs periodic processing on the cloud, in addition to the effects of the control device according to the first embodiment.
[0052] 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 device, method, and program 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 device, method, and program described in this specification without departing from the gist of the invention. [Explanation of symbols]
[0053] 10, 10a, 10b: control device, 11: first processing unit, 12: shared memory unit, 13: second processing, 14: switching management unit, 70: control system, 71: orchestration unit.
Claims
1. a first processing unit that uses first software to repeatedly control the device over a predetermined control period, and that executes control for the next control period based on control information changed during the current control period; a switching management unit that, upon detecting a switching instruction signal, transmits a switching notification to the first processing unit to instruct the first processing unit to switch to the first processing unit; a second processing unit capable of controlling the device by repeating the predetermined control period using second software different from the first software; Equipped with When the first processing unit receives the switching notification, the first processing unit calculates a switching completion time, which is a time point at which the current control period ends, and outputs a switching notification signal having at least information on the switching completion time to the second processing unit; the second processing unit, when it is possible to control the device in a next control cycle by using at least the changed control information by the time of the switching completion, starts control of the device in the next control cycle and transmits a completion notification to the switching management unit and the first processing unit; If the control of the device is not possible, the completion notification is not sent and the control of the device is not started. The first processing unit continues to control the device when the completion notification is not received within the switching completion time. Control device.
2. a shared storage unit that can be read and written by the first processing unit and the second processing unit, The control device according to claim 1 , wherein the first processing unit transmits the control information, the internal parameters of the first processing unit, and the memory information of the shared storage unit together with the switching completion time to the second processing unit.
3. The control device according to claim 2, wherein the second processing unit does not start control of the device if the setting of the internal parameters, the memory information which is information on memory allocation to the shared memory unit, and the reflection of the control information are not completed within the switching completion time.
4. The control device according to claim 1 , wherein the second processing unit issues the completion notification when the device becomes capable of being controlled in a next control cycle within the switching completion time.
5. The control device according to claim 4 , wherein the first processing unit stops control of the device when the completion notification is received.
6. The second processing unit transmits the completion notification to the first processing unit and the switching management unit. to at least the switching management unit, When the switching management unit receives the completion notification, the switching management unit transmits an end notification to the first processing unit to instruct the first processing unit to end the periodic processing; The control device according to claim 5 , wherein the first processing unit stops the periodic processing when the end notification is received.
7. 2. The control device according to claim 1, wherein the switching management unit sets the switching completion time in the switching notification and sends it to the first processing unit, and if the completion notification is not received from the second processing unit within the switching completion time, sends a continuation notification to continue the current processing to the first processing unit and the second processing unit.
8. The control device described in claim 1, wherein the switching management unit is configured within the first processing unit and the second processing unit.
9. The control device according to claim 1 ; an orchestration unit capable of deploying the switching management unit and the second processing unit; A control system comprising:
Citation Information
Patent Citations
Computer system
JP1996137815A
Communication controller of active / Standby configuration and active / Standby system switching method
JP2001275140A
Duplex system
JP2010003141A
Electronic control device
JP2015202710A
System and method for cloud computing
JP2018067332A
