JPH07271411A - Fault diagnostic device for programmable controller - Google Patents

Fault diagnostic device for programmable controller

Info

Publication number
JPH07271411A
JPH07271411A JP7075655A JP7565595A JPH07271411A JP H07271411 A JPH07271411 A JP H07271411A JP 7075655 A JP7075655 A JP 7075655A JP 7565595 A JP7565595 A JP 7565595A JP H07271411 A JPH07271411 A JP H07271411A
Authority
JP
Japan
Prior art keywords
output pattern
time
input
change
mode
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
JP7075655A
Other languages
Japanese (ja)
Inventor
Kiyoshi Matsumoto
清志 松本
Osamu Higuchi
治 樋口
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
Omron Tateisi Electronics Co
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, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP7075655A priority Critical patent/JPH07271411A/en
Publication of JPH07271411A publication Critical patent/JPH07271411A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To unnecessitate the preparation of a fault diagnostic program due to a user himself, to easily apply the device even to an existent programmable system and to efficiently diagnose a fault without expanding the capacity of a memory for storing input/output patterns. CONSTITUTION:A fault diagnostic unit is connected to a system bus 1 of a PC. In the case of a teaching mode, based on setting due to an operation part 45, the fault diagnostic unit monitors the output pattern on the system bus 1 and stores the passage of time from a preceding change point of time to a change and the input/output pattern after the change in a storage part 42 each time the output pattern is changed. In the case of a diagnostic mode, the output pattern is similarly monitored, and it is judged whether that stored output pattern arrives within monitor time based on the passage of time of the output pattern or not. When that output pattern does not arrive, an unmatching part between the input/output pattern at that point of time and the input/output pattern stored in the teaching mode is displayed on a display part 44.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、ビルティング・ブロ
ックタイプのプログラマブル・コントローラに好適な故
障診断装置に関し、特に、新たに故障診断装置を接続す
るだけで、ユーザプログラム上で特別な故障診断プログ
ラムを作成せずとも、システムの故障を診断可能なプロ
グラマブル・コントローラの故障診断装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a failure diagnosing device suitable for a building block type programmable controller, and more particularly to a special failure diagnosing program on a user program only by newly connecting the failure diagnosing device. The present invention relates to a programmable controller failure diagnosis device capable of diagnosing a system failure without the need to create a.

【0002】[0002]

【従来の技術】従来、この種のプログラマブル・コント
ローラにおいては、例えば、プログラマブル・コントロ
ーラシステムにおける故障診断を、故障時に起こり得る
入出力条件を予めユーザ自身が調べ、これをユーザプロ
グラム内に組込むという手法がとられていた。
2. Description of the Related Art Conventionally, in a programmable controller of this type, for example, in a fault diagnosis in a programmable controller system, a user himself or herself examines input / output conditions which may occur at the time of failure and incorporates it into a user program. Was taken.

【0003】[0003]

【発明が解決しようとする課題】しかし、このような従
来のプログラマブル・コントローラにおける故障診断で
は、上述のように、故障時に起こり得る入出力条件を予
めユーザ自身が調べ、これをユーザプログラム内に組込
むという手法がとられていたため、故障条件の設定や、
プログラミング等の煩雑な作業を必要とし、殊に既に完
成されたユーザプログラムが存在するような場合、これ
に故障診断プログラムを付加することは極めて面倒であ
る、という問題があった。
However, in the fault diagnosis in such a conventional programmable controller, as described above, the user himself or herself checks beforehand the input / output conditions that may occur at the time of the fault and incorporates this in the user program. Since the method was taken, setting failure conditions,
There is a problem that it is extremely troublesome to add a failure diagnosis program to a user program that requires complicated work such as programming, especially when an already completed user program exists.

