JP2590108B2 - Monitor for sequence program control system - Google Patents

Monitor for sequence program control system

Info

Publication number
JP2590108B2
JP2590108B2 JP62164660A JP16466087A JP2590108B2 JP 2590108 B2 JP2590108 B2 JP 2590108B2 JP 62164660 A JP62164660 A JP 62164660A JP 16466087 A JP16466087 A JP 16466087A JP 2590108 B2 JP2590108 B2 JP 2590108B2
Authority
JP
Japan
Prior art keywords
pattern
abnormality
unit
monitoring
comparison
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
JP62164660A
Other languages
Japanese (ja)
Other versions
JPS648410A (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.)
Mazda Motor Corp
Original Assignee
Mazda Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mazda Motor Corp filed Critical Mazda Motor Corp
Priority to JP62164660A priority Critical patent/JP2590108B2/en
Publication of JPS648410A publication Critical patent/JPS648410A/en
Application granted granted Critical
Publication of JP2590108B2 publication Critical patent/JP2590108B2/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 is generally known in which a program specifying an operation sequence of equipment to be controlled is formed, and each step of control is sequentially advanced according to the program. Such sequence control is used in an assembly line of machine tools, a machine tool, or the like to automatically perform a next-stage operation according to a previous-stage operation.

しかして、このシーケンス制御において、その制御が
正常に行なわれているか否かを監視する、つまりモニタ
する場合、設備の動作を制御するプログラムの中にこの
モニタのためのプログラムを組込み、異常時に警報を行
なうという考えのものがある。すなわち、このものは例
えばシリンダ装置の前進端と後退端とを検出するリミッ
トスイッチがある場合、この両スイッチが同時にオンす
ることはないから、同時にオンのときに異常信号を出力
する回路を組込み、所謂合理性をチェックする方式であ
る。しかし、この方式では、設備の変更の都度、設備の
動作用とモニタ用の両プログラムを変更する必要があ
り、また、この動作用とモニタ用とで全体のプログラム
容量が肥大化する。
In this sequence control, when monitoring whether or not the control is performed normally, that is, when monitoring, a program for this monitor is incorporated in a program for controlling the operation of the equipment, and an alarm is issued when an abnormality occurs. There is an idea of doing. That is, for example, when there is a limit switch that detects the forward end and the backward end of the cylinder device, since both switches are not turned on at the same time, a circuit that outputs an abnormal signal when both are turned on is incorporated. This is a method of checking the so-called rationality. However, in this method, it is necessary to change both the program for operating the equipment and the program for monitoring each time the equipment is changed, and the total program capacity for the operation and for the monitoring increases.

これに対し、プレイバック式のモニタ装置が知られて
いる。このものは、予め設備を制御に動作させた際のシ
ーケンス制御回路の各構成要素の作動パターンを順次記
憶させておき、設備の実際の稼動時に上記作動パターン
が記憶していたものと一致しているか否かを順次各対応
するステップ毎に照合していき、不一致のとき異常の警
報を発するものである。例えば、特開昭60−238906号公
報には、プレイバック式のモニタ装置において、上記パ
ターンの不一致が連続して生ずるとき異常と判定し、異
常発生前後の作動パターンを記憶して異常原因の解明を
容易にするという考えのものが記載されている。
On the other hand, a playback type monitor device is known. In this device, the operation patterns of the respective components of the sequence control circuit when the equipment is operated for control in advance are sequentially stored, and the operation patterns coincide with those stored in the actual operation of the equipment. Whether they are present or not is sequentially collated for each corresponding step, and when they do not match, an abnormal alarm is issued. For example, Japanese Patent Application Laid-Open No. 60-238906 discloses that in a playback-type monitor device, when the above pattern mismatches occur continuously, it is determined that an abnormality has occurred, and the operation patterns before and after the occurrence of the abnormality are stored to clarify the cause of the abnormality. The idea of facilitating is described.

(発明が解決しようとする課題) ところで、プレイバック式モニタ装置の場合、制御系
の構成要素の1つに異常(第1の異常)が発生したとき
でも設備が停止せずに動作を続行していれば、それが真
の異常か否かはわからないため、設備を停止せしめるま
でには至らない。しかし、上記第1の異常があると、モ
ニタ装置は以後の各ステップにおいても異常を指摘する
結果となり易い。つまり、第1の異常の要素、例えばリ
ミットスイッチがオフのままになったとき、オンが正常
であるステップでは異常と指摘されるし、オフが正常で
あるステップでもこのリミットスイッチが変化すべきと
きにオン・オフの変化をしないことにより、作動パター
ンの推移ステップと記憶パターンのステップとの同期が
狂い、異常が指摘されることになる。
(Problems to be Solved by the Invention) By the way, in the case of the playback-type monitor device, even when an abnormality (a first abnormality) occurs in one of the components of the control system, the equipment continues to operate without stopping. If so, it is not known whether it is a true abnormality or not, so it is not enough to stop the equipment. However, if there is the first abnormality, the monitor apparatus tends to point out the abnormality in each of the subsequent steps. That is, when the first abnormal element, for example, when the limit switch is kept off, it is pointed out that the step is normally on when the limit switch is off, and when the limit switch should be changed even in the step where the off is normal. By not changing the on / off state, the synchronization between the transition step of the operation pattern and the step of the storage pattern is lost, and an abnormality is pointed out.

