1. Field of the Invention
The disclosure relates to a process controller and an updating method thereof.
Priority is claimed on Japanese Patent Application No. 2014-008047, filed Jan. 20, 2014, the contents of which are incorporated herein by reference.
2. Description of Related Art
A process control system controlling various types of state quantity (for example, pressure, temperature, and flow quantity of fluid) is installed in a plant and a factory (hereinafter called simply “plant” as a generic name of them). Specifically, Japanese Patent No. 4399773 discloses that a controller (process controller) which is a core of the process control system collects detection results of sensors (for example, a flowmeter and a thermometer), the controller calculates a manipulation value of an actuator (for example, a valve) in accordance with the detection results, and the controller manipulates the actuator in accordance with the calculated manipulation value. By these processes, the various types of the state quantity described above are controlled.
Although the process control system is established by using a dedicated device for exclusive use, a recent process control system is being opened and often established by using a general-use device (a computer or a workstation) of which specifications are opened. In the process control system using the general-use device, same as a general information system, there is a need to switch over (update) a platform includes hardware, an operating system (OS), and so on. The platform is switched over so as to, for example, expand a function of the platform or correct a failure and weakness of the platform.
Although the process control system is often established singly, the recent process control system is often connected to another information system performing a production management or the like so as to improve productivity of the plant. In a case that the process control system is connected to another information system, there is a risk of external cyber-attacks. For the reason, it is important to switch over the platform continuously.
The process controller switches over the platform so as to shorten the downtime of a control performed by the control application as much as possible. Specifically, the platform of the process controller is switched over by the following procedures 1 to 4. “Old process controller” means a process controller used before the platform is switched over. “New process controller” means a process controller to be used after the platform is switched over.
1. Starting the new process controller so as to make the control application be settable.
2. Transferring a setting of the control application which had run in the old process controller to the new process controller.
3. Causing the old process controller to stop. (By this task, the network is disconnected, and the control application comes to a stop.)
4. Booting a control application in the new process controller.
In the procedures described above, the old process controller is caused to stop (procedure 3) before booting the control application in the new process controller (procedure 4). By these procedures, a competition of a plurality of same control applications is preventable. However, in a case of switching over the platform by the procedures 1 to 4, the control application is caused to stop running when the old process controller is caused to stop, the operation states of the old process controller (an operation state of the control application, an operation state of the operating system, a communication state, and so on) is not taken over by the new process controller.
In a case that the control application is booted in the new process controller without taking over the operation state, the control application must start an initializing task. For the reason, there is a possibility that the control operation is to be discontinuous. “The control operation is to be discontinuous” means, for example, that an operation to be performed intrinsically is not performed or that same operations are performed redundantly. In a case that the control operation is discontinuous, work-in-process is seriously damaged in accordance with characteristics thereof, and also there is a possibility that a facility which is a control object is damaged.
A process controller may include a first virtualizer configured to run in the first process controller, a first operating system configured to run on the first virtualizer, the first operating system transiting from a first state to a second state in a case that a control of an industrial process implemented in a plant is started, the first operating system transiting from the second state to the first state in a case that the control of the industrial process for one period ends, the first state being a state waiting for starting the control of the industrial process, and the second state being a state in which the control of the industrial process is performed, an application configured to run on the first operating system, the application performing the control of the industrial process at a constant period, and a saving unit configured to save information representing an inner state of the application in a case that the first operating system is in the first state, the information being necessary for restoring the application in a second process controller different from the first process controller.
The embodiments of the present invention will be now described herein with reference to illustrative preferred embodiments. Those skilled in the art will recognize that many alternative preferred embodiments can be accomplished using the teaching of the present invention and that the present invention is not limited to the preferred embodiments illustrated herein for explanatory purposes.
Object of some embodiments of the present invention is to provide a process controller and an updating method thereof, which can switch over the platform while continuing running the control application by taking over the operation states.
[Process Control System]
A controller 20a of the two controllers 20 shown in
The field devices 10 and controllers 20 (20a, 20b) are connected to a field network N1. The controllers 20 (20a, 20b) and the monitoring device 30 are connected to the control network N2. For example, the field network N1 is a wired network laid in a field of the plant, in which the process controller and the field devices communicates with each other by a stateless communication path. On the other hand, for example, the control network N2 is a wired network laid between the field of the plant and a monitoring room, in which the process controllers communicate with each other or the process controller and the monitoring device communicate with each other by a stateless communication path or a stateful communication path. The field network N1 and the control network N2 may be a wireless network.
“Stateless communication path” means a communication path in which communication start/end procedures are not performed and communication state control and management (for example, transmitting management) are not performed. In other words, “stateless communication path” means a communication path in which communication can be performed by another means without managing the communication state. On the other hand, “stateful communication path” means a communication path in which the communication start/end procedures are performed and the communication state control and management (for example, the transmitting management) are performed. In a case that a coherent communication is lost and cannot be recovered in the stateful communication path, the communication path is terminated at any of ends.
The field devices 10 are, for example, such as a sensor device (for example, a flowmeter and a temperature sensor), a valve device (for example, a flow control valve and an on-off valve), an actuator device (for example, a fan and a motor), and other devices installed in the field of the plant. To understand easily, as the field devices 10 installed in the plant, a sensor device 11 measuring flow quantity of fluid and a valve device 12 controlling (manipulating) the flow quantity of fluid are shown in
The field devices 10 operate in accordance with control data transmitted from the controller 20 via the field network N1. For example, in a case that a request to transmit the measurement data (data indicating a measurement result of the flow quantity of fluid) is transmitted from the controller 20 to the sensor device 11, the sensor device 11 transmits the measurement data to the controller 20 via the field network N1. In a case that the control data (data for controlling an aperture of the valve) is transmitted from the controller 20 to the valve device 12, the valve device 12 controls the aperture of the valve through which fluid flows based on the control data.
The controller 20 performs a periodic task about the industrial process control under monitoring of the monitoring device 30. “Periodic task” means a task performed at a constant period by the controller 20. For example, “periodic task” means a series of tasks of collecting a process value PV from the sensor device 11, receiving a setting value SV from the monitoring device 30, calculating a manipulation value MV, and transferring the manipulation value MV to the valve device 12. The function of the controller 20 is implemented by reading software into a computer and cooperation between the software and the hardware. Specific function implemented by the controllers 20 (20a, 20b) will be described later.
For example, the monitoring device 30 is implemented by a computer. A plant operator manipulates the monitoring device 30 so as to monitor the industrial process. Specifically, the monitoring device 30 monitors a control function of an application running in the controller 20 (detail will be described later). The plant operator instructs and manipulates the controller 20 in accordance with the monitoring result. The monitoring device 30 establishes a stateful communication path with the controller 20.
[Controller 20a]
The controller 20a includes a hardware HW1 including an MPU (Micro-Processing Unit), memory, and so on. The hardware HW1 executes installed programs so as to implement the function of the controller 20a. Real devices RD11 and RD12 are communication devices such as an NIC (Network Interface Card), I/O (Input/Output) module, and so on. The real device RD11 is connected to the field network N1, and the real device RD12 is connected to the control network N2.
A program for implementing a hypervisor 41 (virtualizer), a static operating system (OS) 42 (first operating system), a program for implementing a saving unit 43, and an operating system 45 (second operating system) are installed in the controller 20a. Functions implemented by these programs are functions fixedly-embedded in the controller 20a. Also, a program for implementing an application 44 and a program for implementing a communication relaying unit 46 are installed in the controller 20a. Functions implemented by these programs are to be moved to a controller 20b by switching over the platform of the controller 20a.
The hypervisor 41 enables the static operating system 42, the saving unit 43, and the application 44 to run independently of the operating system 45 and the communication relaying unit 46. The hypervisor 41 also enables the operating system 45 and the communication relaying unit 46 to run independently of the static operating system 42, the saving unit 43, and the application 44. The hypervisor 41 allocates hardware resources and relates the real devices RD11 and RD12 to virtual devices VD11 and VD12 respectively. The hypervisor 41 runs virtual machines VM11 and VM12 (virtualizer) in a parallel way.
The virtual machine VM11 is a virtual hardware in which the static operating system 42, the program for implementing saving unit 43, and the program for implementing an application 44 run. The virtual machine VM11 includes the virtual device VD11 relating to the real device RD11. The virtual machine VM12 is a virtual hardware in which the operating system 45 and the communication relaying unit 46 run. The virtual machine VM12 includes the virtual device VD12 relating to the real device RD12. That is, the hypervisor 41 manages the virtual machines VM11 and VM12 running virtually instead of the hardware HW1.
As shown in
The VM migration instruction receiving unit 41b receives an instruction (live migration instruction) so as to migrate an assigned virtual machine to another hypervisor. “Live migration” means a technology of migrating a place where the virtual machine runs. The live migration is performed by suspending the operation of the virtual machine, copying whole internal states of the virtual machine including a communication state, restarting the operation of the virtual machine in a destination virtual machine by using the copied internal states. It appears from the outside that the place where the virtual machine runs is migrated to another place without stopping and initializing. In the present embodiment, the live migration instruction is performed by the saving unit 43.
The static operating system 42 runs in the virtual machine VM11. The static operating system 42 provides a running environment of the saving unit 43 and the application 44. The static operating system 42 manages OS resource objects. The static operating system 42 is an operating system preliminarily allocating the OS resource objects necessary for running the saving unit 43 and the application 44. The preliminarily allocated OS resource objects include a shared memory, a task, semaphore, and a network connection, and so on. The allocation of the OS resource objects is performed by using a configurator (a tool for allocating the OS resource objects) before the static operating system 42 runs.
The static operating system 42 includes an initializing unit 42a initializing the static operating system 42. The initializing unit 42a initializes the static operating system 42 by executing tasks described below before the saving unit 43 and the application 44 run.
(a) Initializing the OS resource objects.
(b) Establishing the stateful communication path of the application 44.
The state of the static operating system 42 transits in accordance with an operation status of the controller 20a.
The OS unloaded state ST1 is a state immediately before the controller 20a is powered on, the hypervisor 41 and the virtual machine VM11 and VM12 are booted, and the static operating system 42 is loaded. The OS initialized state ST2 is a state in which the static operating system 42 is initialized and the application 44 can be started. After the static operating system 42 is loaded, when the static operating system 42 transits to the OS initialized state ST2 for the first time, the static operating system 42 runs the initializing unit 42a initializing the OS resource objects allocated by using a configurator, and establishes the stateful communication path.
The OS resource object being used state ST3 is a state in which the application 44 is executed and periodic tasks 44a included in the application 44 is in an executing state. The periodic tasks 44a are implemented as a software program. Specific examples of the periodic tasks 44a will be described later. In the state ST3, because the periodic tasks 44a start to use the OS resource objects in accordance with program of a periodic task, the static operating system 42 is in a transitional state in which an inner state of the static operating system 42 changes in accordance with contents of the periodic tasks. As shown in
The saving unit 43 saves information (snapshot) necessary for transferring the application 44 running in the controller 20a to the controller 20b, and the saving unit 43 transmits the saved snapshot to the controller 20b. The snapshot is a context representing an inner state of the running application 44 which is saved so as to keep the state of the application 44. By using the snapshot, an operation of the application 44 from when the snapshot is saved can be restored and the operation can be continued. For example, “a context representing an inner state when the snapshot is saved” is content in a memory area of the application 44. The snapshot includes an identifier of the communication path established by the application 44 so as to communicate with reference to a communication state.
The snapshot saving unit 43b creates and saves the snapshot in accordance with the switching over instruction transmitted from the switch-over-operation transmitting unit 43a at a timing detected by a saving timing detecting unit DT so that the controller 20b can take over the operation state of the application 44. The saving timing detecting unit DT monitors the operation of the application 44 and detects the timing when the snapshot saving unit 43b starts to run. In other words, the timing is when the periodic tasks 44a included in the application 44 end the periodic task for one period.
The snapshot transmitting unit 43c transmits the snapshot saved by the snapshot saving unit 43b to the restoring unit 53 of the controller 20b. The snapshot transmitting unit 43c is not necessarily disposed in the saving unit 43 if the snapshot can be transmitted to the restoring unit 53 of the controller 20b. For example, the snapshot transmitting unit 43c may be disposed in the static operating system 42 or the communicating unit 41a.
The application 44 runs in the static operating system 42, and the application 44 performs a control of the field devices 10 necessary for performing a process control. Specifically, the application 44 includes the periodic tasks 44a, and the application 44 performs the periodic task relating to the industrial process control described above. For example, the application 44 performs a task of collecting measurement data from the sensor device 11 at a constant period, a task of calculating control data for controlling the valve device 12 at a constant period, a task of transmitting the control data to the valve device 12 at a constant period, or the like.
The operating system 45 runs in the virtual machine VM12, and the operating system 45 provides a running environment of the communication relaying unit 46. There is a need that the operating system can establish a dynamic communication path so as to perform a task of taking over the communication which will be described later. Other than the static operating system 42, for example, a general operating system used by a personal computer and a workstation has the function.
The communication relaying unit 46 runs on the operating system 45. The communication relaying unit 46 takes over the communication by re-establishing the communication path between the application 44 and the communication relaying unit 46 as necessary while keeping the communication state of the stateful communication path between the communication relaying unit 46 and the monitoring device 30. The communication relaying unit 46 relays the communication between the application 44 and the monitoring device 30. By these tasks, the communication relaying unit 46 can perform a continuation of the communication between the application 44 and the monitoring device 30.
“A continuation of the communication” means that both ends of the communication path can continue the communication by “keeping the communication state” and “taking over the communication”. “Keeping the communication state” means that if one end (the communication relaying unit 46) of the communication path changes position, another end (the monitoring device 30) keeps the communication between the both ends without detecting the position change. “Taking over the communication” means that when the communication destination (the communication relaying unit 46) changes position, the communication path is re-created (re-established) and new communication state is created.
As shown in
For example, the function of keeping the communication state of the communication state keeping unit 46a and the function of taking over the communication path of the communication taking over unit 46b can be implemented by using a reverse proxy. The reverse proxy is different from a normal proxy (a proxy for collecting requests transmitted from clients inside of the proxy and communicating with an outer server by proxy). The reverse proxy is a proxy for collecting requests transmitted from clients outside of the proxy and communicating with an inner server by proxy. For example, in a case that the communication relaying unit 46 is implemented by a reverse proxy of HTTP (HyperText Transfer Protocol), the state of the stateful communication path between the application 44 and the monitoring device 30 can be kept by storing a sequence number of TCP (Transmission Control Protocol), IP address allocated to the communication path by each of the communication relaying unit 46 and the monitoring device 30, a port number, and so on.
[Controller 20b]
Same as the controller 20a, the controller 20b includes a hardware HW2 including an MPU, memory, and so on. The hardware HW2 executes an installed program so as to implement the function of the controller 20b. Real devices RD21 and RD22 are communication devices such as an NIC, I/O module, and so on. The real device RD21 is connected to the field network N1, and the real device RD22 is connected to the control network N2.
A program for implementing a hypervisor 51 (virtualizer), a static operating system 52 (third operating system), and a program for implementing the restoring unit 53 are installed in the controller 20b. Functions implemented by these programs are functions fixedly-embedded in the controller 20a. The hypervisor 51 runs virtual machines VM21 and VM22 (virtualizer) in a parallel way.
The hypervisor 51 performs the live migration in cooperation with the hypervisor 41 of the controller 20a, and the virtual machine VM12 running in the controller 20a is migrated as the virtual machine VM22. In other words, the operating system 45 and the communication relaying unit 46 of the controller 20a are migrated while the communication between the application 44 and the monitoring device 30 is taken over.
The virtual machine VM21 is a virtual hardware in which the static operating system 52 and the restoring unit 53 run. The virtual machine VM21 includes the virtual device VD21 relating to the real device RD21. The virtual machine VM22 is a virtual hardware in which the operating system 45 migrated from the controller 20a by the live migration and the communication relaying unit 46 run. The virtual machine VM22 includes the virtual device VD22 relating to the real device RD22.
As shown in
The static operating system 52 runs in the virtual machine VM21. The static operating system 52 provides a running environment of the restoring unit 53 and the restored application 44. The static operating system 52 manages the OS resource objects. Same as the static operating system 42 of the controller 20a, the static operating system 52 includes an initializing unit 52a, and a state of the static operating system 52 transits as shown in
The application 44 runs in the controller 20a, and the restoring unit 53 restores the application 44 in the controller 20b. Specifically, the restoring unit 53 restores the application 44 on the static operating system 52 of the controller 20b by using the snapshot obtained from the saving unit 43 of the controller 20a. As shown in
The snapshot receiving unit 53a receives the snapshot transmitted from the snapshot transmitting unit 43c of the saving unit 43. Same as the snapshot transmitting unit 43c, the snapshot receiving unit 53a is not necessarily included in the restoring unit 53 if the snapshot can be received from the saving unit 43. The application restoring unit 53b restores the application 44 on the static operating system 52 by using the snapshot received by the snapshot receiving unit 53a.
[Switching Over Method of the Controller]
Next, a switching over method (updating method) of the controller 20 will be described. An example of a method of switching over the controller 20a executing the periodic task for controlling the industrial process to the controller 20b is as follows. The OS resource objects described below are preliminarily allocated to the static operating system 42 of the controller 20a by using the configurator.
(a) Number of tasks and dependence relationship for implementing the saving unit 43 and application 44.
(b) Allocation amounts of such as memory area used by each of the tasks.
(c) Type and number of resources which are used and shared by the each of the tasks.
Examples of the type of the resources: a lock and a semaphore for implementing an exclusive task, a mailbox for implementing an inter-task communication, a shared memory, and so on.
(d) Number of network communication resources established by the static operating system 42, and a network communication setting.
The network communication setting is set to the OS resource objects of the network communication so that the static operating system 42 can accept the network communication. For example, in a case that TCP or UDP (User Datagram Protocol) is used as a communication protocol of a transport layer, there are settings described below.
(e) An identifier of the communication path (socket descriptor).
(f) A method of establishing the communication path.
Examples of the method: connect (actively connect) and listen (passively wait for the connection).
(g) A port number used for accepting a communication and communicating.
(h) A protocol of the transport layer used for communicating.
Examples of the protocol: TCP and UDP.
The stateful communication path via the communication relaying unit 46 is established between the application 44 of the controller 20a and the monitoring device 30.
In a case of switching over the controller 20a to the controller 20b, first, a setting operation for the new controller 20b is performed. Specifically, the controller 20b performs a setting operation for running the virtual machine VM 21 and VM22 and a setting operation of the OS initialized state ST2 of the static operating system 52.
In the former setting operation, for example, the hardware resources are allocated, and the real devices RD21 and RD22 are related to the virtual devices VD21 and VD22 respectively. In the latter setting operation, for example, the OS resource object is allocated by using the configurator so as to set the OS initialized state ST2. Specifically, in the latter setting operation, the OS resource objects including the OS resource objects allocated to the static operating system 42 is allocated to the static operating system 52 of the controller 20b.
Next, the controller 20b to which the setting operations described above has been performed is installed in the field, and the controller 20b is connected to the field network N1 and the control network N2. After that, when the controller 20b is powered on, an initializing task of the controller 20b is performed. In the initializing task, first, the hypervisor 51 is booted. The booted hypervisor 51 runs the virtual machine VM 21, and the static operating system 52 is loaded. Next, the static operating system 52 initializes the OS resource objects and sets the network in accordance with the contents of the setting operation described above.
Next, an initializing task performed by the initializing unit 52a waits for the establishment of the stateful communication path. After completion of these tasks described above, the initializing unit 52a boots the restoring unit 53. When the restoring unit 53 is booted, the snapshot receiving unit 53a (refer to
After that, when the switching over instruction (instruction for switching over the controller 20a to the controller 20b) is transmitted from an instruction apparatus (not shown), a switching over task of the controller 20 is performed. For example, the instruction apparatus is an engineering-workstation which is connected to the control network N2, and the instruction apparatus can instructs the controller 20 by using a communication unrelated to a continuation of the control operation. In a case that the monitoring device 30 can perform the communication unrelated to the continuation of the control operation, the monitoring device 30 may have the function of the instruction apparatus.
When the flowchart shown in
In a case that the snapshot saving unit 43b determines that the saving timing detecting unit DT does not detect the end timing of the periodic task for one period (NO at step S12), step S12 is repeated. On the other hand, in a case that the snapshot saving unit 43b determines that the saving timing detecting unit DT detects the end timing of the periodic task for one period (YES at step S12), the snapshot saving unit 43b creates and saves information (snapshot) necessary for restoring the application 44 running in the controller 20a (step S13: first step). Next, the saving unit 43 transmits an instruction for performing the live migration of the virtual machine VM12 in which the communication relaying unit 46 runs to the VM migration instruction receiving unit 41b (step S14).
Next, the snapshot transmitting unit 43c transmits the snapshot saved by the snapshot saving unit 43b (step S15). Specifically, in the controller 20a, the snapshot transmitting unit 43c reads the snapshot saved by the snapshot saving unit 43b, and the snapshot transmitting unit 43c transmits the snapshot to the restoring unit 53 of the controller 20b. In the controller 20b, the snapshot receiving unit 53a of the restoring unit 53 receives the snapshot transmitted from the snapshot transmitting unit 43c, and the snapshot receiving unit 53a transmits the snapshot to the application restoring unit 53b. After completion of transmitting the snapshot, the controller 20a shuts down the application 44 (step S16).
In parallel with the task described above, the hypervisor 41 of the controller 20a, to which the live migration is instructed, performs the live migration to the hypervisor 51 of the controller 20b. Specifically, the hypervisor 41 and 51 perform the live migration so that the virtual machine VM12 running in the controller 20a can run continuously as the virtual machine VM 22 running in the controller 20b. By performing the live migration, the communication relaying unit 46 running in the controller 20a is migrated to the controller 20b (step S17: third step).
Because the communication relaying unit 46 which had run in the controller 20a is migrated to the controller 20b while the communication state is kept, the stateful communication path established between the communication state keeping unit 46a and the monitoring device 30 is not terminated. After completion of the live migration, the controller 20a shuts down the communication relaying unit 46 (step S18).
After that, the communication relaying unit 46 migrated to the controller 20b performs a task of re-establishing the stateful communication between the application 44 restored in the controller 20b and the monitoring device 30 (step S19). Specifically, the communication taking over unit 46b migrated to the controller 20b performs a task of re-establishing the communication path between the application 44 restored in the controller 20b and the monitoring device 30. More specifically, the communication taking over unit 46b connects to the port of the static operating system 52 waiting for the establishment of the communication path in accordance with a predetermined network setting. The port number of the port connected by the communication taking over unit 46b is same as the number of the port of the communication path which has been already established and connected to the monitoring device 30. After the connection, the initializing unit 52a of the static operating system 52 accepts the connection from the communication taking over unit 46b, and the initializing unit 52a establishes the communication path connected to the application 44 restored in the controller 20b. Because an identifier of the established communication path is allocated fixedly in accordance with the network setting described above, there is no need to update the identifier of the communication path of the application 44 restored in the controller 20b.
By establishing the communication path described above, the static operating system 52 transits to the OS initialized state ST2, the initializing task performed by the initializing unit 52a is completed. After completion of the initializing task, the snapshot is extracted, and the application 44 which had run in the controller 20a is restored in the controller 20b (step S20: second step). Specifically, the application restoring unit 53b of the restoring unit 53 included in the controller 20b reflects the snapshot in a memory area of the static operating system 52 so as to restore the state of the application 44. By these tasks, the state of the application 44 which had run in the controller 20a is reflected, and the periodic tasks 44a are restored.
In the sequence of the tasks from when the snapshot is created and saved (step S13: first step) to when the snapshot is extracted and the application 44 is restored (step S20: second step), the static operating system 52 does not need to take over the state of the static operating system 42. It is because the state of the static operating system 42 and the state of the static operating system 52 do not change from the OS initialized state ST2 during the sequence of the tasks.
After restoring the application 44 on the static operating system 52, the periodic tasks 44a of the application 44 restart automatically at the timing of starting the periodic task for next one period. By these tasks, the controller 20a is switched over to the controller 20b while the application 44 is running.
On the other hand, the application 44 runs on the static operating system 52 in the controller 20b, and the virtual machine VM12 which had run in the controller 20a runs as the virtual machine VM22. As described above, the application 44 is restored in the controller 20b so as to continue the operation, and the stateful communication path connected to the monitoring device 30 is not terminated. In the present embodiment, the controller 20 can be switched while continuing running the application 44 and keeping the communication path.
The dynamic operating system is an operating system capable of allocating the OS resource objects in each time during executing an application. Because the allocation of the OS resource objects is determined by the application, differing from the static operating system of the first embodiment, the OS resource objects are not preliminarily allocated by using the configurator.
[Controller 20c]
The controller 20c includes a dynamic operating system 61, an application 63 and a communication relaying unit 64 instead of the static operating system 42, the application 44, and the communication relaying unit 46 of the controller 20a shown in
The middleware 62 is disposed between the dynamic operating system 61 and the application 63, and the middleware 62 establishes the communication path in place of the application 63. In a case that the middleware 62 establishes the communication path, the middleware 62 converts the communication performed by the application 63 and transmits it via the communication relaying unit 64. For example, the middleware 62 is implemented as a wrapper of a socket communication library.
The application 63 runs on the middleware 62 on the dynamic operating system 61. Same as the application 44 shown in
The initializing unit 63b initializes the dynamic operating system 61 by executing an initializing task same as the initializing unit 42a of the static operating system 42 shown in
The periodic tasks 63a perform same as the periodic tasks 44a of the application 44 shown in
Same as the communication relaying unit 46 shown in
However, the communication taking over unit 64b includes a database DB storing information indicating a relation between a first descriptor and a second descriptor. The database DB is created in accordance with the initializing task performed by the initializing unit 63b (described later). The database DB is used for relaying the communication between the application 63 and the monitoring device 30 and re-establishing the communication path. The first descriptor is a descriptor on the application 63, and the first descriptor is a descriptor of the established communication path connected to the application 63. The second descriptor is a descriptor on the communication state keeping unit 64a, and the second descriptor is a descriptor of the established stateful communication path connected to the monitoring device 30. Although information of both ends of the communication path is determined dynamically in the initializing unit 63b, the initializing unit 63b cannot be re-operated (described later). For the reason, external functions of the initializing unit 63b relays and re-establishes the communication by using the first and second descriptors instead of the information of both ends of the communication path. Therefore, the database DB is created.
[Controller 20d]
The controller 20d has a dynamic operating system 71 instead of the static operating system 52 of the controller 20b shown in
The middleware 72 is disposed between the dynamic operating system 71 and the application 63, and the middleware 72 establishes the communication path in place of the application 63. Same as the middleware 62, in a case that the middleware 72 establishes the communication path, the middleware 72 converts the communication performed by the application 63 and transmits it via the communication relaying unit 64.
[Switching Over Method of the Controller]
The method of switching over the controller 20c to the controller 20d is basically same as the method of switching over the controller 20a to the controller 20b described in the first embodiment. That is, an operation of setting the new controller 20d, an operation of installing the controller 20d in the field, and an operation of connecting the controller 20d to the field network N1 and the control network N2 are performed sequentially. After the controller 20d is powered on, a switching over task of the controller 20 is performed by transmitting the switching over instruction (instruction for switching over the controller 20c to the controller 20d) from an instruction apparatus (not shown) to the controller 20c. Because the task of switching over the controller 20 is performed basically according to the flowchart shown in
The middleware 72 and the communication taking over unit 64b migrated to the virtual machine VM22 take over the communication so that the communication can be continued. In a case that the initializing unit 63b runs after restoring the application 63, the state of the restored application 63 is initialized again. For the reason, the communication cannot be taken over by running the initializing unit 63b as described in the first embodiment.
The middleware 72 and the communication taking over unit 64b refer to the entry of the database DB so that the communication can be taken over. The relation between the first descriptor and the second descriptor is described in the entry of the database DB. Therefore, if the middleware 72 relays the communication according to the first descriptor on the application 63 migrated to the virtual machine VM 21, and if the communication taking over unit 64b relays the communication according to the second descriptor on the communication state keeping unit 64a, the communication can be taken over. At this time, an arbitrary communication path is preliminarily re-established between the middleware 72 and the communication taking over unit 64b, in which communication data and the information of the first and second descriptors can be communicated by the communicating unit 51a.
Even if the controller is switched over, the entry of the database DB can be used so as to take over the communication without updating. It is because the second descriptor is held by the communication state keeping unit 64a, the first descriptor is held in the memory area of the application 63, and the first and second descriptors are taken over by the new controller when the controller switched over.
In the first embodiment described above, the application 44 and the communication relaying unit 46 which had run in the controller 20a are migrated to the other controller 20b. Also, in the second embodiment described above, the application 63 and the communication relaying unit 64 which had run in the controller 20c are migrated to the other controller 20d. On the other hand, in the present embodiment, the application 44 is migrated in the controller 20e.
As shown in
In the controller 20e, by these tasks same as the first embodiment, the application 44 running on the static operating system 42 can be restored on the static operating system 52. Because the running of the communication relaying unit 46 is continued before and after restoring the application 44, there is no need to migrate the communication relaying unit 46. In a case of updating the static operating system (for example, version upgrade), the controller 20e is useful. The present embodiment can be adapted to a controller using a dynamic operating system such as the controllers 20c and 20d shown in
By combining the first embodiment with the second embodiment, the initializing unit 42a of the static operating system 42 shown in
Although a process control apparatus, a process controller and an updating method thereof according to embodiments of the present invention have been described above, the present invention is not restricted to the above-described embodiments, and can be freely modified within the scope thereof. For example, although the foregoing descriptions of the embodiments have been examples in which a virtual environment that can run a plurality of operating systems or applications is implemented with the hypervisors, the means for implementing such a virtual environment is not restricted to being the hypervisor. For example, the above-noted virtual environment may be implemented with hardware.
Also, in the embodiments, although an example of the field devices 10 performing the digital communicating via the field network N1 have been described above, field devices transmitting and receiving analog signals may be used. In this case, an I/O node converting the signals (analog signals) transmitted or received by the field devices and the signals (digital signals) communicated via the field network N1 is connected to the field network N1. Further, the I/O node and the field device are connected to an analog transmission path (for example, a transmission line used for transmitting signals of “4 [mA] to 20 [mA].”
Also, in the embodiments described above, although the communication of the field network N1 is performed in the stateless communication path, and there is no need to keep the state of the communication, a stateful communication path may be used in the field network N1. In this case, the communication relaying unit 46 keeps the state of the communication in the field network N1.
The term “configured” is used to describe a component, unit or part of a device includes hardware and/or software that is constructed and/or programmed to carry out the desired function.
The term “unit” is used to describe a component, unit or part of a hardware and/or software that is constructed and/or programmed to carry out the desired function. Typical examples of the hardware may include, but are not limited to, a device and a circuit.
While preferred embodiments of the invention have been described and illustrated above, it should be understood that these are exemplary of the invention and are not to be considered as limiting. Additions, omissions, substitutions, and other modifications can be made without departing from the scope of the present invention. Accordingly, the invention is not to be considered as being limited by the foregoing description, and is only limited by the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2014-008047 | Jan 2014 | JP | national |