Programmable logic controller, CPU unit, control method and program
Patent Information
- Application Number
- DE112022005201
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2024-08-29
Smart Images

Figure DE112022005201T5_0000_ABST
Abstract
Description
Programmable logic controller, CPU unit, control method and program
[0001] The present disclosure relates to a programmable logic controller, a CPU unit, a control method, and a program.
[0002] Conventionally, factory automation (FA) has been practiced in manufacturing sites, and the devices and equipment in the factory are controlled by control devices such as programmable logic controllers (PLCs). In control systems using such control devices, it is necessary to quickly respond to any abnormalities that occur to prevent a decline in production capacity.
[0003] Patent Document 1 discloses a control system in which a user groups multiple devices controlled by a central processing unit (CPU) of a PLC according to control purposes using a support device connected to the PLC. Patent Document 1 discloses that a user can use the support device to set the behavior of the remaining devices in a group to which a device in which an abnormality has occurred belongs from among "stop operation," "degenerate operation," and "continue operation" depending on the nature of the abnormality.
[0004] Furthermore, Patent Document 2 discloses a substrate processing apparatus including a plurality of controllers that control a plurality of processing blocks and a main controller that manages the plurality of controllers. Patent Document 2 discloses that if one of the plurality of controllers fails, a user can operate the main controller to restart the remaining controllers, thereby enabling degenerate operation.
[0005] Furthermore, Patent Document 3 discloses a control system in which a plurality of controllers capable of executing control of external devices are connected to each other so as to be able to communicate with each other, and one controller can instruct the other controller to execute control of the external device. Patent Document 3 also discloses that a PLC, a motion controller, a numerical control controller, and a robot controller are mounted on a base unit, and that the PLC becomes a master controller when mounted in a predetermined mounting position.
[0006] JP 2018-200731 A JP 2015-156105 A Japanese Patent No. 4795260 A
[0007] In the control system described in Patent Document 1, if an abnormality occurs in one of the devices, operation can continue using the remaining devices, but if an abnormality occurs in the PLC CPU unit, operation cannot continue even if no abnormality has occurred in any of the devices.
[0008] On the other hand, the substrate processing apparatus described in Patent Document 2 is controlled by multiple controllers, so even if an abnormality occurs in one of the controllers, operation can continue with the remaining controllers. However, the substrate processing apparatus described in Patent Document 2 has a problem in that the remaining controllers must be restarted to continue operation, which causes the operation to be temporarily stopped. Furthermore, the substrate processing apparatus described in Patent Document 2 has a problem in that if an abnormality occurs in the main controller, operation cannot be continued even if no abnormality occurs in any of the controllers.
[0009] Similarly to Patent Document 2, the control system described in Patent Document 3 also suffers from the problem that if a PLC performing sequence control as a master controller fails, the remaining controllers stop, preventing the entire control system from continuing to operate. Specifically, a power supply monitoring IC (Integrated Circuit) installed inside the PLC detects a voltage drop in the internal power supply and outputs a reset signal to the remaining controllers attached to the base unit. As a result, not only does the failed PLC stop, but the remaining controllers also stop. Furthermore, in the control system described in Patent Document 3, multiple controllers can control each other. Therefore, even if a controller other than the PLC fails, the failed controller also outputs a reset signal to the remaining controllers, causing not only the failed controller but also the remaining controllers, including the PLC, to stop. As a result, the control system described in Patent Document 3 suffers from the problem that if an abnormality occurs in any of the multiple controllers, the remaining controllers also stop.
[0010] The present disclosure has been made in consideration of the above-described circumstances, and aims to enable the selection of whether to stop or continue the entire operation when an abnormality occurs.
[0011] To achieve the above object, the programmable logic controller according to the present disclosure allows a first CPU unit and a second CPU unit to independently control devices to be controlled. The programmable logic controller includes a selection unit that selects whether to stop operation of the second CPU unit when a voltage drop in the internal power supply of the first CPU unit is detected. The programmable logic controller also includes an operation control unit that stops operation of the second CPU unit when the selection unit selects to stop operation of the second CPU unit, but does not stop operation of the second CPU unit when the selection unit selects not to stop operation of the second CPU unit.
[0012] According to the present disclosure, when a voltage drop in the internal power supply of the first CPU unit is detected, if the selection to stop the operation of the second CPU unit is made, not only the first CPU unit but also the second CPU unit will stop operation, thereby halting operation. On the other hand, when a voltage drop in the internal power supply of the first CPU unit is detected, if the selection to stop the operation of the second CPU unit is not made, the second CPU unit will not stop operation, thereby continuing operation. Thus, the programmable logic controller can select between an "operation stop mode" in which the operation of all CPU units is stopped and overall operation is halted, and a "degenerate operation mode" in which the operation of CPU units that are not experiencing an abnormality is continued and overall operation is continued without pausing. Therefore, the programmable logic controller can select whether to stop or continue overall operation when an abnormality occurs.
[0013] FIG. 1 is a block diagram showing the configuration of a programmable logic controller according to a first embodiment of the present disclosure; FIG. 2 is a block diagram showing the functional configuration of a programmable logic controller according to the first embodiment; FIG. 3 is a block diagram showing the hardware configuration of each CPU unit according to the first embodiment; FIG. 4 is a diagram showing a communication circuit for a reset signal between each unit according to the first embodiment; FIG. 5 is a block diagram showing the configuration of a control system according to a second embodiment of the present disclosure;
[0014] Hereinafter, a programmable logic controller, a CPU unit, a control method, and a program according to embodiments of the present disclosure will be described in detail with reference to the drawings. Note that identical or corresponding parts in the drawings are designated by the same reference numerals. Also, hereinafter, "programmable logic controller" will be abbreviated as "PLC."
[0015] [First Embodiment] (PLC 1 According to First Embodiment) As shown in Fig. 1 , a PLC 1 according to a first embodiment of the present disclosure includes a base unit 10 to which multiple types of units are attached. The PLC 1 also includes a power supply unit 20 that supplies power to each unit via the attached base unit 10. The PLC 1 also includes a CPU (Central Processing Unit) unit 30 that performs FA (Factory Automation) control via the attached base unit 10. The PLC 1 also includes an I / O (Input / Output) unit 40 that inputs and outputs control signals between the CPU unit 30 and external devices and equipment via the attached base unit 10.
[0016] In recent years, FA control systems have been required to improve factory productivity by introducing new technologies such as the Internet of Things (IoT) and the use of big data to collect and analyze large amounts of data.
[0017] For example, FA control systems are increasingly being required to not only perform conventional sequence control, but also to collect, analyze, and utilize data from devices connected via a network during operation, such as device logs and device video logs.In particular, it is becoming increasingly important for control systems to control the above-mentioned data collection to collect and analyze data from multiple devices and devices during operation before, during, and after an abnormality occurs.
[0018] Furthermore, due to the globalization of the industrial product market, for example, production is increasingly taking place in multiple factories located far apart both domestically and internationally. For this reason, FA control systems are required to be able to perform remote monitoring control, enabling the status of machines and equipment at production sites to be checked from a remote office or other remote location, and to grasp the detailed situation when a problem occurs and take immediate action.
[0019] Furthermore, for example, safety control required to protect people, property, and the environment has traditionally been implemented as a separate system from the control system, but using a separate system not only increases capital investment costs, but also increases engineering costs due to differences in operability and separate program management. For this reason, FA control systems are being required to reduce these costs by integrating these separate systems to perform the above-mentioned safety control.
[0020] Therefore, in the PLC 1 used in the FA control system, the CPU unit 30 performs FA control such as sequence control, data collection control, remote monitoring control, and safety control on external devices and equipment via the I / O unit 40.
[0021] (Regarding the CPU unit 30 according to the first embodiment) The CPU unit 30 includes a first CPU unit 310, a second CPU unit 320, a third CPU unit 330, and a fourth CPU unit 340. The CPU unit 30 has a so-called redundant multi-CPU configuration in which control is distributed among the multiple CPU units 310, 320, 330, and 340. That is, each of the CPU units 310, 320, 330, and 340 does not function as a main controller that performs overall control of the PLC 1, but independently performs factory automation control of external devices and facilities. For example, each of the CPU units 310, 320, 330, and 340 independently performs one of the above-described sequence control, data collection control, remote monitoring control, and safety control, without performing overall control of the PLC 1.
[0022] The first CPU unit 310 is, for example, a CPU unit that performs sequence control. As shown in FIG. 2 , the first CPU unit 310 includes a first input / output control unit 311 as an example of an input / output control unit that controls input and output of control signals to and from the I / O unit 40. The first CPU unit 310 also includes a first voltage drop detection unit 312 as an example of a voltage drop detection unit that detects a voltage drop of the internal power supply. The first CPU unit 310 also includes a first reset signal output control unit 313 as an example of an operation control unit and output control unit that controls output of a reset signal as an example of an operation stop signal that can stop operation of the CPU unit. The first CPU unit 310 also includes a first reset signal acquisition unit 314 as an example of an acquisition unit that acquires the reset signal. The first CPU unit 310 also includes a first reset execution unit 315 as an example of an operation control unit and operation stop control unit that executes reset processing based on the acquired reset signal. The first CPU unit 310 also includes a first output selection unit 316 as an example of a selection unit and output selection unit that selects whether or not to output a reset signal to the other CPU units 320, 330, and 340.
[0023] The second CPU unit 320 is a CPU unit that controls, for example, data collection. The second CPU unit 320 includes a second input / output control unit 321 as an example of an input / output control unit similar to the first input / output control unit 311. The second CPU unit 320 includes a second voltage drop detection unit 322 as an example of a voltage drop detection unit similar to the first voltage drop detection unit 312. The second CPU unit 320 also includes a second reset signal output control unit 323 as an example of an operation control unit and an output control unit similar to the first reset signal output control unit 313. The second CPU unit 320 also includes a second reset signal acquisition unit 324 as an example of an acquisition unit similar to the first reset signal acquisition unit 314. The second CPU unit 320 also includes a second reset execution unit 325 as an example of an operation control unit and an operation stop control unit similar to the first reset execution unit 315. The second CPU unit 320 also includes a selector similar to the first output selection unit 316 and a second output selection unit 326 as an example of an output selection unit.
[0024] The third CPU unit 330 is a CPU unit that controls, for example, remote monitoring. The third CPU unit 330 includes a third input / output control unit 331, a third voltage drop detection unit 332, a third reset signal output control unit 333, a third reset signal acquisition unit 334, a third reset execution unit 335, and a third output selection unit 336, which are similar to the units 311 to 316 and 321 to 326 of the CPU units 310 and 320.
[0025] The fourth CPU unit 340 is, for example, a CPU unit that performs safety control. The fourth CPU unit 340 includes a fourth input / output control unit 341, a fourth voltage drop detection unit 342, a fourth reset signal output control unit 343, a fourth reset signal acquisition unit 344, a fourth reset execution unit 345, and a fourth output selection unit 346, which are similar to the units 311 to 316, 321 to 326, and 331 to 336 of the CPU units 310, 320, and 330.
[0026] (Regarding the I / O unit 40 according to the first embodiment) Returning to FIG. 1 , the I / O unit 40 includes a first input / output unit 410 that inputs and outputs control signals related to sequence control between the first CPU unit 310 and external devices and facilities. The I / O unit 40 also includes a second input / output unit 420 that inputs and outputs control signals related to data collection control between the second CPU unit 320 and external devices and facilities. The I / O unit 40 also includes a third input / output unit 430 that inputs and outputs control signals related to remote monitoring control between the third CPU unit 330 and external devices and facilities. The I / O unit 40 also includes a fourth input / output unit 440 that inputs and outputs control signals related to safety control between the fourth CPU unit 340 and external devices and facilities. The I / O unit 40 also includes a fifth input / output unit 450 that inputs and outputs control signals related to FA control between all of the CPU units 310, 320, 330, and 340 and external devices and facilities.
[0027] 3, each of the CPU units 310, 320, 330, and 340 includes a control unit 51 that executes processing in accordance with a control program 59. The control unit 51 includes a CPU (Central Processing Unit). In accordance with the control program 59, the control unit 51 functions as each of the input / output control units 311, 321, 331, and 341, each of the voltage drop detection units 312, 322, 332, and 342, and each of the reset execution units 315, 325, 335, and 345 shown in FIG.
[0028] 3, each of the CPU units 310, 320, 330, and 340 includes a main memory unit 52 into which a control program 59 is loaded and which is used as a work area for the control unit 51. The main memory unit 52 includes a RAM (Random Access Memory).
[0029] Each of the CPU units 310, 320, 330, and 340 also includes an external storage unit 53 that stores a control program 59 in advance. The external storage unit 53 supplies the control unit 51 with data to be stored by this program in accordance with instructions from the control unit 51, and stores the data supplied from the control unit 51. The external storage unit 53 includes a non-volatile memory such as a flash memory.
[0030] Each of the CPU units 310, 320, 330, and 340 also includes an operation unit 54 that is operated by a user. Input information is supplied to the control unit 51 via the operation unit 54. The operation unit 54 includes information input components such as a selector switch, which will be described later. The operation unit 54 functions as each of the output selection units 316, 326, 336, and 346 shown in FIG. 2 .
[0031] 3, each of the CPU units 310, 320, 330, and 340 includes a transmitter / receiver 56 for transmitting and receiving information. The transmitter / receiver 56 includes information communication components such as a communication network terminal device connected to the network and a wireless communication device. The transmitter / receiver 56 functions as each of the reset signal output control units 313, 323, 333, and 343 and each of the reset signal acquisition units 314, 324, 334, and 344 shown in FIG. 2.
[0032] Returning to FIG. 3, in each of the CPU units 310 , 320 , 330 , and 340 , the main memory unit 52 , the external memory unit 53 , the operation unit 54 , and the transmission / reception unit 56 are all connected to the control unit 51 via the internal bus 50 .
[0033] Each CPU unit 310, 320, 330, 340 realizes the functions of the above-mentioned sections 311 to 316, 321 to 326, 331 to 336, 341 to 346 shown in Figure 2 by the control section 51 using the main memory section 52, external memory section 53, operation section 54, and transmission / reception section 56 as resources.
[0034] For example, the first CPU unit 310 executes a first input / output control unit step as an example of an input / output control unit step executed by the first input / output control unit 311. Also, for example, the first CPU unit 310 executes a first voltage drop detection step as an example of a voltage drop detection step executed by the first voltage drop detection unit 312. Also, for example, the first CPU unit 310 executes a first reset signal output control step as an example of an operation control step and an output control step executed by the first reset signal output control unit 313. Also, for example, the first CPU unit 310 executes a first reset signal acquisition step as an example of an acquisition step executed by the first reset signal acquisition unit 314. Also, for example, the first CPU unit 310 executes a first reset execution step as an example of an operation control unit and operation stop control step executed by the first reset execution unit 315. Also, for example, the first CPU unit 310 executes a first output selection step as an example of a selection step and an output selection step executed by the first output selection unit 316.
[0035] Also, for example, the second CPU unit 320 executes a second input / output control unit step as an example of an input / output control unit step executed by the second input / output control unit 321. Also, for example, the second CPU unit 320 executes a second voltage drop detection step as an example of a voltage drop detection step executed by the second voltage drop detection unit 322. Also, for example, the second CPU unit 320 executes a second reset signal output control step as an example of an operation control step and an output control step executed by the second reset signal output control unit 323. Also, for example, the second CPU unit 320 executes a second reset signal acquisition step as an example of an acquisition step executed by the second reset signal acquisition unit 324. Also, for example, the second CPU unit 320 executes a second reset execution step as an example of an operation control step and an operation stop control step executed by the second reset execution unit 325. Also, for example, the second CPU unit 320 executes a second output selection step as an example of a selection step and an output selection step executed by the second output selection unit 326.
[0036] Furthermore, for example, the third CPU unit 330 executes a third input / output control unit step as an example of an input / output control unit step executed by the third input / output control unit 331. Further, for example, the third CPU unit 330 executes a third voltage drop detection step as an example of a voltage drop detection step executed by the third voltage drop detection unit 332. Further, for example, the third CPU unit 330 executes a third reset signal output control step as an example of an operation control step and an output control step executed by the third reset signal output control unit 333. Further, for example, the third CPU unit 330 executes a third reset signal acquisition step as an example of an acquisition step executed by the third reset signal acquisition unit 334. Further, for example, the third CPU unit 330 executes a third reset execution step as an example of an operation control step and an operation stop control step executed by the third reset execution unit 335. Further, for example, the third CPU unit 330 executes a third output selection step as an example of an output selection step executed by the third output selection unit 336.
[0037] Also, for example, the fourth CPU unit 340 executes a fourth input / output control unit step as an example of an input / output control unit step executed by the fourth input / output control unit 341. Also, for example, the fourth CPU unit 340 executes a fourth voltage drop detection step as an example of a voltage drop detection step executed by the fourth voltage drop detection unit 342. Also, for example, the fourth CPU unit 340 executes a fourth reset signal output control step as an example of an operation control step and an output control step executed by the fourth reset signal output control unit 343. Also, for example, the fourth CPU unit 340 executes a fourth reset signal acquisition step as an example of an acquisition step executed by the fourth reset signal acquisition unit 344. Also, for example, the fourth CPU unit 340 executes a fourth reset execution step as an example of an operation control step and an operation stop control step executed by the fourth reset execution unit 345. Also, for example, the fourth CPU unit 340 executes a fourth output selection step as an example of an output selection step executed by the fourth output selection unit 346.
[0038] (Details of the functional configuration of each CPU unit 310, 320, 330, 340 according to embodiment 1) Returning to Fig. 2 , the first input / output control unit 311 controls input and output of control signals to and from the first input / output unit 410, and also controls input and output of control signals to and from the fifth input / output unit 450. The first reset signal acquisition unit 314 acquires a reset signal output from the first CPU unit 310 or the other CPU units 320, 330, 340. The first reset execution unit 315 executes reset processing when the first reset signal acquisition unit 314 acquires a reset signal, and stops operation of the first CPU unit 310.
[0039] Here, transmission and reception of reset signals in the power supply unit 20 and each of the CPU units 310, 320, 330, 340 can be realized, for example, by the circuits shown in Figures 4 and 5. The functions of the first voltage drop detection unit 312 and the first reset signal output control unit 313 can be realized, for example, by a first power supply monitoring IC 317 as an example of an output unit shown in Figures 4 and 5. Furthermore, the function of the first output selection unit 316 can be realized, for example, by a first changeover switch 318 as an example of a changeover switch shown in Figures 4 and 5. The first changeover switch 318 is, for example, a so-called single-pole, double-throw switch that is provided on the exterior of the first CPU unit 310 and can be operated by the user.
[0040] 4 and 5 , the power supply unit 20 and each of the CPU units 310, 320, 330, and 340 are connected by a first communication line 501, and the potential of the first communication line 501 is +5V. The power supply unit 20 and the cathode of a first diode 502 are connected by a second communication line 503. The anode of the first diode 502 and the cathode of a Zener diode 504 are connected by a third communication line 505. The anode of the Zener diode 504 and the base of a transistor 506 are connected by a fourth communication line 507. The emitter of the transistor 506 is grounded, and the collector of the transistor 506 and each of the CPU units 310, 320, 330, and 340 are connected by a fifth communication line 508.
[0041] Furthermore, a first contact 509 of the second communication line 503 and the cathode of the second diode 510 are connected by a sixth communication line 511. Furthermore, an anode of the second diode 510 and a first terminal 512 of the first changeover switch 318 are connected by a seventh communication line 513. Furthermore, a second contact 514 of the second communication line 503 and a second terminal 515 of the first changeover switch 318 are connected by an eighth communication line 516. Furthermore, a third terminal 517 of the first circuit changeover switch 318 and a contact 518 of the communication line 500 of the internal circuit of the first CPU unit 310 are connected by a ninth communication line 519.
[0042] The first contact 520 of the first communication line 501 and one end of the first pull-up resistor 521 are connected by a tenth signal line 522. The other end of the first pull-up resistor 521 and a contact 523 of the seventh communication line 513 are connected by an eleventh signal line 524. The second contact 525 of the first communication line 501 and one end of the second pull-up resistor 526 are connected by a twelfth signal line 527. The other end of the second pull-up resistor 526 and a contact 528 of the third communication line 505 are connected by a thirteenth signal line 529. The third contact 530 of the first communication line 501 and one end of the third pull-up resistor 531 are connected by a fourteenth signal line 532. The other end of the third pull-up resistor 531 and a contact 533 of the fifth communication line 508 are connected by a fifteenth signal line 534. Furthermore, a contact point 535 of the fourth communication line 507 and one end of a fourth pull-up resistor 536 are connected by a sixteenth signal line 537, and the other end of the fourth pull-up resistor 536 is grounded.
[0043] Therefore, the power supply unit 20 and each of the CPU units 310, 320, 330, and 340 are electrically connected via the components 502 to 508. Therefore, when the power supply unit 20 fails and detects a voltage drop, the power supply unit 20 outputs a reset signal to each of the CPU units 310, 320, 330, and 340 via the components 502 to 508. Specifically, by changing the potential of the second communication line 503, the base potential of the transistor 506, which serves as a switching element, changes, causing current from each of the CPU units 310, 320, 330, and 340 to flow between the collector and emitter. Therefore, each of the CPU units 310, 320, 330, and 340 detects the output of the reset signal from the power supply unit 20 and executes a reset process. As a result, when the power supply unit 20 fails, all of the CPU units 310, 320, 330, and 340 stop operating, and transmission and reception of control signals with all of the input / output units 410 to 450 stops.
[0044] Now consider the case where the first CPU unit 310 fails. In this case, as shown by the arrow in Figure 5, when the first power supply monitoring IC 317 detects a voltage drop in the internal power supply of the first CPU unit 310, it outputs a reset signal to the control unit 51 of the first CPU unit 310 via the communication line 500. Therefore, in the failed first CPU unit 310, the first reset signal acquisition unit 314 acquires the reset signal, and the first reset execution unit 315 executes a reset process to stop operation.
[0045] At this time, when the second terminal 515 and the third terminal 517 of the first changeover switch 318 are connected, the first changeover switch 318 and the second communication line 503 are connected by the eighth communication line 516, as shown in Fig. 4. Therefore, when the first power supply monitoring IC 317 outputs a reset signal to the first CPU unit 310 via the communication line 500, as shown by the arrows in Fig. 4, it also outputs the reset signal to the remaining CPU units 320, 330, and 340 via the components 519, 517, 515, 516, and 502 to 508. Therefore, the CPU units 310, 320, 330, and 340 acquire the reset signal, execute a reset process, and stop operating, just as when a reset signal is output from the power supply unit 20. As a result, when the second terminal 515 and the third terminal 517 of the first changeover switch 318 are connected, all CPU units 310, 320, 330, 340, including the failed first CPU unit 310, stop operating, and the sending and receiving of control signals with all input / output units 410 to 450 stops.
[0046] On the other hand, when the first terminal 512 and the third terminal 517 of the first changeover switch 318 are connected, as shown in FIG. 5 , the first power supply monitoring IC 317 has components 510, 524, and 521 connected between the first changeover switch 318 and the second communication path. Therefore, unlike the circuit shown in FIG. 4 , even if the first power supply monitoring IC 317 outputs a reset signal to the first CPU unit 310 via the communication line 500, as indicated by the arrows in FIG. 5 , the reset signal is not output to the remaining CPU units 320, 330, and 340. Specifically, the potential of the second communication line 503 cannot be changed, and the base potential of the switching element transistor 506 does not change. Therefore, the failed first CPU unit 310 executes a reset process, while the remaining CPU units 320, 330, and 340 do not execute a reset process. As a result, when the first terminal 512 and the third terminal 517 of the first changeover switch 318 are connected, only the failed first CPU unit 310 stops operating, while the remaining CPU units 320, 330, and 340 can continue operating without pausing temporarily. Therefore, only the transmission and reception of control signals between the failed first CPU unit 310 and the first input / output unit 410 stops, while the transmission and reception of control signals between the remaining CPU units 320, 330, and 340 and the remaining input / output units 420 to 450 continues.
[0047] Regarding the components 321 to 325 of the second CPU unit 320, the “first CPU unit 310” will be referred to as the “second CPU unit 320”, the “first input / output control unit 311” will be referred to as the “second input / output control unit 321”, the “first voltage drop detection unit 312” will be referred to as the “second voltage drop detection unit 322”, the “first reset signal output control unit 313” will be referred to as the “second reset signal output control unit 323”, the “first reset signal acquisition unit 314” will be referred to as the “second reset signal acquisition unit 324”, and the “first reset execution unit 315” will be referred to as the “second reset execution unit 326”. 325," "first output selection unit 316" as "second output selection unit 326," "first power supply monitoring IC 317" as "second power supply monitoring IC 327," "first changeover switch 318" as "second changeover switch 328," "CPU units 320, 330, 340" as "CPU units 310, 330, 340," "first input / output unit 410" as "second input / output unit 420," and "input / output units 420 to 450" as "input / output units 410, 430 to 450" would result in the same explanation as above. Therefore, in order to avoid redundant explanation, detailed explanation will be omitted.
[0048] Similarly, for each of the sections 331 to 335 of the third CPU unit 330, the “first CPU unit 310” is referred to as the “third CPU unit 330”, the “first input / output control section 311” is referred to as the “third input / output control section 331”, the “first voltage drop detection section 312” is referred to as the “third voltage drop detection section 332”, the “first reset signal output control section 313” is referred to as the “third reset signal output control section 333”, the “first reset signal acquisition section 314” is referred to as the “third reset signal acquisition section 334”, and the “first reset execution section 315” is referred to as the “third reset execution section 335”. 335," "first output selection unit 316" as "third output selection unit 336," "first power supply monitoring IC 317" as "third power supply monitoring IC 337," "first changeover switch 318" as "third changeover switch 338," "CPU units 320, 330, 340" as "CPU units 310, 320, 340," "first input / output unit 410" as "third input / output unit 430," and "input / output units 420 to 450" as "input / output units 410, 420, 440, 450" would result in the same explanation as above. Therefore, in order to avoid redundant explanation, detailed explanation will be omitted.
[0049] Similarly, for each of the sections 341 to 345 of the fourth CPU unit 340, the “first CPU unit 310” is referred to as the “fourth CPU unit 340”, the “first input / output control section 311” is referred to as the “fourth input / output control section 341”, the “first voltage drop detection section 312” is referred to as the “fourth voltage drop detection section 342”, the “first reset signal output control section 313” is referred to as the “fourth reset signal output control section 343”, the “first reset signal acquisition section 314” is referred to as the “fourth reset signal acquisition section 344”, and the “first reset execution section 315” is referred to as the “fourth reset execution section 345”. The same explanation as above can be obtained by replacing "row section 345," "first output selection section 316" with "fourth output selection section 346," "first power supply monitoring IC 317" with "fourth power supply monitoring IC 347," "first changeover switch 318" with "fourth changeover switch 348," "CPU units 320, 330, 340" with "CPU units 310, 320, 330," "first input / output unit 410" with "fourth input / output unit 440," and "input / output units 420 to 450" with "input / output units 410 to 430, 450." Therefore, in order to avoid redundant explanation, detailed explanation will be omitted.
[0050] As described above, according to the PLC 1 of this embodiment, each CPU unit 310, 320, 330, 340 controls the input and output of control signals to and from each input and output unit 410 to 450 using each input and output control unit 311, 321, 331, 341, making it possible to perform FA control of external devices and facilities independently of each other.
[0051] In the first CPU unit 310, a first voltage drop detection unit 312 detects a voltage drop in the internal power supply, and a first reset signal output control unit 313 outputs a reset signal. A first reset signal acquisition unit 314 acquires the reset signals output from the CPU units 310, 320, 330, and 340, and a first reset execution unit 315 executes a reset process based on the acquired reset signals to stop the operation of the first CPU unit 310. A first output selection unit 316 selects whether to output a reset signal to the other CPU units 320, 330, and 340, thereby selecting whether to stop the operation of the other CPU units 320, 330, and 340.
[0052] When the first output selection unit 316 selects to output a reset signal, the first reset signal output control unit 313 also outputs a reset signal to the other CPU units 320, 330, and 340 to stop their operation. On the other hand, when the first output selection unit 316 selects not to output a reset signal, the first reset signal output control unit 313 does not output a reset signal to the other CPU units 320, 330, and 340 to stop their operation.
[0053] Furthermore, the remaining CPU units 320, 330, and 340 have the same sections 322 to 326, 332 to 336, and 342 to 346 as the sections 312 to 316 of the first CPU unit 310.
[0054] In this way, the PLC 1 according to this embodiment stops operation if, for example, the first CPU unit 310 in which an abnormality has occurred has selected to output a reset signal to the other CPU units 320, 330, and 340, as the other CPU units 320, 330, and 340 also stop operating. On the other hand, the PLC 1 according to this embodiment continues operation if the first CPU unit 310 in which an abnormality has occurred has not selected to output a reset signal to the other CPU units 320, 330, and 340, as the other CPU units 320, 330, and 340 do not stop operating.
[0055] Therefore, the PLC 1 according to this embodiment can select, by the above selection in the first CPU unit 310 in which an abnormality has occurred, between an "operation stop mode" in which the operation of all CPU units 310, 320, 330, and 340 is stopped and the operation of the entire control system is stopped, and a "degenerate operation mode" in which the operation of each CPU unit 320, 330, and 340 in which an abnormality has not occurred continues and the operation of the entire control system continues without being temporarily stopped. Therefore, the PLC 1 according to this embodiment can select whether to stop or continue the operation of the entire control system when an abnormality has occurred.
[0056] Furthermore, according to the PLC 1 of this embodiment, the first output selection unit 316 can select whether to output a reset signal to the other CPU units 320, 330, and 340 based on the output from the first changeover switch 318 shown in Figures 4 and 5. The first changeover switch 318 is provided on the exterior of the first CPU unit 310 and can be operated by a user. The output selection units 326, 336, and 346 and changeover switches 328, 338, and 348 of the remaining CPU units 320, 330, and 340 are similar to the first output selection unit 316 and first changeover switch 318 of the first CPU unit 310. In this manner, by operating the changeover switches 318, 328, 338, and 348, the user can select in advance whether to operate the CPU units 310, 320, 330, and 340 in the "stop mode" or the "degenerate operation mode" before an abnormality occurs in the CPU units 310, 320, 330, and 340.
[0057] Some users have a desire to continue the entire system without pausing even if an abnormality occurs in one of the CPU units in a redundant multi-CPU configuration like PLC 1, and to continue collecting data before, during, and after the abnormality. In this case, the PLC needs to be able to replace or repair the CPU unit in which the abnormality occurred while the system is still running, i.e., online.
[0058] However, in the case of conventionally known PLCs for FA, when any of the CPU units fails, the entire system is generally stopped to allow for safe recovery work, as in the above-mentioned Patent Documents 1 to 3. For this reason, conventionally known PLCs have a problem in that they cannot meet the above-mentioned demands of users.
[0059] In contrast, with the PLC 1 according to this embodiment, if the "degenerate operation mode" is selected as described above, the CPU unit in which an abnormality has occurred can be replaced or repaired online, and data can be continuously collected before, during, and after the abnormality has occurred. As a result, the PLC 1 according to this embodiment can meet the above-mentioned user demands.
[0060] [Embodiment 2] In the PLC 1 according to embodiment 1, a CPU unit 310, 320, 330, or 340 in which an abnormality has occurred selects whether to output a reset signal to the remaining CPU units 310, 320, 330, or 340, thereby enabling the selection of whether to stop or continue overall operation. However, this is not limited to this. For example, each CPU unit 310, 320, 330, or 340 may periodically check the operation of the other CPU units 310, 320, 330, or 340, and when it is unable to confirm the operation of the other CPU units 310, 320, 330, or 340, the selection of whether to stop or continue overall operation may be made. Below, a control system 2 according to embodiment 2 will be described in detail with reference to Figures 6 to 9. Note that in embodiment 2, configurations different from embodiment 1 will be described, and configurations identical to embodiment 1 will not be described to avoid redundancy.
[0061] 6, a control system 2 according to a second embodiment of the present disclosure includes a PLC 1 and an engineering tool 600. The PLC 1 and the engineering tool 600 are connected via the Internet 700, which is an example of a network.
[0062] (Regarding the CPU unit 30 according to the second embodiment) The first CPU unit 310 includes a first operation confirmation signal output unit 363 shown in FIG. 7 as an example of an output unit that outputs an operation confirmation signal, which is a signal indicating that the first CPU unit 310 is operating, instead of the first reset signal output control unit 313 shown in FIG. 2. The first CPU unit 310 also includes a first operation confirmation signal acquisition unit 364 shown in FIG. 7 as an example of an acquisition unit that acquires operation confirmation signals from the other CPU units 320, 330, and 340, instead of the first reset signal acquisition unit 314 shown in FIG. 2. The first CPU unit 310 also includes a first operation stop selection unit 366 shown in FIG. 7 as an example of a selection unit and operation stop selection unit that selects whether or not to stop the operation of the first CPU unit 310, instead of the first output selection unit 316 shown in FIG. 2. Also, as shown in Figure 7, the first CPU unit 310 includes a first setting information acquisition unit 367 as an example of a setting information acquisition unit that acquires setting information, and a first setting information storage unit 368 as an example of a setting information storage unit that stores setting information.
[0063] The second CPU unit 320 includes a second operation confirmation signal output unit 373 shown in FIG. 7 as an example of an output unit similar to the first operation confirmation signal output unit 363, instead of the second reset signal output control unit 323 shown in FIG. 2. The second CPU unit 320 also includes a second operation confirmation signal acquisition unit 374 shown in FIG. 7 as an example of an acquisition unit similar to the first operation confirmation signal acquisition unit 364, instead of the second reset signal acquisition unit 324 shown in FIG. 2. The second CPU unit 320 also includes a selection unit similar to the first operation stop selection unit 366, instead of the second output selection unit 326 shown in FIG. 2, and a second operation stop selection unit 376 shown in FIG. 7 as an example of an operation stop selection unit. The second CPU unit 320 also includes a second setting information acquisition unit 377 as an example of a setting information acquisition unit similar to the first setting information acquisition unit 367. The second CPU unit 320 also includes a second setting information storage unit 378 as an example of a setting information storage unit similar to the first setting information storage unit 368 .
[0064] The third CPU unit 330 includes a third operation confirmation signal output unit 383, a third operation confirmation signal acquisition unit 384, and a third operation stop selection unit 386, which are similar to the units 363, 364, 366, 373, 374, and 376 shown in Fig. 7, instead of the third reset signal output control unit 333, the third reset signal acquisition unit 334, and the third output selection unit 336 shown in Fig. 2. The third CPU unit 330 also includes a third setting information acquisition unit 387 and a third setting information storage unit 388, which are similar to the units 367, 368, 377, and 378 shown in Fig. 7.
[0065] The fourth CPU unit 340 includes a fourth operation confirmation signal output unit 393, a fourth operation confirmation signal acquisition unit 394, and a fourth operation stop selection unit 396, which are similar to the units 363, 364, 366, 373, 374, 376, 383, 384, and 386 shown in Fig. 7, instead of the fourth reset signal output control unit 343, the fourth reset signal acquisition unit 344, and the fourth output selection unit 346 shown in Fig. 2. The fourth CPU unit 340 also includes a fourth setting information acquisition unit 397 and a fourth setting information storage unit 398, which are similar to the units 367, 368, 377, 378, 387, and 388 shown in Fig. 7.
[0066] (Regarding Engineering Tool 600 According to Embodiment 2) Engineering tool 600 is, for example, a personal computer on which software for the engineering tool is installed. Engineering tool 600 includes a setting information generation unit 610 that generates setting information and a setting information output unit 620 that outputs the setting information.
[0067] (Hardware Configuration of Each CPU Unit 310, 320, 330, 340 According to Embodiment 2) Returning to Fig. 3 , in each CPU unit 310, 320, 330, 340 according to embodiment 2, the control unit 51 functions as each operation stop selection unit 366, 376, 386, 396 shown in Fig. 7 . Furthermore, the transmission / reception unit 56 functions as each operation confirmation signal output unit 363, 373, 383, 393, each operation confirmation signal acquisition unit 364, 374, 384, 394, and each setting information acquisition unit 367, 377, 387, 397. Furthermore, the external storage unit 53 functions as each setting information storage unit 368, 378, 388, 398.
[0068] Returning to Figure 3, each CPU unit 310, 320, 330, 340 realizes the functions of the above-mentioned sections 363, 364, 366 to 368, 373, 374, 376 to 378, 383, 384, 386 to 388, 393, 394, 396 to 398 shown in Figure 7 by the control section 51 using the main memory section 52, external memory section 53, operation section 54, and transmission / reception section 56 as resources.
[0069] For example, the first CPU unit 310 executes a first operation confirmation signal output control step as an example of an output step executed by the first operation confirmation signal output unit 363. Also, for example, the first CPU unit 310 executes a first operation confirmation signal acquisition step as an example of an acquisition step executed by the first operation confirmation signal acquisition unit 364. Also, for example, the first CPU unit 310 executes a first operation stop selection step as an example of a selection step and operation stop selection step executed by the first operation stop selection unit 366. Also, for example, the first CPU unit 310 executes a first setting information acquisition step as an example of a setting information acquisition step executed by the first setting information acquisition unit 367. Also, for example, the first CPU unit 310 executes a first setting information storage step as an example of a setting information storage step executed by the first setting information storage unit 368.
[0070] Also, for example, the second CPU unit 320 executes a second operation confirmation signal output control step as an example of an output step executed by the second operation confirmation signal output unit 373. Also, for example, the second CPU unit 320 executes a second operation confirmation signal acquisition step as an example of an acquisition step executed by the second operation confirmation signal acquisition unit 374. Also, for example, the second CPU unit 320 executes a second operation stop selection step as an example of a selection step and operation stop selection step executed by the second operation stop selection unit 376. Also, for example, the second CPU unit 320 executes a second setting information acquisition step as an example of a setting information acquisition step executed by the second setting information acquisition unit 377. Also, for example, the second CPU unit 320 executes a second setting information storage step as an example of a setting information storage step executed by the second setting information storage unit 378.
[0071] Also, for example, the third CPU unit 330 executes a third operation confirmation signal output step as an example of an output step executed by the third operation confirmation signal output unit 383. Also, for example, the third CPU unit 330 executes a third operation confirmation signal acquisition step as an example of an acquisition step executed by the third operation confirmation signal acquisition unit 384. Also, for example, the third CPU unit 330 executes a third operation stop selection step as an example of a selection step and operation stop selection step executed by the third operation stop selection unit 386. Also, for example, the third CPU unit 330 executes a third setting information acquisition step as an example of a setting information acquisition step executed by the third setting information acquisition unit 387. Also, for example, the third CPU unit 330 executes a third setting information storage step as an example of a setting information storage step executed by the third setting information storage unit 388.
[0072] Also, for example, the fourth CPU unit 340 executes a fourth operation confirmation signal output step as an example of an output step executed by a fourth operation confirmation signal output unit 393. Also, for example, the fourth CPU unit 340 executes a fourth operation confirmation signal acquisition step as an example of an acquisition step executed by a fourth operation confirmation signal acquisition unit 394. Also, for example, the fourth CPU unit 340 executes a fourth operation stop selection step as an example of a selection step and operation stop selection step executed by a fourth operation stop selection unit 396. Also, for example, the fourth CPU unit 340 executes a fourth setting information acquisition step as an example of a setting information acquisition step executed by a fourth setting information acquisition unit 397. Also, for example, the fourth CPU unit 340 executes a fourth setting information storage step as an example of a setting information storage step executed by a fourth setting information storage unit 398.
[0073] (Hardware Configuration of Engineering Tool 600 According to Second Embodiment) Although not shown, the engineering tool 600 also includes a control unit 51, a main memory unit 52, an external memory unit 53, an operation unit 54, and a transmission / reception unit 56, similar to the CPU units 310, 320, 330, and 340. The engineering tool 600 also includes a display unit (not shown) that displays information input via the operation unit 54 and information output by the control unit 51. The display unit includes a display device such as an LCD (Liquid Crystal Display) or an organic EL (Electro-Luminescence) display.
[0074] In the engineering tool 600, the control unit 51 functions as a setting information generation unit 610 shown in FIG. 7 in accordance with the control program 59. Furthermore, the transmission / reception unit 56 functions as a setting information output unit 620. The engineering tool 600 realizes the functions of the setting information generation unit 610 and the setting information output unit 620 by the control unit 51 using the main memory unit 52, the external memory unit 53, the operation unit 54, the display unit, and the transmission / reception unit 56 as resources. For example, the engineering tool 600 executes a setting information generation step performed by the setting information generation unit 610 and a setting information output step performed by the setting information output unit 620.
[0075] (Details of the Functional Configuration of Each CPU Unit 310, 320, 330, 340 According to Embodiment 2) When the first voltage drop detection unit 312 detects a voltage drop in the internal power supply, the first reset execution unit 315 executes a reset process to stop operation of the first CPU unit 310. The first operation confirmation signal output unit 363 outputs an operation confirmation signal to each of the other CPU units 320, 330, 340 every time a predetermined time has elapsed. The first operation confirmation signal acquisition unit 364 acquires the operation confirmation signals output from each of the other CPU units 320, 330, 340. The first setting information acquisition unit 367 acquires setting information output from the engineering tool 600. At this time, the control unit 51 of the first CPU unit 310 stores the acquired setting information in the first setting information storage unit 368.
[0076] Here, the setting information is information that can identify the operation mode of the PLC 1 when each of the CPU units 310, 320, 330, and 340 fails, as set by the user. The setting information can be displayed, for example, in the form of a table as shown in FIG. 8 . The setting information corresponds to the items "first CPU unit," "second CPU unit," "third CPU unit," and "fourth CPU unit," which indicate the respective CPU units 310, 320, 330, and 340. For example, as shown in FIG. 8 , if all of the above items are "continue," the setting information indicates that each of the CPU units 310, 320, 330, and 340 continues operation when it determines that the operation of the other CPU units 310, 320, 330, and 340 has stopped. Note that if all of the above items are "stop," the setting information indicates that each of the CPU units 310, 320, 330, and 340 stops operation when it determines that the operation of the other CPU units 310, 320, 330, and 340 has stopped.
[0077] 7 , the first operation stop selection unit 366 selects whether or not to stop the operation of the first CPU unit 310 based on the setting information when it determines that the other CPU units 320, 330, 340 have stopped operating based on the operation confirmation signals received from the other CPU units 320, 330, 340. When the period during which no operation confirmation signal has been received for any of the other CPU units 320, 330, 340 exceeds a predetermined maximum allowable period, the first operation stop selection unit 366 determines that the CPU unit 320, 330, 340 has stopped operating.
[0078] At this time, the first operation stop selection unit 366 refers to the setting information stored in the first setting information storage unit 368, and if the "first CPU unit" item is "stop," selects to stop the operation of the first CPU unit 310. Furthermore, if the first operation stop selection unit 366 selects to stop the operation, the first reset execution unit 315 executes a reset process and stops the operation of the first CPU unit 310. On the other hand, if the "first CPU unit" item is "continue," the first operation stop selection unit 366 selects to continue the operation of the first CPU unit 310. Furthermore, if the first operation stop selection unit 366 selects to stop the operation, the first reset execution unit 315 does not execute a reset process, and the first CPU unit 310 continues to operate. At this time, the first CPU unit 310 operates in a degenerate mode, assuming that none of the CPU units 320, 330, 340 have stopped operating due to an abnormality. In addition, the first CPU unit 310 resumes normal operation when it acquires an operation confirmation signal output from a CPU unit that has stopped operating after an administrator has performed recovery work such as replacing or repairing the CPU unit that has stopped operating and the CPU unit has recovered.
[0079] With regard to the respective parts 322, 373, 374, 325, 376 to 378 of the second CPU unit 320, the "first CPU unit 310" will be referred to as the "second CPU unit 320", the "first voltage drop detection part 312" will be referred to as the "second voltage drop detection part 322", the "first operation confirmation signal output part 363" will be referred to as the "second operation confirmation signal output part 373", the "first operation confirmation signal acquisition part 364" will be referred to as the "second operation confirmation signal acquisition part 374", and the "first The same explanation as above can be obtained by replacing "reset execution unit 315" with "second reset execution unit 325," "first operation stop selection unit 366" with "second operation stop selection unit 376," "first setting information acquisition unit 367" with "second setting information acquisition unit 377," "first setting information storage unit 368" with "second setting information storage unit 378," and "CPU units 320, 330, 340" with "CPU units 310, 330, 340." Therefore, in order to avoid redundant explanation, detailed explanation will be omitted.
[0080] Similarly, for the respective sections 332, 383, 384, 335, 386 to 388 of the third CPU unit 330, the “first CPU unit 310” is referred to as the “third CPU unit 330”, the “first voltage drop detection section 312” is referred to as the “third voltage drop detection section 332”, the “first operation confirmation signal output section 363” is referred to as the “third operation confirmation signal output section 383”, the “first operation confirmation signal acquisition section 364” is referred to as the “third operation confirmation signal acquisition section 384”, The same explanation as above can be obtained by replacing "first reset execution unit 315" with "third reset execution unit 335," "first operation stop selection unit 366" with "first operation stop selection unit 386," "first setting information acquisition unit 367" with "third setting information acquisition unit 387," "first setting information storage unit 368" with "third setting information storage unit 388," and "CPU units 320, 330, 340" with "CPU units 310, 320, 340." Therefore, in order to avoid redundant explanation, detailed explanation will be omitted.
[0081] Similarly, for the respective sections 342, 393, 394, 345, 396 to 398 of the fourth CPU unit 340, the “first CPU unit 310” is referred to as the “fourth CPU unit 340”, the “first voltage drop detection section 312” is referred to as the “fourth voltage drop detection section 342”, the “first operation confirmation signal output section 363” is referred to as the “fourth operation confirmation signal output section 393”, the “first operation confirmation signal acquisition section 364” is referred to as the “fourth operation confirmation signal acquisition section 394”, The same explanation as above can be obtained by replacing "first reset execution unit 315" with "fourth reset execution unit 345," "first operation stop selection unit 366" with "fourth operation stop selection unit 396," "first setting information acquisition unit 367" with "fourth setting information acquisition unit 397," "first setting information storage unit 368" with "fourth setting information storage unit 398," and "CPU units 320, 330, 340" with "CPU units 310, 320, 330." Therefore, in order to avoid redundant explanation, detailed explanation will be omitted.
[0082] (Details of Functional Configuration of Engineering Tool 600 According to Embodiment 2) The setting information generation unit 610 generates setting information based on information input by a user on a setting screen (not shown) using the operation unit 54. When the setting information generation unit 610 generates the setting information, the setting information output unit 620 outputs the setting information to the PLC 1.
[0083] (Flowchart of Operation Stop Selection Process According to Embodiment 2) Next, using a flowchart, control by which each of the CPU units 310, 320, 330, and 340 selects whether or not to stop operation based on an operation confirmation signal will be described. As described above, since the configurations of the CPU units 310, 320, 330, and 340 are similar, redundant explanations of the operation stop selection process will be omitted. Only the first operation stop selection process of the first CPU unit 310 will be described, and explanations of the remaining CPU units 320, 330, and 340 will be omitted. When the first CPU unit 310 starts normal operation after power-on, it starts executing the first operation stop selection process shown in FIG. 9.
[0084] First, the first operation stop selection unit 366 determines whether there is any CPU unit 320, 330, 340 for which the period during which no operation confirmation signal has been received exceeds the maximum allowable period, thereby determining whether there are any other CPU units 320, 330, 340 that have stopped operating (step S101). If there are no other CPU units 320, 330, 340 that have stopped operating (step S101; N), the first operation stop selection unit 366 repeats the processing of step S101 until it determines that there are other CPU units 320, 330, 340 that have stopped operating.
[0085] On the other hand, if there are other CPU units 320, 330, 340 that have stopped operating (step S101; Y), the first operation stop selection unit 366 refers to the setting information stored in the first setting information storage unit 368 and determines whether the "first CPU unit" item is "stopped" (step S102). If the setting is "stopped" (step S102; Y), the first operation stop selection unit 366 selects to stop the operation of the first CPU unit 310, and the first reset execution unit 315 executes a reset process to temporarily suspend the operation of the first CPU unit 310 (step S103), and ends the process. On the other hand, if the setting is "continue" rather than "stop" (step S102; N), the first operation stop selection unit 366 selects to continue the operation of the first CPU unit 310, and the first CPU unit 310 continues operating in degenerate mode (step S104).
[0086] The first CPU unit 310 also determines whether it has received an operation confirmation signal output from the other CPU units 320, 330, and 340 that have been restored after the restoration work (step S105). If the first CPU unit 310 has not received an operation confirmation signal from the other restored CPU units 320, 330, and 340 (step S105; N), it repeats the process of step S105 until it receives an operation confirmation signal. If the first CPU unit 310 receives an operation confirmation signal from the other restored CPU units 320, 330, and 340 (step S105; Y), it continues normal operation (step S106) and ends the process.
[0087] As described above, according to the control system 2 of this embodiment, in the first CPU unit 310, when the first voltage drop detection unit 312 detects a voltage drop in the internal power supply, the first reset execution unit 315 executes a reset process to stop the operation of the first CPU unit 310. In addition, the first operation confirmation signal output unit 363 outputs an operation confirmation signal to each of the other CPU units 320, 330, and 340, and the first operation confirmation signal acquisition unit 364 acquires the operation confirmation signals output from each of the other CPU units 320, 330, and 340.
[0088] The first operation stop selection unit 366 also determines whether any of the other CPU units 320, 330, 340 have stopped operating based on the operation confirmation signal. If any of the other CPU units 320, 330, 340 have stopped operating, the first operation stop selection unit 366 selects whether or not to also stop the operation of the first CPU unit 310 based on the setting information stored in the first setting information storage unit 368. If the first operation stop selection unit 366 selects to stop operation, the first reset execution unit 315 executes a reset process to stop the operation of the first CPU unit 310. On the other hand, if the first operation stop selection unit 366 selects to stop operation, the first reset execution unit 315 does not execute the reset process, and the first CPU unit 310 continues operating.
[0089] Furthermore, the remaining CPU units 320, 330, and 340 have their respective sections 322, 373, 374, 325, 376 to 378, 332, 383, 384, 335, 386 to 388, 342, 393, 394, 345, and 396 to 398 similar to the sections 312, 363, 364, 315, and 366 to 368 of the first CPU unit 310.
[0090] In this manner, the control system 2 according to the present embodiment stops operation of the PLC 1 because all CPU units 310, 320, 330, and 340 stop operating if all items in the setting information are set to "stop." On the other hand, the control system 2 according to the present embodiment continues operation of the PLC 1 because the remaining CPU units 310, 320, 330, and 340 that have not failed do not stop operating if all items in the setting information are set to "continue." Therefore, the control system 2 according to the present embodiment can select between an "operation stop mode" and a "degenerate operation mode" by selecting each CPU unit 310, 320, 330, and 340 based on the setting information. Therefore, the control system 2 according to the present embodiment can select whether to stop or continue operation of the entire PLC 1 when an abnormality occurs.
[0091] Furthermore, according to the control system 2 of this embodiment, in the engineering tool 600, the setting information generation unit 610 generates setting information based on information input by the user using the operation unit 54, and the setting information output unit 620 outputs the setting information to the PLC 1. In the first CPU unit 310, the first setting information acquisition unit 367 acquires setting information, and the acquired setting information is stored in the first setting information storage unit 368. The units 377, 378, 387, 388, 397, and 398 of the remaining CPU units 320, 330, and 340 are similar to the units 367 and 368 of the first CPU unit 310. In this manner, the user can use the engineering tool 600 to select in advance whether to operate the CPU units 310, 320, 330, and 340 in the "operation suspension mode" or the "degenerate operation mode" before an abnormality occurs in the CPU units 310, 320, 330, and 340.
[0092] (Modification) In the PLC 1 according to the first and second embodiments, four CPU units 310, 320, 330, and 340 are mounted on the base unit 10, but the number of CPU units mounted on the base unit 10 is not limited to this as long as it is two or more. For example, two CPU units 310 and 320 may be mounted on the base unit 10, or five or more CPU units may be mounted.
[0093] In the PLC 1 according to the first and second embodiments, five input / output units 410 to 450 are mounted on the base unit 10, but the number of input / output units mounted on the base unit 10 is not limited to this; for example, one input / output unit 450 may be mounted on the base unit 10, or six or more CPU units may be mounted.
[0094] In the PLC 1 according to the first embodiment, the functions of the output selection units 316, 326, 336, and 346 are realized by the changeover switches 318, 328, 338, and 348. However, the functions of the output selection units 316, 326, 336, and 346 can be realized without being limited to the changeover switches 318, 328, 338, and 348. For example, the output selection units 316, 326, 336, and 346 may be realized by control by the control unit 51. Specifically, the output selection units 316, 326, 336, and 346 may select whether to output a reset signal to the other CPU units 320, 330, and 340 based on setting information acquired from the engineering tool 600. In this case, each reset signal output control unit 313, 323, 333, 343 must be able to output a reset signal only to the failed CPU unit 310, 320, 330, 340 via its internal circuit, and also be able to output a reset signal to all CPU units 310, 320, 330, 340 via the base unit 10.
[0095] In the control system 2 according to the second embodiment, the operation stop selection units 366, 376, 386, and 396 select whether or not to stop the operation of each CPU unit 310 based on setting information generated and output by the engineering tool 600. However, the setting information does not have to be information generated and output by the engineering tool 600. For example, a switch may be provided on the exterior of each CPU unit 310, 320, 330, and 340, and setting information indicating whether to stop or continue the operation of each CPU unit 310, 320, 330, and 340 may be generated based on the on / off state of each switch operated by the user.
[0096] As in the first and second embodiments, the PLC 1 is preferably capable of selecting between the "stop mode" and the "degenerate operation mode" for each of the CPU units 310, 320, 330, and 340, but is not limited to this. For example, the PLC 1 may be capable of selecting between the "stop mode" and the "degenerate operation mode" for all of the CPU units 310, 320, 330, and 340. In this case, in the first embodiment, for example, instead of the single-pole double-throw switches 318, 328, 338, and 348, four-pole double-throw switches may be provided on the exterior of the base unit 10, and the stop or continuation of all of the CPU units 310, 320, 330, and 340 may be selected based on the on / off state of the switch operated by the user. In this case, in the second embodiment, for example, the engineering tool 600 may allow the user to select whether all of the CPU units 310, 320, 330, and 340 are in the "stop mode" or the "continued degeneration mode."
[0097] The central part of the processing performed by each of the CPU units 310, 320, 330, and 340, which includes the control unit 51, main memory unit 52, external memory unit 53, operation unit 54, transmission / reception unit 56, and internal bus 50, may be, for example, a program for executing the above-described operations stored in a recording medium readable by each of the CPU units 310, 320, 330, and 340, such as a flash memory, and distributed. By installing the program, each of the CPU units 310, 320, 330, and 340 is configured to execute the above-described processing. Alternatively, the program may be stored in a storage device of a server device on a communication network such as a LAN (Local Area Network) or the Internet, and downloaded by each of the CPU units 310, 320, 330, and 340 to configure a computer.
[0098] Furthermore, when the functions of each CPU unit 310, 320, 330, and 340 are realized by sharing the functions of an OS (operating system) and an application program, or by cooperation between the OS and the application program, only the application program portion may be stored on a recording medium or storage device.
[0099] The program may also be superimposed on a carrier wave and provided via a communication network. For example, the program may be posted on a bulletin board system (BBS) on the communication network and provided via the network. The program may then be started and executed under the control of the OS in the same way as other application programs, thereby executing the above-described processing.
[0100] The present disclosure allows various embodiments and modifications without departing from the broad spirit and scope of the present disclosure. Furthermore, the above-described embodiments are intended to explain the present disclosure and do not limit the scope of the present disclosure. In other words, the scope of the present disclosure is defined by the claims, not the embodiments. Various modifications made within the scope of the claims and the meaning of equivalent disclosures are considered to be within the scope of the present disclosure.
[0101] 1...PLC, 2...control system, 10...base unit, 20...power supply unit, 30...CPU unit, 40...I / O unit, 50...internal bus, 51...control unit, 52...main memory unit, 53...external memory unit, 54...operation unit, 56...transmission / reception unit, 59...control program, 310...first CPU unit, 311...first input / output control unit, 312...first voltage drop detection unit, 313...first reset signal output control unit, 314...first reset signal acquisition unit, 315...first reset execution unit, 316...first output selection unit, 317...first power supply monitoring IC, 318...first changeover switch, 320...second CPU unit, 321...second input / output control unit, 322...second voltage drop detection unit, 323...second reset signal output control unit, 324...second reset signal acquisition unit, 325...second reset execution unit, 326...second output selection unit, 327...second power supply monitoring IC, 328...second changeover switch, 330...third CPU unit, 331...third input / output control unit, 332...third voltage drop detection unit, 333...third reset signal output control unit, 334...third reset signal acquisition unit, 335...third reset execution unit, 336...third output selection unit, 337...third power supply monitoring IC, 338...third changeover switch, 34 0...fourth CPU unit, 341...fourth input / output control unit, 342...fourth voltage drop detection unit, 343...fourth reset signal output control unit, 344...fourth reset signal acquisition unit, 345...fourth reset execution unit, 346...fourth output selection unit, 347...first power supply monitoring IC, 348...first changeover switch, 363...first operation check signal output unit, 364...first operation check signal acquisition unit, 366...first operation stop selection unit, 367...first setting information acquisition unit, 368...first setting information storage unit, 373...second operation check signal output unit, 374...second operation check signal acquisition unit, 376...second operation stop selection unit, 377... Second setting information acquisition unit, 378...second setting information storage unit, 383...third operation confirmation signal output unit, 384...third operation confirmation signal acquisition unit, 386...third operation stop selection unit, 387...third setting information acquisition unit, 388...third setting information storage unit, 393...fourth operation confirmation signal output unit, 394...fourth operation confirmation signal acquisition unit, 396...fourth operation stop selection unit, 397...fourth setting information acquisition unit, 398...fourth setting information storage unit, 410...first input / output unit, 420...second input / output unit, 430...third input / output unit, 440...fourth input / output unit, 450...fifth input / output unit, 500...communication line,501...first communication line, 502...first diode, 503...second communication line, 504...zener diode, 505...third communication line, 506...transistor, 507...fourth communication line, 508...fifth communication line, 509, 520...first contact point, 510...second diode, 511...sixth communication line, 512...first terminal, 513...seventh communication line, 514, 525...second contact point, 515...second terminal, 516...eighth communication line, 517...third terminal, 518, 523, 528, 533, 535...contact points , 519... ninth communication line, 521... first pull-up resistor, 522... tenth signal line, 524... eleventh signal line, 526... second pull-up resistor, 527... twelfth signal line, 529... thirteenth signal line, 530... third contact, 531... third pull-up resistor, 532... fourteenth signal line, 534... fifteenth signal line, 536... fourth pull-up resistor, 537... sixteenth signal line, 600... engineering tool, 610... setting information generation unit, 620... setting information output unit, 700... Internet.
Claims
1. A programmable logic controller capable of controlling devices in which a first CPU unit and a second CPU unit can independently control the devices to be controlled, comprising: a selection unit that selects whether or not to stop the operation of the second CPU unit when a voltage drop in the internal power supply of the first CPU unit is detected; and an operation control unit that stops the operation of the second CPU unit when the selection unit selects to stop the operation of the second CPU unit, but does not stop the operation of the second CPU unit when the selection unit selects not to stop the operation of the second CPU unit.
2. A programmable logic controller as described in claim 1, wherein the selection unit is an output selection unit that selects whether or not to output an operation stop signal from the first CPU unit to the second CPU unit to stop operation of the second CPU unit when a voltage drop in the internal power supply of the first CPU unit is detected, and the operation control unit is an output control unit that causes the first CPU unit to output the operation stop signal when the output selection unit selects to output the operation stop signal, but does not cause the first CPU unit to output the operation stop signal when the output selection unit selects not to output the operation stop signal.
3. A programmable logic controller as described in claim 1 or claim 2, wherein the first CPU unit comprises an output unit that outputs an operation confirmation signal to the second CPU unit to confirm the operation of the first CPU unit when a voltage drop in the internal power supply of the first CPU unit is not detected, the selection unit is an operation stop selection unit that selects whether or not to stop the operation of the second CPU unit when the second CPU unit does not receive the operation confirmation signal, and the operation control unit is an operation stop control unit that stops the operation of the second CPU unit when the operation stop selection unit selects to stop the operation of the second CPU unit, and does not stop the operation of the second CPU unit when the operation stop selection unit selects not to stop the operation of the second CPU unit.
4. A programmable logic controller as described in claim 1, further comprising a changeover switch provided outside the first CPU unit or outside the second CPU unit, and the selection section selects whether or not to stop operation of the second CPU unit based on the output from the changeover switch.
5. The programmable logic controller of claim 1, wherein the selection unit selects whether or not to stop operation of the second CPU unit based on preset setting information, and the setting information is obtained from an engineering tool connectable to the first CPU unit or the second CPU unit.
6. A CPU unit capable of controlling a device to be controlled independently of other CPU units attached to a programmable logic controller, comprising: an output section which, when a voltage drop in the internal power supply of said CPU unit is detected, outputs an operation stop signal to stop the operation of said other CPU unit; an output selection section which selects whether or not to output said operation stop signal to said other CPU unit; and an output control section which, when a voltage drop in the internal power supply of said CPU unit is detected, causes said output section to output said operation stop signal if said output selection section has selected to output said operation stop signal, but does not cause said output section to output said operation stop signal if said output selection section has selected not to output said operation stop signal.
7. A CPU unit capable of controlling a device to be controlled independently of other CPU units attached to a programmable logic controller, comprising: an operation stop selection section that selects whether or not to stop the operation of the CPU unit when an operation confirmation signal for confirming the operation of the other CPU unit is not received from the other CPU unit; and an operation stop control section that, when the operation confirmation signal is not received from the other CPU unit, stops the operation of the CPU unit if the operation stop selection section has selected to stop the operation of the CPU unit, but does not stop the operation of the CPU unit if the operation stop selection section has selected not to stop the operation of the CPU unit.
8. A control method for a programmable logic controller equipped with a first CPU unit and a second CPU unit, comprising: a selection step for selecting whether or not to stop the operation of the second CPU unit when a voltage drop in the internal power supply of the first CPU unit is detected; and an operation control step for stopping the operation of the second CPU unit when it is selected in the selection step to stop the operation of the second CPU unit, and not stopping the operation of the second CPU unit when it is selected in the selection step not to stop the operation of the second CPU unit.
9. A program that causes a programmable logic controller equipped with a first CPU unit and a second CPU unit to function as: a selection unit that selects whether or not to stop the operation of the second CPU unit when a voltage drop in the internal power supply of the first CPU unit is detected; and an operation control unit that stops the operation of the second CPU unit when the selection unit selects to stop the operation of the second CPU unit, and does not stop the operation of the second CPU unit when the selection unit selects not to stop the operation of the second CPU unit.
Citation Information
Patent Citations
Control method, and substrate treatment device
JP2015156105A
Support device and support program
JP2018200731A
JP4795260U
Duplexing apparatus and method in large scale system
US20020089940A1