従って、かかる場合、第2の異常が生じその後に設備
が故障で停止したとき、この第2の異常の発生時点やそ
の内容をモニタすることができず、また、先の第1の異
常が原因で第2の異常が発生している場合、この第1の
異常がどのようにして第の異常の原因となったかもわか
らないことになり、設備が故障で停止している状況から
判断して故障部分を修復しても故障の根本原因が把握さ
れていない状態での修復となり易く、設備の再起動をか
けても再び同じような故障が発生するという問題があ
る。
Therefore, in such a case, when the second abnormality occurs and the facility stops afterwards due to a failure, it is not possible to monitor the time point of occurrence of the second abnormality and its contents, and it is not possible to monitor the first abnormality. In the case where the second abnormality has occurred, it is not known how the first abnormality has caused the first abnormality. Even if the part is repaired, it is easy to perform the repair in a state where the root cause of the failure is not grasped, and there is a problem that the same failure occurs again even if the equipment is restarted.

(課題を解決するための手段) 上記課題を解決するため、本発明の解決手段は、設備
の動作順序を指定したプログラムにより制御の各段階を
逐次進めていくシーケンスプログラム制御系において、
制御系を構成する各要素の作動状態の変化を検出する変
化検出部と、設備の正常動作時における上記各要素の作
動パターンをそのパターンが変化する各ステップ毎に正
常パターンとして記憶している正常パターン記憶部と、
上記変化検出部により検出される各要素の実際の作動パ
ターンと上記正常パターン記憶部の記憶パターンとを比
較する比較部と、該比較部による比較により各要素の作
動パターンにおける異常の有無を各ステップ毎に監視
し、異常があるときその異常要素を指摘する診断処理部
と、該診断処理部で診断された各要素についての異常指
摘の有無を記憶する異常履歴記憶部と、該異常履歴記憶
部に記憶されている異常要素を監視の対象から外させる
とともに、上記記憶パターンとして上記異常要素を外し
た新規の正常パターンを作成し、上記異常要素が指摘さ
れたステップの次のステップから該新規の正常パターン
と上記異常要素を外した作動パターンとを比較すること
で監視を続行する比較実行制御部とを備えたものとす
る。
(Means for Solving the Problems) In order to solve the above problems, a solution of the present invention is a sequence program control system which sequentially advances each stage of control by a program specifying an operation order of equipment,
A change detection unit that detects a change in the operation state of each element constituting the control system; and a normal state that stores the operation pattern of each element during normal operation of the equipment as a normal pattern for each step in which the pattern changes. A pattern storage unit,
A comparison unit that compares the actual operation pattern of each element detected by the change detection unit with the storage pattern of the normal pattern storage unit, and determines whether there is an abnormality in the operation pattern of each element by comparison by the comparison unit. A diagnosis processing unit that monitors each time and indicates an abnormal element when there is an abnormality; an abnormality history storage unit that stores the presence or absence of an abnormality indication for each element diagnosed by the diagnosis processing unit; and an abnormality history storage unit. In addition to removing the abnormal element stored in the monitoring target from the monitoring target, create a new normal pattern from which the abnormal element is removed as the storage pattern, from the step next to the step where the abnormal element is pointed out, the new It is provided with a comparison execution control unit that continues monitoring by comparing the normal pattern with the operation pattern excluding the abnormal element.

(作用) これにより、本発明では、パターンが変化する各ステ
ップ毎に作動パターンと記憶パターンとが比較され、こ
の比較により異常があると、その異常要素が診断処理部
で指摘されるとともに、異常履歴記憶部にその要素の異
常が記憶される。これにより、比較実行制御部は上記異
常要素を監視の対象外とするとともに、異常要素を外し
た新規の正常パターンを作成し、この新規の正常パター
ンと異常要素を外した作動パターンとを比較して監視す
るので、2回目以降の異常要素を特定することができ
る。
(Operation) In this way, in the present invention, the operation pattern and the stored pattern are compared for each step in which the pattern changes, and if an abnormality is found by the comparison, the abnormal element is indicated by the diagnosis processing unit, and The abnormality of the element is stored in the history storage unit. Thereby, the comparison execution control unit excludes the abnormal element from the monitoring target, creates a new normal pattern from which the abnormal element is removed, and compares the new normal pattern with the operation pattern from which the abnormal element is removed. Monitoring, the second and subsequent abnormal elements can be specified.

