JP3216272B2 - Distributed control device - Google Patents

Distributed control device

Info

Publication number
JP3216272B2
JP3216272B2 JP29602392A JP29602392A JP3216272B2 JP 3216272 B2 JP3216272 B2 JP 3216272B2 JP 29602392 A JP29602392 A JP 29602392A JP 29602392 A JP29602392 A JP 29602392A JP 3216272 B2 JP3216272 B2 JP 3216272B2
Authority
JP
Japan
Prior art keywords
power failure
communication
remote input
output
output device
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 - Fee Related
Application number
JP29602392A
Other languages
Japanese (ja)
Other versions
JPH06149304A (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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP29602392A priority Critical patent/JP3216272B2/en
Publication of JPH06149304A publication Critical patent/JPH06149304A/en
Application granted granted Critical
Publication of JP3216272B2 publication Critical patent/JP3216272B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Feedback Control In General (AREA)
  • Safety Devices In Control Systems (AREA)
  • Selective Calling Equipment (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、温度や圧力などのプロ
セス量を制御する分散形制御装置に関し、更に詳しく
は、各種の制御演算を担当する制御演算装置と、この制
御演算装置とは分離・分散配置されていてセンサーやア
クチュエータとの間で信号の授受を行うための複数のリ
モート入出力装置とで構成される装置において、リモー
ト入出力装置側で発生する電源の停電や、リモート入出
力装置の取り外しを制御演算装置側に確実に伝達できる
ようにした分散形制御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed control device for controlling a process quantity such as a temperature and a pressure, and more particularly, to a control operation device for performing various control operations and a control operation device separated therefrom. -In a device composed of a plurality of remote input / output devices that are distributed and arranged to exchange signals with sensors and actuators, a power outage occurring on the remote input / output device side and remote input / output The present invention relates to a decentralized control device capable of reliably transmitting the removal of a device to a control operation device side.

【0002】[0002]

【従来の技術】分散形制御装置は、制御対象であるプロ
セスから多数の信号を入力するとともに、多数の制御端
へ操作信号を出力するように構成されており、制御対象
全体を総合的に監視したり制御できるように、受け持つ
仕事の性質に応じて、複数のリモート入出力装置がリモ
ート入出力バスを介して制御演算装置に結合している。
2. Description of the Related Art A distributed control device is configured to input a large number of signals from a process to be controlled and to output operation signals to a large number of control terminals, and to comprehensively monitor the entire controlled object. Depending on the nature of the task at hand, a plurality of remote input / output devices are coupled to the control and arithmetic unit via a remote input / output bus so that they can be controlled and controlled.

【0003】ここで、制御演算装置とリモート入出力装
置との間には、これらの両方からリード/ライトアクセ
スが可能な共有メモリが設けられており、リモート入出
力バスを介して、制御演算装置内のマイクロプロセッサ
が用いるデータバッフアの内容と、リモート入出力装置
側の入出力データとが等しく維持されるように(等値
化)するための、サイクリックスキャン伝送が各リモー
ト入出力装置毎に行われている。
[0003] Here, a shared memory is provided between the control arithmetic device and the remote input / output device, which allows read / write access from both of them, and the control arithmetic device is connected via a remote input / output bus. A cyclic scan transmission is performed for each remote input / output device to maintain (equalize) the contents of the data buffer used by the microprocessor in the device and the input / output data of the remote input / output device. Have been done.

【0004】この種の装置においては、リモート入出力
装置は制御演算装置に対して離れて設置される場合が多
く、制御演算装置に供給されている電源とは別の電源か
らその電力が供給されるような構成となっている。従っ
て、リモート入出力装置側で停電が発生していた場合
や、リモート入出力装置を取り外したような場合、停電
復帰後にそのリモート入出力装置が正常に動作するもの
であるかを制御演算装置側で正確に認識し、リモート入
出力装置に対して動作チェック(検査)や、初期設定等
適切な処理を行う必要がある。
In this type of device, the remote input / output device is often installed separately from the control operation device, and the power is supplied from a power source different from the power supply supplied to the control operation device. The configuration is as follows. Therefore, if a power outage occurs on the remote I / O device side or if the remote I / O device is removed, it is checked whether the remote I / O device operates normally after the power failure is recovered. It is necessary to perform accurate processing such as operation check (inspection) and initial setting for the remote input / output device.

【0005】[0005]

【発明が解決しようとする課題】この種の分散形制御装
置においては、リモート入出力装置側の電源の停電は、
例えばサイクリックスキャン伝送が途切れることから、
制御演算装置側で検出することができるが、通信バスや
通信インターフェース等の故障との区別がつかないとい
う不具合いがある。また、停電発生が短い時間である場
合には、サイクリックスキャン伝送の途切れとはなら
ず、停電発生を検出することができない。
In this type of distributed control apparatus, the power failure of the remote input / output device side
For example, because cyclic scan transmission is interrupted,
Although it can be detected on the control arithmetic unit side, there is a problem that it cannot be distinguished from failures in the communication bus, communication interface, and the like. Further, when the power failure occurs for a short time, the cyclic scan transmission is not interrupted, and the power failure cannot be detected.

【0006】本発明は、この様な点に鑑みてなされたも
ので、リモート入出力装置側の停電発生や、装置の取り
外しの事実を正確に制御演算装置側で正確に認識できる
ようにし、リモート入出力装置側での電源復帰後に適切
な対応をとることのできる分散形制御装置を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and enables a control operation device to accurately recognize the occurrence of a power failure on the remote input / output device and the fact that the device has been removed. It is an object of the present invention to provide a distributed control device capable of taking appropriate measures after power is restored on the input / output device side.

【0007】[0007]

【課題を解決するための手段】この様な目的を達成する
本発明は、制御演算を担当する制御演算装置と、この制
御演算装置にリモート入出力バスを介して結ばれるリモ
ート入出力装置とで構成され、通常の状態ではリモート
入出力バスを介して、制御演算装置が扱う入出力データ
とリモート入出力装置側の入出力データとが等しく維持
されるようにするための、サイクリックスキャン伝送が
行われている分散形制御装置であって、リモート入出力
装置の電源の停電及び瞬停を検出する停電検出手段と、
リモート入出力装置が停電又は瞬停した場合、少なくと
も復電後の最初の前記サイクリックスキャン伝送による
通信フレーム内に停電発生を示す停電検出フラグを設定
する停電検出フラグ設定手段と、制御演算装置側から送
られた停電確認通信を受け、当該停電確認通信に対する
レスポンス通信を行うと共に、通信フレーム内への停電
発生フラグの設定停止を指示する停電検出フラグ設定解
除手段とを設け、制御演算装置に、前記サイクリックス
キャン伝送による通信フレーム内に停電検出フラグの設
定があるかを判別する停電検出フラグ判別手段と、停電
検出フラグが検出された場合、停電確認通信を前記リモ
ート入出力装置側に行うと共に、当該停電確認通信に対
するレスポンスを受け、リモート入出力装置が正常か否
かを判断する停電確認通信手段とを備えたことを特徴と
する分散形制御装置である。
SUMMARY OF THE INVENTION The present invention, which achieves the above object, comprises a control operation device in charge of control operation and a remote input / output device connected to the control operation device via a remote input / output bus. In a normal state, cyclic scan transmission is performed via a remote input / output bus so that input / output data handled by the control arithmetic unit and input / output data of the remote input / output device are maintained equal. A power failure detection means for detecting a power failure and a momentary power failure of the power supply of the remote input / output device,
If the remote I / O device experiences a power failure or momentary power failure, at least
Power failure detection flag setting means for setting a power failure detection flag indicating the occurrence of a power failure in a communication frame by the first cyclic scan transmission after power recovery , and receiving a power failure confirmation communication sent from the control operation device side, A power failure detection flag setting canceling means for performing response communication with respect to the confirmation communication and instructing to stop setting the power failure occurrence flag in the communication frame is provided, and the control arithmetic unit detects the power failure in the communication frame by the cyclic scan transmission. A power failure detection flag determining means for determining whether or not a flag is set; and, when a power failure detection flag is detected, perform a power failure confirmation communication to the remote input / output device, receive a response to the power failure confirmation communication, A power failure confirmation communication means for determining whether the output device is normal or not. It is.

【0008】[0008]

【作用】リモート入出力装置の電源が停電した状態から
電源が復帰すると、サイクリックスキャン伝送による通
信フレーム内に停電検出データ設定手段により、停電発
生を示すデータ(停電検出フラグ)が設定され、その通
信フレームが制御演算装置側に伝送される。
When the power of the remote input / output device is restored from a power failure state, data indicating the occurrence of a power failure (power failure detection flag) is set by a power failure detection data setting means in a communication frame by cyclic scan transmission. The communication frame is transmitted to the control operation device side.

【0009】制御演算装置側では、伝送された通信フレ
ーム内に停電発生を示す停電検出フラグが検出される
と、停電確認通信を行い、また、リモート入出力装置は
この停電確認通信を受けてレスポンス通信を行う。制御
演算装置は、リモート入出力装置側から返るレスポンス
フレームを受け、停電から復帰後のリモート入出力装置
が正常に機能するものであるかのチェックを行い、正常
であると判断された場合、検出フラグの設定解除を行う
ための検出フラグリセット通信を行う。そして、通信フ
レーム内に停電検出フラグの設定が行われなくなると、
定常のデータ入出力処理に移行する。
On the control arithmetic unit side, when a power failure detection flag indicating the occurrence of a power failure is detected in the transmitted communication frame, a power failure confirmation communication is performed, and the remote input / output device receives the power failure confirmation communication and responds in response to the power failure confirmation communication. Perform communication. The control arithmetic unit receives the response frame returned from the remote input / output device side, checks whether the remote input / output device after recovery from the power failure is functioning normally, and if it is determined to be normal, detects The detection flag reset communication for canceling the flag setting is performed. When the power outage detection flag is no longer set in the communication frame,
Shift to regular data input / output processing.

【0010】[0010]

【実施例】以下図面を用いて本発明の一実施例を詳細に
説明する。図1は、本発明の一実施例を示す構成ブロッ
ク図である。図において、CNTは制御演算を担当する
制御演算装置、PI1,PI2…は、制御演算装置CN
Tにリモート入出力バスBSを介して結ばれる複数のリ
モート入出力装置である。各リモート入出力装置は、制
御演算装置CNTとは分散配置されており、フィールド
に設置された各種のセンサーから入力信号が印加される
とともに、バルブ等のアクチュエータに操作信号を出力
するように構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a configuration block diagram showing one embodiment of the present invention. In the figure, CNT is a control operation device in charge of control operation, and PI1 , PI2 ... are control operation devices CN.
A plurality of remote input / output devices connected to T via a remote input / output bus BS. Each remote input / output device is arranged in a distributed manner with respect to the control operation device CNT, and is configured to receive an input signal from various sensors installed in a field and output an operation signal to an actuator such as a valve. ing.

【0011】制御演算装置CNTにおいて、1は例えば
PID制御演算やシーケンス制御演算などを担当する制
御演算部(プロセッサ)、2は制御演算装置CNT内の
電源回路で各部分に電力を供給している。3は不揮発性
の共有メモリで、制御演算部1からリード/ライトアク
セスが可能になっているとともに、リモート入出力バス
BSを介して伝送された複数のリモート入出力装置PI
1,PI2…からの入出力データが、制御演算部1の演
算周期に対して、オーバサンプリングとなる周期で、サ
イクリックに書き込まれるように構成してある。
In the control arithmetic unit CNT, reference numeral 1 denotes a control arithmetic unit (processor) which is in charge of, for example, PID control arithmetic and sequence control arithmetic, and 2 denotes a power supply circuit in the control arithmetic unit CNT which supplies power to each part. . Reference numeral 3 denotes a non-volatile shared memory, which allows read / write access from the control operation unit 1 and a plurality of remote input / output devices PI transmitted via a remote input / output bus BS.
The input / output data from 1, PI 2,... Is cyclically written in a cycle of oversampling with respect to the calculation cycle of the control calculation unit 1.

【0012】4はサイクリック・スキャン伝送手段で、
通常の制御運転状態においてリモート入出力バスBSを
用いて、制御演算部1が扱う入出力データと、リモート
入出力装置PI側の入出力データとが等しく維持される
ようにするための、サイクリックスキャン伝送を行う。
5はサイクリックスキャン伝送による通信フレーム内に
停電発生を示すデータ(停電検出フラグ)の設定がある
かを判別する停電検出フラグ判別手段、6は停電確認通
信手段で、停電検出フラグが停電検出フラグ判別手段5
で検出された場合、停電確認通信をリモート入出力装置
PI側に行い、また、この停電確認通信に対するリモー
ト入出力装置側からのレスポンスフレームを受けて、停
電後のリモート入出力装置の機能が正常かどうかを判断
するようになっている。7は通信インターフェースで、
リモート入出力バスBS(今後規格化されるであろうプ
ロセスフィールドバスを含むものとする)に対する所定
の通信制御を行うように構成してある。
4 is a cyclic scan transmission means,
In a normal control operation state, using the remote input / output bus BS, a cyclic operation for maintaining input / output data handled by the control operation unit 1 and input / output data on the remote input / output device PI equal to each other. Perform scan transmission.
5 is a power failure detection flag determining means for determining whether data (power failure detection flag) indicating occurrence of power failure is set in a communication frame by cyclic scan transmission, and 6 is a power failure confirmation communication means, and the power failure detection flag is a power failure detection flag. Determination means 5
If a power failure confirmation communication is performed to the remote input / output device PI, and a response frame from the remote input / output device to the power failure confirmation communication is received, the function of the remote input / output device after the power failure is normal. It is designed to determine whether or not. 7 is a communication interface,
It is configured to perform predetermined communication control for a remote input / output bus BS (including a process field bus which will be standardized in the future).

【0013】リモート入出力装置PIにおいて、21は
リモート入出力バスBSに対する通信インターフェー
ス、22はリモート入出力装置内の各回路に電力を供給
するための電源回路で、制御演算装置CNT内の電源回
路2とは別の構成となっている。なお、ここでは、この
電源回路がリモート入出力装置内にあることを想定して
いるが、この電源回路が外部に設置されていて、例えば
バックボードのコネクタを介して電力が供給されるよう
な構成でもよい。23は電源回路22の停電や装置のバ
ックボードからの取り外しを検出する停電検出手段で、
電源回路22からの供給電圧値の低下等を監視する公知
の回路が使用可能であり、停電や装置の取り外しを検出
した場合、その事実を不揮発性のメモリ等に記憶するよ
うになっている。
In the remote input / output device PI, 21 is a communication interface for the remote input / output bus BS, 22 is a power supply circuit for supplying power to each circuit in the remote input / output device, and a power supply circuit in the control arithmetic unit CNT. 2 has a different configuration. Here, it is assumed that this power supply circuit is located in the remote input / output device, but this power supply circuit is installed outside, for example, when power is supplied through a connector on the backboard. A configuration may be used. 23 is a power failure detection means for detecting a power failure of the power supply circuit 22 and removal of the device from the backboard.
A known circuit that monitors a decrease in the supply voltage value from the power supply circuit 22 or the like can be used. When a power failure or removal of the device is detected, the fact is stored in a nonvolatile memory or the like.

【0014】24は制御演算装置CNT側のサイクリッ
クスキャン伝送手段4との間でサイクリックスキャン伝
送を行うサイクリックスキャン伝送手段、25は停電検
出フラグ設定手段で、停電検出手段23により停電があ
ったことが検出されている場合、サイクリックスキャン
伝送手段24による通信フレーム内に、停電発生を示す
停電検出フラグを設定する。26は停電検出フラグ設定
解除手段で、制御演算装置CNT側から送られた停電確
認通信を受けレスポンス通信を行い、また、制御演算装
置側で、停電復帰後のリモート入出力装置の機能が正常
であると判断された場合に送られてくる検出フラグリセ
ット通信(この通信も停電確認通信のひとつとして行わ
れるものとする)を受けて、通信フレーム内への停電検
出フラグの設定を停止するように、停電検出データ設定
手段25に指示を行うものである。
Reference numeral 24 denotes a cyclic scan transmission unit for performing cyclic scan transmission with the cyclic scan transmission unit 4 on the control arithmetic unit CNT side. Reference numeral 25 denotes a power failure detection flag setting unit. If a power failure has been detected, a power failure detection flag indicating that a power failure has occurred is set in the communication frame by the cyclic scan transmission means 24. Reference numeral 26 denotes a power failure detection flag setting canceling means, which performs response communication in response to the power failure confirmation communication sent from the control operation device CNT side, and determines whether the function of the remote input / output device after the power failure recovery is normal on the control operation device side. In response to the detection flag reset communication (this communication is also performed as one of the power failure confirmation communication) transmitted when it is determined that there is, the power failure detection flag setting in the communication frame is stopped. , To the power failure detection data setting means 25.

【0015】27は入出力回路で、センサからのデータ
やバルブ等の操作端へ出力するデータを扱う回路となっ
ている。なお、制御演算装置CNT,リモート入出力装
置PIにおいて、各サイクリック・スキャン伝送手段
4,24、停電検出フラグ判別手段5、停電確認通信手
段6、停電検出データ設定手段25、データ設定解除手
段26等の各手段は、いずれも伝送制御用のマイクロプ
ロセッサによって実現される。また、各通信インターフ
ェース7,21は、リモート入出力バスBSに、入出力
データを通常ビットシリアルな信号とし、所定のフォー
マッテングをして送出したり、これらの信号を受信した
りする構成となっている。
Reference numeral 27 denotes an input / output circuit which handles data from a sensor and data output to an operation terminal such as a valve. In the control arithmetic unit CNT and the remote input / output unit PI, each of the cyclic scan transmission units 4 and 24, the power failure detection flag determination unit 5, the power failure confirmation communication unit 6, the power failure detection data setting unit 25, and the data setting cancellation unit 26 Are realized by a transmission control microprocessor. Each of the communication interfaces 7 and 21 has a configuration in which input / output data is normally transmitted as a bit-serial signal to the remote input / output bus BS and is transmitted in a predetermined format, or these signals are received. ing.

【0016】このように構成した装置の動作を次に説明
する。 (正常な制御運転状態での動作) 制御演算装置CNTにおいて、サイクリック・スキャン
伝送手段4は、制御演算部1が扱う入出力データと、リ
モート入出力装置PI側の入出力データとが等しく維持
されるようにするための、サイクリックスキャン伝送を
リモート入出力装置PI側のサイクリックスキャン伝送
手段24と協調して行っている。このサイクリックスキ
ャン伝送は、制御演算部1の制御演算周期に対して、オ
ーバサンプリングとなる周期でサイクリックに行われて
おり、共有メモリ3には、複数のリモート入出力装置
1,PI2…からの入出力データが書き込まれ、その
内容が更新される。
The operation of the apparatus having the above configuration will be described below. (Operation in Normal Control Operation State) In the control arithmetic unit CNT, the cyclic scan transmission unit 4 maintains the input / output data handled by the control arithmetic unit 1 and the input / output data of the remote input / output unit PI equal. For this purpose, the cyclic scan transmission is performed in cooperation with the cyclic scan transmission means 24 of the remote input / output device PI. This cyclic scan transmission is cyclically performed at a cycle of oversampling with respect to the control calculation cycle of the control calculation unit 1, and a plurality of remote input / output devices P
Input / output data from I 1, PI 2... Are written, and the contents are updated.

【0017】また、制御演算部1は、共有メモリ3に書
き込まれている入出力データを制御演算周期で読みだ
し、これらのデータを用いて所定の制御演算を実施し、
その演算結果を共有メモリ3に書き込む。共有メモリ3
に制御演算部1により書き込まれた出力データは、複数
のリモート入出力装置PI1,PI2…側に送られ、リ
モート入出力装置PI1,PI2…につながるアクチュ
エータの動作に反映される。
The control operation unit 1 reads out input / output data written in the shared memory 3 at a control operation cycle, and performs a predetermined control operation using these data.
The calculation result is written to the shared memory 3. Shared memory 3
Is sent to the plurality of remote input / output devices PI1 , PI2, ... And is reflected in the operation of the actuator connected to the remote input / output devices PI1 , PI2,.

【0018】この様な動作により、例えば、弁(バル
ブ)の開閉度が制御演算部1の演算結果に追従して制御
される制御運転を実施する。なお、複数のリモート入出
力装置PI1,PI2…のどの装置が、共有メモリ3の
どのアドレス位置に対応するか、どのようなデータ伝送
を行うかは、装置の動作を開始する時点であらかじめ各
リモート入出力装置毎に設定されているものとする。
(リモート入出力装置において、停電が発生したり装置
が取り外された後、電源が復電した場合の動作)図2
は、リモート入出力装置PI側の動作を示すフローチャ
ートであり、図3は、制御演算装置CNT側の動作を示
すフローチャートである。
By such an operation, for example, a control operation in which the opening / closing degree of a valve (valve) is controlled following the calculation result of the control calculation unit 1 is performed. It is to be noted that which device of the plurality of remote input / output devices PI 1, PI 2... Corresponds to which address position of the shared memory 3 and what kind of data transmission is to be performed at the time of starting the operation of the device. It is assumed that the setting is made for each remote input / output device.
(Operation when power is restored after a power failure or removal of a remote input / output device) FIG.
Is a flowchart showing an operation on the remote input / output device PI side, and FIG. 3 is a flowchart showing an operation on the control arithmetic unit CNT side.

【0019】リモート入出力装置PIにおいて、停電検
出手段23は電源回路22からの電圧低下や、装置をバ
ックボードから取り外したりするのを検出すると、リモ
ート入出力装置PI内の各手段を実現するためのマイク
ロプロセッサにリセット信号を送り、マイクロプロセッ
サをリセットする(ステップ1,2)。停電から復帰し
たり、装置をバックボードに再び装着したりすると、停
電検出手段23は、停電復帰を検出し、リセット解除信
号をマイクロプロセッサに出力する(ステップ3,
4)。リモート入出力装置PI内のマイクロプロセッサ
が動作状態となると、サイクリック・スキャン伝送手段
24によるサイクリック・スキャン伝送が再開される。
In the remote input / output device PI, when the power failure detection means 23 detects a voltage drop from the power supply circuit 22 or the removal of the device from the backboard, the power failure detection means 23 realizes each means in the remote input / output device PI. A reset signal is sent to the microprocessor of (1) to reset the microprocessor (steps 1 and 2). Upon recovery from the power failure or when the device is mounted again on the backboard, the power failure detection means 23 detects the recovery from the power failure and outputs a reset release signal to the microprocessor (step 3,
4). When the microprocessor in the remote input / output device PI is activated, the cyclic scan transmission by the cyclic scan transmission means 24 is restarted.

【0020】ここで、停電検出フラグ設定手段25は、
停電があったこと、あるいは装置がバックボードから取
り外されていたことを示すデータ(停電検出フラグ)を
サイクリック・スキャン伝送手段24から出力する通信
フレーム内に設定する(ステップ5)。図4は、サイク
リック・スキャン伝送手段24によりリモート入出力バ
スBS上に出力される通信フレーム(通信パケット)の
一例を示す構成図である。
Here, the power failure detection flag setting means 25
Data (power failure detection flag) indicating that a power failure has occurred or the device has been removed from the backboard is set in a communication frame output from the cyclic scan transmission means 24 (step 5). FIG. 4 is a configuration diagram showing an example of a communication frame (communication packet) output onto the remote input / output bus BS by the cyclic scan transmission means 24.

【0021】通信フレームの先頭には、プリアンブル部
があり、続いて、送信先アドレスADR、送信元アドレ
ス(リモート入出力装置PIを代表するアドレス)SA
D、停電があったこと、あるいは装置がバックボードか
ら取り外されていたことを示す停電検出フラグFG、リ
モート入出力装置側から送るデータDA、最後にパリテ
ィPY等で構成されている。停電や装置がバックボード
から取り外された事実がない場合は、停電検出フラグF
Gはリセットされている。
At the beginning of the communication frame, there is a preamble portion, followed by a destination address ADR and a source address (address representative of the remote input / output device PI) SA.
D, a power failure detection flag FG indicating that a power failure has occurred or the device has been removed from the backboard, data DA sent from the remote input / output device, and finally parity PY. If there is no power failure or the fact that the device has been removed from the backboard, the power failure detection flag F
G has been reset.

【0022】制御演算装置CNTにおいて、サイクリッ
ク・スキャン伝送手段4はこの様な構成の通信フレーム
を受信し、必要なデータを抽出する(ステップ21)。
また、停電検出フラグ判別手段5は通信フレーム内に、
停電検出フラグがあるかどうかの判定を行う(ステップ
22)。ここで、停電検出フラグが検出されると、リモ
ート入出力装置側で停電があった事実を、上位の計算機
(図示していないが制御演算装置の上位側に存在するマ
ンマシンインターフェースとして機能するオペレータス
テーション等)に通知し(ステップ24)、停電確認通
信手段6は、リモート入出力装置PI側に対して停電確
認通信を行う(ステップ25)。
In the control arithmetic unit CNT, the cyclic scan transmission means 4 receives the communication frame having such a configuration and extracts necessary data (step 21).
Further, the power failure detection flag determination means 5 includes, in the communication frame,
It is determined whether there is a power failure detection flag (step 22). Here, when the power failure detection flag is detected, the fact that a power failure has occurred on the remote input / output device side is reported to a higher-level computer (not shown, but an operator functioning as a man-machine interface existing on the higher-level side of the control operation device) Station, etc.) (step 24), and the power failure confirmation communication means 6 performs a power failure confirmation communication to the remote input / output device PI (step 25).

【0023】リモート入出力装置PI側において、この
停電確認通信を受けると、データ設定解除手段26は、
この停電確認通信に対するレスポンス通信(レスポンス
フレームの送出)を行う(ステップ7)。このレスポン
ス通信においては、リモート入出力装置PI側から、例
えばそのリモート入出力装置の持つデータベースの情報
(サムチェックデータやデータ長さ等)がレスポンスフ
レーム内に搭載されて送られる。このレスポンスフレー
ム内には、停電検出フラグの設定はされておらず、従っ
て、制御演算装置において、ステップ22では、「N
O」の判断となり、ステップ23でこのレスポンスフレ
ームの受信が検出される。
When the remote input / output device PI receives this power failure confirmation communication, the data setting canceling means 26
A response communication (transmission of a response frame) to the power failure confirmation communication is performed (step 7). In this response communication, for example, database information (sum check data, data length, and the like) of the remote input / output device is mounted in a response frame and sent from the remote input / output device PI. The power failure detection flag is not set in this response frame.
In step 23, the reception of the response frame is detected.

【0024】制御演算装置CNTにおいて、このレスポ
ンスフレームを受けると、データベース情報から停電復
帰後のリモート入出力装置PIのデータベースが消失し
ているか、機能が正常か等の判断を行う(ステップ2
6)。そして、リモート入出力装置が正常であると判断
されると、停電検出フラグをリセットするための検出フ
ラグリセット通信を行う(ステップ27)。
When the control arithmetic unit CNT receives this response frame, it determines from the database information whether the database of the remote input / output unit PI after the recovery from the power failure has disappeared or the function is normal (step 2).
6). If it is determined that the remote input / output device is normal, detection flag reset communication for resetting the power failure detection flag is performed (step 27).

