JPS5839307A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS5839307A
JPS5839307A JP56137446A JP13744681A JPS5839307A JP S5839307 A JPS5839307 A JP S5839307A JP 56137446 A JP56137446 A JP 56137446A JP 13744681 A JP13744681 A JP 13744681A JP S5839307 A JPS5839307 A JP S5839307A
Authority
JP
Japan
Prior art keywords
output
abnormality
input
flag
machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP56137446A
Other languages
Japanese (ja)
Other versions
JPS6160445B2 (en
Inventor
Kenji Nishikido
憲治 錦戸
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP56137446A priority Critical patent/JPS5839307A/en
Priority to GB08223840A priority patent/GB2104685B/en
Priority to DE19823231419 priority patent/DE3231419A1/en
Publication of JPS5839307A publication Critical patent/JPS5839307A/en
Priority to US06/898,898 priority patent/US4725976A/en
Publication of JPS6160445B2 publication Critical patent/JPS6160445B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/058Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1159Image table, memory
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1179Safety, on error, fault, block, inhibit output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/12Plc mp multi processor system
    • G05B2219/1209Exchange control, I-O data to other plc, individually, without host
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/14Plc safety
    • G05B2219/14043Detection of abnormal temperature
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/14Plc safety
    • G05B2219/14053Power failure, loss, abnormal battery

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Safety Devices In Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To prevent a controlled system from entering into a dangerous state by providing a fault flag, an other-equipment fault falg, and an exit inhibiting flag in the working memory of each of plural programmable control machines coupled together on parallel link basis. CONSTITUTION:Two programmable control machines #1 and #2 of the same constitution are coupled together through a link bus CB and a fault signal line SB. In the working memory WM8 of each control machine 1, a fault flag F1 to be set when a fault is detected by a battery fault detector 12, a fault falg F2 to be set when a fault is detected by a temperature fault detecting circuit 13, and an other-equipment flag F3 to be set when a fault reception signal has a high level are set. Further, an output inhibiting flag FO to be set or reset in accordance with the result of optional logical arithmetic among the flags F1, F2, and F3, and optional input and output data is set in the memory 8, and thus prescribed output conditions are obtained.

Description

【発明の詳細な説明】 この発明はプログラマブル・コントローラに関し、特に
、複数台をリンクバスで互いに結合して全体を1台のコ
ントローラの如く機能させる並列リンク方式のコントロ
ーラシステムを構築できるようにしたプログラマブル・
コント0−ラに関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a programmable controller, and in particular to a programmable controller that can construct a parallel link type controller system in which a plurality of controllers are connected to each other via a link bus and the entire controller functions as one controller.・
Regarding the controller.

従来、大規模な制御対象には大規模なプログラマブル・
コントローラを使用しなければならなかったのに対し、
並列リンク方式のプログラマブル・コントローラシステ
ムというのは、比較的小規模なプログラマブル・コント
ローラを複数台使用することによって大規模な制御対象
にも対応ぐきるように考えられたものである。つまり、
各11」グラマプル・コントローラには自機の入出力端
f数より充分大きな容量の入出カメモリを段klる。
Conventionally, large-scale programmable
whereas I had to use a controller.
A parallel link type programmable controller system was designed to be able to handle large-scale control objects by using a plurality of relatively small-scale programmable controllers. In other words,
Each 11'' grammar pull controller is provided with an input/output memory having a capacity sufficiently larger than the number of input/output terminals f of its own machine.

例えば1台のプログラマブル・コントローラの入出力端
子数は64点で、かつ並列9296式のシステムとして
最大4台のコントローラを結合できるようにjるものと
すると、各コントローラの人出ツノメモリは人出力デー
タエリアとして少くとも64×4ビツトの容量を持たせ
る。そして、このプログラマブル・コントローラを1台
のみで使用する場合には、入出力点数が64の通常のコ
ントローラとして動作する訳だが複数台のコントローラ
をリンクバスによって結合したとき、互いのユーザプロ
グラムの実行動作に同期して互いの入出カメモリのデー
タを交換し合うように、各プ[lグラマプル・コントロ
ーラに入出力データ交換手段およびニー41プログラム
同期実行手段を設GJるのである。これにより、入出力
状態を他機に伝え、また他機の入出力状態を自機に受取
り、それら全体の入出力状態に基づいて各機においてそ
れぞれのユーザプログラムを実行し、その実行結果を再
び各機に伝え合うという制御動作を行なうものである。
For example, if one programmable controller has 64 input/output terminals, and a maximum of 4 controllers can be connected as a parallel 9296-type system, each controller's output horn memory stores human output data. The area should have a capacity of at least 64 x 4 bits. When only one programmable controller is used, it operates as a normal controller with 64 input/output points, but when multiple controllers are connected via a link bus, the execution of each other's user programs Each program controller is provided with input/output data exchange means and knee 41 program synchronization execution means so as to exchange data in each other's input/output memories in synchronization with each other. This allows the input/output status to be transmitted to other machines, the input/output status of other machines to be received by the own machine, each user program executed on each machine based on the overall input/output status, and the execution results returned to the machine. It performs control operations that communicate information to each machine.

従って、上記の例のプ【」グラマ1ル・コントローラを
4台リンクしたシステムでは、入出カ貞数が・64×4
の一1台のプログラマブル・コントローラでもって1系
統の大規模な制御対象を制御するのと同等な制御機能を
、そのための制御プログラムを4台の」ントローラで分
担実行することによって実現できるのである。
Therefore, in the system in which four grammar controllers in the above example are linked, the number of input and output ports is 64 x 4.
The same control function as controlling one system of large-scale control objects using 11 programmable controllers can be achieved by sharing and executing the control programs for that system among 4 controllers.

上述した並列リンク方式のシステムの場合、リンクされ
た複数台のプログラマブル・コントローラを1台のブ[
]グラマプル・コントローラの如く機能させるのぐある
から、リンクされた複数のコントローラの内の1台でも
異常を生じて正常な制御が行なえない場合、システム全
体のυNil動作を停止させないと、制御対象機器を全
くブタラメな制御状態に陥ら゛せてしまうことがあり、
極めて危険である。
In the case of the parallel link system described above, multiple linked programmable controllers are connected to one block.
] Since there is a device that functions like a Gramapul controller, if one of the multiple linked controllers malfunctions and cannot perform normal control, the controlled device must be stopped unless the υNil operation of the entire system is stopped. may fall into a completely uncontrolled state,
Extremely dangerous.

また、従来のプログラマブル・コントローラにおいては
バッテリの電圧異常を検出する手段や、装置内の温痩が
異常に上昇することを検出する手段や、装置内のパスラ
インのパリティ−チェックを行なって、データの異常を
検出する手段等の異常診断手段が設けられており、この
異常診断手段によって装置の異常が検出されたとき、プ
ログラマブル・コントローラの動作を停止する(出力信
号を全てオフにする)ように構成されていた。
In addition, conventional programmable controllers have a means for detecting abnormal battery voltage, a means for detecting an abnormal increase in temperature within the device, and a parity check of the pass line within the device to control the data. An abnormality diagnosing means such as a means for detecting an abnormality is provided, and when an abnormality in the device is detected by this abnormality diagnosing means, the operation of the programmable controller is stopped (all output signals are turned off). It was configured.

しかしプログラマブル・コントローラの使用者の立場で
は、装置内の何等かの異常が生じたとき、その異常の種
類や異常が生じたときの制御対象の状況に一切関わりな
く装置の動作を全面的に停止1してしまうのは、実際面
で必ずしも適切とはいえないことがしばしばあった。
However, from the user's perspective of a programmable controller, when some kind of abnormality occurs within the device, the operation of the device is completely stopped, regardless of the type of abnormality or the situation of the object to be controlled when the abnormality occurs. In practice, it was often not always appropriate to do so.

このことは、並列リンク方式のシステムの場合に更に複
雑な問題となり、各プログラマブル・コントローラで異
常が検出されたとき、ハード的にその動作を停止させる
よ、うに固定的に構成されCいるのは適切ではない。
This problem becomes even more complicated in the case of parallel link systems, where each programmable controller is fixedly configured to stop its operation when an abnormality is detected. Not appropriate.

この発明は上述した従来の問題点に鑑みなされたもので
あり、その目的は、装置内部のどのよう5− な異常が検出され、また$17111対象がどのような
状況にあるときに制御出力を禁止状態にするかを、使用
者の立場で任意に設定してこれを]−ザブログラムの一
部として組めるようにする他、上述した並列リンク方式
のプログラマブル・コントローラシステムを構成した場
合において、リンクされた複数台のプログラマブル・コ
ントローラの内の1台でも異常によって制御出力を禁止
状態にしたとき、その異常信号を速やかに他のプログラ
マブル・コントローラに伝え、各プログラマブル・コン
トローラでは他機からの上記異常信号によって自機の制
御出力動作を禁止するか否かをやはりユーザプログラム
の一部として組めるようにしたプログラマブル・コント
ローラを提供することにある。
This invention was made in view of the above-mentioned conventional problems, and its purpose is to determine what kind of abnormality inside the device is detected, and what kind of situation the $17111 object is in when outputting the control output. In addition to making it possible for the user to freely set whether to inhibit the state and assemble it as part of the program, when the above-mentioned parallel link system programmable controller system is configured, the linked When one of the multiple programmable controllers disables control output due to an abnormality, the abnormal signal is immediately transmitted to the other programmable controllers, and each programmable controller receives the abnormal signal from the other controllers. It is an object of the present invention to provide a programmable controller in which whether or not to inhibit the control output operation of the controller itself can be set as part of the user program.