(従来の効果) 従って、本発明によれば、正常パターンと作動パター
ンとの比較により異常要素がある場合、その要素につい
ては異常の指摘を記憶せしめて以後は監視の対象外とす
るとともに、正常パターンと作動パターンとの双方から
異常要素を順次外してモニタすることにより、第1の異
常が発生しても、第2以降の異常の発生を監視していく
ことができ、モニタ装置の信頼性を高めることができ
る。そして、異常が順次発生して設備が停止するに至っ
た場合、各異常をその最初のものからすべて正確に把握
して設備が停止に至った根本原因を究明することが容易
となり、同じような異常ないしは故障の再発を防止する
ことができる。
Therefore, according to the present invention, according to the present invention, when there is an abnormal element based on a comparison between the normal pattern and the operation pattern, an indication of an abnormality is stored for the element, and the element is excluded from the monitoring target thereafter. By sequentially removing abnormal elements from both the pattern and the operation pattern and monitoring them, even if the first abnormality occurs, the occurrence of the second and subsequent abnormalities can be monitored, and the reliability of the monitoring device is improved. Can be increased. Then, when abnormalities occur sequentially and the equipment stops, it becomes easy to accurately grasp all the abnormalities from the first one and to investigate the root cause of the equipment stoppage, Abnormality or failure can be prevented from recurring.

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

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

同図において、1は動作が制御される設備であり、こ
の設備1の制御系は、設備1の状態を検出する複数の検
出要素(例えばリミットスイッチ)と、ワーク等の加工
や移動を行なわせる出力要素(例えばシリンダ装置)と
を備える。
In the figure, reference numeral 1 denotes equipment whose operation is controlled, and a control system of the equipment 1 causes a plurality of detection elements (for example, limit switches) for detecting a state of the equipment 1 to process and move a work or the like. An output element (for example, a cylinder device).

2は上記各要素の作動状態を表わす信号(IN/OUT)を
入力するI/O状態入力部、3はI/O状態入力部2からの出
力により上記I/O状態の変化、つまり各要素の作動パタ
ーンの変化を検出する変化検出部、4は正常パターン記
憶部である。この正常パターン記憶部4は、設備1に予
め正常な動作を行なわしめ、そのときの各要素の作動パ
ターンをそのパターンが変化する(少なくとも1の要素
のI/O状態が変化する)各ステップ毎に正常パターンと
して記憶せしめたものである。
Reference numeral 2 denotes an I / O state input unit for inputting a signal (IN / OUT) representing an operation state of each element, and 3 denotes a change in the I / O state by an output from the I / O state input unit 2, that is, each element. A change detection unit 4 for detecting a change in the operation pattern of the control unit 4 is a normal pattern storage unit. The normal pattern storage unit 4 causes the equipment 1 to perform a normal operation in advance, and changes the operation pattern of each element at that time for each step in which the pattern changes (I / O state of at least one element changes). Is stored as a normal pattern.

また、5は上記変化検出部3を介してI/O状態入力部
2より得られる各要素の実際の作動パターンと、正常パ
ターン記憶部4から比較対象抽出部6を介して得られる
各要素の記憶パターンとを比較する比較部であり、比較
結果は診断結果部7に与えるようになっている。診断処
理部7は比較結果から各要素の作動パターンにおける異
常(不一致)の有無を各ステップ毎に監視し、異常があ
るときその異常要素を指摘するものであり、診断結果は
診断結果出力部8、異常履歴記録部9および異常履歴記
憶部10に与えられる。
Reference numeral 5 denotes an actual operation pattern of each element obtained from the I / O state input unit 2 via the change detection unit 3 and a value of each element obtained from the normal pattern storage unit 4 via the comparison target extraction unit 6. The comparison unit compares the stored pattern with the stored pattern. The comparison result is provided to the diagnosis result unit 7. The diagnostic processing unit 7 monitors the presence or absence of an abnormality (mismatch) in the operation pattern of each element from each comparison step, and indicates an abnormal element when there is an abnormality. , The abnormality history recording unit 9 and the abnormality history storage unit 10.

診断結果出力部8は各要素についての異常の有無を報
知するものであり、異常履歴記録部9は各要素について
の異常指摘の有無を順次記録するものであって、異常履
歴出力部11において異常履歴を出力できるようになって
いる。また、異常履歴記憶部10は、過去1サイクルにお
ける各要素についての異常指摘の有無を記憶するもので
あり、変化した要素の抽出部12で異常要素についての変
化が抽出されると、その要素の異常記憶をキャンセルす
る。そうして、上記比較および診断の処理は比較実行制
御部13の指令に基づいて行なわれるようになっている。
The diagnosis result output unit 8 notifies the presence or absence of an abnormality of each element. The abnormality history recording unit 9 sequentially records the presence or absence of an abnormality indication for each element. The history can be output. Further, the abnormality history storage unit 10 stores the presence / absence of an abnormality indication for each element in the past one cycle. When a change about an abnormal element is extracted by the changed element extraction unit 12, the abnormality history is stored. Cancel the abnormal memory. Then, the above-described comparison and diagnosis processing is performed based on a command from the comparison execution control unit 13.

すなわち、比較実行制御部13は以下の機能をもつ。 That is, the comparison execution control unit 13 has the following functions.