【0025】リモート入出力装置PIの停電検出フラグ
設定解除手段26は、この検出フラグリセット通信を受
けて、停電検出フラグ設定手段25による停電検出フラ
グの設定動作を以後中止する(リセットする)ように指
示する(ステップ8)。その後の動作は、停電の発生を
監視しながら、定常の入出力処理を行うこととなる(ス
テップ9,10)。
The power failure detection flag setting canceling means 26 of the remote input / output device PI receives this detection flag reset communication so as to stop (reset) the power failure detection flag setting operation by the power failure detection flag setting means 25 thereafter. Instruct (step 8). Subsequent operations perform a regular input / output process while monitoring the occurrence of a power failure (steps 9 and 10).

【0026】一方、制御演算装置CNTにおいて、ステ
ップ26でリモート入出力装置PIの動作が正常でない
と判断されると、リモート入出力装置に対して、検査通
信処理を実施することになる(ステップ28)。この検
査通信処理は、停電から復帰後の検査や初期処理を行う
プログラムで構成されており、制御演算装置とリモート
入出力装置との間で、通信フレームの伝送が正常にでき
るかの確認や、必要なデータベースのダウンロード処理
などを含んでいる。この様なリモート入出力装置に対す
る検査や初期処理を行った後、再びリモート入出力装置
PIに対して、停電確認通信を行い(ステップ29)、
リモート入出力装置からのレスポンスフレームの受信を
待つ。
On the other hand, in the control arithmetic unit CNT, if it is determined in step 26 that the operation of the remote input / output device PI is not normal, the inspection communication process is performed on the remote input / output device (step 28). ). The inspection communication processing is configured by a program for performing inspection and initial processing after recovery from a power failure, and confirms whether transmission of a communication frame can be normally performed between the control arithmetic device and the remote input / output device, Includes necessary database download processing. After performing such inspection and initial processing on the remote input / output device, power outage confirmation communication is again performed with the remote input / output device PI (step 29).
Wait for a response frame from the remote input / output device.