【0004】本発明はこのような問題に着目してなされ
たもので、この種のプログラマブル・コントローラにお
いて、ユーザ自身による故障診断プログラムの作成を不
要とすると共に、既存のプログラマブル・システムに対
しても容易に適用が可能で、かつ、入出力パターンを記
憶するメモリの容量が膨大とならずに効率的にプログラ
マブル・コントローラシステムの故障診断が可能なプロ
グラマブル・コントローラの故障診断装置を提供するこ
とを目的とする。
The present invention has been made in view of such a problem. In this type of programmable controller, it is not necessary for the user to create a failure diagnosis program, and the existing programmable system can be used. An object of the present invention is to provide a programmable controller failure diagnosis device that can be easily applied and that can efficiently diagnose a programmable controller system failure without enormous memory capacity for storing input / output patterns. And

【0005】[0005]

【課題を解決するための手段】この発明は上記の目的を
達成するために、動作モードを教示モードと診断モード
とに切替設定可能なモード設定手段と、教示モードへの
設定を条件として出力パターンを監視し、出力パターン
の変化のたびに1つ前の変化時点から当該変化までの経
過時間と、当該変化後の入出力パターンとを記憶させる
教示動作制御手段と、診断モードへの設定を条件として
出力パターンを監視し、上記教示動作制御手段に記憶さ
れた出力パターンが上記教示動作制御手段に記憶された
当該出力パターンの1つ前の変化時点から当該変化まで
の経過時間に基づく監視時間内に到来するか否かを判断
し、当該出力パターンが上記監視時間内に到来しない場
合には、その時点の入出力パターンと上記教示動作制御
手段に記憶された入出力パターンとの不一致箇所を報知
する診断動作制御手段と、を具備することを特徴とする
ものである。
In order to achieve the above object, the present invention provides a mode setting means capable of switching the operation mode between a teaching mode and a diagnostic mode, and an output pattern on the condition that the teaching mode is set. The teaching operation control means for monitoring each of the output patterns, storing the elapsed time from the immediately preceding change time to the change and the input / output pattern after the change for each change of the output pattern, and setting the diagnostic mode as a condition. Within the monitoring time based on the elapsed time from the change time immediately before the output pattern stored in the teaching operation control means to the change. If the output pattern does not arrive within the monitoring time, the input / output pattern at that time and the teaching operation control means are stored. It is characterized in that it comprises a diagnostic operation control means for informing a mismatch portion of the output pattern.

【0006】[0006]

【作用】このような構成によれば、教示モードへの設定
に応答して、自動的に故障診断プログラムが作成され、
また診断モードへの設定に応答して、CPUユニットと
は独立した故障診断動作が行なわれるため、故障診断プ
ログラムのユーザによる作成が不要となるとともに、何
等既存のユーザプログラムを変更することなく、この種
のシステムにおける故障診断が可能となる。
According to this structure, the failure diagnosis program is automatically created in response to the setting to the teaching mode.
Further, in response to the setting to the diagnosis mode, the failure diagnosis operation independent of the CPU unit is performed, so that the user does not need to create the failure diagnosis program, and the existing user program is not changed. It enables fault diagnosis in various systems.

【0007】また、プログラマブル・コントローラの入
力パターンではなく出力パターンの変化に着目している
ため、入出力パターンを記憶するメモリの容量を膨大さ
せずに効率的な故障診断が可能となる。
Further, since attention is paid to the change in the output pattern of the programmable controller rather than the input pattern, efficient failure diagnosis can be performed without enlarging the capacity of the memory for storing the input / output pattern.

【0008】[0008]

【実施例】図1は、本発明が適用されたビルティング・
ブロックタイプのプログラマブル・コントローラ全体の
構成を示すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT FIG.
It is a block diagram showing the composition of the whole block type programmable controller.

【0009】同図に示す如く、このシステムはシステム
バス1に対して、CPUユニット2,複数台のI/Oユ
ニット3,3…及び本発明に係る故障診断装置(以下、
「故障診断ユニット」という。)4を接続して構成され
ている。なお、電源ユニットその他は省略している。
As shown in FIG. 1, this system has a system bus 1, a CPU unit 2, a plurality of I / O units 3, 3 ...
It is called a "fault diagnosis unit". ) 4 are connected. The power supply unit and others are omitted.

【0010】図2は、故障診断ユニット4の詳細な構成
を示している。
FIG. 2 shows a detailed structure of the failure diagnosis unit 4.

