JPH083749B2 - Monitor device for sequence program control system - Google Patents

Monitor device for sequence program control system

Info

Publication number
JPH083749B2
JPH083749B2 JP62266925A JP26692587A JPH083749B2 JP H083749 B2 JPH083749 B2 JP H083749B2 JP 62266925 A JP62266925 A JP 62266925A JP 26692587 A JP26692587 A JP 26692587A JP H083749 B2 JPH083749 B2 JP H083749B2
Authority
JP
Japan
Prior art keywords
comparison
abnormal
basic pattern
change
operating state
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
JP62266925A
Other languages
Japanese (ja)
Other versions
JPH01109412A (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 JP62266925A priority Critical patent/JPH083749B2/en
Publication of JPH01109412A publication Critical patent/JPH01109412A/en
Publication of JPH083749B2 publication Critical patent/JPH083749B2/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

【発明の詳細な説明】 産業上の利用分野 本発明は、シーケンスプログラム制御系のモニタ装置
に関するものであり、さらに詳細には、シーケンスプロ
グラム制御系のプレイバック式モニタ装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a monitor device of a sequence program control system, and more particularly to a playback monitor device of a sequence program control system.

先行技術 制御すべき設備の動作順序を指定したプログラムにし
たがって、制御の各段階を順次進めてゆくようにしたシ
ーケンスプログラム制御は、機械器具の組立ラインや工
作機械などにおいて、前段階の動作に応じて次段階の動
作を自動的におこなわせるために、広く利用されてい
る。
Prior art Sequence program control, in which each step of control is sequentially advanced according to a program that specifies the operation sequence of the equipment to be controlled, corresponds to the operation of the previous step in the assembly line of machine tools and machine tools. It is widely used to automatically perform the next-stage operation.

シーケンスプログラム制御を用いて、各種の制御をお
こなう場合、制御が正常になされているか否かをモニタ
することが必要であり、そのためのモニタ装置として、
いわゆるプレイバック式のモニタ装置が知られている
(特開昭60-238906号公報など)。これは、設備を正常
に動作させた際のシーケンス制御回路の各構成要素の作
動パターン(基本パターン)を、あらかじめ順次記憶さ
せておき、設備の実際の稼動時に、作動パターンが記憶
していたものと一致しているか否かを、順次対応するス
テップ毎に照合し、不一致のときに、異常発生の警報を
発するものである。
When performing various kinds of control using sequence program control, it is necessary to monitor whether or not the control is normally performed.
A so-called playback type monitor device is known (Japanese Patent Laid-Open No. 60-238906, etc.). This is one in which the operation patterns (basic patterns) of the components of the sequence control circuit when the equipment is operating normally are sequentially stored in advance, and the operation patterns are stored when the equipment is actually operated. Whether or not is matched with each other is sequentially checked for each corresponding step, and when they do not match, an alarm of occurrence of abnormality is issued.

発明の解決しようとする問題点 しかしながら、このようなプレイバック式のモニタ装
置においては、1つの要素に異常が発生した場合には、
その後のモニタは不可能になってしまうという問題があ
った。すなわち、1つの要素に異常が発生し、その後、
その異常が回復したときには、その要素の変化は、本来
生ずるべきでないステップにおいて生ずるため、正常な
要素が異常と判定されることになったり、また、1つの
要素に異常が発生することにより、マッチングすべき基
本パターンのステップがずれてしまい、正常パターンと
のマッチングが図れなくなり、その後のモニタは不可能
になってしまう。したがって、1つの要素に異常が発生
すると、その後、設備が正常に稼動しているときでも、
作業を中断して、異常箇所を検査する必要が生じ、異常
がモニタ装置の誤動作による場合や異常がただちに回復
した場合など、いたずらに設備の稼動効率を低下させる
ことになるという問題があった。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention However, in such a playback type monitor device, when an abnormality occurs in one element,
After that, there was a problem that monitoring became impossible. That is, an abnormality occurs in one element, and then
When the abnormality is recovered, the change of the element occurs in a step that should not occur, so that a normal element is determined to be abnormal, or an abnormality occurs in one element, and thus matching is performed. The steps of the basic pattern to be shifted are deviated, the matching with the normal pattern cannot be achieved, and the subsequent monitoring becomes impossible. Therefore, if an abnormality occurs in one element, even if the equipment is operating normally thereafter,
There is a problem in that it is necessary to interrupt the work and inspect the abnormal portion, and if the abnormality is caused by a malfunction of the monitor device or the abnormality is immediately recovered, the operating efficiency of the equipment is unnecessarily reduced.

発明の目的 本発明は、ある要素に異常信号が発生しても、モニタ
を続行することのできるシーケンスプログラム制御系の
モニタ装置を提供することを目的とするものである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a monitor device of a sequence program control system capable of continuing monitoring even if an abnormal signal occurs in a certain element.

発明の構成 本発明のかかる目的は、シーケンスプログラム制御系
を構成する各要素の作動状態の変化を検出する作動状態
変化検出手段と、各要素の作動パターンと基本パターン
とを比較し、異常の発生の有無を判定する比較判定手段
と、異常の発生した異常要素を、正常に復帰しないかぎ
り、モニタの対象からはずす比較対象チェック手段と、
前記異常要素の作動状態に変化が生じたステップにおい
ては、他の要素の作動状態が同時に変化しないときは、
つぎのステップの基本パターンを前記比較判定手段に入
力し、他の要素の作動状態が同時に変化するときには、
そのステップの基本パターンを前記比較判定手段に入力
する比較対象抽出手段を設けることによって達成され
る。
Configuration of the invention An object of the present invention is to compare an operating state change detecting means for detecting a change in the operating state of each element constituting a sequence program control system with an operating pattern of each element and a basic pattern to generate an abnormality. Comparison determining means for determining the presence or absence of the abnormal element, and comparison target checking means for removing the abnormal element in which the abnormality has occurred from the target of the monitor unless it is returned to normal,
In the step where the operating state of the abnormal element has changed, when the operating states of other elements do not change at the same time,
When the basic pattern of the next step is input to the comparison / determination means, and the operating states of other elements simultaneously change,
This is achieved by providing comparison target extraction means for inputting the basic pattern of the step to the comparison determination means.

本発明において、前記各手段は、物理的に独立した手
段であることを要せず、かかる各機能をモニタ装置が有
し、全体として前記機能が実現できるものであればよ
い。
In the present invention, each of the above-mentioned means does not need to be a physically independent means, and it is sufficient that the monitor device has such each function and can realize the above-mentioned function as a whole.

実施例 以下、添付図面に基づき、本発明の実施例について詳
細に説明を加える。
Example Hereinafter, an example of the present invention will be described in detail with reference to the accompanying drawings.

第1図は、本発明の実施例にかかるシーケンスプログ
ラム制御系のモニタ装置により、モニタされる設備の一
例を示す概略図である。
FIG. 1 is a schematic diagram showing an example of equipment monitored by a monitor device of a sequence program control system according to an embodiment of the present invention.

第1図において、ワークWは、準備ステーション1か
ら、送り手段(SOL1)2により、モータ(M)3により
駆動されるコンベア4へ送られ、加工ステーション5に
おいて、加工手段(SOL2)6によって、所定の加工を受
け、取り出される。準備ステーション1、コンベア4の
始点と中間点および加工ステーション5には、それぞ
れ、ワークWを検出するリミットスイッチ(LS1,LS2,LS
3,LS4)7〜10が設けられ、加工手段6には、その後退
端と前進端とを検出するリミットスイッチ(LS5,LS6)1
1,12が設けられている。また、加工ステーション5の近
傍には、安全マット13が敷設されており、作業者が乗る
と、設備停止信号を出力するスイッチ(安全マットS)
14が設けられている。
In FIG. 1, a work W is sent from a preparation station 1 to a conveyor 4 driven by a motor (M) 3 by a feeding means (SOL1) 2 and at a processing station 5 by a processing means (SOL2) 6. It is subjected to predetermined processing and taken out. Limit switches (LS1, LS2, LS) for detecting the work W are respectively provided at the preparation station 1, the start point and the intermediate point of the conveyor 4, and the processing station 5.
3, LS4) 7 to 10 are provided, and the processing means 6 has a limit switch (LS5, LS6) 1 for detecting the backward end and the forward end thereof.
1,12 are provided. In addition, a safety mat 13 is laid near the processing station 5, and a switch (safety mat S) that outputs a facility stop signal when an operator gets on it.
14 are provided.

