JPS5832408B2 - sequence controller - Google Patents
sequence controllerInfo
- Publication number
- JPS5832408B2 JPS5832408B2 JP50130711A JP13071175A JPS5832408B2 JP S5832408 B2 JPS5832408 B2 JP S5832408B2 JP 50130711 A JP50130711 A JP 50130711A JP 13071175 A JP13071175 A JP 13071175A JP S5832408 B2 JPS5832408 B2 JP S5832408B2
- Authority
- JP
- Japan
- Prior art keywords
- input
- output
- program
- circuit
- control 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
Links
Landscapes
- Testing And Monitoring For Control Systems (AREA)
Description
【発明の詳細な説明】
本発明は入出力要素をモニタリングする機能を備えたシ
ーケンスコントローラに関し、その目的はコンピュータ
の如き上級機を使用せずに、シーケンス制御動作実行中
の入出力要素をモニタリングする機能を備えたシーケン
スコントローラを提供することであり、とりわけ本発明
はシーケンスの動作状態に応じてモニタすべきシーケン
ス制御プログラムの区間を自動的に判別し、その区間の
始点番地及び終点番地を設定し必要最小限のモニタ情報
だけを得るようにし故障原因の追及を容易ならしめるこ
とである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a sequence controller equipped with a function of monitoring input/output elements, and its purpose is to monitor input/output elements during execution of sequence control operations without using advanced equipment such as a computer. It is an object of the present invention to provide a sequence controller having functions, and in particular, it is an object of the present invention to automatically determine the section of a sequence control program to be monitored according to the operating state of the sequence, and to set the starting point address and ending point address of the section. The objective is to obtain only the minimum amount of monitor information necessary to facilitate the investigation of the cause of failure.
コンピュータ技術を応用したシーケンスコントローラが
開発されたことにより、このシーケンスコントローラを
仲介として入出力要素をモニタリングすることが可能と
なり、制御対象の故障箇所を迅速かつ確実に発見できる
ようになった。With the development of sequence controllers that apply computer technology, it has become possible to monitor input and output elements using this sequence controller as an intermediary, and it has become possible to quickly and reliably discover failure points in controlled objects.
しかしながら、一般には上級機であるコンピュータを使
用してモニタリングが行なえるため、装置が太祖りでし
かも高価になるといった問題があった。However, since monitoring can generally be carried out using a high-end computer, there is a problem in that the equipment is old-fashioned and expensive.
また、コンピュータを使用せずにモニタリングを行い得
るシーケンスコントローラも知られているが、これらは
何れもシーケンスコントローラのシーケンス制御動作を
停止させなければモニタリングを行うことができないの
で、シーケンス制御動作中の入出力要素をモニタリング
することができず、故障箇所を確実Gこ発見することは
非常に困難であった。There are also known sequence controllers that can perform monitoring without using a computer, but these cannot perform monitoring unless the sequence control operation of the sequence controller is stopped. Since it was not possible to monitor the output elements, it was extremely difficult to reliably discover the location of the failure.
又、従来においては、シーケンス制御プログラムとは別
個にモニタリングのためのプログラムが必要であり、シ
ーケンスの変更等に伴いこのモニタプログラムも修正す
る必要があった。Furthermore, in the past, a monitoring program was required separately from the sequence control program, and this monitor program also had to be modified when the sequence was changed.
本発明はかかる従来の不具合をなくするためにモニタプ
ログラムとしては、シーケンス制御プロダラムを流用す
ることにより特別なモニタプログラムは必要としないよ
うにしたものであり、特に異常時のシーケンス動作状態
に応じてモニタすべきシーケンス制御プログラムの区間
を自動的に判別し、必要最小限のモニタ結果として所定
の入出力要素の作動状態(オン、オフ状態)ならびに入
出力要素機器番号をシーケンス制御動作中において補助
記憶装置に記憶し、かつ記憶した信号状態、機器番号を
表示して真の故障原因を究明するようにしたものである
。In order to eliminate such conventional problems, the present invention eliminates the need for a special monitor program by reusing a sequence control program as a monitor program. Automatically determines the section of the sequence control program that should be monitored, and stores the operating status (on, off state) of the specified input/output element as the minimum necessary monitoring result and the input/output element device number during sequence control operation. This system stores the signal status and device number stored in the device and displays them to help determine the true cause of the failure.
以下本発明の実施例を図面に基づいて説明する。Embodiments of the present invention will be described below based on the drawings.
第1図はシーケンスコントローラ全体の概略構成を示す
ブロック線図で、1は予めプログラムされたシーケンス
サイクルのシーケンス制御データを記憶するコアメモリ
等の主記憶回路、2は主記憶回路1のメモリ番地を指定
して所定の制御データを順次読出すプログラムカウンタ
、3はプログラムカウンタ2にて指定されたメモリ番地
から読出された制御データを記憶するメモリデータレジ
スタ、4はメモリデータレジスタ3に記憶された制御デ
ータがデータバスDBを介してセットされるインストラ
クションレジスタ、5は前記制御データのインストラク
ションレジスタ4へのセットを制御するメモリゲートで
ある。FIG. 1 is a block diagram showing a schematic configuration of the entire sequence controller, where 1 is a main memory circuit such as a core memory that stores sequence control data of sequence cycles programmed in advance, and 2 is a memory address of the main memory circuit 1. A program counter that sequentially reads specified control data; 3 is a memory data register that stores the control data read from the memory address specified by the program counter 2; 4 is a control stored in the memory data register 3; An instruction register 5 to which data is set via the data bus DB is a memory gate that controls setting of the control data to the instruction register 4.
前記制御データとして使用される命令語は、命◆の種類
を表す操作部と後述する内部入出力要素の番地、主記憶
回路1のメモリ番地等の番地を指定するアドレス部とよ
り構成される。The command word used as the control data is composed of an operation section indicating the type of command ♦, and an address section specifying an address of an internal input/output element, a memory address of the main memory circuit 1, etc., which will be described later.
前記命令の種類としては、内部入出力要素からのオン−
オフ入力信号を論理演算する入出力テスト命令、論理演
算の結果に基づいて内部入出力要素のうち出力要素をオ
ン−オフ作動させる出力命◆、論理演算の結果に基づい
てジャンプさせるジャンプ命令およびモニタリンダプロ
グラムにおいて使用される特殊命冷等がある。The types of instructions include on-off from internal input/output elements.
Input/output test commands that perform logical operations on OFF input signals, output commands that turn on and off output elements among internal input/output elements based on the results of logical operations, jump instructions and monitors that cause jumps based on the results of logical operations. There is a special life cold used in the Linda program.
第1表に命令語の種類とそれらの意味が示されている。Table 1 shows the types of command words and their meanings.
6はインストラクションレジスタ4にセットされた制御
データの操作部を解読し、各種命令信号を発するインス
トラクションデコーダである。Reference numeral 6 denotes an instruction decoder which decodes the operation part of the control data set in the instruction register 4 and issues various command signals.
10は、例えば工作機械等の制御対象装置の各部動作要
素の動作確認によりオン−オフ作動されるリミットスイ
ッチ、押釦スイッチ等の外部入力要素10a1および前
記制御対象装置の各部動作要素の動作を指示してオン−
オフ作動する出力リレー、ソレノイド等の外部出力要素
10bからなる外部入出力要素群である。Reference numeral 10 indicates an external input element 10a1, such as a limit switch or a push button switch, which is turned on and off by checking the operation of each operating element of the controlled device such as a machine tool, and an external input element 10a1 that instructs the operation of each operating element of the controlled device. On-
This is an external input/output element group consisting of external output elements 10b such as output relays and solenoids that are turned off.
11は各外部入力要素10aと対を成しこの外部入力要
素10aのオン−オフ作動状態をシーケンスコントロー
ラの内部レベルの電気信号形態の入力信号Oこ変換する
多数の内部入力要素11a1および各外部出力要素10
bと対を成し内部レベルの出力信号を受けて外部出力要
素10bをオン−オフ作動させる多数の出力要素、その
他外部外出力要素群10と直接信号の授受をせず内部レ
ベルの出力信号を受けて作動する多数のタイマ要素、リ
レー要素、ダミー要素等の内部出力要素11bからなる
内部入出力要素群である。Numeral internal input elements 11a1 and respective external outputs are paired with each external input element 10a and convert the on-off operating state of the external input element 10a into an input signal in the form of an electrical signal at an internal level of the sequence controller. element 10
a large number of output elements that are paired with the external output element 10b and turn on and off the external output element 10b in response to an internal level output signal; This is an internal input/output element group consisting of a large number of internal output elements 11b such as timer elements, relay elements, dummy elements, etc. that operate in response to the input signal.
12は内部入出力要素群11の中から前記制御データで
指定された番地の内部入出力要素11a。Reference numeral 12 denotes an internal input/output element 11a at an address specified by the control data from among the internal input/output element group 11.
11bを選択する入力セレクタ12a1出力セレクタ1
2bとからなる入出力選択回路であり、選択された内部
入出力要素11a、11bのオンオフ状態は、オンのと
きにはH″、オフのときには゛Lパの入力信号として、
入力セレクタ12aの出力端子からラインIT上に送出
され論理演算回路143こ与えられる。Input selector 12a1 output selector 1 to select 11b
2b, and the on/off state of the selected internal input/output elements 11a and 11b is an input signal of H'' when it is on and 'L' when it is off.
The signal is sent out from the output terminal of the input selector 12a onto the line IT and applied to the logic operation circuit 143.
特に制御データが出力台◆であれば論理演算回路14か
らラインOTを介して送出される出力信号が出力セレク
タ12bにて選択された内部出力要素11bにセットさ
れるようになっている。In particular, if the control data is the output unit ♦, the output signal sent from the logic operation circuit 14 via the line OT is set to the internal output element 11b selected by the output selector 12b.
この実施例の論理演算回路14は、前記インストラクシ
ョンデコーダ6にて解読された各種命令信号を受け、こ
の命令信号が入出力テスト命令であるならばラインIT
を介して入力される内部入出力要素11a、11bから
のオン−オフ入力信号がテスト命令条件を満足している
か否かをテストしてすなわち論理演算してその結果を記
憶し、また命令信号が出力命令であるならば前記記憶し
てテスト結果に基づいたオン−オフ出力信号をラインO
Tに送出するようになっている。The logic operation circuit 14 of this embodiment receives various command signals decoded by the instruction decoder 6, and if this command signal is an input/output test command, the line IT
The on-off input signals from the internal input/output elements 11a and 11b inputted through If it is an output command, the on-off output signal based on the memorized test result is sent to line O.
It is designed to be sent to T.
15は各命令実行等のタイミングをとるクロックパルス
および制御パルスを発生させる制御パルス発生回路で、
この実施例においては第3図に示すようなりロックパル
スCLおよび制御ノクルスOP。15 is a control pulse generation circuit that generates clock pulses and control pulses for timing the execution of each instruction, etc.;
In this embodiment, the lock pulse CL and control noculus OP are as shown in FIG.
CL1〜CL6の制御パルスが周期的に発生され、−命
◆の実行はこの制御パルスOPが出てからC16が出さ
れるまでの一制御パルス周期間で行われるようになって
いる。Control pulses CL1 to CL6 are generated periodically, and the execution of the - command ♦ is carried out in one control pulse period from when this control pulse OP is issued until when C16 is issued.
16は主記憶回路1の制御回路、17はプログラムカウ
ンタ2にて指定されるメモリ番地のゲート、18はサブ
ルーチンジャンプ命令が与えられたときにプログラムカ
ウンタ2のメモリ番地を記憶する退避レジスタ、19〜
23は前記制御パルスにて開閉され所定の命令実行を遂
行させるゲートである。16 is a control circuit for the main memory circuit 1; 17 is a gate at a memory address specified by the program counter 2; 18 is a save register that stores the memory address of the program counter 2 when a subroutine jump instruction is given; 19-
Reference numeral 23 denotes a gate that is opened and closed by the control pulse to execute a predetermined command.
100は前述のモニタリングを達成するために通常のシ
ーケンスコントローラ(こ対し付加された回路であり、
この回路100は第2図に示すようにモニタすべきシー
ケンス制御プログラムの区間の判別結果によって始点番
地及び終点番地の設定される手段155 、156と、
設定された区間のシーケンス制(財)プログラムが実行
されている間モニタリングを有効にする手段153、モ
ニタ結果を記憶する記憶手段130、記憶手段に記憶さ
れた内容を表示する表示手段144より構成される。100 is an ordinary sequence controller (a circuit added to this) to achieve the above-mentioned monitoring;
As shown in FIG. 2, this circuit 100 includes means 155 and 156 for setting a starting point address and an ending point address according to the result of determining the section of the sequence control program to be monitored;
It is composed of means 153 for enabling monitoring while the sequence system program for the set section is being executed, storage means 130 for storing the monitoring results, and display means 144 for displaying the contents stored in the storage means. Ru.
尚モニタすべきシーケンス制御プログラムの区間を判別
する手段としては第5図に示すプログラムリストの30
0番地以降のモニタ区間判別プログラムとこのプログラ
ムを有効にするための回路150.151.152,1
54を有している。Note that 30 in the program list shown in FIG.
Monitor section determination program after address 0 and circuit to enable this program 150.151.152,1
It has 54.
以下各部の構成を第2図に基づいて説明する。The configuration of each part will be explained below based on FIG. 2.
101はロード信号入力端子りにパルスが入力するとデ
ータ入力端子りから入力する数値データを記憶する異常
回路番号用のレジスタで、データ入力端子りには前記イ
ンストラクションレジスタ4にセットされた制御データ
のアドレス部がラインADを介して入力され、ロード信
号入力端子りには前記インストラクションデコーダ6(
こて解読された特殊台◆ABNと制御パルスCL5とが
アンドゲート102を介して入力するようになっている
。Reference numeral 101 is a register for an abnormal circuit number that stores numerical data input from the data input terminal when a pulse is input to the load signal input terminal, and the address of the control data set in the instruction register 4 is stored at the data input terminal. The load signal input terminal is inputted to the instruction decoder 6 (
The special base ◆ABN decoded by the iron and the control pulse CL5 are inputted via the AND gate 102.
103はレジスタ101の記憶内容を外部表示する異常
回路番号表示器である。Reference numeral 103 denotes an abnormal circuit number display for externally displaying the contents stored in the register 101.
104.105,106はそれぞれ逐次カウンタクリヤ
用押釦スイッチ、逐次カウンタ加算用押釦スイッチ、モ
ニタリング開始外部指令用押釦スイッチである。Reference numerals 104, 105, and 106 are respectively a push button switch for sequentially clearing the counter, a push button switch for sequentially adding the counter, and a push button switch for external command to start monitoring.
154はモニタリング開始外部指令用押釦スイッチ10
6によりセットされる第1フリツプフロツプ、150は
第1フリツプフロツプ154がセットされ制御データよ
り与えられる信号ABNによってセットされる第2フリ
ツプフロツ7″、151は一連のプログラム中のモニタ
リングすべき区間の始点番地をレジスタ155に設定す
るためのゲート信号を発する第3フリツプフロツプ、1
52は一連のプログラム中のモニタリングすべき区間の
終点番地をレジスタ156に設定するためのデー1〜信
号を発する第4フリツプフロツプである。154 is a push button switch 10 for external command to start monitoring.
6, the first flip-flop 150 is set by the first flip-flop 154, and the second flip-flop 7'' is set by the signal ABN given from the control data.151 is the starting point address of the section to be monitored in a series of programs. a third flip-flop, 1, which issues a gate signal for setting the register 155;
Reference numeral 52 denotes a fourth flip-flop which generates a data 1 signal for setting the end point address of the interval to be monitored in a series of programs in the register 156.
これらのフリップフロップはモニタ区間判別手段の一部
を構成している。These flip-flops constitute a part of the monitor section discriminating means.
153は入出力要素群11の信号状態をモニタリングす
べき間セット状態に保たれるモニタリング開始フラグ回
路で、始点番地の設定されたレジスタ155とプログラ
ムカウンタ2が指定するメモリ番地との一致を検出する
比較器157の出力信号にてセットされ、終点番地の設
定さたレジスタ158とプログラムカウンタ2が指定す
るメモ番地との一致を検出する比較器158の出力信号
にてリセットされる。A monitoring start flag circuit 153 is kept set while the signal state of the input/output element group 11 is to be monitored, and detects a match between the register 155 where the starting point address is set and the memory address specified by the program counter 2. It is set by the output signal of the comparator 157, and reset by the output signal of the comparator 158 which detects a match between the register 158 where the end point address is set and the memo address designated by the program counter 2.
111は第1のフリップフロップ154がセットされる
と点灯するモニタリング許可表示用の発行ダイオードで
、第1のフリップフロップ154のQ端子出力がインバ
ータ112を介して入力されるようになっている。Reference numeral 111 denotes an issuing diode for displaying monitoring permission that lights up when the first flip-flop 154 is set, and the Q terminal output of the first flip-flop 154 is inputted through the inverter 112.
115はモニタリング結果としての入出力要素の信号状
態を記憶する補助記憶回路130のメモリ番地を切替え
る逐次カウンタで、クリヤ端子CLには前記押釦スイッ
チ104によって生起されるクリヤパルス信号が入力さ
れ、加算端子UP4こは前記モニタリング開始フラグ回
路153がセットされている間アンドゲート118およ
び前記オアゲート117を介して制御パルススCL6が
入力されて歩進し、前記補助記憶回路130のメモリ番
地を切替える。Reference numeral 115 denotes a sequential counter that switches the memory address of the auxiliary storage circuit 130 that stores the signal state of the input/output element as a monitoring result, and the clear pulse signal generated by the push button switch 104 is input to the clear terminal CL, and the addition terminal UP4 While the monitoring start flag circuit 153 is set, a control pulse CL6 is inputted through the AND gate 118 and the OR gate 117 and advances, thereby switching the memory address of the auxiliary storage circuit 130.
119は逐次カウンタ115の内容を外部表示するメモ
リ番地表示器で、逐次カウンタ115の内容が入力され
るようになっている。A memory address display 119 externally displays the contents of the sequential counter 115, and the contents of the sequential counter 115 are inputted thereto.
120は、入力セレクタ12aの出力端子からラインI
T上(こ送出された内部入出力要素11a。120 is a line I from the output terminal of the input selector 12a.
On T (this sent internal input/output element 11a.
11bのオン−オフ入力信号を、前記論理演算回路14
とは別個(こ、入出力テスト命◆TNA。The on-off input signal of 11b is sent to the logic operation circuit 14.
Separately from (this, input/output test command ◆TNA.
TFA、TNO,TNEによりテストし、そのオン−オ
フ入力信号が入出力テスト命令の条件を満足しておれば
n Hn、満足していなければL I+の信号をテスト
結果として出力する入出力テスト回路で、この回路12
0を構成するアンドゲート121にはオアゲート125
を介してテスト命◆TNA、TNO,TNEおよびライ
ンIT上に送出されている内部入出力要素11a、11
bのオン−オフ入力信号が入力され、アンドゲート12
2(こはオアゲート126を介してテスト命4¥−TF
A。An input/output test circuit that tests with TFA, TNO, and TNE, and outputs a nHn signal as a test result if the on-off input signal satisfies the conditions of the input/output test command, and if it does not, outputs an LI+ signal as a test result. So, this circuit 12
The AND gate 121 that constitutes 0 has an OR gate 125.
Test commands ◆TNA, TNO, TNE and internal input/output elements 11a, 11 being sent out on line IT via
The on-off input signal of b is input, and the AND gate 12
2 (Test life 4 yen-TF via or gate 126
A.
TFO,TFEが入力されるとともにラインIT上に送
出されている内部入出力要素11a、11bのオン−オ
フ入力信号がインバータ123を介して入力され、両ア
ントゲ゛−1121、122の出力はオアゲ゛−N 2
4を介して出力されるようになっている。TFO, TFE are input, and the on-off input signals of internal input/output elements 11a, 11b sent out on line IT are input via inverter 123, and the outputs of both analogues 1121 and 122 are the OR game. -N2
It is designed to be output via 4.
この入出力テスト回路120のテスト結果出力及び対応
する入出力要素の接続番地が前記補助記憶回路130に
記憶されるこの補助記憶回路130については、読み書
き指示端子R/Wの入力がu L nのときにはデータ
入力端子Dineこ入力するH11、41L ?+状態
及び対応する入出力要素の接続番地をメモリ番地入力端
子ADDに入力する番地指定信号にて指定されるメモリ
番地に書き込み、読み書き指示端子R/Wの入力がH″
のときGこはメモリ番地入力端子ADD3こ入力する番
地指定信号にて指定されるメモリ番地に書き込まれてい
るl H9“ t+ L 7′内容及び入出力要素接続
番地をデータ出力端子Doutに出力される。Regarding this auxiliary memory circuit 130, in which the test result output of this input/output test circuit 120 and the connection address of the corresponding input/output element are stored in the auxiliary memory circuit 130, the input of the read/write instruction terminal R/W is Sometimes the data input terminal Dine is input H11, 41L? +The state and the connection address of the corresponding input/output element are written to the memory address specified by the address designation signal input to the memory address input terminal ADD, and the input of the read/write instruction terminal R/W is set to H''
At this time, the contents written in the memory address specified by the address designation signal input to the memory address input terminal ADD3 and the input/output element connection address are output to the data output terminal Dout. Ru.
レジスタ155のデータ入力端子りには制御データのア
ドレス部がラインADを介して入力され、ロード信号入
力端子りには前記第3フリツプフロツプ151のQ端子
出力と制御パルスCL4とがアンドゲート164を介し
て入力されるようになっており、レジスタ156のデー
タ入力端子りには制御データのアドレス部がラインAD
を介して入力され、ロード信号入力端子りには前記第4
図のフリップフロップ152のQ端子出力と制御パルス
CL4とがアンドゲート165を介して入力されるよう
になっている。The address part of the control data is inputted to the data input terminal of the register 155 via the line AD, and the Q terminal output of the third flip-flop 151 and the control pulse CL4 are inputted to the load signal input terminal via the AND gate 164. The address part of the control data is input to the data input terminal of the register 156 from the line AD.
The fourth load signal is input to the load signal input terminal.
The Q terminal output of the flip-flop 152 shown in the figure and the control pulse CL4 are inputted via an AND gate 165.
比較器157の一方の入力端子には前記レジスタ155
の出力が、他方の入力端子にはプログラムカウンタ2の
出力が入力され、比較器158の一方の入力端子には前
記レジスタ156の出力が、他方の入力端子Gこはプロ
グラムカウンタ2の出力が入力されるようになっている
。The register 155 is connected to one input terminal of the comparator 157.
The output of the program counter 2 is input to the other input terminal, the output of the register 156 is input to one input terminal of the comparator 158, and the output of the program counter 2 is input to the other input terminal G. It is now possible to do so.
第5図にプログラムの一例を示す。FIG. 5 shows an example of the program.
このプログラムにおいて、メモリ番地1〜277はシー
ケンス制御プログラム、メモリ番地300〜370はモ
ニタすべきシーケンス制御プログラムの区間を判別する
モニタ区間判別プログラムである。In this program, memory addresses 1 to 277 are a sequence control program, and memory addresses 300 to 370 are a monitor section discrimination program for determining the section of the sequence control program to be monitored.
特に、メモリ番地100〜177は第4図にシーケンス
回路の一例として示された起動回路を実行するシーケン
ス制御プログラムで、特に、メモリ番地302〜307
は起動回路をモニタすべき区間として判別するための判
別プログラム、メモリ番地310〜317は他のシーケ
ンス回路例えばユニット前進サイクル回路をモニタすべ
き区間として判別するための判別プログラムである。In particular, memory addresses 100 to 177 are sequence control programs that execute the startup circuit shown as an example of the sequence circuit in FIG.
is a determination program for determining the startup circuit as an interval to be monitored, and memory addresses 310 to 317 are determination programs for determining other sequence circuits, such as unit advance cycle circuits, as an interval to be monitored.
この実施例の作用を第5図を参照しながら説明する。The operation of this embodiment will be explained with reference to FIG.
モニタリングを行う場合には、作業者はモニタリング開
始外部指令用押釦スイッチ106を押して第1のフリッ
プフロップ154をセットする。When monitoring is to be performed, the operator presses the monitoring start external command push button switch 106 to set the first flip-flop 154.
第1のフリップフロップ154がセットされておれば入
力セレクタ12aの特定番地3770に信号が与えられ
、メモリ番地300のテストの結果は条件満足となりメ
モリ番地302以下のモニタリングプログラムが実行さ
れる。If the first flip-flop 154 is set, a signal is given to the specific address 3770 of the input selector 12a, and the test result at memory address 300 satisfies the condition, and the monitoring program from memory address 302 onwards is executed.
モニタリングプログラムにおいては、メモリ番地302
の制御データTFAO100Gこより起動回路のチェッ
クを行い、条件満足(起動回路OFFの場合)メモリ番
地304以下のプログラムを実行し制御データABNa
OO01により表示器103に嵐1を表示させ、かつ制
御データABNa0001による特殊台◆ABNaによ
り制御パルスCL5の発生時点で第2及び第3のフリッ
プフロップ150,151がセットされる。In the monitoring program, memory address 302
Check the startup circuit using the control data TFAO100G, and if the condition is satisfied (when the startup circuit is OFF), execute the program at memory address 304 and below to obtain the control data ABNa.
Storm 1 is displayed on the display 103 by OO01, and the second and third flip-flops 150 and 151 are set by the special table ◆ABNa by the control data ABNa0001 at the time when the control pulse CL5 is generated.
この制御パルス周期の最後の制御パルスCL6によりプ
ログラムカウンタ2は+1されて0305となりメモリ
番地305の制御データN0P0100が読出されてイ
ンストラクションレジスタ4(こセットされる。The program counter 2 is incremented by 1 and becomes 0305 by the last control pulse CL6 of this control pulse cycle, and the control data N0P0100 at the memory address 305 is read out and the instruction register 4 is set.
第3のフリップフロップ151がセットされているため
、制御パルスCL4の発生によりレジスタ155にはモ
ニタリングすべき区間の始点番地である制御データN0
PO100のアドレス部0100がセットされる。Since the third flip-flop 151 is set, the control pulse CL4 is generated and the control data N0, which is the starting point address of the section to be monitored, is stored in the register 155.
The address field 0100 of PO100 is set.
そして次(7)制Ll]ハルスCL5により第4のフリ
ップフロップ152がセットされ、次の制御パルスCL
4によりレジスタ156にはモニタすべき区間の終点
番地である制御データN0PO114のアドレス部01
14がセットされる。Then, the fourth flip-flop 152 is set by the next (7) control Ll] Hals CL5, and the next control pulse CL
4, the address part 01 of the control data N0PO114, which is the end point address of the section to be monitored, is stored in the register 156.
14 is set.
第3、第4のフリプフロツプ151,152は制御パル
スCL5によりそれぞれリセットされる。The third and fourth flip-flops 151 and 152 are reset by the control pulse CL5, respectively.
次にメモリ番地307の制御データJMPOOOOの実
行(こよってメモリ番地0ヘジヤツプして再びシーケン
ス制御プログラムが実行され、制御対象がシーケンス制
御される。Next, the control data JMPOOOO at memory address 307 is executed (thereby jumping to memory address 0, the sequence control program is executed again, and the controlled object is sequence-controlled).
こうしてシーケンス制御プログラムが実行され再びプロ
グラムカウンタ2の内容が0100になると比較器15
7に入力される両人力データが一致することになり比較
器157から一致信号が出力される。When the sequence control program is executed in this way and the content of the program counter 2 becomes 0100 again, the comparator 15
Since the human power data inputted to 7 match, a match signal is output from the comparator 157.
このとき(こはまだフリップフロップ154はセット状
態であるので次の制御パルスCL2によりモニタ開始フ
ラグ回路153がセットされる。At this time, since the flip-flop 154 is still in the set state, the monitor start flag circuit 153 is set by the next control pulse CL2.
シーケンス制御プログラムがさらに進行されてプログラ
ムカウンタ2の内容が0114&こなると比較器158
に入力される両人力データが一致することになり比較器
158から一致信号が出力される。When the sequence control program progresses further and the contents of the program counter 2 become 0114&, the comparator 158
Since the human power data inputted to the two match each other, a match signal is outputted from the comparator 158.
従ってその次の制御パルスCL5によりモニタ開始フラ
グ回路153はリセットされる。Therefore, the monitor start flag circuit 153 is reset by the next control pulse CL5.
フリップフロップ153がセットされている間は、制御
パルスCL6の発生毎Oこ逐次カウンタ115の内容が
+1され、制御パルスCL4の発生毎に補助記憶回路1
30の逐次カウンタ115にて指示されるメモリ番地(
こデータ入力端子Dinに入力されるデータすなわち制
御データのアドレス部と入出力テスト回路120の出力
とが書き込まれる。While the flip-flop 153 is set, the contents of the sequential counter 115 are incremented by 1 every time the control pulse CL6 is generated, and the contents of the auxiliary memory circuit 1 are incremented by 1 every time the control pulse CL4 is generated.
The memory address (
The data input to this data input terminal Din, that is, the address part of the control data and the output of the input/output test circuit 120 are written.
こうして主記憶回路1のメモリ番地100〜114に記
憶されている制御データTNA0001〜TFAO10
1にて指示されているアドレス部0001〜0101、
およびその制御データに基づくテスト結果とが補助記憶
回路130Gこ順に書き込まれる。In this way, the control data TNA0001 to TFAO10 stored in memory addresses 100 to 114 of the main memory circuit 1
Address parts 0001 to 0101 indicated by 1,
and test results based on the control data are sequentially written into the auxiliary storage circuit 130G.
この記憶内容は押ボタンスイッチ104,105を操作
することにより表示器144に表示されることができ、
各入出力要素の作動状態に基づき作業者が故障原因を究
明する。This stored content can be displayed on the display 144 by operating the pushbutton switches 104 and 105.
The operator investigates the cause of the failure based on the operating status of each input/output element.
この表示器144に表示されるのは異常発生直後の信号
状態であり真の故障原因となった信号を含んでいるため
、故障原因の究明が容易にできる。What is displayed on the display 144 is the signal state immediately after the occurrence of the abnormality, and since it includes the signal that caused the true failure, the cause of the failure can be easily investigated.
一方前記比較器158から一致信号が出力されると第2
のフリップフロップ150がリセットされ、これにより
さらに第1のフリップフロップ153がリセットされる
。On the other hand, when a match signal is output from the comparator 158, the second
The first flip-flop 150 is reset, which further resets the first flip-flop 153.
従って以後は再び押釦スイッチ106によって第1のフ
リップフロップ154がセットされるまではモニタリン
グプログラムは実行されずシーケンス制御プログラムの
みが繰り返し実行される。Therefore, from now on, the monitoring program will not be executed and only the sequence control program will be repeatedly executed until the first flip-flop 154 is set by the push button switch 106 again.
尚、前記メモリ番地302のテスト結果が条件不満足(
起動回路ONで正常な場合)はメモリ番地303のジャ
ンプ命令によりメモリ番地310(こジャンプし、次の
シーケンス回路のチェックを行う。It should be noted that the test result for the memory address 302 is unsatisfactory (
If the startup circuit is ON and normal), a jump instruction from memory address 303 causes the program to jump to memory address 310 and check the next sequence circuit.
次のシーケンス回路0こも異常がない場合ζこはさらに
次のシーケンス回路をチェックし、順次異常のあるシー
ケンス回路を探してモニタすべき区間の判別を順次行う
。If there is no abnormality in the next sequence circuit 0, then ζ checks the next sequence circuit, sequentially searches for a sequence circuit with an abnormality, and sequentially determines the interval to be monitored.
以上の説明から明らかなように、本発明は、制御対象の
シーケンス作動中に、異常発生に伴うモニタすべきシー
ケンス制御プログラムの区間を自動的に判別し、モニタ
すべき区間の始点番地、終点番地を設定し、シーケンス
制御プログラムの一部に基づき入出力要素作動状態のモ
ニタリングを行うようにしてので、異常発生直後の信号
状態に基づき故障原因の究明ができるばかりでなく、動
作単位に応じた限られた点数の信号状態で原因究明が容
易にできる。As is clear from the above description, the present invention automatically determines the section of the sequence control program that should be monitored due to the occurrence of an abnormality during the sequence operation of the controlled object, and determines the starting point address and ending point address of the section to be monitored. The operating status of input/output elements is monitored based on part of the sequence control program, so it is not only possible to investigate the cause of the failure based on the signal status immediately after an abnormality occurs, but also to monitor the operating status of input/output elements based on part of the sequence control program. The cause can be easily investigated based on the signal status of the number of points determined.
またモニタプログラムとしてはシーケンス制御プログラ
ムの一部を利用するものであるため、サイクル変更に対
してモニタプログラムを変更する手間は皆無である。Furthermore, since a part of the sequence control program is used as the monitor program, there is no need to change the monitor program in response to a cycle change.
第1図は本発明(こよるシーケンスシコントローラの概
略のブロック線図、第2図は第1図ζこおけるモニタリ
ング回路100の詳細図、第3図は各種制御信号のタイ
ミングチャート、第4図はシーケンス回路図、第5図は
シーケンス制御プログラムおよびモニタ区間判別プログ
ラムが書き込まれたプログラムシートを示す図である。
1・・・・・・主記憶回路、2・・・・・・プログラム
カウンタ、4・・・・・・インストラクションレジスタ
、14・・・・・・論理演算回路、10・・・・・・外
部入出力要素群、11・・・・・・内部入出力要素群、
12・・・・・・入出力選択回路、100・・・・・・
モニタリング回路、101・・・・・・レジスタ、10
3・・・・・・異常番号表示器、150,151゜15
2.154・・・・・・フリツプフロプ、120・・・
・・・入出力テスト回路、130・・・・・・補助記憶
回路、134・・・・・・表示回路、144・・・・・
・表示器、153・・・・・・モニタ開始フラグ回路、
155,156・・・・・・レジスタ、157,158
・・・・・・比較器。FIG. 1 is a schematic block diagram of the sequence controller according to the present invention, FIG. 2 is a detailed diagram of the monitoring circuit 100 shown in FIG. 1, FIG. 3 is a timing chart of various control signals, and FIG. 5 is a sequence circuit diagram, and FIG. 5 is a diagram showing a program sheet in which a sequence control program and a monitor interval discrimination program are written. 1... Main memory circuit, 2... Program counter, 4... Instruction register, 14... Logical operation circuit, 10... External input/output element group, 11... Internal input/output element group,
12... Input/output selection circuit, 100...
Monitoring circuit, 101...Register, 10
3... Abnormal number display, 150,151°15
2.154...flipflop, 120...
...Input/output test circuit, 130...Auxiliary memory circuit, 134...Display circuit, 144...
・Display device, 153...Monitor start flag circuit,
155,156...Register, 157,158
...Comparator.
Claims (1)
順次読み出し、読み出した制御データにて指定される入
力要素からの入力信号を取り込んで論理演算し、前記読
み出した制御データにて指定された出力要素ζこ対して
前記論理演算の結果に基づく出力信号を与えることによ
り制御対象をシーケンス制御スるシーケンスコントロー
ラにおいて、前記主記憶装置に記憶され前記入出力要素
の作動状態を調べて異常発生にともなうモニタすべき前
記プログラム上の区間を判別するモニタ区間判別プログ
ラムよりなるモニタ区間判別手段と、このモニタ区間判
別手段より出力されるモニタ区間の開始メモリ番地デー
タとモニタ区間の終点メモリ番地データが各別に設定さ
れる始点番地設定手段及び終点番地設定手段と、この始
点番地設定手段に設定されたメモリ番地から終点番地設
定手段に設定されたメモリ番地までの区間に読出される
制御データにて指定される入出力要素の信号状態あるい
はこの信号状態とともに対応する入出力要素機器番号を
記憶する補助記憶手段と、こり補助記憶手段に記憶され
た前記入出力要素の信号状態あるいはこの信号状態とと
もに対応する入出力要素機器番号を表示する表示手段と
を備えたことを特徴とするシーケンスコントローラ。1 Read pre-programmed control data sequentially from the main memory, take in input signals from the input elements specified by the read control data, perform logical operations, and output the output elements ζ specified by the read control data. On the other hand, in a sequence controller that sequentially controls a controlled object by providing an output signal based on the result of the logical operation, the operating state of the input/output element stored in the main storage device is checked to monitor the occurrence of an abnormality. a monitor section discriminating means comprising a monitor section discriminating program for discriminating the section on the program to be processed, and a start memory address data of the monitor section and an end point memory address data of the monitor section output from the monitor section discriminating means are respectively set. A start point address setting means and an end point address setting means, and an input/output specified by the control data read in the section from the memory address set in the start point address setting means to the memory address set in the end point address setting means. Auxiliary storage means for storing a signal state of an element or a corresponding input/output element device number together with this signal state; and a signal state of the input/output element stored in the auxiliary storage means or a corresponding input/output element device along with this signal state. A sequence controller comprising: display means for displaying a number.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP50130711A JPS5832408B2 (en) | 1975-10-29 | 1975-10-29 | sequence controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP50130711A JPS5832408B2 (en) | 1975-10-29 | 1975-10-29 | sequence controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5254880A JPS5254880A (en) | 1977-05-04 |
| JPS5832408B2 true JPS5832408B2 (en) | 1983-07-13 |
Family
ID=15040783
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP50130711A Expired JPS5832408B2 (en) | 1975-10-29 | 1975-10-29 | sequence controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5832408B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1107658C (en) * | 1998-06-10 | 2003-05-07 | 中国科学院上海光学精密机械研究所 | Ytterbium-doped borate laser glass containing high valence ion oxide |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US3554347A (en) * | 1968-04-29 | 1971-01-12 | Burroughs Corp | System for automatically setting a position counter to effect agreement with the position of a traveling printing element |
| US3660746A (en) * | 1970-06-09 | 1972-05-02 | Ex Cell O Corp | A stepping motor damping system |
| JPS5332030B2 (en) * | 1972-01-18 | 1978-09-06 |
-
1975
- 1975-10-29 JP JP50130711A patent/JPS5832408B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5254880A (en) | 1977-05-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS59205605A (en) | Sequence control device | |
| JPH0130161B2 (en) | ||
| JPS5832408B2 (en) | sequence controller | |
| JP2017134493A (en) | Ladder program display device with automatic tracing function for self-holding circuit of ladder program | |
| US4048622A (en) | Programmable sequence controller | |
| JPS5832407B2 (en) | sequence controller | |
| JPS5855522B2 (en) | sequence controller | |
| JPS6112281B2 (en) | ||
| WO2014080457A1 (en) | Programmable controller | |
| JPS6048762B2 (en) | Sequence control status display device | |
| JP2572386B2 (en) | Fault diagnosis device | |
| JP2919841B2 (en) | Testing method for data processing equipment | |
| JP2002157143A (en) | Debug support system for integrated circuit test program | |
| JPH02272947A (en) | Fault monitoring system | |
| JPH09319592A (en) | Microcomputer | |
| JPS61235955A (en) | Program debugging system | |
| JPH0212436A (en) | semiconductor equipment | |
| JPS5878233A (en) | Microprogram controller | |
| JPS61184603A (en) | Process display device | |
| JPH0883108A (en) | Programmable controller debug tool | |
| JPH06337803A (en) | Computer and its runaway detection circuit | |
| JPH0413728B2 (en) | ||
| JPH05233026A (en) | Microcomputer circuit | |
| JPH0230043B2 (en) | ||
| JPS62287345A (en) | Memory access state monitoring device |