【0011】図2に示す如く、故障診断ユニット4は、
マイクロプロセッサを主体として構成される演算部41
と、RAMを主体として構成される記憶部42と、基準
クロックやカウンタ等を主体として構成される計時部4
3と、故障相関箇所に相当する入出力及び故障発生を表
示可能な表示部44と、モード切替スイッチ,起動スイ
ッチ等を備えた操作部45と、から構成されている。ま
た、演算部41はインターフェイス46を介してシステ
ムバス1に接続可能となっている。
As shown in FIG. 2, the failure diagnosis unit 4 includes
Operation unit 41 mainly composed of a microprocessor
And a storage unit 42 mainly composed of a RAM, and a clock unit 4 mainly composed of a reference clock, a counter and the like.
3, a display unit 44 capable of displaying an input / output corresponding to a failure correlation point and a failure occurrence, and an operation unit 45 equipped with a mode changeover switch, a start switch and the like. Further, the arithmetic unit 41 can be connected to the system bus 1 via the interface 46.

【0012】図3は、故障診断ユニットの動作のゼネラ
ルフローチャートを示している。
FIG. 3 shows a general flow chart of the operation of the failure diagnosis unit.

【0013】図3のゼネラルフローチャートに示される
ように、故障診断ユニット4の動作は、操作部45のモ
ード切替スイッチが教示モードに設定されているか(ス
テップ300肯定)、または診断モードに設定されてい
るか(ステップ301肯定)、に応じて、教示動作制御
処理(ステップ302)と、診断動作制御処理(ステッ
プ303)とを択一的に実行するように構成されてい
る。
As shown in the general flow chart of FIG. 3, the operation of the failure diagnosis unit 4 is performed by setting the mode changeover switch of the operation unit 45 to the teaching mode (Yes at step 300) or to the diagnosis mode. The teaching motion control process (step 302) and the diagnostic motion control process (step 303) are selectively executed according to whether or not (step 301 affirmative).

【0014】図4に、図3に示すステップ302の教示
動作制御処理の詳細な処理手順を示す。
FIG. 4 shows a detailed processing procedure of the teaching operation control processing of step 302 shown in FIG.

【0015】まず、図4に示すように、教示動作制御処
理が開始されると、まず操作部45の起動スイッチが投
入されたこと(起動信号“1”)を待機する状態となる
(ステップ400否定,401否定)。
First, as shown in FIG. 4, when the teaching operation control process is started, first, a state of waiting for the activation switch of the operation unit 45 being turned on (activation signal "1") is set (step 400). Negative, 401 negative).

【0016】起動スイッチが投入されると(ステップ4
00肯定,402肯定)、STEPカウンタを零リセッ
トした後(ステップ403)、0STEPに係る記憶エ
リアに、当該時点の入出力パターンI1 〜In,O1 〜
Onの登録(ステップ404)、経過時間0の登録(ス
テップ405)を行ない、次いでSTEPカウンタを+
1更新した後(ステップ406)、経過時間測定用の時
計を起動する(ステップ407)。
When the start switch is turned on (step 4)
00 affirmative, 402 affirmative), and after resetting the STEP counter to zero (step 403), the input / output patterns I1 to In, O1 to
Register On (step 404), register elapsed time 0 (step 405), and then increment the STEP counter.
After updating by 1 (step 406), a clock for measuring elapsed time is activated (step 407).

【0017】なお、このとき入出力パターンの登録は、
I/Oユニット3のデータを直接故障診断ユニット4へ
読込むか、あるいはCPUユニット2で行なわれる入出
力更新動作の際にこれと同期して入出力情報を取込むこ
とにより行なわれる。
At this time, the input / output pattern registration is
This is performed by directly reading the data of the I / O unit 3 into the failure diagnosis unit 4 or by incorporating the input / output information in synchronization with the input / output update operation performed by the CPU unit 2.

【0018】以後、演算部41では出力パターンを繰り
返し読み込み、変化有無を待機する状態となる(ステッ
プ400肯定,402否定,408否定)。
Thereafter, the arithmetic unit 41 repeatedly reads the output pattern and waits for the presence or absence of a change (step 400 positive, 402 negative, 408 negative).