【0027】そして、リモート入出力装置の動作・機能
が正常と判断されて、ステップ27で行われる検出フラ
グリセツト通信に基づき、サイクリック・スキャン伝送
手段による通信フレーム内から停電検出フラグがなくな
ると、ステップ30において、停電検出フラグなしの判
断となり、通常の入出力データ処理に移行する(ステッ
プ30)。
If the operation / function of the remote input / output device is determined to be normal and the power failure detection flag disappears from the communication frame by the cyclic scan transmission means based on the detection flag reset communication performed in step 27, In step 30, it is determined that there is no power failure detection flag, and the process shifts to normal input / output data processing (step 30).

【0028】なお、ステップ28において、リモート入
出力装置PIに対して検査通信処理を行った後におい
て、ステップ26での判断でリモート入出力装置が正常
とならない場合、ステップ28,29で検査通信処理と
停電確認通信が繰り返して行われることとなる。従っ
て、その繰り返し回数を予め設定しておき、設定した規
定回数に達したら、そのリモート入出力装置は異常と判
断し、以後の処理を打ち切るように構成してある。
After performing the test communication process on the remote input / output device PI in step 28, if the remote input / output device is not normal as determined in step 26, the test communication process is executed in steps 28 and 29. And the power failure confirmation communication will be performed repeatedly. Therefore, the number of repetitions is set in advance, and when the set number of times is reached, the remote input / output device is determined to be abnormal and the subsequent processing is terminated.

