JP2003345407A - Data equivalence method among duplexed plcs - Google Patents

Data equivalence method among duplexed plcs

Info

Publication number
JP2003345407A
JP2003345407A JP2002156607A JP2002156607A JP2003345407A JP 2003345407 A JP2003345407 A JP 2003345407A JP 2002156607 A JP2002156607 A JP 2002156607A JP 2002156607 A JP2002156607 A JP 2002156607A JP 2003345407 A JP2003345407 A JP 2003345407A
Authority
JP
Japan
Prior art keywords
data
memory
data memory
plc
plcs
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.)
Pending
Application number
JP2002156607A
Other languages
Japanese (ja)
Inventor
Masaru Muranaka
優 村中
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 JP2002156607A priority Critical patent/JP2003345407A/en
Publication of JP2003345407A publication Critical patent/JP2003345407A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that when an unoccupied time of a CPU is utilized for data memory equivalence of duplexed PLCs, the CPU's load increases and its processing speed is adversely affected. <P>SOLUTION: A data memory 11B of a CPU of a PLC1 on a master side is composed by a dual port memory. A current data memory 13B of a duplexed interface 13 reads data from one of the ports of the dual port memory on a steady basis. A previous value data memory 13C copies data of a current data memory at the time of completion of data reading. Equivalence processing parts 13A and 14A transfer data of the previous value data memory to a data memory 12B of a PLC2 on a slave side in the event of occurrence of abnormality in the PLC on the master side and obtain data equivalence. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、PLC(プログラ
マブル・ロジック・コントローラ)を二重化したコンピ
ュータシステムにおける二重化PLC間のデータ等価方
式に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a data equalization method between duplicated PLCs in a computer system in which PLCs (Programmable Logic Controllers) are duplicated.

【0002】[0002]

【従来の技術】一般に、監視制御システムなど、高信頼
性を要求されるコンピュータシステムは、しばしば二重
化され、システム運用において一方の系が故障した場合
に他方の系に切換え、システム運用の継続を可能にす
る。
2. Description of the Related Art In general, computer systems requiring high reliability, such as supervisory control systems, are often duplicated, and when one system fails in system operation, it is switched to the other system to enable continuous system operation. To

【0003】図2は、PLCを二重化した監視制御シス
テムの要部構成を示す。PLC1およびPLC2は、電
源ボード(POW)と演算処理ボード(CPU)と二重
化インターフェースとネットワークインターフェースお
よび機器インターフェースの各ボードをそれぞれ搭載し
ている。このようなハードウェア構成になるPLC1、
2は、ネットワークを介してホストコンピュータ3との
間の通信を可能にし、現場機器群に対するコントローラ
部4から収集する監視情報をホストコンピュータ3に伝
送し、ホストコンピュータ3からの制御情報をコントロ
ーラ部4に伝送する機能を持つソフトウェア構成を搭載
する。
FIG. 2 shows a main configuration of a supervisory control system in which PLCs are duplicated. The PLC1 and the PLC2 are equipped with a power supply board (POW), a processing board (CPU), a duplex interface, a network interface, and a device interface, respectively. PLC1 having such a hardware configuration,
2 enables communication with the host computer 3 via the network, transmits monitoring information collected from the controller unit 4 for the group of field devices to the host computer 3, and transmits control information from the host computer 3 to the controller unit 4. Equipped with a software configuration that has the function of transmitting data to

【0004】ここで、PLC1を例えばマスタ側とし、
PLC2をスレーブ側とし、通常時にはマスタPLC1
が入力処理と演算処理した結果を出力し、スレーブPL
C2はマスタPLC1と並行して同じ入力処理と演算処
理を行い同じ処理データを保存しておくが、出力はロッ
クしておく。そして、マスタPLC1に異常が発生した
とき、スレーブPLC2をマスタ側にする切換えを行
い、PLC2によるシステム運用を継続する。
Here, the PLC 1 is, for example, a master side,
PLC2 is the slave side, and normally the master PLC1
Outputs the result of the input processing and the arithmetic processing, and outputs
C2 performs the same input processing and arithmetic processing in parallel with the master PLC1 and stores the same processing data, but locks the output. Then, when an abnormality occurs in the master PLC1, switching is performed to set the slave PLC2 to the master side, and the system operation by the PLC2 is continued.

【0005】[0005]