変化検出部3で要素の変化が検出されると、比較対
象抽出部6に対し監視ステップを更新して次のステップ
の記憶パターンを正常パターン記憶部4から抽出するよ
う指令し、比較部5に実行指令を与える。
When a change in the element is detected by the change detection unit 3, the comparison unit extraction unit 6 is instructed to update the monitoring step and extract the storage pattern of the next step from the normal pattern storage unit 4. Give an execution command.

異常履歴記憶部10で異常が記憶されている要素につ
いては診断処理部7に対し監視の対象外(記憶パターン
との比較において一致か否かの判断はするが、異常指摘
は行なわない)とするよう指令を与える。
The element in which the abnormality is stored in the abnormality history storage unit 10 is not monitored by the diagnosis processing unit 7 (it is determined whether or not there is a match in comparison with the storage pattern, but no abnormality is indicated). Instructions.

先に監視の対象外とした異常要素が変化すべき監視
ステップにおいて、作動パターンが当該ステップの記憶
パターンと不一致のとき、この作動パターンを次のステ
ップの記憶パターンと比較せしめ、パターンが一致する
ときこのステップから監視を続行せしめる。
In the monitoring step in which the abnormal element which has been excluded from the monitoring first should be changed, when the operation pattern does not match the storage pattern of the step, this operation pattern is compared with the storage pattern of the next step, and when the pattern matches. Monitoring will continue from this step.

先に監視の対象外とした異常要素が変化して異常履
歴記憶部10での記憶がキャンセルされた場合、この要素
を監視の対象に含め、そのときのみ監視ステップの更新
並びに比較、診断を中止する。
If the abnormal element that was previously excluded from the monitoring target changes and the storage in the abnormality history storage unit 10 is canceled, this element is included in the monitoring target, and the updating of the monitoring step, comparison, and diagnosis are stopped only at that time. I do.

なお、上記において、更新された監視ステップが先
に監視対象外とした異常要素の変化のあるべきステップ
か否かは、記憶パターンとの比較においてこの異常要素
に関する診断に一致・不一致の変化があるか否かで検出
することができる。つまり、異常要素は基本的にはその
異常のために変化しないから、更新されたステップにお
いて一致から不一致へ、あるいは不一致から一致へと診
断が変化したということは記憶パターン側ではこの異常
要素が変化しているということがわかる。
In the above, whether or not the updated monitoring step should be a step in which the abnormal element previously excluded from the monitoring target should be changed depends on whether there is a match / mismatch in the diagnosis related to the abnormal element in comparison with the storage pattern. Can be detected. In other words, since the abnormal element basically does not change due to the abnormality, the fact that the diagnosis has changed from a match to a mismatch or from a mismatch to a match in the updated step means that the abnormal element changes on the memory pattern side. You can see that it is doing.

上記制御系のアルゴリズムの流れは第2図に示すとお
りである。
The flow of the algorithm of the control system is as shown in FIG.

まず、プレイバック式のモニタが開始され、各要素の
I/O状態に変化があるか否かが変化検出部3でみられる
(S1)。変化があれば、その異常要素は過去1サイクル
で異常指摘があったか否かが異常履歴記憶部10で判断さ
れ、否であれば比較対象抽出部6で抽出すべき記憶パタ
ーンのステップが更新(カウントアップ)される(S2,S
3)。
First, the playback type monitor is started, and the
Whether or not there is a change in the I / O state is seen by the change detection unit 3 (S1). If there is a change, the abnormality history storage unit 10 determines whether or not the abnormal element has been pointed out in the past one cycle, and if not, the storage pattern step to be extracted by the comparison target extraction unit 6 is updated (counted). Up) (S2, S
3).

そして、更新された監視ステップが過去1サイクルで
異常指摘を受けている要素が変化すべきステップか否か
がみられ、否であれば、通常のプレイバック式のモニタ
により、作動パターンと対応する記憶パターンとの比較
から、異常の有無がみられ、異常があれば、その異常要
素およびその内容を指摘して記録するとともに、異常要
素に対応してプラグを立て監視対象から外すことになる
(S4,S5)。
Then, it is determined whether or not the updated monitoring step is a step in which the element for which an abnormality has been pointed out in the past one cycle should be changed. If not, the normal playback type monitor monitors the operation pattern and the corresponding storage pattern. In comparison with the above, it is found that there is an abnormality. If there is an abnormality, the abnormal element and its contents are pointed out and recorded, and a plug is set up corresponding to the abnormal element and removed from the monitoring target (S4, S5).

しかして、上述の如く過去1サイクルに異常指摘があ
る要素が存在する場合、上記S1で変化のあったものがそ
の異常要素であれば、異常原因が何らかの要因で除かれ
ることによって変化し正常になったものとして、先のフ
ラグをリセットし、この要素を監視対象に含めることに
なる(S6)。また、上記S4において、異常指摘の要素が
変化すべきステップであると判断されると、当ステップ
と次ステップの各記憶パターンを比較の対象とし、一致
する方を監視ステップとすることになる(S7)。
However, if there is an element that indicates an abnormality in the past one cycle as described above, and if the element that has changed in S1 is the abnormal element, the cause of the abnormality is removed by some factor and changes to normal. As a result, the previous flag is reset, and this element is included in the monitoring target (S6). If it is determined in step S4 that the element indicated by the abnormality is a step that should be changed, the storage patterns of this step and the next step are set as comparison targets, and the one that matches is set as a monitoring step ( S7).