第2図には、第1図に示された設備の制御回路が示さ
れている。
FIG. 2 shows the control circuit of the installation shown in FIG.

自動運転ボタン15を押すと、リレー手段16a〜16cが作
動し、自動切換スイッチ(自動切換S)17、安全マット
スイッチ(安全マットS)14および停止スイッチ18が作
動しないかぎり、通電が保持される。ワークWが準備ス
テーション1にあって、コンベア4上および加工ステー
ション5にはなく、加工手段6が後退端にあるとき(LS
1とLS5はオン、LS2〜LS4はオフ)、送り手段(SOL1)2
は、リレー手段19a,19bの作動により、ワークWをコン
ベア4上に送る。
When the automatic operation button 15 is pressed, the relay means 16a to 16c are activated and the energization is maintained unless the automatic changeover switch (automatic changeover S) 17, the safety mat switch (safety matte S) 14 and the stop switch 18 are activated. . When the work W is in the preparation station 1 and not on the conveyor 4 or the processing station 5, and the processing means 6 is at the backward end (LS
1 and LS5 are on, LS2 to LS4 are off), feeding means (SOL1) 2
Sends the work W onto the conveyor 4 by the operation of the relay means 19a, 19b.

コンベア4は、ワークWが、その上にあって、加工ス
テーション5にはないとき(LS2またはLS3はオン、LS4
はオフ)、リレー手段20a,20bの作動により、モータ
(M)3が作動して、ワークWを加工ステーション5に
送る。加工手段6は、前進端になく(LS6がオフ)、ワ
ークWが加工ステーション5にあり(LS4がオン)、後
退用のリレー手段(SOL2R)21cが作動していないとき、
前進用リレー手段(SOL2F)21d、21eの作動によって、
前進して、ワークWに所定の加工を施し、前進端に来る
と(LS6がオン)、後退端検出用リミットスイッチ(LS
5)がオフで、前進用リレー手段(SOL2F)21fが作動し
ていないとき、後退用リレー手段(SOL2R)21a、21bが
作動して後退する。
When the work W is on the conveyor 4 and not on the processing station 5 (LS2 or LS3 is on, LS4 is on the conveyor 4).
Is off), and the motor (M) 3 is operated by the operation of the relay means 20a, 20b, and the work W is sent to the processing station 5. When the machining means 6 is not at the forward end (LS6 is off), the work W is at the machining station 5 (LS4 is on), and the reverse relay means (SOL2R) 21c is not operating,
By the operation of the forward relay means (SOL2F) 21d, 21e,
When the work W moves forward, the workpiece W is processed in a predetermined manner, and when it reaches the forward end (LS6 is on), the limit switch for detecting the backward end (LS
When 5) is off and the forward relay means (SOL2F) 21f is not operating, the reverse relay means (SOL2R) 21a, 21b are activated to move backward.

