Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3134428B2 - Failure diagnosis method and device - Google Patents
[go: Go Back, main page]

JP3134428B2 - Failure diagnosis method and device - Google Patents

Failure diagnosis method and device

Info

Publication number
JP3134428B2
JP3134428B2 JP03319753A JP31975391A JP3134428B2 JP 3134428 B2 JP3134428 B2 JP 3134428B2 JP 03319753 A JP03319753 A JP 03319753A JP 31975391 A JP31975391 A JP 31975391A JP 3134428 B2 JP3134428 B2 JP 3134428B2
Authority
JP
Japan
Prior art keywords
input
state
output
pattern
reference data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP03319753A
Other languages
Japanese (ja)
Other versions
JPH05134740A (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.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP03319753A priority Critical patent/JP3134428B2/en
Publication of JPH05134740A publication Critical patent/JPH05134740A/en
Application granted granted Critical
Publication of JP3134428B2 publication Critical patent/JP3134428B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【技術分野】この発明は故障診断方法および装置に関
し,とくにプログラマブル・ロジック・コントローラ
(以下,単にPLCという)に内的または外的に付加さ
れ,PLCが制御するシステム(機器を含む)の故障を
診断するために好適な方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for diagnosing a fault, and more particularly to a method and an apparatus internally or externally added to a programmable logic controller (hereinafter simply referred to as a PLC) for detecting a fault in a system (including equipment) controlled by the PLC. A method and apparatus suitable for diagnosing.

【0002】[0002]

【背景技術とその問題点】PLCによって制御されるシ
ステムの動作の異常を早期に発見するために,PLCの
プログラム中に異常検知(故障診断)機能を含ませる,
または故障診断ユニットをPLCに付加することが要求
され,その要請は日々強くなってきている。
2. Description of the Related Art In order to detect an abnormality in the operation of a system controlled by a PLC at an early stage, an abnormality detection (failure diagnosis) function is included in a PLC program.
Alternatively, it is required to add a failure diagnosis unit to the PLC, and the demand is increasing every day.

【0003】これに対処するために,PLCによって制
御されるシステムの正常な動作状態をあらかじめ観察
し,その結果を記憶しておく。そして,システムの実際
の動作をモニタし,これをあらかじめ記憶してある正常
な動作状態と照合することにより,システムの異常を実
時間で検知する方法が提案されてきている。
To cope with this, the normal operation state of the system controlled by the PLC is observed in advance, and the result is stored. Then, a method has been proposed in which the actual operation of the system is monitored, and this is compared with a normal operating state stored in advance to detect a system abnormality in real time.

【0004】正常な動作状態を表わす指標として,PL
Cの入,出力信号のオン,オフ状態,この状態が遷移す
る順序,および状態遷移に要する時間(標準値と許容幅
または最小値と最大値)等が考えられている。
As an index indicating a normal operation state, PL
The input and output states of C and the on / off state of the output signal, the order in which the states transition, the time required for the state transition (standard value and allowable width or minimum and maximum values) are considered.

【0005】しかしながら,各動作状態ごとの入力信号
と出力信号の両方の状態を一緒に判定基準として作成し
ておくと,次のような場合に誤診断が生じる。
However, if both states of the input signal and the output signal for each operation state are created together as a criterion, an erroneous diagnosis occurs in the following cases.

【0006】たとえば3台の油圧(または空圧)シリン
ダのロッドが進出端に至ったことをそれぞれ検知する3
個のリミット・スイッチSW1,SW2,SW3が設け
られているとする。これらの3個のリミット・スイッチ
SW1〜SW3のすべてがオンとなるという条件(AN
D条件)で機器の次の動作が起動されるようにプログラ
ムされている。このような場合に,3個のリミット・ス
イッチSW1〜SW3がオンとなる順序が一定していれ
ば問題はない。しかし,シリンダの動作のばらつき,そ
の他の原因で一定していない場合には3個のリミット・
スイッチSW1〜SW3がオンとなるすべての順序の組
合せを監視しなければならない。もし,入力信号の動作
状態として,リミット・スイッチSW1,SW3,SW
2の順にオンとなるという状態遷移のみを判定基準とし
て登録していたとすると,これらのリミット・スイッチ
がSW3,SW2,SW1の順にオンとなった場合には
異常ありと誤検知してしまう。
[0006] For example, it is detected that the rods of three hydraulic (or pneumatic) cylinders have reached their advanced ends.
It is assumed that there are provided limit switches SW1, SW2, and SW3. A condition that all three limit switches SW1 to SW3 are turned on (AN
The program is programmed so that the next operation of the device is started under the (D condition). In such a case, there is no problem if the order in which the three limit switches SW1 to SW3 are turned on is constant. However, if it is not constant due to variations in cylinder operation or other causes, three limit
All order combinations in which the switches SW1 to SW3 are turned on must be monitored. If the operation state of the input signal is limited switch SW1, SW3, SW
If only the state transition of turning on in the order of 2 is registered as a criterion, if these limit switches are turned on in the order of SW3, SW2, and SW1, it is erroneously detected that there is an abnormality.

【0007】このようにPLCの入力信号の状態遷移の
監視は誤診断の危険性を内包している。したがって,監
視対象から入力信号の状態遷移を外し,PLCの出力信
号の状態遷移のみを監視対象に限定せざるを得ないとい
う問題がある。
As described above, the monitoring of the state transition of the input signal of the PLC involves the risk of erroneous diagnosis. Therefore, there is a problem that the state transition of the input signal must be removed from the monitoring target, and only the state transition of the output signal of the PLC must be limited to the monitoring target.

【0008】しかしながら実際のシステムの故障の原因
には,入力センサの故障,信号線の断線,機器の動作が
不充分なためにリミット・スイッチ等がこれを検出でき
ない場合等,PLCの入力信号の異常に基づくものが多
く含まれている。
However, actual system failures can be caused by a failure of the input signal of the PLC, such as a failure of an input sensor, a break of a signal line, or a case where a limit switch or the like cannot detect the failure due to insufficient operation of a device. Many are based on abnormalities.

【0009】このため,PLCの出力信号の状態遷移の
みの監視を行っていた場合には,異常が発生したとき
に,どこに異常が発生したのかという異常部位の特定が
煩雑ないしは困難となる。すなわち,異常が検知された
ときに,そのときの入出力信号の状態とPLCのプログ
ラム・リストとを順次照合しながら異常箇所をつきとめ
ていくという作業が必要となる。
For this reason, when only the state transition of the output signal of the PLC is monitored, when an abnormality occurs, it becomes complicated or difficult to identify the abnormal part where the abnormality has occurred. That is, when an abnormality is detected, it is necessary to perform a task of locating an abnormal portion while sequentially checking the state of the input / output signal at that time and the PLC program list.

【0010】実際のPLC制御では,図11に示すラダー
図のように,入力信号を補助リレーを何段も中継して出
力を制御しているため,プログラム・リスト中に散在す
る関連する記述を順次さぐっていかなければならない。
図11において,出力1において異常が検知された場合
に,矢印で示すように,補助リレーB,Aに異常(N
G)があることを特定しながら(他の接点は正常:OK
である),故障原因であるリミット・スイッチSWまで
たどりつくための作業が必要である。
In the actual PLC control, as shown in a ladder diagram shown in FIG. 11, the input signal is relayed through a number of auxiliary relays to control the output. Therefore, related descriptions scattered in a program list are stored. We have to go through them one by one.
In FIG. 11, when an abnormality is detected at the output 1, as indicated by an arrow, the auxiliary relays B and A become abnormal (N
G) While specifying that there is (other contacts are normal: OK
), An operation to reach the limit switch SW which is the cause of the failure is required.

【0011】このために,異常検出したのちに行われる
故障の修理,システムの立上げに長い時間を要する。
For this reason, it takes a long time to repair a failure and to start up the system after an abnormality is detected.

【0012】[0012]

【発明の概要】この発明は誤診断を生じることなく常に
正しく異常を検知でき,しかも異常が検知されたときに
は迅速に異常部位を特定できる故障診断方法および装置
を提供するものである。
SUMMARY OF THE INVENTION The present invention provides a failure diagnosis method and apparatus which can always detect an abnormality correctly without causing an erroneous diagnosis, and can quickly identify an abnormal part when an abnormality is detected.

【0013】この発明による故障診断方法では,入出力
信号の状態を記憶する入出力テーブルを有し,あらかじ
め定められたプログラムにしたがってシステムを制御す
るプログラマブル・ロジック・コントローラを用い,上
記プログラマブル・ロジック・コントローラに上記プロ
グラムにしたがう上記システムの制御動作を正常に行わ
せておき,上記入出力テーブルに記憶されている入出力
信号の状態を所定のサンプル周期ごとに読出し,読出し
た状態データにおいて,出力信号の状態が変化したとき
の入力信号の状態を入力期待パターンとして異常箇所検
知用基準データを作成し,作成した異常箇所検知用基準
データをあらかじめ記憶しておく。また上記読出した状
態データにおいて,出力信号の状態が変化したときの出
力信号の状態を出力基準パターンとして異常判定用基準
データを作成し,作成した異常判定用基準データをあら
かじめ記憶しておく。そして,上記プログラマブル・ロ
ジック・コントローラの動作中において,上記プログラ
マブル・ロジック・コントローラの出力パターンを上記
異常判定用基準データの上記出力基準パターンと照合す
る。上記出力パターンと上記出力基準パターンとが不一
致である場合に異常有と判定する。異常有と判定したと
きの上記プログラマブル・ロジック・コントローラの入
力パターンを上記異常箇所検知用基準データの入力期待
パターンと照合することにより異常箇所を特定する。
In the fault diagnosis method according to the present invention, a programmable logic controller having an input / output table for storing states of input / output signals and controlling a system according to a predetermined program is used. The control operation of the system according to the program is normally performed by the controller, and the state of the input / output signal stored in the input / output table is read out at every predetermined sampling period. Then, the reference data for detecting an abnormal point is created using the state of the input signal when the state of the input signal changes as an expected input pattern, and the created reference data for detecting an abnormal point is stored in advance. Further, in the read state data, abnormality determination reference data is created using the state of the output signal when the state of the output signal changes as an output reference pattern, and the created abnormality determination reference data is stored in advance. Then, during the operation of the programmable logic controller, the output pattern of the programmable logic controller is compared with the output reference pattern of the abnormality determination reference data. If the output pattern does not match the output reference pattern, it is determined that there is an abnormality. An abnormal location is identified by comparing the input pattern of the programmable logic controller when it is determined that there is an abnormality with the expected input pattern of the abnormal location detection reference data.

【0014】この発明による故障診断装置は,入出力信
号の状態を記憶する入出力テーブルを有し,あらかじめ
定められたプログラムにしたがってシステムを制御する
プログラマブル・ロジック・コントローラに上記プログ
ラムにしたがう上記システムの制御動作を正常に行わせ
ておき,上記入出力テーブルに記憶されている入出力信
号の状態を所定のサンプル周期ごとに読出し,読出した
状態データにおいて,出力信号の状態が変化したときの
入力信号の状態を入力期待パターンとして異常箇所検知
用基準データを,出力信号の状態が変化したときの出力
信号の状態を出力基準パターンとして異常判定用基準デ
ータを,それぞれあらかじめ作成して記憶する手段,上
記プログラマブル・ロジック・コントローラの動作中に
おいて,上記プログラマブル・ロジック・コントローラ
の出力パターンを上記異常判定用基準データの上記出力
基準パターンと照合する手段,上記出力パターンと上記
出力基準パターンとが不一致である場合に異常有と判定
する手段,および異常有と判定したときの上記プログラ
マブル・ロジック・コントローラの入力パターンを上記
異常箇所検知用基準データの入力期待パターンと照合す
ることにより異常箇所を特定する手段を備えている。
The fault diagnosis apparatus according to the present invention has an input / output table for storing states of input / output signals, and a programmable logic controller for controlling the system in accordance with a predetermined program. The control operation is normally performed, and the state of the input / output signal stored in the input / output table is read out at a predetermined sampling period. Means for preparing and storing in advance the abnormal point detection reference data using the state of the output signal as the expected input pattern and the abnormality determination reference data using the state of the output signal when the state of the output signal changes as the output reference pattern. While the programmable logic controller is operating, Means for comparing the output pattern of the ramable logic controller with the output reference pattern of the abnormality determination reference data; means for determining that there is an abnormality when the output pattern does not match the output reference pattern; Means for identifying an abnormal point by comparing the input pattern of the programmable logic controller when the judgment is made with the expected input pattern of the abnormal point detection reference data.

【0015】[0015]

【0016】[0016]

【0017】[0017]

【0018】[0018]

【0019】[0019]

【0020】[0020]

【0021】この発明によると異常検知(故障診断)の
ための監視対象をプログラマブル・ロジック・コントロ
ーラ(PLC)が被制御システムを制御するために出力
する信号に絞っている。これは被制御システムからPL
Cに入力する信号を監視対象とすることを排除する趣旨
ではないが,出力信号のみを監視すれば異常検知の目的
のためには充分であることを意味している。
According to the present invention, a monitoring target for abnormality detection (failure diagnosis) is limited to a signal output by a programmable logic controller (PLC) to control a controlled system. This is from the controlled system
It is not intended to exclude the signal input to C from being monitored, but it means that monitoring only the output signal is sufficient for the purpose of abnormality detection.

【0022】この発明によると,PLCの出力信号を監
視対象としているから,PLCの動作時の実際の出力信
号のパターンを出力基準パターンと照合すればよいの
で,処理装置(とくにCPU)の負担を軽減することが
できる。
According to the present invention, since the output signal of the PLC is to be monitored, the pattern of the actual output signal during the operation of the PLC may be checked against the output reference pattern, so that the load on the processing device (especially the CPU) is reduced. Can be reduced.

【0023】また,この発明によると出力パターンの監
視によって異常を検知したときにはじめて入力信号に関
する入力期待パターンを含む異常箇所検知用基準データ
を参照している。
Further, according to the present invention, when an abnormality is detected by monitoring the output pattern, the abnormal point detection reference data including the expected input pattern relating to the input signal is referred to for the first time.

【0024】この発明は原則的には1つの出力基準パタ
ーンには1つの入力期待パターンが対応することを前提
としている。異常箇所検知用基準データにおいては各出
力基準パターンに対応して入力期待パターンが登録され
ている。したがって,実際の出力パターンと出力基準パ
ターンとの照合により異常の発生が検知されると,その
ときの実際の入力パターンと入力期待パターンとを照合
することにより,異常の発生した部位を特定することが
できる。上述のように異常は,入力センサの故障,信号
線の断線,機器の動作不充分に起因するセンサによる検
知の失敗等に原因があることが多く,これらの原因は入
力信号の状態に反映される。実際の入力パターンと入力
期待パターンとの照合により迅速に異常発生箇所の特定
を行うことができるようになる。
In principle, the present invention is based on the premise that one output reference pattern corresponds to one expected input pattern. In the abnormal point detection reference data, an expected input pattern is registered corresponding to each output reference pattern. Therefore, if the occurrence of an abnormality is detected by comparing the actual output pattern with the output reference pattern, the part where the abnormality has occurred should be identified by comparing the actual input pattern at that time with the expected input pattern. Can be. As described above, abnormalities are often caused by failure of the input sensor, disconnection of the signal line, detection failure by the sensor due to insufficient operation of the device, etc., and these causes are reflected in the state of the input signal. You. By comparing the actual input pattern with the expected input pattern, it is possible to quickly identify the location where the abnormality has occurred.

【0025】異常発生箇所が迅速にかつ自動的に抽出さ
れ,出力(表示)されるので,保守,復旧作業に要する
時間を短縮することが可能となる。
Since the location where the abnormality has occurred is quickly and automatically extracted and output (displayed), it is possible to reduce the time required for maintenance and recovery work.

【0026】もっともこの発明は1つの基準パターンに
複数の入力期待パターンが対応することを排除するもの
ではない。2つ以上の入力信号のOR条件によって何ら
かの動作を起動または制御するための出力信号が発生す
ることがある。このような条件は制御プログラムの作成
時点であらかじめ分っていることが多いので,異常箇所
検知用基準データには,1つの出力基準パターンに対応
して複数の入力期待パターンをあらかじめ登録しておけ
ばよい。
However, the present invention does not exclude that a plurality of expected input patterns correspond to one reference pattern. An OR signal of two or more input signals may generate an output signal to initiate or control some operation. Since such conditions are often known in advance when the control program is created, a plurality of expected input patterns corresponding to one output reference pattern should be registered in advance in the abnormal point detection reference data. I just need.

【0027】異常箇所検知用基準データは異常が検知さ
れた場合にのみ参照すればよいから,そのデータにアク
セスするための時間が多少かかってもよい。これに対し
て,異常判定用基準データはPLCの動作中にリアル・
タイムで参照する必要がある。
Since the reference data for detecting an abnormal point need only be referred to when an abnormality is detected, it may take some time to access the data. On the other hand, the reference data for abnormality determination is a real data during operation of the PLC.
Need to refer by time.

【0028】したがって,異常判定用基準データを内部
メモリに格納し,異常箇所検知用基準データを,サポー
ト・ツールのメモリ,メモリ・カード等の外部メモリに
格納しておくという運用が可能となる。これによって,
PLCの動作実行中に参照するメモリの記憶容量を削減
することが可能となる。
Therefore, it is possible to store the reference data for abnormality determination in the internal memory and store the reference data for abnormality detection in an external memory such as a memory of a support tool or a memory card. by this,
It is possible to reduce the storage capacity of the memory to be referred to during execution of the operation of the PLC.

【0029】この発明はさらに上述した異常箇所検知用
基準データを作成するための方法を提案している。
The present invention further proposes a method for creating the above-described reference data for detecting an abnormal point.

【0030】入出力信号の状態を記憶する入出力テーブ
ルを有し,あらかじめ定められたプログラムにしたがっ
てシステムを制御するプログラマブル・ロジック・コン
トローラを用い,上記プログラマブル・ロジック・コン
トローラに上記プログラムにしたがう上記システムの制
御動作を正常に行わせておき,上記入出力テーブルに記
憶されている入出力信号の状態を所定のサンプル周期ご
とに読出し,読出した状態データにおいて,出力信号の
状態が変化したときの入力信号の状態を入力期待パター
ンとして異常箇所検知用基準データを作成するものであ
る。
A programmable logic controller having an input / output table for storing states of input / output signals and controlling the system in accordance with a predetermined program is used, and the system is controlled by the programmable logic controller according to the program. Control operation is normally performed, and the state of the input / output signal stored in the input / output table is read out at every predetermined sampling period, and the input state when the state of the output signal changes in the read state data is read out. An abnormal point detection reference data is created by using a signal state as an expected input pattern.

【0031】[0031]

【0032】[0032]

【0033】この発明によると,作業員の負担を軽くし
て異常箇所検知用基準データを作成することができる。
According to the present invention, it is possible to create the abnormal point detection reference data while reducing the burden on the operator.

【0034】[0034]

【実施例の説明】[Explanation of the embodiment]

(1) 故障診断装置の構成例 図1は故障診断装置の概略構成を示すものである。 (1) Configuration Example of Failure Diagnosis Apparatus FIG. 1 shows a schematic configuration of a failure diagnosis apparatus.

【0035】この故障診断装置はプログラマブル・ロジ
ック・コントローラ(PLC)の本体部分と一体的に構
成されている。すなわち,PLC本体に故障診断機能が
付加された構成となっている。もちろん,故障診断装置
をPLC本体とは別ユニットとして構成することができ
るのはいうまでもない。
This fault diagnosis device is integrally formed with a main body of a programmable logic controller (PLC). That is, a failure diagnosis function is added to the PLC body. Of course, it goes without saying that the failure diagnosis device can be configured as a separate unit from the PLC body.

【0036】故障診断機能をもつPLC10はCPU11,
ROM12,RAM13,14,タイマ15,I/O(入出力)
ユニット(インターフェイス)16,および操作部I/F
(インターフェイス)17から構成されている。
The PLC 10 having the failure diagnosis function is composed of the CPU 11,
ROM 12, RAM 13, 14, timer 15, I / O (input / output)
Unit (interface) 16 and operation unit I / F
(Interface) consists of 17.

【0037】ROM12にはラダー制御システム・プログ
ラムと故障診断プログラムとが格納されている。
The ROM 12 stores a ladder control system program and a failure diagnosis program.

【0038】RAM13には,ユーザが被制御システムの
制御のために作成したユーザ・プログラム(ラダー・プ
ログラム)を格納するエリア,および異常判定用基準デ
ータを格納するエリアが設けられている。RAM14は作
業(ワーク)用であり,PLCの実際の入出力信号の状
態を保持するI/Oテーブルや故障診断処理において用
いるサンプルされた入出力信号を記憶するために用いら
れる。
The RAM 13 has an area for storing a user program (ladder program) created by the user for controlling the controlled system, and an area for storing reference data for abnormality determination. The RAM 14 is used for work (work), and is used to store an I / O table that holds the actual states of input / output signals of the PLC and sampled input / output signals used in the failure diagnosis processing.

【0039】CPU11はROM12に格納されているシス
テム・プログラムおよびRAM13に格納されているユー
ザ・プログラムにしたがって被制御システムを制御する
とともに,ROM12に格納されている故障診断プログラ
ムにしたがってRAM13に格納されている異常判定用基
準データを用いて故障診断処理を行う。
The CPU 11 controls the controlled system in accordance with the system program stored in the ROM 12 and the user program stored in the RAM 13, and stores the controlled system in the RAM 13 according to the failure diagnosis program stored in the ROM 12. The failure diagnosis process is performed using the abnormality determination reference data.

【0040】タイマ15は故障診断において出力パターン
の遷移に要した時間の計時等のためのものである。
The timer 15 is for measuring the time required for transition of the output pattern in the failure diagnosis.

【0041】I/Oユニット16はPLCI/Oデータ・
バスを介して被制御システムと入,出力信号の送受を行
うものである。
The I / O unit 16 stores PLCI / O data
It transmits and receives input and output signals to and from the controlled system via the bus.

【0042】PLC10は操作部I/F17を介してコンソ
ール20と接続されている。コンソール20にはコンピュー
タ本体(いわゆるパーソナル・コンピュータ等),キー
ボード等の入力装置,表示装置やプリンタ等の出力装
置,ハードディスクやフロッピィ・ディスクを含む記憶
装置等が含まれる。この記憶装置に異常箇所検知用基準
データが格納される。PLC10のCPU11は異常を検知
したときにこの異常箇所検知用基準データを参照して異
常箇所を特定する処理を行う。もっとも,この異常箇所
検知用基準データは異常判定用基準データとともにRA
M13に格納するようにしてもよい。
The PLC 10 is connected to the console 20 via the operation unit I / F 17. The console 20 includes a computer main body (a so-called personal computer or the like), an input device such as a keyboard, an output device such as a display device or a printer, and a storage device including a hard disk and a floppy disk. This storage device stores the reference data for detecting an abnormal point. When the CPU 11 of the PLC 10 detects an abnormality, the CPU 11 performs a process of referring to the abnormal point detection reference data to specify the abnormal point. However, this reference data for detecting an abnormal point is used together with the reference data for abnormality determination in RA.
It may be stored in M13.

【0043】コンソール20の入力装置はPLC10に設定
すべきユーザ・プログラムの設定,上述した基準データ
をPLC10に作成させる指令の入力等の操作入力を入力
するために用いられる。コンソール20の出力装置(表示
装置またはプリンタ)は異常が発生した旨の報知,発見
した故障箇所の報知等の出力のために用いられる。
The input device of the console 20 is used for inputting an operation input such as setting of a user program to be set in the PLC 10 and inputting a command for causing the PLC 10 to create the above-described reference data. The output device (display device or printer) of the console 20 is used for outputting information such as notification of occurrence of an abnormality, notification of a found failure location, and the like.

【0044】故障診断装置がPLCと別体のユニットと
して構成された場合には,この装置は故障診断処理を実
行するCPU,故障診断プログラムを格納したROM,
タイマ,異常判定用基準データを格納するRAM,およ
び異常箇所検知用基準データを格納するRAMまたは他
の記憶装置によって構成されるであろう。この故障診断
装置はPLCのI/Oテーブルを一定周期でアクセスす
ることにより実際の出力パターンを取込むことになるで
あろう。
When the failure diagnosis device is configured as a unit separate from the PLC, the failure diagnosis device includes a CPU for executing a failure diagnosis process, a ROM storing a failure diagnosis program,
It may be constituted by a timer, a RAM for storing the reference data for abnormality determination, and a RAM or another storage device for storing the reference data for abnormality detection. This fault diagnosis device will fetch the actual output pattern by accessing the PLC I / O table at regular intervals.

【0045】(2) 被制御システムの構成およびその制御
の例 図2は被制御システムの一例を示している。
(2) Configuration of Controlled System and Example of Control FIG. 2 shows an example of the controlled system.

【0046】ワークWは搬送コンベア91によって搬送さ
れる。この搬送コンベア91は第1のモータ(M1)72に
よって駆動される。搬送コンベア91の途上において,ワ
ークWの存在の検出およびワークWに付いているバリの
検出が自動的に行われる。そのために第1のワーク検出
器55およびバリ検出器56が配置されている。ワークWに
バリが付いていることまたは所定量よりも大きいバリが
あることが検知された場合には,そのワークWは不良排
除空圧シリンダ73によってコンベア91上から排除され
る。このシリンダ73の動作中はモータ72の回転が停止さ
れ,コンベア91は止る。
The work W is transported by the transport conveyor 91. The transport conveyor 91 is driven by a first motor (M1) 72. In the course of the conveyor 91, the detection of the presence of the work W and the detection of burrs on the work W are automatically performed. For this purpose, a first work detector 55 and a burr detector 56 are provided. When it is detected that the work W has burrs or that there is a burr larger than a predetermined amount, the work W is removed from the conveyor 91 by the defective removal pneumatic cylinder 73. During the operation of the cylinder 73, the rotation of the motor 72 is stopped, and the conveyor 91 is stopped.

【0047】搬送コンベア91によってその終端まで搬送
されたワークWは搬送台92上に移される。コンベア91の
終端付近まで搬送されたワークWを検出するための滞留
検出器57が設けられている。滞留検出器57がワークWを
検知している状態が一定時間以上連続した場合には,操
作盤90の異常ランプ71が点灯する。
The work W conveyed to the end by the conveyor 91 is moved to a carrier 92. A stay detector 57 for detecting the work W transported to near the end of the conveyor 91 is provided. When the state in which the stay detector 57 detects the work W has continued for a certain period of time or more, the abnormal lamp 71 of the operation panel 90 is turned on.

【0048】搬送コンベア91から搬送台92上に移送され
たワークWを検出するために第2のワーク検出器58が設
けられている。このワーク検出器58によってワークWが
検知されると,投入空圧シリンダ75が駆動され,この投
入シリンダ75のロッドによって,ワークWは搬送台92上
を加工台93に向って押出される。加工台93上に移された
ワークWは第3のワーク検出器61によって検知される。
A second work detector 58 is provided for detecting the work W transferred from the transfer conveyor 91 onto the transfer table 92. When the work W is detected by the work detector 58, the input pneumatic cylinder 75 is driven, and the work W is pushed out onto the transfer table 92 toward the processing table 93 by the rod of the input cylinder 75. The work W transferred to the processing table 93 is detected by the third work detector 61.

【0049】ワークWが加工台93上に移されると,その
ワークWを固定する治具77がワークWを締付ける方向に
駆動される。また,第2のモータ(M2)78が回転駆動
され,モータ78の回転軸に固定されたドリル79がモータ
78とともに下降して,ワークWに穴があけられる。穴あ
け作業ののち,ドリル79がモータ78とともに上昇し,モ
ータ78の回転が停止する。穴加工されたワークは最後に
排出空圧シリンダ81によって加工台93から排出される。
When the work W is moved onto the worktable 93, a jig 77 for fixing the work W is driven in a direction to tighten the work W. A second motor (M2) 78 is driven to rotate, and a drill 79 fixed to the rotating shaft of the motor 78
The work W is lowered with 78, and a hole is formed in the work W. After the drilling operation, the drill 79 moves up with the motor 78, and the rotation of the motor 78 stops. The workpiece on which the holes are formed is finally discharged from the processing table 93 by the discharge pneumatic cylinder 81.

【0050】操作盤90には運転スイッチ50,停止スイッ
チ51,解除スイッチ52,運転中ランプ70および異常ラン
プ71が設けられている。運転スイッチ50がオンとされる
ことにより,モータ72の起動から始まる上述した一連の
工程が開始されるとともに運転中ランプ70が点灯する。
また,停止スイッチ51がオンとされると,上記工程の動
作が停止するとともに運転中ランプ70が消灯する。上述
したように,滞留検出器57の検出信号が一定時間以上連
続すると異常ランプ71が点灯し,運転中ランプ70が消灯
する。この状態において解除スイッチ52がオンとされる
と異常ランプ71が消灯する。
The operation panel 90 is provided with an operation switch 50, a stop switch 51, a release switch 52, a running lamp 70 and an abnormal lamp 71. When the operation switch 50 is turned on, the above-described series of steps starting from the activation of the motor 72 is started, and the in-operation lamp 70 is turned on.
When the stop switch 51 is turned on, the operation of the above steps is stopped, and the running lamp 70 is turned off. As described above, when the detection signal of the stay detector 57 continues for a predetermined time or more, the abnormal lamp 71 is turned on, and the operating lamp 70 is turned off. When the release switch 52 is turned on in this state, the abnormal lamp 71 is turned off.

【0051】不良排出シリンダ73にはそのロッドが進出
(前進)してその前進端に至ったことを検知する不良前
端検出器,およびロッドが後退してその後退端に至った
ことを検出する不良後端検出器(いずれも図示略)が設
けられている。同じように投入シリンダ75には投入前端
検出器および投入後端検出器が,排出シリンダ81には排
出前端検出器および排出後端検出器(いずれも図示略)
がそれぞれ設けられている。さらにドリル79(およびそ
れが取付けられたモータ78)が上昇してその上昇端に至
ったことを検出するドリル上端検出器,および下降して
その下降端に至ったことを検出するドリル下端検出器
(いずれも図示略)が設けられている。
The defective discharge cylinder 73 has a defective front end detector for detecting that the rod has advanced (advanced) and has reached its advanced end, and a defective front end detector for detecting that the rod has retracted and reached its retracted end. A rear end detector (both not shown) is provided. Similarly, the charging cylinder 75 has a charging front end detector and a charging rear end detector, and the discharging cylinder 81 has a discharging front end detector and a discharging rear end detector (both not shown).
Are provided respectively. Further, the upper end detector of the drill detects that the drill 79 (and the motor 78 to which it is attached) is raised and reaches its rising end, and the lower end detector of the drill which detects that the drill 79 is lowered and reaches its falling end. (Both not shown) are provided.

【0052】この被制御システムからPLC10へ入力す
る信号には次のものがある。先頭の(000)〜(01
5)は入力信号の番号である。また,末尾の( )内は
省略表現である。
The signals input from the controlled system to the PLC 10 are as follows. (000) to (01
5) is the number of the input signal. The abbreviations are shown in parentheses at the end.

【0053】(000)運転スイッチ50のオン/オフ信
号(運転SW) (001)停止スイッチ51のオン/オフ信号(停止S
W) (002)解除スイッチ52のオン/オフ信号(解除S
W) (003)不良前端検出器の検出信号(不良前端) (004)不良後端検出器の検出信号(不良後端) (005)第1のワーク検出器55のワーク検出信号(検
出1) (006)バリ検出器56のバリ検出信号(バリ検出) (007)滞留検出器57の検出信号(滞留検出) (008)第2のワーク検出器58のワーク検出信号(検
出2) (009)投入前端検出器の検出信号(投入前端) (010)投入後端検出器の検出信号(投入後端) (011)第3のワーク検出器61のワーク検出信号(検
出3) (012)ドリル上端検出器の検出信号(ドリル上端) (013)ドリル下端検出器の検出信号(ドリル下端) (014)排出前端検出器の検出信号(排出前端) (015)排出後端検出器の検出信号(排出後端)
(000) ON / OFF signal of operation switch 50 (operation SW) (001) ON / OFF signal of stop switch 51 (stop S
W) (002) ON / OFF signal of release switch 52 (release S
W) (003) Detection signal of defective front end detector (Front front end) (004) Detection signal of defective rear end detector (Defective rear end) (005) Work detection signal of first work detector 55 (Detection 1) (006) Burr detection signal of burr detector 56 (burr detection) (007) Detection signal of stay detector 57 (stay detection) (008) Work detection signal of second work detector 58 (detection 2) (009) Detection signal of input front end detector (front end of input) (010) Detection signal of input rear end detector (rear end of input) (011) Work detection signal of third work detector 61 (detection 3) (012) Upper end of drill Detector detection signal (Drill upper end) (013) Drill lower end detector detection signal (Drill lower end) (014) Detection signal of discharge front end detector (Ejection front end) (015) Detection signal of discharge rear end detector (Ejection) Rear end)

【0054】PLC10からこの被制御システムに出力さ
れる信号には次のものがある。先頭の(100)〜(1
12)は出力信号の番号である。また末尾の( )内は
省略表現である。
The signals output from the PLC 10 to the controlled system include the following. (100) to (1
12) is the number of the output signal. The abbreviations in parentheses are used.

【0055】(100)運転中ランプ70のオン/オフ制
御信号(運転中L) (101)異常ランプ71のオン/オフ制御信号(異常
L) (102)第1のモータ72の回転駆動制御信号(M1回
転) (103)不良排除シリンダ73の前進駆動制御信号(不
良前進) (104)不良排除シリンダ73の後退駆動制御信号(不
良後退) (105)投入シリンダ75の前進駆動制御信号(投入前
進) (106)投入シリンダ75の後退駆動制御信号(投入後
退) (107)固定治具77の締付け駆動制御信号(治具締
め) (108)第2のモータ78の回転駆動制御信号(M2回
転) (109)ドリル79の上昇駆動制御信号(ドリル上昇) (110)ドリル79の下降駆動制御信号(ドリル下降) (111)排出シリンダ81の前進駆動制御信号(排出前
進) (112)排出シリンダ81の後退駆動制御信号(排出後
退)
(100) ON / OFF control signal of operating lamp 70 (operating L) (101) ON / OFF control signal of abnormal lamp 71 (abnormal L) (102) Rotation drive control signal of first motor 72 (M1 rotation) (103) Forward drive control signal of defective exclusion cylinder 73 (defective forward) (104) Reverse drive control signal of defective exclusion cylinder 73 (defective reverse) (105) Forward drive control signal of input cylinder 75 (input forward) (106) Retraction drive control signal of the input cylinder 75 (input retraction) (107) Tightening drive control signal of the fixing jig 77 (jig tightening) (108) Rotation drive control signal of the second motor 78 (M2 rotation) (109) Drill 79 up drive control signal (drill up) (110) Drill 79 down drive control signal (drill down) (111) Forward drive control signal of discharge cylinder 81 (discharge forward) (112) Reverse drive control signal of the discharge cylinder 81 (ejection retracted)

【0056】図3は上述した被制御システムを制御する
PLC10に設定されたプログラム(ユーザ・プログラ
ム)の一部を示すものである。このプログラムは入力信
号によりオン,オフされる接点,出力信号を発生するリ
レー,このリレーによってオン,オフされる接点,なら
びに内部補助リレーおよびその接点を用いて表現されて
いる。
FIG. 3 shows a part of a program (user program) set in the PLC 10 for controlling the above-mentioned controlled system. This program is expressed using contacts that are turned on and off by input signals, relays that generate output signals, contacts that are turned on and off by the relays, and internal auxiliary relays and their contacts.

【0057】図3に示された内部補助リレーおよびその
接点の意味は次の通りである。セット中は,穴あけ加工
全体の開始を表わし,穴あけ加工,ワークの排出が終了
するまでオンとされる。セット完は,ワークの加工台へ
のセットが終了したことを表わす。加工完は,ワークの
加工台からの排出が終了したことを表わす。投入記憶
は,ワークを加工台へ投入したことを表わし,加工,排
出が終了するまでオンとされる。
The meanings of the internal auxiliary relay and its contacts shown in FIG. 3 are as follows. During the setting, it indicates the start of the entire drilling operation, and is turned on until the drilling operation and the discharge of the work are completed. The completion of the setting indicates that the setting of the work on the processing table is completed. Completion of processing indicates that the discharge of the work from the processing table has been completed. The loading memory indicates that the workpiece has been loaded into the processing table, and is turned on until processing and discharging are completed.

【0058】図4は穴あけ加工全体(投入シリンダ75に
よるワークWの搬送台92から加工台93への搬送,治具77
によるワークWの固定,モータ78とドリル79によるワー
クWの穴あけ,排出シリンダ81による穴あけ加工済ワー
クの加工台93からの排出)の動作を示すものである。P
LC10への入力信号とPLC10からの出力信号が示され
ている。また,時間の推移にしたがって出力信号の状態
(出力パターン)が遷移する様子が示されている。遷移
する出力信号の各状態(破線が引かれた位置における信
号の状態)に[1]〜[7]の番号が割当てられてい
る。これらの各状態を以下ではステートと呼ぶことにす
る。
FIG. 4 shows the whole drilling operation (transfer of the workpiece W from the transfer table 92 to the processing table 93 by the input cylinder 75, a jig 77).
3 shows the operation of fixing the work W, the drilling of the work W by the motor 78 and the drill 79, and the discharge of the drilled work from the processing table 93 by the discharge cylinder 81). P
An input signal to the LC 10 and an output signal from the PLC 10 are shown. Further, a state in which the state of the output signal (output pattern) changes with the transition of time is shown. Numbers [1] to [7] are assigned to each state of the transitioning output signal (the state of the signal at the position where the broken line is drawn). Each of these states is hereinafter referred to as a state.

