JP2019114073A - Programmable controller and dual system - Google Patents

Programmable controller and dual system Download PDF

Info

Publication number
JP2019114073A
JP2019114073A JP2017247231A JP2017247231A JP2019114073A JP 2019114073 A JP2019114073 A JP 2019114073A JP 2017247231 A JP2017247231 A JP 2017247231A JP 2017247231 A JP2017247231 A JP 2017247231A JP 2019114073 A JP2019114073 A JP 2019114073A
Authority
JP
Japan
Prior art keywords
master
slave
programmable controller
cpu module
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017247231A
Other languages
Japanese (ja)
Other versions
JP7035511B2 (en
Inventor
始 小坂
Hajime Kosaka
始 小坂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP2017247231A priority Critical patent/JP7035511B2/en
Publication of JP2019114073A publication Critical patent/JP2019114073A/en
Application granted granted Critical
Publication of JP7035511B2 publication Critical patent/JP7035511B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To improve a soundness of a duplex system capable of data equalization of a programmable controller.SOLUTION: A programmable controller 1 which functions as a master or a slave when data of the programmable controllers 1 and 2 are equivalent, is comprised of: communication interfaces 11 and 12 as optional modules for monitoring a state of a CPU module 10 based on a response signal from the CPU 10 in the case where the communication interfaces generate pulse signals to the CPU module 10 of the programmable controller 1 when the programmable controller 1 functions as the master. When there is no response signal from the CPU module 10, the communication interfaces 11, 12 switch operation modes of the communication interfaces 11, 12 from the master to the slave.SELECTED DRAWING: Figure 1

Description

本発明は、マスタとスレーブのデータの等価が可能な二重化システムにおけるマスタとスレーブの切り替え技術に関する。   The present invention relates to a master-slave switching technology in a duplex system capable of master-slave data equalization.

プログラマブルコントローラ(以下、PLC)のデータの等価が可能な二重化システムは、二つのPLC間で例えばEthernet(登録商標)等のローカルエリアネットワークを介してアプリケーションや演算処理や通信処理のデータが等価される(特許文献1等)。   In a duplex system capable of equalizing data of a programmable controller (hereinafter, PLC), data of application, arithmetic processing and communication processing are equivalent between two PLCs via a local area network such as Ethernet (registered trademark), for example. (Patent Document 1 etc.).

また、複数のPLCを有する二重化システムにおいては、一つのPLCがマスタ(常用系)として機能し、他のPLCがスレーブ(待機系)として機能する。そして、マスタ側のPLCに異常や故障が発生した際には、マスタとスレーブの切り替えが行われ、スレーブ側のPLCが新たなマスタとして動作する一方で当該マスタ側のPLCは新たなスレーブとして動作する。   In addition, in a duplex system having a plurality of PLCs, one PLC functions as a master (normal system), and the other PLC functions as a slave (standby system). Then, when an abnormality or failure occurs in the master side PLC, switching between the master and the slave is performed, and the slave side PLC operates as a new master while the master side PLC operates as a new slave Do.

現状の二重化システムにおいては、マスタのCPUモジュールまたはスレーブのCPUモジュールがマスタとスレーブの切り替え要因を監視するようになっている。そして、切り替え要因が発生した際に、マスタとスレーブのCPUモジュールによるハンドシェイク処理が行われ、マスタとスレーブの切り替えが実行される。マスタとスレーブの切り替え後、CPUモジュールは通信インタフェースにマスタとスレーブの切り替えを指示し、通信インタフェースの動作モードもマスタとスレーブの切り替えが発生する。   In the current redundant system, the master CPU module or slave CPU module monitors the switching factor between the master and the slave. Then, when a switching factor occurs, handshake processing is performed by the master and slave CPU modules, and switching between the master and slave is executed. After switching between the master and the slave, the CPU module instructs the communication interface to switch between the master and the slave, and the operation mode of the communication interface also changes between the master and the slave.

切り替え要因としては、例えば以下のような事象がある。   Examples of switching factors include the following events.

(1)マスタのCPUモジュールの故障による切り替え
例えば、図4(a)に示したように、マスタ(PLC1)のCPUモジュール10にて重故障(継続動作不可能な異常)が発生すると、当該マスタのCPUモジュール10はスレーブ(PLC2)のCPUモジュール20に重故障発生を通知する。これにより、CPUモジュール10,20間でマスタとスレーブの切り替えが行われる。その後、CPUモジュール10(20)からの通信インタフェースを介したマスタとスレーブの切り替えの指示により、通信インタフェース11(21),12(22)の動作モードもマスタ・スレーブの切り替えを行う。
(1) Switching due to failure of the master CPU module For example, as shown in FIG. 4A, when a major failure (abnormal operation impossible abnormality) occurs in the CPU module 10 of the master (PLC 1), the master The CPU module 10 notifies the CPU module 20 of the slave (PLC 2) of the occurrence of a serious failure. Thereby, switching between the master and the slave is performed between the CPU modules 10 and 20. Thereafter, according to the instruction of switching of the master and the slave from the CPU module 10 (20) via the communication interface, the operation modes of the communication interfaces 11 (21) and 12 (22) are also switched between the master and the slave.

(2)スレーブのCPUモジュールのスイッチONによる切り替え
例えば、図4(b)に示されたように、スレーブ(PLC2)のCPUモジュール20のマスタ用またスレーブ用の押しスイッチがONされると、当該スレーブのCPUモジュール20はマスタ(PLC1)のCPUモジュール10に対してマスタとスレーブの切り替え要求を通知して、CPUモジュール10,20間でマスタとスレーブの切り替えを行う。その後、CPUモジュール10,20から通信インタフェース11(21),12(22)へのマスタとスレーブの切り替えの指示により、通信インタフェース11(21),12(22)の動作モードもマスタとスレーブの切り替えを行う。
(2) Switching of the slave CPU module by switch ON For example, as shown in FIG. 4B, when the master or slave push switch of the CPU module 20 of the slave (PLC 2) is turned on The slave CPU module 20 notifies the CPU module 10 of the master (PLC 1) of the switching request between the master and the slave, and switches the master and the slave between the CPU modules 10 and 20. After that, according to the instruction to switch the master and slave from the CPU modules 10 and 20 to the communication interfaces 11 (21) and 12 (22), the operation modes of the communication interfaces 11 (21) and 12 (22) are also switched to the master and slave I do.

特開2008−102649号公報JP 2008-102649 A

上述のようにマスタのCPUモジュールの故障による切り替えが発生した場合やスレーブのCPUモジュールのスイッチONによる切り替えが発生した場合、先ず、CPUモジュール間でマスタとスレーブの切り替えが行われる。その後、CPUモジュールから通信インタフェースに対してマスタ・スレーブの切り替えの指示がなされる。   As described above, when switching occurs due to a failure of the master CPU module or when switching is performed on the slave CPU module, switching between the master and slave is performed between the CPU modules. Thereafter, the CPU module instructs the communication interface to switch the master and the slave.

CPUモジュールに重大な故障が発生していない場合は問題ないが、マイコンやメモリなど主要な部品が故障した場合、CPUモジュールから通信インタフェースに対してマスタとスレーブの切り替え指示が行われない可能性がある。   There is no problem if no major failure occurs in the CPU module, but there is a possibility that the CPU module will not issue a master / slave switching instruction to the communication interface from the CPU module if a major component such as a microcomputer or memory fails. is there.

このことから、CPUモジュールの指示により、通信インタフェースのマスタとスレーブの切り替える方式は、正常な状態や軽微な故障時には問題ないが、CPUモジュールに重大な故障が発生した場合には、マスタとスレーブの切替えが行えない場合がある。   From this, according to the instruction of the CPU module, the method of switching between the master and the slave of the communication interface has no problem in the normal state or a minor failure, but when a serious failure occurs in the CPU module, In some cases, switching can not be performed.

本発明は、上記の事情の鑑み、プログラマブルコントローラのデータの等価が可能な二重化システムの健全性の向上を図ることを課題とする。   An object of the present invention is to improve the soundness of a duplexing system capable of equivalent data of a programmable controller in view of the above-mentioned circumstances.

そこで、本発明の一態様は、プログラマブルコントローラのデータの等価の際にマスタまたはスレーブとして機能するプログラマブルコントローラであって、このプログラマブルコントローラがマスタとして機能する場合に当該プログラマブルコントローラのCPUモジュールにパルス信号を発して当該CPUモジュールからの応答信号に基づき当該CPUモジュールの状態を監視するオプションモジュールを備える。   Therefore, one aspect of the present invention is a programmable controller that functions as a master or a slave during data equalization of a programmable controller, and when the programmable controller functions as a master, a pulse signal is sent to the CPU module of the programmable controller. And an optional module for monitoring the state of the CPU module based on a response signal from the CPU module.

本発明の一態様は、前記プログラマブルコントローラにおいて、前記オプションモジュールは、前記CPUモジュールからの応答信号がない場合に当該オプションモジュールの動作モードをマスタからスレーブに切替える。   In one embodiment of the present invention, in the programmable controller, the option module switches the operation mode of the option module from a master to a slave when there is no response signal from the CPU module.

本発明の一態様は、前記プログラマブルコントローラにおいて、前記オプションモジュールは、前記プログラマブルコントローラ内での前記CPUモジュールのバス間通信が行えないと判断すると当該オプションモジュールの動作モードをマスタからスレーブに切替える。   In one embodiment of the present invention, in the programmable controller, the option module switches the operation mode of the option module from the master to the slave when it determines that inter-bus communication of the CPU module in the programmable controller can not be performed.

本発明の一態様は、前記プログラマブルコントローラが前記マスタとして機能する場合に、前記CPUモジュールは、このCPUモジュールにおいて異常が発生した場合に、当該プログラマブルコントローラと通信可能な前記スレーブとして機能する他のプログラマブルコントローラに当該異常を通知する。   In one aspect of the present invention, when the programmable controller functions as the master, the CPU module functions as another slave that functions as the slave capable of communicating with the programmable controller when an abnormality occurs in the CPU module. Notify the controller of the abnormality.

本発明の一態様は、前記プログラマブルコントローラが前記スレーブとして機能する場合に、当該スレーブとして機能するプログラマブルコントローラのCPUモジュールは、前記マスタとして機能する他のプログラマブルコントローラのCPUモジュールから異常の通知を受けると、当該スレーブとして機能するプログラマブルコントローラのオプションモジュールに対して動作モードをスレーブからマスタへの切り替えを指示する。   In one aspect of the present invention, when the programmable controller functions as the slave, a CPU module of the programmable controller functioning as the slave receives notification of an abnormality from a CPU module of another programmable controller functioning as the master. And instructing the option module of the programmable controller functioning as the slave to switch the operation mode from the slave to the master.

本発明の一態様は、マスタとスレーブのデータの等価が可能な二重化システムであって、前記データの等価のマスタとして機能が可能な上記のプログラマブルコントローラと、前記データの等価のスレーブとして機能が可能な上記のプログラマブルコントローラとを備える。   One aspect of the present invention is a duplex system capable of equivalent data between a master and a slave, wherein the programmable controller can function as an equivalent master of the data, and can function as an equivalent slave of the data And the above-mentioned programmable controller.

以上の本発明によれば、プログラマブルコントローラのデータの等価が可能な二重化システムの健全性の向上を図ることができる。   According to the present invention as described above, it is possible to improve the soundness of a duplexing system capable of equivalent data of a programmable controller.

本発明の実施形態である二重化システムにおけるパルス信号検定の説明図。Explanatory drawing of the pulse signal test in the duplexing system which is embodiment of this invention. 図1の二重化システムの概略構成図。FIG. 2 is a schematic configuration diagram of the duplex system of FIG. 1; 図1の二重化システムにおけるパルス信号の送受信の説明図。Explanatory drawing of transmission / reception of the pulse signal in the duplex system of FIG. (a)従来のPLCの二重化システムにおけるマスタCPUモジュール重故障発生時の切替え動作の説明図、(b)当該二重化システムにおける手動によるスレーブCPUモジュールの切り替え動作の説明図。(A) Explanatory drawing of switching operation | movement at the time of master CPU module double failure generation | occurrence | production in the conventional PLC duplication system, (b) Explanatory drawing of switching operation | movement of the slave CPU module by the said manual duplication system manually.

以下に図面を参照しながら本発明の実施形態について説明する。   Embodiments of the present invention will be described below with reference to the drawings.

[本実施形態のシステム構成]
図1,2に例示された本実施形態の二重化システムはEthernet等の周知のローカルエリアネットワークの規格に準拠した二重化ケーブル3を介してPLC1,2のアプリケーションプログラムの等価や演算結果等のデータの等価が可能となっている。
[System configuration of this embodiment]
The duplex system of this embodiment illustrated in FIGS. 1 and 2 is equivalent to application programs equivalent to PLCs 1 and 2 or data such as calculation results via duplex cables 3 conforming to the well-known local area network standard such as Ethernet. Is possible.

PLC1は、通常、本実施形態の二重化システムにおいてマスタとして機能するプログラマブルコントローラである。一方、PLC2は、二重化ケーブル3を介してPLC1と通信可能であり当該二重化システムにおけるスレーブとして機能するプログラマブルコントローラである。   The PLC 1 is usually a programmable controller that functions as a master in the duplex system of the present embodiment. On the other hand, PLC2 is a programmable controller which can communicate with PLC1 via duplexing cable 3 and functions as a slave in the duplexing system.

PLC1はCPUモジュール10に加えてオプションモジュールとして通信インタフェース11,12を実装する。尚、PLC2もCPUモジュール20に加えてオプションモジュールとして通信インタフェース21,22を実装する。   The PLC 1 implements the communication interfaces 11 and 12 as optional modules in addition to the CPU module 10. In addition to the CPU module 20, the PLC 2 also mounts the communication interfaces 21 and 22 as optional modules.

PLC1のCPUモジュール10とPLC2のCPUモジュール20と間でのマスタとスレーブの切り替えは二重化ケーブル3を介した通信により実現する。   The switching between the master and the slave between the CPU module 10 of PLC 1 and the CPU module 20 of PLC 2 is realized by communication via the duplex cable 3.

特に、本実施形態においては、CPUモジュール10,20の主要構成品であるマイコンやFPGAが故障した場合に、前記オプションモジュールのマスタとスレーブの切り替えが可能となっている。   In particular, in the present embodiment, when a microcomputer or FPGA which is a main component of the CPU modules 10 and 20 breaks down, it is possible to switch between the master and the slave of the option module.

PLC1においては、CPUモジュール10と通信インタフェース11,12とのバス間通信によりモジュールIDやステータス状態をPLC1の全てのモジュール間で共有する仕組みが構築されている。   In the PLC 1, a mechanism is established in which module ID and status status are shared among all modules of the PLC 1 by inter-bus communication between the CPU module 10 and the communication interfaces 11 and 12.

このモジュールID及びステータス状態を共有したシステムにおいて、CPUモジュール10は、通信インタフェース11,12側から発信するパルス信号に追従する応答信号としてパルス信号を発信する。   In a system in which the module ID and the status state are shared, the CPU module 10 transmits a pulse signal as a response signal for following the pulse signal transmitted from the communication interfaces 11 and 12 side.

また、CPUモジュール10において異常が発生した場合、CPUモジュール10は二重化ケーブル3を介して当該異常をPLC2に通知する。   When an abnormality occurs in the CPU module 10, the CPU module 10 notifies the PLC 2 of the abnormality via the duplexing cable 3.

通信インタフェース11,12はPLC1がマスタとして機能する場合にCPUモジュール10にパルス信号を発してCPUモジュールからの応答信号に基づき当該CPUモジュールの状態を監視する。   When the PLC 1 functions as a master, the communication interfaces 11 and 12 issue pulse signals to the CPU module 10 and monitor the state of the CPU module based on the response signal from the CPU module.

特に、通信インタフェース11は、CPUモジュール10からのパルス信号が異常である場合、マスタとして動作しているオプションモジュールはスレーブとして動作する。   In particular, when the pulse signal from the CPU module 10 is abnormal in the communication interface 11, the option module operating as a master operates as a slave.

また、通信インタフェース11は、PLC1内でのCPUモジュール10のバス間通信が行えないと判断すると通信インタフェース11の動作モードをマスタからスレーブに切替える。   Further, the communication interface 11 switches the operation mode of the communication interface 11 from the master to the slave when judging that the inter-bus communication of the CPU module 10 in the PLC 1 can not be performed.

尚、PLC2においても、CPUモジュール20と通信インタフェース21,22との間で上記と同様の仕組み及び関係が構築されている。   Also in the PLC 2, the same mechanism and relationship as above are established between the CPU module 20 and the communication interfaces 21 and 22.

以下に本実施形態のPLC1,2の具体的な機能(1)〜(3)について説明する。   The specific functions (1) to (3) of the PLCs 1 and 2 according to the present embodiment will be described below.

(1)バス間通信
PLC1のベースにおいては、CPUモジュール10と通信インタフェース11,12との間でデータの送受信が行えるシリアルバスが実装されている。このシリアルバスは通信インタフェース11,12の通信データを授受する。また、CPUモジュール10及び通信インタフェース11,12はそれぞれのモジュール種別(番号)及びモジュールの状態をH/W処理(ハードウェア処理)として通信する機能を有する。
(1) Inter-Bus Communication At the base of the PLC 1, a serial bus capable of transmitting and receiving data between the CPU module 10 and the communication interfaces 11 and 12 is mounted. The serial bus exchanges communication data of the communication interfaces 11 and 12. The CPU module 10 and the communication interfaces 11 and 12 have a function of communicating their module types (numbers) and module states as H / W processing (hardware processing).

PLC2のベースにおいても、PLC1と同様の機能を有するシリアルバス、CPUモジュール10及び通信インタフェース11,12と同様の機能が実装されている。   Also in the base of PLC2, functions similar to the serial bus having the same function as PLC1, the CPU module 10, and the communication interfaces 11, 12 are implemented.

(2)ステータスID及びステータス状態の共有
CPUモジュール10及び通信インタフェース11,12は、各モジュールの立ち上がり時にモジュール種別を示す番号を、シリアルバス上で使用するモジュールIDのレジスタにセットする。CPUモジュール10及び通信インタフェース11,12は各モジュール(CPUモジュール10、通信インタフェース11,12、その他のオプションモジュール)の状態を示すデータを常にステータス用のレジスタにセットする。このレジスタにセットされたモジュールIDとステータス状態はH/W処理により定期的にシリアルバス上に送信され、モジュール間でモジュール種別とモジュール状態のデータが共有される。尚、CPUモジュール20及び通信インタフェース21,22も上記と同様の共有の機能を有する。
(2) Sharing of Status ID and Status State The CPU module 10 and the communication interfaces 11 and 12 set the number indicating the module type at the time of start of each module in the register of the module ID used on the serial bus. The CPU module 10 and the communication interfaces 11 and 12 always set data indicating the status of each module (the CPU module 10, the communication interfaces 11 and 12 and other optional modules) in the status register. The module ID and the status state set in this register are periodically transmitted on the serial bus by H / W processing, and module type and module state data are shared between modules. The CPU module 20 and the communication interfaces 21 and 22 also have the same sharing function as described above.

(3)パルス信号の監視
CPUモジュール10及び通信インタフェース11,12は、以下のパルス信号の監視機能を有する。モジュールIDとステータス状態を、H/W処理により定期的にシリアルバス上に送信する機能を拡張し、パルス信号のデータも付加して送信する。通信インタフェース11,12はパルス信号を生成してシリアルバスを介してCPUモジュール10に送信する。CPUモジュール10は、通信インタフェース11,12から受信したパルス信号をそのままコピーしてシリアルバスを介して応答信号として通信インタフェース11,12に送信する。図示の態様は通信インタフェースが2つ実装されているが、通信インタフェースが4つ実装された場合、CPUモジュール10はモジュール毎に4つのパルス信号をシリアルバス上に送信する。尚、CPUモジュール20及び通信インタフェース21,22も上記と同様の監視の機能を有する。
(3) Monitoring of Pulse Signal The CPU module 10 and the communication interfaces 11 and 12 have the following pulse signal monitoring functions. The function of periodically transmitting the module ID and the status status on the serial bus by H / W processing is expanded, and pulse signal data is also added and transmitted. The communication interfaces 11 and 12 generate pulse signals and transmit the pulse signals to the CPU module 10 via the serial bus. The CPU module 10 copies the pulse signal received from the communication interfaces 11 and 12 as it is, and transmits it as a response signal to the communication interfaces 11 and 12 via the serial bus. Although two communication interfaces are implemented in the illustrated embodiment, when four communication interfaces are implemented, the CPU module 10 transmits four pulse signals on the serial bus for each module. The CPU module 20 and the communication interfaces 21 and 22 also have the same monitoring function as described above.

(4)ステータスID、ステータス情報及びパルス信号のデータフォーマット
CPUモジュール10と通信インタフェース11,12のステータスID、ステータス情報、パルス信号のデータフォーマットを以下の表1及び表2に示す。
(4) Data format of status ID, status information and pulse signal The status ID of the CPU module 10 and the communication interfaces 11 and 12, status information, data format of the pulse signal are shown in the following Tables 1 and 2.

Figure 2019114073
Figure 2019114073

Figure 2019114073
Figure 2019114073

CPUモジュール10が送信するパルス情報のCPUパルス情報は、CPUモジュール10内でパルス信号の態様で作成され、このパルス信号がセットされる。CPUモジュール10が送信するパルス情報の通信パルス情報は、通信インタフェース11,12から受信したパルス信号をそのままセットする。一方、通信インタフェース11,12が送信するパルス情報の通信パルス情報は、通信インタフェース11,12内でパルス信号の態様で作成され、このパルス信号は通信インタフェース11,12の通信インタフェース番号の対応ビットにセットされる。尚、CPUモジュール20及び通信インタフェース21,22も上記と同様のデータフォーマットの機能を有する。   The CPU pulse information of pulse information transmitted by the CPU module 10 is created in the CPU module 10 in the form of a pulse signal, and this pulse signal is set. Communication pulse information of pulse information transmitted by the CPU module 10 sets the pulse signal received from the communication interfaces 11 and 12 as it is. On the other hand, communication pulse information of pulse information transmitted by the communication interfaces 11 and 12 is created in the form of a pulse signal in the communication interfaces 11 and 12, and this pulse signal corresponds to the corresponding bit of the communication interface number of the communication interfaces 11 and 12. Is set. The CPU module 20 and the communication interfaces 21 and 22 also have the same data format function as described above.

[動作例の説明]
以下に本実施形態の二重化システムの具体的な動作例について説明する。
[Description of operation example]
A concrete operation example of the duplex system of this embodiment will be described below.

(動作例1)PLC1のCPUモジュール10で重故障が発生し、バス間通信、パルス信号の発信が可能な場合の動作例
本事例においては、PLC1のCPUモジュール10で重故障が発生しても、バス間通信で通信インタフェース11,12とのデータ授受が可能となっている。したがって、前述の図4(a)の事例のように、PLC1のCPUモジュール10の故障による従来の切り替え動作により、マスタとスレーブの切り替えが行われる。
(Operation example 1) Operation example when a major failure occurs in the CPU module 10 of PLC 1 and communication between buses and transmission of a pulse signal are possible In this example, even if a serious failure occurs in the CPU module 10 of PLC 1 Data can be exchanged with the communication interfaces 11 and 12 by inter-bus communication. Therefore, as in the case of FIG. 4A described above, switching between the master and the slave is performed by the conventional switching operation due to the failure of the CPU module 10 of the PLC 1.

(動作例2)PLC1のCPUモジュール10で重故障が発生し、パルス信号の発信が不可能な場合の動作例
PLC1のCPUモジュール10で重故障が発生し、CPUモジュール10のマイコン・メモリ・FPGAなど主要な部品が故障した場合、バス間通信やパルス信号発信が不可能となる。そこで、以下の過程S1〜S4が実行されることにより、図3に例示のように、PLC1の通信インタフェース11,12のマスタとスレーブの切り替えが実現する。
(Operation example 2) Operation example when a major failure occurs in the CPU module 10 of the PLC 1 and the pulse signal can not be transmitted A serious failure occurs in the CPU module 10 of the PLC 1, and the microcomputer, memory, and FPGA of the CPU module 10 If a major part breaks down, communication between buses and pulse signal transmission become impossible. Therefore, by executing the following steps S1 to S4, as shown in FIG. 3, switching between the master and the slave of the communication interfaces 11 and 12 of the PLC 1 is realized.

S0:重故障発生
マスタであるPLC1のCPUモジュール10にて重故障が発生し、CPUモジュール10のマイコン,メモリ,FPGAなどの主要な部品が故障し、CPUモジュール10からのバス間通信やパルス信号発信が不可能となる。
S0: Serious failure A serious failure occurs in the CPU module 10 of the PLC 1 that is the master, and the main components such as the microcomputer, memory, and FPGA of the CPU module 10 fail, and inter-bus communication from the CPU module 10 and pulse signals It becomes impossible to send.

S1:通信インタフェース11,12によるパルス信号の送信
PLC1の通信インタフェース11,12が、パルス信号をCPUモジュール10に送信する。
S1: Transmission of Pulse Signal by Communication Interfaces 11, 12 The communication interfaces 11, 12 of the PLC 1 transmit pulse signals to the CPU module 10.

S2:CPUモジュール10,20でのマスタとスレーブの切り替え
PLC1のCPUモジュール10で発生した重故障の情報が、二重化ケーブル3を介した信号により、スレーブであるPLC2のCPUモジュール20に通知される。この通知を受けて、CPUモジュール10,20でのマスタとスレーブの切り替えが行われる。これにより、PLC2のCPUモジュール20が新マスタとなる。一方、PLC1のCPUモジュール10は新スレーブとなる。
S2: Switching of Master and Slave in CPU Modules 10 and 20 The information on the serious failure occurring in the CPU module 10 of the PLC 1 is notified to the CPU module 20 of the PLC 2 which is the slave by a signal through the duplex cable 3. In response to this notification, switching between the master and the slave in the CPU modules 10 and 20 is performed. Thus, the CPU module 20 of the PLC 2 becomes a new master. On the other hand, the CPU module 10 of PLC 1 becomes a new slave.

S3:PLC2のCPUモジュール20と通信インタフェース21,22と間のマスタとスレーブの切り替え
新マスタとなったPLC2のCPUモジュール20は、バス間通信により、通信インタフェース21,22にマスタとスレーブの切り替えを実行させ、さらに、マスタ動作の指示を行う。PLC2の通信インタフェース21,22は、マスタ動作の指示に従い、マスタとして動作する。
S3: Switching of master and slave between CPU module 20 of PLC 2 and communication interfaces 21 and 22 The CPU module 20 of PLC 2 that has become the new master switches masters and slaves to communication interfaces 21 and 22 by inter-bus communication. It is executed, and further, an instruction of the master operation is given. The communication interfaces 21 and 22 of the PLC 2 operate as a master according to the instruction of the master operation.

S4:PLC1の通信インタフェース11,12のスレーブの切り替え
PLC1の通信インタフェース11,12は、CPUモジュール10からのパルス信号を受信できないためパルス信号の異常を検出し、CPUモジュール10でバス間通信やパルス信号発信が不可能な重故障が発生したと認識し、通信インタフェース11,12自身の判断により、スレーブとして動作する。
S4: Switching slaves of communication interfaces 11 and 12 of PLC 1 The communication interfaces 11 and 12 of PLC 1 can not receive a pulse signal from the CPU module 10, and thus detects an abnormality in the pulse signal. It recognizes that a serious failure in which signal transmission is impossible has occurred, and operates as a slave according to the judgment of the communication interfaces 11 and 12 themselves.

以上の過程S1〜S4が実行されることにより、マスタのCPUモジュールでバス間通信やパルス信号発信が不可能な重故障が発生した場合でも、通信インタフェースはマスタからスレーブへ動作モードの変更が可能となる。   By executing the above steps S1 to S4, the communication interface can change the operation mode from the master to the slave even if a serious failure that can not perform inter-bus communication or pulse signal generation occurs in the master CPU module It becomes.

以上のように本実施形態の二重化システムによれば、通信インタフェースのマスタ・スレーブ切り替え方式として、CPUモジュールと通信インタフェース間でパルス信号の送信が行われることにより、通信インタフェースがCPUモジュールの健全性が確認される。これにより、プログラマブルコントローラの二重化システムとしての健全性の診断が強化され、システムの健全性が向上する。   As described above, according to the duplex system of the present embodiment, transmission of pulse signals is performed between the CPU module and the communication interface as a master-slave switching method of the communication interface, whereby the soundness of the communication interface is the CPU module. It is confirmed. This enhances the diagnosis of the soundness of the programmable controller as a redundant system, and improves the soundness of the system.

また、ベース2枚構成のPLCの二重化システムで通信インタフェースのマスタとスレーブの切り替え方式において、CPUモジュールでバス間通信が行えないような重故障が発生した場合でも、パルス信号による検定により通信インタフェース自身の判断により、動作モードをマスタからスレーブに切り替えが可能となる。したがって、二重化システムの健全性がさらに向上したものとなる。   In addition, in the switching system between the master and slave of the communication interface in a duplex system of two PLCs in base configuration, the communication interface itself is verified by the pulse signal test even if a serious failure occurs such that communication between buses can not be performed by the CPU module. The operation mode can be switched from the master to the slave. Therefore, the soundness of the duplex system is further improved.

また、ベース2枚構成PLCの二重化システムで通信インタフェースのマスタとスレーブの切り替え方式としてCPUモジュールでバス間通信が行えないような重故障が発生した場合でも、通信インタフェース自身の判断により、動作モードをマスタからスレーブに切り替えが可能となる。これにより、ベース2枚構成のPLCの通信インタフェースでの両方の通信インタフェースがマスタとして重複して動作する状況を回避できる。   In addition, even in the event of a major failure in which inter-bus communication can not be performed by the CPU module as a switching method between the master and slave of the communication interface in a dual-system PLC two-system configuration, the operation mode is determined by the communication interface itself. It is possible to switch from the master to the slave. As a result, it is possible to avoid a situation in which both communication interfaces in the communication interface of the two base PLCs operate as masters.

尚、本発明は、以上説明した実施形態に限定されるものではなく、本発明の特許請求の範囲内で様々な態様で実施が可能である。   The present invention is not limited to the embodiments described above, and can be implemented in various modes within the scope of the claims of the present invention.

1,2…PLC
10,20…CPUモジュール
11,12,21,22…通信インタフェース
3…二重化ケーブル
1, 2 ... PLC
10, 20 ... CPU modules 11, 12, 21, 22 ... Communication interface 3 ... Duplex cable

Claims (6)

プログラマブルコントローラのデータの等価の際にマスタまたはスレーブとして機能するプログラマブルコントローラであって、
このプログラマブルコントローラがマスタとして機能する場合に当該プログラマブルコントローラのCPUモジュールにパルス信号を発して当該CPUモジュールからの応答信号に基づき当該CPUモジュールの状態を監視するオプションモジュールを備えたことを特徴とするプログラマブルコントローラ。
A programmable controller that functions as a master or a slave during data equalization of the programmable controller,
When this programmable controller functions as a master, the programmable controller is provided with an optional module that issues a pulse signal to the CPU module of the programmable controller and monitors the state of the CPU module based on the response signal from the CPU module. controller.
前記オプションモジュールは、前記CPUモジュールからの応答信号がない場合に当該オプションモジュールの動作モードをマスタからスレーブに切替えることを特徴とする請求項1に記載のプログラマブルコントローラ。   The programmable controller according to claim 1, wherein the option module switches the operation mode of the option module from a master to a slave when there is no response signal from the CPU module. 前記オプションモジュールは、前記プログラマブルコントローラ内での前記CPUモジュールのバス間通信が行えないと判断すると当該オプションモジュールの動作モードをマスタからスレーブに切替えることを特徴とする請求項1に記載のプログラマブルコントローラ。   The programmable controller according to claim 1, wherein the option module switches the operation mode of the option module from the master to the slave when determining that inter-bus communication of the CPU module can not be performed in the programmable controller. 前記プログラマブルコントローラが前記マスタとして機能する場合に、前記CPUモジュールは、このCPUモジュールにおいて異常が発生した場合に、当該プログラマブルコントローラと通信可能な前記スレーブとして機能する他のプログラマブルコントローラに当該異常を通知することを特徴とする請求項1から3のいずれか1項に記載のプログラマブルコントローラ。   When the programmable controller functions as the master, the CPU module notifies another programmable controller functioning as the slave capable of communicating with the programmable controller when an abnormality occurs in the CPU module. The programmable controller according to any one of claims 1 to 3, characterized in that: 前記プログラマブルコントローラが前記スレーブとして機能する場合に、当該スレーブとして機能するプログラマブルコントローラのCPUモジュールは、前記マスタとして機能する他のプログラマブルコントローラのCPUモジュールから異常の通知を受けると、当該スレーブとして機能するプログラマブルコントローラのオプションモジュールに対して動作モードをスレーブからマスタへの切り替えを指示することを特徴とする請求項1から3のいずれか1項に記載のプログラマブルコントローラ。   When the programmable controller functions as the slave, the CPU module of the programmable controller functioning as the slave operates as the slave when notified of an abnormality from the CPU module of another programmable controller functioning as the master The programmable controller according to any one of claims 1 to 3, which instructs the option module of the controller to switch the operation mode from slave to master. マスタとスレーブのデータの等価が可能な二重化システムであって、
前記データの等価のマスタとして機能が可能な請求項1から4のいずれか1項に記載のプログラマブルコントローラと、
前記データの等価のスレーブとして機能が可能な請求項5に記載のプログラマブルコントローラと
を備えたことを特徴とする二重化システム。
It is a duplex system capable of equivalent data of master and slave,
The programmable controller according to any one of claims 1 to 4, which can function as an equivalent master of the data;
The programmable controller according to claim 5, capable of functioning as an equivalent slave of the data.
JP2017247231A 2017-12-25 2017-12-25 Programmable controller and duplex system Active JP7035511B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017247231A JP7035511B2 (en) 2017-12-25 2017-12-25 Programmable controller and duplex system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017247231A JP7035511B2 (en) 2017-12-25 2017-12-25 Programmable controller and duplex system

Publications (2)

Publication Number Publication Date
JP2019114073A true JP2019114073A (en) 2019-07-11
JP7035511B2 JP7035511B2 (en) 2022-03-15

Family

ID=67222637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017247231A Active JP7035511B2 (en) 2017-12-25 2017-12-25 Programmable controller and duplex system

Country Status (1)

Country Link
JP (1) JP7035511B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112415946A (en) * 2020-12-01 2021-02-26 华能鹤岗发电有限公司 Method and device for monitoring communication state of PLC (programmable logic controller) lower computer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09307574A (en) * 1996-05-17 1997-11-28 Mitsubishi Electric Corp Network system for dual controller
JP2002247037A (en) * 2001-02-22 2002-08-30 Toshiba Corp Monitor and control system
JP2012134713A (en) * 2010-12-21 2012-07-12 Panasonic Corp Monitoring system, monitoring information transmission device and program, and monitoring information reception device and program
WO2015111174A1 (en) * 2014-01-23 2015-07-30 三菱電機株式会社 Programmable controller and programmable controller system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09307574A (en) * 1996-05-17 1997-11-28 Mitsubishi Electric Corp Network system for dual controller
JP2002247037A (en) * 2001-02-22 2002-08-30 Toshiba Corp Monitor and control system
JP2012134713A (en) * 2010-12-21 2012-07-12 Panasonic Corp Monitoring system, monitoring information transmission device and program, and monitoring information reception device and program
WO2015111174A1 (en) * 2014-01-23 2015-07-30 三菱電機株式会社 Programmable controller and programmable controller system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112415946A (en) * 2020-12-01 2021-02-26 华能鹤岗发电有限公司 Method and device for monitoring communication state of PLC (programmable logic controller) lower computer
CN112415946B (en) * 2020-12-01 2022-07-29 华能鹤岗发电有限公司 Method and device for monitoring communication state of PLC (programmable logic controller) lower computer

Also Published As

Publication number Publication date
JP7035511B2 (en) 2022-03-15

Similar Documents

Publication Publication Date Title
JP4776374B2 (en) Redundant supervisory control system and redundant switching method for the same system
US7120820B2 (en) Redundant control system and control computer and peripheral unit for a control system of this type
US9170569B2 (en) Method for electing an active master device from two redundant master devices
CN101609421B (en) Duplexed operation processor control system, and duplexed operation processor control method
RU2510932C2 (en) Automation system and method of controlling automation system
CN103246213A (en) Alternative synchronisation connections between redundant control units
JP7028078B2 (en) PLC duplication system switching method, PLC duplication system switching method
JP5554292B2 (en) Redundant controller
JP2004054907A (en) Programmable controller and cpu unit, and communication unit and method for controlling communication unit
JP5706347B2 (en) Redundant control system
JP7035511B2 (en) Programmable controller and duplex system
US9003067B2 (en) Network and method for operating the network
KR20160142440A (en) Inverter controlling method
JP2013025358A (en) Field communication system
WO2011074147A1 (en) Redundant control device
JP4788597B2 (en) Programmable controller redundant system
CN104301145A (en) Network device and console configuration method for network device
JP2008181240A (en) Redundant distributing control system
JP2008299658A (en) Monitoring control system
JP3302499B2 (en) Double system equipment
JP2017114406A (en) Network system
JP2010136038A (en) Transmitter, and method for switching system in redundant configuration
JP4239784B2 (en) Distributed control device
JP2013088897A (en) Duplex control device and method for suppressing operation of self system thereof
KR20190007738A (en) Remote input-output apparatus for industrial controllers with duplicated power and compler module

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200917

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210526

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210615

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210802

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220214

R150 Certificate of patent or registration of utility model

Ref document number: 7035511

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150