上記の目的を達成するために、この発明は、装置内部の
異常を検出する複数種類の異常診断手段と、各異常診断
手段に対応して設定されその診断結果に応じてセットま
たはリセットされる複数の異常フラグと、他機から発せ
られる異常信号を受6− 信する異常信号受信手段と、この受信手段にC異常信号
を受信したときにセットされる他機異常フラグと、ユー
ザ10グラムの一部として任意に段室された命令を実行
することにより、上記異常フラグ、他機異常フラグおよ
び任意の入出力データ間の任意の論理演禅の結果でもっ
てセットまたはリセットされる出力禁止フラグと、この
出力禁廿フラグがセットされたとき制御出力動作を禁+
t して所定の出力状態にする出力禁止手段と、」−2
出力禁止フラグがセットされたとき他機に対して異常信
号を送出する異常信号送信手段とを錫えたことを特徴と
する。
In order to achieve the above object, the present invention provides a plurality of types of abnormality diagnosing means for detecting abnormalities inside a device, and a plurality of types of abnormality diagnosing means that are set corresponding to each abnormality diagnosing means and set or reset according to the diagnosis results. an abnormality flag, an abnormality signal receiving means for receiving an abnormality signal emitted from another device, another device abnormality flag that is set when the receiving means receives a C abnormality signal, and a user 10g. an output prohibition flag that is set or reset as a result of any logical operation between the abnormality flag, the other machine abnormality flag, and any input/output data by executing a command arbitrarily set as part; Control output operation is prohibited when this output prohibition flag is set.
t and an output inhibiting means for setting the output state to a predetermined output state, "-2
The present invention is characterized in that it includes an abnormality signal transmitting means for transmitting an abnormality signal to other devices when the output prohibition flag is set.

以下、この発明の実施例を図面に基づいて詳細に説明す
る。
Hereinafter, embodiments of the present invention will be described in detail based on the drawings.