この設備のシーケンス制御の基本パターンは、第1表
のようになる。第1表において、0はオフ状態を、1は
オン状態を、それぞれ示している。
The basic pattern of sequence control of this equipment is shown in Table 1. In Table 1, 0 indicates an off state and 1 indicates an on state.

第3図は、本発明の実施例にかかるシーケンスプログ
ラム制御系のモニタ装置のブロック図である。
FIG. 3 is a block diagram of the monitor device of the sequence program control system according to the embodiment of the present invention.

第3図において、シーケンスプログラム制御すべき設
備の各要素の作動状態を入力する作動状態入力部30に入
力された信号に基づいて、作動状態変化検出部31はいず
れかの要素の作動状態に変化があったか否かを検出し、
比較判定部32に出力する。比較対象抽出部33は、第1表
に示される基本パターンがあらかじめ記憶されている基
本パターン記憶部34より、マッチングすべきステップの
パターンを抽出し、比較判定部32に出力する。比較判定
部32は、これを作動状態変化検出部31からの出力との比
較判定をおこなう。すなわち、ワークWが、準備ステー
ション1にあって、コンベア4上および加工ステーショ
ン5にはない状態で、自動運転ボタン15を押し、送り手
段2が作動した状態(ステップ1)でモニタをスタート
したとき、ワークWが準備ステーション1より送り出さ
れることによって、リミットスイッチLS1が(1→0)
と変化すると、その変化が作動状態変化検出部31により
検出され、比較判定部32において、そのときの作動パタ
ーンが比較対象抽出部33に記憶された基本パターンのス
テップ2のパターンと比較される。これらの2つのパタ
ーンが一致しているときは、「正常」と判定され、判定
結果出力部35に出力される。つぎに、リミットスイッチ
LS2が(0→1)と変化するとともに、送り手段SOL1が
(1→0)と変化したことを、作動状態変化検出部31が
検出すると、比較判定部32において、ステップS3のパタ
ーンの比較がなされる。
In FIG. 3, the sequence program changes the operating state change detecting section 31 to the operating state of any element based on the signal input to the operating state input section 30 which inputs the operating state of each element of the equipment to be controlled. To detect whether there was
It outputs to the comparison and determination unit 32. The comparison target extraction unit 33 extracts the pattern of the step to be matched from the basic pattern storage unit 34 in which the basic patterns shown in Table 1 are stored in advance, and outputs it to the comparison determination unit 32. The comparison / determination unit 32 makes a comparison / determination with the output from the operation state change detection unit 31. That is, when the work W is in the preparation station 1 and not on the conveyor 4 and the processing station 5, the automatic operation button 15 is pressed, and the monitoring is started in the state (step 1) in which the feeding means 2 is operated. , The work W is sent out from the preparation station 1, so that the limit switch LS1 (1 → 0)
When the change occurs, the change is detected by the operation state change detection unit 31, and the comparison determination unit 32 compares the operation pattern at that time with the pattern of step 2 of the basic pattern stored in the comparison target extraction unit 33. When these two patterns match, it is determined as “normal” and is output to the determination result output unit 35. Next, the limit switch
When the operating state change detection unit 31 detects that the LS2 changes from (0 → 1) and the feeding means SOL1 changes from (1 → 0), the comparison determination unit 32 compares the patterns in step S3. Done.