【0019】この状態で、出力パターンに変化あり,す
なわち出力O1 〜Onの何れか1ビットに変化が生ずる
と(ステップ408肯定)、STEPカウンタで指定さ
れる記憶エリアには、変化後の入出力パターンの登録
(ステップ409)、1つ前の変化時点からの経過時間
の登録(ステップ410)が行なわれた後、STEPカ
ウンタの+1更新(ステップ411),経過時間測定用
の時計を零から再起動する動作(ステップ412)が行
なわれた後、再び出力パターンの変化待機状態となる
(ステップ400肯定,402否定,408否定)。
In this state, if there is a change in the output pattern, that is, if any one bit of the outputs O1 to On changes (Yes in step 408), the changed input / output in the storage area designated by the STEP counter. After the registration of the pattern (step 409) and the registration of the elapsed time from the previous change point (step 410), the STEP counter is updated by +1 (step 411), and the elapsed time measurement clock is reset from zero. After the activation operation (step 412) is performed, the output pattern change waiting state is again entered (step 400 positive, negative 402, negative 408).

【0020】この結果、記憶部42内のSTEPカウン
タで指定される各エリアには、出力パターンが変化する
たびに変化後の入出力パターン及び1つ前の変化時点か
らの経過時間が順次記憶されていくこととなる。
As a result, in each area designated by the STEP counter in the storage unit 42, each time the output pattern changes, the input / output pattern after the change and the elapsed time from the immediately preceding change point are sequentially stored. It will be going.

【0021】次いで、操作部45において起動スイッチ
がオフされると(ステップ400否定,401肯定)、
STEPカウンタで指定される記憶エリアに入出力パタ
ーンの登録(ステップ413),1つ前の変化時点から
の経過時間登録(ステップ414)を経た後、全ての登
録動作は終了する。
Next, when the activation switch is turned off in the operation unit 45 (No at step 400, Yes at step 401),
After the input / output pattern is registered in the storage area designated by the STEP counter (step 413) and the elapsed time from the previous change time is registered (step 414), all the registration operations are completed.

【0022】従って、今仮に図6に示されるように、入
力1,2及び出力1のみが変化するようなユーザプログ
ラムを想定すると、時刻t1 ,t10,において出力1が
変化する結果、図7の表に示されるように、記憶部42
内の各STEPに対応する記憶エリアには、変化後の入
出力パターン及び経過時間が順次記憶されることとな
る。
Therefore, assuming a user program in which only the inputs 1 and 2 and the output 1 change as shown in FIG. 6, the output 1 changes at the times t1 and t10. As shown in the table, the storage unit 42
In the storage area corresponding to each STEP inside, the changed input / output pattern and the elapsed time are sequentially stored.

【0023】次いで、操作部45においてモード切替ス
イッチを診断モードに設定すると、診断動作制御処理が
開始される。
Next, when the mode changeover switch is set to the diagnostic mode in the operation section 45, the diagnostic operation control process is started.

【0024】図5に、図3に示すステップ303の診断
動作制御処理の詳細な処理手順を示す。
FIG. 5 shows a detailed processing procedure of the diagnostic operation control processing of step 303 shown in FIG.

【0025】まず、図5に示すように、診断動作制御処
理ではまず起動スイッチの投入を待機する状態となる
(ステップ500否定,501否定)。
First, as shown in FIG. 5, in the diagnostic operation control process, first, the activation switch is put on standby (No at Step 500, No at Step 501).

【0026】起動スイッチが投入されると(ステップ5
00肯定,502肯定)、STEPカウンタを零リセッ
トした後(ステップ503)、診断動作が開始される。
When the activation switch is turned on (step 5)
00 affirmative, 502 affirmative) and after resetting the STEP counter to zero (step 503), the diagnostic operation is started.