【0059】入力信号「検出2」の立上りをトリガとし
て,後述するステート[7]からステート[1]に移る
(トリガとなる入力信号と出力信号との関連を鎖線と矢
印で示す)。このステートの遷移は図3に示すアドレス
00039のプログラムによって実行される。第2ワー
ク検出器58がワークWを検知すると投入シリンダ75のロ
ッドが進出し,ワークWを加工台93の方向に押し出す。
With the rising edge of the input signal "detection 2" as a trigger, the state shifts from state [7] to state [1] to be described later (the relationship between the input signal and output signal serving as a trigger is indicated by a chain line and an arrow). The transition of this state is executed by the program at the address 0039 shown in FIG. When the second work detector 58 detects the work W, the rod of the input cylinder 75 advances, and pushes the work W in the direction of the processing table 93.

【0060】次に,投入シリンダ75のロッドがその前進
端に至ったことが投入前端検出器によって検知されると
(入力信号「投入前端」オン),ステート[1]からス
テート[2]に遷移し,投入シリンダ75のロッドは前進
動作を停止して後退動作を開始し,治具77が加工台93に
送られてきたワークの固定を開始し,さらにモータ78が
回転駆動される。これは図3に示すアドレス00052
等のプログラムにしたがって実行される。
Next, when the input front end detector detects that the rod of the input cylinder 75 has reached its forward end (input signal “input front end” is on), the state transits from state [1] to state [2]. Then, the rod of the input cylinder 75 stops the forward movement and starts the backward movement, the jig 77 starts fixing the work sent to the processing table 93, and the motor 78 is further driven to rotate. This is the address 00005 shown in FIG.
And so on.