【0029】[0029]

【発明の効果】以上詳細に説明したように、本発明は、
リモート入出力装置側で電源の停電が発生したり、装置
の取り外しがあった場合、その情報を電源復帰後にサイ
クリックスキャン伝送による通信フレーム内に設定して
伝送するようにしたもので、通信経路間に、幾つもの媒
体が存在していたとしても停電発生等の事実を制御演算
装置側に確実に伝送することができ、リモート入出力装
置が停電や装置からの取り外しにより動作不具合いなど
が生じている場合に適切な対応をとることが可能とな
る。また、本発明の分散形制御装置は、制御演算装置と
リモート入出力装置との間に通信異常が発生した場合、
これが通信経路上に発生した異常による通信異常である
のか、リモート入出力装置側の停電による通信異常であ
るのかを復電時にリモート入出力装置からサイクリック
・スキャン伝送により送信されてくる最初の通信データ
により判断することが可能となる。更に、リモート入出
力装置の復電直後に送信される通信データにより停電の
検知が可能であるため、サイクリック・スキャンの周期
の狭間に発生した瞬間的な停電に対しても停電の検出が
可能となる。
As described in detail above, the present invention provides
When a power failure occurs or the device is removed on the remote I / O device side, the information is set in a communication frame by cyclic scan transmission after power is restored, and is transmitted. In the meantime, even if there are several media, the fact that a power failure has occurred can be reliably transmitted to the control operation device side, and the remote input / output device may malfunction due to a power failure or removal from the device. In such a case, it is possible to take appropriate measures. Further, the distributed control device of the present invention includes a control arithmetic device and
If a communication error occurs with the remote I / O device,
This is a communication error due to an error that occurred on the communication path
Or a communication error due to a power failure on the remote I / O device side.
The power from the remote I / O device when power is restored
・ First communication data transmitted by scan transmission
Can be determined. In addition, remote entry and exit
Power failure due to communication data transmitted immediately after the power
Detection is possible, so cyclic scan cycle
Power failure detection even for momentary power failures occurring between
It becomes possible.

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