【0027】この診断動作では、まず現STEPに登録
されている入出力パターンを基準パターンとしてセット
する動作(ステップ504)、現STEPに登録されて
いる経過時間にシステム定数を乗じた値を基準時間とし
て監視タイマにセットする動作(ステップ505)を経
た後、監視タイマを起動し(ステップ506)、以後監
視タイマのタイムアップ前に、現出力パターンと基準出
力パターンとが一致することを待機する(ステップ50
7否定,510否定)。
In this diagnostic operation, first, an operation of setting an input / output pattern registered in the current STEP as a reference pattern (step 504), a value obtained by multiplying the elapsed time registered in the current STEP by a system constant is used as the reference time. As a result, the monitoring timer is started (step 506) after the operation of setting the monitoring timer (step 505) and waits until the current output pattern and the reference output pattern match before the monitoring timer times out (step 506). Step 50
7 negative, 510 negative).

【0028】そして、監視タイマのタイムアップ前に
(ステップ510否定)、現出力パターンと基準出力パ
ターンとの一致が確認されれば(ステップ507肯
定)、異常出力のOFF,異常箇所データのクリアを経
た後(ステップ508)、STEPカウンタを更新して
(ステップ509)、次のSTEPについて以上の動作
を繰り返す。
If the match between the current output pattern and the reference output pattern is confirmed (Yes at Step 507) before the monitoring timer times out (No at Step 510), the abnormal output is turned off and the abnormal portion data is cleared. After that (step 508), the STEP counter is updated (step 509), and the above operation is repeated for the next step.

【0029】これに対して、監視タイマのタイムアップ
前に、現出力パターンと基準出力パターンとの一致が確
認されない場合には、システムの故障との判定が行なわ
れ、監視タイマのタイムアップとともに(ステップ51
0肯定)、現入出力パターンと基準入出力パターンとの
排他的論理和(EOR)がとられ、その結果は異常箇所
データとしてセットされ(ステップ511)、異常出力
ONとともに(ステップ512)、表示部44に表示さ
れる。
On the other hand, if the match between the current output pattern and the reference output pattern is not confirmed before the time-out of the monitoring timer, it is judged that the system is out of order, and when the time-out of the monitoring timer is reached ( Step 51
0 affirmative), the exclusive OR (EOR) of the current input / output pattern and the reference input / output pattern is taken, and the result is set as abnormal point data (step 511) and displayed with abnormal output ON (step 512). It is displayed on the section 44.

【0030】この結果、表示部44には、現入出力パタ
ーンと基準入出力パターンとの不一致箇所が、故障相関
箇所として視覚的に報知される。
As a result, on the display unit 44, the disagreement portion between the current input / output pattern and the reference input / output pattern is visually notified as a failure correlation portion.

【0031】このように、この実施例ではモード切替ス
イッチを教示モードに設定し、かつ起動スイッチを投入
するだけで、図7に示されるように正常動作時の入出力
パターンが登録され、その後モード切替スイッチを診断
モードへ設定しかつ起動スイッチを投入するだけで、以
後システムの故障を確実に診断することができる。
As described above, in this embodiment, the input / output pattern at the time of normal operation is registered as shown in FIG. 7 only by setting the mode changeover switch to the teaching mode and turning on the start switch, and thereafter the mode is set. Only by setting the changeover switch to the diagnostic mode and turning on the start-up switch, it is possible to reliably diagnose the system failure thereafter.

【0032】従って、本実施例によれば、教示モードへ
の設定に応答して自動的に出力パターンの変化のたびに
変化後の入出力パターンが記憶された故障診断プログラ
ムが作成される一方、診断モードへの設定に応答してC
PUユニットとは独立した故障診断動作が行われるた
め、在来の故障診断のようにユーザ自身が故障時の入出
力条件を分析して、ユーザプログラムに組込む必要がな
く、ユーザによる故障診断プログラムの作成が不要とな
ると共に、何等既存のユーザプログラムを変更すること
なくこの種のシステムにおける故障診断が可能になる。
Therefore, according to this embodiment, in response to the setting to the teaching mode, the failure diagnosis program in which the changed input / output pattern is stored is automatically created every time the output pattern is changed. C in response to setting to diagnostic mode
Since the failure diagnosis operation is performed independently of the PU unit, it is not necessary for the user to analyze the input / output conditions at the time of failure and incorporate it into the user program as in the conventional failure diagnosis. It is not necessary to create it, and failure diagnosis in this type of system is possible without changing any existing user program.