【0061】投入シリンダ75のロッドが後退端に至った
ことが投入後端検出器によって検知されると(入力信号
「投入後端」オフ),ステート[2]からステート
[3]に遷移し,投入シリンダ75の後退動作が停止し,
ドリル79が下降を開始する。これにより,ドリル79によ
ってワークWに穴があけられていく。
When the input rear end detector detects that the rod of the input cylinder 75 has reached the retreat end (input signal “input rear end” is off), the state transits from state [2] to state [3]. The retraction operation of the charging cylinder 75 stops,
Drill 79 begins to descend. Thus, a hole is formed in the work W by the drill 79.

【0062】ドリル下端検出器によってドリル79が下降
端に達したことが検知されると(入力信号「ドリル下
端」オン),ステート[3]からステート[4]に遷移
し,ドリル79の下降が停止してドリル79は上昇を開始す
る。
When the drill lower end detector detects that the drill 79 has reached the lower end (input signal “drill lower end” is ON), the state transits from state [3] to state [4], and the lowering of the drill 79 is performed. Stop and drill 79 begins to ascend.

【0063】ドリル上端検出器によってドリル79が上昇
端に達したことが検知されると(入力信号「ドリル上
端」オン),ステート[4]からステート[5]に遷移
し,治具77がワークを離し,モータ78の回転が停止し,
ドリル79の上昇が停止し,排出シリンダ81のロッドが前
進を開始する。排出シリンダ81のロッドの前進により,
穴あけ加工されたワークWは加工台93から排出されるこ
とになる。
When it is detected by the drill upper end detector that the drill 79 has reached the rising end (input signal “drill upper end” is on), the state transits from state [4] to state [5], and the jig 77 is moved to the work. And the rotation of the motor 78 stops.
The lifting of the drill 79 stops, and the rod of the discharge cylinder 81 starts to move forward. As the rod of the discharge cylinder 81 advances,
The drilled workpiece W is discharged from the processing table 93.