【図1】本発明の一実施例を示す構成ブロック図であ
る。
FIG. 1 is a configuration block diagram showing one embodiment of the present invention.

【図2】リモート入出力装置PI側の動作を示すフロー
チャートである。
FIG. 2 is a flowchart illustrating an operation of the remote input / output device PI.

【図3】制御演算装置CNT側の動作を示すフローチャ
ートである。
FIG. 3 is a flowchart showing the operation of the control arithmetic unit CNT.

【図4】サイクリック・スキャン伝送手段24によりリ
モート入出力バスBS上に出力される通信フレーム(通
信パケット)の一例を示す構成図である。
FIG. 4 is a configuration diagram illustrating an example of a communication frame (communication packet) output on a remote input / output bus BS by a cyclic scan transmission unit 24;

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

CNT 制御演算装置 PO1,PO2… 複数のリモート入出力装置 BS リモート入出力バス 1 制御演算部(プロセッサ) 2 電源回路 3 不揮発性の共有メモリ 4 サイクリックスキャン伝送手段 5 停電検出フラグ判定手段 6 停電確認通信手段 7,21 通信インターフェース 22 電源回路 23 停電検出手段 24 サイクリックスキャン伝送手段 25 停電検出フラグ設定手段 26 停電検出フラグ設定解除手段 27 入出力回路 CNT Control operation device PO1, PO2 ... Multiple remote input / output devices BS Remote input / output bus 1 Control operation unit (processor) 2 Power supply circuit 3 Non-volatile shared memory 4 Cyclic scan transmission means 5 Power failure detection flag determination means 6 Power failure confirmation Communication means 7, 21 Communication interface 22 Power supply circuit 23 Power failure detection means 24 Cyclic scan transmission means 25 Power failure detection flag setting means 26 Power failure detection flag setting release means 27 I / O circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G05B 11/36 G05B 9/02 H04Q 9/00 - 9/06 ──────────────────────────────────────────────────続 き Continued on the front page (58) Fields surveyed (Int. Cl. 7 , DB name) G05B 11/36 G05B 9/02 H04Q 9/00-9/06

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】制御演算を担当する制御演算装置と、この
制御演算装置にリモート入出力バスを介して結ばれるリ
モート入出力装置とで構成され、通常の状態ではリモー
ト入出力バスを介して、制御演算装置が扱う入出力デー
タとリモート入出力装置側の入出力データとが等しく維
持されるようにするための、サイクリックスキャン伝送
が行われている分散形制御装置であって、 リモート入出力装置の電源の停電及び瞬停を検出する停
電検出手段と、リモート入出力装置が停電又は瞬停した場合、少なくと
も復電後の最初の 前記サイクリックスキャン伝送による
通信フレーム内に停電発生を示す停電検出フラグを設定
する停電検出フラグ設定手段と、 制御演算装置側から送られた停電確認通信を受け、当該
停電確認通信に対するレスポンス通信を行うと共に、通
信フレーム内への停電発生フラグの設定停止を指示する
停電検出フラグ設定解除手段とを設け、制御演算装置
に、前記サイクリックスキャン伝送による通信フレーム
内に停電検出フラグの設定があるかを判別する停電検出
フラグ判別手段と、 停電検出フラグが検出された場合、停電確認通信を前記
リモート入出力装置側に行うと共に、当該停電確認通信
に対するレスポンスを受け、リモート入出力装置が正常
か否かを判断する停電確認通信手段とを備えたことを特
徴とする分散形制御装置。
The present invention comprises a control operation device in charge of control operation and a remote input / output device connected to the control operation device via a remote input / output bus. A distributed control device for performing cyclic scan transmission for maintaining the input / output data handled by the control arithmetic unit and the input / output data of the remote input / output device equally, comprising: A power failure detection means for detecting a power failure and a momentary power failure of a device, and at least a power failure or a momentary failure of a remote input / output device
Power failure detection flag setting means for setting a power failure detection flag indicating the occurrence of a power failure in a communication frame by the first cyclic scan transmission after power recovery , and receiving a power failure confirmation communication sent from the control operation device side, A power failure detection flag setting canceling means for performing response communication with respect to the confirmation communication and instructing to stop setting the power failure occurrence flag in the communication frame is provided, and the control arithmetic unit detects the power failure in the communication frame by the cyclic scan transmission. A power failure detection flag determining means for determining whether a flag is set; and, if a power failure detection flag is detected, perform power failure confirmation communication to the remote input / output device side, receive a response to the power failure confirmation communication, and receive a remote power-on confirmation signal. And a power failure confirmation communication means for determining whether or not the output device is normal. Location.
JP29602392A 1992-11-05 1992-11-05 Distributed control device Expired - Fee Related JP3216272B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29602392A JP3216272B2 (en) 1992-11-05 1992-11-05 Distributed control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29602392A JP3216272B2 (en) 1992-11-05 1992-11-05 Distributed control device

