JP2737878B2 - Monitor for sequence program control system - Google Patents

Monitor for sequence program control system

Info

Publication number
JP2737878B2
JP2737878B2 JP63106018A JP10601888A JP2737878B2 JP 2737878 B2 JP2737878 B2 JP 2737878B2 JP 63106018 A JP63106018 A JP 63106018A JP 10601888 A JP10601888 A JP 10601888A JP 2737878 B2 JP2737878 B2 JP 2737878B2
Authority
JP
Japan
Prior art keywords
pattern
normal
monitoring
operation pattern
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63106018A
Other languages
Japanese (ja)
Other versions
JPH01276206A (en
Inventor
幸雄 宗永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Matsuda KK
Original Assignee
Matsuda KK
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 Matsuda KK filed Critical Matsuda KK
Priority to JP63106018A priority Critical patent/JP2737878B2/en
Publication of JPH01276206A publication Critical patent/JPH01276206A/en
Application granted granted Critical
Publication of JP2737878B2 publication Critical patent/JP2737878B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、シーケンスプログラム制御系のモニタ装置
に関するものである。
Description: TECHNICAL FIELD The present invention relates to a monitor for a sequence program control system.

(従来の技術) 制御すべき所定制御設備の動作シーケンスを指定した
シーケンスプログラムを組み、このシーケンスプログラ
ムに従って当該制御の各段階の動作を逐次進めていくよ
うにしたシーケンスプログラム制御は既に知られてお
り、例えば各種機械装置の組立ラインや工作機械におい
て、前段階の動作に応じて次段階の動作を自動的かつ連
続的に行なわせるために多く利用されている。
(Prior Art) A sequence program control in which a sequence program specifying an operation sequence of predetermined control equipment to be controlled is formed, and the operation of each stage of the control is sequentially advanced according to the sequence program is already known. For example, it is widely used in assembly lines of various types of machinery and machine tools for automatically and continuously performing the next operation in response to the operation in the previous operation.

ところで、このシーケンスプログラム制御において、
その制御が正常に行なわれている否かを時間監視、つま
りシーケンスモニタする場合、当該制御設備の動作を制
御する上記シーケンスプログラムの中に更にこのモニタ
リングのための別プログラムを組み込み、異常時に警報
を行なわせるように構成したものがある。しかし、この
ような構成では、設備の変更の都度、必ず設備の動作制
御用とモニタ用の両プログラムを変更する必要があり、
また、このように動作制御用とモニタ用との2つのプロ
グラムが必要であるために全体のプログラム容量が肥大
化する欠点がある。
By the way, in this sequence program control,
When time monitoring is performed to determine whether or not the control is performed normally, that is, when sequence monitoring is performed, another program for this monitoring is further incorporated into the sequence program for controlling the operation of the control equipment, and an alarm is generated when an abnormality occurs. Some are configured to do so. However, in such a configuration, every time the equipment is changed, it is necessary to change both the operation control program and the monitoring program of the equipment.
In addition, since two programs for the operation control and the monitor are required, there is a disadvantage that the entire program capacity is enlarged.

そこで、最近では、上記のような欠点のないものとし
て特にプレイバック式のシーケンスモニタ装置が多く使
用されるようになってきている。この装置は、予め設備
を正常に動作させた際のシーケンス制御回路の各構成要
素の作動パターンを順次所定のメモリに記憶させてお
き、設備の実際の稼動時の作動パターンが上記予め記憶
していた基準作動パターンと一致しているか否かを順次
照合していき、それらが不一致のときに異常の警報を発
するようにしたものである。これに関し、例えば特開昭
60−238906号公報には、該プレイバック式のシーケンス
モニタ装置において、上記作動パターンの不一致が連続
して生ずるようなときには異常と判定し、当該異常発生
前後の作動パターンを記憶して異常原因の解明を容易に
するという技術的思想のものが記載されている。
Therefore, recently, a playback-type sequence monitor device has been increasingly used particularly without the above-mentioned drawbacks. In this device, the operation patterns of the respective components of the sequence control circuit when the equipment is normally operated are stored in a predetermined memory in order, and the operation patterns of the equipment when it is actually operated are stored in advance. It is sequentially checked whether or not they match the reference operation pattern, and when they do not match, an alarm of abnormality is issued. In this regard, for example,
Japanese Patent Application Laid-Open No. 60-238906 discloses that in the playback type sequence monitor device, when the operation patterns do not match continuously, it is determined that an abnormality has occurred, and the operation patterns before and after the occurrence of the abnormality are stored to determine the cause of the abnormality. It describes the technical idea of facilitating the elucidation.

ところで、上記のようなプレイバック式シーケンスモ
ニタ装置においては、先ず不一致パターンが得られた場
合、原則としてその中の不一致の制御要素のすべてが異
常と判定されるが、通常真の異常要素は本来その中のい
くつか(大抵の場合は1つ)であり、他のものは真の異
常要素が発生した結果、それが原因となって連鎖的に異
常と判定されていることが多い。
By the way, in the above-mentioned playback type sequence monitor, when a mismatch pattern is first obtained, in principle, all of the mismatched control elements are determined to be abnormal. Some of them (in most cases, one), and others are often determined to be abnormal in a chain due to the occurrence of a true abnormal element.

すなわち、上記プレイバック式シーケンスモニタ装置
の場合、設備側の作動パターンに所定の遷移(I/O変
化)がある都度、上記基準となる記憶パターン側のステ
ップを前進させて照合するから、異常要素が発生した場
合、結局そのこと自体により作動パターンの遷移を招い
て上記記憶パターンのステップが前進し、本来変化すべ
き制御要素がこの前進したステップの記憶パターンとの
照合の結果は、変化していないために異常と判定されて
しまうことがある。従って、上記のようなプレイバック
式シーケンスモニタ装置において複数の制御要素につい
て異常が指摘された場合、そのすべてについて真の異常
があるか否かを更に点検していく必要が生ずることにな
る。しかし、これでは到底実用に耐え得ない。
That is, in the case of the above-mentioned playback type sequence monitor device, every time there is a predetermined transition (I / O change) in the operation pattern on the equipment side, the steps on the reference storage pattern side are advanced and collated. Occurs, the event itself eventually causes a transition of the operation pattern, and the steps of the storage pattern advance, and the result of comparison of the control element that should be changed with the storage pattern of the advanced step has changed. May be determined to be abnormal. Therefore, when abnormalities are pointed out for a plurality of control elements in the above-described playback-type sequence monitor device, it is necessary to further check whether or not all of the control elements have true abnormalities. However, this is far from practical use.

そこで、上記のような問題点を解決する手段として、
例えば上記シーケンスプログラム制御系を構成する各制
御系要素の作動状態の変化を検出する作動状態変化検出
部と、当該制御設備の正常動作時における各制御要素の
作動パターンをそのパターンが変化する各ステップ毎に
記憶する正常パターン記憶部と、上記作動状態変化検出
部での検出により得られる実際の作動パターンと正常パ
ターン記憶部の記憶作動パターンとを比較する作動パタ
ーン比較部と、制御状態を診断する制御状態診断処理部
とを備えさせてプレイバック式シーケンスモニターを構
成する一方、上記制御状態診断処理部を、上記作動パタ
ーンが対応するステップの上記記憶パターンと一致する
か否かを判定する一致判定部と、この一致判定部からの
不一致の判定を受けて当該不一致の制御要素を上記対応
するステップの前ステップの記憶パターンのものと比較
する比較制御部と、上記前ステップのものとの比較によ
り上記対応するステップでは変化すべきでないのに変化
している不一致の要素を優先的に異常と判定する優先異
常判定部とによって構成することが考えられる。
Therefore, as a means to solve the above problems,
For example, an operation state change detection unit that detects a change in the operation state of each control system element that constitutes the sequence program control system, and an operation pattern of each control element during normal operation of the control equipment in which each step changes the pattern. A normal pattern storage unit that stores a normal operation pattern obtained by the operation state change detection unit and an operation pattern comparison unit that compares an actual operation pattern obtained by detection by the operation state change detection unit with a storage operation pattern stored in the normal pattern storage unit; A playback state monitor comprising a control state diagnosis processing unit, and determining whether or not the control state diagnosis processing unit matches the storage pattern of the corresponding step with the control pattern diagnosis processing unit. Receiving the mismatch determination from the match determination unit and determining the mismatched control element before the corresponding step. A comparison control unit for comparing with the one in the memory pattern of the step, and a priority for judging that a mismatched element that is changed but should not be changed in the corresponding step is preferentially determined to be abnormal by comparison with the one in the previous step. It is conceivable to configure with an abnormality determination unit.

このような構成のプレイバック式シーケンスモニタ装
置においては、先ず上記作動パターンの比較から不一致
要素が指摘された場合、前ステップの記憶パターンとの
比較により、当該不一致要素は本来変化すべきなのに変
化していないために不一致となった要素か、それとも本
来変化すべきでないのに変化したために不一致となった
要素かが点検される、つまりバックチェックされること
になる。前者の実際には変化していない不一致要素は作
動パターンの遷移を招かないものであるため、後者は実
際に変化している不一致要素が生じた結果、連鎖的に不
一致と判定指摘されたものであり、従って後者の不一致
要素こそが真の異常要素であるということが判明するこ
とになる。
In the playback-type sequence monitor device having such a configuration, first, when a mismatch element is pointed out from the comparison of the operation patterns, the mismatch element is changed by the comparison with the storage pattern of the previous step, although the mismatch element should be originally changed. It is checked whether the element has been mismatched because it has not been changed or the element that has been changed but should not have been changed, that is, back-checked. Since the former mismatching element that has not actually changed does not cause a transition of the operation pattern, the latter is the one that was pointed out as a chain of mismatching as a result of the actual changing mismatching element. Yes, and thus the latter discrepancy element turns out to be the true anomalous element.

従って、このような構成にすれば、上記作動パターン
の比較により不一致が指摘された際に、更にそれを前ス
テップの記憶パターンとも比較して本来変化すべきでな
いのに変化して不一致となった要素を見い出すようにし
ているため、先に述べたような複数の不一致要素が得ら
れた場合にも比較的容易に真の異常要素を知ることがで
き、シーケンスモニタ装置における診断精度の向上が図
れることになる。
Therefore, according to such a configuration, when a mismatch is pointed out by comparing the above operation patterns, it is compared with the storage pattern of the previous step, and it is changed but should not be changed. Since the elements are found, even if a plurality of inconsistent elements as described above are obtained, the true abnormal element can be relatively easily known, and the diagnostic accuracy of the sequence monitor can be improved. Will be.

(発明が解決しようとする問題点) ところで、上述のようなシーケンスプログラム系の作
動設備では、例えば第4図のシステムに示すように一般
に自己保持回路を有して構成されていることが多い。第
4図のシステムの場合、ひとつのメインとなる自動ビル
トアップステーション部100と該自動化ビルトアップス
テーション部100をコンベヤーシステム200を介してマニ
ュアル作業によるサブアッシーステーション300と組合
せて設備構成したものであって、上記自動化ビルトアッ
プステーション部100での作業が完了すると、次にコン
ベヤーシステム200が起動されてサブアッシーステーシ
ョン300にワーク500が移送され、サブアッシーステーシ
ョン300が作動するようになっている。そして、上記の
場合において、上記コンベヤー200の起動は、先ず上記
自動化ビルトアップステーション部での組立作業完了I/
O信号とサブアッシーステーション300での前作業完了に
よるサブアッシー完了ボタン(自己保持回路を有してい
る)400のONとの2つの条件の論理積の成立で行われる
ようになっている。
(Problems to be Solved by the Invention) By the way, the operating equipment of the above-mentioned sequence program system generally has a self-holding circuit as shown in the system of FIG. 4, for example. In the case of the system shown in FIG. 4, the equipment is constructed by combining one main automatic build-up station section 100 and the automated build-up station section 100 with a sub-assembly station 300 which is manually operated via a conveyor system 200. Then, when the work in the automated build-up station section 100 is completed, the conveyor system 200 is started up, the work 500 is transferred to the sub-assembly station 300, and the sub-assembly station 300 is operated. In the above case, the start of the conveyor 200 is performed by first assembling work completion I / O in the automated build-up station section.
The logical product of two conditions of the O signal and the ON of the sub-assembly completion button (having a self-holding circuit) 400 due to the completion of the previous work in the sub-assembly station 300 is established.

しかし、該論理積条件の内、自動化ビルトアップステ
ーション部100での作業の完了とサブアッシーステーシ
ョン300での作業の完了は、本来何れが先に終わるかは
分らない。従って、次のように必ず2組の組合せ状態
(I/Oパターン)が生じる。
However, among the logical product conditions, it is not known which of the completion of the work in the automated build-up station unit 100 and the completion of the work in the sub-assembly station 300 will end first. Therefore, two combinations (I / O patterns) always occur as follows.

[1] 自動化ビルトアップステーション部100での作
業が先に完了した場合 (※サブアッシー完了ボタン400を押すと同時にコンベ
ヤー200が起動される。) [2] サブアッシーステーションで作業が先に完了し
た場合 (※サブアッシー完了ボタン400は自己保持され、自動
化ビルトアップステーションの作業完了I/O出力でコン
ベヤー200が起動される。)このように、システムの制
御要素中に自己保持回路を有するものがあると、結局I/
O出力の遷移パターンの多様化を招き、上述のようなブ
レイバック式のシーケンスモニタでは、正確な異常判定
を行うことが不可能となる(例えば、上記の例で言う
と、ステップ(イ)、ステップ(ニ)の比較判定以後に
は全く一致パターンを見出し得ない)。
[1] When the work in the automation built-up station unit 100 is completed first (* Conveyor 200 is started at the same time that sub-assembly complete button 400 is pressed.) [2] When work is completed at sub-assembly station first (* The sub-assembly complete button 400 is self-holding, and the conveyor 200 is activated by the work completion I / O output of the automated build-up station.) As described above, some control elements of the system have a self-holding circuit. And eventually I /
The transition pattern of the O output is diversified, and it becomes impossible to perform an accurate abnormality determination with the above-described sequence monitor of the break-back type (for example, in the above example, step (a), After the comparison in step (d), no matching pattern can be found).

(問題点を解決するための手段) 本発明は上記の問題を解決することを目的としてなさ
れたものであって、所定作動設備の制御動作順序を指定
したシーケンスプログラムにより当該制御動作の各ステ
ップを逐次指示通り進めて行くシーケンスプログラム制
御系において、当該シーケンスプログラム制御系を構成
する各種制御要素の作動状態の変化を検出する作動状態
変化検出部と、上記作動設備の正常動作時に於ける上記
各種制御要素の作動状態の変化を表す作動パターンをそ
の作動パターンが変化する上記各ステップ毎に記憶して
いる正常パターン記憶部と、上記作動状態変化検出部で
検出される上記各種制御要素の作動パターンとそれら制
御要素の上記正常パターン記憶部で記憶されている当該
ステップの正常パターンとを各ステップ毎に比較する作
動パターン比較部と、該作動パターン比較部での比較に
より上記正常記憶パターンと作動パターンとの不一致の
有無を監視して制御状態の異常診断を行う異常診断処理
部とを備えてなるシーケンスンプログラム制御系のモニ
タ装置において、上記異常診断処理部は、当該ステップ
における作動パターンと正常パターンとが不一致の時に
は、その時の上記作動パターンを次のステップ以後の前
進した正常記憶パターンと順次比較してゆき、一致する
正常記憶パターンが得られると、そのステップを上記作
動パターンが対応する監視ステップとして当該ステップ
以後の作動パターンの監視を継続する一方、正常パター
ンが得られない場合は、上記監視ステップの変更を行う
ことなく作動パターンの遷移の有無を確認し、作動パタ
ーンの遷移が無い場合に異常と判断し、それまでの作動
パターン比較部での比較で作動パターンと正常記憶パタ
ーンとが不一致の原因となった制御要素から異常原因の
診断を行なうように構成されている。
(Means for Solving the Problems) The present invention has been made for the purpose of solving the above problems, and each step of the control operation is performed by a sequence program specifying a control operation order of predetermined operating equipment. In a sequence program control system that sequentially proceeds according to an instruction, an operation state change detection unit that detects a change in an operation state of various control elements constituting the sequence program control system, and the various controls during normal operation of the operation equipment. A normal pattern storage unit that stores an operation pattern representing a change in the operation state of an element for each step in which the operation pattern changes, and an operation pattern of the various control elements detected by the operation state change detection unit. The normal pattern of the step stored in the normal pattern storage unit of the control elements is used for each step. And an abnormality diagnosis processing unit that monitors the presence / absence of a mismatch between the normal storage pattern and the operation pattern based on the comparison by the operation pattern comparison unit and diagnoses an abnormality in the control state. In the monitoring device of the sequencen program control system, when the operation pattern in the step does not match the normal pattern, the abnormality diagnosis processing unit sequentially compares the operation pattern at that time with a normal storage pattern that has been advanced after the next step. Then, when a matching normal storage pattern is obtained, the step is set as a monitoring step corresponding to the operation pattern, the monitoring of the operation pattern after the step is continued, while when a normal pattern is not obtained, the monitoring is performed. Check whether the operation pattern has transitioned without changing the step, and If there is no transition, it is determined that an abnormality has occurred, and diagnosis of the cause of the abnormality is performed from the control element that caused the mismatch between the operation pattern and the normal storage pattern in the comparison by the operation pattern comparison unit up to that time. .

(作 用) 上記本発明の構成では、先ず作動設備を稼動させて各
制御要素の実際の作動パターンを所定のステップ毎に順
次モニタしていき、実際の作動パターンと正常記憶パタ
ーンとが不一致のときには、その不一致ステップよりも
先に前進したステップに一致する正常記憶パターンがあ
るか否かをチェックする。その結果、一致する正常記憶
パターンがあれば、その正常記憶パターンがあるステッ
プを上記正常パターン記憶部における現時点の作動パタ
ーンが対応する監視ステップとしてそのステップ以後の
作動パターンの監視を継続する。
(Operation) In the configuration of the present invention, first, the operating equipment is operated, and the actual operation pattern of each control element is sequentially monitored at predetermined steps, and if the actual operation pattern does not match the normal storage pattern. In some cases, it is checked whether or not there is a normal storage pattern that matches the step that has advanced ahead of the unmatched step. As a result, if there is a matching normal storage pattern, the step having the normal storage pattern is set as a monitoring step corresponding to the current operation pattern in the normal pattern storage unit, and the monitoring of the operation pattern after that step is continued.

つまり、この場合は、正常パターン記憶部での記憶で
は複数の要素の作動状態が例えばオン・オフを繰り返し
ながら順次変化しているのに対し、実際には複数が同時
に変化したか、異なる順序で変化して前進ステップに一
致する正常記憶パターンがあったことになる。従って、
論理積(AND)条件について考えれば、その成立順序が
単に記憶のものと相違するだけで、設備としては問題の
ない作動パターンであるから、設備の動作停止を伴うよ
うな異常警報を発することなく、制御状態のモニタを継
続することができる。
In other words, in this case, in the storage in the normal pattern storage unit, the operation states of a plurality of elements are sequentially changing while repeatedly turning on and off, for example, but actually, a plurality of elements are changed simultaneously or in a different order. This means that there was a normal memory pattern that changed and matched the forward step. Therefore,
When considering the logical product (AND) condition, the operation order is simply different from that in memory, and it is an operation pattern that does not cause any problem for the equipment. Thus, the monitoring of the control state can be continued.

また、一方上記前進したステップに作動パターンと一
致する正常記憶パターンがない場合には、上記のような
正常パターン記憶部における監視ステップの変更を行な
うことなく、次の作動パターンの遷移の有無を確認する
ことになる。その遷移があれば、上記論理積条件の成立
についてみるとき、単に記憶していたものと異なる成立
順序であって設備の方はその状態が変化し現時点では問
題なしとして、先の場合と同様に対応する監視ステップ
あるいはその前進ステップの正常記憶パターンとの一致
・不一致をみることができる。なお、上記遷移がなけれ
ば、異常として当初の作動パターン不一致の原因となっ
た制御要素、あるいはその後の前進ステップでの不一致
の原因となった制御要素から異常原因の診断を行なうこ
とができる。
On the other hand, if there is no normal storage pattern corresponding to the operation pattern in the step advanced, the presence or absence of the transition of the next operation pattern is confirmed without changing the monitoring step in the normal pattern storage unit as described above. Will do. If there is such a transition, when looking at the establishment of the above logical product condition, the order of establishment is different from that just memorized, and the equipment changes its state and there is no problem at the moment, as in the previous case It is possible to see whether the corresponding monitoring step or its forward step matches the normal storage pattern. If the above transition does not occur, the cause of the abnormality can be diagnosed from the control element that caused the initial operation pattern inconsistency as an abnormality or the control element that caused the inconsistency in the subsequent forward step.

(発明の効果) 従って、上記本発明の構成によれば、先に述べたよう
なプレイバック式のシーケンスモニタ装置において不一
致パターンが得られたとき実際の作動パターンをその不
一致ステップから前進した各ステップの記憶パターンと
比較し、パターンが一致すればその一致ステップを正常
パターン記憶部の監視ステップとして監視を継続するよ
うにしたから、論理積条件の成立によって制御が進行す
る場合において、モニタ装置の診断精度を低下させるこ
となく上記論理積条件の成立順序不同による誤診断を防
止することができることはもとより自己保持回路によっ
て不一致パターンの遷移が多様化した場合にも従来のよ
うな誤動作を避けることができ、その信頼性の向上が図
れる。
(Effects of the Invention) Therefore, according to the configuration of the present invention, when a mismatch pattern is obtained in the playback-type sequence monitor device as described above, the actual operation pattern is advanced from the mismatch step to each step. The pattern is compared with the stored pattern, and if the patterns match, the matching step is continued as the monitoring step of the normal pattern storage unit, so that the monitoring is continued. In addition to being able to prevent erroneous diagnosis due to the improper order of fulfillment of the logical product condition without lowering the accuracy, it is possible to avoid the conventional malfunction even when the transition of the mismatch pattern is diversified by the self-holding circuit. And its reliability can be improved.

(実施例) 以下、本発明の実施例を図面に基いて詳細に説明す
る。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図には同実施例のシーケンスプログラム制御系に
おけるモニタ装置の全体構成が示されている。
FIG. 1 shows the overall configuration of a monitor device in the sequence program control system of the embodiment.

同図において、符号1はその動作をシーケンシャルに
制御すべき所定の作動設備であり、この設備1の制御系
は当該設備1の状態を検出する複数の検出要素(例えば
リミットスイッチ)と、この複数の検出要素がすべての
特定の作動状態になったとき、つまりAND条件が成立し
たときに動作する出力要素(例えばシリンダ装置)とを
備える。
In the figure, reference numeral 1 denotes a predetermined operating equipment whose operation is to be controlled sequentially, and a control system of the equipment 1 includes a plurality of detection elements (for example, limit switches) for detecting a state of the equipment 1 and a plurality of detection elements. And an output element (for example, a cylinder device) that operates when all of the detection elements are in a specific operation state, that is, when the AND condition is satisfied.

第2図には上記設備1の一例(穿孔機)が示されてい
る。この例において、ドリル2を備える作業ヘッド3は
出力要素としてのシリンダ装置4で昇降するようになっ
ている。そして、このシリンダ装置4は、安全マット5
上に作業者が存在しないことを研修する第1のリミット
スイッチ(LS1)6、テーブル7上での位置決めシリン
ダ装置8,9によるワーク10の位置決めを検出する第2、
第3のリミットスイッチ(LS2)11,(LS3)12が共にオ
ンのとき、作業ヘッド3を下降せしめて穿孔作業を行な
うようになっている。
FIG. 2 shows an example of the equipment 1 (a punch). In this example, a working head 3 provided with a drill 2 is moved up and down by a cylinder device 4 as an output element. The cylinder device 4 includes a safety mat 5
A first limit switch (LS1) 6 for training that there is no worker on the upper side, a second for detecting the positioning of the work 10 by the positioning cylinder devices 8, 9 on the table 7,
When the third limit switches (LS2) 11 and (LS3) 12 are both on, the work head 3 is lowered to perform the boring work.

ところで、上記第1図のシーケンスモニタ装置におい
て、符号15は上記各制御要素の作動状態を表わす入出力
信号(IN/OUT)を入力するI/O状態入力部、符号16は同I
/O状態入力部15からの出力により上記各I/O状態の変
化、つまり全要素の作動パターンの遷移を検出する作動
変化検出部、17は正常パターン記憶部である。この正常
パターン記憶部17は、上述の設備1に予め正常な動作を
行なわしめ、そのときの作動パターンをそのパターンが
遷移する(少なくとも1の要素のI/O状態が変化する)
各ステップ毎に基準パターンとして記憶せしめたもので
ある。
In the sequence monitor shown in FIG. 1, reference numeral 15 denotes an I / O state input unit for inputting input / output signals (IN / OUT) representing the operation state of each control element, and reference numeral 16 denotes the same I / O signal.
An operation change detection unit 17 for detecting a change in each I / O state based on an output from the / O state input unit 15, that is, a transition of an operation pattern of all elements, and 17 is a normal pattern storage unit. The normal pattern storage unit 17 causes the above-described equipment 1 to perform a normal operation in advance, and changes the operation pattern at that time (the I / O state of at least one element changes).
This is stored as a reference pattern for each step.

また、符号18は上記作動変化検出部16により得られる
実際の作動パターンと、上記正常パターン記憶部17から
得られる基準記憶パターンとを比較する比較部であり、
比較すべき基準記憶パターンは比較実行制御部からの指
令に基いて比較対象抽出部20で抽出され、またその比較
結果は異常状態診断処理部21に与えられた現実の作動パ
ターンと上記基準となる正しい記憶パターンとの不一致
の有無が監視され、診断結果は診断結果出力部22と上記
比較実行制御部19に与えるようになっている。
Reference numeral 18 denotes a comparison unit that compares an actual operation pattern obtained by the operation change detection unit 16 with a reference storage pattern obtained from the normal pattern storage unit 17.
The reference storage pattern to be compared is extracted by the comparison target extraction unit 20 based on a command from the comparison execution control unit, and the comparison result becomes the actual operation pattern given to the abnormal state diagnosis processing unit 21 and the above reference. The presence or absence of a mismatch with the correct storage pattern is monitored, and the diagnosis result is provided to the diagnosis result output unit 22 and the comparison execution control unit 19.

そして、該比較実行制御部19は以下の機能を有して構
成されている。
The comparison execution control unit 19 has the following functions.

(1) 先ず上記作動変化検出部16により上記I/O状態
の変化が検出されて上述した制御のステップが移行する
都度、比較対象抽出部20に対し正常パターン記憶部17に
おける対応する監視ステップの記憶パターンを抽出せし
め、比較部18に比較実行指令を与える。
(1) First, every time the change in the I / O state is detected by the operation change detection unit 16 and the above-described control step shifts, the comparison target extraction unit 20 is notified of the corresponding monitoring step in the normal pattern storage unit 17. The storage pattern is extracted, and a comparison execution command is given to the comparison unit 18.

(2) 次に上記異常診断処理部21で作動パターンの不
一致が検出されると、上記比較対象抽出部20に対し上記
正常パターン記憶部17から当該不一致が生じた監視ステ
ップの次のステップの記憶パターンを抽出するよう指令
を与える。そして、この前進したステップでもパターン
不一致のときは、その不一致の都度、所定ステップまで
順次前進指令を与え、パターン一致の有無を前進状態で
チェックせしめる。そして、この前進チェック(以下、
これをバックチェックに対してフォワードチェックとい
う)の結果、パターン一致が得られると、その一致した
ステップを上記正常パターン記憶部17における上記作動
パターンが対応する監視ステップとし、そのステップか
ら上記(1)の機能により作動パターンの監視を継続せ
しめる。
(2) Next, when the abnormality diagnosis processing unit 21 detects a mismatch in the operation pattern, the normal pattern storage unit 17 stores the next step after the monitoring step in which the mismatch occurred in the comparison target extraction unit 20. Give a command to extract the pattern. If the pattern does not match even in the step that has been advanced, a forward command is sequentially given to a predetermined step each time the pattern does not match, and the presence or absence of pattern matching is checked in the forward state. And this progress check (below,
When a pattern match is obtained as a result of the forward check with respect to the back check), the matched step is defined as a monitoring step corresponding to the operation pattern in the normal pattern storage unit 17, and from the step (1) The monitoring of the operation pattern is continued by the function of.

そして、さらに本実施例の場合、上記フォワードチェ
ックの歯止めのために、上記比較対象抽出部20から比較
部18に与えられる基準記憶パターンに上記出力要素のI/
O変化(入力/出力悪化)があるか否か、つまりは出力
変化のあるステップの記憶パターンであるか否かを抽出
する出力変化ステップ抽出部23と上記作動変化検出部16
で得られる作動パターンに同じく出力変化があるか否か
を抽出する変化内容抽出部24とを設けている。
Further, in the case of the present embodiment, in order to stop the forward check, the I / O of the output element is stored in the reference storage pattern given from the comparison target extraction unit 20 to the comparison unit 18.
An output change step extracting unit 23 and an operation change detecting unit 16 for extracting whether or not there is an O change (input / output deterioration), that is, whether or not it is a storage pattern of a step with an output change.
And a change content extraction unit 24 for extracting whether or not there is an output change in the operation pattern obtained in step (1).

すなわち、上記変化ステップ抽出部23は、上記正常パ
ターン記憶部17から抽出されるパターンが出力変化のあ
るステップである場合には、上記比較実行制御部19に対
し上記のフォワードチェックを中止させるフォワードチ
ェック中止指令を与える。これにより、比較実行制御部
19は、パターンが不一致のときは比較対象抽出部20に対
し先に前進せしめたステップを元の監視ステップまで戻
して同期化したのち以後の抽出作業を行なわしめる。
That is, when the pattern extracted from the normal pattern storage unit 17 is a step having an output change, the change step extraction unit 23 causes the comparison execution control unit 19 to stop the forward check. Give a stop command. Thereby, the comparison execution control unit
In step 19, when the patterns do not match, the comparison target extraction unit 20 returns the step advanced earlier to the original monitoring step, synchronizes it, and performs the subsequent extraction work.

一方、変化内容抽出部24は、上記のように監視ステッ
プが元に戻された後に作動パターンに遷移があれば、そ
の遷移におけるI/O変化内容を抽出して比較実行制御部1
9に与える。これにより、比較実行制御部19は、上記I/O
の変化がフォワードチェックを中止した出力変化ステッ
プの出力要素によるものであるとき、比較対象抽出部20
に対し上記出力変化ステップを監視ステップとして抽出
するよう制御指令を与え、以後はこの出力変化ステップ
の次から順次抽出作業を行なわしめる。
On the other hand, if there is a transition in the operation pattern after the monitoring step is returned to the original as described above, the change content extraction unit 24 extracts the I / O change content in the transition and performs the comparison execution control unit 1.
Give to 9. As a result, the comparison execution control unit 19
Is caused by the output element of the output change step in which the forward check is stopped, the comparison target extraction unit 20
, A control command is issued so as to extract the output change step as a monitoring step, and thereafter the extraction operation is performed sequentially from the output change step.

また、上記診断処理部21は、上記出力変化ステップが
監視ステップとして抽出されたときに上記作動パターン
が不一致であれば、その不一致の要素を指摘し、フォワ
ードチェックがされているときはそのチェックの原因と
なった不一致の要素も併せて指摘して診断結果出力部22
に与え、その後に再び作動パターンの遷移があれば上記
指摘をクリア(解除)する。
When the output change step is extracted as a monitoring step, if the operation patterns do not match, the diagnostic processing unit 21 points out the mismatch element, and if a forward check is performed, the diagnostic processing unit 21 checks the element. Diagnosis result output part 22
, And if there is a transition of the operation pattern again, the above indication is cleared (canceled).

従って、上記モニタ装置の制御動作上の流れは例えば
第3図のフローチャートに示すようになる。まず、スタ
ート信号によりモニタを開始し、作動変化検出部16にお
いてI/O状態の変化の有無が判定され、その結果所定の
変化があるYESのときには先の不一致I/Oの判定結果をク
リアした後カウントアップ動作により上記監視ステップ
の番号が1つ前進(カウントアップ)し、更に上記正常
パターン記憶部17から抽出すべき基準となる記憶パター
ンが次スタート信号のものに切り変わる。(ステップS1
〜S3)。そして、実際の作動パターンと抽出された記憶
パターンとの比較により、作動パターンが一致すれば、
上記S1,S2,S3により上記I/O状態の変化(遷移)に応じ
て順次監視ステップが前進し、上記パターンが不一致で
あれば、そのときの監視ステップは出力変化(出力要素
のI/O変化)のあるものであるか否かが判定される(ス
テップS4,S5)。
Accordingly, the flow of the control operation of the monitor device is as shown in the flowchart of FIG. 3, for example. First, monitoring is started by a start signal, and the presence or absence of a change in the I / O state is determined in the operation change detection unit 16, and as a result, when the predetermined change is YES, the determination result of the previous mismatched I / O is cleared. By the subsequent count-up operation, the number of the monitoring step is advanced by one (count-up), and the reference storage pattern to be extracted from the normal pattern storage unit 17 is switched to that of the next start signal. (Step S 1
~S 3). Then, by comparing the actual operation pattern with the extracted storage pattern, if the operation patterns match,
The S 1 sequentially monitoring step is advanced in response to, S 2, S 3 by the I / O state changes (transition), the pattern if a mismatch, the monitoring step change in output (output element at that time It is determined whether or not there is an I / O change (steps S 4 and S 5 ).

出力変化のない監視ステップのとき(NO)は、そのス
テップ番号がフォワードチェックのために順次前進して
その都度、現時点の作動パターンと前進した各ステップ
の記憶パターンとが比較される(ステップS6,S7)。そ
して、このフォワードチェックにより、出力変化のある
監視ステップに至るまでにパターン一致があれば、その
一致したステップを現時点の作動パターンが対応する監
視ステップとして、そのステップから以降の監視を継続
する(S7→S1にリターン)。
When no monitoring step of output change (NO), that each time step number is sequentially advanced to the forward check, and a stored pattern of each step and forward current of the working pattern is compared (step S 6 , S 7 ). As a result of the forward check, if there is a pattern match up to the monitoring step having an output change, the matching step is set as the monitoring step corresponding to the current operation pattern, and monitoring from that step is continued (S7). → Return to S1).

フォワードチェックでパターンの一致がなければ、出
力変化のある監視ステップでの不一致I/Oの要素が指摘
され、フォワードチェックで前進した監視ステップを元
に戻すとともに、この元の監視ステップでの上記フォワ
ードチェックの原因となった不一致I/Oの要素を指摘す
る(ステップS8)。
If there is no pattern match in the forward check, a mismatch I / O element in the monitoring step with output change is pointed out, and the monitoring step advanced in the forward check is restored, and the forward to point out the elements of disagreement I / O that caused the check (step S 8).

次に、ステップS9に進み上記したフォワードチェック
でカウントアップしたステップ番号を元のステップ番号
に戻す。また、その後ステップS10で上記フォワードチ
ェックの原因となった不一致I/Oを参考として指摘す
る。
Next, return the step number counted up a forward check that the process proceeds to step S 9 to the original step number. Also, point out the subsequent disagreement I / O in step S 10 that caused the above-mentioned forward check as a reference.

さらに、ステップS11で変化のあったI/O状態は先のス
テップS5で対象とした制御要素の出力であるか否かを判
定し、YESの場合にはステップS12に進んで当該出力変化
のあるステップ番号までステップ番号をカウントアップ
する一方、NOの場合はステップS12の方に進んで同ステ
ップ番号をカウントダウンする。
Furthermore, there was I / O state of change in the step S 11 determines whether the output of the control elements that target in the preceding step S 5, the output when the result is YES the process proceeds to step S 12 while counting up the step number to step number where the changes in the case of NO count down the same step numbers proceeds towards step S 12.

次に上述した第2図に示す設備における上記モニタ動
作の具体例を説明する。
Next, a specific example of the monitoring operation in the facility shown in FIG. 2 will be described.

〈例1〉 正常パターン記憶部17で記憶されている記憶パターン
の遷移が次の表1であるとき、実験の作動パターンの遷
移が表2である場合。
<Example 1> When the transition of the storage pattern stored in the normal pattern storage unit 17 is as shown in Table 1 below, and the transition of the operation pattern of the experiment is as shown in Table 2.

まず、ステップ(イ)は監視ステップ(1)と一致。
そして、ステップ(ロ)へ移行すると監視ステップは
(2)となる。
First, step (a) coincides with monitoring step (1).
When the process proceeds to step (b), the monitoring step becomes (2).

上記(ロ)と(2)は不一致。この(2)は出力変化
(シリンダ装置の作動)がないステップであるから、フ
ォワードチェックのため1ステップ前進し、(ロ)と
(3)を比較する。
(B) and (2) do not match. Since step (2) is a step in which there is no change in output (operation of the cylinder device), the system advances one step for a forward check, and compares (b) and (3).

上記(ロ)と(3)は不一致。この(3)も出力変化
がないステップであるから、1ステップ前進し、(ロ)
と(4)を比較する。
(B) and (3) do not match. Since step (3) is also a step in which there is no change in output, it advances one step, and (b)
And (4) are compared.

上記(ロ)と(4)は不一致。この(4)は出力変化
ステップであり、不一致I/Oの要素(LS1、シリンダ装
置)を指摘し、変化のあったI/Oはフォワードチェック
の対象とした出力でないのでフォワードチェックを中止
して前進した監視ステップを元の(2)に戻す。参考と
なる不一致I/Oの要素(LS1〜LS3)を指摘する。
(B) and (4) do not match. This (4) is an output change step, which points out the elements of the mismatched I / O (LS1, cylinder device), and stops the forward check because the changed I / O is not the output for which the forward check was performed. The advanced monitoring step is returned to (2). Point out the mismatched I / O elements (LS1 to LS3) that serve as references.

次にステップ(ハ)への遷移(I/O状態に変化)があ
ると、上記不一致の指摘をクリアする。
Next, when there is a transition to step (c) (change in I / O state), the above-mentioned point of inconsistency is cleared.

上記(ハ)への遷移において、変化のあったI/Oの要
素はLS1とシリンダ装置であり、このシリンダ装置は上
記フォワードチェックを中止した出力変化ステップ
(4)の出力要素である。従って、監視ステップをこの
(4)まで前進させて(ハ)と(4)を比較する。
In the transition to the above (c), the changed I / O elements are the LS1 and the cylinder device, and this cylinder device is the output element of the output change step (4) where the forward check is stopped. Therefore, the monitoring step is advanced to this (4) and (c) is compared with (4).

上記(ハ)と(4)は一致。 The above (c) and (4) coincide.

従って、実際の作動パターンの遷移は、単にAND条件
の成立順序が記憶のものと相違していただけであり、設
備の動作としての問題はなく、その停止を招くような誤
診(警報)は出ない。
Therefore, in the actual operation pattern transition, the order in which the AND condition is satisfied is merely different from that in the memory, and there is no problem as the operation of the facility, and no misdiagnosis (alarm) that causes the stoppage occurs. .

また、上述の如く(ハ)への遷移において変化のあっ
たI/Oの要素がフォワードチェックを中止した出力変化
ステップの出力要素であるときに、監視ステップをこの
出力変化ステップに強制的に合わせるようにしたから、
比較すべき作動パターンと記憶パターンとの各々のステ
ップがこの出力要素を基準として合致し、照合のずれが
防止される。
As described above, when the I / O element that has changed in the transition to (c) is the output element of the output change step in which the forward check has been stopped, the monitoring step is forcibly adjusted to this output change step. I did it,
The respective steps of the operation pattern and the storage pattern to be compared are matched based on this output element, thereby preventing misalignment.

なお、上記(ハ)への遷移の場合、元に戻された監視
ステップ(2)からパターンの比較をしていくこともで
きる。この場合、(ハ)と(2)は不一致、フォワード
チェックによる(ハ)と(3)も不一致、次の(ハ)と
(4)とが一致となるから、監視ステップを(4)とす
ることになる。
In the case of the transition to the above (c), the pattern can be compared from the monitoring step (2) returned to the original. In this case, since (c) and (2) do not match, (c) and (3) by forward check also do not match, and the next (c) and (4) match, the monitoring step is (4). Will be.

〈例2〉 記憶パターンの遷移が表3、実際の作動パターンの遷
移が表4である場合。
<Example 2> Table 3 shows the transition of the storage pattern, and Table 4 shows the transition of the actual operation pattern.

(イ)は(1)と一致。 (A) is consistent with (1).

(ロ)は(2)と不一致。(2)は出力変化ステップ
である。不一致I/Oの要素(LS2,LS3,シリンダ装置)を
指摘。
(B) does not agree with (2). (2) is an output change step. Points out mismatched I / O elements (LS2, LS3, cylinder device).

ステップ(ハ)への移行により、上記不一致の指摘を
クリア。(ハ)は(2)と不一致。この不一致I/Oの要
素(LS3,シリンダ装置)を指摘。
By shifting to step (c), the above point of inconsistency was cleared. (C) does not agree with (2). The element of this mismatched I / O (LS3, cylinder device) was pointed out.

ステップ(ニ)への移行により、上記不一致の指摘を
クリア。(ニ)は(2)と一致。
By moving to step (d), the disagreement point was cleared. (D) is consistent with (2).

従って、記憶パターンではAND条件が同時に成立して
いるのに対し、実際の作動パターンは単にAND条件が順
次成立していっただけであり、設備の動作としては問題
はなく、その停止を招くような誤差(警報)はない。
Therefore, in the memory pattern, the AND condition is satisfied at the same time, whereas in the actual operation pattern, the AND condition is simply satisfied sequentially, and there is no problem in the operation of the equipment, and the stoppage is caused. There is no significant error (alarm).

〈例3〉 記憶パターンの遷移が表5、実際の作動パターンの遷
移が表6である場合。
<Example 3> A case where the transition of the storage pattern is Table 5 and the transition of the actual operation pattern is Table 6.

(イ)は(1)と一致。 (A) is consistent with (1).

(ロ)は(2)と不一致。(2)は出力変化ステップ
でないから、フォワードチェックで(ロ)と(3)も出
力変化ステップでないから、フォワードチェックで
(ロ)と(4)を比較。この(ロ)と(4)も不一致。
この(4)は出力変化ステップであるから、不一致I/O
の要素(LS1,LS3,シリンダ装置)を指摘する。そして、
フォワードチェックで前進しただけ監視ステップを戻
し、参考の不一致I/Oの要素(LS1,LS2)を指摘する。次
にステップ(ハ)への移行により、上記不一致の指摘を
クリア。
(B) does not agree with (2). (2) is not an output change step, so (b) and (3) are not output change steps in the forward check, so (b) and (4) are compared in the forward check. (B) and (4) also do not agree.
Since this (4) is the output change step, the mismatch I / O
Point out (LS1, LS3, cylinder device). And
Return the monitoring step only as far as the forward check advances, and point out the reference mismatch I / O elements (LS1, LS2). Next, by moving to step (c), the above point of inconsistency was cleared.

上記(ハ)と(2)を比較すると両者は不一致である
から、上記(ロ)の場合と同様にフォワードチェックを
行なう。つまり、(ハ)と(3)を比較し、両者は不一
致で(3)は出力変化ステップでないから、(ハ)と
(4)を比較する。この(ハ)と(4)は不一致であ
り、(4)は出力変化ステップであるから不一致I/Oの
要素(LS1,シリンダ装置)を指摘して監視ステップを元
の(2)に戻し、参考の不一致I/Oの要素(LS1〜LS3)
を指摘する。そして、次のI/Oの状態の変化がなく設備
は停止であるから、警報が発せられることになる。
When the above (c) and (2) are compared, they do not match. Therefore, a forward check is performed in the same manner as in the above (b). That is, (c) and (3) are compared, and since they do not match and (3) is not an output change step, (c) and (4) are compared. Since (c) and (4) are mismatched, and (4) is the output change step, the element of the mismatched I / O (LS1, cylinder device) is pointed out and the monitoring step is returned to the original (2). Reference mismatch I / O elements (LS1 to LS3)
Point out. Then, since there is no change in the state of the next I / O and the equipment is stopped, an alarm is issued.

従って、本例の場合、診断結果として参考の不一致I/
Oの要素LS1〜LS3が指摘されているが、出力変化ステッ
プでの不一致I/Oの要素にLS2,LS3が含まれていないた
め、このLS2,LS3は作動していることがわかる。そし
て、LS1については上記参考の不一致で指摘され、かつ
出力変化ステップの不一致でも指摘され、かつ出力変化
ステップの不一致でも指摘されており、シリンダ装置の
作動がないのはLS1に問題があると診断することがで
き、このLS1とその作動のための位置決めシリンダ装置
8を点検すればよいことになる。
Therefore, in the case of this example, the reference mismatch I /
Although the elements LS1 to LS3 of O are pointed out, the elements LS2 and LS3 are not included in the elements of the mismatched I / O in the output change step, so that it is understood that the LS2 and LS3 are operating. As for LS1, it is pointed out by the above-mentioned reference inconsistency, and it is also pointed out that the output change step is inconsistent, and it is also pointed out that the output change step is inconsistent. It is only necessary to check the LS1 and the positioning cylinder device 8 for its operation.

なお、フォワードチェックを行なうステップの数は、
原則的にはシーケンスプログラムに書かれたAND条件の
数(最大数=1)としてよいが、上記実施例の如くフォ
ワードチェックの開始ステップから出力変化がみられる
ステップまでのチェックとしてもよい。すなわち、これ
により、AND条件の成立で出力変化がある場合、フォワ
ードチェック開始ステップまでにAND条件のいくつかが
既に成立するステップがある場合に、余分なフォワード
チェックをする必要がなくなり、モニタの暴走が防止さ
れるとともに、AND条件のいくつかが成立し消滅を繰り
返す場合にも対応できることになる。
The number of steps to perform forward check is
In principle, the number of AND conditions written in the sequence program may be the number (maximum number = 1). However, as in the above-described embodiment, the check may be performed from the start step of the forward check to the step at which the output changes. In other words, this eliminates the need for an extra forward check when there is a step where some of the AND conditions are already satisfied before the forward check start step, when there is a change in output due to the satisfaction of the AND condition, and the monitor runs away. Is prevented, and it is possible to cope with a case where some of the AND conditions are satisfied and the disappearance is repeated.

上記本発明実施例の構成では、先ず作動設備を稼動さ
せて各制御要素の実際の作動パターンを順次モニタして
いき、パターン不一致のときその不一致ステップよりも
先に前進した各ステップに一致する記憶パターンがある
か否かチェックする。一致する記憶パターンがあれば、
その記憶パターンがあるステップを正常パターン記憶部
における現時点の作動パターンが対応する監視ステップ
としてそのステップから作動パターンの監視を継続す
る。
In the configuration of the embodiment of the present invention, first, the operation equipment is operated to sequentially monitor the actual operation pattern of each control element, and when the pattern does not match, the memory corresponding to each step advanced before the mismatch step is stored. Check if there is a pattern. If there is a matching memory pattern,
The step in which the storage pattern is present is set as a monitoring step corresponding to the current operation pattern in the normal pattern storage unit, and the monitoring of the operation pattern is continued from that step.

つまり、この場合は、正常パターン記憶部での記憶で
は複数の要素の作動状態が例えばオン・オフを繰り返し
ながら順次変化しているのに対し、実際には複数が同時
に変化したか、異なる順序で変化して前進ステップに一
致する記憶パターンがあったことになる。従って、AND
条件について考えれば、その成立順序が単に記憶のもの
と相違するだけで、設備としては問題のない作動パター
ンであるから、設備の動作停止を伴うような異常警報を
発することなく、制御状態のモニタを継続することがで
きる。
In other words, in this case, in the storage in the normal pattern storage unit, the operation states of a plurality of elements are sequentially changing while repeatedly turning on and off, for example, but actually, a plurality of elements are changed simultaneously or in a different order. There is a memory pattern that changes and matches the forward step. Therefore, AND
Considering the conditions, since the order of fulfillment is simply different from the stored one and the operation pattern does not cause any problems for the equipment, the monitoring of the control state can be performed without issuing an abnormal alarm that would cause the equipment to stop operating. Can be continued.

また、上記前進した各ステップに作動パターンが一致
する記憶パターンがない場合は、正常パターン記憶部に
おける監視ステップの変更を行なうことなく、次の作動
パターンの遷移を待つことになる。この遷移があれば、
AND条件の成立についてみるとき、単に記憶していたも
のと異なる成立順序であって、設備の方はその状態が変
化し現時点では問題なしとして、先の場合と同様に対応
する監視ステップあるいはその前進ステップの記憶パタ
ーンとの一致・不一致をみることができる。なお、上記
遷移がなければ、異常として当初のパターン不一致の原
因となった要素、あるいはその後の前進ステップでの不
一致の原因となった要素から異常原因の診断を行なうこ
とができる。
If there is no storage pattern that matches the operation pattern in each of the steps that have been advanced, the transition of the next operation pattern is waited without changing the monitoring step in the normal pattern storage unit. With this transition,
When examining the fulfillment of the AND condition, the order of fulfillment is different from the one that was simply memorized, and the equipment changed its state and there was no problem at the moment, and the corresponding monitoring step or the forward step as in the previous case A match / mismatch with the storage pattern of the step can be seen. If the above transition does not occur, the cause of the abnormality can be diagnosed from the element that caused the initial pattern mismatch as an abnormality or the element that caused the mismatch in the subsequent forward step.

従って、上記本発明実施例の構成によれば、先に述べ
たようなプレイバック式のシーケンスモニタ装置におい
て、不一致パターンが得られたとき実際の作動パターを
その不一致ステップから前進した各ステップの記憶パタ
ーンと比較し、パターンが一致すればその一致ステップ
を正常パターン記憶部の監視ステップとして監視を継続
するようにしたから、AND条件の成立によって制御が進
行する場合において、モニタ装置の診断精度を低下させ
ることなく上記AND条件の成立順序不同による誤診断を
防止することができることはもとより自己保持回路によ
って不一致パターンの遷移が多様化した場合にも従来の
ように誤動作を避けることができ、その信頼性の向上が
図れる。
Therefore, according to the configuration of the embodiment of the present invention, in the playback type sequence monitor device as described above, when the mismatch pattern is obtained, the actual operation pattern is stored in each step advanced from the mismatch step. Compared with the pattern, if the pattern matches, the matching step is continued as the monitoring step of the normal pattern storage unit, so that the monitoring accuracy is reduced when the control proceeds due to the satisfaction of the AND condition. In addition to preventing erroneous diagnosis due to the improper order of fulfillment of the AND condition, even if the transition of mismatched patterns is diversified by the self-holding circuit, malfunction can be avoided as in the past, and its reliability Can be improved.

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

図面は本発明の実施例を示し、第1図は同実施例に係る
シーケンスプログラム系のモニタ装置の構成を示すブロ
ック図、第2図は設備の一例を示す斜視図、第3図は同
モニタ装置のフローチャート、第4図は、従来例のシス
テム図である。 1……作動設備 4……シリンダ装置(出力要素) 6,11,12……第1〜第3のリミットスイッチ(検出要
素) 10……ワーク 16……作動状態変化検出部 17……正常パターン記憶部 18……比較部 19……比較実行制御部 21……異常診断処理部
FIG. 1 shows an embodiment of the present invention, FIG. 1 is a block diagram showing a configuration of a sequence program monitoring apparatus according to the embodiment, FIG. 2 is a perspective view showing an example of equipment, and FIG. FIG. 4 is a flowchart of the apparatus, and FIG. 4 is a system diagram of a conventional example. 1… Actuating equipment 4… Cylinder device (output element) 6, 11, 12… First to third limit switch (detection element) 10… Workpiece 16… Operation state change detection unit 17… Normal pattern Storage unit 18 Comparison unit 19 Comparison execution control unit 21 Abnormality diagnosis processing unit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】所定作動設備の制御動作順序を指定したシ
ーケンスプログラムにより当該制御動作の各ステップを
逐次指示通り進めて行くシーケンスプログラム制御系に
おいて、当該シーケンスプログラム制御系を構成する各
種制御要素の作動状態の変化を検出する作動状態変化検
出部と、上記作動設備の正常動作時に於ける上記各種制
御要素の作動状態の変化を表す作動パターンをその作動
パターンが変化する上記各ステップ毎に記憶している正
常パターン記憶部と、上記作動状態変化検出部で検出さ
れる上記各種制御要素の作動パターンとそれら制御要素
の上記正常パターン記憶部で記憶されている当該ステッ
プの正常パターンとを各ステップ毎に比較する作動パタ
ーン比較部と、該作動パターン比較部での比較により上
記正常記憶パターンと作動パターンとの不一致の有無を
監視して制御状態の異常診断を行う異常診断処理部とを
備えてなるシーケンスプログラム制御系のモニタ装置に
おいて、上記異常診断処理部は、当該ステップにおける
作動パターンと正常パターンとが不一致の時には、その
時の上記作動パターンを次のステップ以後の前進した正
常記憶パターンと順次比較してゆき、一致する正常記憶
パターンが得られると、そのステップを上記作動パター
ンが対応する監視ステップとして当該ステップ以後の作
動パターンの監視を継続する一方、正常パターンが得ら
れない場合は、上記監視ステップの変更を行うことなく
作動パターンの遷移の有無を確認し、作動パターンの遷
移が無い場合に異常と判断し、それまでの作動パターン
比較部での比較で作動パターンと正常記憶パターンとが
不一致の原因となった制御要素から異常原因の診断を行
なうように構成されていることを特徴とするシーケンス
プログラム制御系のモニタ装置。
In a sequence program control system which sequentially advances each step of the control operation according to an instruction according to a sequence program designating a control operation sequence of predetermined operation equipment, operation of various control elements constituting the sequence program control system An operation state change detection unit that detects a change in state, and an operation pattern representing a change in the operation state of the various control elements during normal operation of the operation equipment are stored for each of the steps in which the operation pattern changes. The normal pattern storage unit, the operation patterns of the various control elements detected by the operation state change detection unit, and the normal patterns of the corresponding steps stored in the normal pattern storage unit of the control elements for each step. The operation pattern comparison unit to be compared and the normal memory pattern And an abnormality diagnosis processing unit that monitors the presence or absence of a mismatch between the operation pattern and an abnormality diagnosis processing unit that performs an abnormality diagnosis of a control state, wherein the abnormality diagnosis processing unit includes an operation pattern in the step. When the normal pattern does not match, the operation pattern at that time is sequentially compared with the normal storage pattern advanced after the next step, and if a matching normal storage pattern is obtained, the step corresponds to the operation pattern. While the monitoring of the operation pattern after the step is continued as a monitoring step, if a normal pattern is not obtained, the presence or absence of a transition of the operation pattern is checked without changing the monitoring step, and there is no transition of the operation pattern. In this case, it is judged as abnormal, and the operation pattern comparison unit Sequence program control system of the monitoring device, characterized in that the storage pattern is configured to perform a diagnosis of abnormality cause the control element that caused the discrepancy.
JP63106018A 1988-04-27 1988-04-27 Monitor for sequence program control system Expired - Lifetime JP2737878B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63106018A JP2737878B2 (en) 1988-04-27 1988-04-27 Monitor for sequence program control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63106018A JP2737878B2 (en) 1988-04-27 1988-04-27 Monitor for sequence program control system

Publications (2)

Publication Number Publication Date
JPH01276206A JPH01276206A (en) 1989-11-06
JP2737878B2 true JP2737878B2 (en) 1998-04-08

Family

ID=14422916

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63106018A Expired - Lifetime JP2737878B2 (en) 1988-04-27 1988-04-27 Monitor for sequence program control system

Country Status (1)

Country Link
JP (1) JP2737878B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04260902A (en) * 1991-01-24 1992-09-16 Mitsubishi Electric Corp Device for diagnosing failure

Also Published As

Publication number Publication date
JPH01276206A (en) 1989-11-06

Similar Documents

Publication Publication Date Title
CA1231422A (en) Method and apparatus for recovering normality in moving sequence of machinery
EP1625918B1 (en) Programming device for returning robot to waiting position
US4851985A (en) Fault diagnosis system for comparing counts of commanded operating state changes to counts of actual resultant changes
US5937149A (en) System for controlling the automated printing plate change process in printing machines
US6246318B1 (en) Modular safety switching
JP3839295B2 (en) Equipment monitoring device
JPH087601B2 (en) Sequence control system Abnormality recovery device for machinery
EP0389990A3 (en) Breakdown diagnosing method of production line
KR100958686B1 (en) Maintenance guidance display device, maintenance guidance display method, and maintenance guidance display program recording medium
US5742624A (en) Fault detecting apparatus and method
JP2737878B2 (en) Monitor for sequence program control system
JPH0677216B2 (en) Monitor device for sequence program control system
JP3126493B2 (en) Equipment failure diagnosis method
JPS63303407A (en) Monitoring device for sequence program control
JP2642367B2 (en) Monitor for sequence program control system
JPS63311510A (en) Monitor device for sequence program control system
JPH01276205A (en) Monitoring device for sequence program control system
JPH01109412A (en) Monitor for sequence program control system
JP2590108B2 (en) Monitor for sequence program control system
JP3700528B2 (en) Device that displays a ladder circuit when an abnormality occurs in a programmable controller
JPH01274208A (en) Monitoring device for sequence program control system
JPH01274206A (en) Method for grouping sequence program control system monitor
JP3337145B2 (en) Error recovery device for sequence control device
JPS63311509A (en) Monitor device for sequence program control system
JPH02176805A (en) Trouble diagnostic device for input/output control