【0033】また、本実施例では、故障診断ユニット4
がCPUユニット2とは独立に動作するため、CPUユ
ニット2における回路演算処理動作を遅延させる虞れも
なくなり、既存のビルティング・ブロックタイプのプロ
グラマブル・コントローラシステムに対しても容易に適
用することが可能となる。
Further, in this embodiment, the failure diagnosis unit 4
Since it operates independently of the CPU unit 2, there is no fear of delaying the circuit operation processing operation in the CPU unit 2, and it can be easily applied to an existing building block type programmable controller system. It will be possible.

【0034】また、本実施例では、プログラマブル・コ
ントローラの入力パターンではなく出力パターンの変化
に着目しているため、入出力パターンを記憶するメモリ
の容量を膨大させずに効率的な故障診断が可能となる。
Further, in this embodiment, since attention is paid to the change of the output pattern, not the input pattern of the programmable controller, efficient failure diagnosis is possible without enlarging the capacity of the memory for storing the input / output pattern. Becomes

【0035】これは、入力パターンの変化を捕らえて入
出力パターンをサンプルした場合には、プログラマブル
・コントローラの入力信号の形態にはアナログ入力、リ
レー入力等の様々なものがあるため、入出力パターンの
時間的推移が毎周期同一状態で繰り返すとは限らず、全
ての入出力パターンを確実に記憶できなくなるという不
具合や、ユーザプログラム中でカウンタ命令等を使用し
ている場合には、入力の回数を計算して出力に使用する
渡す等という制御は日常頻繁に行われており、この場合
には入力パターンの変化を捕らえて処理を行うと余りに
も変化回数が多すぎて、入出力パターンを記憶するメモ
リの容量が膨大となる等の不具合が生じるのに対し、本
発明では、プログラマブル・コントローラの出力パター
ンの変化に着目しているため、このような不具合が生じ
ないからである。
This is because when a change in the input pattern is captured and the input / output pattern is sampled, there are various input signal forms of the programmable controller, such as analog input and relay input. The time transition of does not always repeat in the same state every cycle, and it is not possible to store all input / output patterns without fail, or if counter commands etc. are used in the user program, the number of inputs The control such as calculating and using for output is frequently performed every day. In this case, if the change of the input pattern is captured and processed, the number of changes is too large and the input / output pattern is stored. However, in the present invention, attention is paid to the change in the output pattern of the programmable controller. Because it is, because such a problem does not occur.

【0036】さらに、本実施例では、診断動作において
教示モード時に記憶されている出力パターンの到来を判
断する際の監視時間を、教示モードにおける出力パター
ンの1つ前の変化時点から現変化までの経過時間に基づ
いて設定するようにしているため、出力の変化が発生し
ない故障でも対応できると共に、各出力パターンの経過
時間を調べることにより診断しているプログラマブル・
コントローラのどこに問題が潜在していか等も調べるこ
とが可能になり、タクトタイムの改善等の活用にも利用
できる。
Further, in the present embodiment, the monitoring time for determining the arrival of the output pattern stored in the teaching mode in the diagnostic operation is the monitoring time from the previous change time of the output pattern in the teach mode to the current change. Since the setting is based on the elapsed time, it is possible to deal with a failure in which the output does not change, and it is possible to diagnose by checking the elapsed time of each output pattern.
It becomes possible to investigate where the problem is in the controller, and it can be used for improving the tact time.

【0037】[0037]

【発明の効果】以上説明したように、本発明では、教示
モードへの設定に応答して自動的に出力パターンの変化
のたびに変化後の入出力パターンが記憶された故障診断
プログラムが作成される一方、診断モードへの設定に応
答してCPUユニットとは独立した故障診断動作が行わ
れるため、ユーザによる故障診断プログラムの作成が不
要となるとともに、何等既存のユーザプログラムを変更
することなく、この種のシステムにおける故障診断が可
能になる。
As described above, according to the present invention, a failure diagnosis program in which the changed input / output pattern is automatically stored every time the output pattern changes in response to the setting to the teaching mode is created. On the other hand, since the failure diagnosis operation independent of the CPU unit is performed in response to the setting to the diagnosis mode, it becomes unnecessary for the user to create a failure diagnosis program, and without changing any existing user program, Fault diagnosis is possible in this type of system.