【発明が解決しようとする課題】図3は、PLCのメモ
リ構成例を示し、データメモリには、基本データとDF
Cデータおよび機器用データのメモリ領域をそれぞれ設
ける。また、プログラムメモリには、ラダープログラム
と共通サブルーチンプログラムとDFC・機器プログラ
ムおよび拡張演算プログラムのメモリ領域をそれぞれ設
ける。
FIG. 3 shows an example of a memory configuration of a PLC. Basic data and DF are stored in a data memory.
Memory areas for C data and device data are provided. The program memory is provided with memory areas for a ladder program, a common subroutine program, a DFC / device program, and an extended operation program.

【0006】このようなメモリ構成になる二重化PLC
において、マスタ側PLCのデータに対してスレーブP
LCのそれを等価しておくデータ等価方式は、以下のよ
うにされる。
A dual PLC having such a memory configuration
At the slave PLC for the data of the master side PLC.
The data equalization method for keeping the LC equivalent is as follows.

【0007】(1)イニシャル等価 システムの立ち上げ時に、両PLCのメモリ領域のすべ
てのデータメモリ領域を等価する。
(1) When starting up the initial equivalent system, all data memory areas of the memory areas of both PLCs are equalized.

【0008】(2)常時等価 CPUの空き時間を利用し、数回に分けてすべてのデー
タメモリ領域を等価する。
(2) All data memory areas are equalized in several times by always using the idle time of the equivalent CPU.

【0009】(3)プログラム変更時の等価 マスタ側のプログラムが変更されたときに、スレーブ側
のプログラムメモリを等価する。
(3) Equivalence at the time of program change When the program on the master side is changed, the program memory on the slave side is made equivalent.

【0010】以上までのデータ等価のうち、常時等価
は、CPUの負荷を高くすることになり、データメモリ
容量が大きくなるシステムでは、CPUの処理速度に影
響を及ぼしてしまう問題があった。
[0010] Of the data equivalents described above, the constant equalization increases the load on the CPU, and in a system with a large data memory capacity, there is a problem that the processing speed of the CPU is affected.

【0011】本発明の目的は、上記の課題を解決した二
重化PLC間のデータ等価方式を提供することにある。
An object of the present invention is to provide a data equalization method between duplex PLCs which solves the above problems.

【0012】[0012]

【課題を解決するための手段】本発明は、前記の課題を
解決するため、CPUのデータメモリをデュアルポート
メモリとし、マスタ側PLCの二重化インターフェース
はカレントデータメモリと前回値データメモリを設け、
デュアルポートメモリの一方のポートからカレントデー
タメモリにデータを常時読み込み、この読み込み完了で
カレントデータメモリから前回値データメモリにコピー
しておき、マスタ側PLCに異常発生したときに前回値
データメモリのデータをスレーブ側PLCに転送するデ
ータ等価処理を行うようにしたもので、以下の方式を特
徴とする。
According to the present invention, in order to solve the above-mentioned problems, the data memory of the CPU is a dual-port memory, and the duplex interface of the master PLC is provided with a current data memory and a previous value data memory.
The data is always read from one port of the dual port memory to the current data memory, and when the reading is completed, the data is copied from the current data memory to the previous value data memory. Is transferred to the slave PLC, and is characterized by the following method.

【0013】システムにマスタ側PLCとスレーブ側P
LCを設け、マスタ側PLCの演算処理ボードに設ける
データメモリのデータとプログラムメモリのデータをス
レーブ側PLCのデータメモリとプログラムメモリにそ
れぞれ等価する二重化インターフェースを両PLCに設
けた二重化PLC間のデータ等価方式であって、前記マ
スタ側PLCの演算処理ボードのデータメモリはデュア
ルポートメモリで構成し、前記マスタ側PLCの二重化
インターフェースは、前記デュアルポートメモリの一方
のポートからデータを常時読み込むカレントデータメモ
リと、このカレントデータメモリのデータ読み込み完了
で該データをコピーしておく前回値データメモリとを設
け、前記マスタ側PLCに異常発生したときに前記前回
値データメモリのデータを前記スレーブ側PLCに転送
するデータ等価処理を行うことを特徴とする。
The system has a master PLC and a slave P
An LC is provided, and a duplex interface is provided in both PLCs, in which a data interface and a program memory data provided on a processing board of the master PLC are provided in both PLCs. The data memory of the arithmetic processing board of the master-side PLC comprises a dual-port memory, and the dual interface of the master-side PLC includes a current data memory for constantly reading data from one port of the dual-port memory. A previous value data memory for copying the data when the data reading of the current data memory is completed, and transferring the data of the previous value data memory to the slave PLC when an abnormality occurs in the master PLC. Data equivalency processing And performing.

【0014】[0014]

【発明の実施の形態】図1は、本発明の実施形態を示す
二重化PLCの要部構成図である。PLC1、2のCP
U11、12には、それぞれプログラムメモリ11A、
12Aとデータメモリ11B、12Bを搭載し、監視制
御処理に必要なプログラムおよびデータを保存及びデー
タ処理を行う。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing a main part of a duplexed PLC showing an embodiment of the present invention. PLC1 and 2 CP
U11 and U12 have program memories 11A,
12A and data memories 11B and 12B are mounted to store programs and data necessary for monitoring control processing and perform data processing.

【0015】PLC1、2の二重化インターフェース1
3、14には、それぞれ等価処理部13A、14Aを搭
載し、PLC1、2間のデータ等価処理を行う。
Dual interface 1 for PLCs 1 and 2
Equivalent processing units 13A and 14A are mounted on 3 and 14, respectively, and perform data equalization processing between the PLCs 1 and 2.

【0016】ここで、本実施形態では、データメモリ1
1Bをデュアルポートメモリとし、二重化インターフェ
ース13にはカレントデータメモリ13Bと前回値デー
タメモリ13Cを搭載する。二重化インターフェース1
3は、そのカレントデータメモリ13Bには、デュアル
ポートメモリになるデータメモリ11Bの一方のメモリ
データを逐次読み込み、前回値データメモリ13Cには
カレントデータメモリ13Bの読み込み終了時にそのデ
ータをコピーする処理を行う。
Here, in the present embodiment, the data memory 1
1B is a dual port memory, and the duplicated interface 13 includes a current data memory 13B and a previous value data memory 13C. Redundant interface 1
3 is a process for sequentially reading one memory data of the data memory 11B to be a dual port memory into the current data memory 13B, and copying the data into the previous value data memory 13C at the end of the reading of the current data memory 13B. Do.

【0017】以上の構成において、プログラム変更時の
データ等価は、従来と同じに、等価処理部13A、14
Aによりプログラムメモリ11Aと12A間のデータ読
み出し/書き込み処理でなされる。
In the above configuration, data equalization at the time of program change is performed in the same manner as in the prior art, by the equalization processing units 13A and 13A.
A performs data read / write processing between the program memories 11A and 12A.

【0018】また、イニシャル等価は、データメモリ1
1Bと12B間のデータ読み出し/書き込み処理でなさ
れる。このイニシャル等価処理は、メモリ11Bから等
価処理部13A,14Aを通して直接にデータメモリ1
2Bに転送するか、データメモリ13B、13Cを介し
てデータ転送するかのいずれでもよい。
[0018] The initial equivalent is the data memory 1
This is performed in data read / write processing between 1B and 12B. This initial equivalence processing is performed directly from the memory 11B through the equivalence processing units 13A and 14A.
2B or data via the data memories 13B and 13C.

【0019】次に、常時等価は、従来の方式、つまりC
PUの空き時間を利用した複数回に分けたデータ読み込
み/書き込みを行わず、CPUの空き時間とは無関係に
デュアルポートメモリになるデータメモリ11Bの一方
のポートのデータをカレントデータメモリ13Bに常時
読み出し/書き込みを行い、この読み出し/書き込みの
1回が完了したときに、カレントデータメモリ13Bの
データを前回値データメモリ13Cにコピーしておく。
このカレントデータメモリ13Bと前回値データメモリ
13Cによるデータコピー処理は、データメモリ11B
からカレントデータメモリ13Bへの読み込み中に、異
常切換条件が発生したときにデータ欠落やデータバケが
発生するのを防止する。
Next, the constant equivalent is the conventional method, that is, C
The data is not read / written in a plurality of times using the idle time of the PU, and the data of one port of the data memory 11B which becomes a dual port memory is always read to the current data memory 13B regardless of the idle time of the CPU. / Write, and when this read / write operation is completed once, the data in the current data memory 13B is copied to the previous value data memory 13C.
The data copy processing by the current data memory 13B and the previous value data memory 13C is performed by the data memory 11B.
When an abnormal switching condition occurs while data is being read into the current data memory 13B, data loss or data buckling is prevented.

【0020】そして、CPU11がマスタ側PLC1の
異常発生を検出したとき、これを異常切換条件としてC
PU11から二重化インターフェース13に通知し、こ
の通知により等価処理部13Aはデータメモリ13Cに
書き込まれたデータを読み出し、このデータを等価処理
部14Aがデータメモリ12Bへの転送処理を行い、ス
レーブ側PLC2CPU12によるシステム運用を継続
する。
When the CPU 11 detects the occurrence of an abnormality in the master-side PLC 1, the CPU 11 uses this as an abnormality switching condition.
The PU 11 notifies the duplex interface 13, the equivalent processing unit 13A reads the data written in the data memory 13C, the equivalent processing unit 14A transfers the data to the data memory 12B, and the slave PLC 2 CPU 12 Continue system operation.

【0021】したがって、本実施形態によれば、データ
の常時等価にはデュアルポートメモリになるデータメモ
リ11Bからデータ読み出しを常時実行しておくが、こ
れはCPUに負荷を与えることがない。また、マスタ側
PLCからスレーブ側PLCへのデータ等価は、異常切
換条件が成立したときのみ行うため、PLC間で常時等
価する従来方式に比べて無駄な処理が不要となり、デー
タ等価処理が簡易になる。
Therefore, according to the present embodiment, data is always read from the data memory 11B, which is a dual port memory, so that the data is always equivalent, but this does not impose a load on the CPU. Further, since the data equalization from the master PLC to the slave PLC is performed only when the abnormal switching condition is satisfied, wasteful processing is not required as compared with the conventional method in which the PLCs are always equalized, and the data equalization processing is simplified. Become.

【0022】[0022]

【発明の効果】以上のとおり、本発明によれば、CPU
のデータメモリをデュアルポートメモリとし、マスタ側
PLCの二重化インターフェースはカレントデータメモ
リと前回値データメモリを設け、デュアルポートメモリ
の一方のポートからカレントデータメモリにデータを常
時読み込み、この読み込み完了でカレントデータメモリ
から前回値データメモリにコピーしておき、マスタ側P
LCに異常発生したときに前回値データメモリのデータ
をスレーブ側PLCに転送するデータ等価処理方式とし
たため、CPUの負荷を高くすることなく、データメモ
リ容量が大きくなるシステムでもCPUの処理速度に影
響を及ぼすことがない。
As described above, according to the present invention, the CPU
The dual memory of the master PLC is provided with a current data memory and a previous value data memory. Data is always read from one port of the dual port memory to the current data memory. Copy from the memory to the previous value data memory
The data equivalent processing method of transferring the data of the previous value data memory to the slave PLC when an abnormality occurs in the LC. This has an effect on the processing speed of the CPU even in a system with a large data memory capacity without increasing the load on the CPU. Has no effect.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施形態を示す二重化PLCの要部構
成図。
FIG. 1 is a main part configuration diagram of a duplexed PLC showing an embodiment of the present invention.

【図2】二重化PLCシステムの例。FIG. 2 shows an example of a duplicated PLC system.

【図3】PLCのメモリ構成例。FIG. 3 is an example of a memory configuration of a PLC.

【符号の説明】[Explanation of symbols]

1、2…PLC 11、12…CPU 13、14…二重化インターフェース 11A,12A…プログラムメモリ 11B,12B…データメモリ 13A,14A…等価処理部 13B…カレントデータメモリ 13C…前回値データメモリ 1, 2, ... PLC 11, 12 ... CPU 13, 14 ... Duplex interface 11A, 12A: Program memory 11B, 12B ... data memory 13A, 14A: Equivalent processing unit 13B: Current data memory 13C: Previous value data memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 システムにマスタ側PLCとスレーブ側
PLCを設け、マスタ側PLCの演算処理ボードに設け
るデータメモリのデータとプログラムメモリのデータを
スレーブ側PLCのデータメモリとプログラムメモリに
それぞれ等価する二重化インターフェースを両PLCに
設けたPLC間のデータ等価方式であって、 前記マスタ側PLCの演算処理ボードのデータメモリは
デュアルポートメモリで構成し、 前記マスタ側PLCの二重化インターフェースは、前記
デュアルポートメモリの一方のポートからデータを常時
読み込むカレントデータメモリと、このカレントデータ
メモリのデータ読み込み完了で該データをコピーしてお
く前回値データメモリとを設け、 前記マスタ側PLCに異常発生したときに前記前回値デ
ータメモリのデータを前記スレーブ側PLCに転送する
データ等価処理を行うことを特徴とする二重化PLC間
のデータ等価方式。
1. A system in which a master-side PLC and a slave-side PLC are provided, and data in a data memory and data in a program memory provided on an arithmetic processing board of the master-side PLC are duplicated to be equivalent to the data memory and the program memory of the slave-side PLC, respectively. An interface is a data equalization method between PLCs provided in both PLCs, wherein a data memory of an arithmetic processing board of the master PLC is constituted by a dual port memory, and a duplicated interface of the master PLC is a dual port memory of the dual PLC memory. A current data memory for constantly reading data from one port; and a previous value data memory for copying the data upon completion of data reading of the current data memory. Data in data memory A data equalization method for transferring data to the slave-side PLC.
JP2002156607A 2002-05-30 2002-05-30 Data equivalence method among duplexed plcs Pending JP2003345407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002156607A JP2003345407A (en) 2002-05-30 2002-05-30 Data equivalence method among duplexed plcs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002156607A JP2003345407A (en) 2002-05-30 2002-05-30 Data equivalence method among duplexed plcs