【0064】排出前端検出器によって排出シリンダ81の
ロッドが前進端に至ったことが検知されると(入力信号
「排出前端」オン),ステート[5]からステート
[6]に遷移し,排出シリンダ81の前進が停止し,後退
を開始する。
When the discharge front end detector detects that the rod of the discharge cylinder 81 has reached the forward end (input signal “discharge front end” is ON), the state shifts from state [5] to state [6], and the discharge cylinder 81 81 stops moving forward and starts retreating.

【0065】排出後端検出器によって排出シリンダ81の
ロッドが後退端に達したことが検知されると(入力信号
「排出後端」オン),ステート[6]からステート
[7]に遷移する。以上で,1回の穴あけ工程が終了す
る。
When the discharge rear end detector detects that the rod of the discharge cylinder 81 has reached the rearward end (input signal “discharge rear end” is on), the state transits from state [6] to state [7]. Thus, one drilling step is completed.

【0066】(3) 故障診断処理 図2に示す被制御システムにおて,バリ検出に基づく不
良排除シリンダ73による不良品排除の制御と,上述した
穴あけ加工制御とは相互に殆ど関連性がない。したがっ
て,不良品排除動作の故障診断と穴あけ加工動作の故障
診断とは別個独立に行うことが可能である。以下では穴
あけ加工動作の故障診断に限って説明することとする。
それによってもこの発明の本質を完全に理解でき,かつ
当業者がこの発明を実施することができるからである。
(3) Failure Diagnosis Processing In the controlled system shown in FIG. 2, the control of defective product removal by the defective cylinder 73 based on the detection of burrs and the above-described drilling control have little relevance to each other. . Therefore, the fault diagnosis of the rejection operation and the fault diagnosis of the drilling operation can be performed separately and independently. Hereinafter, the description will be limited to the failure diagnosis of the drilling operation.
Thereby, the essence of the present invention can be completely understood, and those skilled in the art can implement the present invention.

