Control device
The control device integrates change detection and backup processing to simplify information management within industrial systems, allowing for efficient and continuous operation without separate data management devices or external notifications.
Patent Information
- Application Number
- JP2020133505
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-06
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-08-06
AI Technical Summary
Existing industrial control systems require separate data management devices for backing up control programs and device setting information, and PLCs need external notifications for changes, complicating the configuration and increasing the need for additional mechanisms.
A control device with a storage section and change detection unit that performs backup processing when information changes during operation, using a simple configuration to detect user operations or calculated values, and synchronizes with other devices for networked backup.
Enables efficient and simple information backup within a control device without additional devices, ensuring continuous operation and reducing complexity by integrating change detection and backup processing directly into the control system.
Smart Images

Figure 0007540233000005 
Figure 0007540233000013 
Figure 0007540233000022
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a control device and a program, and more particularly to a control device and a program that provide an environment in which information can be backed up. [Background technology]
[0002] Regarding the backup of information on industrial machinery, for example, in the industrial system of Patent Document 1 (International Publication No. 2017 / 115426), a programmable controller is connected to a data management device via a network. When the CPU of the programmable controller receives a signal requesting project data including a control program from the data management device, it reads the project data from the storage unit and transmits it to the data backup unit of the data management device (see FIG. 1 and paragraphs 0041 and 0068).
[0003] In the PLC (Programmable Logic Controller) system disclosed in Patent Document 2 (WO 2014 / 174546), when the PLC CPU receives a notification that the device setting information held in the internal memory of the device has been changed, it reads out the device setting information held in the internal memory of the device to be backed up and overwrites and saves the device setting information stored in the PLC's external storage medium, i.e., performs a backup (see paragraph 0019). [Prior art documents] [Patent documents]
[0004] [Patent Document 1] International Publication No. 2017 / 115426 [Patent Document 2] International Publication No. 2014 / 174546 Summary of the Invention [Problem to be solved by the invention]
[0005] In Patent Document 1, a data management device provided separately from the programmable controller is required to back up the control program stored in the programmable controller. In contrast, in Patent Document 2, the PLC backs up the device setting information stored in the internal memory of the device without using a separate device such as a data management device. However, the PLC in Patent Document 2 needs to receive a notification from an external device that the device setting information has been changed, so the PLC needs to be equipped with a mechanism for receiving the notification.
[0006] An object of the present disclosure is to provide a control device and a program that are capable of implementing information backup with a simple configuration. [Means for solving the problem]
[0007] In the present disclosure, the control device is a control device that controls an object, and is equipped with a memory unit for storing information for controlling the object, and a change detection unit that detects that the information in the memory unit has been changed, and when the change detection unit detects that the information in the memory unit has been changed, the control device performs a backup process of the information stored in the memory unit during operation.
[0008] According to the above disclosure, the control device can realize information backup with a simple configuration in which, when information in a storage unit included in the control device is changed during operation, a backup process is performed on the information in the storage unit.
[0009] In the above disclosure, the change detection unit detects that information stored in the storage unit has been changed based on a user operation on the information.
[0010] According to the above disclosure, the control device can detect a user operation on the information in the storage unit, thereby detecting a change to the information.
[0011] In the above disclosure, the change detection unit detects that the information stored in the storage unit has been changed based on a calculated value calculated from the information.
[0012] According to the above disclosure, the control device can detect a change in the information stored in the storage unit based on a value calculated from the information.
[0013] In the above disclosure, the information stored in the memory unit includes at least one of a control program for controlling the target, setting data for the control, and machine learning data related to the control.
[0014] According to the above disclosure, when a change in information in the memory unit is detected, the control device can back up at least one of the control program for controlling the target, the configuration data for control, and the machine learning data related to the control.
[0015] In the above disclosure, the control device is communicatively connected to a network configuration including the target, and the information stored in the memory unit includes network configuration data including identifiers of the control device and devices including the target connected to the network configuration.
[0016] According to the above disclosure, when a change in the information in the storage unit is detected, the control device can back up the network configuration data including the identifiers of the control device and the device including the target that are connected to the network configuration. This makes it possible to back up the network configuration data, for example, every time the control device and the device of the target that are connected to the network are changed, that is, every time the network configuration data including the identifiers of the control device and the device of the target is changed.
[0017] In the above disclosure, the backup process includes a process of copying information in the memory unit and storing the copied information in a storage medium, and the storage medium includes a storage medium provided in a higher-level system connected to the control device via a network.
[0018] According to the above disclosure, the backed up information can be stored in a storage medium of a higher-level system.
[0019] In the above disclosure, multiple control devices are communicatively connected to a network configuration including a target, and when each control device detects that information stored in the memory unit of the control device has been changed, it transmits a request via the network configuration to have the other control devices perform backup processing.
[0020] According to the above disclosure, when a change in information is detected in one control device connected to a network configuration, backup processing can be performed in multiple control devices connected to the network configuration.
[0021] In the above disclosure, the multiple control devices are time-synchronized, and in the backup process, each of the multiple control devices backs up information by associating the information with a time based on the synchronized time.
[0022] According to the above disclosure, the information backed up by each control device can be managed in association with a time based on the time synchronized between the control devices.
[0023] In the above disclosure, the multiple control devices are time-synchronized, and during operation, when the change detection unit of one of the multiple control devices detects that the information in the memory unit of the device itself has been changed, each of the multiple control devices performs backup processing of the information stored in the memory unit of the device itself at a specified time based on the synchronized time.
[0024] According to the above disclosure, a designated time based on a synchronized time is set as the time to perform backup processing of the information stored in the memory unit, and multiple control devices can simultaneously perform the backup processing at the designated time.
[0025] In the above disclosure, when the change detection unit of one of the control devices detects that the information in the storage unit of the control device itself has been changed, the control device transmits a notification of the above specified time to the other control devices.
[0026] According to the above disclosure, the other control devices can receive, from one control device, a notification of a designated time for simultaneously executing the backup processes.
[0027] In the above disclosure, the control device further includes a processor and a scheduler that manages a plurality of programs to be executed by the processor according to priority within a predetermined period, the plurality of programs managed by the scheduler being high priority programs to be executed by the processor in the period, and including a first program for a first process including control processing, and a second program for a second process having a lower execution priority than the first program and executed in the processor's free time in the period, the first program including a control program for controlling the target, and the second program including a backup program that performs backup processing, and the scheduler causes the processor to execute the backup program in each free time of one or more periods where the total length of the free time in each period corresponds to the time required for the backup processing.
[0028] According to the disclosure above, when a control device that periodically executes a control program is in operation, the scheduler causes the processor to execute the backup program during free time in one or more periods in which the total length of the processor's free time in each period corresponds to the time required for backup processing. Therefore, during operation, an environment in which information backup can be performed while ensuring execution of the control program within a predetermined period can be provided.
[0029] In the above disclosure, the control device further determines one or more periods in which the total length of free time in each period corresponds to the time required for backup processing.
[0030] According to the above disclosure, the number of cycles equivalent to the time required for backup processing can be determined from the total length of free time that each cycle has.
[0031] In the above disclosure, the control device further sets, in the backup program, the amount of information to be backed up during free time in each period, based on the time required for the backup process and the free time.
[0032] According to the above disclosure, the amount of information to be backed up during free time in each period, which should be set in the backup program, can be set based on the time required for the backup process and the free time.
[0033] In the above disclosure, the backup process includes a differential backup in which copied information obtained by copying information in the memory unit is stored, and then, each time the information in the memory unit is changed, differential information between the copied information and the changed information is derived, and the derived one or more pieces of differential information are integrated with the copied information.
[0034] According to the above disclosure, by acquiring difference information every time information in the storage unit is changed, it becomes unnecessary to back up the information every time a change is made, and an increase in the load on the control device can be avoided.
[0035] In the above disclosure, the differential backup integrates one or more pieces of differential information and the copy information when the number of subsequent changes described above exceeds a threshold value.
[0036] According to the disclosure above, whether or not to perform a differential backup can be determined based on the number of changes made up to that point. This makes it possible to acquire differential information to the extent that the load on the backup or integration process can be reduced when performing a differential backup using the acquired differential information.
[0037] In the above disclosure, the differential backup integrates one or more pieces of differential information with the copy information when the ratio of the information volume of one or more pieces of differential information to the information volume of the copy information exceeds a threshold value.
[0038] According to the disclosure above, whether or not to perform a differential backup can be determined based on the ratio of the amount of differential information acquired by the changes up to that point to the copy information, which is the original information. This makes it possible to acquire differential information to the extent that the load on the backup or integration process can be suppressed when performing a differential backup using the acquired differential information.
[0039] In the above disclosure, the system further includes a means for displaying a UI indicating an identifier of one or more pieces of backed up information, and a means for accepting a user operation for specifying information to be restored from the one or more pieces of backed up information.
[0040] According to the above disclosure, the control device can provide the user, via the UI, with a tool for selecting information to be restored from one or more pieces of backed up information.
[0041] In the above disclosure, an identifier for one or more pieces of backed up information is associated with the time at which the information was backed up.
[0042] According to the above disclosure, the time at which information was backed up can be used to identify the information that was backed up.
[0043] In the above disclosure, the storage unit has a volatile storage area for storing information. According to the above disclosure, information stored in a volatile storage area of a control device can be targeted for backup.
[0044] This disclosure provides a program executed by a processor included in a control device for controlling an object. The control device includes a memory unit for storing information for controlling the object, and when the program is executed, the processor detects that the information in the memory unit has been changed, and, in response to the detection of the change in the information while the control device is in operation, causes the processor to perform a backup process for the information stored in the memory unit.
[0045] According to the above disclosure, by executing a program, when the information in the memory unit of the control device is changed during operation, a backup process of the information in the memory unit is performed, thereby enabling information backup to be realized with a simple configuration. Effect of the Invention
[0046] According to the present disclosure, it is possible to provide an environment in which information can be backed up with a simple configuration. [Brief description of the drawings]
[0047] [Figure 1] FIG. 1 is a diagram illustrating a schematic configuration of a control system including a PLC that realizes information backup according to an embodiment of the present invention. [Diagram 2] 1 is a schematic diagram showing an example of an overall configuration of a network system according to the present embodiment; [Diagram 3] 2 is a block diagram showing an example of a hardware configuration of a PLC according to the present embodiment. FIG. [Figure 4] FIG. 2 is a diagram illustrating a hardware configuration of an HMI according to the present embodiment. [Diagram 5] 1 is a diagram illustrating a hardware configuration of a support device according to an embodiment of the present invention. [Figure 6] FIG. 1 is a diagram showing a configuration for implementing a backup according to an embodiment of the present invention in association with a control period. [Figure 7] FIG. 2 is a simplified block diagram of components for implementing backup and restore according to an embodiment of the present invention. [Figure 8] FIG. 2 is a diagram showing an example of a frame configuration according to the present embodiment. [Figure 9] FIG. 4 illustrates an example of backup management information. [Figure 10] FIG. 13 is a diagram showing a schematic diagram of a backup scene using N control periods and M unit information amount. [Figure 11] 11 is a flowchart showing a process of detecting a change and updating backup management information according to the embodiment; [Figure 12]11 is a flowchart showing a process of detecting a change and updating backup management information according to the embodiment; [Figure 13] 11 is a flowchart of a backup process according to the present embodiment. [Figure 14] FIG. 13 is a diagram illustrating a case in which an additional change is detected in the backup process. [Figure 15] 14 is a flowchart showing an example of the process of step S37 in FIG. 13. [Figure 16] 14 is a flowchart showing another example of the process in step S37 of FIG. 13. [Figure 17] 13 is a flowchart of a differential backup process according to the present embodiment. [Figure 18] FIG. 2 is a diagram illustrating a procedure for a differential backup according to the embodiment of the present invention. [Figure 19] FIG. 2 is a diagram illustrating a backup of machine learning data according to the present embodiment. [Figure 20] FIG. 2 is a diagram illustrating a backup of machine learning data according to the present embodiment. [Figure 21] FIG. 11 is a diagram showing a schematic diagram of a timing for implementing a restore according to the present embodiment. [Figure 22] 11 is a flowchart of a restore process according to the present embodiment. [Diagram 23] FIG. 13 is a diagram showing an example of a selection screen for "data to be restored" according to the present embodiment. [Figure 24] FIG. 13 is a diagram showing an example of a screen constituting a UI displayed for backup or restore. [Diagram 25] FIG. 11 is a diagram showing an example of notification content to a user according to the present embodiment. [Figure 26] FIG. 11 is a diagram showing an example of notification content to a user according to the present embodiment. [Figure 27] 1A to 1C are diagrams illustrating advantages according to the present embodiment. [Figure 28] 10 is a diagram for explaining a case in which time-synchronized backup data is acquired between the PLCs 100 according to the present embodiment. FIG.
Best Mode for Carrying Out the Invention
[0048] Hereinafter, embodiments will be described with reference to the drawings. In the following description, the same parts and components are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed descriptions thereof will not be repeated.
[0049] <A. Application Example> First, an example of a scenario to which the present invention is applied will be described. FIG. 1 is a diagram schematically showing the configuration of a control system 1 including a PLC (Programmable Logic Controller) that realizes backup of information according to the present embodiment. In FIG. 1, a control system 1 applicable to FA (Factory Automation) has a network configuration in which PLCs 100A, 100B, and 100C and a plurality of field devices 90 to be controlled are communicably connected to a network. More specifically, the PLCs 100A, 100B, and 100C are connected to a network 11 which is a control-level network. Further connected to the network 11 is an HMI (Human Machine Interface) 280 configured to manage devices and production lines connected to the network 11 in a communicable manner. A data link through which data can be exchanged between devices is formed in the network 11. The PLCs 100A, 100B, and 100C are each communicably connected to one or more field devices 90 such as sensors and actuators via a network 110. Hereinafter, in the description of an example common to the PLCs 100A, 100B, and 100C, the PLCs 100A, 100B, and 100C may be collectively referred to as the PLC 100.
[0050] In addition to being connected to the PLC 100 via the network 110, the field devices 90 may also be directly connected to the PLC 100 via an input / output unit (not shown) associated with the PLC 100. Each of the field devices 90 includes an actuator that exerts some physical action on a manufacturing device or a production line (hereinafter collectively referred to as the "field"), and an input / output device that transmits and receives information to and from the field.
[0051] Data exchanged between the PLC 100 and the field device 90 via the network 110 is updated at very short intervals of the order of several hundreds of microseconds to several tens of milliseconds. Note that such an update process of the exchanged data is realized by an IO refresh 71, which will be described later.
[0052] A support device 500 can be connected to the PLC 100. The support device 500 provides a support tool that supports a user in operating the control system 1. The support tool includes a setting tool for preparing an execution environment of a control program or a communication environment with the PLC 100. The support tool is provided to the user by, for example, a UI (User Interface).
[0053] The HMI 280 provides a SCADA (Supervisory Control And Data Acquisition) function, thereby graphically displaying data for monitoring or controlling the system processed by the SCADA, and accepting user operations. In the control system 1, the PLC 100, the support device 500, and the HMI 280 are configured as separate entities, but a configuration in which all or part of these functions are integrated into a single device may be adopted. The support device 500 may be connected to the network 11, may be built in the PLC 100, or may be provided as a portable terminal.
[0054] The PLCs 100A, 100B, and 100C connected to the network 11 of the control system 1 are provided in different processes 3A, 3B, and 3C, respectively. For example, but not limited to, the process 3A indicates an assembly process of a product (workpiece), the process 3B indicates a painting process of the assembled product, and the process 3C indicates an inspection process of the painted product.
[0055] In this embodiment, a PLC will be described as a specific example of a typical "control device," but the technical ideas disclosed in this specification are applicable to any control device without being limited to the name PLC.
[0056] In FIG. 1, the configuration for backing up information in the storage unit of the PLC 100 will be described using the PLC 100A as a representative, but the same configuration can be applied to the other PLCs 100B and 100C. The PLC 100A includes a backup execution unit 621 and a change detection unit 601 for backing up information stored in the main storage unit 106 of the PLC 100A. More specifically, the information stored in the main storage unit 106 includes information for controlling the field device 90 to be controlled. The change detection unit 601 detects that the information stored in the main storage unit 106 has been changed. When the change detection unit 601 detects that the information in the main storage unit 106 has been changed while the PLC 100A is in operation, the backup execution unit 621 performs a backup process of the information stored in the main storage unit 106, triggered by the detection of the change.
[0057] In this embodiment, the "operational state" of the PLC 100 includes a state in which the PLC 100 is capable of controlling an object by periodically executing a program for controlling the field device 90 in accordance with a control period 70 described below. Therefore, the non-operational state of the PLC 100 includes a state in which the PLC 100 is not executing a program, more specifically, a state in which periodic control in accordance with the control period 70 is stopped.
[0058] In this embodiment, the target information to be backed up is also referred to as "target information". The main storage device 106 stores the target information 206. The target information 206 includes information for controlling the target (field device 90). More specifically, the target information 206 includes, for example, a control program 154 for controlling the field device 90, setting data 155 for control, configuration data 156, and machine learning data related to control. The control program 154 includes, for example, one or more UPGs (User Programs) that may have interpreter scripts. More specifically, the code of the control program 154 in the main storage device 106 may include executable binary code such as source code or intermediate code executable in an interpreter manner, or native code. The setting data 155 is data for control, and includes, for example, a threshold value of a sensor of the field device 90. The configuration data 156 corresponds to network configuration data including identifiers of each device including the PLC 100 and the field device 90 connected to the network configuration shown in FIG. 1. More specifically, it has information for identifying the field devices 90 connected to the PLC 100 (the number, the model, etc.) and information for identifying the PLC 100 connected to the network 11 (the number, the model, etc.).
[0059] The machine learning data includes, for example, a learning program 157 for implementing the machine learning process and model data 158. Note that the target information 206 may include at least one of a control program 154 for controlling the field device 90, setting data 155 for control, configuration data 156, and machine learning data related to control.
[0060] The change detection unit 601 detects that the target information 206 stored in the main memory 106 has been changed based on a user operation on the target information 206, or detects that the target information 206 has been changed based on a calculated value calculated from the target information 206.
[0061] More specifically, the change detection unit 601 detects a change in the target information 206 based on a user operation on the target information 206. Such a user operation for changing the target information 206 may include, for example, a user operation received by the support device 500, the HMI 280, or the PLC 100A. When the support device 500 or the HMI 280 receives a user operation for changing the target information 206, the support device 500 or the HMI 280 transmits the received user operation content to the PLC 100A. The PLC 100A changes (adds, deletes, rewrites, etc.) the target information 206 in the main storage device 106 based on the user operation content. Such a user operation includes an online edit operation. The online edit operation includes an edit operation in which the user changes (adjusts) a setting value such as a threshold value of the setting data 155 of the main storage device 106 while the PLC 100A is running, changes the configuration data 156 in accordance with a change in the field device 90, or changes (including adds and deletes) a command code of the UPG. Note that the data to be operated is not limited to these. The change detection unit 601 may also periodically calculate a value using a predetermined function from the binary code in the storage area E1 of the main storage device 106 in which the target information 206 is stored, compare the calculated value with the previously calculated value each time, and detect whether the target information 206 has been changed based on the result of the comparison. The value calculated by the predetermined function includes, for example, a hash value or a checksum value.
[0062] The backup process performed by the backup execution unit 621 includes a process of copying information in the memory area E1 of the main storage device 106 and storing (writing) the copied information in a predetermined memory area different from the memory area E1. The storage medium constituting the memory area of the storage destination of the copied information in this manner is also referred to as the "backup destination medium." The "backup destination medium" includes a nonvolatile storage medium having a nonvolatile storage area. For example, the nonvolatile storage medium includes the memory card 116 that can be removably connected to the PLC 100A.
[0063] The backup execution unit 621 performs backup processing not when the PLC 100A is stopped but when the PLC 100A is operating. Therefore, the PLC 100A can perform backup of the target information 206 when a change in the target information 206 is detected as a trigger while the PLC 100A is operating, such as when the production line is running.
[0064] 1, memory card 116 is used as the "backup destination medium", but the "backup destination medium" may be any non-volatile storage medium capable of storing target information 206, and is not limited to memory card 116. In the present disclosure, the "backup destination medium" may be any non-volatile storage medium, and is not limited to a medium provided in PLC 100A, and includes, for example, a storage medium provided in support device 500 or HMI 280, or a storage medium provided in higher-level system 300 described below. If higher-level system 300 includes a computing device on the cloud, the "backup destination medium" may include a storage medium provided by the cloud environment.
[0065] The main memory device 106 is mainly composed of volatile memory devices such as DRAM (Dynamic Random Access Memory) and SRAM (Static Random Access Memory). The "backup destination medium" includes a memory card 116, ROM (Read Only Memory), flash memory, magnetic storage devices (hard disk drives, flexible disks, magnetic tapes, etc.), optical disks, etc.
[0066] In addition, in the present embodiment, the storage unit in which the target information 206 to be detected by the change detection unit 601 is stored is the main storage device 106, which is an example of a volatile storage medium, but the storage unit is not limited to the main storage device 106. In addition, the storage unit in which the target information 206 to be detected by the change detection unit 601 is stored is not limited to a volatile storage medium and may be configured to include a non-volatile storage medium.
[0067] The PLC 100A performs a restore to transfer (store) the target information 206 backed up on the memory card 116 from the "backup destination medium" to, for example, the main memory device 106 which is the original storage medium. In this case, the backed-up information may be stored in the original storage medium after being subjected to a predetermined process. The predetermined process includes decompression (uncompression) of compressed information and virus checking. Hereinafter, more specific application examples of the present embodiment will be described.
[0068] <B. Configuration Example of Hardware> An example of a network system 10 including a control system 1 applicable to the FA according to the present embodiment will be described. FIG. 2 is a schematic diagram showing an example of the overall configuration of the network system 10 according to the present embodiment.
[0069] In FIG. 2, the control system 1 of FIG. 1 and a specific configuration including its peripheral part are shown. Referring to FIG. 2, in the network system 10, the network is connected at multiple levels, and although not limited, for example, four levels of networks 11, 12, 13, and 14 are provided.
[0070] The network 11 is a control-level network. The network 11 is connected to the device / line management device 190 in addition to the plurality of PLCs 100A, 100B, and 100C and the HMI 280 shown in FIG. 1. The device / line management device 190 and the HMI 280 correspond to devices connected to the network and devices for managing the production line. The network 11 mainly provides the main function of transmitting information related to the control system. In FIG. 2, three PLCs 100 are shown as being connected to the network 11, but the number is not limited.
[0071] Network 12 is connected to equipment / line management device 190, which manages equipment and lines, and manufacturing management devices 380 and 390, which manage manufacturing plans and the like. Equipment / line management device 190 and manufacturing management devices 380 and 390 exchange management information such as manufacturing plans, and equipment or line information, via network 12.
[0072] Network 13 is provided as a computer-level network. To network 13, manufacturing management devices 380 and 390, and a manufacturing execution system (EMS) 400 that manages data using a storage unit 450 are connected. The manufacturing management devices 380 and 390 and the manufacturing execution system 400 exchange production management and information system data via network 13. Storage unit 450 includes an area for storing data of a time-series DB (abbreviation of database).
[0073] The manufacturing execution system 400 stores the observed values, which are input values from the field devices 90 collected via the network 13, in a time-series DB as time-series data in the order in which they were observed.
[0074] The network 14 includes an external network such as the Internet. The manufacturing execution system 400 and external devices on the cloud are connected to the network 14. The manufacturing execution system 400 transfers data in the time-series DB to a cloud computing device by exchanging data with devices on the cloud.
[0075] The upper system 300 shown in FIG. 1 includes a machine / line management device 190, manufacturing management devices 380 and 390, a manufacturing execution system 400, and a computing device provided in a cloud environment.
[0076] In the network system 10 of FIG. 2, the network 12 and the networks 11 and 110 at levels below it are also referred to as the "factory network" and provide control system communication for exchanging data for actually controlling devices. On the other hand, the network 13 and the networks 14 at levels above it are also referred to as the "corporate network" and provide information system communication for exchanging data for monitoring, managing, and controlling production activities in the production line / factory.
[0077] As the protocols for the networks 11 and 12 belonging to the factory network, EtherNet / IP (registered trademark), which is an industrial open network implementing a control protocol on general-purpose Ethernet (registered trademark), may be used. Also, as the protocol for the network 110, EtherCAT (registered trademark), which is an example of a network for machine control, may be adopted. Note that the protocol of the network 11 (the first protocol) and the protocol of the network 110 (the second protocol) may be the same or different. By adopting such network technology suitable for machine control, it is possible to provide real-time performance with guaranteed transmission time between devices.
[0078] As the protocols for the networks 13 and 14, general-purpose Ethernet or the like is used to ensure the diversity of connection destinations. By adopting general-purpose Ethernet, restrictions such as the amount of data that can be transmitted can be eliminated.
[0079] <C. Time Synchronization in Control System 1> 2, the PLC 100 included in the control system 1 executes a process (input process) of collecting data (input data) collected or generated in the field devices 90, a process (control calculation process) of generating data (output data) such as commands for the field devices 90, and a process (output process) of transmitting the generated output data to the target field device 90. Such input process and output process correspond to an IO refresh 71.
[0080] In the network 110, since it is necessary to guarantee the arrival time of data, each PLC 100 and the field device 90 connected to that PLC 100 have timers that are time-synchronized with each other.
[0081] The PLCs 100A, 100B, and 100C also have timers 101A, 101B, and 101C, respectively, which are time-synchronized with each other. This allows the control system 1 to realize cooperative control based on the synchronized times of a plurality of field devices 90 connected to different PLCs 100, i.e., a plurality of field devices 90 in different processes. In the following description, the timers 101A, 101B, and 101C are collectively referred to as timer 101.
[0082] In the control system 1 according to the present embodiment, transmission and reception timing is synchronized between the multiple PLCs 100 and one or more field devices 90 connected to the network 110. Specifically, the PLC 100 and each of the one or more field devices 90 are provided with timers that are time-synchronized with each other, and determine the timing of data transmission or reception according to the timers.
[0083] In this embodiment, "timing" refers to the time when some event occurs, or the concept of a certain moment, such as a time or a span of time shorter than a certain time. Also, "time synchronization" refers to synchronizing timers, time data, etc. that each device possesses.
[0084] <Configuration of D.PLC100> FIG. 3 is a block diagram showing a hardware configuration example of the PLC100 according to the present embodiment.
[0085] The PLC100 includes a processor 102, a chipset 104, a main memory device 106, a secondary storage device 108, an upper network controller 105, a USB (Universal Serial Bus) controller 107, a memory card interface 114, a field network controller 118, a counter 126, an RTC (Real Time Clock) 128, and an input / output I / F (Interface) 127 that connects an operation panel 129. The operation panel 129 is provided as a touch panel having a display for displaying information. A user can input information such as instructions to the PLC100 via the operation panel 129.
[0086] The processor 102 is composed of a CPU (Central Processing Unit), an MPU (microprocessor unit), a GPU (Graphics Processing Unit), etc., reads out various programs stored in the secondary storage device 108, expands them in the main memory device 106, and executes them to realize control according to the control target and various processes as described later. The secondary storage device 108 is composed of a non-volatile storage device such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive), for example.
[0087] The chipset 104 realizes processing of the entire PLC100 by controlling the processor 102 and each device.
[0088] The secondary storage device 108 stores system programs for implementing basic functions including an OS (Operating System) 151, as well as a scheduler program 152 for implementing a scheduler 640 described later, an IO refresh program 153 for implementing an IO refresh 71, a control program 154 including a UPG and an MCE (Motion Control Engine) created according to the manufacturing device or facility to be controlled, setting data 155, configuration data 156, a learning program 157, and model data 158. Furthermore, the secondary storage device 108 stores various programs and data as described later.
[0089] The upper network controller 105 exchanges data with the HMI 280, the manufacturing execution system 400, or a device on the cloud (see FIG. 2) via the upper network 11. The USB controller 107 controls the exchange of data with the support device 500 via a USB connection.
[0090] The memory card interface 114 is configured to allow a memory card 116 to be attached and detached, and allows various data including the target information 206 to be written to the attached memory card 116 and various data to be read from the memory card 116 .
[0091] The counter 126 is used as a time reference for managing the execution timing of various processes in the PLC 100. The counter 126 typically increments or decrements a counter value at predetermined intervals. The RTC 128 is a type of counter with a timekeeping function, and provides the current time to the processor 102 and the like. The timer 101 is configured by one of the counter 126 and the RTC 128, or a combination of both.
[0092] The field network controller 118 controls data exchange between the PLC 100 and the field devices 90 via the network 110. Each field device 90 on the network 110 also has a counter (not shown) for time synchronization with the counter 126 of the PLC 100.
[0093] The control system 1 typically increments or decrements the counter value of various counters, such as the counter 126 used for time synchronization between devices, at predetermined intervals. The counter may be implemented using a high precision event timer (HPET), which is a hardware timer, or a dedicated circuit (for example, an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA)).
[0094] Referring to FIG. 3, the secondary storage device 108 further stores a backup management program 170 for managing the implementation of backup processing, a restore management program 180 for managing the implementation of restore processing, backup management information 165 and backup setting information 166.
[0095] The backup management program 170 includes a backup program 159, a change management program 160, an information management program 161, and a backup notification program 162. The backup program 159 includes a differential backup program 1591 for implementing differential backups, which will be described later. The restore management program 180 includes a restore program 163, and a restore processing program 164.
[0096] The config data 156 indicates the latest network configuration information. More specifically, the processor 102 extracts an identifier from data received from a device (PLC 100, field device 90) connected to the network 11 or the network 110 by the IO refresh 71, and manages the config data 156 using the extracted identifier and the identification information indicated by the config data 156. The processor 102 also accepts a user operation on the config data 156, and changes (edits) the identification information of the config data 156 based on the accepted user operation. In this way, when a device connected to the network configuration is changed (added, deleted, replaced, etc.), the latest configuration information of the network configuration can be indicated by the config data 156. The method of changing the config data 156 is not limited to the above.
[0097] When the learning program 157 is executed, it realizes an inference process that refers to a learning model indicated by the model data 158. The inference process includes, but is not limited to, an inference process for detecting an abnormality in a monitoring target including a field device 90. More specifically, in the inference process, the processor 102 calculates a feature amount based on a state value of the monitoring target from input data collected by the IO refresh 71, evaluates the degree of deviation of the feature amount from a learning model (also called an inference model), and detects (infers) the presence or absence of an abnormality according to the evaluation result. The model data 158 of the learning model can be determined by a known data mining method. Methods that can be applied to the inference process based on the degree of deviation include the k-nearest neighbor method, the LoF (local outlier factor) method, and the iForest (isolation forest) method. In addition, as another method, a DBT (Deep Binary Tree) can also be used. In the inference process, the model data 158 can be appropriately updated based on the result of learning or a rule base.
[0098] When the change management program 160 is executed, it detects whether there is a change in the target information 206. When the information management program 161 is executed, it manages the backup management information 165 and the backup setting information 166. When the backup notification program 162 is executed, it performs a process of outputting various notifications regarding backup. When the restore program 163 is executed, it performs a restore. When the restore processing program 164 is executed, it performs a process related to the restore.
[0099] The backup management information 165 includes information for managing the backup of the target information 206. The backup setting information 166 includes information set for performing a backup.
[0100] As shown in FIG. 3, when the PLC 100 is operating, the program in the secondary storage device 108 is read out to the main storage device 106, expanded, and executed by the processor 102. Also, when the PLC 100 is operating, the data or information in the secondary storage device 108 is read out to the main storage device 106, or is read out from the secondary storage device 108 to the main storage device 106 as appropriate by the program being executed. More specifically, when the PLC 100 is operating, the target information 206 including the control program 154, the setting data 155, the config data 156, the learning program 157, and the model data 158 is read out from the secondary storage device 108 and stored in the storage area E1 of the main storage device 106.
[0101] <Configuration of the E.HMI 280> FIG. 4 is a diagram schematically showing the hardware configuration of the HMI 280 according to the present embodiment. Referring to FIG. 4, the HMI 280 includes a CPU 281, a ROM (Read Only Memory) 282, a RAM (Random Access Memory) 283, a flash ROM 284 for storing various programs and data in a non-volatile manner, a clock 285, operation keys 286 for receiving user operations, a data reader / writer 287, a touch screen 288, and a communication interface 289. Note that these components are connected to each other via an internal bus.
[0102] The touch screen 288 includes a display 481 and a touch panel 482 for receiving operator input. The communication interface 419 controls communication between the HMI 280 and the PLC 100 connected to the network 11. The data reader / writer 287 mediates data transmission between the CPU 281 and a memory card 420 which is an external storage medium.
[0103] <Configuration of Support Device 500> FIG. 5 is a diagram schematically showing the hardware configuration of the support device 500 according to the present embodiment. Referring to FIG. 5, the support device 500 includes a CPU 510, a memory 512 composed of a volatile storage device such as a DRAM (Dynamic Random Access Memory), a timer 513, a hard disk 514 composed of a non-volatile storage device such as an HDD, an input interface 518, a display controller 520, a communication interface 524, and a data reader / writer 526. These components are connected to each other via a bus 528 so as to be capable of data communication with each other.
[0104] The input interface 518 mediates data transmission between the CPU 510 and input devices such as the keyboard 523, a mouse (not shown), and a touch panel (not shown). The display controller 520 is connected to the display 522 and displays the results of processing in the CPU 510 and the like. The communication interface 524 communicates with the PLC 100 or the device / line management device 190 via USB. The data reader / writer 526 mediates data transmission between the CPU 510 and the memory card 516 which is an external storage medium.
[0105] Note that the memory card 420 in FIG. 4 and the memory card 516 in FIG. 5 include a volatile storage medium or a non-volatile storage medium, for example, general-purpose semiconductor memory devices such as CF (Compact Flash) and SD (Secure Digital), or magnetic storage media such as a flexible disk, or optical storage media such as a CD-ROM (Compact Disk Read Only Memory).
[0106] <G. Periodic Control> In the present embodiment, an environment in which the backup of the target information 206 can be performed while ensuring the execution of the control program 154 is provided within a predetermined period. FIG. 6 is a diagram showing the configuration for realizing the backup according to the present embodiment in association with the control period 70. Such backup processing within the period is similarly performed for each PLC 100.
[0107] Referring to FIG. 6, the PLC 100 communicates with one or more field devices 90 via the network 110, and communicates with the HMI 280 and other PLCs 100 (not shown) via the network 11. Further, the PLC 100 communicates with the support device 500 and communicates with the upper system 300 via the networks 11 to 14. In FIG. 6, the support device 500 is connected to the PLC 100 via the network 11, but may be connected to the PLC 100 by a USB controller 107 without passing through the network 11.
[0108] The host system 300 is configured to manage the control system 1 by exchanging data with the PLC 100. The host system 300 includes at least one of the equipment / line management device 190, the manufacturing management devices 380 and 390, the manufacturing execution system 400 including a storage unit 450, and an external device on the cloud, all of which are shown in Fig. 2. In Fig. 6, the host system 300 is configured to include the manufacturing execution system 400.
[0109] The PLC 100 executes a scheduler 640 that manages a plurality of programs to be executed by the processor 102 included in the PLC 100 according to priority within a predetermined period such as a control period 70. The plurality of programs managed by the scheduler 640 mainly include a first program and a second program. The first program is a program with a high priority to be executed by the processor in the control period 70, and may include a program for an IO refresh 71 and a control program 154 for a first process (corresponding to the control arithmetic process 72, etc.) for controlling the field device 90, such as UPG and MCE. When the field device 90 includes a robot, the MCE is a program that generates (calculates) a command value for moving (driving) the robot along a target trajectory.
[0110] The second program has a lower execution priority than the first program, and includes a program for a second process that is executed in an idle time of the processor 102 in the control period 70. More specifically, the second process includes a backup process, and the second program includes a backup management program 170.
[0111] The scheduler 640 switches the program executed by the processor 102 in accordance with the execution priority during the control period 70, thereby performing an IO refresh 71 for exchanging data with the field device 90 and performing a control calculation process 72 for executing the UPG 154 based on the field value collected from the field device 90 during each control period 70. The field value collected from the field device 90 may include a state value indicating the state of the controlled object. The PLC 100 performs the control calculation process 72 based on the field value by executing an instruction of the control program 154, and transmits a calculated value by the control calculation process 72 to the field device 90 by the IO refresh 71. This calculated value corresponds to a control command for controlling the field device 90. The control command may be a value related to control, and is not limited to this, but includes a value shared between the control programs 154 (for example, a value (state value) indicating the behavior of the controlled object) or a value given to the controlled object (for example, a command value, a controlled variable, etc.).
[0112] When the execution of the first program is completed in a control cycle 70 and the IO refresh 71 and the control operation process 72 are terminated, the scheduler 640 causes the processor 102 to execute the backup management program 170 in the free time 73 of the control cycle 70, so that the backup management unit 620 performs backup processing. More specifically, in the free time 73, the change management program 160 is executed to realize the change detection unit 601 (see FIG. 1). When the change detection unit 601 detects a change in the target information 206 of the primary storage device 106, the processor 102 executes the backup program 159 to perform backup of the target information 206 of the primary storage device 106. In this way, in the free time 73 of the control cycle 70, the backup management unit 620 can back up the target information 206 stored in the primary storage device 106.
[0113] The backup management unit 620 determines the number of control periods 70 required to complete the backup (for example, N (≧1)) and the amount of unit information M that can be backed up in each of the N control periods 70. Hereinafter, the process of determining the number N of control periods 70 required to complete the backup is referred to as "backup period number determination," and the process of determining the amount of unit information M that can be backed up in each of the determined N control periods 70 is referred to as "backup unit amount determination."
[0114] More specifically, the backup management unit 620 determines N control periods 70 whose total length of free time 73 of each control period 70 corresponds to the time required for backup processing. For example, the backup management unit 620 calculates the time required to back up all of the target information 206 based on the total amount of information to be backed up, the read speed of the main storage device 106, and the write speed of the memory card 116 of the "backup destination medium", and calculates the number N of control periods 70 required to complete the backup based on (required time / free time 73 of each control period 70). The backup management unit 620 also calculates the amount of unit information M based on (total amount of information to be backed up / N), and sets the calculated amount of unit information M as a parameter of the backup program 159, for example, as an argument of the backup program 159. In addition, if the "backup destination medium" is not the memory card 116 but another storage medium such as a storage medium provided in the support device 500 or HMI 280, or a storage unit 450 (see Figure 2) provided in the higher-level system 300, the backup management unit 620 further determines the number N of required control periods 70 and the unit information amount M based on the network transfer speed and the write speed of the other storage medium.
[0115] Within the control cycle 70, the PLC 100 executes the backup program 159 during the idle time 73 in each of the N control cycles 70 while ensuring the execution of the control program 154. As a result, the backup process for the unit information amount M is executed N times, and the backup of the "target information" can be completed. In this embodiment, although the idle time 73 of each control cycle 70 is constant, the idle time 73 may be variably set by measuring the required time of the IO refresh 71 or the control operation process 72.
[0116] The following describes a specific example of the backup of the target information 206 and the environment for restoring the target information 206 stored in the "backup destination medium". FIG. 24 is a diagram showing an example of a screen constituting a UI displayed for backup or restore. The screen of FIG. 24 will be appropriately referred to in the following description.
[0117] <Configuration of Components> FIG. 7 is a block diagram schematically showing components for realizing backup and restore according to this embodiment. Referring to FIG. 6, the components include a backup management unit 620 that manages the process of backing up the target information 206 in the main memory device 106 by executing the backup management program 170, and a restore management unit 630 that manages the process of restoring the backup data 613 stored in the memory card 116 to the main memory device 106 by executing the restore management program 180, and a scheduler 640 realized by executing the scheduler program 152.
[0118] The backup management unit 620 includes a change management unit 600 realized by executing the change management program 160, a backup execution unit 621 realized by executing the backup program 159, a backup notification unit 622 realized by executing the backup notification program 162, and an information management unit 610 realized by executing the information management program 161. The backup execution unit 621 includes a differential backup execution unit 623 realized by executing the differential backup program 1591. The restore management unit 630 includes a restore execution unit 631 and a restore notification unit 632 realized by executing the restore program 163 and the restore processing program 164, respectively. The scheduler 640 causes the processor 102 to execute the programs of the components of the backup management unit 620 during the free time 73 after the IO refresh 71 and the control arithmetic processing 72 are completed in each control period 70 shown in FIG. 6.
[0119] The information management unit 610 manages the backup management information 165 and the backup setting information 166. The backup setting information 166 includes a designation of a "backup destination medium" and a designation of "target information". These pieces of information are set, for example, by a user operation. The information designating the "backup destination medium" is, for example, an identifier of one or more "backup destination media", and the identifier includes an address of the storage medium in the network system 10. The information designating the target information 206 includes, for example, an identifier of the program or data to be backed up. For example, when data is managed in a folder structure in the storage area E1, the identifier may include a folder identifier (such as a URL: Uniform Resource Locator).
[0120] The change management unit 600 outputs change specification information 1650 to cause the backup execution unit 621 to back up the target information 206. More specifically, the change detection unit 601 detects whether or not the target information 206 in the main storage device 106 has been changed based on the presence or absence of a user operation on the target information 206, or a calculated value calculated from the target information 206. When the change detection unit 601 detects such a change, it generates and outputs change specification information 1650 using the content of the user operation.
[0121] A user operation for changing the target information 206 may include an online edit operation. FIG. 24 shows an example of a GUI (Graphical User Interface) provided by the touch screen 288 of the HMI 280 for the online edit operation. When the user selects an item "setting adjustment" from the menu screen of FIG. 24(A), for example, FIG. 24(E) or FIG. 24(F) is switched and the user can edit (change) the setting data 155, for example, by operating the button of FIG. 24(E) or FIG. 24(F). As with the setting data 155, the user operation may include an online edit operation of the control program 154, the configuration data 156, the learning program 157, and the model data 158.
[0122] When the change detection unit 601 of the own device detects a change in the target information 206 of the main storage device 106, or when a predetermined user operation is received, the change notification unit 602 generates a change notification frame 90B (FIG. 8(B)) and transmits it via the network 11. The change notification frame 90B includes a request to have another PLC 100 perform a backup process. The change notification frame 90B will be described in detail later.
[0123] The change management unit 600 further analyzes a change notification frame 90B received from another PLC 100 via the network 11, and outputs change specification information 1650 based on the analysis result.
[0124] The backup execution unit 621 receives the change specification information 1650 output from the change management unit 600. When the backup execution unit 621 receives the change specification information 1650, the backup execution unit 621 backs up the target information 206 in the primary storage device 106. More specifically, when the backup execution status 1657 (FIG. 9) of the change specification information 1650 indicates "execute", the backup execution unit 621 reads (copies) the target information 206 based on the backup setting information 166, and stores the read target information 206 in the "backup destination medium" specified by the backup setting information 166. For example, when the memory card 116 is specified as the "backup destination medium", the backup execution unit 621 stores the target information 206 in the memory card 116 as backup data 613. This executes a backup of the target information 206.
[0125] The backup notification unit 622 transmits various notifications related to the backup process via the network 11, and outputs the notifications to the user via the HMI 280, the support device 500, and a display provided on the operation panel 129 of the PLC 100, which is the device itself.
[0126] The information management unit 610 receives the change specification information 1650 output from the change management unit 600. The information management unit 610 registers information based on the received change specification information 1650 as the backup management information 165.
[0127] The restore execution unit 631 performs the restore, and the restore notification unit 632 transmits various notifications related to the restore via the network 11 and outputs the notifications to the user via the HMI 280, the support device 500, and the display provided on the operation panel 129 of the PLC 100 itself.
[0128] FIG. 7 shows an example of a configuration in which the functions of the required components are provided by the processor 102 executing a program, but some or all of these provided functions may be implemented using a dedicated hardware circuit (e.g., an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA)). Alternatively, the main part of the PLC 100 may be realized using hardware that conforms to a general-purpose architecture (e.g., an industrial PC based on a general-purpose PC). In this case, virtualization technology may be used to run multiple operating systems (OS) with different uses in parallel, and required applications may be executed on each OS.
[0129] (h1.Frame composition) Fig. 8 is a diagram showing an example of a frame configuration according to this embodiment. In this embodiment, a PLC 100 communicates with another PLC 100 in relation to backup or restoration, for example, using the frame shown in Fig. 8. Communication between PLCs 100 is not limited to a frame format, and may be, for example, a packet format.
[0130] Referring to the notification frame 90A in FIG. 8(A), the frame basically has a header 91 and a body 92 that stores a payload indicating various notifications. The header 91 stores information indicating the type 93, destination 94, and sender 95 of the frame 90A. The change notification frame 90B in FIG. 8(B) stores change specific information 1650 in the body 92. In addition, in the header 91 of the change notification frame 90B, the type 93 indicates a "backup request", the sender 95 indicates information identifying the sender PLC 100, and the destination 94 indicates information identifying one or more other PLCs 100 connected to the network 11. Here, the destination 94 of the change notification frame 90B is set to, for example, a multicast address that specifies all PLCs 100 connected to the network 11. When the change management unit 600 of the PLC 100 receives the change notification frame 90B via the network 11, it extracts the change specific information 1650 from the body 92 of the change notification frame 90B and outputs it.
[0131] The restore notification frame 90C in Figure 8 (C) requests each PLC 100 to perform a restore, so the type 93 in the header 91 indicates a "restore request", and the body 92 includes a restore command 172, a number 1651 that identifies the data to be restored, and a reservation time 167 that reserves the execution of the restore.
[0132] (h2. Backup management information 165) FIG. 9 is a diagram showing an example of the backup management information 165. The backup management information 165 has a table format in which a plurality of records are registered, and each record includes a number 1651 for identifying the record and change specification information 1650. The change specification information 1650 of each record includes the change specification information 1650 generated by the change management unit 600 of the PLC 100 itself, or the change specification information 1650 extracted from the change notification frame 90B received from another PLC 100. When the information management unit 610 receives the change specification information 1650 from the change management unit 600, it generates a record based on the received change specification information 1650 and registers it in the table of the backup management information 165. Referring to FIG. 9, the change specification information 1650 of the record of the backup management information 165 includes data indicating a change time 1652, a change target group 1653, a change target 1654, an operation terminal 1655, an operator 1656, whether or not a backup is performed 1657, and a reason for performing a backup 1658.
[0133] The change time 1652 of the change identification information 1650 of the record is the time when the change identification information 1650 was received, and more specifically, indicates the time when the change of the target information 206 was detected or the time when the backup process was performed. The change target group 1653 indicates information specifying one or more PLCs 100 for which the backup process should be performed synchronously (simultaneously). Here, all PLCs 100 in the control system 1 are specified.
[0134] Change target 1654 indicates an identifier for identifying PLC 100 that generated change specific information 1650. For example, when PLC 100B has backup management information 165 in Fig. 9, change target 1654 basically indicates the identifier of PLC 100B, but when PLC 100B receives the change specific information 1650 from another PLC 100 as a change notification frame 90B, change target 1654 indicates the identifier of the other PLC 100. For example, change target 1654 of a record in which number 1651 in Fig. 9 indicates "3" indicates "PLCA," which indicates that change specific information 1650 of the record is information received by PLC 100B from PLC 100A as a change notification frame 90B.
[0135] An operation terminal 1655 and an operator 1656 respectively indicate the identifier of the terminal (HMI 280, support device 500, PLC) that accepted a user operation to change the “target information” corresponding to the change specific information 1650 and the identifier of the user.
[0136] Backup execution status 1657 indicates the presence or absence of an instruction to instruct the processor 102 to perform backup processing, and includes a backup instruction for causing the backup execution unit 621 to execute a backup. More specifically, if "execute" is set in backup execution status 1657, backup execution status 1657 includes a backup instruction, and if "not execute" is set in backup execution status 1657, backup execution status 1657 does not include a backup instruction. Reason 1658 indicates the reason why the target information 206 was changed (for example, a change in production volume, a change in production type, etc.).
[0137] For example, if the backup execution status 1657 of the record having the number 1651 "3" indicates "execute," when the backup execution unit 621 backs up the target information 206 in accordance with the backup command, the information management unit 610 associates (links) the backup data 613 of the target information 206 backed up to the memory card 116 with the record having the number 1651 indicating "3," as shown in FIG. 9.
[0138] In this way, when the change detection unit 601 of the PLC 100 of the own device detects a change in the target information 206, the information management unit 610 generates change identification information 1650 and stores it as backup management information 165. Furthermore, the information management unit 610 stores the change identification information 1650 extracted from the change notification frame 90B indicating that a change in the target information 206 in the other PLC 100 has been detected as backup management information 165. Therefore, the information management unit 610 can manage the history of changes made to the target information 206 in the PLC 100 of the own device and the history of backups made to the target information 206, using the backup management information 165 in FIG.
[0139] (h3. Backup based on backup management information 165) When the backup execution unit 621 receives the change specification information 1650 from the change management unit 600, it analyzes the change specification information 1650, and when it determines based on the analysis result that backup execution status 1657 indicates "YES", it starts backup according to the backup command. More specifically, the backup management unit 620 outputs the number of periods N and the unit information amount M of the control periods 70 determined by "backup period determination" and "backup unit amount determination" to the scheduler 640, and sets the unit information amount M in the backup program 159. The scheduler 640 executes the backup program 159 in the free time 73 in each of the N control periods 70, and the backup program 159 backs up the unit information amount M of the target information 206 when executed. As a result, the target information 206 is backed up by the backup execution unit 621, which is realized by executing the backup program 159, in units of unit information amount M during the free time 73 of each of the N control periods 70, and as a result, the target information 206 is backed up over the N control periods 70.
[0140] FIG. 10 is a diagram schematically showing a backup scene using N control cycles 70 and a unit information amount M. In FIG. 10, the target information 206 is divided into three unit information 91A, 91B, and 91C each having a unit information amount M, and a case where the backup is performed in three control cycles 70 as the number of cycles N is shown. In FIG. 10, through three control cycles 70, the backup of the target information 206 is completed while maintaining the control cycle 70. Thus, the backup while dividing the target information 206 into a plurality of unit information is also referred to as "divided backup".
[0141] <I. Change Detection and Update of Backup Management Information> FIGS. 11 and 12 are flowcharts of the processing for change detection and update of the backup management information 165 according to the present embodiment. FIG. 11 shows the processing in the case where one PLC 100 is connected to the control system 1, and FIG. 12 shows the processing in the case where a plurality of PLCs 100 are connected to the control system 1.
[0142] Referring to FIG. 11, the PLC 100 monitors the target information 206 of its own device by the change detection unit 601. When a change in the target information 206 is detected by the change detection unit 601 (YES in steps S1 and S2), the PLC 100 acquires the change specific information 1650 from the user operation content by the change management unit 600, and the record of the acquired change specific information 1650 is registered in the backup management information 165 by the information management unit 610 to update the backup management information 165 (step S3). When a change in the target information 206 is not detected by the change detection unit 601 (NO in step S2), the process returns to step S1.
[0143] Referring to FIG. 12, one PLC 100 of the control system 1 monitors the target information 206 of its own device by the change detection unit 601. When a change in the target information 206 is detected by the change detection unit 601 (YES in steps S5 and S6), the PLC 100 obtains the change identification information 1650 from the user operation content by the change management unit 600, and the information management unit 610 registers the record of the obtained change identification information 1650 in the backup management information 165 and updates the backup management information 165 (step S7).
[0144] In step S7, when the execution presence / absence 1657 of the backup of the change identification information 1650 obtained from the user operation content indicates "execute", the PLC 100 generates a change notification frame 90B including the change identification information 1650 by the backup notification unit 622 and transmits it to the network 11 (step S8).
[0145] Also, the change notification 602 may notify the user that a change in the target information 206 has been detected via the display of the operation panel 129 or via the HMI 280 and the support device 500.
[0146] <J. Backup Process> FIG. 13 is a flowchart of the backup process according to this embodiment. FIG. 14 is a diagram showing a schematic diagram of a case where an additional change is detected in the backup process. The backup process in the control system 1 having a network configuration in which a plurality of PLCs 100 are connected will be described with reference to FIG. 13. When the PLC 100 in the control system 1 receives a change notification frame 90B indicating "execute" and having a backup execution status 1657 including a backup command by the change management unit 600 (step S31), the backup execution unit 621 executes a backup of the target information 206 according to the backup command. Note that the case where the PLC 100 backs up the target information 206 is not limited to when the change notification frame 90B is received from another PLC 100. For example, when the change detection unit 601 detects a change in the target information 206 of the own device, the backup of the target information 206 may be executed.
[0147] In step S31, PLC 100 receives change notification frame 90B, and thereafter, within a predetermined set time, PLC 100 repeatedly determines, by change detection unit 601, whether there is an additional change to target information 206 (NO in steps S32 and S33). When PLC 100 detects an additional change to target information 206 within the set time by change detection unit 601, PLC 100 does not back up target information 206 after the additional change, but instead performs postponement 32a to postpone the backup.
[0148] The postponement 32a will be described with reference to Fig. 14. More specifically, when a first change 120, which is a change to the target information 206, is detected in step S31, the PLC 100 causes the backup execution unit 621 to perform a backup of the target information 120B representing the target information 206 including the portion changed by the first change 120. The backup of the target information 206 (i.e., the target information 206 having the second change 131 and the third change 132 representing the changes to the target information 120B) detected until the backup is completed is postponed as a backup of "target information having the second change + the third change" 133 in Fig. 14.
[0149] When the change management unit 600 detects that the set time has elapsed (YES in step S33), the backup execution unit 621 of the PLC 100 determines the timing of performing a backup (step S34). More specifically, the backup management unit 620 of the PLC 100 performs the processes of "determining a backup cycle" and "determining a backup unit amount" to determine the cycle number N and unit information amount M, which are the timing of the backup (step S34). The backup management unit 620 determines whether or not "user-set execution permission" is performed based on a user operation received via the GUI of FIG. 24(B) or FIG. 24(D) (step S35). The user can set permission for backup execution (or cancel the permission setting) by operating such a GUI.
[0150] If the PLC 100 determines based on the user operation that "execution permission has not been set by the user" (NO in step S35), the backup management unit 620 determines whether or not "execution permission has been set by the user" based on the user operation via the GUI of FIG. 24(B) or FIG. 24(D) (step S36). If it is determined that "execution permission has been set by the user" (YES in step S35, YES in step S36), the process proceeds to step S37. If the PLC 100 determines by the backup management unit 620 based on the user operation accepted via the GUI that "execution permission has not been set by the user" (NO in step S36), the process of FIG. 13 ends without performing a backup.
[0151] In step S37, the PLC 100 performs the backup and outputs a notification of the completion of the backup (step S37). More specifically, the PLC 100 performs a split backup of the target information 206 by the unit information amount M in the free time 73 of each of the N control periods 70 by the backup execution unit 621. When the backup of the target information 206 is completed, the PLC 100 transmits a frame 90A of a backup completion notification to the network 11 by the backup notification unit 622. The address of the PLC 100 indicated by the change target group 1653 of the change specification information 1650 of the change notification frame 90B received in step S31 is set in the destination 94 of the frame 90A of the backup completion notification.
[0152] As long as it is not determined that the backup of the entire control system 1 is complete (NO in step S39), PLC 100 waits for the completion of the backup of the entire control system 1 (step S38). More specifically, when the backup of the target information 206 of its own device is completed, PLC 100 determines whether the backup completion notification frame 90A has been received by the backup management unit 620 from all of the one or more PLCs 100 indicated by the change target group 1653. If it is determined that the frames have been received, PLC 100 determines whether the backup of the entire control system 1 was successful (YES in step S39).
[0153] For example, after the backup of the target information 206 of its own device is completed, when the PLC 100 can receive a notification frame 90A notifying the completion of the backup from all of the one or more PLCs 100 indicated by the change target group 1653 before a predetermined time elapses by the backup management unit 620, it is determined that the backup process has succeeded (YES in step S40), and the process of FIG. 13 ends. On the other hand, when the PLC 100 cannot receive the notification frame 90A notifying the completion of the backup from all of the one or more PLCs 100 indicated by the change target group 1653, the PLC 100 does not determine that the backup process has succeeded (NO in step S40), and the PLC 100 notifies the user of the backup failure of the entire control system 1 (step S41), and the process of FIG. 13 ends.
[0154] <K. Split Backup> FIG. 15 is a flowchart showing an example of the process of step S37 in FIG. 13. With reference to FIG. 15, a case where the split backup is performed with the "backup destination medium" being the memory card 116 will be described.
[0155] When PLC 100 starts backup using backup execution unit 621, backup notification unit 622 transmits a notification frame 90A notifying other PLCs 100 of the start of backup in its own device via network 11 (step S51). PLC 100 acquires the amount of information of target information 206 using backup management unit 620 (step S52), and acquires the free space of memory card 116, which is the "backup destination medium" specified by backup setting information 166. PLC 100 compares the amount of information of target information 206 with the free space of memory card 116 using backup management unit 620, and determines whether the free space of memory for backup is sufficient based on the comparison result (step S53). When the PLC 100 determines through the backup management unit 620 that there is insufficient free space on the memory card 116 to back up the target information 206 (NO in step S53), the PLC 100 outputs a notification to the user through the backup notification unit 622 that backup is not possible due to insufficient memory (step S62).
[0156] When it is determined that there is sufficient free space in the backup memory for backing up the target information 206 (YES in step S53), the PLC 100 executes "determination of the number of backup periods" and "determination of the backup unit amount" by the backup management unit 620 (steps S54, S55). As a result, N control periods 70 and unit information amount M are determined.
[0157] PLC 100 uses backup management unit 620 to compare N, which is the number of control cycles 70, and M, the amount of unit information, with the backup tolerance threshold indicated by backup setting information 166, and determines whether or not split backups are possible based on the comparison result (step S56). If the comparison result indicates that N of control cycles 70 or M, the amount of unit information, exceeds the threshold, PLC 100 determines that split backups are possible (NO in step S56), and uses backup notification unit 622 to output a notification to the user that split backups cannot be performed during operation (step S63).
[0158] When the comparison result indicates that the number N of control periods 70 and the unit information amount M are equal to or less than the threshold value, the PLC 100 determines that the split backup is executable (YES in step S56), and the PLC 100 causes the scheduler 640 to execute the backup program 159 in the free time 73 in each of the N control periods 70 so that the split backup is executed (step S57). As a result, the backup execution unit 621 starts the split backup.
[0159] While waiting for the completion of the split backup process (step S58), the PLC 100, by means of the backup management unit 620, determines whether or not the split backup will be completed within a predetermined backup waiting time (NO in steps S59, NO in S64).
[0160] When the backup management unit 620 determines that the split backup is completed within the backup wait time (YES in S59), the PLC 100 uses the backup notification unit 622 to transmit a notification frame 90A for notifying the other PLCs 100 of the backup completion via the network 11 (step S59a). The PLC 100 determines whether the backup was successful or not based on whether the backup management unit 620 receives notification frames 90A of backup completion from all of the other PLCs 100 (step S60). When the backup management unit 620 determines that the split backup was not completed within the backup wait time and timed out (YES in step S64), or when the backup completion notification is not received from all of the other PLCs 100 and the backup is not successful (NO in step S60), the backup notification unit 622 outputs a notification to the user that the backup has failed (step S65).
[0161] When PLC 100 receives notification frames 90A indicating that backup is complete from all other PLCs 100 via backup management unit 620, PLC 100 determines that the split backup was successful (YES in step S60), and PLC 100 outputs a notification of successful backup to the user via backup notification unit 622 (step S61).
[0162] (k1. Split backup to the upper system) Fig. 16 is a flowchart showing another example of the process of step S37 in Fig. 13. With reference to Fig. 16, a case will be described in which a non-local memory of PLC 100, for example a storage medium provided by upper system 300, is set as the "backup destination medium" in backup setting information 166. More specifically, a case will be described in which, for example, storage unit 450 provided in manufacturing execution system 400 is set as the "backup destination medium" in backup setting information 166.
[0163] The PLC 100 performs "determination of the number of backup periods" and "determination of the unit amount of backup" by the backup management unit 620 (steps S101, S102). More specifically, the backup management unit 620 calculates the time required to back up all of the target information 206 based on the total amount of information of the target information 206, the read speed of the main memory device 106, the write speed of the storage unit 450 which is the "backup destination medium", and the transfer speed of the network between the PLC 100 and the manufacturing execution system 400, and calculates the number of periods N of the control period 70 and the unit amount of information M based on the number of periods N based on (calculated required time / free time 73 of each control period 70).
[0164] The PLC 100 compares the N number of control periods 70 and the unit information amount M determined by the backup management unit 620 with the allowable threshold for backup to the upper system indicated by the backup setting information 166, and determines whether or not a split backup can be performed based on the comparison result (step S103). If the comparison result indicates that the N number of control periods 70 or the unit information amount M exceeds the threshold, it is not determined that a split backup can be performed (NO in step S103), and the PLC 100 outputs a notification to the user by the backup notification unit 622 that a split backup to the upper system during operation cannot be performed (step S109).
[0165] If the comparison result indicates that the number N of control periods 70 and the unit information amount M are equal to or less than the threshold, it is determined that the split backup can be performed (YES in step S103), and the PLC 100 causes the scheduler 640 to execute the backup program 159 in the free time 73 in each of the N control periods 70 in order to perform the split backup to the upper system (step S104). The PLC 100 waits for the backup to be completed (step S105). The PLC 100 uses the backup management unit 620 to determine whether the split backup will be completed within a predetermined backup waiting time (steps S106, S110).
[0166] When the backup management unit 620 determines that the split backup has been completed within the backup waiting time (YES in S106), the PLC 100 transmits a notification frame 90A notifying other PLCs 100 of the backup completion by the backup notification unit 622 (step S106a). The PLC 100 determines whether the backup has been successful based on whether the backup management unit 620 has received the backup completion notification frame 90A from all other PLCs 100 (step S107). When the backup management unit 620 determines that the split backup has not been completed within the backup waiting time (NO in S106, YES in S110), or when the backup completion notification frame 90A has not been received from all other PLCs 100 (NO in S107), the PLC 100 outputs a notification to the user indicating that the backup has failed by the backup notification unit 622 (step S111).
[0167] When the backup management unit 620 determines that the split backup has been successful (YES in S107), the PLC 100 outputs a notification of the backup success to the user by the backup notification unit 622 (step S108).
[0168] In the present embodiment, as the "backup destination medium", a combination of a local memory of the PLC 100 such as the memory card 116 and a storage medium of a non-local memory included in the host system may be used. In such a combination, the target information 206 can be backed up and stored in both the local memory of the PLC 100 and the non-local memory (for example, the storage medium included in the host system 300).
[0169] <L. Differential Backup> Fig. 17 is a flow chart showing the process of differential backup according to this embodiment. Fig. 18 is a diagram showing a schematic diagram of the procedure of differential backup according to this embodiment. In this embodiment, during operation, the PLC 100 performs differential backup of the target information 206 by the differential backup execution unit 623. In differential backup, every time the change detection unit 601 detects a change in the target information 206, the PLC 100 uses the backup management unit 620 to compare the changed target information 206 with the base data, i.e., the original target information 206 before the change, and obtains a "difference" corresponding to the changed partial information of the target information 206 based on the comparison result.
[0170] Referring to FIG. 18, at time T, the backup execution unit 621 backs up all of "data 1" of the target information 206 (steps T1 and T2). In steps T1 and T2, the backup execution unit 621 performs the split backup of FIG. 15. In the split backup, "data 1" is compressed, and "compressed data 1" is stored in the memory card 116 of the "backup destination medium" by the split backup. This "compressed data 1" becomes base data for detecting differences. Note that the base data may be in an uncompressed format as long as it is data that is a copy of "data 1".
[0171] At a later time T+1, when the change detection unit 601 detects a change to "Data 1", the backup management unit 620 judges whether the number of changes to the original "Data 1" exceeds a threshold value. If it is determined that the number of changes does not exceed the threshold value, the backup management unit 620 compares the changed "Data 1a" with the "Compressed Data 1" on the memory card 116, and obtains "Difference 1" corresponding to the changes based on the comparison result. The differential backup execution unit 623 compresses "Difference 1" to create "Compressed Difference 1", and stores it in a specified storage area of the main storage device 106 (Step T3).
[0172] The backup management unit 620 compares "compressed difference 1" with "compressed data 1" to calculate the proportion of the data amount of "compressed difference 1" to the data amount of "compressed data 1", and compares the calculated proportion, i.e., the change proportion, with a threshold value. If the backup management unit 620 determines based on the result of the comparison that the change proportion is equal to or less than the threshold value, it does not cause the differential backup execution unit 623 to perform a backup using "compressed difference 1", but if it determines that the change proportion exceeds the threshold value, it causes the differential backup execution unit 623 to perform a backup based on "compressed difference 1" (step T4).
[0173] More specifically, the backup management unit 620 calculates the time required for backup based on "compressed difference 1" based on the information amount of "compressed difference 1", the read speed of the main storage device 106, the write speed of the memory card 116, and the processing time for merging "compressed difference 1" with "compressed data 1" on the memory card 116, and calculates the number N of control periods 70 required to complete the backup process based on (calculated required time / free time 73 of each control period 70), and calculates the unit information amount M based on (information amount of "compressed difference 1" / N), and sets the number of periods N and the unit information amount M as parameters (arguments) in the differential backup program 1591. Here, merging includes acquiring data representing "data 1a" by integrating the programs or data indicated by "compressed difference 1" and "compressed data 1" into one according to a predetermined rule.
[0174] The PLC 100 executes the differential backup program 1591 by the scheduler 640 in the free time 73 in each of the N control periods 70. The differential backup execution unit 623 realized by executing the differential backup program 1591 executes a merging process of the difference of the unit information amount M while transferring the "compressed differential 1" by the unit information amount M during each free time 73.
[0175] At a subsequent time T+n (n≧2), backup and merge processing is performed (steps T5 and T6). More specifically, when the change detection unit 601 detects a change to "Data 1," the backup management unit 620 of the PLC 100 determines whether the number of changes to the original "Data 1" exceeds a threshold value. If it is determined that the number of changes exceeds the threshold value, the differential backup execution unit 623 performs backup and merge processing. For example, if the threshold value indicates two times, backup and merge processing is performed for the information on "Difference 1," "Difference 2," and "Difference 3" that was acquired for three changes and stored in a predetermined storage area of the main storage device 106 (steps T5 and T6).
[0176] More specifically, in steps T5 and T6, the PLC 100 calculates the number N of control periods 70 and the unit information amount M by the backup management unit 620. For example, the backup management unit 620 calculates the time required for backup. The required time is calculated based on, for example, the information amounts of "difference 1", "difference 2", and "difference 3", the read speed of the main storage device 106, the write speed of the memory card 116, and the processing time for merging "difference 1", "difference 2", and "difference 3" into "compressed data 1" on the memory card 116. Then, the backup management unit 620 calculates the number N of control periods 70 required to complete the backup process based on (calculated required time / free time 73 of each control period 70). The backup management unit 620 also calculates the unit information amount M based on (total information amount of "difference 1", "difference 2", and "difference 3" / N). The backup management unit 620 sets the calculated number of periods N and unit information amount M in the differential backup program 1591 as parameters (arguments).
[0177] The scheduler 640 executes the differential backup program 1591 in the free time 73 in each of the N control periods 70, and the differential backup execution unit 623 realized by executing the differential backup program 1591 performs merge processing while transferring "differential 1", "differential 2", and "differential 3" unit information amounts M at a time in the free time 73 in each of the N control periods 70.
[0178] Note that, if the total amount of information of "Difference 1", "Difference 2", and "Difference 3" is equal to or greater than the upper threshold, instead of performing the merging process while transferring "Difference 1", "Difference 2", and "Difference 3" by the unit information amount M, the changed "Data 1b" may be backed up in the procedure shown in steps T1 and T2. In this case, the changed "Data 1b" can be backed up and stored in the memory card 116 as "Compressed Data 2".
[0179] A differential backup will now be described with reference to Fig. 17. When the change detection unit 601 of the PLC 100 detects a change to the base data ("target information"), the backup management unit 620 counts up the number of changes detected (step S120).
[0180] PLC 100 uses backup management unit 620 to compare the number of changes with a threshold (step S121), and if it determines based on the result of the comparison that the number of changes is equal to or less than the threshold (YES in step S121), it calculates the change ratio for the base data (step S122). PLC 100 uses backup management unit 620 to compare the calculated change ratio with a threshold, and if it determines based on the result of the comparison that the change ratio is equal to or less than the threshold (YES in step S123), a differential backup is not performed. On the other hand, if PLC 100 uses backup management unit 620 to determine based on the result of the above comparison that the number of changes has exceeded the threshold (NO in step S121) or that the change ratio has exceeded the threshold (NO in step S123), it proceeds to step S124 for backup.
[0181] In step S124, the backup management unit 620 determines whether the backup setting information 166 includes an "execution permission inquiry" (step S124), and if it determines that the backup setting information 166 includes an "execution permission inquiry" (YES in step S124), the backup notification unit 622 outputs a notification of the "execution permission inquiry" to the user via the HMI 280 or the support device 500 (step S125), and the backup management unit 620 determines whether the backup execution has been denied based on the user operation received via the HMI 280, the support device 500, etc. (step S126).
[0182] The PLC 100 determines whether the backup setting information 166 includes a user setting of "execution permission inquiry" by the information management unit 610 (step S124). If it is determined that the backup setting information 166 does not include a setting of "execution permission inquiry" (NO in step S124), or if the PLC 100 determines that backup execution has not been denied based on the accepted user operation (NO in step S126), the PLC 100 proceeds to step S127.
[0183] In step S127, the PLC 100 causes the backup notification unit 622 to output a notification to the user that a differential backup will be started using the current base data (step S127). The PLC 100 resets the counter that counts the number of changes, and causes the differential backup execution unit 623 to start a differential backup (step S128). In step S128, the differential backup shown in FIG. 18 is performed.
[0184] The PLC 100, through the backup management unit 620, determines whether or not the differential backup will be completed within a predetermined backup wait time (NO in step S130, NO in step S135).
[0185] When the backup management unit 620 determines that the differential backup is completed within the backup waiting time (YES in S130), the PLC 100 transmits a notification frame 90A to the network 11 to notify the other PLCs 100 of the success of the backup by the backup notification unit 622 (step S130a). The PLC 100 determines whether the backup is successful or not based on whether the backup management unit 620 receives notification frames 90A including notifications of the success of the backup from all of the other PLCs 100 (step S131). When the backup management unit 620 determines that the differential backup is not completed within the backup waiting time (YES in step S135) or that the notification frames 90A including notifications of the success of the backup are not received from all of the other PLCs 100 (NO in step S131), the PLC 100 outputs a notification to the user by the backup notification unit 622 that the backup has failed (step S136).
[0186] When backup management unit 620 determines that the differential backup was successful (YES in step S131), PLC 100 determines whether or not a backup to a higher-level system has been set (step S132). More specifically, PLC 100 determines, via information management unit 610, whether or not backup setting information 166 includes a user setting for the storage medium of the "higher-level system" as the "backup destination medium," and based on the result of this determination, PLC 100 determines whether or not a backup to a higher-level system has been set.
[0187] When it is determined that the backup to the upper-level system is not set (NO in step S132), the PLC 100 ends the differential backup process. However, when it is determined that the backup to the upper-level system is set (YES in step S132), the PLC 100 backs up the target information 206 of the main memory device 106 to the storage medium of the upper-level system, for example, the storage unit 450, according to the processing procedure shown in FIG. 16 by the backup management unit 620 including the backup execution unit 621 (step S133). During the backup to the upper-level system, the PLC 100 sets the state of the target information 206 of the main memory device 106 to "write protection" by the backup management unit 620. However, when the backup to the upper-level system is completed, the backup management unit 620 changes the state of the target information 206 of the main memory device 106 from "write protection" to "writable" so that it can be changed (step S134).
[0188] <M. Backup of Machine Learning Data> The target information 206 may include machine learning data related to the control of the target. The user can permit the backup of the machine learning data to the PLC 100 during operation by operating the GUI of FIG. 24(C) presented on the touch screen 288 of the HMI 280.
[0189] 19 and 20 are diagrams showing a schematic diagram of the backup of machine learning data according to the present embodiment. For example, a case where the model data 158 is updated will be described. With reference to FIG. 19, in this embodiment, the inference process using the model data 158 and the update process of the model data 158 realized by executing the learning program 157 can be performed in a cycle independent of or different from the control cycle 70 of the IO refresh 71 and the control operation process 72. The result of the inference process is used, for example, in the control operation process 72 of the MCE, and the model data 158 is updated, for example, by the control operation process 72 of the UPG. When the model data 158 is updated, the change detection unit 601 detects that the information stored in the main storage device 106 has been changed (process 75). The backup execution unit 621 executes a backup of the target information 206 including the model data 158 stored in the main storage device 106, triggered by the detection of the change (process 76).
[0190] A case where a backup is performed every time the model data 158 is updated will be described more specifically with reference to Fig. 20. With reference to Fig. 20, the model data 158 includes, as model data having different characteristics, a variable model 15a whose model data is updatable and a fixed model 15b whose model data is not updatable. Methods for updating the variable model 15a include a case where the variable model 15a is autonomously changed by additional learning of machine learning, a case where the model data is changed by downloading it from an external device to the PLC 100, and a case where the model data is changed by the control calculation processing 72 of the UPG as shown in Fig. 19.
[0191] In FIG. 20, the model data 158 is updated a first time at time t1, a second time at a subsequent time t2, and a third time at a subsequent time t3, each time using a different method. Every time the model data 158 is updated at times t1, t2, and t3, the change detection unit 601 detects a change in the target information 206, and the backup execution unit 621 performs a backup of the target information 206. This allows the model data 158 to be saved as a backup every time the model data 158 is updated, regardless of the update method. Note that the data that may be updated among the machine learning data may be the learning program 157, or may be both the model data 158 and the learning program 157.
[0192] To back up the machine learning data, either a split backup by the backup execution unit 621 or a differential backup by the differential backup execution unit 623 can be used.
[0193] Although the "backup destination medium" is specified in advance by the backup setting information 166, the "backup destination medium" may be changed. For example, if the PLC 100 determines through the backup management unit 620 that the "backup destination medium" specified by the backup setting information 166 has no free space and backup is not possible, the PLC 100 may output a notification to the user through the backup notification unit 622 that backup is not possible, and may also output advice to the user including deleting old backup data 613 from the "backup destination medium."
[0194] <N.リストア> The PLC 100 can perform a so-called restore, which is a process of restoring the target information 206 in the main memory device 106, by reading out the backup data 613 (see FIG. 9) saved (stored) in, for example, a memory card 116 serving as a "backup destination medium" from the memory card 116 and storing the data in the main memory device 106.
[0195] 21 is a diagram showing a schematic diagram of the timing of restoration according to the present embodiment. While backup is performed when PLC 100 is in operation, restoration is performed at time 191 when PLC 100 is not in operation. Time 191 can be reserved by reservation time 167 in restore notification frame 90C.
[0196] The non-operating times include, for example, when the control system 1 is stopped in order to replace the field device 90 connected to the network 110, when the control system 1 is stopped due to frequent product defects or malfunctions, when the production line in which the control system 1 is installed is changed, when the same production line is reproduced in another factory, and when the production line is stopped in order to change the product being produced or the production volume of the product.
[0197] (n1. Restore process) In this embodiment, backup data 613 to be restored is also referred to as “data to be restored.” The user selects “data to be restored” from backup management information 165 displayed by HMI 280 or support device 500.
[0198] Fig. 22 is a flowchart of the restore process according to the present embodiment. Referring to Fig. 22, PLC 100 causes restore management unit 630 to display a selection screen for selecting "data to be restored" via HMI 280 or support device 500 (step S71).
[0199] FIG. 23 is a diagram showing an example of a selection screen for "data to be restored" according to the present embodiment. In step S71, a GUI including the selection screen of FIG. 23 is displayed. In the selection screen, a list of records of the backup management information 165 is displayed. The user operates to specify the number of a record corresponding to the "data to be restored" from the list of numbers 1651, which are identifiers of the records, on the selection screen, using a pointer such as an arrow in the figure. The PLC 100 accepts the user's specification operation through the restore management unit 630, and determines the backup data 613 of the memory card 116 associated with the specified number 1651 as the "data to be restored" (step S72). In the GUI of FIG. 23, the number 1651 of one or more pieces of backed up information is associated with a modification time 1652 indicating the time when the information was backed up, so that the user can use the associated modification time 1652 or reason 1658 as a selection criterion. The GUI including the selection screen of FIG. 23 may be output to the operation panel 129 of the PLC 100. In this case, the PLC 100 is equipped with an operation panel 129 as a means for displaying a UI showing a number 1651 which is an identifier of one or more pieces of backed up target information 206 (backup data 613), and an input / output I / F 127 circuit as a means for accepting user operations for specifying information to be restored from one or more pieces of backed up target information 206 via the operation panel 129.
[0200] 23 is displayed on the display 481 of the touch screen 288 by, for example, the HMI 280. The GUI of Fig. 23 includes, for one or more pieces of backed up information (backup data 613), a number 1651 for identifying the information, a modification time 1652, a reason 1658, and the like. The restore management unit 630 of the PLC 100 accepts a user operation via the touch panel 48 of the touch screen 288 or the like to specify information to be restored from among the one or more pieces of backed up information.
[0201] The PLC 100 judges whether the network configuration at the time of restoration is the same as the network configuration at the time of backup (step S74). More specifically, the PLC 100 searches the memory card 116, which is the "backup destination medium", based on the number specified by the user through the restore management unit 630, and reads out the backup data 613 corresponding to the number 1651 that matches the number specified by the user. The PLC 100 compares the configuration indicated by the configuration data 156 included in the backup data 613 with the configuration indicated by the current configuration data 156 (for example, the configuration data 156 of the secondary storage device 108) through the restore management unit 630, and judges whether the two configurations match based on the comparison result (step S74). If it is judged that the two configurations do not match (NO in step S74), the PLC 100 outputs, through the restore notification unit 632, a notification that provides error information based on the judgment result and advice on how to deal with the error to the user via the HMI 280 or the support device 500 (step S80e), and ends the process.
[0202] If it is determined that the two configurations match (YES in step S74), the restore notification unit 632 generates a restore notification frame 90C for requesting the other PLC 100 to perform a restore, and transmits the frame to the network 11 (step S75). The other PLC 100 uses the restore execution unit 631 to identify the "data to be restored" based on the identifier number 1651 and reservation time 167 in the body 92 of the received restore notification frame 90C, and reserves the time 191 for performing the restore. This allows all of the time-synchronized PLCs 100 in the control system 1 to reserve the same time 191 for the backup data 613 that was detected as having been changed and backed up at the same time, and to perform the restore at the reserved time.
[0203] The restore management unit 630 of the PLC 100 determines whether or not the PLC 100 is operating as a control system based on the operation mode of the PLC 100 (step S76). If it is determined that the PLC 100 is not operating (NO in step S76), the process proceeds to step S79. If it is determined that the PLC 100 is operating (YES in step S76), the process determines whether or not the operation of the PLC 100 as the control system 1 is to be stopped based on the operation mode of the PLC 100 (step S77). The PLC 100 or the control system 1 can switch the operation mode from operating to stopped based on a user operation.
[0204] If it is determined that the control system 1 is not stopped (NO in step S77), the PLC 100 causes the restore notification unit 632 to output a notification based on that determination, along with error information and advice on how to deal with the problem, to the user via the HMI 280 or the support device 500 (step S80e).
[0205] When the restore management unit 630 switches the operation mode to stop based on a user operation (step S78), the restore execution unit 631 starts restoration (step S79). More specifically, the restore execution unit 631 starts restoring the backup data 613 specified by the user in step S72 to the main storage device 106 as the "data to be restored," and the restore notification unit 632 transmits a restore notification frame 90C to notify the other PLCs 100 of the start of restoration (step S79). When the restore management unit 630 determines that the restoration of the PLC 100, which is the PLC 100 itself, is completed within a predetermined waiting time, the restore notification unit 632 transmits a notification of restoration completion to the other PLCs 100.
[0206] The PLC 100 determines whether the restoration of the entire control system 1 is completed based on whether the restoration of its own device is completed and whether frame 90A including notification of restoration completion has been received from all other PLCs 100 within the above-mentioned predetermined waiting time using the restoration management unit 630 (steps S80, S80a).
[0207] When it is determined that the restoration of the entire control system 1 is complete (YES in S80a), the PLC 100 causes the restore notification unit 632 to output a notification of restoration success to the user via the HMI 280 or the support device 500 (step S80b). When it is determined that the restoration of the entire control system 1 is not complete (NO in S80a, YES in S80c), the PLC 100 causes the backup notification unit 622 to output a notification of backup failure to the user via the HMI 280 or the support device 500 (step S80d).
[0208] 22, a case has been described in which the "data to be restored" (backup data 613) is stored in a local storage medium (memory card 116) of PLC 100, but if the same backup data 613 is stored in both the local storage medium and the storage unit 450 of the upper system, the backup data 613 in the local storage medium is basically set as the "data to be restored". If the backup data 613 is not stored in the local storage medium and is stored only in the storage unit 450 of the upper system, the backup data 613 in the storage unit 450 of the upper system is set as the "data to be restored".
[0209] Fig. 25 and Fig. 26 are diagrams showing examples of notification contents to a user according to this embodiment. Fig. 25 shows an example of notification contents 230 that may be presented in backup, and Fig. 26 shows an example of notification contents 240 that may be presented in restore.
[0210] These notifications include the reason for backup execution and a solution to the change in settings, for example, a solution to the change in machine learning data, and a solution to the execution and settings of a restore.
[0211] <O.プログラム> Backup or restore is illustrated by a configuration in which the processor 102 executes a program including a backup management program 170 or a restore management program 180. However, some or all of these provided configurations may be implemented using dedicated hardware circuits (for example, ASIC (Application Specific Integrated Circuit) or FPGA (Field-Programmable Gate Array), etc.). Alternatively, the main part of the PLC 100 may be realized using hardware that follows a general-purpose architecture. In this case, virtualization technology may be used to execute a plurality of different OSs in parallel and to execute necessary applications on each OS.
[0212] A program including the backup management program 170 and the restore management program 180 is a medium that stores information such as programs recorded in a computer or other device, such as the secondary storage device 108, a machine, etc., in a manner that allows the information to be read, by means of an electrical, magnetic, optical, mechanical, or chemical action. The processor 102 may obtain the program related to the backup or restore described above from these storage media. Alternatively, a program including the backup management program 170 or the restore management program 180 may be supplied to the PLC 100 by being downloaded via an upper network.
[0213] <P. Advantages> FIG. 27 is a diagram for explaining the advantages according to the present embodiment. The graph in FIG. 27 shows the production volume of products by a production line equipped with the control system 1 on the vertical axis, and the horizontal axis shows time. As the type of product or the production volume changes, the configuration of the production line, that is, the network configuration of the control system 1 changes. For example, a change in the type or the number of field devices 90 connected to the PLC 100 occurs.
[0214] In this context, when changing the configuration of the production line to change the production volume from X to Y at time T2 in FIG. 27, the user has a need to reuse, as the control program 154 and the setting data 155, etc., that were stored in the main memory device 106 when the same change in production volume was implemented in the past (time T1 in FIG. 27).
[0215] In this embodiment, the need can be met by performing a backup at time T1 to store backup data 613 including the control program 154 and setting data 155 in the "backup destination medium", and then at a later time T2, restoring the backup data 613 corresponding to time T1 (backup data 613 with number 1651 linked to "3" in FIG. 9).
[0216] Fig. 28 is a diagram for explaining a case where time-synchronized backup data is acquired between the PLCs 100 according to the present embodiment. Fig. 28 shows a schematic state where backup data 613 is stored in a time-synchronized manner between PLC 100A and PLC 100B. In (A) of Fig. 28, PLC 100A associates each of change times 1652 (corresponding to change times 1652 in Fig. 9) with each other and stores backup data 613, which is the target information 206 backed up at the corresponding time, in memory card 116. In (B) of Fig. 28, PLC 100B associates each of change times 1652 with each other and stores backup data 613, which is the target information 206 backed up at the corresponding time, in memory card 116. In this embodiment, since the PLCs 100A and 100B are time-synchronized, the control system 1 can acquire the backup data 613 acquired individually by the different PLCs 100A and 100B (different processes) with the time axis indicated by the change time 1652 of the backup data 613 almost completely aligned between the PLCs 100A and 100B. Therefore, at the time of restoration, by designating the change time 1652, the backup data 613 corresponding to the designated change time 1652 can be restored in the PLCs 100A and 100B. Note that while FIG. 28 illustrates the backup data 613 of the PLCs 100A and 100B, the backup data 613 of the PLC 100C can also be acquired with the time axis indicated by the change time 1652 almost completely aligned between the other PLCs 100A and 100B.
[0217] According to FIG. 28, after the backup process is performed in each PLC 100, the backup data 613 of each PLC 100 can be linked using the change time 1652, but the linking method is not limited to this. For example, in each PLC 100, when the change detection unit 601 detects that the target information 206 of the main storage device 106 has been changed at a predetermined time based on the synchronized time during operation, the backup execution unit 621 executes the backup process of the information stored in the main storage device 106. This predetermined time may include a time that the user has designated commonly to all PLCs 100 via the UI. More specifically, for example, when one of the multiple PLCs 100 detects that the target information 206 of the device has been changed during operation, the PLC 100 transmits a notification to the other PLCs 100 that a certain time (slightly in the future) based on the synchronized time is set as the designated time for performing the backup process. This allows the multiple PLCs 100 to simultaneously perform the backup process at the designated time. This certain time (slightly in the future) based on the synchronized time may be set dynamically or statically. This dynamic setting of the certain time may include, for example, a setting according to the length of the free time 73 in the control period 70 during operation. Also, this static setting of the certain time may include, for example, a setting based on the time specified by the user via the above-mentioned UI.
[0218] This makes it possible to link the backup data 613 of each PLC 100 at the predetermined or specified time, as well as the backup at the predetermined or specified time. Such linking methods may be implemented in combination as appropriate.
[0219] According to this embodiment, it is also possible to meet the need to reproduce or replicate a production line. Specifically, when a production line is configured by combining a plurality of industrial machines including field device 90, a plurality of PLCs 100 are connected via a network to operate one production line. The operation of the production line may be adjusted manually according to fluctuations in production volume or the operating status of industrial machines. In addition, with the recent evolution of machine learning, the machine learning data installed in PLC 100 may be adjusted autonomously. Among the daily production adjustments made according to fluctuations in production volume or the operating status of industrial machines, there is a need to reproduce the state of a past production line or replicate a production line. In this regard, in this embodiment, since it is possible to associate and back up, among a plurality of PLCs, as target information 206, the control programs for controlling a plurality of industrial machines constituting the production line, the setting data for control, and the machine learning data related to control, it becomes possible to meet the said need.
[0220] <Q. Appendix> The above-described embodiment includes the following technical ideas. [Configuration 1] A control device (100, 100A, 100B, 100C) for controlling a target (90), a storage unit (106, 108) for storing information (206) for controlling the target, and a change detection unit (601) for detecting that the information in the storage unit has been changed, wherein, during operation, when the change detection unit detects that the information in the storage unit has been changed, the control device performs backup processing of the information stored in the storage unit. [Configuration 2] The change detection unit detects that the information has been changed based on a user operation on the information stored in the storage unit, in the control device according to Configuration 1. [Configuration 3] The change detection unit 3. The control device according to configuration 1 or 2, further comprising: a controller configured to detect, based on a calculated value calculated from the information stored in the storage unit, that the information has been changed. [Configuration 4] The control device according to any one of configurations 1 to 3, wherein the information stored in the memory unit includes at least one of a control program (154) for controlling the target, setting data (155) for the control, and machine learning data (157, 158) related to the control. [Configuration 5] The control device is communicatively connected to a network (110, 11) configuration including the object; A control device according to any one of configurations 1 to 4, wherein the information stored in the memory unit includes network configuration data (156) including identifiers of the control device connected to the network configuration and devices including the target. [Configuration 6] the backup process includes a process of copying information from the storage unit and storing the copied information in a storage medium, 6. The control device according to any one of configurations 1 to 5, wherein the storage medium includes a storage medium provided in a higher-level system (300) connected to the control device via a network. [Configuration 7] A plurality of the control devices are communicatively connected to a network configuration (110, 11) including the object; A control device according to any one of configurations 1 to 6, wherein when each of the control devices detects that information stored in the memory unit of the control device has been changed, the control device transmits a request (90B) via the network configuration to have another control device perform the backup process. [Configuration 8] The plurality of control devices are time-synchronized, The control device according to configuration 7, wherein each of the plurality of control devices, in the backup process, backs up the information by associating a time based on a synchronized time. [Configuration 9] The plurality of control devices are time-synchronized, A control device as described in configuration 7 or 8, wherein, during operation, when the change detection unit of one of the multiple control devices detects that the information in the memory unit of the device itself has been changed, each of the multiple control devices performs a backup process of the information stored in the memory unit of the device itself at a specified time based on a synchronized time. [Claim 10] The control device according to configuration 9, wherein when the change detection unit detects that information in the memory unit of the first control device has been changed, the first control device transmits a notification of the specified time to the other control devices. [Configuration 11] The control device further comprises: A processor (102); a scheduler (640) for managing a plurality of programs to be executed by the processor in accordance with priority within a predetermined period (70); The plurality of programs managed by the scheduler include a first program for a first process (71, 72) including the control process, the first program being a high-priority program executed by the processor in the cycle; a second program for a second process, the second program having a lower execution priority than the first program and executed in an idle time (73) of the processor in the period; the first program includes a control program (154) for controlling the object; the second program includes a backup program (170, 159) that performs the backup process; The scheduler A control device according to any one of configurations 1 to 10, which causes the processor to execute the backup program during each of the free times of one or more periods (N) in which the total length of free time in each period corresponds to the time required for the backup process. [Configuration 12] The control device further comprises: 12. The control device according to configuration 11, wherein the one or more periods are determined to have a total length of free time in each period, the total length corresponding to the time required for the backup process. [Configuration 13] The control device further comprises: 13. The control device according to configuration 11 or 12, further comprising: setting, in the backup program, an amount (M) of information to be backed up during the free time in each of the cycles, based on the time required for the backup process and the free time. [Configuration 14] The backup process includes: A control device according to any one of configurations 1 to 13, comprising a differential backup (623) that holds copy information obtained by copying information in the storage unit, and then derives difference information between the copy information and the changed information each time the information in the storage unit is changed, and integrates one or more of the derived difference information with the copy information. [Configuration 15] The differential backup is 15. The control device according to configuration 14, wherein when the number of subsequent changes exceeds a threshold, the one or more pieces of difference information and the copy information are integrated. [Configuration 16] The differential backup is 16. The control device according to configuration 14 or 15, wherein when a ratio of an information amount of the one or more pieces of difference information to an information amount of the copy information exceeds a threshold, the one or more pieces of difference information and the copy information are integrated. [Configuration 17] A means (129) for displaying a UI showing an identifier (1651) of one or more pieces of backed up information; 17. The control device according to any one of configurations 1 to 16, further comprising: a means (127) for accepting a user operation for specifying information to be restored from the one or more pieces of backed up information. [Configuration 18] The control device of configuration 17, further comprising: associating an identifier of the one or more pieces of backed up information with a time (1652) at which the information was backed up. [Configuration 19] 19. The control device according to any one of configurations 1 to 18, wherein the memory unit has a volatile memory area (106) for storing the information. [Configuration 20] A program executed by a processor (102) included in a control device (100, 100A, 100B, 100C) for controlling an object (90), The control device includes a memory unit (106, 108) for storing information for controlling the object, When the program is executed, The processor, Detecting that the information in the storage unit has been changed; A program that, when the control device is operating, causes the control device to execute a backup process for the information stored in the storage unit in response to detection of a change in the information.
[0221] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not by the description of the embodiments described above, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]
[0222] 1 Control system, 3A, 3B, 3C process, 10 Network system, 11, 12, 13, 14, 110 Network, 70 Control cycle, 71 IO refresh, 72 Control calculation processing, 73 Free time, 90 Field device, 90A Notification frame, 90B Change notification frame, 90C Restore notification frame, 91 Header, 92 Body, 93 Type, 94 Destination, 95 Source, 101, 101A, 513 Timer, 102 Processor, 106 Main memory device, 116, 420, 516 Memory card, 120B, 206 Target information, 152 Scheduler program, 153 IO refresh program, 154 Control program, 155 Setting data, 156 Configuration data, 157 Learning program, 158 Model data, 159 Backup program, 160 Change management program, 161 Information management program, 162 backup notification program, 163 restore program, 164 restore processing program, 165 backup management information, 166 backup setting information, 167 reservation time, 170 backup management program, 172 restore command, 180 restore management program, 190 line management device, 280 HMI, 300 upper system, 380 manufacturing management device, 400 manufacturing execution system, 450 storage unit, 500 support device, 600 change management unit, 601 change detection unit, 602 change notification unit, 610 information management unit, 613 backup data, 620 backup management unit, 621 backup execution unit, 622 backup notification unit, 623 differential backup execution unit, 630 restore management unit, 631 restore execution unit, 632 restore notification unit, 640 scheduler, 1591 differential backup program, 1650 Change specific information, 1651 number, 1652 change time, 1653 group to be changed, 1654 change target, 1655 operation terminal, 1656 operator, 1657 backup execution status n1658 reason, E1 storage area, M unit information amount, N number of periods.
Claims
1. A control device for controlling an object, A storage unit for storing information for controlling the target; a change detection unit that detects that the information in the storage unit has been changed, When the change detection unit detects that the information in the storage unit has been changed during operation, the control device performs a backup process of the information stored in the storage unit; A plurality of the control devices are communicatively connected to a network configuration including the object; When each of the control devices detects that the information stored in the storage unit of the control device has been changed, the control device transmits a request to the other control devices via the network configuration to cause the other control devices to perform the backup process; The plurality of control devices are time-synchronized, During the operation, when the change detection unit of one of the plurality of control devices detects that information in the storage unit of the control device has been changed, each of the plurality of control devices performs a backup process of the information stored in the storage unit of the control device at a designated time based on a synchronized time; A control device, wherein when the change detection unit detects that information in the storage unit of the one control device has been changed, the one control device transmits a notification of the specified time to the other control devices.
2. The change detection unit The control device according to claim 1 , further comprising: a controller configured to detect, based on a user operation on the information stored in the storage unit, that the information has been changed.
3. The change detection unit The control device according to claim 1 , further comprising: a controller configured to detect whether the information stored in the storage unit has been changed based on a calculated value calculated from the information.
4. A control device as described in any one of claims 1 to 3, wherein the information stored in the memory unit includes at least one of a control program for controlling the target, configuration data for the control, and machine learning data related to the control.
5. The control device is communicatively connected to a network configuration including the object; The control device according to claim 1 , wherein the information stored in the memory unit includes network configuration data including identifiers of the control device and a device including the target that are connected to the network configuration.
6. the backup process includes a process of copying information from the storage unit and storing the copied information in a storage medium, The control device according to claim 1 , wherein the storage medium includes a storage medium provided in a host system connected to the control device via a network.
7. The plurality of control devices are time-synchronized, The control device according to claim 1 , wherein each of the plurality of control devices backs up the information in the backup process by associating the information with a time based on a synchronized time.
8. The control device further comprises: A processor; a scheduler that manages a plurality of programs to be executed by the processor in accordance with a priority within a predetermined period; The plurality of programs managed by the scheduler include a first program for a first process including the control process, the first program being a high-priority program executed by the processor in the period; a second program for a second process, the second program having a lower execution priority than the first program and executed in an idle time of the processor during the period; the first program includes a control program for controlling the target, the second program includes a backup program that performs the backup process; The scheduler A control device according to any one of claims 1 to 7, which causes the processor to execute the backup program during each of the free times of one or more cycles, the total length of the free time in each cycle corresponding to the time required for the backup processing.
9. The control device further comprises:
9. The control device according to claim 8, wherein a total length of free time in each period determines the one or more periods that correspond to a required time for the backup process.
10. The control device further comprises:
10. The control device according to claim 8, further comprising a setting for said backup program an amount of information to be backed up during said free time in each of said cycles, based on the time required for said backup process and said free time.
11. The backup process includes: A control device as described in any one of claims 1 to 10, which includes a differential backup that holds copied information obtained by copying information in the memory unit, and then derives difference information between the copied information and the changed information each time the information in the memory unit is changed, and integrates the derived one or more pieces of difference information with the copied information.
12. The differential backup is The control device according to claim 11 , further comprising: a controller configured to integrate the one or more pieces of difference information and the copy information when the number of subsequent changes exceeds a threshold value.
13. The differential backup is 13. The control device according to claim 11, wherein when a ratio of an information amount of the one or more pieces of difference information to an information amount of the copy information exceeds a threshold, the one or more pieces of difference information and the copy information are integrated.
14. a means for displaying a UI showing an identifier of one or more pieces of backed up information; The control device according to claim 1 , further comprising: a means for accepting a user operation for specifying information to be restored from the one or more pieces of backed up information.
15. The control device according to claim 14 , further comprising: a controller that associates with an identifier of the one or more pieces of backed-up information a time at which the information was backed up.
16. The control device according to claim 1 , wherein the storage unit has a volatile storage area for storing the information.
17. A control device for controlling an object, comprising: A storage unit for storing information for controlling the target; a change detection unit that detects that the information in the storage unit has been changed, When the change detection unit detects that the information in the storage unit has been changed during operation, the control device performs a backup process of the information stored in the storage unit; The control device further comprises: A processor; a scheduler that manages a plurality of programs to be executed by the processor in accordance with a priority within a predetermined period; The plurality of programs managed by the scheduler include a first program for a first process including the control process, the first program being a high-priority program executed by the processor in the period; a second program for a second process, the second program having a lower execution priority than the first program and executed in an idle time of the processor during the period; the first program includes a control program for controlling the target, the second program includes a backup program that performs the backup process; The scheduler causing the processor to execute the backup program during each free time of one or more cycles, the total length of the free time in each cycle corresponding to a required time for the backup process; The control device further comprises: a control device that sets, in the backup program, an amount of information to be backed up during the free time in each of the cycles, based on the time required for the backup process and the free time.
18. A control device for controlling an object, comprising: A storage unit for storing information for controlling the target; a change detection unit that detects that the information in the storage unit has been changed, When the change detection unit detects that the information in the storage unit has been changed during operation, the control device performs a backup process of the information stored in the storage unit; The backup process includes: a differential backup for storing copy information obtained by copying information in the storage unit, deriving difference information between the copy information and changed information each time the information in the storage unit is changed, and integrating the one or more pieces of difference information thus derived with the copy information, The differential backup is The control device integrates the one or more pieces of difference information and the copy information when the number of subsequent changes exceeds a threshold value.
19. A control device for controlling an object, comprising: A storage unit for storing information for controlling the target; a change detection unit that detects that the information in the storage unit has been changed, When the change detection unit detects that the information in the storage unit has been changed during operation, the control device performs a backup process of the information stored in the storage unit; The backup process includes: a differential backup for storing copy information obtained by copying information in the storage unit, deriving difference information between the copy information and changed information each time the information in the storage unit is changed, and integrating the one or more pieces of difference information thus derived with the copy information, The differential backup is a control device that integrates the one or more pieces of difference information with the copy information when a ratio of an information amount of the one or more pieces of difference information to an information amount of the copy information exceeds a threshold value.
Citation Information
Patent Citations
Systems and methods for synchronizing redundant controllers with minimal control disruption
JP2001527232A
Production facility maintenance system, control device for production facility and information processor
JP2005202774A
Control device and method for operating control device
JP2014146077A
FA system and control device
JP2014174616A
Programmable logic controller system and programmable logic controller
WO2014174546A1
Cited By
Systems and methods for evaluating configuration changes on a machine in a manufacturing line
US12717316B2
Systems and methods for evaluating configuration changes on a machine in a manufacturing line
US20230063452A1
