This application claims priority from Japanese Patent Application No. 2009-025122, filed on Feb. 5, 2009, the entire contents of which are incorporated by reference herein.
1. Technical Field
The present disclosure relates to a duplexed field controller. More particularly, the present disclosure relates to a duplexed field controller having two control units between which the control authority is switchable.
2. Related Art
According to a field controller in the related art, the same processing is simultaneously executed using two CPUs between which the control authority is switchable. When an abnormality occurs at a control side CPU, the control authority is shifted to a standby side CPU. With such duplexing CPU, the reliability of control can be significantly improved (see e.g., JP-A-2006-276958).
Also, in the duplexed field controller, since the continuity of control is required even at the switching of the control authority, it is desired to minimize the time during which control is intermitted. Moreover, the increasing control scan speed can be handled by smoothing the switching of the control authority.
Exemplary embodiments of the present invention address the above disadvantages and other disadvantages not described above. However, the present invention is not required to overcome the disadvantages described above, and thus, an exemplary embodiment of the present invention may not overcome any of the problems described above.
Accordingly, it is an aspect of the present invention to provide a duplexed field controller capable of smoothly switching the control authority.
According to one or more illustrative aspects of the present invention, there is provided a duplexed field controller. The duplexed field controller includes: first and second control units between which a control authority is switchable; a first application clock that is updated based on a reference clock so as to define a timing of an application operation of the first control unit; a second application clock that is updated based on the reference clock so as to define a timing of an application operation of the second control unit; and an update control unit that bypasses the first update of the second application clock after switching of the control authority, if the first application clock is ahead of the second application clock when the control authority is switched from the first control unit to the second control unit.
Other aspects of the invention will be apparent from the following description, the drawings and the claims.
Hereinafter, an exemplary embodiment of the duplexed field controller according to the present invention will be now described with reference to
As shown in
The operation monitor 3 is provided with a network clock 31 that defines the network time of the control network 5. All the devices connected to the control network 5 execute control processing according to the network time defined by the network clock 31.
As shown in
The control unit 21 is provided with the application clock 21a that defines the execution timing of the application. The application clock 21a is updated by receiving a timer clock (Tick) generated by the network clock 22. The control side CPU updates the application clock 21a based on the timer clock (Tick) generated by its own network clock 22. The timer clock (Tick) is transferred from the control side CPU to the standby side CPU, and the standby side CPU updates the application clock 21a based on the timer clock (Tick) transferred from the control side. With such a procedure, controls at the CPU 2A and the CPU 2B and communications between the CPUs (a communication for data exchange, a communication for abnormality detection by verification or the like) are synchronized.
In
At step S1 of
At step S2, it is determined whether the timer clock (Tick) of the CPU 2A is ahead of the timer clock (Tick) of the CPU 2B or not. If YES, the process goes to step S3. On the other hand, if NO, the process goes to step S4.
At step S3, time counting for the next timer clock (Tick) is bypassed, and the process returns to step S1.
On the other hand, at step S4, the application clock 21a is updated by time counting, and the process returns to step S1.
On the other hand,
With the above-described control, counting omission and double counting of the application clock can be prevented. Therefore, the accuracy of the application clock can be improved from the jitter corresponding to the cycle (for example, 10 ms) of the timer clock (Tick) to an accuracy (for example, about ±2 ms) equal to that of the network clocks of the CPUs.
For example, when the cycle of the control scan is about 50 ms, the scan jitter is about ±2 ms (=±4%), and the influence on the controllability can be suppressed by reduction in jitter.
Moreover, even in the case of a control cycle whose scan cycle is about 10 ms which is equal to the cycle of the timer clock (Tick), scan cycle omission can be prevented. Consequently, control with such a short scan cycle is possible.
While the present invention has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. It is aimed, therefore, to cover in the appended claim all such changes and modifications as fall within the true spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2009-025122 | Feb 2009 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
4674036 | Conforti | Jun 1987 | A |
5918040 | Jarvis | Jun 1999 | A |
6633989 | Hollins | Oct 2003 | B1 |
6832326 | Kubo et al. | Dec 2004 | B2 |
7058838 | Xu | Jun 2006 | B2 |
20020019951 | Kubo et al. | Feb 2002 | A1 |
20040117682 | Xu | Jun 2004 | A1 |
20080031283 | Curran-Gray et al. | Feb 2008 | A1 |
20100058095 | Malek | Mar 2010 | A1 |
Number | Date | Country |
---|---|---|
19625195 | Jan 1998 | DE |
0 316 087 | May 1989 | EP |
11-178217 | Jul 1999 | JP |
2006-185308 | Jul 2006 | JP |
2006-276958 | Oct 2006 | JP |
Number | Date | Country | |
---|---|---|---|
20100198991 A1 | Aug 2010 | US |