【0038】また、本発明では、プログラマブル・コン
トローラの入力パターンではなく出力パターンの変化に
着目しているため、入出力パターンを記憶するメモリの
容量を膨大させずに効率的な故障診断が可能となる。
Further, in the present invention, since attention is paid to the change in the output pattern, not the input pattern of the programmable controller, efficient failure diagnosis can be performed without enlarging the capacity of the memory for storing the input / output pattern. Become.

【0039】さらに、本発明では、診断動作制御手段が
教示動作制御手段に記憶された出力パターンの到来を判
断する際の監視時間を、教示モードにおける出力パター
ンの1つ前の変化時点から現変化までの経過時間に基づ
いて設定するようにしているため、出力の変化が発生し
ない故障でも対応できると共に、各出力パターンの経過
時間を調べることにより診断しているプログラマブル・
コントローラのどこに問題が潜在していか等も調べるこ
とが可能になり、タクトタイムの改善等の活用にも利用
できる。
Further, in the present invention, the monitoring time when the diagnostic operation control means judges the arrival of the output pattern stored in the teaching operation control means is changed from the change time immediately before the output pattern in the teach mode to the present change time. Since it is set based on the elapsed time up to, it is possible to deal with a failure in which the output does not change, and to diagnose by checking the elapsed time of each output pattern.
It becomes possible to investigate where the problem is in the controller, and it can be used for improving the tact time.

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

【図1】本発明が適用されたビルティング・ブロックタ
イプのプログラマブル・コントローラシステム全体を示
すブロック図。
FIG. 1 is a block diagram showing an entire building block type programmable controller system to which the present invention is applied.

【図2】故障診断ユニットの詳細を示すブロック図。FIG. 2 is a block diagram showing details of a failure diagnosis unit.

【図3】故障診断ユニットの処理を示すゼネラルフロー
チャート。
FIG. 3 is a general flowchart showing processing of a failure diagnosis unit.

【図4】教示動作制御処理の詳細を示すフローチャー
ト。
FIG. 4 is a flowchart showing details of teaching operation control processing.

【図5】診断動作制御処理の詳細を示すフローチャー
ト。
FIG. 5 is a flowchart showing details of diagnostic operation control processing.

【図6】入出力パターンの遷移例を示す説明図。FIG. 6 is an explanatory diagram showing an example of transition of an input / output pattern.

【図7】記憶部の内容を示すメモリマップ。FIG. 7 is a memory map showing the contents of a storage unit.

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

1 システムバス 2 CPUユニット 3 I/Oユニット 4 故障診断ユニット 41 演算部 42 記憶部 43 計時部 44 表示部 45 操作部 46 インタフェース 1 System Bus 2 CPU Unit 3 I / O Unit 4 Failure Diagnosis Unit 41 Arithmetic Section 42 Storage Section 43 Clock Section 44 Display Section 45 Operation Section 46 Interface

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G05B 23/02 301 P 7531−3H Continuation of front page (51) Int.Cl. 6 Identification number Office reference number FI technical display location G05B 23/02 301 P 7531-3H

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 動作モードを教示モードと診断モードと
に切替設定可能なモード設定手段と、 教示モードへの設定を条件として出力パターンを監視
し、出力パターンの変化のたびに1つ前の変化時点から
当該変化までの経過時間と、当該変化後の入出力パター
ンとを記憶させる教示動作制御手段と、 診断モードへの設定を条件として出力パターンを監視
し、上記教示動作制御手段に記憶された出力パターンが
上記教示動作制御手段に記憶された当該出力パターンの
1つ前の変化時点から当該変化までの経過時間に基づく
監視時間内に到来するか否かを判断し、当該出力パター
ンが上記監視時間内に到来しない場合には、その時点の
入出力パターンと上記教示動作制御手段に記憶された入
出力パターンとの不一致箇所を報知する診断動作制御手
段と、 を具備することを特徴とするプログラマブル・コントロ
ーラの故障診断装置。
1. A mode setting means capable of switching and setting an operation mode between a teaching mode and a diagnostic mode, and monitoring an output pattern under the condition of setting the teaching mode, and changing the output pattern by one before each change. Teaching operation control means for storing the elapsed time from the time point to the change and the input / output pattern after the change, and the output pattern is monitored under the condition of setting to the diagnostic mode, and is stored in the teaching operation control means. It is determined whether or not the output pattern arrives within the monitoring time based on the elapsed time from the immediately preceding change time of the output pattern stored in the teaching operation control means to the change, and the output pattern is monitored as described above. If it does not arrive within the time, the diagnostic operation control hand that notifies the inconsistency of the input / output pattern at that time and the input / output pattern stored in the teaching operation control means. If, programmable controller of the failure diagnosis apparatus characterized by comprising a.
JP7075655A 1995-03-31 1995-03-31 Fault diagnostic device for programmable controller Pending JPH07271411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7075655A JPH07271411A (en) 1995-03-31 1995-03-31 Fault diagnostic device for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7075655A JPH07271411A (en) 1995-03-31 1995-03-31 Fault diagnostic device for programmable controller

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP60190658A Division JP2540127B2 (en) 1985-08-29 1985-08-29 Programmable controller failure diagnosis device