【0067】図5は異常検知のための異常判定用基準デ
ータの一部を示している。異常判定用基準データはステ
ートごとに設けられており,そのステートの出力パター
ン・データ,前ステートからの平均遷移時間および遷移
時間の変動許容幅から構成されている。
FIG. 5 shows a part of the reference data for abnormality determination for abnormality detection. The abnormality determination reference data is provided for each state, and includes output pattern data of the state, an average transition time from the previous state, and a permissible range of the transition time.

【0068】出力パターン・データは監視の対象となる
すべての出力信号の状態を表わしたデータの集まりであ
る。各出力信号の状態は1ビットで表現され,この実施
例ではオン状態が1で,オフ状態が0でそれぞれ表わさ
れている。
The output pattern data is a collection of data representing the state of all output signals to be monitored. The state of each output signal is represented by one bit. In this embodiment, the on state is 1 and the off state is 0.

【0069】図6は,上述した7つのステート[1]〜
[7]の出力パターン・データを異常判定用基準データ
から抽出してまとめたものであり,図4に示す8種類の
出力信号の状態を表わしている。図4に示すタイミング
・チャートと図6のテーブルとを比較することによりそ
の対応関係が容易に理解できるであろう。
FIG. 6 shows the above-mentioned seven states [1]-
The output pattern data of [7] is extracted from the abnormality determination reference data and summarized, and shows the states of the eight types of output signals shown in FIG. The correspondence can be easily understood by comparing the timing chart shown in FIG. 4 with the table of FIG.

【0070】このような出力パターン・データは被制御
システムをPLC10の制御の下で実際に稼動し,それが
正常に動作したときの出力信号の状態を,それが変化し
たときに抽出することにより作成することができる。最
も一般的にはPLC10のRAM14に設けられているI/
Oテーブルを一定周期でサンプリングし,これを加工す
ることにより作成することができる。詳細については異
常箇所検知用基準データの作成の説明において述べる。
Such output pattern data is obtained by actually operating the controlled system under the control of the PLC 10 and extracting the state of the output signal when the system operates normally when it changes. Can be created. Most commonly, the I / O provided in the RAM 14 of the PLC 10
The O table can be created by sampling the O table at a constant period and processing it. The details will be described in the description of the creation of the abnormal point detection reference data.

【0071】前ステートからの平均遷移時間は,前ステ
ートから当該ステートに移るのに要する平均的な時間で
ある。これは被制御システムをPLC10の制御の下で繰
返し稼動し,正常に動作したときの遷移時間の平均値を
算出することにより求めることができる。もちろん,タ
イマの設定時間のようにあらかじめ分っている場合,理
論的に容易に求めることができる場合にはユーザが入力
してもよい。
The average transition time from the previous state is the average time required to transition from the previous state to the state. This can be determined by repeatedly operating the controlled system under the control of the PLC 10 and calculating the average transition time when the system operates normally. Of course, when the time is known in advance, such as the set time of the timer, or when it can be theoretically easily obtained, the user may input.

【0072】遷移時間の変動許容幅は,実際の遷移時間
の上記平均遷移時間からのずれの許容範囲を表わすもの
で,一般にはユーザによって入力されるであろう。もっ
とも,すべての許容幅を平均遷移時間に比例する値とし
て,この比例定数を一律に定めるようにしてもよい。
The allowable variation time of the transition time represents the allowable range of deviation of the actual transition time from the average transition time, and will generally be input by the user. Of course, this proportionality constant may be determined uniformly, with all allowable widths being values proportional to the average transition time.

【0073】遷移時間に関するデータとしては,上述し
た平均値と許容幅の組合せ以外に,たとえば基準値と下
側許容幅と上側許容幅との組合せ,最大値と最小値の組
合せなどを用いることもできる。
As the data relating to the transition time, in addition to the above-described combination of the average value and the allowable width, for example, a combination of the reference value, the lower allowable width, and the upper allowable width, and the combination of the maximum value and the minimum value may be used. it can.

【0074】異常箇所検知用基準データは上述した各ス
テートの異常判定用基準データごとにそれに対応する入
力信号の期待状態(入力期待パターン)を表わすデータ
によって構成される。すなわち,異常箇所検知用基準デ
ータはステートごとにあらかじめ設定された入力期待パ
ターンからなる。
The reference data for detecting an abnormal point is constituted by data representing an expected state (input expected pattern) of an input signal corresponding to the reference data for abnormality determination in each state described above. That is, the abnormal point detection reference data includes an expected input pattern set in advance for each state.

【0075】異常箇所検知用基準データは上述した異常
判定用基準データを用いた異常検知処理において異常が
検知されたときにその検知された異常の原因となる箇所
ないしは部位を特定するために用いられる。したがっ
て,原則的には,監視の対象となっている出力信号に直
接または間接に影響を及ぼす入力信号のすべてが選択さ
れる。しかしながら,異常箇所特定処理から漏れても問
題のない部位に関する入力信号を意識的に外すこともで
きる。監視の対象となっている出力信号に関連性のない
入力信号は選択する必要はない。たとえば,図2に示す
穴あけ加工工程と不良ワーク排除工程とは関連性が無い
ので,穴あけ加工工程に関する異常判定用基準データに
関連させてワーク排除工程に関する入力信号を異常箇所
検知用基準データ中に含まれる必要はない。
The abnormal point detection reference data is used to specify a part or a part that causes the detected abnormality when an abnormality is detected in the abnormality detection processing using the above-described abnormality determination reference data. . Therefore, in principle, all input signals which directly or indirectly affect the output signal to be monitored are selected. However, it is also possible to intentionally remove an input signal relating to a part that does not cause a problem even if it leaks from the abnormal part specifying process. It is not necessary to select an input signal that is unrelated to the output signal being monitored. For example, since there is no relationship between the drilling process and the defective work elimination process shown in FIG. 2, the input signal related to the work exclusion process is included in the reference data for abnormal location detection in association with the abnormality determination reference data for the drilling process. It need not be included.