次に、設備の具体例に基いてモニタの態様を説明す
る。
Next, the mode of the monitor will be described based on a specific example of the equipment.

第3図には上記設備の具体例が示されている。すなわ
ち、このものは、ワークWを準備ステーション14から送
り手段(SOL1)15によりモータ(M)16によって駆動さ
れるコンベヤ17へ送り、このコンベヤ17により加工ステ
ーション18へ送られたワークWを加工手段(SOL2)19に
よって加工して取り出すものである。上記準備ステーシ
ョン14、コンベヤ17の始点と中間点、加工ステーション
18にはそれぞれワークWを検出するリミットスイッチ
(LS1〜LS4)21〜24が設けられ、加工手段19にはその後
退端と前進端を検出するリミットスイッチ(LS5,SL6)2
5,26が設けられている。また、加工ステーション18の近
傍には安全マット27が敷設され、作業者が乗ると設備停
止信号を出力する安全マットスイッチ28が設けられてい
る。
FIG. 3 shows a specific example of the above equipment. That is, the work W is sent from the preparation station 14 to the conveyor 17 driven by the motor (M) 16 by the feeding means (SOL1) 15 and the work W sent to the processing station 18 by the conveyor 17 is processed by the processing means. (SOL2) Processed by 19 and taken out. Preparation station 14, starting point and intermediate point of conveyor 17, machining station
18 are provided with limit switches (LS1 to LS4) 21 to 24 for detecting the work W, and the processing means 19 are provided with limit switches (LS5, SL6) 2 for detecting the backward and forward ends.
5,26 are provided. In addition, a safety mat 27 is laid near the processing station 18, and a safety mat switch 28 that outputs a facility stop signal when an operator gets on the vehicle is provided.

上記設備の制御回路は第4図に示されている。 The control circuit of the above equipment is shown in FIG.

自動運転釦30を押すとリレー手段31a〜31cが作動し、
自動切換スイッチ32、安全マットスイッチ28、停止スイ
ッチ33が作動しない限り、通電が保持される。ワークW
が準備ステーション14にあってコンベヤ17および加工ス
テーション18にはなく加工手段19が後退端のとき(LS1
とLS5はオン、LS2〜LS4はオフ)、送り手段15がリレー
手段15a,15bの作動により作動してワークWをコンベヤ1
7へ送る。
Pressing the automatic operation button 30 activates the relay means 31a to 31c,
As long as the automatic changeover switch 32, the safety mat switch 28, and the stop switch 33 do not operate, energization is maintained. Work W
Is in the preparation station 14 and not in the conveyor 17 and the processing station 18 and the processing means 19 is at the retracted end (LS1
And LS5 are on, and LS2 to LS4 are off), the feed means 15 is operated by the operation of the relay means 15a and 15b to transfer the workpiece W to the conveyor 1.
Send to 7.

コンベヤ17は、ワークWがその上にあって加工ステー
ション18にはないとき(LS2またはLS3はオン、LS4はオ
フ)、リレー手段16a,16bの作動によりモータ16が作動
してワークWを加工ステーション18へ送る。加工手段19
は、前進端にはなく(LS6がオフ)、ワークWが加工ス
テーション18にあり(LS4がオン)、かつ後退用のリレ
ー手段19cが作動していないとき、前進用リレー手段19
d,19eの作動により前進してワークWに加工を施し、前
進端にくると(LS6がオン)、後退端検出用リミットス
イッチ(LS5)がオフで前進用リレー手段19fが作動して
いないので、後退用リレー手段19a,19bが作動して後退
する。
When the work W is on it and not at the processing station 18 (LS2 or LS3 is on, LS4 is off), the motor 16 is operated by the operation of the relay means 16a and 16b to transfer the work W to the processing station. Send to 18. Processing means 19
Is not at the forward end (LS6 is off), the workpiece W is at the processing station 18 (LS4 is on), and when the retreat relay means 19c is not operated, the forward relay means 19
When the workpiece W is advanced by the operation of d and 19e to process the workpiece W and reaches the forward end (LS6 is ON), the limit switch for detecting the backward end (LS5) is OFF and the forward relay means 19f is not operated. Then, the retreat relay means 19a, 19b operate to retreat.

上記設備について正常パターン記憶部4に記憶された
パターンは第1表のとおりである。
The patterns stored in the normal pattern storage unit 4 for the above facilities are as shown in Table 1.