Publications (1)

Publication Number Publication Date
JPH07271411A true JPH07271411A (en) 1995-10-20

Family

ID=13582479

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7075655A Pending JPH07271411A (en) 1995-03-31 1995-03-31 Fault diagnostic device for programmable controller

Country Status (1)

Country Link
JP (1) JPH07271411A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010238223A (en) * 2009-03-12 2010-10-21 Omron Corp I/o unit and industrial controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55138148A (en) * 1979-04-12 1980-10-28 Nec Corp Microprogram memory unit
JPS58222310A (en) * 1982-06-21 1983-12-24 Omron Tateisi Electronics Co Programmable controller provided with state pattern comparison function
JPS59218523A (en) * 1983-05-27 1984-12-08 Nissan Motor Co Ltd Fault diagnosing device for sequence machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55138148A (en) * 1979-04-12 1980-10-28 Nec Corp Microprogram memory unit
JPS58222310A (en) * 1982-06-21 1983-12-24 Omron Tateisi Electronics Co Programmable controller provided with state pattern comparison function
JPS59218523A (en) * 1983-05-27 1984-12-08 Nissan Motor Co Ltd Fault diagnosing device for sequence machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010238223A (en) * 2009-03-12 2010-10-21 Omron Corp I/o unit and industrial controller

Similar Documents

Publication Publication Date Title
EP0148951B1 (en) System for checking abnormality in programmable controller
JP2540127B2 (en) Programmable controller failure diagnosis device
JPH07271411A (en) Fault diagnostic device for programmable controller
JP2002508541A (en) Operation buttons as active buttons
JP2550580B2 (en) Programmable controller failure diagnosis device
JP3102486B2 (en) Digital protection relay analyzer
JPH052502A (en) Voltage margin testing system for information processor
JPH0916220A (en) Input and output display device
JP2527810B2 (en) Simulation device
JP2767668B2 (en) Electrical equipment
JPS61813A (en) Deciding system for faulty area of sequence controller
JP2001076269A (en) Operation managing device and operation managing method
JP3452708B2 (en) Programmable controller
JPH02116902A (en) Measuring system for process time of pc
JP2001242926A (en) Control device for operation of apparatus and method of control
JPH08123513A (en) Data monitoring device for programmable controller
JPS6334604A (en) Programmable controller
JPS63108447A (en) Input output equipment supervising device
JPS61214009A (en) Display device for plant state
KR100238663B1 (en) Method of self dignosis for dual robot system
JPH08286714A (en) Monitor device for programmable display device
JPH06161517A (en) Monitoring device for pc
JPH0258110A (en) Cnc printed board information display system
JPH1011285A (en) Programmable controller and recording medium
JPS63292205A (en) Device for diagnosing deterioration in programmable controller

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19961004