PROGRAMMABLE LOGIC CONTROLLER, SLAVE DEVICE, AND DUPLEX SYSTEM
20180039248 ยท 2018-02-08
Assignee
Inventors
Cpc classification
G05B19/05
PHYSICS
G06F11/20
PHYSICS
International classification
G05B19/05
PHYSICS
Abstract
A programmable logic controller includes a state monitoring unit to monitor a state of another programmable logic controller that is a counterpart in the duplication, and a system switching control unit to transmit, to a slave device, status information including information indicating whether the programmable logic controller is a control system or a standby system, to receive the control data that is addressed to the programmable logic controller that is the control system and is transmitted from the slave device in a case where the programmable logic controller is the control system, and to switch the programmable logic controller to the control system when hindrance in the another programmable logic controller is detected in a case where the programmable logic controller is the standby system.
Claims
1.-4. (canceled)
5. A slave device controlled by one of two duplicate programmable logic controllers functioning as a control system on a basis of control data, the slave device comprising: a control data transmitter to periodically receive status information including information indicating whether a programmable logic controller is the control system or a standby system from both the two duplicate programmable logic controllers, and to transmit the control data to only one of the two duplicate programmable logic controllers functioning as the control system on a basis of information included in the status information.
6. A duplex system comprising: the slave device according to claim 5; a programmable logic controller to control the slave device by using control data received from the slave device when the programmable logic controller is a control system, the programmable logic controller being a duplicate of another programmable logic controller, wherein the programmable logic controller includes: a state monitor to monitor a state of the another programmable logic controller that is a counterpart in a duplication; and a system switching controller to transmit, to the slave device, status information including information indicating whether the programmable logic controller is the control system or a standby system, to receive the control data that is addressed to the programmable logic controller that is the control system and is transmitted from the slave device after system switching in a case where the programmable logic controller is the control system, and to switch the programmable logic controller to the control system when hindrance in the another programmable logic controller is detected in a case where the programmable logic controller is the standby system.
7. The duplex system according to claim 6, wherein the programmable logic controller transmits, to the slave device, the status information in a state included in a header portion of a frame.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
DESCRIPTION OF EMBODIMENT
[0018] Hereinafter, a programmable logic controller, a slave device, and a duplex system according to an embodiment of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited by this embodiment.
Embodiment
[0019]
[0020] Note that the configuration of the programmable logic controller 10.sub.1 is the same as that of the programmable logic controller 10.sub.2. Therefore, in the following description, only when it is necessary to distinguish these two from each other, they are written as the programmable logic controllers 10.sub.1 and 10.sub.2 so that they are distinguished from each other. For the descriptions of common matters where these two do not need to be distinguished from each other, they are written as the programmable logic controllers 10. The subscript 1 or 2 is attached to the reference symbol of constituent elements in the programmable logic controllers described below only when it is necessary to distinguish between a constituent element of the programmable logic controller 10.sub.1 and a constituent element of the programmable logic controller 10.sub.2.
[0021] The programmable logic controller 10 includes a system switching control unit 11, which controls switching of the control system and the standby system; and a state monitoring unit 12, which monitors the state of the programmable logic controller 10 that is the counterpart in the duplication.
[0022]
[0023] A central processing unit (CPU) can be used for the arithmetic device 21. A random access memory (RAM) can be used for the memory 22. A nonvolatile semiconductor memory can be used for the storage device 23. The system switching control unit 11 illustrated in
[0024] A system switching control unit 11.sub.1 periodically transmits, to the slave device 103, status information S1 including information indicating whether the programmable logic controller 10.sub.1 is the control system or the standby system. A system switching control unit 11.sub.2 periodically transmits, to the slave device 103, status information S2 including information indicating whether the programmable logic controller 10.sub.2 is the control system or the standby system.
[0025] As illustrated in
[0026]
[0027] A CPU can be used for the arithmetic device 41. A RAM can be used for the memory 42. A nonvolatile semiconductor memory can be used for the storage device 43. The control data storage unit 52 illustrated in
[0028]
[0029] When the programmable logic controller 10.sub.2 is the control system, the transmission destination of the control data in step S14 is the programmable logic controller 10.sub.2, and the programmable logic controller 10.sub.2 controls the slave device 103 in step S15.
[0030]
[0031] At time t2, the system switching control unit 11.sub.2 transmits, to the slave device 103, status information S2 including information indicating that the programmable logic controller 10.sub.2 is the control system. At time t3, the system switching control unit 11.sub.2 receives, from the slave device 103, the data C, which is control data. Therefore, after time t3, the programmable logic controller 10.sub.2 controls the slave device 103 by using the data C.
[0032] The duplex system according to the embodiment includes the programmable logic controllers 10 each including the state monitoring unit 12, which monitors the state of the other programmable logic controller 10 that is the counterpart in the duplication, and the system switching control unit 11, which transmits, to the slave device 103, status information including information indicating whether the programmable logic controller is the control system or the standby system, which, in a case where the programmable logic controller is the control system, receives control data that is addressed to the programmable logic controller that is the control system and is transmitted from the slave device 103, and which, in a case where the programmable logic controller is the standby system, switches the programmable logic controller to the control system when hindrance in the other programmable logic controller is detected. In addition, the duplex system according to the embodiment includes the slave device 103 including the control data transmission unit 53, which receives, from both the two duplicate programmable logic controllers 10, status information including information indicating whether the programmable logic controller is the control system or the standby system, and which transmits control data to one of the two duplicate programmable logic controllers 10 functioning as the control system on the basis of the information included in the status information. Therefore, while control of the slave device 103 is normally performed, the processing load of the programmable logic controller 10 that is the control system is not increased. In addition, the programmable logic controller that has been switched from the standby system to the control system does not control the slave device by using old data.
[0033] By using the duplex system according to the embodiment for controlling a manufacturing facility, it is possible to prevent the occurrence of a manufacturing defect caused by a master station controlling a slave station by using old data and to improve the yield of products. In addition, it is possible to prevent failures in a manufacturing facility caused by a master station controlling a slave station by using old data and to realize a longer life of the manufacturing facility.
[0034] In the above description, the duplicate programmable logic controllers 10.sub.1 and 10.sub.2 are connected to the slave device 103 via different networks 31 and 32, but the duplicate programmable logic controllers 10.sub.1 and 10.sub.2 may be connected to the slave device 103 via the same network.
[0035] The configurations described in the above embodiment shows examples of the content of the present invention, and they can be combined with other known techniques and can be omitted or changed partially without departing from the gist of the present invention.
REFERENCE SIGNS LIST
[0036] 10, 10.sub.1, 10.sub.2 programmable logic controller, 11, 11.sub.1, 11.sub.2 system switching control unit, 12, 12.sub.1, 12.sub.2 state monitoring unit, 21, 41 arithmetic device, 22, 42 memory, 23, 43 storage device, 24, 44 network communication device, 25 inter-device communication device, 31, 32, 33 network, 51 control data, 52 control data storage unit, 53 control data transmission unit, 103 slave device.