このように、作動パターンが変化するたびに、新たな
ステップのパターンとそのステップに対応する基本パタ
ーンが比較されて、作動パターンが正常か否かが判定さ
れる。そして、たとえば、ステップ4の状態で、リミッ
トスイッチLS3が故障して、オン(1)になると、作動
パターンは、第2表に示されるようになる。
Thus, every time the operation pattern changes, the pattern of the new step and the basic pattern corresponding to the step are compared to determine whether the operation pattern is normal. Then, for example, in the state of step 4, when the limit switch LS3 fails and is turned on (1), the operation pattern becomes as shown in Table 2.

第2表と第1表とを比較すると、ステップ4におい
て、リミットスイッチLS3が、オン(1)になっている
点で、作動パターンは、基本パターンを一致していな
い。したがって、比較判定部32は不一致の出力信号を判
定結果出力部35に出力するが、同時に、異常要素記憶部
36にも出力し、不一致のあった要素、この例では、リミ
ットスイッチLS3に異常があったことを記憶させる。異
常要素記憶部36は、比較判定部32から信号を受けたとき
は、異常のあった要素が何かを示す信号を比較対象抽出
部33および異常要素チェック部37に出力する。
Comparing Table 2 and Table 1, in step 4, the limit switch LS3 is turned on (1), and the operation patterns do not match the basic patterns. Therefore, the comparison / determination unit 32 outputs a non-coincidence output signal to the determination result output unit 35, but at the same time, the abnormal element storage unit
It is also output to 36, and the fact that there is an abnormality in the element that has a mismatch, in this example, the limit switch LS3 is stored. When receiving the signal from the comparison determination unit 32, the abnormal element storage unit 36 outputs a signal indicating what the abnormal element is to the comparison target extraction unit 33 and the abnormal element check unit 37.

ついで、リミットスイッチLS1がオフからオン(0→
1)になったことを、変化検出部31が検出すると、異常
要素チェック部37に入力され、変化した要素が、異常要
素記憶部36に記憶されたものか否かが判定され、その結
果が、比較判定部32に出力される。比較判定部32は、変
化検出部31が検出した変化のあった要素が、異常要素記
憶部36に記憶されている要素であるときは、比較判定を
おこなわず、異常要素記憶部36に記憶されている要素で
ないときにかぎり、比較判定をおこなう。この際、一
旦、「異常」ありと判定された要素については、「正
常」に復帰しないかぎり、基本パターンと作動パターン
とで、不一致があっても、これを無視し、それ以外の要
素についてのみ、基本パターンとを比較判定をおこな
う。
Then, the limit switch LS1 turns from off to on (0 →
When the change detection unit 31 detects that it has become 1), it is input to the abnormal element check unit 37, it is determined whether or not the changed element is stored in the abnormal element storage unit 36, and the result is Is output to the comparison / determination unit 32. When the element having the change detected by the change detection unit 31 is the element stored in the abnormal element storage unit 36, the comparison determination unit 32 does not perform the comparison determination and is stored in the abnormal element storage unit 36. The comparison judgment is performed only when the element is not a specified element. At this time, for elements that are once determined to be "abnormal", unless there is a return to "normal", even if there is a discrepancy between the basic pattern and the operation pattern, this is ignored and only for the other elements. , The basic pattern is compared and judged.

この例では、変化したのは、リミットスイッチLS1で
あり、それは、異常要素記憶部36に記憶された要素では
ないから、比較判定部32は、そのまま、ステップ5につ
いて、作動パターンと基本パターンの比較をおこない、
判定結果を判定結果出力部35に出力する。この例では、
なんらの異常もないから、「正常」との信号が出力され
る。
In this example, it is the limit switch LS1 that has changed, and this is not the element stored in the abnormal element storage unit 36, so the comparison and determination unit 32 directly compares the operation pattern and the basic pattern in step 5. To
The determination result is output to the determination result output unit 35. In this example,
Since there is no abnormality, the signal "normal" is output.