【0076】場合によっては1つの出力基準パターンに
対応して複数の入力期待パターンが存在しうることがあ
る。複数の入力信号のOR条件によって次のステートに
進むような場合である。このような場合には,1ステー
トの異常判定用基準データに対応させて複数の入力期待
パターンをあらかじめ登録しておく。
In some cases, there may be a plurality of expected input patterns corresponding to one output reference pattern. In this case, the operation proceeds to the next state depending on the OR condition of a plurality of input signals. In such a case, a plurality of expected input patterns are registered in advance in association with the one-state abnormality determination reference data.

【0077】図7は異常箇所検知用基準データの一例を
示すものであり,図6に示す各ステートに対応する入力
期待パターンから構成されている。この入力期待パター
ンにおいても各入力信号の期待状態は1ビットで表現さ
れ,オンが1,オフが0によってそれぞれ表わされてい
る。図4に示す入力信号のタイミング・チャートと図7
のテーブルを比較することにより,それらの対応関係が
容易に理解できるであろう。
FIG. 7 shows an example of abnormal point detection reference data, which is composed of expected input patterns corresponding to each state shown in FIG. Also in this input expected pattern, the expected state of each input signal is represented by 1 bit, and ON is represented by 1 and OFF is represented by 0. The timing chart of the input signal shown in FIG.
By comparing the tables, the correspondence between them can be easily understood.

【0078】このような入力期待パターンを含む異常箇
所検知用基準データは,被制御システムをPLC10の制
御の下に稼動させておき,被制御システムが正常に動作
している場合において,出力信号の状態が変化したとき
の入力信号の状態を読取り,出力信号の状態遷移に関す
る異常判定用基準データに対応して読取った入力信号の
状態を記憶することにより作成することができる。
The reference data for detecting an abnormal part including such an expected input pattern is obtained by outputting the output signal when the controlled system is operating normally under the control of the PLC 10 while the controlled system is operating normally. It can be created by reading the state of the input signal when the state changes, and storing the read state of the input signal corresponding to the abnormality determination reference data relating to the state transition of the output signal.

【0079】とくにPLC10による被制御システムの制
御においては,PLC10のRAM14にI/Oテーブルが
設けられているので,このI/Oテーブルを利用して,
図6に示す出力基準パターンと図7に示す入力期待パタ
ーンとを次のようにして作成することができる。
In the control of the controlled system by the PLC 10 in particular, since an I / O table is provided in the RAM 14 of the PLC 10, the I / O table is used.
The output reference pattern shown in FIG. 6 and the expected input pattern shown in FIG. 7 can be created as follows.

【0080】PLC10の制御の下に被制御システムを稼
動する。被制御システムが正常に動作しているときの入
出力信号の状態を記憶しているRAM14内のI/Oテー
ブルのデータを一定のサンプリング時間ごとに読出す。
読出した入,出力信号の状態のうちで出力信号の状態に
変化があったかどうかを調べる。出力信号の状態に変化
があったときには,変化後の出力信号の状態を出力基準
パターンとしてステート番号に対応して記憶し,異常判
定用基準データの一部を作成する。また出力信号の状態
が変化した直後の入力信号の状態を入力期待パターンと
して上記ステート番号に対応させて記憶することにより
異常箇所検知用基準データを作成する。
The controlled system is operated under the control of the PLC 10. The data of the I / O table in the RAM 14, which stores the state of the input / output signals when the controlled system is operating normally, is read at regular sampling intervals.
It is checked whether the state of the output signal has changed among the states of the read input and output signals. When there is a change in the state of the output signal, the state of the output signal after the change is stored as an output reference pattern corresponding to the state number, and a part of the abnormality determination reference data is created. Further, the state of the input signal immediately after the change of the state of the output signal is stored as an expected input pattern in association with the above-mentioned state number, thereby creating abnormal point detection reference data.

【0081】上述したように異常検知処理において常時
参照するのは異常判定用基準データである。このためこ
の異常判定用基準データについてはCPU11によって迅
速にアクセス可能なRAM13に格納しておくことが好ま
しい。これに対して異常箇所検知用基準データは異常が
検知されたときにはじめて参照されるものであるから,
必ずしも高速性が要求されずコンソール20の記憶装置
(ハードディスク,フロッピィ・ディスク等)に格納す
ることができる。もちろん,異常箇所検知用基準データ
をRAM13に格納しておいてもよいのはいうまでもな
い。
As described above, what is always referred to in the abnormality detection processing is the abnormality determination reference data. Therefore, it is preferable to store the abnormality determination reference data in the RAM 13 which can be quickly accessed by the CPU 11. On the other hand, the abnormal point detection reference data is referred to for the first time when an abnormality is detected.
It does not necessarily require high speed, and can be stored in a storage device (hard disk, floppy disk, etc.) of the console 20. Of course, it goes without saying that the abnormal point detection reference data may be stored in the RAM 13.

【0082】図8はPLC10のCPU11によって実行さ
れる故障診断処理のアルゴリズムを示すものである。
FIG. 8 shows an algorithm of a failure diagnosis process executed by the CPU 11 of the PLC 10.

【0083】PLC10の機能の一部として故障診断機能
が付加されている場合にはそのCPU11は,故障診断処
理の他に,PLC本来の処理すなわち図3にその一部を
示すユーザ・プログラムにしたがう被制御システムの制
御処理を実行する。CPU11は一定周期(サイクル)で
一連の処理を繰返しており,各サイクルの前半部分で被
制御システムの制御処理を,後半部で故障診断処理をそ
れぞれ実行する。したがって,図8に示す故障診断処理
は一定周期で繰返される。
When a failure diagnosis function is added as a part of the functions of the PLC 10, the CPU 11 follows the PLC proper processing, that is, a user program partially shown in FIG. 3, in addition to the failure diagnosis processing. Execute the control process of the controlled system. The CPU 11 repeats a series of processing at a fixed cycle (cycle), and executes control processing of the controlled system in the first half of each cycle and failure diagnosis processing in the second half. Therefore, the failure diagnosis processing shown in FIG. 8 is repeated at a constant cycle.

【0084】図8に示す故障診断処理は異常検知処理と
異常箇所特定処理とから構成されている。異常検知処理
は異常判定用基準データを参照して行われる。異常判定
用基準データは上述のように出力信号の状態にのみ関係
している。このように,出力信号の状態のみを監視して
も充分に異常の発生を検知することが可能である。異常
検知処理はリアル・タイムで実行しなければならない。
異常検知処理において出力信号状態のみを監視するよう
にすることにより,処理の迅速化を図ることができ,C
PU11の負担が軽減する。図8に示すこの実施例の異常
検知処理では,ステートの遷移の順序と遷移時間のチェ
ックとが行われる。異常検知処理において異常が検知さ
れたときにはじめて異常箇所検知用基準データを参照し
た異常箇所の特定処理に進む。
The failure diagnosis processing shown in FIG. 8 is composed of an abnormality detection processing and an abnormal point identification processing. The abnormality detection processing is performed with reference to the abnormality determination reference data. The abnormality determination reference data is related only to the state of the output signal as described above. As described above, even if only the state of the output signal is monitored, it is possible to sufficiently detect the occurrence of the abnormality. The abnormality detection process must be performed in real time.
By monitoring only the output signal state in the abnormality detection processing, the processing can be speeded up.
The burden on PU11 is reduced. In the abnormality detection processing of this embodiment shown in FIG. 8, the order of state transition and the transition time are checked. When an abnormality is detected in the abnormality detection process, the process first proceeds to the process of specifying an abnormal portion with reference to the abnormal portion detection reference data.

【0085】RAM14のI/Oテーブルから出力信号の
状態(出力パターン)が読取られる(サンプルする)
(ステップ101 )。RAM14の所定エリアには前回サン
プルした出力パターンが記憶されているので,前回のサ
ンプル・パターンと今回のサンプル・パターンとが比較
される(ステップ102 )。
The state (output pattern) of the output signal is read (sampled) from the I / O table of the RAM 14.
(Step 101). Since the output pattern sampled last time is stored in the predetermined area of the RAM 14, the previous sample pattern is compared with the current sample pattern (step 102).

【0086】タイマ15は前ステートから現ステートに遷
移したときに起動され,現ステートに遷移した時点から
の時間を計時している。
The timer 15 is started when a transition is made from the previous state to the current state, and measures the time from the point of the transition to the current state.

【0087】ステップ102 において前回のサンプル・パ
ターンと今回のサンプル・パターンとが同一であると判
定された場合には,現ステートから次のステートに遷移
するのに許される時間の範囲内かどうかがチェックされ
る(ステップ106 )。
If it is determined in step 102 that the previous sample pattern is the same as the current sample pattern, it is determined whether the current sample pattern is within the time range allowed to transition from the current state to the next state. It is checked (step 106).

【0088】すなわち,現ステートをステート[i]と
する。次のステートはステート[i+1]である。タイ
マ15は前ステート[i−1]から現ステート[i]に遷
移した時点からの時間を計時している。現ステート
[i]から次ステート[i+1]に遷移するのに許され
る時間は,次ステート[i+1]の基準データ中の「前
ステートからの平均遷移時間」と「遷移時間の変動許容
幅」によって求められる。タイマ15の計時時間が次ステ
ート[i+1]の基準データから求められた遷移許容時
間の範囲内かどうかがステップ106 で判定される。
That is, the current state is set to state [i]. The next state is state [i + 1]. The timer 15 counts the time from the time when the previous state [i-1] transits to the current state [i]. The time allowed to transition from the current state [i] to the next state [i + 1] is determined by the “average transition time from the previous state” and the “permissible range of transition time” in the reference data of the next state [i + 1]. Desired. It is determined in step 106 whether the time measured by the timer 15 is within the range of the allowable transition time obtained from the reference data of the next state [i + 1].

【0089】経過時間が許容範囲内であれば,今回のサ
ンプル・パターンをRAM14の上記エリアに記憶してス
テップ101 に戻ることになる(ステップ107 )。
If the elapsed time is within the allowable range, the current sample pattern is stored in the above-mentioned area of the RAM 14 and the process returns to the step 101 (step 107).

【0090】タイマ15によって計時されている経過時間
が遷移許容時間を超えていれば,ステートが遷移するた
めに許された時間が経過しても次のステートに遷移して
いないということであるから,何らかの異常が生じたも
のと判定され,コンソール20の表示装置に異常が検知さ
れた旨および異常の生じている出力信号が表示され(ス
テップ108 ),ステップ109 から始まる異常箇所の検知
処理に進む。異常の生じている出力信号は,今回のサン
プル・パターンと次ステート[i+1]の出力パターン
との比較において,不一致の箇所として特定することが
できる。
If the elapsed time measured by the timer 15 exceeds the allowable transition time, it means that the transition to the next state has not been made even after the time allowed for the state transition has elapsed. It is determined that an abnormality has occurred, and the display device of the console 20 indicates that an abnormality has been detected and an output signal indicating that the abnormality has occurred (step 108), and proceeds to the process of detecting an abnormal portion starting from step 109. . An output signal in which an abnormality has occurred can be identified as a non-coincidence point in comparison between the current sample pattern and the output pattern of the next state [i + 1].

【0091】ステップ102 において,前回サンプル・パ
ターンと今回サンプル・パターンとが異なる場合には,
出力信号の状態,すなわちステートが遷移したと判定さ
れる。この場合には,タイマ15の計時時間がステート
[i]からステート[i+1]への実際の遷移時間とし
て読取られる(ステップ103 )。また,今回のサンプル
・パターンと遷移後のステート[i+1]の基準データ
に含まれる出力パターンとが比較される(ステップ104
)。
In step 102, if the previous sample pattern is different from the current sample pattern,
It is determined that the state of the output signal, that is, the state has transitioned. In this case, the time measured by the timer 15 is read as the actual transition time from the state [i] to the state [i + 1] (step 103). Also, the current sample pattern is compared with the output pattern included in the reference data of the state [i + 1] after the transition (step 104).
).

【0092】今回のサンプル・パターンと基準出力パタ
ーンとが一致していれば(ステップ105 ),次のステッ
プ106 の遷移時間のチェックに進む。今回のサンプル・
パターンと基準出力パターンとが不一致の場合には,異
常と判定され,異常検知の旨および異常の生じている出
力信号が表示装置に表示され(ステップ108 ),ステッ
プ109 から始まる異常箇所の特定処理に進む。今回のサ
ンプル・パターンと基準出力パターンとの比較におい
て,不一致の箇所が異常出力信号に相当する。
If the current sample pattern matches the reference output pattern (step 105), the flow advances to the next step 106 for checking the transition time. This sample
If the pattern and the reference output pattern do not match, it is determined that an error has occurred, an error is detected, and an output signal indicating that the error has occurred is displayed on the display device (step 108). Proceed to. In the comparison between the current sample pattern and the reference output pattern, a mismatched portion corresponds to an abnormal output signal.

【0093】ステート[i]からステート[i+1]に
遷移したときの遷移時間のチェックにおいても,タイマ
15から得られる実際の遷移時間が,ステート[i+1]
の基準データとして記憶されている「前ステートからの
平均遷移時間」と「遷移時間の変動許容幅」に関するデ
ータから求められる遷移許容時間の範囲内かどうかが判
定される。実際の遷移時間が遷移許容時間内であれば,
今回のサンプル・パターンがRAM14に記憶され(ステ
ップ107 ),ステップ101 に戻る。実際の遷移時間が遷
移許容時間外である場合には,異常が生じた旨および異
常出力信号がコンソール20の表示装置に表示され(ステ
ップ108 ),ステップ109 以降の異常箇所特定処理に進
む。
In checking the transition time when transitioning from state [i] to state [i + 1], the timer
The actual transition time obtained from 15 is the state [i + 1]
Is determined to be within the range of the allowable transition time obtained from the data relating to the “average transition time from the previous state” and the “permissible variation of the transition time” stored as the reference data. If the actual transition time is within the transition allowable time,
The current sample pattern is stored in the RAM 14 (step 107), and the process returns to step 101. If the actual transition time is outside the transition allowable time, a message indicating that an abnormality has occurred and an abnormal output signal are displayed on the display device of the console 20 (step 108), and the process proceeds to the abnormal point specifying process after step 109.

【0094】遷移のために要する時間の計時はタイマ15
を用いずにRAM14の所定のエリアを用いて行うことも
できるのはいうまでもない。
The time required for the transition is measured by the timer 15
It is needless to say that the processing can be performed using a predetermined area of the RAM 14 without using the above.

【0095】異常箇所の特定処理においてはまず,異常
が検知された時点における入力信号の状態(入力パター
ン)がI/Oテーブルから読出され,このサンプル入力
パターンが一時的にRAM104 に記憶される(ステップ
109)。
In the process of specifying an abnormal part, first, the state (input pattern) of the input signal at the time when the abnormality is detected is read from the I / O table, and this sample input pattern is temporarily stored in the RAM 104 ( Steps
109).

【0096】続いて,異常箇所検知用基準データからス
テート[i+1](遷移許容時間が経過しても現ステー
トから次ステートに遷移しない場合には該次ステートに
相当し,現ステートから次ステートに遷移はしているが
遷移に要する時間が許容時間をオーバしてしまった場合
には該次ステートに相当する:すなわちいずれの場合に
も現ステートを[i]とすれば次ステート[i+1])
における入力期待パターンが読出され,一時記憶されて
いるサンプル入力パターンと比較される(ステップ110
)。
Subsequently, state [i + 1] (if the transition from the current state to the next state does not occur even after the allowable transition time elapses), the state corresponds to the next state, and the current state changes to the next state. If the transition is made but the time required for the transition exceeds the allowable time, it corresponds to the next state: that is, in any case, if the current state is [i], the next state [i + 1]).
Is read and compared with the temporarily stored sample input pattern (step 110).
).

【0097】この入力期待パターンとサンプル入力パタ
ーンとの比較において一致していない入力信号の状態が
あれば,その入力信号が異常箇所としてコンソール20の
表示装置に表示される(ステップ111 )。
If there is a state of the input signal that does not match in the comparison between the expected input pattern and the sample input pattern, the input signal is displayed on the display device of the console 20 as an abnormal point (step 111).

【0098】ステップ108 〜111 の処理はコンソール20
内のCPUによって実行するようにしてもよい。この場
合には,PLC10のCPU11から,異常検知に関するデ
ータ(異常出力信号やステート番号)がコンソール20の
CPUに通知されよう。
The processing of steps 108 to 111 is performed on the console 20
May be executed by the CPU in the server. In this case, the CPU 11 of the PLC 10 will notify the CPU of the console 20 of data relating to the abnormality detection (abnormal output signal or state number).

【0099】一例として,遷移許容時間が経過してもス
テート[1]における出力信号「投入前進」のビットが
1にならなかった場合を想定する。
As an example, it is assumed that the bit of the output signal “input advance” in state [1] has not become 1 even after the transition allowable time has elapsed.

【0100】図4に示すタイミング・チャートから出力
信号「投入前進」は入力信号「検出2」をトリガとして
オンとなる。しかしながら,図3に示すラダー・プログ
ラム(アドレス00039)をみると,出力信号「投入
前進」は,入力信号「検出2」のオンのみならず,入力
信号「投入後端」がオンとなっていることも条件として
オンとなる。また,出力信号「投入前進」がオンとなる
ためには入力信号「検出3」,「投入前端」,出力信号
「投入後退」および「セット完」がオンであることも条
件である。
According to the timing chart shown in FIG. 4, the output signal "input advance" is turned on by the input signal "detection 2" as a trigger. However, looking at the ladder program (address 0309) shown in FIG. 3, the output signal “input advance” indicates that not only the input signal “detection 2” is turned on but also the input signal “input rear end” is turned on. Is also turned on as a condition. Further, in order for the output signal “input forward” to be turned on, the input signal “detection 3”, “input front end”, the output signal “input reverse” and “set complete” must be on.

【0101】図9に,ステート[1]における入力期待
パターンと異常検知があったときにサンプルされたサン
プル入力パターン(異常パターン)とが並べて示されて
いる。これらのパターンを比較することにより,入力信
号「投入後端」,すなわち投入シリンダ75の投入後端検
出器に異常があることが特定される。
FIG. 9 shows an expected input pattern in state [1] and a sample input pattern (abnormal pattern) sampled when an abnormality is detected. By comparing these patterns, it is specified that the input signal “rear end”, that is, the input rear detector of the input cylinder 75 is abnormal.

【0102】入力期待パターンに,出力信号に直接関係
のあるもののみならず,セット完等の補助リレーを介し
て間接的に関係のある入力信号までを含めておけば,入
力期待パターンとサンプル入力パターンとの照合によ
り,プログラム・リストをチェックする作業を行うこと
なく,故障が発生している部位を即座に特定することが
できるようになる。
If the expected input patterns include not only those directly related to the output signal but also the input signals indirectly related through an auxiliary relay such as set completion, the expected input pattern and the sample input By collating with the pattern, it is possible to immediately identify the part where the failure has occurred without performing the operation of checking the program list.

【0103】図10は異常が検知されたときにコンソール
20の表示装置に表示される表示例を示している。異常が
検知されたときにまず上段の「出力:『投入前進』がオ
ンしない」という異常の発生と異常な出力信号とが表示
される(ステップ108 )。続いて異常箇所特定処理が行
われ,この処理で判明した入力信号および点検のための
ガイダンスが「『投入後端』が基準と不一致。上記信号
のセンサ/配線を点検して下さい。」と表示される(ス
テップ111 )。
FIG. 10 shows a console when an abnormality is detected.
20 shows display examples displayed on 20 display devices. When an abnormality is detected, first, the occurrence of an abnormality such as "output:" input forward "does not turn on" in the upper stage and an abnormal output signal are displayed (step 108). Subsequently, abnormal point identification processing is performed, and the input signal and guidance for inspection found in this processing are displayed as follows: "The" rear end "does not match the standard. Check the sensor / wiring of the above signal." Is performed (step 111).

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

【図1】故障診断装置の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of a failure diagnosis device.

【図2】被制御システムの一例を示す構成図である。FIG. 2 is a configuration diagram illustrating an example of a controlled system.

【図3】ユーザ・プログラムの一部を示すラダー図であ
る。
FIG. 3 is a ladder diagram showing a part of a user program.

【図4】被制御システムの制御動作を示すタイミング・
チャートである。
FIG. 4 is a timing chart showing the control operation of the controlled system;
It is a chart.

【図5】異常判定用基準データの一例を示す。FIG. 5 shows an example of abnormality determination reference data.

【図6】出力基準パターンの一例を示す。FIG. 6 shows an example of an output reference pattern.

【図7】異常箇所検知用基準データ(入力期待パター
ン)の一例を示す。
FIG. 7 shows an example of abnormal point detection reference data (expected input pattern).

【図8】故障診断処理手順を示すフロー・チャートであ
る。
FIG. 8 is a flowchart showing a failure diagnosis processing procedure.

【図9】入力期待パターンとサンプル入力パターン(異
常パターン)とを照合する様子を示す。
FIG. 9 shows how an expected input pattern is compared with a sample input pattern (abnormal pattern).

【図10】異常発生時の表示例を示す。FIG. 10 shows a display example when an abnormality occurs.

【図11】従来の故障診断の問題点を説明するためのラ
ダー図である。
FIG. 11 is a ladder diagram for explaining a problem of a conventional failure diagnosis.

【符号の説明】[Explanation of symbols]

10 PLC(プログラマブル・ロジック・コントロー
ラ) 11 CPU 12 ROM 13 RAM 14 RAM 15 タイマ 20 コンソール
10 PLC (Programmable Logic Controller) 11 CPU 12 ROM 13 RAM 14 RAM 15 Timer 20 Console

───────────────────────────────────────────────────── フロントページの続き (72)発明者 入江 篤 京都市右京区花園土堂町10番地 オムロ ン株式会社内 (56)参考文献 特開 昭62−49518(JP,A) 特開 昭63−292203(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 23/02 302 G05B 19/05 ────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Atsushi Irie 10 Odron, Hanazono Todocho, Ukyo-ku, Kyoto-shi (56) References JP-A-62-49518 (JP, A) (JP, A) (58) Field surveyed (Int. Cl. 7 , DB name) G05B 23/02 302 G05B 19/05

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入出力信号の状態を記憶する入出力テー
ブルを有し,あらかじめ定められたプログラムにしたが
ってシステムを制御するプログラマブル・ロジック・コ
ントローラを用い, 上記プログラマブル・ロジック・コントローラに上記プ
ログラムにしたがう上記システムの制御動作を正常に行
わせておき, 上記入出力テーブルに記憶されている入出力信号の状態
を所定のサンプル周期ごとに読出し, 読出した状態データにおいて,出力信号の状態が変化し
たときの入力信号の状態を入力期待パターンとして異常
箇所検知用基準データを作成する, 故障診断方法。
1. A programmable logic controller having an input / output table for storing states of input / output signals and controlling a system according to a predetermined program, wherein the programmable logic controller follows the program. When the control operation of the above system is performed normally, the state of the input / output signal stored in the input / output table is read out at a predetermined sampling period, and when the state of the output signal changes in the read state data, A fault diagnosis method that creates reference data for abnormal location detection using the state of the input signal as an expected input pattern.
【請求項2】 請求項1に記載の方法により異常箇所検
知用基準データをあらかじめ作成して記憶しておき, 上記読出した状態データにおいて,出力信号の状態が変
化したときの出力信号の状態を出力基準パターンとして
異常判定用基準データをあらかじめ作成して記憶してお
き, 上記プログラマブル・ロジック・コントローラの動作中
において,上記プログラマブル・ロジック・コントロー
ラの出力パターンを上記異常判定用基準データの上記出
力基準パターンと照合し, 上記出力パターンと上記出力基準パターンとが不一致で
ある場合に異常有と判定し, 異常有と判定したときの上記プログラマブル・ロジック
・コントローラの入力パターンを上記異常箇所検知用基
準データの入力期待パターンと照合することにより異常
箇所を特定する, 故障診断方法。
2. The method according to claim 1, wherein the reference data for detecting an abnormal point is prepared and stored in advance, and the state of the output signal when the state of the output signal changes in the read state data is determined. Abnormality determination reference data is created and stored in advance as an output reference pattern. During the operation of the programmable logic controller, the output pattern of the programmable logic controller is used as the output reference pattern of the abnormality determination reference data. When the output pattern and the output reference pattern do not match, it is determined that there is an abnormality. When the abnormality is determined, the input pattern of the programmable logic controller is referred to as the abnormal point detection reference data. Identify abnormal locations by comparing with expected input patterns , Failure diagnosis method.
【請求項3】 入出力信号の状態を記憶する入出力テー
ブルを有し,あらかじめ定められたプログラムにしたが
ってシステムを制御するプログラマブル・ロジック・コ
ントローラに上記プログラムにしたがう上記システムの
制御動作を正常に行わせておき,上記入出力テーブルに
記憶されている入出力信号の状態を所定のサンプル周期
ごとに読出し,読出した状態データにおいて,出力信号
の状態が変化したときの入力信号の状態を入力期待パタ
ーンとして異常箇所検知用基準データを,出力信号の状
態が変化したときの出力信号の状態を出力基準パターン
として異常判定用基準データを,それぞれあらかじめ作
成して記憶する手段, 上記プログラマブル・ロジック・コントローラの動作中
において,上記プログラマブル・ロジック・コントロー
ラの出力パターンを上記異常判定用基準データの上記出
力基準パターンと照合する手段, 上記出力パターンと上記出力基準パターンとが不一致で
ある場合に異常有と判定する手段,および 異常有と判定したときの上記プログラマブル・ロジック
・コントローラの入力パターンを上記異常箇所検知用基
準データの入力期待パターンと照合することにより異常
箇所を特定する手段, を備えた故障診断装置。
3. A programmable logic controller, which has an input / output table for storing states of input / output signals and controls the system in accordance with a predetermined program, performs a normal control operation of the system according to the program. In addition, the state of the input / output signal stored in the input / output table is read every predetermined sampling period, and the read state data indicates the state of the input signal when the state of the output signal changes in the expected input pattern. Means for preliminarily creating and storing anomaly determination reference data as an abnormal point detection reference data, and an abnormality determination reference data using an output signal state when an output signal state changes as an output reference pattern. During operation, the programmable logic controller Means for comparing the output pattern of the controller with the output reference pattern of the reference data for abnormality determination; means for determining that there is an abnormality when the output pattern does not match the output reference pattern; and determining that there is an abnormality. Means for identifying an abnormal location by comparing the input pattern of the programmable logic controller at the time with the expected input pattern of the abnormal location detection reference data.
JP03319753A 1991-11-08 1991-11-08 Failure diagnosis method and device Expired - Fee Related JP3134428B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03319753A JP3134428B2 (en) 1991-11-08 1991-11-08 Failure diagnosis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03319753A JP3134428B2 (en) 1991-11-08 1991-11-08 Failure diagnosis method and device

Publications (2)

Publication Number Publication Date
JPH05134740A JPH05134740A (en) 1993-06-01
JP3134428B2 true JP3134428B2 (en) 2001-02-13

Family

ID=18113791

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03319753A Expired - Fee Related JP3134428B2 (en) 1991-11-08 1991-11-08 Failure diagnosis method and device

Country Status (1)

Country Link
JP (1) JP3134428B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5292757B2 (en) * 2007-10-03 2013-09-18 オムロン株式会社 Station service equipment, station service system
JP5021547B2 (en) * 2008-04-03 2012-09-12 本田技研工業株式会社 Automatic machine monitoring equipment
KR101159590B1 (en) * 2010-03-30 2012-06-26 현대제철 주식회사 Device for prevention of falling of dummy bar
KR102097354B1 (en) * 2018-07-11 2020-04-06 정윤철 Monitoring device for automated system
AT522186B1 (en) * 2019-05-20 2020-09-15 Dipl Ing Dipl Ing Fh Markus Gruber Computer-implemented method for the computer-aided generation of an executable control program for controlling and / or regulating a technical process
CN113721596B (en) * 2021-09-09 2023-10-13 北京中丽制机电气有限公司 Method and system for judging faults of control system of winding machine

Also Published As

Publication number Publication date
JPH05134740A (en) 1993-06-01

Similar Documents

Publication Publication Date Title
JP3275450B2 (en) Failure diagnosis method and device
US11531319B2 (en) Failure prediction device and machine learning device
US5742624A (en) Fault detecting apparatus and method
CN106406228A (en) Information acquisition device of machine tool
JP2008097363A (en) Abnormality diagnosis method and apparatus
JP3134428B2 (en) Failure diagnosis method and device
JPH09230929A (en) In-vehicle controller failure diagnosis method and apparatus
JP4434350B2 (en) Fault diagnosis device
KR20090056706A (en) Defect detection method when handling machine tool
JP5243695B2 (en) Inspection method for equipment for processing tools
JP3380912B2 (en) Method and apparatus for grouping diagnosis targets for failure diagnosis
JPS63303407A (en) Monitoring device for sequence program control
JP3211099B2 (en) Data sequence period determination device and failure diagnosis method and device
JP3193120B2 (en) Tool abnormality detection device
JPH0677216B2 (en) Monitor device for sequence program control system
JP4437513B2 (en) Anomaly detection system
JPH1195820A (en) Machine tool with operation recording means
JPH0511835A (en) Fault diagnostic device
JPS6288540A (en) Machining tool processing equipment in FMS
JP2687726B2 (en) Failure detection device and method
JPS61164764A (en) Cutting tool damage detection device
JP4484450B2 (en) Integrated monitoring analyzer
JP7629881B2 (en) Tact division data collection system and anomaly detection system
JP2642367B2 (en) Monitor for sequence program control system
JP2590108B2 (en) Monitor for sequence program control system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees