The present disclosure relates to a parameter copying method and a parameter copying device, which are applied to a duplex system in which MPU (Micro Processing Unit) and a main memory are duplicated and duplex operations on the hot standby system are performed.
In the controller of the field control system or the safety instrument system, in some cases the duplex operations on the hot standby system are performed to improve reliability of the operation. The hot standby system denotes the system in which the same process is executed in parallel by two sheets of CPU cards that are prepared on the control side and the standby side respectively. In order to execute the same process, it is needed that main memory images on the control side and the standby side should coincide with each other. Therefore, in starting the duplex operations, the process of copying into the main memory image (data) on the control side into the main memory image on the standby side is executed in order to cause the main memory images on both sides to coincide with each other. Such process is called “All Parameter Copy (APC)”.
[Patent Literature 1] JP-A-2006-146320
APC can be executed by using two functions described as follows.
This data equivalencing function denotes the function of performing the copy of the parameter when MPU on the control side non-cache reads the main memory on the control side and then non-cache writes the read contents into the main memory on the standby side in compliance with the software. This function copies the parameters bit by bit at free moments while executing the controlled operation. All necessary information on the main memory on the control side are copied on the main memory on the standby side by this function.
This mirrored writing function denotes the function of writing the control data into the main memory on the control side and also writing simultaneously the control data into the main memory on the standby side by the hardware when MPU on the control side updates the control data in accordance with the software. This function is performed in parallel with the data equivalencing function, and has a role to copy the data, which are updated by the controlled operation for the while that the copying is started by this data equivalencing function and then is ended, into the standby side.
In the existing circumstances, the process executed by this mirrored writing function imposes a heavy burden on MPU on the control side. Therefore, the copying made by the data equivalencing function per unit time must be executed bit by bit, and also a load of MPU must be suppressed by adjusting an amount of copy. As a result, it takes a long time (e.g., about 15 minute) to complete the process of APC.
However, the single operation state on the control side only is brought about during executing the process of APC. For this reason, when the fatal abnormality is caused such that MPU is stopped on the control side during the process of APC, the controller is stopped and the controlled operation cannot be continued. Accordingly, it is desired that, in order to raise an operating rate of the system, a time required for APC should be reduced as small as possible.
Exemplary embodiments of the present invention provide a parameter copying method and a parameter copying device, which are capable of reducing a process time in APC.
A parameter copying method applied to a duplex system in which MPU and a main memory are duplicated and duplex operations on a hot standby system are performed, according to an exemplary embodiment of the invention, includes steps of:
According to the parameter copying method, the data are written into the main memory of one MPU by the block write, and also the same data are written into the main memory of the other MPU by the block write on the basis of the mirrored write. Therefore, a process time in APC can be reduced.
The main memory corresponding to the one MPU and the main memory corresponding to the other MPU may have a cache access area and a non-cache access area in a same fashion respectively such that a cache coherency is ensured between both main memories, and the step of writing the data by the block write may be applied to the cache access areas of the main memory corresponding to the one MPU and the main memory corresponding to the other MPU.
The parameter copying method may includes a step of
A parameter copying device applied to a duplex system in which MPU and a main memory are duplicated and duplex operations on a hot standby system are performed, according to an exemplary embodiment of the invention, includes:
According to the parameter copying device, the data are written into the main memory of one MPU by the block write, and also the same data are written into the main memory of the other MPU by the block write on the basis of the mirrored write. Therefore, a process time in APC can be reduced.
According to the parameter copying method of the present invention, the data are written into the main memory of one MPU by the block write, and also the same data are written into the main memory of the other MPU by the block write on the basis of the mirrored write. Therefore, a process time in APC can be reduced.
According to the parameter copying device of the present invention, the data are written into the main memory of one MPU by the block write, and also the same data are written into the main memory of the other MPU by the block write on the basis of the mirrored write. Therefore, a process time in APC can be reduced.
Other features and advantages may be apparent from the following detailed description, the accompanying drawings and the claims.
An embodiment of a parameter copying method according to the present invention will be explained hereinafter.
As shown in
A MPU 11A, a main memory 12A, and a gate array 13A are implemented in the CPU card 1A. Also, like the CPU card 1A, a MPU 11B, a main memory 12B, and a gate array 13B are implemented in the CPU card 1B.
Also, the gate array 13A of the CPU card 1A and the gate array 13B of the CPU card 1B are connected mutually by a high-speed serial bus 16.
The same process is executed in parallel in the CPU card 1A and the CPU card 1B while the duplex operations are performed by the hot standby system. Also, the data in the main memory 12A coincide with the data in the main memory 12B at this time.
Next, a process of the all parameter copy (APC) will be explained hereunder.
In the data equivalencing function in the parameter copying method of the present embodiment, a burst transfer by using the high-speed serial bus 16 is utilized. Since the burst transfer by using the high-speed serial bus 16 is performed by a block writing process from a cache memory to the main memory, a main memory area of the object must be put on the cache memory. Therefore, a division between an area in which a cache access is executed and an area in which a non-cache access is executed must be made clearly as a memory arrangement on the main memory, and a cache coherency between the main memory 12A and the main memory 12B must be kept.
For this purpose, as shown in
(Step #1): The MPU 11A on the control side cache reads the data in the main memory 12A in accordance with the software. In other words, the MPU 11A on the control side reads the data in the cache access area 12a of the main memory 12A.
(Step #2): The MPU 11A cache writes the value of the read data in the cache access area 12a of the main memory 12A as it is. In other words, the MPU 11A writes the value of the read data in the cache access area 12a of the main memory 12A as it is into a cache memory 14A. As a result, although no change is made actually in the data, a state of the cache memory 14A is set to “valid” and “dirty”.
(Step #3): Then, a block write into the cache access area 12a of the main memory 12A is produced by a cache replace, and simultaneously a block write into the cache access area 12a of the main memory 12B of the CPU card 1B on the standby side is made on the basis of the mirrored write via the high-speed serial bus 16.
The cache memory 14A and the cache memory 14B are managed in unit of line (e.g., data of one cache line is 32 byte). Therefore, when the cache write of the data (Step #2) is applied to one word in the cache line, the data of one line is made the object of the block write. For example, if a word is 4 Byte and data of one line is 32 Byte, a transfer capability is increased to eight times in contrast to the normal transfer in unit of word.
The process using the data equivalencing function is executed at free moments while executing the controlled operation. However, since a large amount of data can be transferred/copied by one block write, the data can be copied effectively in a short time. According to such process, all information in the cache access area 12a out of the necessary information on the main memory 12A are copied in the main memory 12B.
The mirrored writing function is the function of writing the data into the main memory 12A on the control side and simultaneously writing the data into the main memory 12B on the standby side by the hardware when the MPU 11A on the control side updates the control data in accordance with the software. This function is operated in parallel with the data equivalencing function, and has the role to copy the data, which are updated by the controlled operation for the while that the copying is started by this data equivalencing function and then is ended, into the standby side. According to the mirrored writing function, the copy of data into the non-cache access area 12b is executed.
In this manner, according to the parameter copying method of the present embodiment, when the block write is produced by the cache replace on the control side on the basis of the data equivalencing function, the burst transfer by using the high-speed serial bus 16 is executed. Therefore, a process time in APC can be reduced not to bring about an increase of the load of MPU. As a result, an operating rate of the system can be raised.
The application of the present invention is not limited to the above embodiment. The present invention is widely applied to the parameter copying method and the parameter copying device, which are applied to the duplex system in which the MPU and the main memory are duplicated and the duplex operations on the hot standby system are performed.
Number | Date | Country | Kind |
---|---|---|---|
2009-023413 | Feb 2009 | JP | national |