ワークWが準備ステーション14にあってコンベヤ17お
よび加工ステーション18にはない状態で自動運転釦30を
押し、送り手段15が作動した状態(ステップ(1))で
モニタをスタートさせたとき、ワークWが準備ステーシ
ョン14から送り出されることにより、LS1が(1→0)
と変化すると、そのときの作動パターンがステップ
(2)の記憶パターンと比較される。この両パターンは
一致しているから「正常」と判断され、次にLS2が(0
→1)と変化し、SOL1が(1→0)と変化すると、ステ
ップ(3)の記憶パターンと比較される。
When the automatic operation button 30 is pressed in a state where the work W is in the preparation station 14 but not in the conveyor 17 and the processing station 18 and the monitor is started in a state where the feeding means 15 is operated (step (1)), the work W Is sent out from the preparation station 14, and LS1 becomes (1 → 0)
Is changed, the operation pattern at that time is compared with the storage pattern of step (2). Since these two patterns match, it is determined to be “normal”, and then LS2 is set to (0
When the SOL1 changes to (1 → 0), it is compared with the storage pattern of step (3).

以下、上述のようにして作動パターンが変化する都
度、更新されたステップの記憶パターンと比較され、作
動パターンが正常か否かが判断されるが、例えば、ステ
ップ(4)の状態において、LS3が故障しオン〈1〉に
なると、作動パターンは第2表の(イ)のようになる。
この場合、LS3の変化(0→1)が早すぎるとして異常
が診断されると、LS3はその異常が記憶されるととも
に、次から監視対象外とされ、監視ステップの変更も行
なわれない。
Hereinafter, each time the operation pattern changes as described above, it is compared with the updated storage pattern of the step to determine whether the operation pattern is normal. For example, in the state of step (4), LS3 When a failure occurs and the switch is turned on <1>, the operation pattern is as shown in (a) of Table 2.
In this case, if the abnormality is diagnosed as the change (0 → 1) of the LS3 is too fast, the abnormality is stored in the LS3, and the LS3 is excluded from the monitoring target from then on, and the monitoring step is not changed.

しかして、上記LS3の異常は設備の停止を直接招くも
のでないから、作動パターンは第2表に示す如く(イ)
→(ロ)→(ハ)→……と推移していく。
Since the abnormality of LS3 does not directly stop the equipment, the operation pattern is as shown in Table 2 (a).
→ (b) → (c) → ...

すなわち、LS1の変化(0→1)があって作動パター
ンが(イ)→(ロ)と推移し、この作動パターン(ロ)
と、更新された監視ステップ(5)の記憶パターンとが
比較される。両パターンはLS3を除いて一致し異常の診
断はされない。
That is, there is a change (0 → 1) in LS1, and the operation pattern changes from (A) to (B), and this operation pattern (B)
Is compared with the updated storage pattern of the monitoring step (5). Both patterns are identical except for LS3, and no abnormality is diagnosed.

次に、監視ステップ(5)→(6)→(7)の更新
は、LS3の変化(0→1→0)で行なわれるべきである
ものの、実際にはLS3は異常で〈1〉に固定されたまま
であるから、作動パターン(ロ)はコンベヤ17から加工
ステーション18へのワークWの移載によってLS4が変化
(0→1)し、作動パターン(ハ)となる。
Next, the updating of the monitoring steps (5) → (6) → (7) should be performed by the change of LS3 (0 → 1 → 0), but in reality LS3 is abnormal and fixed to <1> Since the operation pattern (B) remains, the LS4 changes (0 → 1) due to the transfer of the work W from the conveyor 17 to the processing station 18, and becomes the operation pattern (C).

上記LS4の変化により、作動パターン(ハ)は更新さ
れた監視ステップ(6)の記憶パターンと比較される
が、両者はLS4とモータMにおいて不一致である。この
場合、監視ステップ(6)は先に監視対象外とされた異
常要素LS3が変化すべきステップであるから、作動パタ
ーン(ハ)は次の監視ステップ(7)の記憶パターンと
比較されるが、両者はLS4とモータMにおいて不一致で
ある。この場合も監視ステップ(7)は異常要素LS3が
変化すべきステップであるから、作動パターン(ハ)は
次の監視ステップ(8)の記憶パターンと比較される。
両者は一致するから、作動パターン(ハ)が対応する監
視ステップは(8)とされ、異常診断はされない。
Due to the change in the LS4, the operation pattern (c) is compared with the updated storage pattern in the monitoring step (6), but they do not match in the LS4 and the motor M. In this case, since the monitoring step (6) is a step in which the abnormal element LS3 previously excluded from the monitoring target should be changed, the operation pattern (c) is compared with the storage pattern of the next monitoring step (7). , And LS4 and motor M do not match. Also in this case, since the monitoring step (7) is a step in which the abnormal element LS3 should change, the operation pattern (c) is compared with the storage pattern of the next monitoring step (8).
Since both match, the monitoring step corresponding to the operation pattern (c) is (8), and no abnormality diagnosis is performed.

次に、LS5が変化(1→0)して作動パターン(ニ)
となり、更新された監視ステップ(9)の記憶パターン
と比較され、両パターンは一致する。
Next, LS5 changes (1 → 0) and the operation pattern (d)
Are compared with the updated storage pattern of the monitoring step (9), and the two patterns match.

そして、加工されたワークWが搬出されてLS4が(1
→0)の変化をするが、異常要素LS3が〈1〉のままで
あるため、モータMが同時に変化(0→1)し、作動パ
ターンは(ホ)となる。
Then, the processed work W is carried out, and LS4 (1)
(0), but since the abnormal element LS3 remains <1>, the motor M simultaneously changes (0 → 1), and the operation pattern becomes (E).

従って、作動パターン(ホ)は更新された監視ステッ
プ(10)の記憶パターンと比較されるが、両者はモータ
Mにおいて不一致であり、このモータMの異常(第2の
異常)が記憶され、次から監視対象外とされる。
Therefore, the operation pattern (e) is compared with the updated storage pattern of the monitoring step (10). However, the two do not match in the motor M, and the abnormality (second abnormality) of the motor M is stored. Is excluded from monitoring.

次にLS6が(0→1→0)と変化することにより作動
パターンが(ホ)→(ヘ)→(ト)と推移し、監視ステ
ップ(11),(12)の各記憶パターンと順次比較される
が、不一致はないので異常診断はされない。
Next, when LS6 changes from (0 → 1 → 0), the operation pattern changes from (e) to (f) → (g), and is sequentially compared with each storage pattern of the monitoring steps (11) and (12). However, no abnormality is diagnosed because there is no discrepancy.

しかして、次にLS5が変化(0→1)するが、異常要
素LS3が〈1〉のままであるため、送り手段15は作動せ
ず、設備は作動パターン(チ)の状態で止まる。一方、
モニタ装置は作動パターン(チ)と監視ステップ(1)
の記憶パターンとの比較によりSOL1の異常(第3の異
常)を指摘することになる。
Then, LS5 changes next (0 → 1), but since the abnormal element LS3 remains <1>, the feeding means 15 does not operate, and the equipment stops in the state of the operation pattern (H). on the other hand,
The monitoring device operates (h) and the monitoring step (1)
By comparing with the memory pattern of the above, an abnormality of SOL1 (third abnormality) will be pointed out.

この場合、設備はコンベヤ17が作動を継続し且つ送り
手段15がワークWをコンベヤ17に送らないという状況に
あるが、この状況のみからでは設備がワークに対する作
業を何故できなくなったのかがわからない。
In this case, the equipment is in a situation where the conveyor 17 continues to operate and the feeding means 15 does not send the work W to the conveyor 17, but it is not clear from this situation alone why the equipment could not work on the work.

従って、モニタ装置が有効に作動していなければ、実
質的にはすべての要素の異常の有無を点検する必要が生
ずるが、本実施例の場合、第1〜第3の各異常が記憶さ
れているため、それから上記状況に至った理由を知るこ
とができる。
Therefore, if the monitoring device is not operating effectively, it is necessary to check substantially all the elements for abnormalities. In this embodiment, however, the first to third abnormalities are stored. Therefore, it is possible to know the reason for the above situation.

すなわち、第1の異常はLS3が〈1〉のままになって
いるというものであるから、LS3が〈1〉という条件
と、加工ステーション18にワークWがなくLS4が〈0〉
という条件とがあって、第2の異常(コンベヤ17が作動
したまま)が生じていることを理解することができ、ま
た、第3の異常(送り手段15が作動していない)もLS3
が〈1〉という第1の異常によるものであることを理解
することができる。
That is, since the first abnormality is that LS3 remains at <1>, the condition that LS3 is <1> and the condition that LS3 is <1> and there is no work W in the processing station 18 and LS4 is <0>
It can be understood that the second abnormality (the conveyor 17 is still operating) has occurred, and the third abnormality (the feeding means 15 is not operating) is also LS3.
Is caused by the first abnormality <1>.

よって、設備がワークWに対する作業を停止した根本
原因はLS3の異常であるから、この異常を解消すればよ
いということになる。
Therefore, the root cause of the stop of the work on the work W by the equipment is the abnormality of the LS3, and this abnormality should be resolved.

なお、作動パターンにおける異常は、記憶パターンと
の比較による判定、要素の変化が予定の時に行なわれて
いるか否かによる判定など種々の判定手法を用いて指摘
することができる。
An abnormality in the operation pattern can be pointed out by using various determination methods such as a determination based on comparison with a stored pattern and a determination based on whether or not a change in an element is performed at a scheduled time.

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

図面は本発明の実施例を示し、第1図はモニタ装置の構
成を示すブロック図、第2図はモニタ開始制御の流れを
示すフロー図、第3図は設備の一例を示す平面図、第4
図は同設備のシーケンス制御回路図である。 1……設備、2……I/O状態入力部、3……変化検出
部、4……正常パターン記憶部、5……比較部、7……
診断処理部、10……異常履歴記憶部、13……比較実行制
御部。
Drawings show an embodiment of the present invention, FIG. 1 is a block diagram showing a configuration of a monitor device, FIG. 2 is a flowchart showing a flow of monitor start control, FIG. 3 is a plan view showing an example of equipment, FIG. 4
The figure is a sequence control circuit diagram of the same equipment. 1 ... Equipment 2 ... I / O state input unit 3 ... Change detection unit 4 ... Normal pattern storage unit 5 ... Comparison unit 7
Diagnosis processing unit, 10... Abnormality history storage unit, 13... Comparison execution control unit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】設備の動作順序を指定したプログラムによ
り制御の各段階を逐次進めていくシーケンスプログラム
制御系において、 制御系を構成する各要素の作動状態の変化を検出する変
化検出部と、 設備の正常動作時における上記各要素の作動パターンを
そのパターンが変化する各ステップ毎に正常パターンと
して記憶している正常パターン記憶部と、 上記変化検出部により検出される各要素の実際の作動パ
ターンと上記正常パターン記憶部の記憶パターンとを比
較する比較部と、 該比較部による比較により各要素の作動パターンにおけ
る異常の有無を各ステップ毎に監視し、異常があるとき
その異常要素を指摘する診断処理部と、 該診断処理部で診断された各要素についての異常指摘の
有無を記憶する異常履歴記憶部と、 該異常履歴記憶部に記憶されている異常要素を監視の対
象から外させるとともに、上記記憶パターンとして上記
異常要素を外した新規の正常パターンを作成し、上記異
常要素が指摘されたステップの次のステップから該新規
の正常パターンと上記異常要素を外した作動パターンと
を比較することで監視を続行する比較実行制御部と を備えたことを特徴とするシーケンスプログラム制御系
のモニタ装置。
1. A sequence program control system for sequentially proceeding each stage of control by a program specifying an operation sequence of equipment, a change detection unit for detecting a change in an operation state of each element constituting the control system, A normal pattern storage unit that stores an operation pattern of each of the above-described elements as a normal pattern for each step in which the pattern changes, and an actual operation pattern of each of the elements detected by the change detection unit. A comparison unit for comparing the storage pattern of the normal pattern storage unit with the storage unit; and a diagnosis for monitoring the presence / absence of an abnormality in the operation pattern of each element for each step by comparison by the comparison unit, and pointing out the abnormal element when there is an abnormality. A processing unit; an abnormality history storage unit configured to store presence / absence of an abnormality indication for each element diagnosed by the diagnosis processing unit; The abnormal element stored in the section is excluded from the monitoring target, and a new normal pattern in which the abnormal element is removed is created as the storage pattern. And a comparison execution control unit that continues monitoring by comparing the normal pattern with the operation pattern excluding the abnormal element.
JP62164660A 1987-06-30 1987-06-30 Monitor for sequence program control system Expired - Lifetime JP2590108B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62164660A JP2590108B2 (en) 1987-06-30 1987-06-30 Monitor for sequence program control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62164660A JP2590108B2 (en) 1987-06-30 1987-06-30 Monitor for sequence program control system

Publications (2)

Publication Number Publication Date
JPS648410A JPS648410A (en) 1989-01-12
JP2590108B2 true JP2590108B2 (en) 1997-03-12

Family

ID=15797390

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62164660A Expired - Lifetime JP2590108B2 (en) 1987-06-30 1987-06-30 Monitor for sequence program control system

Country Status (1)

Country Link
JP (1) JP2590108B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2539264B2 (en) * 1989-04-07 1996-10-02 三菱電機株式会社 Sequence controller

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5526723B2 (en) * 1974-02-05 1980-07-15
JPS53148679A (en) * 1977-05-30 1978-12-25 Toshiba Corp Sequncing control system for plant
JPS6275719A (en) * 1985-09-30 1987-04-07 Nippon Atom Ind Group Co Ltd Generation method for abnormal time disposal

Also Published As

Publication number Publication date
JPS648410A (en) 1989-01-12

Similar Documents

Publication Publication Date Title
US4638227A (en) Method and apparatus for recovering normality in moving sequence of machinery
US7698600B2 (en) Programmable controller
JPS6322252A (en) Programmable transfer machine
JPS63111026A (en) Injection molding machine capable of making remote start and stop
EP0707250A1 (en) Failure detection apparatus and method
JPH087601B2 (en) Sequence control system Abnormality recovery device for machinery
JP2590108B2 (en) Monitor for sequence program control system
JP2008287665A (en) Product history management system and product history management method
JPH06314117A (en) Method and device for fault diagnosis
JPH0677216B2 (en) Monitor device for sequence program control system
WO2006011579A1 (en) Programmable controller
JPS63303407A (en) Monitoring device for sequence program control
JP3134428B2 (en) Failure diagnosis method and device
WO1994021416A1 (en) Method and apparatus for controlling arc welding robot
JPH10296592A (en) Erroneous working preventive device
JPS6288540A (en) Machining tool processing device in fms
JPH083749B2 (en) Monitor device for sequence program control system
JPS63311510A (en) Monitor device for sequence program control system
JP2642367B2 (en) Monitor for sequence program control system
JP3337145B2 (en) Error recovery device for sequence control device
JPS63311509A (en) Monitor device for sequence program control system
JP2737878B2 (en) Monitor for sequence program control system
JPS62157762A (en) Equipment diagnosing device
EP4108383A1 (en) Method and apparatus for computer-implemented supervising a tightening process of a bolt using a tightening system
JP2664428B2 (en) Alarm history management device for work loading / unloading device