Publications (2)

Publication Number Publication Date
JPH06149304A JPH06149304A (en) 1994-05-27
JP3216272B2 true JP3216272B2 (en) 2001-10-09

Family

ID=17828121

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29602392A Expired - Fee Related JP3216272B2 (en) 1992-11-05 1992-11-05 Distributed control device

Country Status (1)

Country Link
JP (1) JP3216272B2 (en)

Also Published As

Publication number Publication date
JPH06149304A (en) 1994-05-27

Similar Documents

Publication Publication Date Title
US5418937A (en) Master-slave type multi-processing system with multicast and fault detection operations having improved reliability
US5742851A (en) Information processing system having function to detect fault in external bus
EP1990723B1 (en) Information processing apparatus control method and information processing apparatus
JP3216272B2 (en) Distributed control device
JPH05158502A (en) Decentralized controller
JP3157759B2 (en) Hot-swap detection
JP2000040039A (en) Daisy chain failure avoidance system
US5706468A (en) Method and apparatus for monitoring and interfacing a dual port random access memory in a system having at least two independent CPUs
US20070030596A1 (en) Abnormal state determination method and apparatus
JPH03253945A (en) Abnormality recovery processing function confirming system for data processing system
EP1845447B1 (en) Method, apparatus and software for preventing switch failures in the presence of faults
JP2993349B2 (en) Distributed control device
JP3080150B2 (en) General-purpose interface control device and general-purpose interface control method
CA1133088A (en) Control system for input/output apparatus
JPH06290066A (en) Duplex device
KR100583644B1 (en) Carrier loading method for semiconductor fabricating apparatus
JPH1168802A (en) Faulty environment supervisory system
JPH04284511A (en) Abnormality detector for programmable controller
JP2000013469A (en) Device and method for recovering communication equipment
JP3169488B2 (en) Communication control device
JP3728960B2 (en) Protective relay system
JP3042034B2 (en) Failure handling method
JPH0916434A (en) Detecting method for failure information at time of runaway of cpu
JPH03202943A (en) Error detection system for storage device
JPH04177538A (en) Error detecting system

Legal Events

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

Free format text: PAYMENT UNTIL: 20070803

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080803

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080803

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090803

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100803

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100803

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110803

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120803

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees