JPH04260902A - Device for diagnosing failure - Google Patents

Device for diagnosing failure

Info

Publication number
JPH04260902A
JPH04260902A JP3007204A JP720491A JPH04260902A JP H04260902 A JPH04260902 A JP H04260902A JP 3007204 A JP3007204 A JP 3007204A JP 720491 A JP720491 A JP 720491A JP H04260902 A JPH04260902 A JP H04260902A
Authority
JP
Japan
Prior art keywords
failure
programmable controller
control operation
operating condition
control
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.)
Pending
Application number
JP3007204A
Other languages
Japanese (ja)
Inventor
Yasunobu Iwata
岩田 恭伸
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3007204A priority Critical patent/JPH04260902A/en
Publication of JPH04260902A publication Critical patent/JPH04260902A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To judge the existence of a true failure when a practical state is different from set operation condition data and to judge the sort of the failure. CONSTITUTION:A failure judging part 107 compares the control operation of a control part 104 monitored through a monitor part 105 with operation control data stored in a storage part 106 and judges whether a failure is generated or not. When the judging part 107 judges the generation of a failure, a failure inferring part 108 infers the sort of the failure and the validity/invalidity of the failure judgement based upon a rule (inference data) stored in a rule storing part 109.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、プログラマブルコン
トローラにおける外部機器の故障診断装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a failure diagnosis device for external equipment in a programmable controller.

【0002】0002

【従来の技術】図7は、従来の故障診断装置を示すブロ
ック図であり、図において、101はプログラマブルコ
ントローラ、102は故障診断装置、103は外部機器
、104はプログラマブルコントローラの制御部、10
5は制御部104の制御動作をモニタするモニタ部、1
06は動作条件データを記憶した記憶部、107は記憶
部106の動作条件データとモニタ部105でモニタし
た制御動作とを比較し、故障が発生しているか判断する
故障判断部、110は入力信号、111は出力信号であ
る。また、図8は故障判断部107の処理を示すフロー
チャート、図2は記憶部106に記憶された動作条件デ
ータの内容を示す説明図、図4は外部機器103の動作
タイムチャートの一例を示す。
2. Description of the Related Art FIG. 7 is a block diagram showing a conventional failure diagnosis device. In the figure, 101 is a programmable controller, 102 is a failure diagnosis device, 103 is an external device, 104 is a control section of the programmable controller, and 10
5 is a monitor unit that monitors the control operation of the control unit 104;
06 is a storage unit that stores operating condition data; 107 is a failure determination unit that compares the operating condition data in the storage unit 106 with the control operation monitored by the monitor unit 105 and determines whether a failure has occurred; 110 is an input signal , 111 are output signals. Further, FIG. 8 is a flowchart showing the processing of the failure determination unit 107, FIG. 2 is an explanatory diagram showing the contents of the operating condition data stored in the storage unit 106, and FIG. 4 shows an example of an operation time chart of the external device 103.

【0003】次に動作について説明する。外部機器10
3はプログラマブルコントローラ101により図4の(
A)のような動作を行っているものとする。この時、動
作条件データが図2の内容であるとする。プログラマブ
ルコントローラ101においては制御部104により、
入力信号110と出力信号111を制御している。 これと同時に、モニタ部105は制御部104が制御し
ている入力信号110,出力信号111の状態(即ち、
制御動作)をモニタし、故障判断部107に渡す。
Next, the operation will be explained. External device 10
3 is shown in FIG. 4 by the programmable controller 101.
Assume that the operation shown in A) is performed. At this time, it is assumed that the operating condition data is as shown in FIG. In the programmable controller 101, the control unit 104
The input signal 110 and output signal 111 are controlled. At the same time, the monitor unit 105 monitors the states of the input signal 110 and output signal 111 controlled by the control unit 104 (i.e.,
control operation) and passes it to the failure determination unit 107.

【0004】一方、故障判断部107は、プログラマブ
ルコントローラ101の動作開始とともに起動される。 先ず、モニタ部105よりデバイスの状態を入力し、動
作条件データの番号Nを1にする(S801,S802
)。次に、記憶部106より動作条件データとして動作
条件N(最初は、N=1であるので動作条件1)を取り
出し、状態番号nの状態と一致するか判断する(S80
3,S804)。一致する場合には、nを1つ増やす(
S805)。一方、一致しない場合でn=1ならばモニ
タ部105から入力信号110,出力信号111の状態
が未だ入力されていなものと判断し、開始状態待ちとす
る(S806)。一致しない場合で、且つ、nが1でな
い場合、故障が発生したと判断する(S807)。更に
、他にも故障が発生していないか判断するため動作条件
の番号Nに1を加算し、最後かを判断する(S808,
S809)。最後でないならS803に戻り次の動作条
件と比較する。最後なら終了する。
On the other hand, the failure determining section 107 is activated when the programmable controller 101 starts operating. First, the device status is input from the monitor unit 105, and the number N of the operating condition data is set to 1 (S801, S802).
). Next, the operating condition N (initially, N=1, so operating condition 1) is retrieved as operating condition data from the storage unit 106, and it is determined whether it matches the state of the state number n (S80
3, S804). If they match, increase n by 1 (
S805). On the other hand, if they do not match and n=1, it is determined that the states of the input signal 110 and output signal 111 have not yet been input from the monitor unit 105, and the process waits for the start state (S806). If they do not match and n is not 1, it is determined that a failure has occurred (S807). Furthermore, in order to determine whether any other failures have occurred, 1 is added to the operating condition number N, and it is determined whether it is the last one (S808,
S809). If it is not the last, return to S803 and compare with the next operating condition. If it's the last time, it will end.

【0005】上記の処理を行っているので、例えば、図
4の(A)に示すような動作を行っているとすると、動
作条件1の状態1〜8と(A)の状態1〜8とは一致し
ており、故障とは判断されない。しかし、ここで図4の
(B)の動作を行っているとすると、状態6でX2がO
FFしないため、故障と判断される。
Since the above processing is performed, for example, if the operation shown in FIG. 4 (A) is performed, states 1 to 8 of operating condition 1 and states 1 to 8 of (A) are are consistent, and it is not determined that there is a failure. However, if the operation shown in FIG. 4B is performed here, in state 6, X2 is O
Since it does not turn FF, it is judged to be a failure.

【0006】[0006]

【発明が解決しようとする課題】従来の故障診断装置は
以上のように構成されているため、設定してあった動作
条件データと実際の動作が少しでも異なると、故障と判
断してしまい少しのタイミングのズレでも故障としたり
、順序が条件により変化するものには使えないという問
題点があった。また、複数の要因があった場合判断でき
ないという問題もあった。
[Problem to be Solved by the Invention] Conventional failure diagnosis devices are configured as described above, so if there is even a slight difference between the set operating condition data and the actual operation, it will be judged as a failure and will cause problems. There were problems in that even a timing difference could cause a failure, and that it could not be used in applications where the order changed depending on conditions. There was also the problem that it was impossible to make a determination when there were multiple factors.

【0007】この発明は、上記のような問題点を解決す
るためになされたもので、設定してあった動作条件デー
タと実際の状態が異なった場合に、真の故障かを判断し
、且つ、故障の種類を判断する故障診断装置を得ること
を目的とする。
[0007] This invention was made to solve the above-mentioned problems, and it is possible to determine whether it is a true failure when the set operating condition data differs from the actual state, and to The purpose of this invention is to obtain a fault diagnosis device that determines the type of fault.

【0008】[0008]

【課題を解決するための手段】この発明による故障診断
装置は、プログラマブルコントローラの制御動作をモニ
タして、プログラムコントローラに接続された外部機器
の故障を診断する故障診断装置において、プログラマブ
ルコントローラの制御動作をモニタするモニタ手段と、
プログラマブルコントローラの複数の制御動作に対応し
た複数の制御動作条件を記憶した記憶手段と、モニタ手
段を介してモニタしたプログラマブルコントローラの制
御動作と対応する記憶手段の制御動作条件とを比較し、
異なる場合に故障と判断する故障判断手段と、故障判断
手段によって故障と判断された場合に、プログラマブル
コントローラの複数の制御動作と対応する複数の制御動
作条件のそれぞれの判断結果の組み合わせを用いて、故
障の種類及び故障判定の正否を判断する故障確定手段と
を備えたものである。
[Means for Solving the Problems] A fault diagnosis device according to the present invention is a fault diagnosis device for diagnosing a fault in an external device connected to a programmable controller by monitoring the control action of a programmable controller. monitoring means for monitoring;
Comparing a storage means storing a plurality of control operation conditions corresponding to a plurality of control operations of the programmable controller and a control operation condition of the storage means corresponding to the control operation of the programmable controller monitored via a monitor means,
Using a combination of a failure determination means that determines a failure in different cases, and a determination result of a plurality of control operations of the programmable controller and a plurality of corresponding control operation conditions when a failure is determined by the failure determination means, The apparatus is equipped with a failure determining means for determining the type of failure and whether the failure judgment is correct or incorrect.

【0009】[0009]

【作用】この発明における故障診断装置は、故障判断手
段によって故障と判断された場合に、故障確定手段にお
いて、プログラマブルコントローラの複数の制御動作と
対応する複数の制御動作条件のそれぞれの判断結果の組
み合わせを用いて、故障の種類及び故障判定の正否を判
断する。換言すれば、故障判定のルールを持つことによ
り、少しのタイミングのズレや条件により動作が異なる
機械の故障診断を簡単に行う。
[Operation] In the fault diagnosis device according to the present invention, when a fault is determined by the fault determining means, the fault determining means combines the respective determination results of a plurality of control operations of the programmable controller and a plurality of corresponding control operation conditions. is used to determine the type of failure and whether the failure determination is correct or not. In other words, by having a rule for failure determination, it is easy to diagnose the failure of a machine that operates differently depending on a slight timing difference or condition.

【0010】0010

【実施例】この発明の実施例を図について説明する。図
1において、101はプログラマブルコントローラ、1
02は故障診断装置、103は外部機器、104はプロ
グラマブルコントローラの制御部、105は制御部10
4の制御動作をモニタするモニタ部、106は動作条件
データを記憶した記憶部、107は記憶部106の動作
条件データとモニタ部105の制御動作とを比較し、故
障が発生しているか判断する故障判断部、108は故障
推論部、109は推論データであるルールを記憶するル
ール記憶部、110は入力信号、111は出力信号であ
る。また、図2は記憶部106に記憶された動作条件デ
ータの内容を示す説明図、図3は推論データの内容、図
4は外部機器103の動作タイムチャート、図5は故障
判断部107の処理フロー、図6は故障推論部108の
処理フローを表す。
[Embodiment] An embodiment of the present invention will be explained with reference to the drawings. In FIG. 1, 101 is a programmable controller;
02 is a failure diagnosis device, 103 is an external device, 104 is a control unit of a programmable controller, and 105 is a control unit 10
106 is a storage unit that stores operating condition data; 107 compares the operating condition data in the storage unit 106 with the control operation of the monitor unit 105 to determine whether a failure has occurred; 108 is a failure determination unit, 108 is a failure inference unit, 109 is a rule storage unit that stores rules that are inference data, 110 is an input signal, and 111 is an output signal. 2 is an explanatory diagram showing the contents of the operating condition data stored in the storage unit 106, FIG. 3 is an explanatory diagram showing the contents of the inference data, FIG. 4 is an operation time chart of the external device 103, and FIG. 5 is a process of the failure determination unit 107. Flow: FIG. 6 shows the processing flow of the failure inference unit 108.

【0011】次に動作について説明する。外部機器10
3はプログラマブルコントローラ101により図4の(
A)のような動作を行っているものとする。この時、動
作条件データが図2の内容であるとする。プログラマブ
ルコントローラ101は制御部104により、入力信号
110と出力信号111を制御している。これと同時に
、モニタ部105は制御部104が制御している入力信
号110,出力信号111の状態(即ち、制御動作)を
モニタし、故障判断部107に渡す。
Next, the operation will be explained. External device 10
3 is shown in FIG. 4 by the programmable controller 101.
Assume that the operation shown in A) is performed. At this time, it is assumed that the operating condition data is as shown in FIG. The programmable controller 101 controls an input signal 110 and an output signal 111 by a control unit 104. At the same time, the monitor section 105 monitors the states (ie, control operations) of the input signal 110 and output signal 111 controlled by the control section 104 and passes them to the failure determination section 107 .

【0012】一方、故障判断部107は、プログラマブ
ルコントローラ101の動作開始とともに起動される。 先ず、モニタ部105よりデバイスの状態を入力し、動
作条件データの番号Nを1にする(S501,S502
)。次に、記憶部106より動作条件データとして動作
条件N(最初は、N=1であるので動作条件1)を取り
出し、状態番号nの状態と一致するか判断する(S50
3,S504)。一致する場合には、nを1つ増やす(
S505)。一方、一致しない場合でn=1ならばモニ
タ部105から入力信号110,出力信号111の状態
が未だ入力されていなものと判断し、開始状態待ちとす
る(S506)。一致しない場合で、且つ、nが1でな
い場合、動作条件Nに故障フラグをセットする(S50
7)。更に、他にも故障が発生していないか判断するた
め動作条件の番号Nに1を加算し、最後かを判断する(
S508,S509)。最後でないならS503に戻り
次の動作条件と比較する。最後ならS510の故障診断
へ進み故障の推論を行う。
On the other hand, the failure determination section 107 is activated when the programmable controller 101 starts operating. First, the device status is input from the monitor unit 105, and the number N of the operating condition data is set to 1 (S501, S502).
). Next, the operating condition N (initially, N=1, so operating condition 1) is retrieved as operating condition data from the storage unit 106, and it is determined whether it matches the state of the state number n (S50
3, S504). If they match, increase n by 1 (
S505). On the other hand, if they do not match and n=1, it is determined that the states of the input signal 110 and output signal 111 have not yet been input from the monitor unit 105, and the system waits for the start state (S506). If they do not match and n is not 1, a failure flag is set in the operating condition N (S50
7). Furthermore, in order to determine whether any other failures have occurred, 1 is added to the operating condition number N, and it is determined whether it is the last one (
S508, S509). If it is not the last, return to S503 and compare with the next operating condition. If it is the last step, the process advances to S510 for fault diagnosis and inference of the fault is made.

【0013】図6を参照して、S510の故障診断につ
いて詳細に説明する。先ず、ルール記憶部109に記憶
されている推論データのルール番号を表すrを1に設定
する(S601)。次に、最後のルールか否かを判断す
る(S602)。最後でないならルールrを解析する(
S603)。ルールは、図3のルール1にあるように動
作条件1が故障で、且つ、動作条件2が故障ならばリミ
ットスイッチ1故障といった、if〜then形式であ
る。続いて、ルールrの解析結果で条件が成立するか否
か判定し(S604)、条件が成立していなければ次の
ルールを調べるため、rを+1し、S602へ戻る(S
605)。一方、条件が成立していた場合、該当するル
ールrのthen部を出力し、終了する(S606)。 また、S602において最後のルールと判断した場合に
は処理を終了する。
Referring to FIG. 6, the failure diagnosis at S510 will be explained in detail. First, r representing the rule number of inference data stored in the rule storage unit 109 is set to 1 (S601). Next, it is determined whether it is the last rule (S602). If it is not the last, analyze rule r (
S603). The rule is in an if-then format such that if operating condition 1 is a failure and operating condition 2 is a failure, then limit switch 1 is failure, as shown in rule 1 of FIG. Next, it is determined whether the condition is satisfied based on the analysis result of rule r (S604), and if the condition is not satisfied, r is incremented by 1 to check the next rule, and the process returns to S602 (S604).
605). On the other hand, if the condition is satisfied, the then part of the corresponding rule r is output and the process ends (S606). Furthermore, if it is determined in S602 that this is the last rule, the process ends.

【0014】実施例では、動作条件が故障しているか故
障していないかの組み合わせルールで説明したが出力信
号のON/OFF状態と組み合わせてもよい。
[0014] In the embodiment, the combination rule of whether the operating condition is faulty or non-faulty has been explained, but it may also be combined with the ON/OFF state of the output signal.

【0015】[0015]

【発明の効果】以上のように、この発明によれば故障の
組み合わせルールによる故障診断を行えるよう構成した
ので動作が条件により変わるような機器などの故障診断
にも適応できる効果がある。
As described above, according to the present invention, since the present invention is configured to perform fault diagnosis based on fault combination rules, it has the advantage that it can be applied to fault diagnosis of equipment whose operation changes depending on conditions.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】この発明の一実施例による故障診断装置を表す
ブロック図である。
FIG. 1 is a block diagram showing a failure diagnosis device according to an embodiment of the present invention.

【図2】記憶部に記憶された動作条件データの内容を示
す説明図である。
FIG. 2 is an explanatory diagram showing the contents of operating condition data stored in a storage unit.

【図3】ルール記憶部に記憶した推論データの内容であ
る。
FIG. 3 shows the contents of inference data stored in a rule storage unit.

【図4】外部機器の動作を示すタイムチャートである。FIG. 4 is a time chart showing the operation of external equipment.

【図5】故障判断部の動作フローである。FIG. 5 is an operation flow of a failure determination unit.

【図6】故障推論部の動作フローである。FIG. 6 is an operation flow of a failure inference unit.

【図7】従来の故障診断装置を示すブロック図である。FIG. 7 is a block diagram showing a conventional failure diagnosis device.

【図8】従来の故障判断部の処理を示すフローチャート
である。
FIG. 8 is a flowchart showing processing of a conventional failure determination unit.

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

101  プログラマブルコントローラ    102
  故障診断装置 103  外部機器                
      104  制御部 105  モニタ部                
      106  記憶部 107  故障判断部               
     108  故障推論部 109  ルール記憶部              
    110  入力信号 111  出力信号
101 Programmable controller 102
Failure diagnosis device 103 External equipment
104 Control section 105 Monitor section
106 Storage unit 107 Failure determination unit
108 Failure inference unit 109 Rule storage unit
110 Input signal 111 Output signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  プログラマブルコントローラの制御動
作をモニタして、プログラムコントローラに接続された
外部機器の故障を診断する故障診断装置において、前記
プログラマブルコントローラの制御動作をモニタするモ
ニタ手段と、前記プログラマブルコントローラの複数の
制御動作に対応した複数の制御動作条件を記憶した記憶
手段と、前記モニタ手段を介してモニタした前記プログ
ラマブルコントローラの制御動作と対応する前記記憶手
段の制御動作条件とを比較し、異なる場合に故障と判断
する故障判断手段と、前記故障判断手段によって故障と
判断された場合に、前記プログラマブルコントローラの
複数の制御動作と前記対応する複数の制御動作条件のそ
れぞれの判断結果の組み合わせを用いて、故障の種類及
び故障判定の正否を判断する故障確定手段とを備えたこ
とを特徴とする故障診断装置。
1. A failure diagnosis device for diagnosing a failure of an external device connected to the programmable controller by monitoring the control operation of a programmable controller, comprising: a monitor means for monitoring the control operation of the programmable controller; A storage means storing a plurality of control operation conditions corresponding to a plurality of control operations is compared with a control operation condition of the storage means that corresponds to a control operation of the programmable controller monitored via the monitor means, and if the control operation conditions are different, a failure determining means for determining a failure when the failure has occurred; and a combination of the determination results of the plurality of control operations of the programmable controller and the plurality of corresponding control operation conditions when the failure determination means determines that the failure has occurred. A failure diagnosis device comprising: a failure determination means for determining the type of failure and whether the failure judgment is correct or incorrect.
JP3007204A 1991-01-24 1991-01-24 Device for diagnosing failure Pending JPH04260902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3007204A JPH04260902A (en) 1991-01-24 1991-01-24 Device for diagnosing failure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3007204A JPH04260902A (en) 1991-01-24 1991-01-24 Device for diagnosing failure

Publications (1)

Publication Number Publication Date
JPH04260902A true JPH04260902A (en) 1992-09-16

Family

ID=11659497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3007204A Pending JPH04260902A (en) 1991-01-24 1991-01-24 Device for diagnosing failure

Country Status (1)

Country Link
JP (1) JPH04260902A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63240602A (en) * 1987-03-27 1988-10-06 Toyoda Mach Works Ltd Sequence controller abnormality diagnosis device
JPH01109404A (en) * 1987-10-22 1989-04-26 Honda Motor Co Ltd Failure diagnosis support system for sequence control equipment
JPH01276206A (en) * 1988-04-27 1989-11-06 Mazda Motor Corp Monitoring device for sequence program control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63240602A (en) * 1987-03-27 1988-10-06 Toyoda Mach Works Ltd Sequence controller abnormality diagnosis device
JPH01109404A (en) * 1987-10-22 1989-04-26 Honda Motor Co Ltd Failure diagnosis support system for sequence control equipment
JPH01276206A (en) * 1988-04-27 1989-11-06 Mazda Motor Corp Monitoring device for sequence program control system

Similar Documents

Publication Publication Date Title
US6314350B1 (en) Methods and apparatus for generating maintenance messages
JPH04260902A (en) Device for diagnosing failure
JPS61813A (en) Deciding system for faulty area of sequence controller
JP2990008B2 (en) Processor self-diagnosis method
JPH02281343A (en) Cpu operation monitor system
SU1071979A1 (en) Device for digital assembly diagnostics
JP2591110B2 (en) Signal switching method
JP2526516B2 (en) Fault monitoring method
JPS61169036A (en) System supervisory device
JPH07160521A (en) Information processor with anti-fault function
JP2890611B2 (en) Switching circuit
JPH06202889A (en) Fault detection device for multiple input/output circuit system
JPH09325811A (en) Dual redundant system and diagnostic method
JPH10279210A (en) Elevator trouble catching device
KR910012843A (en) How to diagnose failure of production line
JPH08255092A (en) Duplex system
JPH0847065A (en) Remote monitoring controller
JPH0324483A (en) Fault diagnostic circuit
JPH06259350A (en) Computer network fault detecting method
JPH10312229A (en) Power source controller
JPH04251333A (en) Fault diagnosis device
JPS62196708A (en) Diagnostic device for abnormality
JPH02109143A (en) Diagnostic method for duplex system
JPS6393001A (en) Signal selecting device
JPH04293133A (en) Fault monitoring system in loosely coupled multi-processor system