JP2966966B2 - Redundant device for programmable controller - Google Patents

Redundant device for programmable controller

Info

Publication number
JP2966966B2
JP2966966B2 JP3130018A JP13001891A JP2966966B2 JP 2966966 B2 JP2966966 B2 JP 2966966B2 JP 3130018 A JP3130018 A JP 3130018A JP 13001891 A JP13001891 A JP 13001891A JP 2966966 B2 JP2966966 B2 JP 2966966B2
Authority
JP
Japan
Prior art keywords
phase
controller
bus
status
data
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.)
Expired - Lifetime
Application number
JP3130018A
Other languages
Japanese (ja)
Other versions
JPH04354004A (en
Inventor
浩一 甲斐
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP3130018A priority Critical patent/JP2966966B2/en
Publication of JPH04354004A publication Critical patent/JPH04354004A/en
Application granted granted Critical
Publication of JP2966966B2 publication Critical patent/JP2966966B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Safety Devices In Control Systems (AREA)
  • Programmable Controllers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばプラントシステ
ム制御用のプログラマブルコントローラでシステムダウ
ンが許されない制御で使用される待機方式プログラマブ
ルコントローラの二重化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a redundant system of a standby type programmable controller which is used in a control for which a system down is not allowed in a programmable controller for controlling a plant system, for example.

【0002】[0002]

【従来の技術】従来、この種のプログラマブルコントロ
ーラの二重化装置の一例として、図13に示すように構
成したものがある。これは2つのプログラマブルコント
ローラPC1(以下コントローラ1と呼ぶ),プログラ
マブルコントローラPC2(以下コントローラ2と呼
ぶ)の間に、二重化ユニット3を配置している。
2. Description of the Related Art Conventionally, as an example of such a type of a redundant controller for a programmable controller, there is one configured as shown in FIG. In this configuration, a duplex unit 3 is arranged between two programmable controllers PC1 (hereinafter, referred to as a controller 1) and a programmable controller PC2 (hereinafter, referred to as a controller 2).

【0003】二重化ユニット3には、互いのコントロー
ラ1,2を監視する監視部5、この監視部5の監視結果
から稼動側と待機側の切り換え信号を制御し、およびド
ッキングデータの送受信状態をコントローラ1,2へ入
出力する二重化制御部6と、バッファメモリ7を有して
いる。
The duplexing unit 3 includes a monitoring unit 5 that monitors the controllers 1 and 2 of each other, controls a switching signal between the active side and the standby side based on the monitoring result of the monitoring unit 5, and controls the transmission / reception state of docking data. It has a duplex control unit 6 for inputting and outputting data to 1 and 2 and a buffer memory 7.

【0004】そして、監視部5とコントローラ1の間
に、コントローラ1の動作状態を通知検出するためのス
テータバス(STS1)8を配置し、また監視部5とコ
ントローラ2の間に、コントローラ2の動作状態を通知
検出するためのステータスバス(STS2)9を配置し
ている。
A stator bus (STS1) 8 for notifying and detecting the operating state of the controller 1 is arranged between the monitoring unit 5 and the controller 1, and between the monitoring unit 5 and the controller 2, A status bus (STS2) 9 for notifying and detecting an operation state is provided.

【0005】二重化制御部6とコントローラ1の間に、
切り換え信号とトラッキングデータの送受信を通知する
割込バス10(INT1)とコントロールバス12(C
NT1)をそれぞれ配置し、また二重化制御部6とコン
トローラ2の間に、切り換え信号とトラッキングデータ
の送受信を通知する割込バス11(INT2)とコント
ロールバス13(CNT2)を配置している。
[0005] Between the dual control unit 6 and the controller 1,
An interrupt bus 10 (INT1) for notifying the transmission and reception of the switching signal and the tracking data and a control bus 12 (C
NT1), and an interrupt bus 11 (INT2) and a control bus 13 (CNT2) for notifying transmission / reception of a switching signal and tracking data are disposed between the duplex control unit 6 and the controller 2.

【0006】さらに、バッファメモリ7とコントローラ
1の間に、トラッキングデータを送受信するためのデー
タバス(DBS1)14を配置し、バッファメモリ7と
コントローラ2の間に、トラッキングデータを送受信す
るためのデータバス(DBS2)15を配置している。
コントローラ1とI/Oユニット4の間に、IOバス
(IOBS1)16を配置し、コントローラ2とI/O
ユニット4の間に、IOバス(IOBS2)17を配置
している。
A data bus (DBS1) 14 for transmitting and receiving tracking data is arranged between the buffer memory 7 and the controller 1, and a data bus for transmitting and receiving tracking data between the buffer memory 7 and the controller 2. A bus (DBS2) 15 is provided.
An IO bus (IOBS1) 16 is arranged between the controller 1 and the I / O unit 4, and the I / O unit 4
An IO bus (IOBS2) 17 is arranged between the units 4.

【0007】今、コントローラ1が稼動側、コントロー
ラ2を待機側とすると、二重化ユニット3の監視部5は
ステータスバス8,9を介して、両方のコントローラ
1,2の状態を把握する。稼動側のコントローラ1は、
制御結果であるトラッキングデータを周期的にデータバ
ス14を通して二重化ユニット3のバッファメモリ7に
書き込み、書き終わったらコントロールバス12を介し
て二重化ユニット3の二重化制御部6に通知し、二重化
制御部6は割込バス11を介して待機側のコントローラ
2へ通知すると、待機側のコントローラ2はデータバス
15を介してトラッキングデータを読み出し自分に取り
込む。読み出しが完了したらコントロールバス13を介
して二重化ユニット3の二重化制御部6へ通知する。二
重化制御部6は、それを受けて稼動側のコントローラ1
へ割込バス10を介して読み出し完了を通知する。この
間は稼動側系のコントローラ1は次の周期のトラッキン
グデータを書き込むことはしない。
Now, assuming that the controller 1 is on the operating side and the controller 2 is on the standby side, the monitoring unit 5 of the duplex unit 3 grasps the status of both controllers 1 and 2 via the status buses 8 and 9. The working controller 1
The tracking data, which is the control result, is periodically written to the buffer memory 7 of the duplex unit 3 via the data bus 14, and when the writing is completed, it is notified to the duplex control unit 6 of the duplex unit 3 via the control bus 12, and the duplex control unit 6 When the standby controller 2 is notified via the interrupt bus 11, the standby controller 2 reads out the tracking data via the data bus 15 and takes in the tracking data. When the reading is completed, it notifies the duplication control unit 6 of the duplication unit 3 via the control bus 13. The duplication control unit 6 receives the request, and operates the controller 1 on the operation side.
The completion of reading is notified via the interrupt bus 10. During this time, the controller 1 of the operating system does not write the tracking data of the next cycle.

【0008】今仮に、稼動側のコントローラ1が致命的
な異常でダウンしたとすると、二重化ユニット3はステ
ータスバス8を介してそれを検知し、二重化制御部6で
割込バス11を通して待機側のコントローラ2へ切り換
え信号を通知する。待機側のコントローラ2は切り換え
信号を受けると、稼動側に立ち上がりそれまでに取り込
んでいるトラッキングデータを基に制御を継続実行す
る。
If the controller 1 on the operating side goes down due to a fatal abnormality, the duplexing unit 3 detects this via the status bus 8 and the duplexing control unit 6 sends it to the standby side via the interrupt bus 11. The switching signal is notified to the controller 2. When the controller 2 on the standby side receives the switching signal, it rises to the operating side and continues to execute the control based on the tracking data that has been captured so far.

【0009】[0009]

【発明が解決しようとする課題】以上述べた従来の方式
では、二重化ユニット3が常に間に介入しながら二重化
システムが成り立っている。従って、二重化ユニット3
は高信頼性が要求されるものでなくてはならない。
In the conventional system described above, a duplex system is established while the duplex unit 3 always intervenes. Therefore, the redundant unit 3
Must have high reliability.

【0010】そこで、本発明は、二重化ユニットを使用
しないでもコントローラの機能のみでお互いの動作状態
監視とトラッキングデータの送受信が可能であって、相
手の動作状態を常時検出しバックアップ動作を高精度で
制御することができるプログラマブルコントローラの二
重化装置を提供することを目的とする。
Therefore, the present invention can monitor the operation state of each other and transmit and receive tracking data only by the function of the controller without using the redundant unit, and can always detect the operation state of the other party and perform the backup operation with high accuracy. An object of the present invention is to provide a programmable controller duplex device that can be controlled.

【0011】[0011]

【課題を解決するための手段】本発明は前記目的を達成
するため、2つのプログラムコントローラのうち、一方
が稼動状態で、かつ他方がバックアップに備えて待機状
態となり、前記各プログラムコントローラ間で互いに相
手の状態を監視し、稼動側がダウンしたら待機側がそれ
を検知し稼動側の制御を継続して実行し、システムダウ
ンを防ぐものであって、互いに相手のプログラマブルコ
ントローラの状態を検知及び通知するためのステータス
/コマンドバスとそれをインタフェイスするステータス
/コマンドバス入出力ポートと、前記プログラマブルコ
ントローラがバックアップ時に制御を継続して実行する
ためのデータとなる実行結果情報を相手のプログラマブ
ルコントローラに転送するためのデータバスとそれをイ
ンタフェイスするデータバスインタフェイスと、前記実
行結果情報を受信及び送信するためのバッファとを備え
プログラマブルコントローラの二重化装置において、
自分のプロセスコントローラの実行状態を複数のフェイ
ズに分け互いにそれをステータス/コマンドバスを介し
て相手のプロセスコントローラに常時通知し、相手のプ
ロセスコントローラフェイズと自分のプロセスコントロ
ーラのフェイズから自分のプロセスコントローラの次に
遷移すべきフェイズを決定するためのフェイズ管理テー
ブルと、を具備し、次のバックアップ動作処理を制御す
ることを特徴としたものである。
According to the present invention, to achieve the above object, one of the two program controllers is in an operating state and the other is in a standby state in preparation for backup. monitoring the state of a partner, working side detects that it waiter Once down continues executing control operation side, there is to prevent the system down, detecting and notifying the state of the programmable controller of the other party to each other physician Status / command bus and status / command bus input / output port for interfacing the same, and execution result information which is data for the programmable controller to continuously execute control at the time of backup to the partner programmable controller. Data bus and interface with it It comprises a chromatography data bus interface, and a buffer for receiving and transmitting the execution result information
In a programmable controller redundant device,
It divides the execution state of its own process controller into a plurality of phases and constantly notifies each of them via the status / command bus to the other process controller. From the other process controller phase and its own process controller phase, the And a phase management table for determining a phase to be changed next , and controlling the next backup operation processing.

【0012】[0012]

【作用】本発明によれば、ステータス/コマンドバスと
それをインタフェイスするステータス/コマンド入出力
ポートと、データバスとそれをインタフェイスするデー
タバスインタフェイスを設けるだけで、二重化ユニット
を用いないでも信頼度の高いプログラマブルコントロー
ラの二重化装置を構成することができる。
According to the present invention, only a status / command bus, a status / command input / output port for interfacing the status / command bus, and a data bus and a data bus interface for interfacing the data bus are provided. A highly reliable programmable controller duplication device can be configured.

【0013】[0013]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は本発明の概略構成を示すブロック図
であり、プログラマブルコントローラPC1(以下コン
トローラ20と呼ぶ)、プログラマブルコントローラP
C2(以下コントローラ21と呼ぶ)は、以下のように
構成され、両者間はステータス/コマンドバス30およ
びデータバス31が配置されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of the present invention, in which a programmable controller PC1 (hereinafter referred to as a controller 20), a programmable controller P
C2 (hereinafter referred to as the controller 21) is configured as follows, and a status / command bus 30 and a data bus 31 are arranged between them.

【0014】コントローラ20,21は、いずれも同一
構成であって、全体制御を司り、送受信モード、リセッ
トモードに切換えるリセット信号線からリセット信号を
出力するプロセッサ22,23と、
The controllers 20 and 21 have the same configuration, control the entire system, and output a reset signal from a reset signal line for switching between a transmission / reception mode and a reset mode.

【0015】ステータス/コマンドバス30を介して双
方向にステータス信号とコマンド信号をやり取りするこ
とが可能で、かつコマンド信号を送ることにより相手に
割り込みを発生させることが可能で、さらにプロセッサ
22,23からリセット信号線32,33に対してリセ
ット信号を出すことにより、ステータス信号の出力をゼ
ロリセットすることが可能なステータス/コマンド入出
力ポート24,25と、受信したトラッキングデータを
一時的に記憶するためのバッファメモリ28,29と、
バッファメモリ28,29間を接続するデータバス31
と、
A status signal and a command signal can be exchanged bidirectionally via a status / command bus 30, and an interrupt can be generated in a partner by sending a command signal. The status / command input / output ports 24 and 25 capable of resetting the status signal output to zero by issuing a reset signal to the reset signal lines 32 and 33 from, and temporarily store the received tracking data. Buffer memories 28 and 29 for
Data bus 31 connecting between buffer memories 28 and 29
When,

【0016】バッファメモリ28,29とメインバス3
4,35との間をインタフェイスし、双方向のデータの
やり取りが可能で、かつプロセッサ22,23からリセ
ット信号線32,33からのリセット信号により送受信
モードとリセットモードに切り換えることが可能で、さ
らに送受信モードではデータを相手のバッファメモリ2
8,29へ直接書き込むことが可能で、且つ、自分のバ
ッファメモリ28,29のデータを読み出すことが可能
で、しかもリセットモードでは自分のバッファメモリ2
8,29を読み出すのみで送信することはできないデー
タバスインタフェイス26,27と、
Buffer memories 28 and 29 and main bus 3
4, 35, and can exchange data bidirectionally, and can switch between the transmission / reception mode and the reset mode by reset signals from the reset signal lines 32, 33 from the processors 22, 23, Further, in the transmission / reception mode, data is transferred to the buffer memory
8 and 29 can be written directly, and the data in the own buffer memories 28 and 29 can be read.
Data bus interfaces 26 and 27, which cannot read and transmit only data 8 and 29,

【0017】後述するコントローラのバックアップ動作
を決定するためのフェイズ遷移管理データが予め記憶さ
れたメモリ36,37と、I/Oインタフェイス38,
39とを備えている。
The memories 36 and 37 in which phase transition management data for determining the backup operation of the controller described later are stored in advance, and the I / O interface 38 and
39.

【0018】メモリ36,37には、それぞれ図2に示
すようなフェイズ遷移管理テーブル200を備え、これ
には拡大図201に示すようなフェイズ遷移管理データ
が予め記憶され、自分フェイズをY軸203とし、各フ
ェイズ行に相手のフェイズ202を置き、その相関関係
からX軸上に、次に遷移すべき自分のフェイズ204が
求められるように構成されている。図中205は相手の
フェイズのチェック方向、206は自分の次のフェイズ
検出方向、207は現在の自分のフェイズ、208は次
に遷移するフェイズ、209は現在の相手フェイズをそ
れぞれ示している。
Each of the memories 36 and 37 has a phase transition management table 200 as shown in FIG. 2, in which phase transition management data as shown in an enlarged view 201 is stored in advance, and the own phase is stored in the Y-axis 203. The other party's phase 202 is placed in each phase row, and its own phase 204 to be transited next is obtained on the X-axis from the correlation. In the figure, reference numeral 205 denotes a check direction of the opponent's phase, 206 denotes a direction of detecting the next phase of the user, 207 denotes a current own phase, 208 denotes a next transition phase, and 209 denotes a current opponent phase.

【0019】このような構成のものにおいて、ステータ
ス/コマンド入出力ポート24,25は、自分の状態を
フェイズとしてステータス/コマンドバス30を介して
ステータス信号で相手のコントローラへ通知することが
でき、また相手の状態をステータスバス/コマンド30
を介してフェイズとして知ることができる。そして、フ
ェイズ遷移管理テーブル200から現在の自分のフェイ
ズ207の行に該当する現在の相手のフェイズ209
を、205の方向にチェックし、該当したものがあれ
ば、そのときの206方向で次に遷移すべきフェイズ2
08を取り出し、その処理を実行する。
In such a configuration, the status / command input / output ports 24 and 25 can notify their counterpart controllers by a status signal via the status / command bus 30 as their phases as a phase. Status of other party is indicated by status bus / command 30
Can be known as a phase through. Then, the phase 209 of the current opponent corresponding to the row of the current own phase 207 from the phase transition management table 200
Is checked in the direction of 205, and if there is a corresponding one, the next transition is to be made in the 206 direction at that time.
08 is taken out and its processing is executed.

【0020】いま、稼動側のコントローラ例えば20で
エラーダウンが発生すると、プロセッサ22がリセット
信号線32の信号を自動的にインアクティブにし、ステ
ータス/コマンド入出力ポート24の自分のステータス
信号出力をゼロクリアする。それにより、待機側のコン
トローラ例えば21は、ステータス/コマンド入出力ポ
ート25の相手のステータス信号がゼロクリア状態にな
ったことで、相手のエラーダウンを検知することがで
き、そのタイミングで稼動側として立ち上げることがで
きる。コマンド信号をステータス/コマンドバス30を
介して出力すると、相手側のコントローラへ割り込みを
入れることができ、トラッキングデータの送信完了割込
信号等の通知に使用することができる。データバスイン
タフェイス26,27は、稼動側はデータバス31を通
して相手のバッファメモリ28,29へ直接トラッキン
グデータを送信することができる。送信完了割込信号を
ステータス/コマンドバス30を通して相手のコントロ
ーラに通知すると、待機側は送信完了割込が発生し、そ
のタイミングでバッファメモリ28,29に書き込まれ
ているトラッキングデータを取り込むことができ、取り
込みが完了したら、受信完了をステータスバス/コマン
ドバス30を通して稼動側に通知することができる。
Now, when an error occurs in the active controller, for example, 20, the processor 22 automatically makes the signal on the reset signal line 32 inactive and clears its own status signal output from the status / command input / output port 24 to zero. I do. Thereby, the controller for example 21 of the standby side, by the status signal of the other status / command output port 25 becomes zero clear condition, it can detect the error down opponent, standing as running side at the timing Can be raised. When the command signal is output via the status / command bus 30, an interrupt can be input to the other controller, and the command signal can be used for notifying a transmission completion interrupt signal or the like of tracking data. The data bus interfaces 26 and 27 allow the operating side to directly transmit tracking data to the other buffer memories 28 and 29 via the data bus 31. When notifying the other party of the controller a transmit complete interrupt signal through the status / command bus 30, waits side complete interrupt is generated transmission, tracking data written in the buffer memory 29 at the timing of its <br/> Can be received, and upon completion of the reception, the completion of reception can be notified to the operating side through the status bus / command bus 30.

【0021】以下、図3〜図12を参照して本発明の具
体的実施例について説明する。図3はこの構成を示すブ
ロック図であり、コントローラ40,41は、全体制御
を司るプロセッサ42,43と、後述するプログラム実
行処理(図4)と、トラッキング処理(図5)と、ト
ッキングデータ受信処理(図6)と、監視処理(図7)
のプログラムを含む図11の全体制御プログラムと、プ
ラント制御プログラム(図4の73)を記憶するメモリP
44,45と、演算データとI/Oデータを記憶でき
るメモリD 46,47と、I/Oユニット56,57
との間をインタフェイスするI/Oインタフェイス5
4,55と、ステータバス(SBS)62とコマンドバ
ス(CBS)63との間をインタフェイスするステータ
ス/コマンド入出力ポート48,49と、バッファメモ
リ52,53とメインバス58,59との間をインタフ
ェイスするデータバスインタフェイス50,51と、受
信したトラッキングデータを一時記憶するバッファメモ
リ52,53と、ステータス/コマンド入出力ポート4
8,49をリセットし、且つデータバスインタフェイス
50,51の動作モードを切換えるリセット信号線6
0,61とステータス/コマンド入出力ポート48,4
9との間を接続するステータスバス62とコマンドバス
63とデータバスインタフェイス52,53間を接続す
るデータバス64と、プロセッサ42,43とメモリP
44,45と、メモリD 46,47と、I/Oイン
タフェイス54,55と、ステータス/コマンド入出力
ポート48,49と、データインタフェイス50,51
との間を接続するメインバス58,59と、I/Oイン
タフェイス54,55と、I/Oユニット56,57と
の間を接続するI/Oバス65,66とから構成されて
いる。
A specific embodiment of the present invention will be described below with reference to FIGS. Figure 3 is a block diagram showing the configuration, the controller 40 and 41 includes a processor 42 and 43 performs overall control, described later program execution process (Fig. 4), tracking processing (FIG. 5), collected by La <br/> Tsu King data reception process (FIG. 6), monitor the process (FIG. 7)
11 and a memory P that stores a plant control program (73 in FIG. 4).
44, 45, memories D 46, 47 capable of storing operation data and I / O data, and I / O units 56, 57
I / O interface 5 for interfacing with
Between 4,55 and status / command output port 49 to interface between the stator bus (SBS) 62 and the command bus (CBS) 63, a bus Ffamemori 52, 53 and main bus 58, 59 Data bus interfaces 50 and 51, buffer memories 52 and 53 for temporarily storing received tracking data, and a status / command input / output port 4
Reset the 8,49, the reset signal line switches the operation mode of one data bus interface 50, 51 6
0, 61 and status / command I / O ports 48, 4
9, a command bus 63, a data bus 64 connecting between the data bus interfaces 52, 53, the processors 42, 43, and the memory P.
And 44 and 45, and the memory D 46,47, the I / O interface 54 and 55, and the status / command input and output ports 48 and 49, data interface 50, 51
And I / O interfaces 54 and 55, and I / O buses 65 and 66 connecting between the I / O units 56 and 57.

【0022】ステータス/コマンド入出力ポート48
は、図8に示すように構成され、ステータスバス487
の出力は、一度、リセット付きレジスタ481にラッチ
され、リセット信号線60のリセット信号486がイン
アクティブの場合はそのまま出力され、リセット信号4
86がアクティブの場合はリセット付きレジスタ(O
R)481にゼロリセットされゼロ出力となる。ステー
タスバス487の入力は、一度、レジスタ(RR)48
2にラッチされいつでも読み出すことができる。
Status / command input / output port 48
Is configured as shown in FIG.
Is once latched by the register with reset 481, and is output as it is when the reset signal 486 of the reset signal line 60 is inactive.
86 is active, the register with reset (O
R) 481 is reset to zero and the output becomes zero. The input of the status bus 487 is once input to the register (RR) 48.
2 and can be read at any time.

【0023】コマンドバス488の出力は一度、リセッ
ト付きレジスタ(OR)483にラッチされ、リセット
信号486がアクティブの場合はそのまま出力され、イ
ンアクティブの場合はリセット付きレジスタ483がゼ
ロリセットされゼロ出力となる。コマンドバス488の
入力は、一度、レジスタ(RR)484にラッチされい
つでも読み出すことができ、さらに割込出力レジスタ
(IR)485へ同時にラッチし割り込みが割込ライン
490を介して通知される。ステータス/コマンド入出
力ポート49は、以上述べたステータス/コマンド入出
力ポート48と同様な構成となっている。
The output of the command bus 488 is once latched by a register with reset (OR) 483. When the reset signal 486 is active, it is output as it is. When the signal is inactive, the register with reset 483 is reset to zero and the output is zero. Become. The input of command bus 488 is once latched in register (RR) 484 and can be read at any time, and is simultaneously latched in interrupt output register (IR) 485 so that an interrupt is signaled via interrupt line 490. The status / command input / output port 49 has the same configuration as the status / command input / output port 48 described above.

【0024】図3のデータバスインタフェイス50,5
1は、データの送信は送信ゲート(図示せず)を介して
送信され、リセット信号がインアクティブならばデータ
がデータバス64へ送信され、アクティブならばデータ
はデータバス64に送信されない。データの受信はその
ままバッファメモリ52へ書き込まれる。バッファメモ
リ52のデータはそのまま読み出すことができる。
The data bus interfaces 50 and 5 shown in FIG.
1 indicates that the transmission of data is transmitted through a transmission gate (not shown). If the reset signal is inactive, data is transmitted to the data bus 64; if active, the data is not transmitted to the data bus 64. The data reception is written to the buffer memory 52 as it is. The data in the buffer memory 52 can be read as it is.

【0025】次に、図9のフェイズ遷移図を参照してフ
ェイズ遷移管理テーブルの作成方法について説明する。
フェイズ300は、図9のフェイズ遷移図に示すように
電源ON(電源オン)302、準待機303、待機中3
04、稼動中305、単独稼動中306、ダウン/電源
OFF(電源オフ)307の7つのフェイズからなって
いる。
Next, a method of creating a phase transition management table will be described with reference to the phase transition diagram of FIG.
As shown in the phase transition diagram of FIG. 9, the phase 300 includes a power ON (power ON) 302, a semi-standby 303, and a standby 3
04, operating 305, independent operation 306, and down / power OFF (power OFF) 307.

【0026】電源ON302は電源投入時を示し、準待
機303は稼動または待機に入る準備を示し、待機中3
04はいつでも稼動に切り替われる状態を示し、稼動中
305はプログラムを実行している状態を示し、単独稼
動306は待機側が待機してない状態で稼動側が稼動し
ていることを示す。フェイズ300は、自分のフェイズ
と相手のフェイズの相関関係により次のフェイズを決定
する。
The power ON 302 indicates when the power is turned on, the quasi-standby 303 indicates preparation for operation or standby, and
04 indicates a state of being switched to operation at any time, operating 305 indicates a state in which a program is being executed, and single operation 306 indicates that the operating side is operating without the standby side waiting. In the phase 300, the next phase is determined based on the correlation between the own phase and the phase of the opponent.

【0027】メモリD 46,47には次のフェイズを
決定するために、図10に示すフェイズ遷移管理テーブ
ル400が記憶されている。このテーブル400は、自
分のフェイズを行401とし、各行には相手のフェイズ
403を並べ該当する自分のフェイズの行を調べ該当す
る相手のフェイズがあれば、その列の次フェイズ402
を次に遷移すべきフェイズとして取り出すことができる
構造を持っている。
The memories D 46 and 47 store a phase transition management table 400 shown in FIG. 10 for determining the next phase. In this table 400, one's own phase is set as a row 401, and an opponent's phase 403 is arranged in each row, a row of the corresponding one's own phase is checked, and if there is a corresponding opponent's phase, the next phase 402 of the column
Has the structure that can be taken out as the next phase to be transitioned.

【0028】メモリP 44,45には、図11に示す
全体制御プログラムが記憶されていて電源ONすること
により実行開始する。すなわち、電源をONにすると
(500)、スタートし(501)、先ずイニシャライ
ズ処理を実行し(502)、全体の初期化を実施し、次
に、フェイズ遷移チェック処理を実施し(503)、自
分のフェイズと相手のフェイズから次遷移すべきフェイ
ズを取り出し、単独稼動処理フェイズ504、稼動中処
理フェイズ505、待機中処理フェイズ506、基準待
機処理フェイズ507の内の該当するフェイズ504〜
507のルーチンへ実行を移すことができる。新しいフ
ェイズに入ると、所定のプログラム実行処理を実施する
(508)とともに、次のフェイズ遷移チェック処理を
実施し(509)、次に遷移すべきフェイズを取り出す
ことができる。プログラム実行処理を実施する(50
8)際に、異常が検出されたとき、ダウン処理となる
(510)。
The memories P 44 and 45 store an overall control program shown in FIG. 11 and start execution when the power is turned on. That is, when the power is turned on (500), the process is started (501), first, an initialization process is performed (502), the entire initialization is performed, and then a phase transition check process is performed (503). The phase to be changed next is taken out from the phase of the opponent and the phase of the opponent, and the corresponding phase 504 of the single operation processing phase 504, the active processing phase 505, the standby processing phase 506, and the reference standby processing phase 507.
Execution can be shifted to the routine 507. When a new phase is entered, a predetermined program execution process is executed (508), and a next phase transition check process is executed (509), so that a phase to be shifted next can be taken out. Execute the program execution process (50
8) At this time, when an abnormality is detected, a down process is performed (510).

【0029】フェイズ遷移チェック処理(600)は、
図12に示すように先ず自分のフェイズを相手コントロ
ーラ608に出力し(601)、次に相手コントローラ
608のフェイズを読み出す(602)。そして、フェ
イズ遷移管理テーブル(図2の200)を元に次に遷移
すべきフェイズを取り出す(603)。このフェイズと
現在の自分のフェイズを比較し(604)、同じであれ
ば遷移無しとして遷移無しリターン(606)とし、違
っていれば遷移有りリターンとする(605)。
The phase transition check processing (600)
As shown in FIG. 12, first, the own phase is output to the partner controller 608 (601), and then the phase of the partner controller 608 is read (602). Then, based on the phase transition management table (200 in FIG. 2), the next phase to be transitioned is extracted (603). This phase is compared with the current one's own phase (604). If the phases are the same, it is determined that there is no transition, and a return without transition (606) is made. If they are different, a return with transition is made (605).

【0030】次に、以上のように構成されたプログラマ
ブルコントローラの二重化装置の動作について説明す
る。今、図11において、電源をONする(500,5
01)と、全体制御プログラムに従って先ずイニシャラ
イズ処理を実行し(502)、図3のコントローラ4
0,41が正常ならば、プロセッサ42,43はステー
タス/コマンド入出力ポート48,49とデータバスイ
ンタフェイス50,51へのリセット信号線60,61
の信号をアクティブにし、ステータス出力を許可し、デ
ータバスインタフェイス50,51の動作モードを送受
信モードにする。そして、自分のフェイズを電源ONと
してフェイズ遷移チェック処理を実行する(503)こ
との結果、次に遷移すべきフェイズを取り出し、該当す
るフェイズの処理を実施する(504〜507)。この
時、フェイズ遷移チェック処理503は、図10に示す
フェイズ遷移管理テーブル400の電源ONの行をチェ
ックし、次のフェイズを準待機とする。準待機のフェイ
ズ処理507に入ると、再度フェイズ遷移チェック処理
503を実施し、次のフェイズを取り出す。この時相手
のフェイズが電源OFFであれば、単独稼動処理フェイ
ズ504を、待機中であれば稼動中処理フェイズ505
を、稼動中であれば待機中処理フェイズ506を取り出
し、次のフェイズ処理を実行する。またそれ以外であれ
ば、準待機処理フェイズを取り出し、準待機フェイズ処
理507を再実行する。単独稼動処理504、稼動中処
理505を実行すると、プログラム実行処理508を実
施し、図4で示すプログラム実行処理71がスキャン周
期割込70により実行する。
Next, the operation of the redundant apparatus for a programmable controller configured as described above will be described. Now, in FIG. 11, the power is turned on (500, 5
01), an initialization process is first executed according to the overall control program (502), and the controller 4 shown in FIG.
If 0 and 41 are normal, the processors 42 and 43 connect the status / command input / output ports 48 and 49 and the reset signal lines 60 and 61 to the data bus interfaces 50 and 51.
Of the data bus interface 50, 51 is set to the transmission / reception mode. Then, as a result of executing the phase transition check processing by turning on the power of the own phase (503), the next phase to be transited is taken out and the processing of the corresponding phase is performed (504 to 507). At this time, the phase transition check processing 503 checks the power-on row of the phase transition management table 400 shown in FIG. 10, and sets the next phase to be semi-standby. When the quasi-standby phase process 507 is entered, the phase transition check process 503 is performed again to take out the next phase. At this time, if the opponent's phase is power-off, the single operation processing phase 504 is performed.
If it is in operation, the standby process phase 506 is taken out and the next phase process is executed. Otherwise, the quasi-standby processing phase is taken out and the quasi-standby phase processing 507 is executed again. When the single operation process 504 and the active process 505 are executed, the program execution process 508 is executed, and the program execution process 71 shown in FIG.

【0031】ここでは、いま仮にコントローラ40を稼
動側、コントローラ41を待機側が系とすると、稼動側
コントローラ40のプロセッサ42は、図3に示すプロ
グラム実行処理71をスキャン周期割込70で一定周期
に繰り返し実行する。この中では、一括入出力処理72
を実行し、I/Oユニット56からI/Oデータを入力
し、メモリD 46に有する一括入出力メモリ461へ
書き込み、および一括入出力メモリ461の前回周期の
演算結果をI/Oユニット56へ出力する。次に、ユー
ザアプリケーションであるプラント制御プログラムを実
行し(73)、一括入出力メモリ461上のI/Oデー
タとメモリD 46に有するデータメモリ462上のデ
ータを基に演算し結果を一括入出力メモリ461および
データメモリ462へ書き込む。
Here, assuming that the controller 40 is the active side and the controller 41 is the standby side, the processor 42 of the active side controller 40 executes the program execution processing 71 shown in FIG. Execute repeatedly. Among them, the batch input / output processing 72
Is executed, I / O data is input from the I / O unit 56, written to the collective input / output memory 461 included in the memory D 46, and the operation result of the previous cycle of the collective input / output memory 461 is supplied to the I / O unit 56. Output. Next, a plant control program, which is a user application, is executed (73), a calculation is performed based on the I / O data in the batch input / output memory 461 and the data in the data memory 462 in the memory D 46, and the result is batch input / output. Write to the memory 461 and the data memory 462.

【0032】次に、図5に示すトラッキング処理80を
実行し、先ず待機側コントローラ41の受信完了信号9
0をステータスバス62を介して入力し、前回の受信が
完了しているかチェックし(81)、完了するまで待
つ。完了すれば、トラッキングデータ送信処理82でデ
ータメモリ462および一括入出力メモリ461からデ
ータを読み出し、トラッキングデータとして待機側コン
トローラ41のバッファメモリ53へ送信する。送信が
完了したら、トラッキング送信完了通知処理83で、コ
マンドバス63を介して待機側コントローラ41へ送信
完了割込信号91を通知し、待機側コントローラ41の
トラッキングデータ受信処理89を起動する。
Next, a tracking process 80 shown in FIG. 5 is executed, and first, the reception completion signal 9
0 is input via the status bus 62 to check whether the previous reception has been completed (81) and wait until the reception is completed. Upon completion, the data is read from the data memory 462 and the batch input / output memory 461 in the tracking data transmission processing 82, and transmitted to the buffer memory 53 of the standby controller 41 as tracking data. When the transmission is completed, a tracking transmission completion notification process 83 notifies the standby controller 41 of a transmission completion interrupt signal 91 via the command bus 63, and starts the tracking data reception process 89 of the standby controller 41.

【0033】待機側のプロセッサ43は、図6に示すト
ラッキングデータ受信処理100が稼動側コントローラ
40の送信完了割込信号109により起動され実行され
る。先ず、トラッキングデータ読み出し処理101を実
行し、バッファメモリ52に送信されたトラッキングデ
ータを読み出し、一括入出力メモリ471とデータメモ
リ472を含むメモリD 47へ取り込む。取り込みが
完了したら、ステータスバス62を通して受信完了信号
108を稼動側コントローラ40へ通知する。稼動側コ
ントローラ40は、図4に示すフェイズ遷移チェック処
理75を実行し、次のフェイズを取り出し現在と同じで
あればそのまま処理を継続し、違っていれば該当のフェ
イズ処理へ移す。
In the standby processor 43, the tracking data reception processing 100 shown in FIG. 6 is started and executed by the transmission completion interrupt signal 109 of the active controller 40. First, a tracking data reading process 101 is executed to read the tracking data transmitted to the buffer memory 52 and take it into the memory D 47 including the batch input / output memory 471 and the data memory 472. When the loading is completed, a reception completion signal 108 is notified to the operating controller 40 through the status bus 62. The operating-side controller 40 executes a phase transition check process 75 shown in FIG. 4, takes out the next phase, continues the process if it is the same as the current one, and shifts to the relevant phase process if it is different.

【0034】以上述べた実施例は、コントローラ40を
稼動側とし、コントローラ41を待機側とした例を説明
したが、これが逆であっても同様な動作となるので、そ
の説明は省略する。
In the above-described embodiment, an example has been described in which the controller 40 is set as the active side and the controller 41 is set as the standby side. However, the reverse operation is the same, and the description is omitted.

【0035】以上述べたように、コントローラ40,4
1にステータス信号とコマンド信号をやり取りするため
の、ステータスバス62とコマンドバス63をインタフ
ェイスするステータス/コマンド入出力ポート48,4
9と、トラッキングデータを送受信するためのデータバ
ス64をインタフェイスするバスインタフェイス50,
51と、トラッキングデータを受信するためのバッファ
メモリ52,53を付加し、コントローラ40,41間
をステータスバス62、コマンドバス63、データバス
64で接続することで二重化システムを構成することが
できる。また、例えば稼動側コントローラ40がエラー
ダウンした場合は、プロセッサ42によりリセット信号
60をインアクティブするため待機側コントローラ40
の状態を通知するステータス信号がゼロクリア、即ち、
ダウンのフェイズになりそれにより稼動側コントローラ
40の異常を自動的に検知でき、また同時にデータバス
64のバスインタフェイス50も自動的に送信停止され
る。つまり、フェイルセイフ機能が必然的に備わってい
るので、信頼度の高い二重化システムが構築できる。さ
らに、コントローラの動作状態をフェイズにより管理
し、フェイズ遷移管理テーブルを使用して相手のフェイ
ズと自分のフェイズから次に処理すべきフェイズを明確
に割り出すことができ、プログラム処理構成をシンプル
にすることができる。
As described above, the controllers 40, 4
Status / command input / output ports 48 and 4 for interfacing a status bus 62 and a command bus 63 for exchanging a status signal and a command signal with each other.
9, a bus interface 50 for interfacing a data bus 64 for transmitting and receiving tracking data,
51 and buffer memories 52 and 53 for receiving tracking data are added, and the controllers 40 and 41 are connected by a status bus 62, a command bus 63, and a data bus 64, whereby a duplex system can be configured. Further, for example, if the active controller 40 has failed, the reset signal 60 is deactivated by the processor 42 so that the standby controller 40
Is cleared to zero, that is,
In the down phase, the abnormality of the operating controller 40 can be automatically detected, and at the same time, the transmission of the bus interface 50 of the data bus 64 is automatically stopped. That is, since a fail-safe function is inevitably provided, a highly reliable duplex system can be constructed. Furthermore, the operation state of the controller can be managed by phases, and the phase to be processed next can be clearly determined from the opponent's phase and your own phase using the phase transition management table, simplifying the program processing configuration Can be.

【0036】[0036]

【発明の効果】本発明によれば、二重化ユニットを用い
ないでも信頼度の高い二重化システムを構成することが
でき、且つコントローラの状態をフェイズ管理しフェイ
ズ遷移管理テーブルを備えそれにより次の処理を求める
ことができ、プログラム処理構成がシンプルなものとな
り信頼度が向上し、またフェイズ遷移管理テーブルを目
的に応じて書き換えることによりバックアップ処理を容
易に変更することができるプログラマブルコントローラ
の二重化装置を提供できる。
According to the present invention, a highly reliable duplex system can be constructed without using a duplex unit, and a phase transition management table is provided for controlling the state of the controller, thereby enabling the next processing. It is possible to provide a redundant controller for a programmable controller that can simplify the program processing configuration, improves the reliability, and can easily change the backup processing by rewriting the phase transition management table according to the purpose. .

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

【図1】本発明によるプログラマブルコントローラの二
重化装置の概略構成を示すブロック図。
FIG. 1 is a block diagram showing a schematic configuration of a redundant device of a programmable controller according to the present invention.

【図2】図1のメモリ36,37を説明するためのフェ
イズ遷移管理テーブルを示す図。
FIG. 2 is a view showing a phase transition management table for explaining memories 36 and 37 in FIG. 1;

【図3】本発明の具体的実施例を示すブロック図。FIG. 3 is a block diagram showing a specific embodiment of the present invention.

【図4】図3の動作を説明するための稼動側コントロー
ラで実行されるプログラム実行処理を示す図。
FIG. 4 is a view showing a program execution process executed by an active controller for explaining the operation of FIG. 3;

【図5】図3の動作を説明するための稼動側コントロー
ラで実行されるトラッキング処理を示す図。
FIG. 5 is a view showing a tracking process executed by an active controller for explaining the operation of FIG. 3;

【図6】図3の動作を説明するための待機側コントロー
ラで実行されるトラッキング受信処理を示す図。
FIG. 6 is a view showing a tracking reception process executed by a standby controller for explaining the operation of FIG. 3;

【図7】図3の動作を説明するための待機側コントロー
ラで実行される監視処理を示す図。
FIG. 7 is a diagram showing a monitoring process executed by a standby controller for explaining the operation of FIG. 3;

【図8】図3のステータス/コマンド入出力ポートの等
価回路を示す図。
FIG. 8 is a diagram showing an equivalent circuit of the status / command input / output port of FIG. 3;

【図9】図3の動作を説明するためのコントローラの状
態をフェイズ遷移で表した図。
FIG. 9 is a diagram showing a state of a controller for explaining the operation of FIG. 3 in a phase transition.

【図10】図3のフェイズ遷移管理テーブルを示す図。FIG. 10 is a diagram showing a phase transition management table of FIG. 3;

【図11】図3の全体制御プログラムを説明するための
図。
FIG. 11 is a view for explaining the overall control program of FIG. 3;

【図12】図3の動作を説明するためのフェイズ遷移チ
ェック処理を示す図。
FIG. 12 is a diagram showing a phase transition check process for explaining the operation of FIG. 3;

【図13】従来のプログラマブルコントローラの二重化
装置の一例の概略構成を示すブロック図。
FIG. 13 is a block diagram showing a schematic configuration of an example of a conventional redundant device for a programmable controller.

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

40,41…プログラマブルコントローラ、42,43
…プロセッサ、44,45…メモリP、46,47…メ
モリD、48,49…ステータス/コマンド入出力ポー
ト、50,51…データバスインタフェイス、52,5
3…バッファメモリ、54,55…I/Oインフェイ
ス、60,61…リセット信号線、62…ステータバ
ス、63…コマンドバス、64…デーバス、65,66
…I/Oバス。
40, 41 ... programmable controller, 42, 43
... Processors, 44, 45 ... Memory P, 46,47 ... Memory D, 48,49 ... Status / command input / output ports, 50,51 ... Data bus interface, 52,5
3 buffer memory, 54, 55 I / O interface, 60, 61 reset signal line, 62 stator bus, 63 command bus, 64 data bus, 65, 66
... I / O bus.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 2つのプログラムコントローラのうち、
一方が稼動状態で、かつ他方がバックアップに備えて待
機状態となり、前記各プログラムコントローラ間で互い
に相手の状態を監視し、稼動側がダウンしたら待機側が
それを検知し稼動側の制御を継続して実行し、システム
ダウンを防ぐものであって、互いに相手のプログラマブ
ルコントローラの状態を検知及び通知するためのステー
タス/コマンドバスとそれをインタフェイスするステー
タス/コマンドバス入出力ポートと、前記プログラマブ
ルコントローラがバックアップ時に制御を継続して実行
するためのデータとなる実行結果情報を相手のプログラ
マブルコントローラに転送するためのデータバスとそれ
をインタフェイスするデータバスインタフェイスと、前
記実行結果情報を受信及び送信するためのバッファとを
備えたプログラマブルコントローラの二重化装置におい
て、 自分のプロセスコントローラの実行状態を複数のフェイ
ズに分け互いにそれをステータス/コマンドバスを介し
て相手のプロセスコントローラに常時通知し、相手のプ
ロセスコントローラフェイズと自分のプロセスコントロ
ーラのフェイズから自分のプロセスコントローラの次に
遷移すべきフェイズを決定するためのフェイズ管理テー
ブルと、 を具備し、次のバックアップ動作処理を制御することを
特徴としたプログラマブルコントローラの二重化装置。
1. The method according to claim 1, wherein:
One is in the operating state, and the other is in the standby state in preparation for the backup. The program controllers monitor each other's state, and when the operating side goes down, the standby side detects it and continues to control the operating side. and, there is to prevent the system down, and status / command bus output port to the status / command bus and interface it to detect and notify the state of the programmable controller of the other party to each other physician, the programmable controller A data bus for transferring execution result information, which is data for continuously executing control during backup, to a partner programmable controller, a data bus interface for interfacing the data bus, and receiving and transmitting the execution result information And a buffer for
In duplex device Programmer llama logic controllers with, via the status / command bus it together divide the execution status of its process controller into a plurality of phases and notifies all times the process controller of the opponent, the process controller phase and their opponent programmable controller duplexing device from the process controller of phase and phase management table for determining the phase to be transitioned to the next own process controller, comprising a was characterized by controlling the next backup operation process.
JP3130018A 1991-05-31 1991-05-31 Redundant device for programmable controller Expired - Lifetime JP2966966B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3130018A JP2966966B2 (en) 1991-05-31 1991-05-31 Redundant device for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3130018A JP2966966B2 (en) 1991-05-31 1991-05-31 Redundant device for programmable controller

Publications (2)

Publication Number Publication Date
JPH04354004A JPH04354004A (en) 1992-12-08
JP2966966B2 true JP2966966B2 (en) 1999-10-25

Family

ID=15024130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3130018A Expired - Lifetime JP2966966B2 (en) 1991-05-31 1991-05-31 Redundant device for programmable controller

Country Status (1)

Country Link
JP (1) JP2966966B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19933086B4 (en) * 1999-07-15 2008-11-20 Robert Bosch Gmbh Method and device for mutual monitoring of control units
US6799080B1 (en) * 2003-06-12 2004-09-28 The Boc Group, Inc. Configurable PLC and SCADA-based control system
JP4755968B2 (en) * 2006-12-07 2011-08-24 株式会社東芝 Duplex control device and automatic repair method for multi-bit error in memory section thereof

Also Published As

Publication number Publication date
JPH04354004A (en) 1992-12-08

Similar Documents

Publication Publication Date Title
JP2886856B2 (en) Redundant bus connection method
JPH09128305A (en) External storage device
JPS59106056A (en) Failsafe type data processing system
JP2000181501A (en) Duplex controller
JP2966966B2 (en) Redundant device for programmable controller
WO1999026138A1 (en) Method of changing over a multiplex system
JP2693627B2 (en) Redundant system of programmable controller
JP3175465B2 (en) Switching method of redundant control device and redundant control device thereof
JP2626127B2 (en) Backup route test method
JP3743381B2 (en) Inter-host processing synchronization method
JPH05307491A (en) Method and device for switching multiplexing processor
JPH0713791A (en) Equalizing method for duplex control system
JP3783560B2 (en) Information processing system
JPH06175868A (en) Duplex computer fault monitoring method
JPH0827761B2 (en) Dual-system simultaneous writing method for dual memory
JPS62103756A (en) Multiprocessing system
JP2682707B2 (en) Programmable controller
JPH07114521A (en) Multimicrocomputer system
JPS634210B2 (en)
JPS59221702A (en) Digital controller
KR100348566B1 (en) Dual storage apparatus in communication system
JPH02291039A (en) Memory control system
JPS62179044A (en) Multicomputer system
JP2000347885A (en) Duplex process controller
JPH0716218B2 (en) Electronic exchange duplex system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070813

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080813

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090813

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090813

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100813

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100813

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110813

Year of fee payment: 12

EXPY Cancellation because of completion of term