Publications (1)

Publication Number Publication Date
JP2003345407A true JP2003345407A (en) 2003-12-05

Family

ID=29772766

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002156607A Pending JP2003345407A (en) 2002-05-30 2002-05-30 Data equivalence method among duplexed plcs

Country Status (1)

Country Link
JP (1) JP2003345407A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1993232A1 (en) * 2007-05-18 2008-11-19 NEC Infrontia Corporation Main device redundancy configuration and main device replacing method
EP2001163A3 (en) * 2007-05-21 2008-12-17 NEC Infrontia Corporation Slot interface access device and slot interface access method
EP2003814A3 (en) * 2007-05-21 2008-12-24 NEC Infrontia Corporation Slot interface access device, slot interface access method, and program therefor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1993232A1 (en) * 2007-05-18 2008-11-19 NEC Infrontia Corporation Main device redundancy configuration and main device replacing method
US8473774B2 (en) 2007-05-18 2013-06-25 Nec Infrontia Corporation Main device redundancy configuration and main device replacing method
EP2001163A3 (en) * 2007-05-21 2008-12-17 NEC Infrontia Corporation Slot interface access device and slot interface access method
EP2003814A3 (en) * 2007-05-21 2008-12-24 NEC Infrontia Corporation Slot interface access device, slot interface access method, and program therefor
US7761639B2 (en) 2007-05-21 2010-07-20 Nec Infrontia Corporation Slot interface access device and slot interface access method

Similar Documents

Publication Publication Date Title
CA2594066A1 (en) Redundancy coupler for industrial communications networks
JP2005018193A (en) Interface command control method for disk device, and computer system
WO2020047780A1 (en) Redundant hot standby control system and control device, redundant hot standby method and computer-readable storage medium
JP2007280313A (en) Redundant system
JP2003345407A (en) Data equivalence method among duplexed plcs
CN112000286A (en) Four-control full-flash-memory storage system and fault processing method and device thereof
JPS63231652A (en) Memory copy system for control system
JPH01118921A (en) Control method for duplex disk
JP3861769B2 (en) Duplex switching method for duplex control system
JP2799104B2 (en) Redundant switching device for programmable controller
JP4679178B2 (en) Communication device and memory device
JP2000132210A (en) Controller and cooperation controlling method
KR19980067077A (en) Redundant Control System and Its Control Method
US7761610B2 (en) Methods and computer program products for defining synchronous replication devices in a subchannel set other than subchannel set zero
JP2716571B2 (en) Redundant data security device
KR20000021045A (en) Method and system for performing dual operating of computer control
JPH0474739B2 (en)
JP2737480B2 (en) Method and apparatus for switching redundant communication control device
JPH08329027A (en) Method and system for cross-call disk access for central processing dual system
JPS62179044A (en) Multicomputer system
US20090182996A1 (en) Methods and Computer Program Products for Swapping Synchronous Replication Secondaries from a Subchannel Set Other Than Zero to Subchannel Set Zero Using Dynamic I/O
JPS638500B2 (en)
JPH09190371A (en) Device for making storage of computer system equivalent
JP3775275B2 (en) Redundant system, its master device, slave device
JPS5994160A (en) Data equalizing system of composite electronic computer system