さらに、リミットスイッチLS4およびSOL2Fが変化する
が、これらは、やはり、異常要素記憶部36に記憶されて
いる要素ではないから、比較判定部32は、そのステップ
の作動パターンと基本パターンとの比較をおこなうが、
ステップ5に続くステップ6の基本パターンは、異常要
素記憶部36に記憶されている異常のあった要素であるリ
ミットスイッチLS3のみが変化するステップであるの
で、そのまま、作動パターンはステップ6の基本パター
ンと比較するときは、リミットスイッチLS4およびSOL2F
に「異常」ありとの誤判定をすることになる。そこで、
比較がなされるのが、異常要素記憶部36に記憶されてい
る要素のみが変化するステップである場合には、比較対
象抽出部33は、1ステップ進んだステップの基本パター
ンを、比較判定部32に出力する。この例では、ステップ
6に続くステップ7もまた、異常要素記憶部36に記憶さ
れている要素のみが変化するステップであるので、この
基本パターンのステップを進める操作が2回おこなわ
れ、結局、比較対象抽出部33は、2ステップ進んだステ
ップの基本パターンを、比較判定部32に出力する。その
結果、比較判定部32は、ステップ6および7について
は、比較をおこなわず、ステップ8についての比較判定
をおこなうことになる。
Further, the limit switches LS4 and SOL2F change, but since these are not the elements stored in the abnormal element storage unit 36, the comparison / determination unit 32 compares the operation pattern of that step with the basic pattern. I will do it,
The basic pattern of step 6 following step 5 is a step in which only the limit switch LS3, which is an element with an abnormality stored in the abnormal element storage unit 36, changes, so the operation pattern remains the basic pattern of step 6. Limit switches LS4 and SOL2F when comparing with
Will be erroneously determined to be "abnormal". Therefore,
When the comparison is made in the step in which only the elements stored in the abnormal element storage unit 36 change, the comparison target extraction unit 33 sets the basic pattern of the step advanced by one step to the comparison determination unit 32. Output to. In this example, since step 7 following step 6 is also a step in which only the elements stored in the abnormal element storage unit 36 change, the operation of advancing the steps of this basic pattern is performed twice, and after all, comparison is performed. The target extraction unit 33 outputs the basic pattern of the step advanced by two steps to the comparison determination unit 32. As a result, the comparison / determination unit 32 does not perform the comparison in Steps 6 and 7, but performs the comparison / determination in Step 8.