第1図においで、#1および#2はぞれぞれ本発明に係
るプログラマブル・コントローラぐあり、2台の同一構
成のプログラマブル・=1ントローフをリンクバスCB
と異常信号ラインSBでもって結合し、上述した並列リ
ンク方式のコントローラシステムを構成している図であ
る。プログラマ1ル・コントローラ#1.#2は、基本
構成として、ユーザプログラムが格納されるユーザプロ
グラムメモリ(PM)1と、外部入力信号が与えられる
入力回路(rU)2と、外部出力信号を送出する出力回
路(OU)3と、上記入力回路2および出力回路3に対
応した入出力データのバッファメモリとなる入出カメモ
リ(IM>4と、上記1−ザブログラムメモリ1の各命
令を順次高速に実行し、上記入出カメモリ4のデータに
基づいて論理演粋処理を行なうとともに、その処理結果
で上記入出カメモリ4の出力データを書換える命令実行
手段と、上記入力回路2の入力データ上記入出カメモリ
4の所定エリアに書込む入力更新手段と、上記入出カメ
モリ4の所定エリアの出力データを上記出力回路3にセ
ットする出力更新手段とを有し、このプログラマブル・
コントローラを1台のみで使用する場合には従来からの
プログラマブル・コント0−ラと全く同様に動作する。
In FIG. 1, #1 and #2 are programmable controllers according to the present invention, respectively, and connect two programmable controllers with the same configuration to a link bus CB.
FIG. 12 is a diagram configuring the above-mentioned parallel link type controller system by connecting the controller with the abnormal signal line SB. Programmer Controller #1. #2 has a basic configuration including a user program memory (PM) 1 in which a user program is stored, an input circuit (rU) 2 to which an external input signal is applied, and an output circuit (OU) 3 to send out an external output signal. , the input/output memory (IM>4, which serves as a buffer memory for input/output data corresponding to the input circuit 2 and the output circuit 3), and the 1-program memory 1, each of which executes instructions at high speed sequentially. an instruction execution means for performing logical operation processing based on the data in the input/output memory 4 and rewriting the output data of the input/output memory 4 with the result of the processing; This programmable computer has input updating means for writing, and output updating means for setting output data in a predetermined area of the input/output memory 4 to the output circuit 3.
When only one controller is used, it operates in exactly the same way as a conventional programmable controller.

この発明に係るプログラマブル・コントローラでは、上
述した並列リンク方式のコントローラシステムを構築で
きるようにするために、2台の!ログフマブル・コント
ローラ#1.#2を(8目線CB、SBで結合するリン
クユニット(IU)5と、2台のプログラマブル・コン
トローラ#1゜#2間の入出力データ転送時の優先順位
を決定するための機番設定器(SL>6とを備える他、
入出カメモリ4の容量は自機の入力回路2および出力回
路3の端子数分のエリアに加えて、他機の入力回路2お
よび出力回路3の端子数に対応した一1リアを有してい
る。更に、プログラマブル・コントローラ#1.#2を
リンクバスCBによ−)で接続したとき、互いのユーザ
プログラムの実行動作に同期して互いの入出カメモリ4
のデータを交換し合う入出力データ交換手段およびユー
ザプログラム同期実行手段を備えている。
In the programmable controller according to the present invention, in order to construct the above-mentioned parallel link type controller system, two! Logfumable controller #1. A machine number setting device for determining the priority order during input/output data transfer between the link unit (IU) 5 that connects #2 at the (8th line CB and SB) and the two programmable controllers #1 and #2. (In addition to having SL>6,
The capacity of the input/output memory 4 has an area corresponding to the number of terminals of the input circuit 2 and output circuit 3 of the own machine, and an area corresponding to the number of terminals of the input circuit 2 and output circuit 3 of the other machine. . Furthermore, programmable controller #1. #2 is connected via the link bus CB (-), the input/output memory 4 of each other is synchronized with the execution operation of each other's user programs.
The system includes input/output data exchange means for exchanging data, and user program synchronization execution means.

上述した命令実行手段、入力更新手段、出力史斬手段、
入出力データ交換手段、ユーザプログラム同期実行手段
等のプログラマブル・」ントローラの主要な信号処理動
作はいわゆるマイクロプロセッサで構成される中央処理
ユニット(CPLJ)9− 7によって行なわれる。このCPU7はワーキングメモ
リ(WM)8を各種可変データの一時記憶エリアとして
使用し、各処理動作を行なう。
The above-mentioned instruction execution means, input updating means, output history cutting means,
The main signal processing operations of the programmable controller, such as input/output data exchange means and user program synchronization execution means, are performed by a central processing unit (CPLJ) 9-7 comprised of a so-called microprocessor. The CPU 7 uses a working memory (WM) 8 as a temporary storage area for various variable data to perform various processing operations.

自機#1.#2におけるそれぞれの入出カメモリ4のア
ドレス空間は同一のちのであり、第2図に入出カメモリ
4のアドレスエリア区分を示しているように、■リア#
11は#1号機の入力回路2に対応し、エリア#11お
よび#12は#1号機の出力回路3に対応している。特
に、#11は#1号機のユーザプログラムによって出力
データが書換えられるエリアであり、■リア#12は#
2号機のユーザプログラムによって出カニリアが書換え
られるエリアである。同様に、#21は#2号機の入力
回路2に対応したエリアであり、#21および#22は
#2号機の出力回路3に対応したエリアである。特に、
#21は#1号機によって出力データが書換えられるエ
リアで、#22は#2号機によって出力データが書換え
られるエリアである。
Own machine #1. The address space of each input/output memory 4 in #2 is the same, and as shown in Figure 2, which shows the address area division of the input/output memory 4,
11 corresponds to the input circuit 2 of the #1 machine, and areas #11 and #12 correspond to the output circuit 3 of the #1 machine. In particular, #11 is the area where the output data is rewritten by the user program of machine #1, and rear #12 is the area where the output data is rewritten by the user program of machine #1.
This is the area where the output canister is rewritten by the user program of the No. 2 machine. Similarly, #21 is an area corresponding to the input circuit 2 of the #2 machine, and #21 and #22 are areas corresponding to the output circuit 3 of the #2 machine. especially,
#21 is an area where the output data is rewritten by the #1 machine, and #22 is an area where the output data is rewritten by the #2 machine.

上述した入出力データ交換手段というのは#110− 号機において入力回路2から入出カメtす4の]リア#
11に取込まれた入力データを#2号機における入出カ
メモリ4の#11に転送し、また#1号機において!換
えられた入出カメモリ4のエリア#11の出力データを
#2号機の丁り7#11に転送し、#2号機において置
換えたエリア#12の出力データを#1@機に転送し、
#2号機において入力回路2から#21に読取った入力
データを#1号機における#21に転送し、#1号機に
おいて1換えた#21の出力データを#2号機のJリア
#21に転送し、#2号機において書換えた#22の出
力データを#1号機における1−リア#22に転送する
制御である。これら入出力データの転送順番と各機にお
ける入出力更新動作とユーザプログラムの実行動作の順
番については後で説明する。
The above-mentioned input/output data exchange means is the rear #110 of the input/output camera t4 from the input circuit 2.
11 is transferred to #11 of input/output memory 4 in machine #2, and then in machine #1! Transfer the replaced output data of area #11 of input/output memory 4 to #2 machine #7 #11, transfer the output data of area #12 replaced in #2 machine to #1 @ machine,
The input data read from the input circuit 2 to #21 in the #2 machine is transferred to #21 in the #1 machine, and the output data of #21, which was changed by 1 in the #1 machine, is transferred to the J rear #21 of the #2 machine. , is a control for transferring the output data of #22 rewritten in the #2 machine to the 1-rear #22 in the #1 machine. The order of transfer of these input/output data, the order of input/output update operations in each machine, and the order of user program execution operations will be explained later.

第3図はリンクバスCBおよび異常信号ラインSBに係
わる上記リンクユニット5の構成を小している。第3図
に示すように、CPLI7とリンクバスCBとμパスト
ランシーバ/レシーバ(B丁R) 9を介して結ばれて
おり、これによって上述した入出力データの交換がなさ
れる。異常信号ラインSBはA−プンコレクタバスで構
成され、自機#1.#2間の異常信号の送受をこの1本
の信号線を介して行なうようになっている。つまり、リ
ンクユニット5中のラインSBが接続される出力素子は
A−ブンコレクタ・トランジスタ10かうなる。そして
、CPLI 7から出力される異常信号STが1−ルベ
ルとなり、トランジスタ10が駆動されると、異常信号
ラインSBがアクティブ(Lレベル)となる。また異常
信号ラインSBの状態をCPU7に取込むためにインバ
ータ11が設けられている。異常信号ラインSBがアク
ティブ([レベル)になると、上記インバータ11の出
力信号(これを異常受信信号E−8Tと称す)が1ルベ
ルとなり、CPU7に異常信号が受信されることとなる
。これらの構成が上述した異常信号受信手段および異常
信号送信手段に相当する。
FIG. 3 shows a smaller configuration of the link unit 5 related to the link bus CB and abnormal signal line SB. As shown in FIG. 3, the CPLI 7 is connected to the link bus CB via the μ-path transceiver/receiver (B-R) 9, thereby allowing the above-mentioned input/output data to be exchanged. The abnormal signal line SB consists of an A-Pun collector bus, and own machine #1. The abnormal signal between #2 and #2 is transmitted and received through this single signal line. That is, the output element to which the line SB in the link unit 5 is connected is the A-bun collector transistor 10. Then, when the abnormality signal ST output from the CPLI 7 becomes 1-level and the transistor 10 is driven, the abnormality signal line SB becomes active (L level). Further, an inverter 11 is provided to input the state of the abnormal signal line SB to the CPU 7. When the abnormal signal line SB becomes active (level), the output signal of the inverter 11 (referred to as abnormal reception signal E-8T) becomes 1 level, and the CPU 7 receives the abnormal signal. These structures correspond to the above-described abnormal signal receiving means and abnormal signal transmitting means.

また、この実施例のプログラマブル・コントローラは、
装置内部の異常を検出する異常検出手段として、バッテ
リ電圧の異常を検出するバラ1り異常検出回路(BC)
12と、装置内の温度の異常1−軒を検出する温度異常
検出回路(TC)13とが設Gフられている。これら異
常検出回路12゜13の出力はCPU7に供給され、C
PLI7[よって常時監視されている。同じく、上述し
た他機異常信号E−8TもCPLI7によって常時監?
J2されている。そして、ワーキングメモリ8には、バ
ッテリ異常検出回路12にて異常が検出されたときセッ
トされる異常フラグF1と、温度異常検出回路13にて
異常が検出されたときセットされる異常フラグF2と、
異常受信信号E−8Tが1ルベルになったときセットさ
れる他機異常”フラグF3が設定されている。史にワー
キングメモリ8には、上記命令実行手段の動作中におい
て、ユーザプログラムの一部として上記ユーザプログラ
ムメモリ1に任意に設定された命令を実行することによ
り、上記異常フラグF1.F2および他機異常フラグF
3、更には任意の入出力データとの間の任意の論理演篩
の結果でもってセットまたはリレ−13= ツトされる出力禁1フラグFOが設定されている。
Furthermore, the programmable controller of this embodiment is
As an abnormality detection means for detecting abnormalities inside the device, a single abnormality detection circuit (BC) is used to detect abnormalities in battery voltage.
12, and a temperature abnormality detection circuit (TC) 13 for detecting temperature abnormalities within the device. The outputs of these abnormality detection circuits 12 and 13 are supplied to the CPU 7,
PLI7 [Therefore, it is constantly monitored. Similarly, the other aircraft abnormality signal E-8T mentioned above is also constantly monitored by CPLI7?
It has been J2. The working memory 8 contains an abnormality flag F1 that is set when the battery abnormality detection circuit 12 detects an abnormality, and an abnormality flag F2 that is set when the temperature abnormality detection circuit 13 detects an abnormality.
A "other machine abnormality" flag F3 is set, which is set when the abnormality reception signal E-8T reaches 1 level.Historically, the working memory 8 stores part of the user program during the operation of the above command execution means. By executing a command arbitrarily set in the user program memory 1 as
Furthermore, an output inhibit 1 flag FO is set or relayed as a result of an arbitrary logical sieve with arbitrary input/output data.

また後述するように、この出力禁止フラグ[0がセット
された場合、1記出力更新手段の動作を禁止して所定の
出力状態にする出力禁止手段を備えている。
Further, as will be described later, when the output prohibition flag [0 is set, output prohibition means is provided which prohibits the operation of the output update means described in 1 and sets the output state to a predetermined output state.

出力禁止フラグFOを各フラグF1.F2.F3および
任意の入出力データの状態を条件としてセットまたはリ
セットjるようにユーザプログラムに任意に設定すると
いうのは、例えばラダーダイヤグラム方式のプログラマ
ブル・コントローラの場合、第4図に示すように、出力
禁止フラグ[0を出力リレーとし、このリレーFOを駆
動覆る条件として各フラグFl、F=2.F3を入力接
自として扱うとともに、これら入力接点F1.F2゜F
3と制御対象機器に係わる任意の入出力接点を使って任
意のラダーダイヤグラムを構成し、これを所定の命令形
式に変換してユーザプログラムメモリ1に予め設定する
ことを意味している。第4図に示した例は、温痩異常フ
ラグE2がセットされた場合に無条件に出力禁止フラグ
FOがセット14− される他、他機異常フラグF3がセットされ、かつ人力
接allがオンした場合に出力状1−ノフグFOがセッ
トされ、更にまたバッテリ異常フラグF1がセットされ
、かつ入力接点I2がオンしたときに出力禁止フラグF
Oがセットされるようにユーザプログラムが組まれてい
るのである。
The output prohibition flag FO is set to each flag F1. F2. For example, in the case of a programmable controller using a ladder diagram method, as shown in FIG. The prohibition flag [0 is set as the output relay, and each flag Fl, F=2. F3 is treated as an input contact, and these input contacts F1. F2゜F
3 and any input/output contacts related to the device to be controlled, converting this into a predetermined command format, and setting it in the user program memory 1 in advance. In the example shown in FIG. 4, when the temperature anomaly flag E2 is set, the output prohibition flag FO is unconditionally set, the other machine abnormality flag F3 is set, and the manual connection is turned on. In this case, the output status 1-nofugu FO is set, and the battery abnormality flag F1 is also set, and when the input contact I2 is turned on, the output prohibition flag F is set.
The user program is designed so that O is set.

次に、2台の上記プログラマブル・コントローラ#1.
#2によって並列リンク方式のコント1」−ラシステム
を構成した場合の両様のCPU 7による処理手順を第
5図のフローチャートに従つ゛C説明する。自機#1.
#2においてイニシャル処理が終了すると最初のステッ
プ101でそれぞれ自機の入力回路2に印加されている
入力データを入出カメモリ4の所定エリア(#1@機で
は」−リア#1i 、#2号機では#21)に取込む。
Next, the two programmable controllers #1.
The processing procedures performed by both CPUs 7 when #2 constitutes a parallel link type controller system will be explained with reference to the flowchart of FIG. Own machine #1.
When the initial processing is completed in #2, in the first step 101, the input data applied to the input circuit 2 of each own machine is transferred to a predetermined area of the input/output memory 4 (for #1 @ machine - rear #1i, for #2 machine #21).

この入力更新動作が終了したら、その終了したことをそ
れぞれ他機に伝え合う。次のステップ102でそれぞれ
他機から入力更新動作の終了が伝えられるのを持つ。両
様#1.#2共に入力更新動作が終了すると、次のステ
ップ103.104に進み、#1号機の入出カメモリ4
の■リア#11の入力データを#2号機に転送する。次
のステップ105.106で、#2号機における入出カ
メモリ4のエリア#21の入力データを#1号機に転送
する。以上により両様#1.#2間で互いの入力データ
を交換しあったことになる。
When this input updating operation is completed, each device notifies the other devices of the completion. In the next step 102, the end of the input update operation is notified from each other device. Both #1. When the input update operation for both #2 is completed, the process proceeds to the next step 103 and 104, and the input/output memory 4 of the #1 machine is updated.
■ Transfer the input data of rear #11 to #2. In the next steps 105 and 106, the input data in area #21 of the input/output memory 4 in machine #2 is transferred to machine #1. From the above, both cases #1. This means that #2 exchanges input data with each other.

続いて各機#1.#2においてステップ107゜108
に゛進み、それぞれのユーザプログラムメ′モリPMに
格納されているユーザプログラムを一巡実行する。これ
により、各命令の実行結果に従って人出カメ−Eす4の
出力データが書換えられるとともに、上述した出力禁止
フラグFOの状態も決定される。自機#1.#2はニー
ずプログラムの実行が終了したらそれをhいに伝え合う
。ステップ109はぞれぞれ他機がユーザプログラムの
実行を終了したかどうかをチェックしながら持つ。
Next, each machine #1. Step 107゜108 in #2
Proceeding to Step 2, the user programs stored in each user program memory PM are executed once. As a result, the output data of the occupancy camera E4 is rewritten according to the execution results of each command, and the state of the output prohibition flag FO described above is also determined. Own machine #1. #2 communicates this to the host when the execution of the needs program is completed. Step 109 continues while checking whether each other machine has finished executing the user program.

自機#1.#2が共にユーザプログラムの実行を終了す
ると、次のステップi1o、ii1に進み、#1号機の
入出カメモリ4におけるエリア#11および#21の出
力データを#2号機に転送する。続いてステップ112
.113に進み、#2号機の入出カメモリ4におけるエ
リア#12および#22の出力データを#1号機に転送
づる。
Own machine #1. When #2 both finishes executing the user programs, the process proceeds to the next steps i1o and ii1, and the output data of areas #11 and #21 in the input/output memory 4 of machine #1 is transferred to machine #2. Then step 112
.. 113, the output data of areas #12 and #22 in the input/output memory 4 of the #2 machine is transferred to the #1 machine.

これで各111#1.#2がそれぞれのユーザプログラ
ムを実行することによって書換えた出力データを互いに
交換しあったことになる。
Now each 111#1. #2 exchanges the rewritten output data with each other by executing their respective user programs.

次のステップ114では、出力禁止フラグFOがセット
されているかりセットされているのかを判断する。出力
禁止フラグFOがリセットされているのは、制御出力を
禁止しない正常な動作を行なうことを意味し、この場合
はステップ115に進んで出力更新動作を行なう。すな
わち#1号機においては入出カメモリ4におけるエリア
#11および#12の出力データを出り回路3に転送づ
る。また#2@機においてはエリア#21および#22
の出力データを出力回路3に転送する。次のステップ1
16では、異常信号STを1−レベルにし、リンクユニ
ット5のトランジスタ10を非能動にする。
In the next step 114, it is determined whether the output prohibition flag FO is set or not. The fact that the output prohibition flag FO is reset means that a normal operation is performed without prohibiting the control output, and in this case, the process proceeds to step 115 to perform an output update operation. That is, in the #1 machine, the output data of areas #11 and #12 in the input/output memory 4 is transferred to the output circuit 3. In addition, areas #21 and #22 on #2 @ machine
The output data of is transferred to the output circuit 3. Next step 1
At step 16, the abnormal signal ST is set to 1-level, and the transistor 10 of the link unit 5 is made inactive.

次のステップ119ではバッテリ異常検出回路17− 12の出力をチェックし、異常があるか否かを判断する
。異常である場合、ステップ121で異常フラグF1を
ヒツトし、異常でない場合はステップ120で異常フラ
グF1をリセットする。続くステップ122では、温度
異常検出回路13の出力をチェックし異常であるか否か
を判断する。異常である場合ステップ124で異常フラ
グ2をセットし、異常でない場合はステップ123で異
常フラグF2をリセットする。続くステップ125では
リンクユニット5からの異常受信信号E−8丁をチェッ
クし、この(I’1号E−8Tが[ルベル(異常)であ
るか否かを判断する。異常である場合ステップ127で
他機異常フラグF3をセットし、異常でない場合はステ
ップ126で他機異常フラグF3をリセットする。続く
ステップ128ではモニター表示や図示していないプロ
グラムコンソールからの入力受付処理等の各種の08t
8理(オペレーティング・システム)を行ない、その後
ステップ101の入力更新動作に戻る。
In the next step 119, the output of the battery abnormality detection circuit 17-12 is checked to determine whether there is an abnormality. If it is abnormal, the abnormality flag F1 is hit in step 121, and if it is not abnormal, the abnormality flag F1 is reset in step 120. In the subsequent step 122, the output of the temperature abnormality detection circuit 13 is checked to determine whether there is an abnormality. If it is abnormal, abnormality flag 2 is set in step 124, and if not abnormal, abnormality flag F2 is reset in step 123. In the following step 125, the abnormal reception signal E-8 from the link unit 5 is checked, and it is determined whether this (I'1 No. E-8T is abnormal). If it is abnormal, step 127 sets the other machine abnormality flag F3, and if there is no abnormality, resets the other machine abnormality flag F3 in step 126.In the following step 128, various processes such as monitor display and input reception processing from a program console (not shown) are performed.
8 processing (operating system) is performed, and then returns to step 101, the input update operation.

以上のステップ101〜128までが繰返し高−18= 速に実行される訳である。その実行過稈で、制御対酸機
器の制御状態の信号にともなって入出力データが変化し
ていき、また両様#1.#2におけるそれぞれの異常検
出回路12.13の出力および異常信号ラインSBの状
態に従って異常フラグF11.F2および他機異常フラ
グF3が変化する。そして、#1号機において例えば第
4図に示したように出力禁止フラグFOの駆動条件がユ
ーザ側にて設定されていて、この#1号機において例え
ば入力接点■1がオンし、かつバラjり異常。
The above steps 101 to 128 are executed at a repetition rate of -18=speed. Due to the overexecution, the input/output data changes according to the control status signal of the control acid equipment, and both #1. The abnormality flags F11. F2 and other machine abnormality flag F3 change. In the #1 machine, for example, as shown in Fig. 4, the driving conditions for the output prohibition flag FO are set by the user, and in this #1 machine, for example, the input contact ■1 is turned on, and the Abnormal.

フラグF1がセットされると、そのときステップ107
.108のユーザプログラムの実行によって出力禁止フ
ラグFOがセットされる。イのI A、ステップ114
で出力禁止フラグFOがセットされたのが検出され、ス
テップ115の出力更新動作は行われずに、ステップ1
17に進み、このステップ117にて出力回路3から導
出されている全ての外部出力信号をオフにするく出力禁
止)。
If flag F1 is set, then step 107
.. By executing the user program 108, the output prohibition flag FO is set. A, step 114
It is detected that the output prohibition flag FO is set in step 115, and the output update operation in step 115 is not performed, and step 1
In step 117, all external output signals derived from the output circuit 3 are turned off (output is prohibited).

次にステップ118に進み、異常信号STを1ルベルに
し、トランジスタ10を駆動し、異常信号ラインSDを
アクティブ(Lレベル)にして、ステップ119へ進む
Next, the process proceeds to step 118, where the abnormality signal ST is set to 1 level, the transistor 10 is driven, and the abnormality signal line SD is activated (L level), and the process proceeds to step 119.

一方#1号機によって異常信号ラインSBがアクティブ
にされているので、#2号機側においては、ステップ1
25を実行したとぎ異常受信信号E−8TがHレベルな
っていることが検出され、他機異常フラグF3がセット
される。そして、この他機異常フラグF3がセットされ
たことに基づいてユーザプログラムが実行されると、そ
の内容に従って、#2号機における出力禁止フラグFO
がセットされることにもなる。つまり、#1号機の異常
信号を受けて#2号機においても出力禁止状態にするこ
とが、#2号機のユーザプログラムによって任意に設定
できる。
On the other hand, since the abnormal signal line SB is activated by the #1 machine, Step 1 is activated on the #2 machine side.
After executing Step 25, it is detected that the abnormality reception signal E-8T is at H level, and the other machine abnormality flag F3 is set. Then, when the user program is executed based on this other machine abnormality flag F3 being set, the output prohibition flag FO in machine #2 is set according to its contents.
will also be set. In other words, it can be arbitrarily set by the user program of the #2 machine that the #2 machine also receives an abnormal signal from the #1 machine and is placed in an output inhibited state.

なお、上記の実施例では2台のプログラマブル・コント
ローラで並列リンク方式のシステムを構成する例につい
て述べたが、本発・明はこれに限定されるものではなく
、更に多くのプログラマブル・コントローラでもって並
列リンク方式のシステムを構築するようなものにも全く
同様に適用できる。また各プログラマブル・コントロー
ラにおIJる異常診断機能としては、先にあげた例だけ
ではなく、CPU内のデータバスのパリティチェック機
能やその他の回路上の種々の異常を検出するらのも含ま
れる。
Although the above embodiment describes an example in which a parallel link system is configured using two programmable controllers, the present invention is not limited to this, and can be implemented using even more programmable controllers. It can be applied in exactly the same way to constructing a parallel link system. In addition, the abnormality diagnosis function of each programmable controller is not limited to the examples mentioned above, but also includes a parity check function of the data bus in the CPU and detection of various abnormalities on other circuits. .

また上記実施例では、出力禁止態様として全ての外部出
力信号をオフにするようにしていたが、本発明はこれに
限定されるものではなく、出力禁止フラグがセットされ
る直前の出力状態を維持するようにしたり、あるいは予
め設定しである特定の出カバターンを出力するように構
成づることもできる。
Furthermore, in the above embodiment, all external output signals are turned off as the output prohibition mode, but the present invention is not limited to this, and the output state immediately before the output prohibition flag is set is maintained. Alternatively, it may be configured to output a specific output pattern set in advance.

以上詳細に説明したように、この発明に係る!ログラマ
プル・コントローラによれば、複数台によって並列リン
ク方式のコントローラシステムを構成したとき、各機に
おいてどのような異常状態が検出され、かつどのような
−制御状態であるときに各機の制御出力動作を禁止する
かを、使用右側の立場でシステム全体としての使用S様
に見合った条件設定をすることができ、従来のように各
コ21− ントローラが単独で無条件に異常によりその出力動作を
禁止するものと異なり、制御対象を危険な状態に陥らせ
るようなことはなくなり、使用者側の種々の要求に対応
でき、極めて使い勝手が良いものとなる。
As explained in detail above, this invention relates to! According to the Logramaple Controller, when a parallel link type controller system is configured with multiple units, what kind of abnormal state is detected in each unit, and what kind of control state is the control output operation of each unit? The right side of the user can set conditions that are appropriate for the use of the entire system as to whether or not to prohibit the output operation. Unlike the prohibition, it does not put the controlled object into a dangerous state, and it can respond to various requests from the user, making it extremely easy to use.

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

第1図は本発明に係るプログラマブル・コントローラを
2台用いて並列リンク方式のコントローラシステムを構
成した状態のブロシク図、第2図は同上システムにおけ
る各機の出力メモリ4のアドレス1リアの割当状況を示
す図、第3図はリンクユニットLUの回路例を示す図、
第4図は出力禁止にするだめの糸付段室プログラムの一
例を示す図、第5図は同上システムを構成する各機の処
理手順を示すフローチャートである。 1・・・・・・・・・ニーザブログラムメモリ2・・・
・・・・・・入力回路 3・・・・・・・・・出力回路 4・・・・・・・・・入出カメモリ 5・・・・・・・・・リンクユニット =22− 7・・・・・・・・・中央処理ユニット8・・・・・・
・・・ワーキングメモリ12・・・・・・バッテリ異常
検出回路13・・・・・・温度異常検出回路 FO・・・・・・出力禁止フラグ Fl、F2・・・・・・異常フラグ F3・・・・・・他機異常フラグ 特許出願人 立石電機株式会社 23− 第2図 第3図 第411
Fig. 1 is a block diagram of a parallel link type controller system configured using two programmable controllers according to the present invention, and Fig. 2 shows the allocation status of the address 1 rear of the output memory 4 of each machine in the same system. 3 is a diagram showing an example of the circuit of the link unit LU,
FIG. 4 is a diagram showing an example of a threaded bunk room program for inhibiting output, and FIG. 5 is a flowchart showing the processing procedure of each machine constituting the above system. 1...Kneezer program memory 2...
...... Input circuit 3 ...... Output circuit 4 ...... Input/output memory 5 ...... Link unit = 22-7... ......Central processing unit 8...
... Working memory 12 ... Battery abnormality detection circuit 13 ... Temperature abnormality detection circuit FO ... Output prohibition flag Fl, F2 ... Abnormality flag F3. ...Other machine abnormality flag Patent applicant Tateishi Electric Co., Ltd. 23- Figure 2 Figure 3 Figure 411

Claims (1)

【特許請求の範囲】[Claims] (1) 自機の入出力端子数より、充分大きな6量の入
出カメモリを有し、リンクバスによって他機と接続され
たとき、互いのユーザプログラムの実行動作に同期して
互いの入出カメモリのデータを交換しあう入出力データ
交換手段およびコーザプログラム同期実行手段とを備え
るプログラマブル・コントローラにおいて、装蹟内部の
異常を検出する複数種類の異常診断手段と、各異常診断
手段に対応して設定されその診断結果に応じてセットま
たはリセットされる複数の異常フラグと、他機から発せ
られる異常信号を受信する異常信号受信手段と、この受
信手段にて異常信号を受信したときにセットされる他機
異常フラグと、ニーty 70グラムの一部として任意
に設定された命令を実行することにより、上記異常フラ
グ、他機異常フラグおよび任意の入出力データ間の任意
の論理演碑の結果でもってセットまたはリセットされる
出力禁止フラグと、この出力禁止フラグがセットされた
とき制御出力動作を禁止して所定の出力状態にする出力
禁1手段と、上記出力禁止フラグがセットされたとき他
機に対して異常信号を送出する異常信号送信手段とを備
えたことを特徴とするプログラマブル・コントローラ。
(1) It has 6 input/output memories, which is sufficiently larger than the number of input/output terminals of its own machine, and when it is connected to another machine via a link bus, the input/output memory of each machine is synchronized with the execution operation of each other's user programs. In a programmable controller equipped with an input/output data exchange means for exchanging data and a coser program synchronization execution means, a plurality of types of abnormality diagnosis means for detecting abnormalities inside the equipment and settings corresponding to each abnormality diagnosis means are provided. A plurality of abnormality flags that are set or reset according to the diagnosis results, an abnormality signal receiving means that receives an abnormality signal emitted from another device, and another device that is set when the receiving means receives an abnormality signal. By executing a command arbitrarily set as part of the abnormality flag and knee ty 70 grams, it is set as a result of any logical sequence between the above abnormality flag, other machine abnormality flag, and any input/output data. or an output prohibition flag to be reset, an output prohibition 1 means for prohibiting the control output operation to achieve a predetermined output state when the output prohibition flag is set, and an output prohibition 1 means for inhibiting other equipment when the output prohibition flag is set A programmable controller comprising: abnormal signal transmitting means for transmitting an abnormal signal.
JP56137446A 1981-08-24 1981-09-01 Programmable controller Granted JPS5839307A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP56137446A JPS5839307A (en) 1981-09-01 1981-09-01 Programmable controller
GB08223840A GB2104685B (en) 1981-08-24 1982-08-18 Programmable controller
DE19823231419 DE3231419A1 (en) 1981-08-24 1982-08-24 PROGRAMMABLE CONTROL DEVICE
US06/898,898 US4725976A (en) 1981-08-24 1986-08-21 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56137446A JPS5839307A (en) 1981-09-01 1981-09-01 Programmable controller

Publications (2)

Publication Number Publication Date
JPS5839307A true JPS5839307A (en) 1983-03-08
JPS6160445B2 JPS6160445B2 (en) 1986-12-20

Family

ID=15198803

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56137446A Granted JPS5839307A (en) 1981-08-24 1981-09-01 Programmable controller

Country Status (1)

Country Link
JP (1) JPS5839307A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62271104A (en) * 1986-05-20 1987-11-25 Toyoda Mach Works Ltd On/off information transmitting device for sequence controller
JPS62271105A (en) * 1986-05-20 1987-11-25 Toyoda Mach Works Ltd On/off information transmitting device for sequence controller
JPH062406U (en) * 1993-05-12 1994-01-14 富士電機株式会社 Programmable controller system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62271104A (en) * 1986-05-20 1987-11-25 Toyoda Mach Works Ltd On/off information transmitting device for sequence controller
JPS62271105A (en) * 1986-05-20 1987-11-25 Toyoda Mach Works Ltd On/off information transmitting device for sequence controller
JPH062406U (en) * 1993-05-12 1994-01-14 富士電機株式会社 Programmable controller system

Also Published As

Publication number Publication date
JPS6160445B2 (en) 1986-12-20

Similar Documents

Publication Publication Date Title
JPS59106056A (en) Failsafe type data processing system
JPS5839307A (en) Programmable controller
JPH02132528A (en) Duplex processor
JP2009026182A (en) Program execution system and execution device
JPH0740253B2 (en) Operation monitoring method in multiprocessor system
JP3175465B2 (en) Switching method of redundant control device and redundant control device thereof
JP2794041B2 (en) Self-diagnosis method for multiprocessor system
JPS5835602A (en) Programmable controller
JP3298239B2 (en) Equalization method for redundant control system
JP2003140704A (en) Process controller
JPH02281343A (en) Cpu operation monitor system
GB2146810A (en) Achieving redundancy in a distributed process control system
JPH0430245A (en) Multiprocessor control system
JP2985188B2 (en) Redundant computer system
JPS6158858B2 (en)
KR20000021045A (en) Method and system for performing dual operating of computer control
JPS59223047A (en) Programmable controller having link function
JPS59221702A (en) Digital controller
JP3903688B2 (en) Bank switching system
JP2001256071A (en) Redundant system
JPS59146362A (en) Interface switching control system
JPH0650001Y2 (en) Redundant digital controller
JPS589444B2 (en) Shared input/output equipment control device
JPH0346855B2 (en)
JPS595302A (en) Plant dispersion controlling method