JPS5855522B2 - sequence controller - Google Patents
sequence controllerInfo
- Publication number
- JPS5855522B2 JPS5855522B2 JP50116734A JP11673475A JPS5855522B2 JP S5855522 B2 JPS5855522 B2 JP S5855522B2 JP 50116734 A JP50116734 A JP 50116734A JP 11673475 A JP11673475 A JP 11673475A JP S5855522 B2 JPS5855522 B2 JP S5855522B2
- Authority
- JP
- Japan
- Prior art keywords
- input
- output
- circuit
- control data
- memory
- 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
- 238000012544 monitoring process Methods 0.000 claims description 48
- 230000002159 abnormal effect Effects 0.000 claims description 21
- 230000005856 abnormality Effects 0.000 claims description 19
- 230000004044 response Effects 0.000 claims description 3
- 238000013500 data storage Methods 0.000 claims 1
- 230000008676 import Effects 0.000 claims 1
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 101710179734 6,7-dimethyl-8-ribityllumazine synthase 2 Proteins 0.000 description 2
- 101710186609 Lipoyl synthase 2 Proteins 0.000 description 2
- 101710122908 Lipoyl synthase 2, chloroplastic Proteins 0.000 description 2
- 101710101072 Lipoyl synthase 2, mitochondrial Proteins 0.000 description 2
- 230000009191 jumping Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Testing And Monitoring For Control Systems (AREA)
Description
【発明の詳細な説明】
本発明は入出力要素をモニタリングする機能を備えたシ
ーケンスコントローラに関し、その目的はコンピュータ
の如き上級機を使用せずにかつ割込み機能を有しなくて
も入出力要素をオンラインでモニタリングできるシーケ
ンスコントローラを提供することである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a sequence controller having a function of monitoring input/output elements, and its purpose is to monitor input/output elements without using advanced equipment such as a computer and without having an interrupt function. The objective is to provide a sequence controller that can be monitored online.
コンピュータ技術を応用したシーケンスコントローラが
開発されたことにより、このシーケンスコントローラを
仲介として制御対象の故障箇所を迅速かつ確実に発見で
きるようになった。With the development of sequence controllers that utilize computer technology, it has become possible to quickly and reliably discover faults in controlled objects using this sequence controller as an intermediary.
しかしながら従来では上級機であるコンピュータを使用
しなければならないために装置が大損りでしかも高価に
なるという問題があり、しかもオンラインでモニタリン
グするためには割込み機能を有するシーケンスコントロ
ーラでなければできなかった。However, in the past, it was necessary to use a high-end computer, which resulted in a large loss of equipment and increased costs.Furthermore, online monitoring was only possible with a sequence controller that had an interrupt function. .
本発明はかかる問題点に鑑みて提案されたもので、従来
の割込み機能を有していないシーケンスコントローラで
あっても簡単な装置を付加するだけで上級機を使用せず
に入出力要素のオンラインモニタリングを行なえるよう
にしたことを特徴とするものである。The present invention was proposed in view of such problems, and even if a conventional sequence controller does not have an interrupt function, it is possible to connect input/output elements online without using a high-end machine by simply adding a simple device. It is characterized by being able to perform monitoring.
以下、本発明の実施例を図面に基づいて説明する。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 that implements the present invention, in which 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 main memory circuit. 1 is a program counter that specifies a memory address and sequentially reads predetermined control data; 3 is a memory data register that stores the control data read from the memory address specified by program counter 2; and 4 is a memory data register 3. An instruction register 5 to which control data stored in the instruction register 4 is set via a data bus DB is a memory gate that controls setting of the control data to the instruction register 4.
前記制御データとして使用される命令語は、命令の種別
を表す操作部と後述する内部入出力要素の番地、主記憶
回路1のメモリ番地等の番地を指定するアドレス部とよ
り構成される。The instruction word used as the control data is composed of an operation section that indicates the type of instruction, and an address section that specifies an address such as 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 commands include an input/output test command that determines the on-off state of an internal input/output element, an output command that turns on or off an output element among internal input/output elements based on the determination result, and an output command that turns on or off an output element among the internal input/output elements based on the determination result. There are jump commands that cause a jump, and special commands used in monitoring programs.
第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 a group of elements that can be connected to the outside and includes an external output element 10b such as an output relay or solenoid that is turned off.
11は各外部入力要素10aと対を威しこの外部入力要
素10aのオン−オフ作動状態をシーケンスコントロー
ラの内部レベルの電気信号形態に変換する多数の内部入
力要素11a1および各外部出力要素10bと対を成し
内部レベルの出力信号を受けて外部出力要素10bをオ
ン−オフ作動させる多数の出力要素、その他外部入出力
要素群10と直接信号の授受をせず内部レベルの出力信
号を受けて作動する多数のタイマ要素、リレー要素、ダ
ミー要素等の内部出力要素11bからなる内部入出力要
素群である。11 pairs with each external input element 10a and converts the on-off operating state of the external input element 10a into an electrical signal form at the internal level of the sequence controller. A large number of output elements that operate on and off the external output element 10b in response to an internal level output signal, and operate in response to an internal level output signal without directly exchanging signals with the external input/output element group 10. This is an internal input/output element group consisting of a large number of internal output elements 11b such as timer elements, relay elements, and dummy elements.
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、Ilbのオン−オフ状態は、オンの
ときにはl HI+、オフのときには゛Lパとして、入
力セレクタ12aの出力端子からラインIT上に送出さ
れ、特に制御データが出力命令であればテストフラグ回
路14からラインOTを介して送出される出力信号が出
力セレクタ12bにて選択された内部出力要素11bに
セットされるようになっている。Input selector 12a1 output selector 1 to select 11b
2b, and the on-off state of the selected internal input/output element 11a, Ilb is LHI+ when it is ON, and LPA when it is OFF, from the output terminal of the input selector 12a. The output signal sent out on the line IT, and especially if the control data is an output command, is sent out from the test flag circuit 14 through the line OT so that it is set to the internal output element 11b selected by the output selector 12b. It has become.
テストフラッグ回路14は、前記インストラクションデ
コーダ6にて解読された各種命令信号を受け、この命令
信号を入出力テスト命令であるならラインITを介して
入力される内部入出力要素11a、11bからのオン−
オフ信号がテスト命令条件を満足しているか否かを判定
してその結果を記憶し、また命令信号が出力命令である
ならば前記記憶した判定結果に基づいたオン−オフ出力
信号をラインOTに出力するようになっている。The test flag circuit 14 receives various command signals decoded by the instruction decoder 6, and if the command signals are input/output test commands, the test flag circuit 14 receives the command signals from the internal input/output elements 11a, 11b input via the line IT. −
Determine whether the off signal satisfies the test command condition and store the result, and if the command signal is an output command, send an on-off output signal to the line OT based on the stored determination result. It is designed to be output.
15は各命令実行等のタイミングをとる制御パルスを発
生させる制御パルス発生回路で、この実施例においては
第3図に示すようなOF、CLI〜CL6の制御パルス
が周期的に発生され、−命令の実行をこの制御パルスO
Pが出てからCL6が出されるまでの一周期間で行われ
るようになっている。Reference numeral 15 denotes a control pulse generation circuit that generates control pulses for timing the execution of each instruction, etc. In this embodiment, control pulses OF, CLI to CL6 as shown in FIG. This control pulse O
This is done in one cycle from when P is issued until CL6 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 jump instruction is given; and 19-23 are This is a gate that is opened and closed by the control pulse to execute a predetermined command.
100は本発明の主要部をなすモニタリング回路であり
、この回路100の機能ブロック図を第7図に示す。Reference numeral 100 denotes a monitoring circuit which forms the main part of the present invention, and a functional block diagram of this circuit 100 is shown in FIG.
先ずこのモニタリング回路100の果たす機能を概念的
に説明すると、1つの出力要素を含めてこれを制御する
ための入力条件のグループを動作単位となし、この動作
単位毎に異常の有無を判別し、この判別結果により異常
の有る動作単位の各入力条件をオンラインで順番に調べ
てモニタ用記憶装置200に記憶し、この記憶結果をオ
フラインで読出し表示する。First, to conceptually explain the function performed by this monitoring circuit 100, a group of input conditions including one output element for controlling the same is defined as a unit of operation, and the presence or absence of an abnormality is determined for each unit of operation. Based on this determination result, each input condition of the operation unit with the abnormality is examined in order on-line and stored in the monitor storage device 200, and this stored result is read and displayed off-line.
この表示内容を作業者が判読して異常となった障害条件
を見い出すようになっている。The operator is able to decipher the displayed content and find out the fault condition that caused the abnormality.
ここに動作単位毎に入力条件をモニタして入力条件中の
障害条件を見い出せるようモニタプログラムを分割して
おき、動作単位毎に異常がないか判別する判別プログラ
ムにより異常有りと判別された動作単位に対応するモニ
タプログラムを選択し、上述のモニタが行われることに
なる。Here, the monitor program is divided so that it can monitor the input conditions for each operation unit and find failure conditions in the input conditions, and the operation that is determined to be abnormal by the discrimination program that determines whether there is an abnormality in each operation unit. A monitor program corresponding to the unit is selected, and the above-mentioned monitoring is performed.
第7図において、200はモニタ結果を記憶するモニタ
用記憶装置、210は記憶番地切替回路、220は第]
の制御手段である。In FIG. 7, 200 is a monitor storage device that stores monitoring results, 210 is a memory address switching circuit, and 220 is a memory address switching circuit.
control means.
第1の制御手段220はモニタ開始指令(スイッチ10
6の閉成が与えられるとシーケンス制御から動作単位毎
に異常の有無を判別する判別プログラムの実行に切替え
る。The first control means 220 issues a monitor start command (switch 10
6 is given, the sequence control is switched to the execution of a determination program that determines the presence or absence of an abnormality for each operation unit.
230は第2の制御手段であって、判別プログラムの実
行によりいずれかの動作単位に異常有りと判定されるこ
とにより、前記モニタ用記憶装置200及び記憶番地切
替回路210を有効にし、異常有りと判別された動作単
位のモニタプログラムを実行し、入力テスト回路120
より与えられるモニタ結果を記憶装置200に順次記憶
する。Reference numeral 230 denotes a second control means, which enables the monitor storage device 200 and the memory address switching circuit 210 when it is determined that there is an abnormality in any operation unit by executing a determination program, and determines that there is an abnormality. The input test circuit 120 executes the monitor program for the determined operation unit.
The monitoring results given by the above are sequentially stored in the storage device 200.
又モニタプログラムのエンドになると記憶装置200及
び記憶番地切替回路210を無効にしシーケンス制御に
戻す。Furthermore, when the monitor program ends, the memory device 200 and the memory address switching circuit 210 are disabled and the sequence control is returned to.
これによってスキャニングを止めることなくオンライン
モニタが達成される。This achieves online monitoring without stopping scanning.
240は異常回路番号表示装置であり、前記判別プログ
ラムにて異常と判別された動作単位に対応した異常回路
番号がセットされ表示される。Reference numeral 240 denotes an abnormal circuit number display device, in which an abnormal circuit number corresponding to the operation unit determined as abnormal by the discrimination program is set and displayed.
250は記憶装置200に記憶されたモニタ結果の表示
回路であり、記憶番地切替回路210を手動切替えして
表示させる。250 is a display circuit for displaying the monitoring results stored in the storage device 200, which is displayed by manually switching the storage address switching circuit 210.
作業者はこれを判読して異常の原因追求をすることにな
る。The operator will be able to read this and find the cause of the abnormality.
次に上述の各機能ブロックの詳細を第2図を参照して説
明する。Next, details of each of the above-mentioned functional blocks will be explained with reference to FIG. 2.
モニタ用記憶装置200は記憶回路130として示され
、記憶番地切替回路210は逐次カウンタ115として
示されている。The monitor storage device 200 is shown as a storage circuit 130, and the storage address switching circuit 210 is shown as a sequential counter 115.
第1の制御手段220は押釦スイッチ106、Dフリッ
プフロップ109に対応し、スイッチ106を閉成する
ことによりモニタリング開始が指令され、Dフリップフ
ロップ109をセット状態にする。The first control means 220 corresponds to the push button switch 106 and the D flip-flop 109, and by closing the switch 106, a command to start monitoring is given, and the D flip-flop 109 is set.
このセット信号(Q端子出力)は入力セレクタ12aの
3770番地に与えられる。This set signal (Q terminal output) is applied to address 3770 of the input selector 12a.
これにより第5図に示すシーケンス制御プログラム(0
000〜0277番地)に引き続き0300番地以下の
判別プログラムが実行され、動作単位毎に異常の有無が
判別される。As a result, the sequence control program (0
Subsequently to addresses 000 to 0277), the determination program for addresses 0300 and below is executed, and the presence or absence of an abnormality is determined for each operation unit.
仮に起動回路に異常が有れば0304番地の命令にて異
常回路番号0001がレジスタ101にセットされ、異
常回路番地表示装置240としての表示器103に表示
され、又0305番地の命令5ON3770にてフラグ
107がセットされる。If there is an abnormality in the startup circuit, the abnormal circuit number 0001 is set in the register 101 by the command at address 0304 and displayed on the display 103 as the abnormal circuit address display device 240, and the flag is set by the command 5ON3770 at address 0305. 107 is set.
この命令のオペランドの3770は第2図の出力セレク
タ12bの3770番地をセレクトしゲート108を介
してフラグ107のT端子にパルスを与え、J端子には
SONが与えられているので、フラグ107はセットさ
れることになる。The operand 3770 of this instruction selects the address 3770 of the output selector 12b in FIG. It will be set.
フラグ107がセットされるとゲート131及び118
に信号が与えられる。When flag 107 is set, gates 131 and 118
A signal is given to
第5図における0306〜0316番地の起動回路モニ
タプログラムを実行することにより、入力テスト回路1
20にてモニタした結果の信号もインバータ125を介
してアンドゲート118゜131に与えられる。By executing the startup circuit monitor program at addresses 0306 to 0316 in FIG.
The signal as a result of monitoring at 20 is also applied to AND gates 118 and 131 via inverter 125.
これによってテスト命令の条件を満足しない場合のみ記
憶回路130、逐次カウンタ115は有効にされ、条件
不満足の入出力要素を特定するデータ、即ち入出力アド
レスデータが順次記憶回路130に記憶される。As a result, the memory circuit 130 and the sequential counter 115 are enabled only when the conditions of the test command are not satisfied, and data specifying the input/output element that does not satisfy the condition, ie, input/output address data, is stored in the sequential memory circuit 130.
モニタプログラムのエンド即ち0317番地の命令5O
F3770によりフラグ107はリセットされ、次番地
の命令JMPOOOOによりシーケンス制御プログラム
に戻ってスキャニングが継続される。End of the monitor program, i.e. instruction 5O at address 0317
The flag 107 is reset by F3770, and the next address instruction JMPOOOO returns to the sequence control program to continue scanning.
フラグ107のリセットにより逐次カウンタ115はス
イッチ105により手動歩進させることができるように
なりモニタ結果を読出し表示回路250としての表示器
134に表示させることができる。By resetting the flag 107, the sequential counter 115 can be manually incremented by the switch 105, and the monitor result can be read out and displayed on the display 134 as the display circuit 250.
尚、111はフリップフロップ109がセットされると
点灯するモニタリング開始指令表示用の発光ダイオード
で、フリップフロップ109のQ端子出力がインバータ
112を介して入力されるようになっている。Note that 111 is a light emitting diode for displaying a monitoring start command that lights up when the flip-flop 109 is set, and the Q terminal output of the flip-flop 109 is inputted through the inverter 112.
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は入出力要素10a、10bのオン−オフ状態が
入出力テスト命令の条件を満足しているかどうかをテス
トする入出力テスト回路で、この回路120を構成する
アンドゲート121にはテスト命令TNAおよびライン
IT上に送出されている内部入出力要素11a、11b
のオン−オフ信号が入力され、アンドゲート122には
テスト命令TFAが入力されるとともにラインIP上に
送出されている内部入出力要素11a、11bのオン−
オフ信号がインバータ123を介して入力され、両アン
ドゲート121.122の出力はオアゲ゛−ト124を
介して出力されるようになっている。Reference numeral 120 denotes an input/output test circuit that tests whether the on-off states of the input/output elements 10a and 10b satisfy the conditions of the input/output test command. Internal input/output elements 11a, 11b being sent out on line IT
The on-off signal of the internal input/output elements 11a and 11b is inputted to the AND gate 122, and the test command TFA is inputted to the AND gate 122.
An off signal is inputted via an inverter 123, and the outputs of both AND gates 121 and 122 are outputted via an OR gate 124.
したがってテスト命令の条件を満足していればH′′、
満足していなければT L t”の信号を判定結果とし
て出力する。Therefore, if the conditions of the test command are satisfied, H′′,
If the condition is not satisfied, a signal of "TL t" is output as a determination result.
134は記憶回路130のデータ出力端子Doutから
出力される入出力要素アドレステ′−タを表示する表示
器である。Reference numeral 134 denotes a display device for displaying input/output element address data output from the data output terminal Dout of the memory circuit 130.
次に上記のように構成されたシーケンスコントローラの
作動を第3〜第5図を参照しながら説明すると、制御パ
ルスCL6の発生時に発生する制御信号UPIによりプ
ログラムカウンタ2の内容が+1され、制御パルスCL
2の発生時に発生する制御信号MSTによりゲート17
が開かれ、プログラムカウンタ2で指定されたメモリ番
地の制御データがメモリデータレジスタ3に読出されて
記憶される。Next, the operation of the sequence controller configured as described above will be explained with reference to FIGS. 3 to 5. The content of the program counter 2 is incremented by 1 by the control signal UPI generated when the control pulse CL6 is generated, and the control pulse C.L.
The gate 17 is activated by the control signal MST generated when 2 occurs.
is opened, and the control data at the memory address specified by the program counter 2 is read out and stored in the memory data register 3.
そして制御パルスCL3の発生時に発生する制御信号C
Mによりメモリゲート3が開かれ、同じく制御パルスC
L3の発生時に発生する制御信号5GISRによりイン
ストラクションレジスタ4が開かれてメモリデータレジ
スタ3に記憶されている制御データがインストラクショ
ンレジスタ4にセットされる。And the control signal C generated when the control pulse CL3 is generated.
The memory gate 3 is opened by M, and the control pulse C
The instruction register 4 is opened by the control signal 5GISR generated when L3 is generated, and the control data stored in the memory data register 3 is set in the instruction register 4.
こうしてインストラクションレジスタ4に制御データが
セットされるとそのアドレス部にセットされた番地信号
がラインAD上に送出され、その番地信号で指定される
番地の内部入出力要素11a、11bのオン−オフ状態
が、オンのときには゛H″信号として、オフのときには
゛L″信号としてラインIT上に送出される。When the control data is set in the instruction register 4 in this way, the address signal set in the address field is sent onto the line AD, and the internal input/output elements 11a and 11b at the address specified by the address signal are turned on/off. When it is on, it is sent out as an "H" signal, and when it is off, it is sent out on line IT as an "L" signal.
そしてインストラクションレジスタ4にセットされる制
御データはプログラムに従って制御パルスCL3の発生
毎に変更され、これがためにラインAD上に送出される
番地信号およびラインIT上に送出されるオン−オフ信
号は制御パルスCL3の発生毎に更新されることになる
。The control data set in the instruction register 4 is changed according to the program every time the control pulse CL3 occurs, and therefore the address signal sent on the line AD and the on-off signal sent on the line IT are changed by the control pulse. It will be updated every time CL3 occurs.
各回路がこのようにして制御されることにより第5図に
示したプログラムが実行される。By controlling each circuit in this manner, the program shown in FIG. 5 is executed.
このプログラムの実行において、メモリ番地1〜277
に記憶されているシーケンス制御プログラムの実行が終
了するとメモリ番地300の制御データTNA3770
が読み出され前記モニタリング回路100のフリップフ
ロップ109がセットされているかりセットされている
かがテストフラグ回路14にて判定される。In executing this program, memory addresses 1 to 277
When the execution of the sequence control program stored in TNA3770 is completed, the control data TNA3770 at memory address 300 is
is read out, and the test flag circuit 14 determines whether the flip-flop 109 of the monitoring circuit 100 is set or not.
従ってフリップフロップ109がリセット状態であれば
メモリ番地301の制御データJMNOOOOの実行に
よりメモリ番地0ヘジヤンプし再びシーケンス制御プロ
グラムが実行され、モニタリングプログラムは実行され
ない。Therefore, if the flip-flop 109 is in the reset state, the control data JMNOOOO at the memory address 301 is executed to jump to the memory address 0, and the sequence control program is executed again, but the monitoring program is not executed.
モニタリングを行いたい場合には、作業者はモニタリン
グ開始外部指令用押釦スイッチ106を押してフリップ
フロップ109をセットする。When the operator desires to perform monitoring, the operator presses the push button switch 106 for external command to start monitoring and sets the flip-flop 109.
フリップフロップ109がセットされるとモニタリング
開始指令用の発光ダイオード111が点灯される。When the flip-flop 109 is set, the light emitting diode 111 for a monitoring start command is turned on.
また逐次カウンタクリヤ用押釦スイッチ104を押して
逐次カウンタ115の内容をOにしておく。Further, the push button switch 104 for clearing the sequential counter is pressed to set the content of the sequential counter 115 to O.
フリップフロップ109がセットされておれば、メモリ
番地Oヘジャンプせず、302番地以降に移行して判別
プログラムが実行される。If the flip-flop 109 is set, the program does not jump to memory address O, but moves to address 302 and thereafter, and the discrimination program is executed.
判別プログラムにおいては、まず起動回路のチェックが
行われる。In the determination program, the starting circuit is first checked.
すなわちメモリ番地302の制御データTFAO100
が読み出されて起動しIJ−CR1に対応する内部入出
力要素(CR1)のオン−オフ状態がテストフラグ回路
14にて判定される。That is, the control data TFAO100 at memory address 302
is read out and activated, and the test flag circuit 14 determines the on/off state of the internal input/output element (CR1) corresponding to IJ-CR1.
起動リレーCRIは正常な運転中においては常にオンに
なっているリレーであるから、オフになっていれば起動
回路に異常があることになる。Since the starting relay CRI is a relay that is always on during normal operation, if it is off, it means that there is an abnormality in the starting circuit.
次にメモリ番地303の制御データJMN0321が実
行される。Next, control data JMN0321 at memory address 303 is executed.
従ってリレーCR1がオフであれば、すなわち起動回路
が異常であれば次のメモリ番地304の制御データAB
NO001が読み出されて起動回路のモニタリングが開
始される。Therefore, if relay CR1 is off, that is, if the starting circuit is abnormal, the control data AB at the next memory address 304
NO001 is read and monitoring of the startup circuit is started.
これにより制御パルスCL5の発生時点で制御データA
BNO001のアドレス部0001がレジスタ101に
セットされ、異常回路番号表示器103には起動回路が
異常であることを意味する。As a result, control data A is generated at the time when control pulse CL5 is generated.
The address field 0001 of BNO001 is set in the register 101, and the abnormal circuit number display 103 indicates that the starting circuit is abnormal.
461が表示される。次にメモリ番表305の制御デー
タ5ON3770が読み出されることにより、制御パル
スCL5の発生時点でモニタリング開始フラグ回路であ
るフリップフロップ107がセットされる。461 is displayed. Next, the control data 5ON3770 of the memory number table 305 is read out, so that the flip-flop 107, which is a monitoring start flag circuit, is set at the time when the control pulse CL5 is generated.
この場合入出力テスト命令は出力されていないため入出
力テスト回路120の出力はII L j+、インバー
タ125の出力はH91である。In this case, since no input/output test command is output, the output of the input/output test circuit 120 is II L j+, and the output of the inverter 125 is H91.
従ってフリップフロップ107がセットされるとまず制
御パルスCL6の発生時点で逐次カウンタ115の内容
が+1されて1になる。Therefore, when the flip-flop 107 is set, the contents of the counter 115 are sequentially incremented by 1 and become 1 at the time when the control pulse CL6 is generated.
次のメモリ番地306の制御データTNA0001が読
み出されることにより、記憶回路130のデータ入力端
子Dinには内部入出力要素の入出力番地を指定する数
値データ0001が入力され、テスト回路120にはテ
スト命令TNAと入出力番地1の内部入出力要素(LS
2)のオン−オフ信号が入力される。By reading the control data TNA0001 at the next memory address 306, numerical data 0001 specifying the input/output address of the internal input/output element is input to the data input terminal Din of the memory circuit 130, and the test circuit 120 receives the test command. TNA and internal input/output element (LS
2) on-off signal is input.
内部入出力要素(LS 2 )がオン(正常)であれば
テスト条件を満足しているからテスト回路120から°
H”′信号が出力され、オフ(異常)であれはテスト条
件を満足しないからテスト回路120からL”′信号が
出力される。If the internal input/output element (LS 2 ) is on (normal), the test conditions are satisfied, so the test circuit 120
An H''' signal is output, and if it is off (abnormal), the test conditions are not satisfied, so the test circuit 120 outputs an L''' signal.
テスト回路120の出力が11 L 11であれば制御
パルスCL4の発生時に記憶回路130の読み書き指定
端子R/Wの入力がn L IIになるため、入出力要
素を特定するデータとして数値データ0001が逐次カ
ウンタ115が指定するメモリ番地1に書き込まれ、ま
た制御パルスCL6の発生により逐次カウンタ115の
加算入力端子UPにパルス信号が入力されて逐次カウン
タ115の内容は+1されて2になる。If the output of the test circuit 120 is 11 L 11, the input to the read/write designation terminal R/W of the memory circuit 130 becomes n L II when the control pulse CL4 is generated, so the numerical data 0001 is used as the data specifying the input/output element. The data is written to the memory address 1 designated by the sequential counter 115, and upon generation of the control pulse CL6, a pulse signal is input to the addition input terminal UP of the sequential counter 115, and the contents of the sequential counter 115 are incremented by 1 to become 2.
しかしながらテスト回路120の出力がH″であればア
ントゲ゛−)131,118とも開かれないので記憶回
路130への数値データoooiの書き込み、および逐
次カウンタ115の+1は行われない。However, if the output of the test circuit 120 is H'', neither the gates 131 nor 118 are opened, so the numerical data oooi is not written to the memory circuit 130 and the sequential counter 115 is not incremented by +1.
次にメモリ番地307の制御データTFA O002が
読み出されることにより、記憶回路130のデータ入力
端子Dinには数値データ0002が入力され、テスト
回路120にはテスト命4−TFAと入出力番地2の内
部入出力用(LS3)のオン−オフ信号が入力される。Next, by reading the control data TFA O002 at memory address 307, numerical data 0002 is input to the data input terminal Din of the memory circuit 130, and the test command 4-TFA and the internal data at input/output address 2 are input to the test circuit 120. An on-off signal for input/output (LS3) is input.
内部入出力要素(LS2)がオフ(正常)であればテス
ト条件を満足しているからテスト回路120から゛°H
″信号が出力され、オン(異常)であればテスト条件を
満足していないからテスト回路120から″′L″信号
が出力される。If the internal input/output element (LS2) is off (normal), the test conditions are satisfied, so the test circuit 120 returns ゛°H.
'' signal is output, and if it is on (abnormal), the test conditions are not satisfied, and the test circuit 120 outputs an ''L'' signal.
テスト回路120の出力がL l+であれば、制御パル
スCL4の発生時に記憶回路130の読み書き指示端子
R/Wの入力が“L Dになるため、数値データ000
2が逐次カウンタ115が指定するメモリ番地に書き込
まれ、また制御パルスCL6の発生により逐次カウンタ
115の加算入力端子UPにパルス信号が入力されて逐
次カウンタ115の内容は+1される。If the output of the test circuit 120 is Ll+, the input of the reading/writing instruction terminal R/W of the storage circuit 130 becomes "LD" when the control pulse CL4 is generated, so that the numerical data is 000.
2 is written to the memory address designated by the sequential counter 115, and upon generation of the control pulse CL6, a pulse signal is input to the addition input terminal UP of the sequential counter 115, and the contents of the sequential counter 115 are incremented by 1.
しかしながらテスト回路120の出力がH″であればア
ントゲ゛−ト131,118とも開かれないので記憶回
路130へ数値データ0002の書き込み、および逐次
カウンタ115の+1は行われない。However, if the output of the test circuit 120 is H'', neither of the gates 131 and 118 are opened, so the numerical data 0002 is not written to the memory circuit 130 and the sequential counter 115 is not incremented by +1.
このようにして306番地から316番地の制御データ
が読み出され、起動回路を構成する各接点が常開接点で
あればテスト命令TNAにより、常閉接点であればテス
ト命令TFAにより、それらの接点に対応する各内部入
出力要素(L8.2)〜(CR2)のオン−オフ状態が
テスト条件を満足しているか否かをテスト回路120に
て判定され、テスト条件を満足していない入出力要素の
入出力番地のみが記憶回路130のメモリ番地1から順
に書き込まれる。In this way, the control data from addresses 306 to 316 are read out, and if the contacts constituting the starting circuit are normally open contacts, the test command TNA is used, and if the contacts are normally closed contacts, the test command TFA is used to read out the control data. The test circuit 120 determines whether the on-off state of each internal input/output element (L8.2) to (CR2) corresponding to the test condition satisfies the test condition. Only the input/output addresses of the elements are sequentially written starting from memory address 1 of the storage circuit 130.
メモリ番地316の制御データTNAOIOIが実行さ
れて起動回路を構成する各接点LS2〜CR2に対応す
るすべての内部入出力要素の判定が終了すると、次はメ
モリ番地317の制御データ5OF3770が読み出さ
れる。When the control data TNAOIOI at memory address 316 is executed and the determination of all internal input/output elements corresponding to the contacts LS2 to CR2 constituting the startup circuit is completed, control data 5OF3770 at memory address 317 is read out next.
この制御データ5OF3770により、そのアドレス部
で指定される特殊番地3770の内部入出力要素である
フリップフロップ107が制御パルスCL5にてリセッ
トされ、フリップフロップ107のリセットによりフリ
ップフロップ109も即時にリセットされる。By this control data 5OF3770, the flip-flop 107, which is an internal input/output element at the special address 3770 specified by the address field, is reset by the control pulse CL5, and by resetting the flip-flop 107, the flip-flop 109 is also immediately reset. .
これによって逐次カウンタ115も記憶回路130もこ
れ以降は作動しなくなり、1つの動作単位のモニタリン
グ結果を有効に記憶保持することができる。As a result, neither the sequential counter 115 nor the memory circuit 130 will operate from this point forward, and the monitoring results of one operation unit can be effectively stored and held.
次のメモリ番地320の制御データJMPooooが読
み出されるとメモリ番地Oヘジャンプする。When the control data JMPoooo at the next memory address 320 is read out, a jump is made to memory address O.
これによってモニタリングが終了し再びシーケンス制御
プログラムが実行される。This ends the monitoring and the sequence control program is executed again.
なお前記フリップフロップ109がリセットされること
により発光ダイオード111が消灯されてモニタリング
が終了したことが作業者に知らされる。Note that by resetting the flip-flop 109, the light emitting diode 111 is turned off and the operator is notified that the monitoring has ended.
一方、前記起動リレーCRIがオンであればすなわち起
動回路が正常であれば、メモリ番地303の制御データ
JMNO321の実行によりメモリ番地321ヘジヤン
プしてユニット前進サイクル回路のチェックが行われる
。On the other hand, if the starting relay CRI is on, that is, if the starting circuit is normal, the control data JMNO321 at the memory address 303 is executed to jump to the memory address 321 to check the unit advance cycle circuit.
すなわちメモリ番地321の制御データTFA0200
1メモリ番地322の制御データTFAO176、メモ
リ番地323の制御データTFAO177が順次実行さ
れる。In other words, the control data TFA0200 at memory address 321
Control data TFAO176 at memory address 322 and control data TFAO177 at memory address 323 are sequentially executed.
この場合は、入出力番地200,176.177の内部
入出力要素のすべてがオフのときはのみユニット前進サ
イクル回路が異常であり、それ以外のときは正常である
ことになっている。In this case, the unit advance cycle circuit is abnormal only when all of the internal input/output elements at input/output addresses 200, 176, and 177 are off, and normal otherwise.
従って入出力番地200゜176.177の内部入出力
要素すべてがオフであれば、次のメモリ番地324の制
御データJMNO340の実行後、メモリ325の制御
データABNOO02が読み出されてユニット前進サイ
クル回路のモニタリングが開始される。Therefore, if all the internal input/output elements at input/output address 200°176.177 are off, after the control data JMNO340 at the next memory address 324 is executed, the control data ABNOO02 in the memory 325 is read out and the unit forward cycle circuit is activated. Monitoring begins.
この場合には異常回路番号表示器103にはユニット前
進サイクル回路が異常であることを意味する屑2が表示
される。In this case, the abnormal circuit number display 103 displays ``chip 2'' which means that the unit advance cycle circuit is abnormal.
一方、前記入出力番地200.176.177の内部入
出力要素のうち倒れか一つでもオンであれば、メモリ番
地324の制御データ0340の実行後、メモリ番地3
40ヘジヤンプして次の回路のチェックが行われる。On the other hand, if even one of the internal input/output elements at the input/output address 200.176.177 is turned on, after the control data 0340 at the memory address 324 is executed, the memory address 3
After jumping 40 degrees, the next circuit is checked.
このようにプログラムが実行されて各動作単位毎に異常
の有無が判別され、異常有りとなった動作単位を構成す
る入力条件に対応する各内部入出力要素のオン−オフ状
態が判定され、テスト条件を満足しない入出力要素の入
出力番地が記憶回路130に記憶され、またいずれの回
路にも異常がない場合には、メモリ番地370の制御デ
ータJMPOOOOの実行によってメモリ番地Oヘジャ
ンプして再びシーケンス制御プログラムが実行されるこ
とになる。The program is executed in this way, and the presence or absence of an abnormality is determined for each operation unit.The on-off state of each internal input/output element corresponding to the input conditions that make up the operation unit in which the abnormality has occurred is determined, and the test is performed. If the input/output address of the input/output element that does not satisfy the conditions is stored in the memory circuit 130, and if there is no abnormality in any circuit, the control data JMPOOOO at the memory address 370 is executed to jump to the memory address O and restart the sequence. A control program will be executed.
また、プログラムを一巡するに要する時間は極めて短時
間であり、しかもモニタリングプログラムの実行後は必
ずシーケンス制御プログラムに戻されるので、モニタリ
ングはシーケンス制御が実行されながら実行されること
になり、割込み機能のないシーケンスコントローラであ
ってもオンラインモニタリングができることになり、こ
の場合上位コンピュータを使用しなくても良いため極め
て実用的である。In addition, the time required to complete one cycle of the program is extremely short, and since the monitoring program always returns to the sequence control program after execution, monitoring is executed while the sequence control is being executed, and the interrupt function is This means that online monitoring can be performed even with a sequence controller that does not have one, and in this case there is no need to use a host computer, which is extremely practical.
作業者は、モニタリング開始外部指令用押釦スイッチ1
06を押して点灯させた発光ダイオード111が消灯さ
れるのを確認すると、モニタリング結果を外部表示させ
る。The operator presses push button switch 1 for external command to start monitoring.
When it is confirmed that the light emitting diode 111 that was turned on by pressing 06 is turned off, the monitoring result is displayed externally.
まず、逐次カウンタクリヤ用押釦スイッチ104を押し
て逐次カウンタ115の内容をOにする。First, the sequential counter clear push button switch 104 is pressed to set the content of the sequential counter 115 to O.
次に、逐次カウンタ加算用押釦スイッチ105を押す。Next, push button switch 105 for sequential counter addition is pressed.
これにより逐次カウンタ115の内容は+1されて1に
なる。As a result, the contents of the sequential counter 115 are incremented by 1 and become 1.
記憶回路130の読み書き指示端子R/Wの入力はH1
1になっているため、逐次カウンタ115の内容が1に
なるとメモリ番地lに記憶されている数値データすなわ
ちテスト命令の条件を満足していなかった最初の内部入
出力要素の入出力番地がデータ出力端子Dou tに出
力され、その入出力番地が表示器134に表示される。The input of the read/write instruction terminal R/W of the memory circuit 130 is H1
1, so when the content of the sequential counter 115 reaches 1, the numerical data stored at memory address l, that is, the input/output address of the first internal input/output element that did not satisfy the conditions of the test instruction, is output as data. The signal is output to the terminal Dout, and its input/output address is displayed on the display 134.
逐次カウンタ加算用押釦スイッチ105をもう一度押す
と逐次カウンタ115の内容は2になり、テスト命令の
条件を満足していなかった第2番目の内部入出力要素の
入出力番地がデータ出力端子Dou tに出力され、そ
の入出力番地が表示器134に表示される。When the push button switch 105 for sequential counter addition is pressed again, the content of the sequential counter 115 becomes 2, and the input/output address of the second internal input/output element that did not satisfy the conditions of the test command is transferred to the data output terminal Dout. The input/output address is displayed on the display 134.
こうして逐次カウンタ加算用押釦スイッチ105を1回
押す毎に逐次カウンタ115の内容は+1されて記憶回
路130に記憶されているテスト命令の条件を満足して
いなかった内部入出力要素の入出力番地が順に表示器1
34に表示される。In this way, each time the push button switch 105 for sequential counter addition is pressed, the contents of the sequential counter 115 are incremented by 1, and the input/output address of the internal input/output element that did not satisfy the conditions of the test command stored in the memory circuit 130 is Display unit 1 in order
34.
作業者はモニタリングが終了したことを意味する特殊番
地3770が表示器134に表示されるまず逐次カウン
タ115の内容を+1させればよい。The operator first has to increment the contents of the sequential counter 115 by 1 when the special address 3770, which means that the monitoring has ended, is displayed on the display 134.
作業者は表示器134に表示される入出力番地により何
れの内部入出力要素の系統の回路に異常があるかを知る
ことができる。The operator can know which internal input/output element system circuit has an abnormality based on the input/output address displayed on the display 134.
第6図に、モニタリング回路100の他の実施例を示す
。FIG. 6 shows another embodiment of the monitoring circuit 100.
第6図において第2図と同一符号の構成要素は第2図の
構成要素と同一の作用を成すものである。Components in FIG. 6 having the same reference numerals as those in FIG. 2 perform the same functions as the components in FIG.
また第6図においては第2図に示す入出力選択回路12
、レジスタ101、アンドゲート102、異常回路番号
表示器103の記入が省略されている。In addition, in FIG. 6, the input/output selection circuit 12 shown in FIG.
, register 101, AND gate 102, and abnormal circuit number display 103 are omitted.
そして、第6図において、140はモニタリング開始フ
ラグ回路107がセット状態のときに入出力テスト命令
の条件を満足しない内部入出力要素11a、11bの番
地を記憶する記憶回路である。In FIG. 6, 140 is a storage circuit that stores the addresses of internal input/output elements 11a and 11b that do not satisfy the conditions of the input/output test command when the monitoring start flag circuit 107 is in the set state.
この実施例においては、ロード信号入力端子りにパルス
が入力するとデータ入力端子りから入力する数値データ
を記憶し、リセット端子Rにパルスが入力するとリセッ
トされる複数のレジスタ140−1〜140−nより構
成され、各レジスタ140−1〜140−nのデータ入
力端子りには制御データのアドレス部が前記ラインAD
を介して入力され、ロード信号入力端子りにはアントゲ
゛−1141−1〜141−nの出力が入力され、リセ
ット端子Rには逐次カウンタクリヤ用押釦スイッチ10
4によって生起されるパルスが入力されるようになって
いる。In this embodiment, when a pulse is input to the load signal input terminal, numerical data input from the data input terminal is stored, and when a pulse is input to the reset terminal R, the plurality of registers 140-1 to 140-n are reset. The address part of the control data is connected to the data input terminal of each register 140-1 to 140-n on the line AD.
The load signal input terminal is input with the outputs of the anti-games 1141-1 to 141-n, and the reset terminal R is input with the push button switch 10 for sequentially clearing the counter.
The pulse generated by 4 is input.
143は逐次カウンタ115の内容を解読して前記アン
ドゲート141−1〜141−nを選択するセレクタで
、逐次カウンタ115の内容が1のときにはアンドゲー
ト1411を有効にし、2のときにはアンドゲート14
12を、・・・・nのときにはアントゲ−N41−nを
有効にするようになっている。A selector 143 decodes the content of the sequential counter 115 and selects the AND gates 141-1 to 141-n.When the content of the sequential counter 115 is 1, the AND gate 1411 is enabled, and when the content is 2, the AND gate 14 is activated.
12...n, the anime game N41-n is enabled.
各アンドゲート’1411〜141−nの一方の入力端
子にはアンドゲート131の出力が入力されるようにな
っている。The output of the AND gate 131 is input to one input terminal of each AND gate '1411 to 141-n.
144は記憶回路140の記憶内容を外部表示する表示
回路で、記憶回路140の各レジスタ140−1〜14
0−nの出力が入力される複数の表示器144−1〜1
44−nより構成されている。Reference numeral 144 denotes a display circuit for externally displaying the stored contents of the memory circuit 140, and each register 140-1 to 140-14 of the memory circuit 140
A plurality of indicators 144-1 to 144-1 to which the outputs of 0-n are input.
44-n.
従って、この実施例によれば、モニタリング開始フラグ
回路であるフリップフロップ107がセットされている
間に入出力テスト回路120にて判定されて入出力テス
ト命令の条件を満足しない内部入出力要素の入出力番地
のみが順に記憶回路140のレジスタ140−1〜14
0−nに記憶され、同時にそれらの入力番地が表示回路
144の各表示器144−1〜144−nにより外部表
示される。Therefore, according to this embodiment, while the flip-flop 107, which is the monitoring start flag circuit, is set, the input/output element that does not satisfy the conditions of the input/output test instruction is determined by the input/output test circuit 120. Only the output addresses are sequentially stored in the registers 140-1 to 140-14 of the memory circuit 140.
0-n, and at the same time, those input addresses are externally displayed on each display 144-1 to 144-n of the display circuit 144.
この実施例による場合は、第2図に示した実施例による
場合のように記憶回路130の記憶内容を外部表示させ
るために逐次カウンタ加算用押釦スイッチを操作する必
要はない。In this embodiment, unlike the embodiment shown in FIG. 2, there is no need to sequentially operate the counter addition push button switch in order to externally display the stored contents of the memory circuit 130.
なお、以上述べた実施例においては、モニタリンクプロ
グラムにおいてテスト命令TNA。In the embodiment described above, the test command TNA is used in the monitor link program.
TFAを使用しているが、入出力テスト回路120のア
ンドゲート121にテスト命令TNA、TNO。Although TFA is used, test commands TNA and TNO are sent to the AND gate 121 of the input/output test circuit 120.
TNEをオアゲートを介して入力させ、またアンドゲー
ト122にテスト命令TFA、TPO。TNE is input through the OR gate, and test commands TFA and TPO are input to the AND gate 122.
TFEをオアゲートを介して入力させれば、モニタリン
グプログラムにおいてもすべてのテスト命令TNA、T
FA、TNO,TFO,TNE、TFEを使用すること
ができる。If TFE is input through the OR gate, all test commands TNA, T
FA, TNO, TFO, TNE, TFE can be used.
また、テストフラグ回路14中に、モニタリング回路1
00で使用する入出力テスト回路120と同一のテスト
回路が備えられておれば、モニタリング回路100には
入出力テスト回路120を設けないで、テストフラグ回
路14中に備えられているテスト回路をモニタリング回
路100と兼用させてもよい。In addition, a monitoring circuit 1 is provided in the test flag circuit 14.
If the same test circuit as the input/output test circuit 120 used in 00 is provided, the input/output test circuit 120 is not provided in the monitoring circuit 100 and the test circuit provided in the test flag circuit 14 is monitored. It may also be used as the circuit 100.
さらに、以上の実施例においては、記憶回路130もし
くは140に記憶されるのは入出力要素の入出力番地で
あるが、その入出力要素が何番目の位置にプログラムさ
れているのかを記憶させることができる。Furthermore, in the above embodiments, what is stored in the memory circuit 130 or 140 is the input/output address of the input/output element, but it is also necessary to store the position in which the input/output element is programmed. Can be done.
例えば、記憶回路130のデータ入力端子Dinに第1
図のプログラムカウンタ2の出力を入力させれば入出力
要素のプログラム番地が記憶され、また、フリップフロ
ップ107゜109のQ端子出力および制御パルスCL
6のアンド条件で+1されるカウンタを設けてこのカウ
ンタの出力を記憶回路130のデータ入力端子Dinに
入力させれば各シーケンス回路をモニタリングするモニ
タリングプログラム中において何番目にプログラムされ
た入出力要素であるかが記憶回路130に記憶される。For example, the data input terminal Din of the memory circuit 130 has a first
If the output of the program counter 2 shown in the figure is input, the program address of the input/output element is memorized, and the Q terminal output of the flip-flops 107 and 109 and the control pulse CL
By providing a counter that is incremented by 1 under the AND condition of 6 and inputting the output of this counter to the data input terminal Din of the memory circuit 130, it is possible to determine which input/output element is programmed in the monitoring program for monitoring each sequence circuit. The storage circuit 130 stores whether or not there is one.
作業者は何番目の位置にプログラムされた入出力要素で
あるかがわかればプログラムシートを参照してその入出
力要素の入出力番地を知ることができる。If the operator knows the programmed position of the input/output element, he or she can refer to the program sheet and know the input/output address of the input/output element.
以上述べたように本発明によれば、割込み機能を持たな
いシーケンスコントローラであってもシーケンス制御を
止めないでオンラインモニタリングができる上、上位コ
ンピュータも必要としないため、簡単かつ低コストでモ
ニタリングが可能となる利点を有する。As described above, according to the present invention, even if the sequence controller does not have an interrupt function, online monitoring can be performed without stopping sequence control, and since a host computer is not required, monitoring can be performed easily and at low cost. It has the following advantages.
又モニタリングの実行過程では動作単位毎に異常の有無
を判別し、異常有りの動作単位に対応する回路番号を表
示するとともに入力条件だけをモニタしテスト命令の条
件を満足しない入出力要素を特定するデータを記憶させ
るので、このモニタ結果に基づく故障原因の追求が簡単
かつ確実にできる。In addition, during the monitoring execution process, the presence or absence of an abnormality is determined for each operating unit, and the circuit number corresponding to the operating unit with an abnormality is displayed, and only the input conditions are monitored to identify input/output elements that do not satisfy the conditions of the test command. Since the data is stored, the cause of the failure can be easily and reliably investigated based on the monitoring results.
しかもモニタ結果を記憶する記憶装置は1つの動作単位
に対応する入力条件が記憶できる容量であればよいので
比較的小容量で済む利点がある。Furthermore, the storage device for storing the monitoring results has the advantage of requiring a relatively small capacity as long as it can store the input conditions corresponding to one operation unit.
図は本発明の実施例を示すもので、第1図は本発明によ
るシーケンスコントローラの概略のブロック線図、第2
図は第1図におけるモニタリング回路100の詳細図、
第3図は制御パルスのタイミングチャート、第4図はシ
ーケンス回路図、第5図はシーケンス制御プログラムお
よびモニタリングプログラムが書き込まれたプログラム
シートの概略図、第6図はモニタリング回路100の他
の実施例の詳細図、第7図はモニタリング回路100の
機能ブロック線図である。
1・・・・・・主記憶回路、2・・・・・・プログラム
カウンタ、4・・・・・・インストラクションレジスタ
、6・・・・・・インストラクションデコーダ、14・
・・・・・テストフラグ回路、10・・・・・・外部入
出力要素群、11・・・・・・内部入出力要素群、12
・・・・・・入出力選択回路、12a・・・・・・入力
セレクタ、12b・・・・・・出力セレクタ、100・
・・・・・モニタリング回路、101・・・・・・レジ
スタ、103・・・・・・異常回路番号表示器、104
・・・・・・逐次カウンタクリヤ用押釦スイッチ、10
5・・・・・・逐次カウンタ加算用押釦スイッチ、10
7・・・・・・モニタリング開始フラグ回路(J−にフ
リップフロップ)、115・・・・・・逐次カウンタ、
119・・・・・・メモリ番地表示器、120・・・・
・・入出力テスト回路、130.140・・・・・・記
憶回路、134・・・・・・表示回路、143・・・・
・・セレクタ、144・・・・・・表示回路、200・
・・・・・モニタ用記憶装置、210・・・・・・記憶
番地切替回路、220・・・・・・第1の制御手段、2
30・・・・・・第2の制御手段、240・・・・・・
異常回路番号表示装置、250・・・・・・モニタ結果
の表示回路。The figures show an embodiment of the present invention, and FIG. 1 is a schematic block diagram of a sequence controller according to the present invention, and FIG.
The figure is a detailed diagram of the monitoring circuit 100 in FIG.
3 is a timing chart of control pulses, FIG. 4 is a sequence circuit diagram, FIG. 5 is a schematic diagram of a program sheet in which a sequence control program and a monitoring program are written, and FIG. 6 is another embodiment of the monitoring circuit 100. FIG. 7 is a functional block diagram of the monitoring circuit 100. 1...Main memory circuit, 2...Program counter, 4...Instruction register, 6...Instruction decoder, 14.
...Test flag circuit, 10... External input/output element group, 11... Internal input/output element group, 12
...Input/output selection circuit, 12a...Input selector, 12b...Output selector, 100.
... Monitoring circuit, 101 ... Register, 103 ... Abnormal circuit number display, 104
...Push button switch for sequential counter clearing, 10
5...Push button switch for sequential counter addition, 10
7...Monitoring start flag circuit (flip-flop to J-), 115...Sequential counter,
119...Memory address display, 120...
...Input/output test circuit, 130.140...Memory circuit, 134...Display circuit, 143...
... Selector, 144 ... Display circuit, 200.
...Monitoring storage device, 210...Memory address switching circuit, 220...First control means, 2
30... second control means, 240...
Abnormal circuit number display device, 250... Monitor result display circuit.
Claims (1)
ス制御データを順次読み出し、読み出された制御データ
にて指定された入出力要素のオン、オフ状態を取り込み
、この取り込まれた入出力要素のオン、オフ状態が前記
制御データにて指令された入出力テスト命令の条件を満
足しているか否かを判定し、前記制御データにて指令さ
れた出力要素を選択し、前記判定の結果を条件として前
記制御データにて指令された出力命令に従い前記選択さ
れた出力要素をオン、オフさせることにより制御対象を
シーケンス制御するシーケンスコントローラにおいて、
前記記憶装置のシーケンス制御データ記憶エリアとは別
の記憶エリアにモニタプログラムを記憶し、このモニタ
プログラムは前記出力要素の1つを制御する入力条件の
グループを動作単位としてこの動作単位毎にモニタする
複数のモニタプログラム及び異常の有無を判別する複数
の判別プログラムに分離されており、前記動作単位毎の
入力条件となる各入出力要素のオンオフ状態がテスト命
令の条件を満足しないものがあればその入出力要素を特
定するデータを記憶するモニタ用記憶装置130 、1
40を設け、このモニタ用記憶装置130,140の記
憶番地を前記モニタプログラムの実行に同期して順次切
替える記憶番地切替回路115を設け、モニタリング開
始指令によって、シーケンス制御データを記憶した記憶
装置より前記動作単位毎に異常の有無を判別する判別プ
ログラムを読出し実行する第1の制御手段106,10
9を設け、異常有りと判別された動作単位のモニタプロ
グラム実行開始直前に前記モニタ用記憶装置130,1
40及び記憶番地切替回路115を有効にする第2の制
御手段107゜131.118を設け、異常有りと判別
された動作単位につけられた異常回路番号を出力し表示
するための異常回路番号表示装置101,103を設け
、前記モニタ用記憶装置130.140に記憶され前記
入出力要素を特定するデータの表示回路134,144
を設けたことを特徴とするシーケンスコントローラ。1 Sequentially read out the sequence control data programmed in advance and stored in the storage device, import the on/off state of the input/output element specified by the read control data, and turn on/off the input/output element specified by the read control data. Determine whether the state satisfies the conditions of the input/output test command commanded by the control data, select the output element commanded by the control data, and execute the control using the result of the determination as a condition. In a sequence controller that sequentially controls a controlled object by turning on and off the selected output element according to an output command specified by data,
A monitor program is stored in a storage area different from a sequence control data storage area of the storage device, and this monitor program monitors a group of input conditions for controlling one of the output elements as a unit of operation. It is separated into multiple monitor programs and multiple discrimination programs that determine the presence or absence of an abnormality, and if the on/off state of each input/output element, which is the input condition for each operation unit, does not satisfy the conditions of the test command, the Monitoring storage device 130, 1 that stores data specifying input/output elements
40, and a memory address switching circuit 115 that sequentially switches the memory addresses of the monitor memory devices 130, 140 in synchronization with the execution of the monitor program, and in response to a monitoring start command, the memory address of the monitor memory devices 130, 140 is switched from the memory device storing the sequence control data to First control means 106, 10 that reads and executes a determination program that determines the presence or absence of an abnormality for each operation unit.
9 is provided, and the monitor storage device 130, 1 is stored immediately before the start of execution of the monitor program of the operation unit determined to be abnormal.
40 and a second control means 107゜131.118 for enabling the memory address switching circuit 115, and an abnormal circuit number display device for outputting and displaying an abnormal circuit number assigned to an operation unit determined to be abnormal. Display circuits 134 and 144 for data stored in the monitor storage devices 130 and 140 and specifying the input/output elements;
A sequence controller characterized by being provided with.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP50116734A JPS5855522B2 (en) | 1975-09-26 | 1975-09-26 | sequence controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP50116734A JPS5855522B2 (en) | 1975-09-26 | 1975-09-26 | sequence controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5240287A JPS5240287A (en) | 1977-03-29 |
| JPS5855522B2 true JPS5855522B2 (en) | 1983-12-10 |
Family
ID=14694454
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP50116734A Expired JPS5855522B2 (en) | 1975-09-26 | 1975-09-26 | sequence controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5855522B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08336410A (en) * | 1995-06-13 | 1996-12-24 | Kenji Mitsumoto | Umbrella for golf and golf club holder for the umbrella |
-
1975
- 1975-09-26 JP JP50116734A patent/JPS5855522B2/en not_active Expired
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08336410A (en) * | 1995-06-13 | 1996-12-24 | Kenji Mitsumoto | Umbrella for golf and golf club holder for the umbrella |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5240287A (en) | 1977-03-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2005266861A (en) | Microcomputer and its test method | |
| JPH0130161B2 (en) | ||
| WO1984003964A1 (en) | Alarm display method for programmable controller | |
| JPS5855522B2 (en) | sequence controller | |
| JPS5851285B2 (en) | sequence controller | |
| JPS5832408B2 (en) | sequence controller | |
| JPS5832407B2 (en) | sequence controller | |
| JP7404645B2 (en) | Programmable controller operation history recording method and sequence program | |
| JP2720401B2 (en) | Instruction memory range expansion device | |
| KR20230107951A (en) | Method for Checking of Communication State of Between Controller and Inverter | |
| JPH06249927A (en) | Electronic circuit device | |
| KR910005512B1 (en) | Programmable Logic Controller System | |
| JPH09146787A (en) | How to test a microprocessor | |
| JPS6250919B2 (en) | ||
| JPS63255744A (en) | System diagnosing system | |
| JPS5916014A (en) | Abnormality checking system of sequence controller | |
| JPS59119412A (en) | Programmable controller | |
| JPH07306813A (en) | I / O device test equipment | |
| JPH03251934A (en) | Computer equipment | |
| JPH0230043B2 (en) | ||
| JPS6048762B2 (en) | Sequence control status display device | |
| JPH0373001B2 (en) | ||
| JPH0564307B2 (en) | ||
| JPS58181345A (en) | Communication device | |
| JPH1173209A (en) | Programmable controller |