つぎに、リミットスイッチLS5がオンからオフ(1→
0)になるとともに、異常のあったリミットスイッチLS
3がなんらかの原因で「正常」に復帰して、オンからオ
フ(1→0)になり、変化検出部31がこれらを検出する
と、検出信号を比較判定部32および異常要素チェック部
37に出力する。ここに、異常要素記憶部36に記憶されて
いる要素以外の要素の作動状態も変化しているから、異
常要素チェック部37は、比較判定実行命令を比較判定部
32に出力し、比較判定部32でステップ9についての判定
がおこなわれる。この際、異常要素記憶部36に記憶され
ているリミットスイッチLS3については、パターン比較
がなされないのは前述のとおりである。しかし、もし、
このステップ9における作動状態の変化が、異常のあっ
たリミットスイッチLS3が「正常」に復帰しただけであ
るときは、それは偶発的な変化であり、そもそも基本パ
ターンの予想するものではないから、つぎのステップの
基本パターンと比較するときは、つぎのステップで変化
すべき要素につき、「正常」であるにもかかわらず、
「異常」の判定がなされることになる。そこで、異常要
素記憶部36に記憶されている要素以外の要素の作動状態
の変化がないときは、異常要素チェック部37は、比較判
定実行命令を比較判定部32に出力せず、ステップ9につ
いての比較判定はおこなわないようにしている。
Next, the limit switch LS5 turns from on to off (1 →
Limit switch LS
When 3 is returned to "normal" for some reason, it changes from ON to OFF (1 → 0), and the change detection unit 31 detects these, the detection signal is compared with the comparison determination unit 32 and the abnormal element check unit.
Output to 37. Here, since the operating states of the elements other than the elements stored in the abnormal element storage unit 36 are also changing, the abnormal element check unit 37 sends the comparison determination execution command to the comparison determination unit.
The data is output to 32, and the comparison / determination unit 32 makes a determination about step 9. At this time, as described above, the pattern comparison is not performed on the limit switch LS3 stored in the abnormal element storage unit 36. But if
If the change in the operating state in step 9 is only that the abnormal limit switch LS3 returns to "normal", it is an accidental change and is not expected in the basic pattern in the first place. When comparing with the basic pattern of the step of, although it is "normal" for the element that should change in the next step,
The judgment of "abnormal" will be made. Therefore, when there is no change in the operating states of the elements other than the elements stored in the abnormal element storage unit 36, the abnormal element check unit 37 does not output the comparison / determination execution command to the comparison / determination unit 32, and in step 9 No comparison judgment is made.

第4図は、そのモニタ方法を示すフローチャートであ
る。
FIG. 4 is a flowchart showing the monitoring method.

第4図において、まず、設備を構成する各要素の作動
状態を作動状態入力部30により、モニタ装置に入力し、
いずれかの要素の作動状態に変化があったか否かが、作
動状態変化検出部31により検出される。その結果、いず
れの要素の作動状態にも変化がないときは、作動状態が
変化するまで検出が続けられる。作動状態変化検出部31
により、いずれかの要素の作動状態に変化があったと判
定されたときは、異常要素チェック部37において、その
要素がモニタの開始後、異常と判定された要素でまだ正
常に復帰していない要素(以下、異常要素という。)か
否かが判定される。モニタの開始時には、まだ異常要素
はないから、この判定結果は、イエスであり、ついで、
異常要素チェック部37は、異常要素以外にも作動状態に
変化があった要素があったか否かを判定する。この判定
結果も、モニタの開始時には、イエスとなり、ステップ
が1つ進められる。モニタの開始時は、ステップ0が1
ステップ進められて、ステップ1とされる。つぎに、そ
のステップに対応する基本パターンのステップが、異常
要素のみが変化するステップか否かが、比較対象抽出部
33によって判定される。モニタの開始時には、この判定
結果は、ノーとなり、比較判定部32で、ステップ1の作
動パターンと基本パターン記憶部に記憶された基本パタ
ーンより比較対象抽出部33が抽出し、比較判定部32に入
力されたステップ1の基本パターンとが比較されて、異
常の発生があったか否かが判定される。
In FIG. 4, first, the operating state of each element constituting the equipment is input to the monitor device by the operating state input unit 30,
The operating state change detection unit 31 detects whether or not the operating state of any element has changed. As a result, if there is no change in the operating state of any of the elements, detection continues until the operating state changes. Operating state change detector 31
Therefore, when it is determined that the operating state of any element has changed, the abnormal element check unit 37 determines that the element is abnormal after the start of monitoring, and is an element that has not yet been restored to normal. (Hereinafter referred to as an abnormal element) is determined. At the start of the monitor, there are no abnormal elements yet, so the result of this judgment is yes, and then
The abnormal element check unit 37 determines whether or not there is an element whose operating state has changed in addition to the abnormal element. This determination result also becomes YES at the start of monitoring, and the step is advanced by one. When starting monitoring, step 0 is 1
Steps are advanced to step 1. Next, it is determined whether the step of the basic pattern corresponding to the step changes only the abnormal element or not.
Determined by 33. At the start of monitoring, this determination result is NO, and in the comparison determination unit 32, the comparison target extraction unit 33 extracts from the operation pattern of step 1 and the basic pattern stored in the basic pattern storage unit, and the comparison determination unit 32 outputs it. The input basic pattern of step 1 is compared to determine whether or not an abnormality has occurred.

この結果、どの要素にも、異常がないと判定されたと
きは、そのまま、つぎの作動状態の変化の検出がなされ
る。
As a result, when it is determined that there is no abnormality in any of the elements, the next change in the operating state is detected as it is.

他方、判定の結果、作動パターンと基本パターンとの
不一致があるときは、その不一致のあった要素に異常が
発生したと判定し、その要素を、異常要素として、異常
要素記憶部36に記憶させ、スタートに戻り、再び、作動
状態の変化の検出がなされる。そして、いずれかの要素
の作動状態に変化があったと検出されたときは、その要
素が、異常要素記憶部36に記憶されている異常要素か否
かが判定される。
On the other hand, as a result of the determination, when there is a mismatch between the operation pattern and the basic pattern, it is determined that an abnormality has occurred in the element with the mismatch, and that element is stored in the abnormal element storage unit 36 as an abnormal element. , Returning to the start, the change in the operating state is detected again. Then, when it is detected that the operating state of any of the elements has changed, it is determined whether the element is an abnormal element stored in the abnormal element storage unit 36.

その判定結果が、イエスであるときには、異常要素が
正常に復帰した可能性があるので、フラグをリセットし
て、その要素を異常要素からはずし、基本パターンとの
マッチングの対象とする。これに対して、判定結果が、
ノーであるときは、そのままにして、つぎに進む。
If the determination result is YES, there is a possibility that the abnormal element has returned to normal, so the flag is reset, the element is removed from the abnormal element, and the target is matched with the basic pattern. On the other hand, the judgment result is
If no, leave it as is and proceed.

ついで、異常要素以外にも、作動状態が変化した要素
があったか否かが判定される。この結果、異常要素のみ
が変化した判定されたときは、まだ、つぎのステップに
移行してはいないと考えられるので、スタートに戻り、
再び、作動状態の変化の検出がなされる。他方、異常要
素以外の要素の作動状態も変化したときには、ステップ
が1つ進んだと考えられるので、ステップを1つ進め、
ステップ1からステップ2とする。
Then, it is determined whether or not there is an element whose operating state has changed in addition to the abnormal element. As a result, when it is determined that only the abnormal element has changed, it is considered that the process has not yet moved to the next step, so return to the start,
Again, a change in operating condition is detected. On the other hand, when the operating states of elements other than the abnormal element also change, it is considered that one step has advanced, so one step is advanced,
The steps are from step 1 to step 2.

つぎに、そのステップ(この場合は、ステップ2)が
基本パターンにおいて、異常要素のみが変化するステッ
プか否かが、比較対象抽出部33により判定される。その
結果がイエスのときは、異常要素につき必ず不一致が生
ずるから、そのステップの基本パターンと比較しても意
味がなく、したがって、さらに基本パターンの1つステ
ップが進められ、ステップ3の基本パターンと作動パタ
ーンが比較されることになる。他方、その判定結果が、
ノーのときは、ステップが進められることなく、ステッ
プ2について、比較判定部32で、基本パターンとのマッ
チングがおこなわれる。
Next, the comparison target extraction unit 33 determines whether or not the step (step 2 in this case) is a step in which only the abnormal element changes in the basic pattern. If the result is yes, there is always a mismatch for the abnormal element, so there is no point in comparing it with the basic pattern of that step. Therefore, one step of the basic pattern is advanced and the basic pattern of step 3 The operating patterns will be compared. On the other hand, the judgment result is
When the result is NO, the comparison and determination unit 32 performs matching with the basic pattern in step 2 without advancing the step.

本実施例によれば、異常が発生した要素については、
その後、正常に復帰しないかぎり、モニタの対象からは
ずすとともに、この異常要素の存在を斟酌して、マッチ
ングすべき基本パターンのステップを選択しているか
ら、いらずらに設備の稼動を止めたりすることもなく、
第2、第3の異常を精度よく検出することができ、モニ
タ装置の信頼性を大幅に高めることが可能となる。さら
に、異常が発生した要素がなにかを順次記憶させている
ので、異常発生によって、設備が停止に至った場合に
も、異常が発生した各要素をすべて性格に把握すること
ができ、設備が停止に至った根本原因を究明し、異常な
いし故障の再発を的確に防止することが可能となる。
According to this embodiment, regarding the element in which the abnormality has occurred,
After that, unless it returns to normal, remove it from the target of the monitor, consider the existence of this abnormal element, and select the step of the basic pattern to be matched, so stop the operation of the equipment unnecessarily. None,
The second and third abnormalities can be accurately detected, and the reliability of the monitor device can be significantly improved. Furthermore, since the elements in which an abnormality has occurred are stored sequentially, even if the equipment stops due to the occurrence of an abnormality, it is possible to grasp all the elements in which an abnormality has occurred and the equipment stops. It is possible to investigate the root cause that led to the above and accurately prevent the recurrence of an abnormality or failure.

本発明は、以上の実施例に限定されることなく特許請
求の範囲に記載された発明の範囲内で種々の変更が可能
であり、それらも本発明の範囲内に包含されるものであ
ることはいうまでもない。
The present invention is not limited to the above embodiments, and various modifications can be made within the scope of the invention described in the claims, and those modifications are also included in the scope of the present invention. Needless to say.

たとえば、前記実施例においては、あたかもいくつか
の物理的に独立した手段が、モニタ装置内に設けられる
かのように説明したが、前記各手段は物理的に独立した
手段であることを要せず、たとえば、ソフト的に前記各
機能を実現してもよく、モニタ装置が前記の作用を全体
として果たすことができるものであればよい。
For example, in the above-described embodiment, although it has been described as if some physically independent means are provided in the monitor device, each of the means need not be physically independent means. Instead, for example, each of the functions may be realized by software, and the monitoring device may be capable of performing the above-described operation as a whole.

発明の効果 本発明によれば、第1の異常の発生後も、シーケンス
プログラム制御のモニタを続行することができるととも
に、第2、第3の異常を精度よく検出することができ、
設備の復旧を容易にし、設備の稼動率を向上させること
が可能となる。
EFFECTS OF THE INVENTION According to the present invention, it is possible to continue monitoring the sequence program control even after the occurrence of the first abnormality, and to accurately detect the second and third abnormalities.
It is possible to facilitate the restoration of equipment and improve the operating rate of equipment.

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

第1図は、本発明の実施例にかかるシーケンスプログラ
ム制御系のモニタ装置により、モニタされる設備の一例
を示す概略図であり、第2図は、その制御回路を示す図
面である。第3図は、本発明の実施例にかかるシーケン
スプログラム制御系のモニタ装置のブロック図であり、
第4図は、そのモニタ方法を示すフローチャートであ
る。 W……ワーク、1……準備ステーション、2……送り手
段、3……モータ、4……コンベア、5……加工ステー
ション、6……加工手段、7、8、9、10、11、12……
リミットスイッチ、13……安全マット、14……安全マッ
トスイッチ、15……自動運転ボタン、16a、16b、16c…
…リレー手段、17……自動切換スイッチ、18……停止ス
イッチ、19a、19b、20a、20b、21a、21b、21c、21d、21
e、21f……リレー手段、30……作動状態入力部、31……
作動状態変化検出部、32……比較判定部、33……比較対
象抽出部、34……基本パターン記憶部、35……判定結果
出力部、36……異常要素記憶部、37……異常要素チェッ
ク部。
FIG. 1 is a schematic diagram showing an example of equipment monitored by a monitor device of a sequence program control system according to an embodiment of the present invention, and FIG. 2 is a drawing showing its control circuit. FIG. 3 is a block diagram of a monitor device of a sequence program control system according to an embodiment of the present invention,
FIG. 4 is a flowchart showing the monitoring method. W ... Work, 1 ... Preparation station, 2 ... Feeding means, 3 ... Motor, 4 ... Conveyor, 5 ... Machining station, 6 ... Machining means, 7, 8, 9, 10, 11, 12 ......
Limit switch, 13 …… Safety mat, 14 …… Safety mat switch, 15 …… Automatic operation button, 16a, 16b, 16c…
... relay means, 17 ... automatic changeover switch, 18 ... stop switch, 19a, 19b, 20a, 20b, 21a, 21b, 21c, 21d, 21
e, 21f …… Relay means, 30 …… Operating state input section, 31 ……
Operating state change detection unit, 32 ... Comparison determination unit, 33 ... Comparison target extraction unit, 34 ... Basic pattern storage unit, 35 ... Judgment result output unit, 36 ... Abnormal element storage unit, 37 ... Abnormal element Check department.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】シーケンスプログラム制御系を構成する各
要素の作動状態の変化を検出する作動状態変化検出手段
と、各要素の作動パターンと基本パターンとを比較し、
異常の発生の有無を判定する比較判定手段と、異常の発
生した異常要素を、正常に復帰しないかぎり、モニタの
対象からはずす比較対象チェック手段と、前記異常要素
の作動状態に変化が生じたステップにおいては、他の要
素の作動状態が同時に変化しないときは、つぎのステッ
プの基本パターンを前記比較判定手段に入力し、他の要
素の作動状態が同時に変化するときには、そのステップ
の基本パターンを前記比較判定手段に入力する比較対象
抽出手段を備えたことを特徴とするシーケンスプログラ
ム制御系のモニタ装置。
1. An operating state change detecting means for detecting a change in operating state of each element constituting a sequence program control system is compared with an operating pattern and a basic pattern of each element,
Comparison determining means for determining whether or not an abnormality has occurred, comparison target checking means for removing an abnormal element in which an abnormality has occurred from the target of monitoring unless the element is returned to normal, and a step in which the operating state of the abnormal element has changed In, when the operating states of the other elements do not change at the same time, the basic pattern of the next step is input to the comparison / determination means, and when the operating states of the other elements change at the same time, the basic pattern of that step is A monitor device for a sequence program control system, comprising comparison target extraction means for inputting to the comparison determination means.
JP62266925A 1987-10-22 1987-10-22 Monitor device for sequence program control system Expired - Lifetime JPH083749B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62266925A JPH083749B2 (en) 1987-10-22 1987-10-22 Monitor device for sequence program control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62266925A JPH083749B2 (en) 1987-10-22 1987-10-22 Monitor device for sequence program control system

Publications (2)

Publication Number Publication Date
JPH01109412A JPH01109412A (en) 1989-04-26
JPH083749B2 true JPH083749B2 (en) 1996-01-17

Family

ID=17437586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62266925A Expired - Lifetime JPH083749B2 (en) 1987-10-22 1987-10-22 Monitor device for sequence program control system

Country Status (1)

Country Link
JP (1) JPH083749B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030014798A (en) * 2001-08-13 2003-02-20 현대자동차주식회사 mounting structure of strut assembly for vehicle
KR20040003281A (en) * 2002-07-02 2004-01-13 현대자동차주식회사 mounting structure of shock absorber for suspension system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62138201U (en) * 1986-02-21 1987-08-31

Also Published As

Publication number Publication date
JPH01109412A (en) 1989-04-26

Similar Documents

Publication Publication Date Title
JP2504961B2 (en) Programmable transfer machine
US5742624A (en) Fault detecting apparatus and method
US6526527B1 (en) Single-processor system
JPH02501960A (en) Monitoring method and circuit device for operating elements controlled by computer
JPH083749B2 (en) Monitor device for sequence program control system
CN109720233B (en) Split charging pile and connection detection method and device thereof
WO2006011579A1 (en) Programmable controller
JPS63303407A (en) Monitoring device for sequence program control
JPS63292211A (en) Monitoring device for sequence program control system
JP2590108B2 (en) Monitor for sequence program control system
JPS63311510A (en) Monitor device for sequence program control system
JPH06324721A (en) Method for detecting falling-off of connection unit
JPS61214947A (en) Nc controller having automatic return function
JPS63311509A (en) Monitor device for sequence program control system
JPS61276497A (en) Method for recognizing deadlock
JP2737878B2 (en) Monitor for sequence program control system
TWI758926B (en) Safety monitor system and method for diagnosing abnormality of the same in robot
JP2620249B2 (en) Multiplex communication system of sequence controller
JPH1132448A (en) Supervisory controller for power system
KR100227890B1 (en) Product line controller and its controlling method
JPH08292894A (en) Digital controller
JPH01274208A (en) Monitoring device for sequence program control system
JP2695853B2 (en) Multiplex communication system of sequence controller
JP2642367B2 (en) Monitor for sequence program control system
KR0125945B1 (en) Method of operating monitoring for processor