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
JP3380912B2 - Method and apparatus for grouping diagnosis targets for failure diagnosis - Google Patents
[go: Go Back, main page]

JP3380912B2 - Method and apparatus for grouping diagnosis targets for failure diagnosis - Google Patents

Method and apparatus for grouping diagnosis targets for failure diagnosis

Info

Publication number
JP3380912B2
JP3380912B2 JP31975491A JP31975491A JP3380912B2 JP 3380912 B2 JP3380912 B2 JP 3380912B2 JP 31975491 A JP31975491 A JP 31975491A JP 31975491 A JP31975491 A JP 31975491A JP 3380912 B2 JP3380912 B2 JP 3380912B2
Authority
JP
Japan
Prior art keywords
output
input
monitored
outputs
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP31975491A
Other languages
Japanese (ja)
Other versions
JPH05134718A (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 JP31975491A priority Critical patent/JP3380912B2/en
Publication of JPH05134718A publication Critical patent/JPH05134718A/en
Application granted granted Critical
Publication of JP3380912B2 publication Critical patent/JP3380912B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (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 diagnostic object grouping method and device for fault diagnosis, and more particularly to a programmable logic controller (hereinafter simply referred to as PLC).
PLC in the fault diagnosis to detect the abnormality that occurs in the system (including equipment) controlled by
The invention relates to a method and a device for dividing a controlled system into parts to be monitored independently of one another in terms of input and output signals.

【0002】[0002]

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

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

【0004】正常な基準となる動作状態として,PLC
の入,出力信号のオン,オフ状態,この状態が遷移する
順序,および状態遷移に要する時間(標準値と許容幅ま
たは最小値と最大値)等が考えられている。
PLC is used as a normal reference operating state.
The input and output states, the ON and OFF states of output signals, the transition order of these states, and the time required for state transition (standard value and allowable width or minimum value and maximum value) are considered.

【0005】実際には1台のPLCによって複数の製造
または加工工程からなるシステムを制御している場合が
多い。このようなシステムでは,工程間に被加工物(ワ
ーク)のバッファ・エリアが設けられていることがあ
る。バッファ・エリアにワークを一時的に蓄えておくこ
とができるためにバッファ・エリアの前工程における動
作と後工程における動作とは必ずしも同期する必要はな
い。
In practice, a single PLC often controls a system composed of a plurality of manufacturing or processing steps. In such a system, a buffer area for a workpiece may be provided between processes. Since the work can be temporarily stored in the buffer area, the operation in the previous process and the operation in the subsequent process of the buffer area do not necessarily need to be synchronized.

【0006】図34に示すように,工程Iと工程IIとの間
にバッファ・エリアが設けられているものとする。ワー
クa,b,c,dがそれぞれ工程Iにおいて加工され,
バッファ・エリアを経て工程IIに送られ,そこで次の加
工が施される。1つのワークに着目すると,必ず工程I
における加工が終了したのちに工程IIにおける加工が施
される。しかしながら,工程Iと工程IIでは相互に関連
性なく加工作業が行なわれる。すなわち,工程Iでワー
クaの加工が行なわれているときに工程IIは全く動作し
ていない場合もあれば,工程Iでワークcの加工が行わ
れている間に工程IIではワークbについての加工が終了
してしまうこともある。
As shown in FIG. 34, it is assumed that a buffer area is provided between step I and step II. Workpieces a, b, c, d are each processed in the process I,
It is sent to Process II via the buffer area, where it is subjected to the next processing. Focusing on one work, the process I
After the processing in step 2 is completed, the processing in step II is performed. However, the processing work is performed in the process I and the process II without mutual relation. That is, when the work a is being processed in the process I, the process II may not be operated at all, or while the work c is being processed in the process I, the work II is not performed in the process II. Processing may end.

【0007】このように全く非同期で動作する2つの工
程IとIIとの両方の入,出力信号の状態を同時に監視し
たとすると,実際の入,出力信号の状態は,たとえ両工
程IとIIにおける動作が正常であったとしても,あらか
じめ登録してある基準となる入,出力信号の状態と一致
しない場合が頻繁に起り得るので,統一的に監視すると
いうことは不可能となる。
Assuming that the states of the input and output signals of both of the two processes I and II operating completely asynchronously are monitored at the same time, the actual states of the input and output signals will be the same as those of both the processes I and II. Even if the operation in (1) is normal, it may frequently happen that the input and output signals that are the reference that are registered in advance do not match. Therefore, it is impossible to perform unified monitoring.

【0008】そこで,工程IとIIのように,非同期の部
分については別個にその動作を監視することが考えられ
る。工程Iの故障診断のための基準となる入,出力信号
の状態と,工程IIの故障診断のための基準となる入,出
力信号の状態とをあらかじめ別個に作成し,工程Iの実
際の入,出力信号の状態については工程Iについてあら
かじめ作成された基準となる入,出力信号状態と照合
し,工程IIの実際の入,出力信号の状態については工程
IIについてあらかじめ作成された基準となる入,出力信
号状態と照合する訳である。
Therefore, it is conceivable to separately monitor the operation of the asynchronous parts as in steps I and II. The input and output signal states that are the basis for the fault diagnosis of the process I and the input and output signal states that are the reference for the fault diagnosis of the process II are created separately in advance, and the actual input of the process I is performed. , The state of the output signal is checked against the input / output signal state which is the reference prepared in advance for the process I, and the state of the actual input / output signal of the process II is the process
The input and output signal states, which are the standards created in advance for II, are checked.

【0009】しかしながら,被制御システムの規模は大
型化の傾向にあり,今日では1台のPLCによって千〜
数千にも及ぶ入,出力信号を取扱うことも少なくない。
However, the scale of the controlled system tends to be large, and a single PLC nowadays has a scale of 1,000 to 1,000.
It is not uncommon to handle thousands of input and output signals.

【0010】非同期の工程については別個に故障診断を
行うという考え方を採用した場合には,上述のような膨
大な数の入,出力信号を相互に非同期な工程ごとにグル
ープ分けする必要があり,それにはたいへんな労力が必
要である。
When the concept of performing fault diagnosis separately for asynchronous processes is adopted, it is necessary to group the enormous number of input / output signals as described above into groups that are asynchronous with each other. It takes a lot of effort.

【0011】[0011]

【発明の概要】この発明は,相互に独立して監視可能
な,監視すべき,または監視することが好ましい出力信
号をPLCのラダー・プログラムの観点から自動的にグ
ループ化することのできる方法および装置を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION The present invention is a method and method for automatically grouping output signals that can be, to be monitored, or preferably monitored, independently of each other in terms of a PLC ladder program. The purpose is to provide a device.

【0012】この発明による故障診断のための診断対象
のグループ化方法は,PLCが実行するプログラムにお
いて各監視対象出力(実施例における監視対象出力コイ
ルに対応する)に関連する入,出力接点を抽出する処理
をすべての上記監視対象出力について行い,抽出された
入,出力接点の共通性の観点から任意の2つの監視対象
出力相互の結合性に関するデータを算出し,算出された
結合性に関するデータによって表わされる監視対象出力
間の結合の強さの観点から上記の各監視対象出力が属す
るグループを形成するものである。
In the method of grouping diagnostic objects for fault diagnosis according to the present invention, input / output contacts associated with each monitored object output (corresponding to the monitored object output coil in the embodiment) are extracted in the program executed by the PLC. The above processing is performed for all the above-mentioned monitored outputs, data regarding the connectivity between any two monitored outputs is calculated from the viewpoint of the commonality of the extracted input and output contacts, and the data regarding the calculated connectivity is used. From the viewpoint of the strength of the coupling between the monitored outputs shown, the groups to which the above-mentioned monitored outputs belong are formed.

【0013】好ましくは,形成されたグループとそれら
に属する監視対象出力の識別番号とを出力(たとえば表
示または印字)する。
Preferably, the formed groups and the identification numbers of the monitored outputs belonging to them are output (for example, displayed or printed).

【0014】この発明による故障診断のための診断対象
のグループ化装置は,選択された監視対象出力のそれぞ
れについて,PLCが実行するプログラム上においてそ
の監視対象出力が参照する入,出力接点を抽出する手
段,上記監視対象出力の中から選択された2つの監視対
象出力の組合せのすべてについて,それらの2つの監視
対象出力が参照する入,出力接点の共通性の観点から2
つの監視対象出力相互の結合度を算出する手段,算出さ
れた結合度に基づいて上記監視対象出力をグループ化す
る手段,および上記監視対象出力のグループ化の結果を
出力する手段を備えている。
The diagnosis target grouping device for fault diagnosis according to the present invention extracts, for each selected monitoring target output, the input / output contacts referred to by the monitoring target output in the program executed by the PLC. Means, for all combinations of the two monitored outputs selected from the monitored outputs, from the viewpoint of commonality of input and output contacts referred to by these two monitored outputs.
It is provided with means for calculating the degree of coupling between the two monitored outputs, means for grouping the monitored outputs based on the calculated degree of coupling, and means for outputting the result of grouping the monitored outputs.

【0015】監視対象出力を,PLCが実行するプログ
ラムに関するデータから選択するステップを含ませ,監
視対象出力が決定されたのち上記グループ化を実行する
と好ましい。
It is preferable to include a step of selecting an output to be monitored from data related to a program executed by the PLC, and to execute the grouping after the output to be monitored is determined.

【0016】この発明の好ましい実施態様においては,
抽出する上記入,出力接点に,上記プログラム上にのみ
存在する内部補助接点も含ませる。
In a preferred embodiment of the present invention,
The input and output contacts to be extracted also include the internal auxiliary contacts existing only on the program.

【0017】この発明の他の実施態様においては,上記
監視対象出力が上記プログラム上で唯一の接点のみを参
照しているときには,その参照されている接点に対応す
る監視対象出力に関連するすべての入,出力接点が抽出
される。
In another embodiment of the present invention, when the monitored output refers to only one contact on the program, all the monitored outputs associated with the referenced contact are Input and output contacts are extracted.

【0018】結合性に関するデータまたは結合度を算出
する方法にはいくつかある。その1は,結合性に関する
データまたは結合度を,2つの監視対象出力に共通する
接点があれば1,なければ0として求めるものである。
その2は,結合性に関するデータまたは結合度を,2つ
の監視対象出力に共通する接点の個数として求めるもの
である。その3は,結合性に関するデータまたは結合度
を,2つの監視対象出力に共通する接点の個数を,2つ
の監視対象出力に関連する接点ののべ個数で除した値と
して求めるものである。
There are several methods of calculating data or degree of connectivity for connectivity. In the case of 1, the data regarding the connectivity or the degree of connectivity is determined as 1 if there is a contact point common to the two outputs to be monitored, and 0 if not.
The second is to obtain the data regarding the connectivity or the degree of connectivity as the number of contacts common to the two monitored outputs. In the third method, the data or the degree of connection is calculated as a value obtained by dividing the number of contacts common to the two monitored outputs by the total number of the contacts related to the two monitored outputs.

【0019】グループを形成する方法にもいくつかあ
る。その1つは,結合性に関するデータまたは結合度が
0以外の値をもつ監視対象出力が1つのグループに属す
るようにグループを形成するものである。その2は,1
つのグループに属する監視対象出力の数に上限を設ける
ものである。この場合には結合の強い監視対象出力から
順にグループ化を行い,含まれる監視対象出力の数が上
記上限に達したグループについてはそのグループへの監
視対象出力の登録を禁止する。
There are several ways to form a group. One of them is to form a group so that the data regarding the connectivity or the output of the monitored object having the coupling degree other than 0 belongs to one group. 2 is 1
It sets an upper limit on the number of monitored outputs that belong to one group. In this case, the monitoring target outputs having strong coupling are grouped in order, and the monitoring target outputs are prohibited from being registered to the group whose number of included monitoring target outputs reaches the upper limit.

【0020】以上のようにしてこの発明によると,相互
に関連する監視対象出力すなわち出力信号が自動的にグ
ループ化されるので,被制御システムを複数のグループ
に分けて考えることができる。とくに1台のPLCが千
〜数千にも及ぶ入出力を制御する場合には,人手により
ラダー・プログラムを追いながらシステム制御の全体を
把握する作業が不要となり,各グループごとに対処する
ことができるので,故障診断プログラムの作成等が非常
に容易となる。
As described above, according to the present invention, the outputs to be monitored, that is, the output signals, which are related to each other are automatically grouped, so that the controlled system can be divided into a plurality of groups. Especially when one PLC controls input / output of 1,000 to several thousand, it is not necessary to manually grasp the entire system control while following the ladder program, and it is possible to deal with each group. This makes it extremely easy to create a failure diagnosis program.

【0021】グループ分けされて形成されたグループご
とに故障診断が可能であり,相互に非同期に動作する部
分は別個のグループに属することになるから,それぞれ
の部分についての独立した故障診断が可能となり,デバ
ッグ,メンテナンス等も容易となる。また,故障診断プ
ログラム作成における負担も軽減される。
Fault diagnosis is possible for each group formed by grouping, and the parts that operate asynchronously with each other belong to different groups, so that independent fault diagnosis for each part is possible. , Debugging and maintenance are also easy. Also, the burden of creating a failure diagnosis program is reduced.

【0022】[0022]

【0023】[0023]

【0024】[0024]

【0025】[0025]

【0026】[0026]

【0027】[0027]

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

(1) システム構成 図1は制御装置としてのPLCおよびこの発明によるグ
ループ化方法を実現する装置からなるシステム全体の構
成を示すものである。
(1) System Configuration FIG. 1 shows the configuration of the entire system including a PLC as a control device and a device for realizing the grouping method according to the present invention.

【0028】PLC10は後述する被制御システムを制御
するためのもので,ラダー・プログラムにしたがう制御
処理を実行するCPU11,ラダー制御システム・プログ
ラムを格納したROM12,上記被制御システムを制御す
るためのユーザが作成したユーザ・プログラム(ラダー
・プログラム)を格納するRAM13,作業(ワーク)用
RAM14,タイマ15,PLC I/Oデータ・バスを介
して上記被制御システムと入出力信号を送受するI/O
ユニット16,およびコンソール20と交信するためのI/
F(インターフェイス)17を備えている。PLCの実際
の入出力信号の状態を保持するI/OテーブルはRAM
14に設けられている。
The PLC 10 is for controlling a controlled system to be described later, and includes a CPU 11 for executing control processing according to a ladder program, a ROM 12 storing a ladder control system program, and a user for controlling the controlled system. I / O for transmitting / receiving input / output signals to / from the controlled system via a RAM 13 for storing a user program (ladder program) created by the user, a work RAM 14, a timer 15, and a PLC I / O data bus.
I / for communicating with unit 16 and console 20
It has an F (interface) 17. The I / O table that holds the actual input / output signal status of the PLC is RAM
It is provided in 14.

【0029】コンソール20は被制御システムを相互に独
立して監視可能な部分に分割するためのグループ化方法
を実行するものであり,このグループ化方法の主な実行
主体であるCPU21,CPU21が実行するプログラムを
格納するメモリ装置22,処理実行において必要なまたは
生成されるデータを格納するメモリ装置23,グループ化
の結果を出力する表示装置やプリンタを含む出力装置2
4,キーボードを含む入力装置,ならびにPLC10との
接続のためのI/F27,および入,出力装置25,24との
I/F29,28を含んでいる。メモリ装置22,23はRO
M,RAM等の半導体メモリのみならずハード・ディス
クやフロッピィ・ディスクにより実現することができ
る。コンソール20はいわゆるパーソナル・コンピュータ
等により実現されよう。
The console 20 executes a grouping method for dividing the controlled system into parts which can be monitored independently of each other, and is executed by the CPU 21 and the CPU 21 which are the main executing bodies of this grouping method. Memory device 22 for storing a program to be stored, memory device 23 for storing data required or generated in processing execution, output device 2 including a display device and a printer for outputting a grouping result
4. It includes an input device including a keyboard, and an I / F 27 for connecting to the PLC 10 and I / Fs 29 and 28 for input and output devices 25 and 24. Memory devices 22 and 23 are RO
It can be realized by a hard disk or a floppy disk as well as a semiconductor memory such as M or RAM. The console 20 may be realized by a so-called personal computer or the like.

【0030】被制御システムの故障診断処理はPLC10
が実行するように構成してもよいし,コンソール20に実
行させるようにしてもよい。前者の場合には,ROM12
に故障診断プログラムが,RAM13に故障診断のための
基準データがそれぞれ格納されよう。後者の場合には,
メモリ装置22に故障診断プログラムが,メモリ装置23に
故障診断のための基準データがそれぞれ格納されよう。
もっとも,故障診断処理の一部をPLC10が実行し,他
の一部をコンソール20が分担するようにしてもよい。
PLC 10 is used for the failure diagnosis processing of the controlled system.
May be configured to run, or the console 20 may be run. In the former case, ROM12
The failure diagnosis program will be stored in the RAM 13, and the reference data for the failure diagnosis will be stored in the RAM 13. In the latter case,
A failure diagnosis program may be stored in the memory device 22 and reference data for failure diagnosis may be stored in the memory device 23.
However, the PLC 10 may execute a part of the failure diagnosis processing and the console 20 may share the other part.

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

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

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

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

【0035】ワークWが加工台93上に移されると,その
ワークWを固定する治具77がワークWを締付ける方向に
駆動される。また,第2のモータM278が回転駆動さ
れ,モータ78の回転軸に固定されたドリル79がモータ78
とともに下降して,ワークWに穴があけられる。穴あけ
作業ののち,ドリル79およびモータ78が上昇し,モータ
78の回転が停止する。穴加工されたワークは最後に排出
空圧シリンダ81によって加工台93から排出される。
When the work W is transferred onto the processing table 93, the jig 77 for fixing the work W is driven in the direction for tightening the work W. In addition, the second motor M278 is driven to rotate, and the drill 79 fixed to the rotary shaft of the motor 78 rotates the motor 78.
Along with it, the workpiece W is drilled. After drilling, the drill 79 and the motor 78 move up
78 rotation stops. The workpiece having the holes drilled is finally discharged from the processing table 93 by the discharge pneumatic cylinder 81.

【0036】操作盤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 series of steps described above starting from the start 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 process is stopped and the in-operation lamp 70 is turned off. As described above, when the detection signal of the staying detector 57 continues for a certain time or longer, 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.

【0037】不良排出シリンダ73にはそのロッドが進出
(前進)してその前進端に至ったことを検知する不良前
端検出器,およびロッドが後退してその後退端に至った
ことを検出する不良後端検出器(いずれも図示略)が設
けられている。同じように投入シリンダ75には投入前端
検出器および投入後端検出器が,排出シリンダ81には排
出前端検出器および排出後端検出器(いずれも図示略)
がそれぞれ設けられている。さらにドリル79(およびそ
れが取付けられたモータ78)が上昇してその上昇端に至
ったことを検出するドリル上昇検出器,および下降して
その下降端に至ったことを検出するドリル下降検出器
(いずれも図示略)が設けられている。
A defective front end detector that detects that the rod has advanced (advanced) to the advanced end of the defective discharge cylinder 73, and a defective that detects that the rod has retracted and has reached its retracted end. A trailing edge detector (neither 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, a drill lift detector that detects that the drill 79 (and the motor 78 to which it is attached) has risen to reach its ascending end, and a drill descend detector that detects that the drill 79 has descended to reach its descending end. (All are not shown).

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

【0039】(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 (defective 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 (stagnation detection) (008) Work detection signal of second work detector 58 (detection 2) (009) Detection signal of front end detector (front end) (010) Detection signal from rear end detector (rear end) (011) Work detection signal of third work detector 61 (detection 3) (012) Drill top end Detector detection signal (drill top) (013) Drill bottom detector detection signal (drill bottom) (014) Discharge front end detector detection signal (discharging front end) (015) Discharge rear end detector detection signal (discharge) Rear end)

【0040】PLC10からこの被制御システムに出力さ
れる信号には次のものがある。先頭の(100)〜(1
12)は出力信号の番号である。また末尾の( )内は
省略表現である。
The signals output from the PLC 10 to this controlled system are as follows. The first (100) to (1
12) is the number of the output signal. Also, () at the end is an abbreviation.

【0041】(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 (L in operation) (101) Abnormal ON / OFF control signal of lamp 71 (abnormal L) (102) Rotation drive control signal of first motor 72 (M1 rotation) (103) Forward drive control signal for defect elimination cylinder 73 (defective forward) (104) Reverse drive control signal for defect elimination cylinder 73 (defective backward) (105) Forward drive control signal for closing cylinder 75 (close forward) ) (106) Reverse drive control signal of closing cylinder 75 (close backward) (107) Tightening drive control signal of fixing jig 77 (fixing jig) (108) Rotation drive control signal of second motor 78 (M2 rotation) (109) Ascending drive control signal of the drill 79 (drill ascent) (110) Ascending drive control signal of the drill 79 (drill descending) (111) Forward drive control signal of the discharging cylinder 81 (discharging forward) (112) Reverse drive control signal of the discharge cylinder 81 (ejection retracted)

【0042】図3から図9は上述した被制御システムが
上述した動作を行うように制御するPLC10に設定され
た(RAM13に格納された)プログラム(ユーザ・プロ
グラム)を示すものである。このプログラムは入力信号
によりオン,オフされる接点,出力信号を発生するリレ
ー,このリレーによってオン,オフされる接点,ならび
に内部補助リレーおよびその接点を用いて表現されてい
る。これらの図において,上述した入,出力信号の3桁
の番号はその上位に2桁の00を加えることにより5桁
で表現されている。
FIGS. 3 to 9 show a program (a user program) set in the PLC 10 (stored in the RAM 13) for controlling the above-mentioned controlled system to perform the above-described operation. 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 this relay, and internal auxiliary relays and their contacts. In these figures, the three-digit numbers of the input and output signals described above are represented by five digits by adding two-digit 00 to the upper part thereof.

【0043】図3から図9に示された内部補助リレーお
よびその接点の意味は次の通りである。ここでも,内部
補助リレーおよびその接点の番号(ともに同じ番号が付
けられている)は上位2桁を除いて下位3桁で表現され
ている。
The meanings of the internal auxiliary relay and its contacts shown in FIGS. 3 to 9 are as follows. Also in this case, the numbers of the internal auxiliary relay and its contacts (they have the same numbers) are expressed in the lower 3 digits except for the upper 2 digits.

【0044】(200)1U運転:不良ワークの排出部
全体を動作させる条件を表わす。 (201)2U運転:穴あけ加工部全体を動作させる条
件を表わす。 (202)不良排除:不良ワークを検出したことを表わ
し,その排除が終了するまでオンとされる。 (203)セット中:穴あけ加工動作全体の開始を表わ
し,加工,排出が終了するまでオンとされる。 (204)セット完:ワークの加工台へのセットが終了
したことを表わす。 (205)穴あけ中:ワークが加工台にセットされたこ
とを表わし,穴あけが終了するまでオンとされる。 (206)穴あけ完:ワークの穴あけが終了したことを
表わす。 (207)加工完:ワークの排出が終了したことを表わ
す。 (208)投入記憶:ワークが加工台に投入されたこと
を表わし,加工,排出が終了するまでオンとされる。 (209)ドリル記憶:ドリルがワークに穴をあけきっ
たことを表わし,穴あけが終了するまでオンとされる。 (210)排出記憶:ワークを排出したことを表わし,
排出が終了するまでオンとされる。
(200) 1U operation: Represents the conditions for operating the entire defective work discharge section. (201) 2U operation: Represents the conditions for operating the entire drilling unit. (202) Defect elimination: Indicates that a defective work is detected, and is turned on until the elimination is completed. (203) During setting: Represents the start of the entire drilling operation, and is turned on until the processing and discharging are completed. (204) Completed setting: Indicates that the setting of the work on the processing table is completed. (205) During drilling: Indicates that the work is set on the processing table, and is turned on until drilling is completed. (206) Hole drilling complete: Indicates that drilling of the workpiece is completed. (207) Completion of processing: Indicates that the discharge of the work is completed. (208) Input memory: Indicates that the workpiece has been input to the processing table, and is turned on until the processing and discharging are completed. (209) Drill memory: Indicates that the drill has drilled a hole in the work, and is turned on until the drilling is completed. (210) Ejection memory: indicates that the work has been ejected,
It is turned on until the discharge is completed.

【0045】さらに,図3においてTIMはタイマ要素
を表わす。これは滞留検知信号が一定時間継続している
かどうかを判定するためのものである。
Further, in FIG. 3, TIM represents a timer element. This is for determining whether or not the staying detection signal continues for a certain time.

【0046】(3) グルーピング処理 上述した被制御システムを例にとり,相互に独立して故
障診断が可能なグループを形成する処理について説明す
る。
(3) Grouping Processing Using the above-mentioned controlled system as an example, processing for forming groups in which failure diagnosis can be performed independently of each other will be described.

【0047】図10はこのグルーピング処理の全体的な処
理手順を示すものである。この処理は主にコンソール20
のCPU21によって実行される。
FIG. 10 shows the overall processing procedure of this grouping processing. This process is mainly for console 20
CPU21 of.

【0048】(3-1) 監視対象出力コイルの選択 後に故障診断処理の一例を詳細に示すことによって明ら
かになるように,故障診断処理は次のようにして行なわ
れる。第1段階として,出力信号のみを常時監視し(出
力パターンと基準パターンとを照合する),出力信号に
異常があるかどうかを判定する。異常が検知されると,
そのときの入力信号の状態(入力パターン)をあらかじ
め設定された入力期待パターンと比較し,異常の原因と
なる入力信号を特定する。
(3-1) As will be made clear by showing an example of the failure diagnosis processing in detail after selecting the output coil to be monitored, the failure diagnosis processing is performed as follows. As the first step, only the output signal is constantly monitored (the output pattern and the reference pattern are compared) to determine whether or not the output signal is abnormal. When an abnormality is detected,
The state (input pattern) of the input signal at that time is compared with a preset input expected pattern, and the input signal causing the abnormality is specified.

【0049】このような故障診断処理のために監視の対
象となる出力信号を定める必要がある。
For such a failure diagnosis process, it is necessary to determine the output signal to be monitored.

【0050】PLC10は設定されているユーザ・プログ
ラム(ラダー・プログラム)から使用I/Oリレー・リ
ストを抽出する機能をもっている。PLC10によって抽
出されたこのリストはコンソール20の出力装置24から出
力される。出力されたI/Oリレー・リストの一例が図
11に示されている。000CHが入力信号に関連するリ
レー,001CHが出力信号に関連するリレー,002
CHが内部補助リレーである。これらのリレー(接点)
の番号(5桁)はCHの前の3桁を上位3桁とし,ビッ
トの欄の2桁を下位2桁とすることにより構成される。
これらの番号は上述したものと同じであり,その内容も
上述した通りである。
The PLC 10 has a function of extracting the used I / O relay list from the set user program (ladder program). This list extracted by the PLC 10 is output from the output device 24 of the console 20. An example of the output I / O relay list is shown in the figure.
Shown in 11. 000CH is a relay related to an input signal, 001CH is a relay related to an output signal, 002
CH is an internal auxiliary relay. These relays (contacts)
The number (5 digits) is configured by setting the 3 digits before CH as the upper 3 digits and the 2 digits in the bit column as the lower 2 digits.
These numbers are the same as those described above, and their contents are also as described above.

【0051】監視の対象となる出力信号(以下,監視対
象出力コイルという)は001CHの13個,すなわち番
号(下位3桁のみ)が100〜112の出力コイルであ
る。
The output signals to be monitored (hereinafter referred to as monitoring target output coils) are 13 of 001CH, that is, output coils with numbers (only the lower three digits) of 100 to 112.

【0052】このようにして,監視対象出力コイルが決
定される(ステップ101 )。
In this way, the output coil to be monitored is determined (step 101).

【0053】監視対象出力コイルは,ラダー・プログラ
ムから抽出せずに,PLC10のRAM14に設けられてい
るI/Oテーブルから求めることもできる。さらに,ユ
ーザが手作業により監視対象出力コイル・リストを作成
してもよいのはいうまでもない。
The output coil to be monitored can be obtained from the I / O table provided in the RAM 14 of the PLC 10 without extracting it from the ladder program. Further, it goes without saying that the user may manually create the monitored output coil list.

【0054】このようにして作成された監視対象出力コ
イル・リストから,特に監視の必要なもののみを選択
し,あまり重要でない出力,監視をしなくても特に問題
のない出力を除外するようにしてもよい。監視対象出力
コイルの最終的な決定は,出力(表示)装置24に表示さ
れたリスト上において必要なもの,または不要なものを
入力装置25から入力することによって行われるであろ
う。
From the list of output coil to be monitored created in this way, only those that need special monitoring are selected, and outputs that are not so important and outputs that are not particularly problematic without monitoring are excluded. May be. The final determination of the monitored output coil will be made by inputting from the input device 25 what is necessary or unnecessary on the list displayed on the output (display) device 24.

【0055】いずれにしても,監視対象出力コイルが最
終的に決定されると,後における処理の便宜のために,
これらの出力コイルの番号が初期化される(ステップ10
2 )。上述のように監視対象出力コイルの番号は100
〜112である。これらの番号が0から始まる(または
所定の初期番号から始まる)連続番号に変換される。こ
の実施例では出力コイル番号100〜112は0〜12
に変換されるものとする。この処理は特に,監視対象出
力コイル番号に欠番があったり,連続番号でない場合に
重要である。
In any case, when the output coil to be monitored is finally determined, for convenience of later processing,
The numbers of these output coils are initialized (step 10
2). As described above, the number of the output coil to be monitored is 100
~ 112. These numbers are converted into consecutive numbers starting from 0 (or starting from a predetermined initial number). In this embodiment, the output coil numbers 100 to 112 are 0 to 12
Shall be converted to. This process is especially important when the output target output coil number is missing or not continuous.

【0056】(3-2) 入力接点リストの作成 続いて各監視対象出力コイルに関連する入力接点リスト
が作成される(ステップ103 ,104 ,105 )。
(3-2) Creation of Input Contact List Next, an input contact list related to each monitored output coil is created (steps 103, 104, 105).

【0057】作成された入力接点リストの一例が図12に
示されている。このリストには,図3から図9に示すラ
ダー・プログラムにおいて,各監視対象出力コイルが参
照している入力接点(入力信号によりオン,オフされる
接点:入力信号と同じ番号が付けられている),内部補
助接点,および出力接点(出力コイルによってオン,オ
フされる接点;出力コイルと同じ番号が付けられてい
る:出力コイルは出力信号と同じ番号が付けられてい
る)が挙げられている。グルーピング処理には入力接点
のみならず内部補助接点および出力接点も用いられるか
らである。
An example of the created input contact list is shown in FIG. In this list, in the ladder program shown in FIGS. 3 to 9, the input contacts referred to by each monitored output coil (contacts turned on and off by an input signal: the same number as the input signal is attached. ), Internal auxiliary contacts, and output contacts (contacts that are turned on and off by the output coil; are numbered the same as the output coil: the output coil is numbered the same as the output signal). . This is because not only the input contact but also the internal auxiliary contact and the output contact are used for the grouping process.

【0058】特に注意すべき点について説明しておく。
図7に示すラダー図において,出力コイル「治具締め
(107)」の参照している接点は内部補助接点「穴あ
け中(205)」のみである(アドレス00074参
照)。このような場合は,この出力コイル(107)と
内部補助接点(205)は同じ働きをしていると考えら
れる。したがって,内部補助接点(205)に対応する
内部補助リレー(コイル)「穴あけ中(205)」が参
照している接点「検出3(011)」,「セット完(2
04)」,「穴あけ中(205)」および「穴あけ完
(206)」も出力コイル「治具締め(107)」が参
照している接点とみなす(アドレス00069参照)。
したがって,図12のリストにおいて,治具締めの欄に
は,その番号107とともに等価な内部補助リレーの番
号205が記入され,さらに参照入力接点および内部補
助接点として番号011,204,205,206が記
入されている。
Points to be especially noted will be described.
In the ladder diagram shown in FIG. 7, the output coil "jig tightening (107)" refers only to the internal auxiliary contact "during drilling (205)" (see address 0704). In such a case, it is considered that the output coil (107) and the internal auxiliary contact (205) have the same function. Therefore, the internal auxiliary relay (coil) corresponding to the internal auxiliary contact (205) "drilling (205)" refers to the contact "Detection 3 (011)", "Set complete (2)".
04) ”,“ drilling (205) ”, and“ drilling completed (206) ”are also regarded as the contacts referred to by the output coil“ jig tightening (107) ”(see address 0609).
Therefore, in the list of FIG. 12, in the jig tightening column, the number 205 of the equivalent internal auxiliary relay is entered together with the number 107, and the numbers 011, 204, 205 and 206 are used as the reference input contact and the internal auxiliary contact. It is filled in.

【0059】同じように,出力コイル「M2回転(10
8)」は出力コイルの接点「治具締め(107)」の1
つのみを参照している(アドレス00076参照)。こ
の出力接点107から出力コイル「治具締め(10
7)」に遡って,同じように接点011,204,20
5,206を参照することになる。
Similarly, the output coil "M2 rotation (10
8) ”is 1 of the output coil contact“ jig tightening (107) ”
Only one is referenced (see address 00006). From this output contact 107, the output coil “jig tightening (10
7) ”and similarly contact points 011, 204, 20
5,206 will be referred to.

【0060】このような入出力接点リストの作成処理は
次のようにしてCPU21によって実行される。
The process of creating such an input / output contact list is executed by the CPU 21 as follows.

【0061】まず,図3から図9に示すラダー・プログ
ラム(回路)が図13から図15に示すようなニモニック
(またはニューモニック)・リストに変換される。この
変換処理はPLC10のCPU11によって実行することも
できる。
First, the ladder programs (circuits) shown in FIGS. 3 to 9 are converted into mnemonic (or mnemonic) lists as shown in FIGS. 13 to 15. This conversion process can also be executed by the CPU 11 of the PLC 10.

【0062】ニモニック・リストとはラダー・プログラ
ム(回路)と1対1に変換した言語であり,これはPL
C10のCPU11の機械語と1対1に対応している。図3
〜図9と図13〜図15との比較により,相互の関連が容易
に理解できるであろう。これらの図において,アドレス
が共通である。
The mnemonic list is a language converted into a one-to-one correspondence with a ladder program (circuit).
It has a one-to-one correspondence with the machine language of the CPU 11 of the C10. Figure 3
-By comparing Fig. 9 with Fig. 13-Fig. 15, mutual relations will be easily understood. The addresses are common in these figures.

【0063】上述した13個の監視対象出力コイルの1つ
ずつについて順次それが参照する入出力(および内部補
助)接点リストが作成される(ステップ104 )。入出力
接点リスト作成処理の対象となっている出力コイルを着
目出力コイルという。
An input / output (and internal auxiliary) contact list to which each of the above-mentioned 13 output coils to be monitored is sequentially referenced is created (step 104). The output coil that is the target of the input / output contact list creation process is called the focused output coil.

【0064】各着目出力コイルについての入出力接点リ
ストの作成処理の詳細が図16に示されている。
The details of the process of creating the input / output contact list for each output coil of interest are shown in FIG.

【0065】まずニモニック・リストにおいて,着目出
力コイルの番号をオペランド・コードから捜し出し,そ
のうちでニモニック・コードがOUTになっているステ
ートメントのアドレスを検索する。このアドレスをAと
置く(ステップ111 )。コードOUTは出力コイルであ
ることを意味する。
First, in the mnemonic list, the number of the output coil of interest is searched from the operand code, and the address of the statement in which the mnemonic code is OUT is searched for. This address is set as A (step 111). The code OUT means that it is an output coil.

【0066】たとえば上述した出力コイル「治具締め
(107)」に着目したとする。治具締め107のニモ
ニック・コードがOUTとなっているステートメントの
アドレスは00075である(図14参照)。
For example, let us focus on the above-mentioned output coil "jig tightening (107)". The address of the statement in which the mnemonic code of the jig fastening 107 is OUT is 00007 (see FIG. 14).

【0067】このアドレスA=00075を記憶装置23
または他のレジスタ等に一時的に記憶する(ステップ11
2 )。
This address A = 000075 is stored in the storage device 23.
Alternatively, it is temporarily stored in another register or the like (step 11
2).

【0068】A−1=00075−1=00074を演
算し,これを新たなアドレスAと置く(ステップ113
)。
A-1 = 00075-1 = 00074 is calculated, and this is set as a new address A (step 113).
).

【0069】新たなアドレスA=00074のニモニッ
ク・コードがLDかどうかがチェックされる(ステップ
114 )。コードLDはラダー回路における各ラダーの開
始を意味する。アドレスA=00074のニモニック・
コードはLDである。
It is checked whether the mnemonic code of the new address A = 000074 is LD (step
114). Code LD means the start of each ladder in the ladder circuit. The mnemonic at address A = 000074
The code is LD.

【0070】すなわち,このステップ114 は着目出力コ
イルがラダー上で1つの接点しか参照していないかどう
かをチェックしている訳である。上述のように,出力コ
イル「治具締め(107)」は内部補助接点「穴あけ中
(205)」しか参照していない。このような場合に
は,出力コイル(107)と内部補助接点(205)が
等価であるとみなして,内部補助接点(205)のコイ
ル(205)が参照している接点を次に捜し出すことに
なる。
That is, this step 114 is to check whether the output coil of interest refers to only one contact on the ladder. As described above, the output coil "jig tightening (107)" refers only to the internal auxiliary contact "drilling (205)". In such a case, the output coil (107) and the internal auxiliary contact (205) are considered to be equivalent, and the contact referred to by the coil (205) of the internal auxiliary contact (205) is searched for next. Become.

【0071】そのために,アドレスAのオペランド・コ
ードによって表わされる接点番号のうちでのニモニック
・コードがOUTとなっているステートメントがあるか
どうかを調べ,存在すればそのアドレスをAと置く(ス
テップ118 ,119 ,112 )。
Therefore, it is checked whether or not there is a statement in which the mnemonic code is OUT among the contact numbers represented by the operand code of address A, and if there is, the address is set to A (step 118). , 119, 112).

【0072】アドレスA=00074のオペランド・コ
ードは00205であり,これによって表わされる接点
番号205(上位2桁を省略)を,ニモニック・リスト
のオペランド欄上で調べていき,対応するニモニック・
コードがOUTとなっているステートメントがあるかど
うかをチェックする。アドレス00073のステートメ
ントは「OUT 00205」となっているので,A=
00073が記憶されることになる。
The operand code of address A = 00074 is 00205, and the contact number 205 (the upper 2 digits are omitted) represented by this is checked in the operand column of the mnemonic list, and the corresponding mnemonic
Check if there is a statement whose code is OUT. Since the statement at address 0703 is “OUT 00205”, A =
00073 will be stored.

【0073】このようにして,着目出力コイル「治具締
め(107)」と等価な内部補助リレー「穴あけ中(2
05)」が捜し出され,この内部補助リレー(205)
についてそれが参照する入出力接点が以降の処理におい
て検索され,入出力接点リストが作成されていく。
In this way, the internal auxiliary relay "during drilling (2
05) ”was sought out, and this internal auxiliary relay (205)
The input / output contact that it refers to is searched for in the subsequent processing, and the input / output contact list is created.

【0074】すなわち,記憶されたアドレスA=000
73から1が減算されることにより新たなアドレスA=
00072が得られ(ステップ113 ),この新たなアド
レスにおけるステートメントのニモニック・コードがL
Dかどうかが判断される(ステップ114 )。新たなアド
レスA=00072のニモニック・コードはANDNO
Tであるからこのステップ114 でNOとなる。
That is, the stored address A = 000
By subtracting 1 from 73, a new address A =
00072 is obtained (step 113) and the mnemonic code of the statement at this new address is L
It is judged whether or not it is D (step 114). The new address A = 000072 mnemonic code is ANDNO
Since it is T, the result of this step 114 is NO.

【0075】このアドレスA=00072の接点番号2
06が,着目出力コイル「治具締め(107)」に関す
る入出力接点リスト中に内部補助接点「穴あけ完(20
6)」として登録される(ステップ115 )。
Contact number 2 of this address A = 00072
06 shows the internal auxiliary contact “drilling completed (20) in the input / output contact list related to the focused output coil“ jig tightening (107) ”.
6) ”(step 115).

【0076】アドレスAが再びデクレメントされ(ステ
ップ117 ),1つ前のアドレスA=00071の内部補
助接点「穴あけ中(205)」が同じように上記入力接
点リストに登録される(ステップ115 )。
The address A is decremented again (step 117), and the internal auxiliary contact "during drilling (205)" of the address A = 000071 immediately before is similarly registered in the input contact list (step 115). .

【0077】ステップ117 と115 の処理はアドレスAの
ニモニック・コードがLDになるまで続けられ,ニモニ
ック・コードLDがあれば(アドレス00069におい
てコードLDが現われる),着目出力コイル「治具締め
(107)」に関する入出力接点リストの作成処理が終
る(ステップ116 )。
The processing of steps 117 and 115 is continued until the mnemonic code at address A becomes LD. If the mnemonic code LD is present (the code LD appears at address 0609), the output coil of interest "jig tightening (107 ) ”, The processing for creating the input / output contact list ends (step 116).

【0078】この結果,着目出力コイル「治具締め(1
07)」に関する入出力接点リストには「穴あけ完(2
06)」,「穴あけ中(205)」,「セット完(20
4)」および「検出3(00011)」が登録されるこ
とになる。
As a result, the output coil of interest "jig tightening (1
07) ”in the input / output contact list for
06) ”,“ drilling (205) ”,“ set complete (20
4) ”and“ Detection 3 (00011) ”are registered.

【0079】上述した出力コイル「治具締め(10
7)」および「M2回転(108)」についてのみステ
ップ114 からステップ118 ,119 を経てステップ112 に
戻る処理が行なわれる。他の出力コイルについてはステ
ップ114 から直接にステップ115に移ることになる。
The output coil "jig tightening (10
7) ”and“ M2 rotation (108) ”only, the process of returning from step 114 to steps 118 and 119 and returning to step 112 is performed. For the other output coils, the process directly moves from step 114 to step 115.

【0080】ステップ119 においてNOとなり,ステッ
プ120 に進むステートメントは図13〜図15に示すニモニ
ック・リストには存在しない。この処理は,1つの入力
信号のみによって1つの出力信号が生じ,かつ他の入力
信号や内部補助リレーには一切関連しないような処理に
ついてのものである。たとえば,タンク内の水が所定水
位まで上昇したときに表示灯を点灯するのみで,他の関
連する処理が一切ないものにあてはまる。このような場
合には,出力コイル(出力信号)を生じさせる1つの入
力接点(入力信号)がその出力コイルの入出力接点リス
トに登録され(ステップ120 ),その出力コイルについ
ての処理が終る。
The statement that becomes NO in step 119 and advances to step 120 does not exist in the mnemonic list shown in FIGS. 13 to 15. This processing is for processing in which one output signal is generated by only one input signal and is not related to other input signals or internal auxiliary relays at all. For example, this applies to the case where the indicator light is only turned on when the water in the tank rises to a predetermined level and there is no other related process. In such a case, one input contact (input signal) that causes the output coil (output signal) is registered in the input / output contact list of that output coil (step 120), and the processing for that output coil ends.

【0081】1つの着目出力コイルに関連する図16に示
す入力接点リスト作成処理が終了すると,次の着目出力
コイルが呼出され(図10,ステップ105 ),同じような
処理が,その出力コイルについて繰返し実行される。ス
テップ101 で選択されたすべての監視対象出力コイルに
ついて入出力接点リストが作成されれば(ステップ103
でYES ),次のステップ106 の結合度算出処理に移る。
ステップ103 〜105の処理により上述した図12に示す入
出力接点リストが完成する。
When the input contact list creation process shown in FIG. 16 related to one output coil is completed, the next output coil is called (FIG. 10, step 105), and similar processing is performed for that output coil. It is repeatedly executed. If an input / output contact list is created for all monitored output coils selected in step 101 (step 103
If YES, the process proceeds to the next step 106, the coupling degree calculation process.
The processing of steps 103 to 105 completes the input / output contact list shown in FIG.

【0082】(3-3) 結合度の算出 2つの出力コイルの結合度はそれらの出力コイルに共通
する入出力接点(内部補助接点を含む)の観点から求め
られる。結合度の算出方法にはいくつかあり,その例を
以下に示す。
(3-3) Calculation of degree of coupling The degree of coupling between the two output coils is obtained from the viewpoint of input / output contacts (including internal auxiliary contacts) common to those output coils. There are several methods for calculating the degree of coupling, and examples are given below.

【0083】共通接点の有無に基づく算出方法 出力コイルiと出力コイルjが共通に参照する接点(入
出力接点または内部補助接点)があれば,それらの結合
度Rijを1とし,なければ0とする。
Calculation method based on presence / absence of common contact If there is a contact (input / output contact or internal auxiliary contact) commonly referred to by the output coil i and the output coil j, the coupling degree R ij of these contacts is set to 1, and if not 0 And

【0084】共通接点の個数に基づく算出方法 出力コイルiとjとが共通に参照する接点の個数を結合
度Rijとする。たとえば共通接点の数が4であれば結合
度Rijは4,0であればRij=0となる。
Calculation Method Based on the Number of Common Contacts The number of contacts commonly referred to by the output coils i and j is defined as the coupling degree R ij . For example, if the number of common contacts is 4, and the coupling degree R ij is 4,0, then R ij = 0.

【0085】共通接点とのべ参照接点に基づく算出方
法 出力コイルiとjが共通に参照する接点の数を,コイル
iとjがそれぞれ参照する接点の総数(重複するものを
除く)で割った値を結合度Rijとする。
Calculation method based on common contacts and all reference contacts The number of contacts commonly referenced by the output coils i and j is divided by the total number of contacts referenced by the coils i and j (excluding duplicate contacts). The value is the coupling degree R ij .

【0086】結合度Rij=(出力コイルi,jの共通接
点数)/(出力コイルiとjののべ参照接点数)
Coupling degree R ij = (number of common contacts of output coils i and j) / (total number of reference contacts of output coils i and j)

【0087】図12に示す入出力接点リストにおいて,た
とえば出力コイル「投入前進(105)」が参照する接
点はその番号でいうと008,009,010,01
1,201,204,105および106の8個であ
る。出力コイル「投入後退(106)」が参照する接点
の番号は009,010,201,105および106
の5個である。これらの両出力コイルに共通する接点は
009,010,201,105および106の5個で
ある。これらの両出力コイルが参照する接点は008,
009,010,011,201,204,105およ
び106の合計8個である。
In the input / output contact list shown in FIG. 12, for example, the contact point referred to by the output coil "make-up advance (105)" is 008,009,010,01.
There are eight, 1, 201, 204, 105 and 106. The numbers of the contacts referred to by the output coil “close and retract (106)” are 009, 010, 201, 105 and 106.
It is five of. There are five contacts 009, 010, 201, 105 and 106 common to both output coils. The contacts referenced by both output coils are 008,
There are a total of 8 of 009,010,011,201,204,105 and 106.

【0088】したがって,上記の方法によると結合度
はRij=1,上記の方法によると結合度はRij=5,
上記の方法によると結合度はRij=5/8となる。
Therefore, according to the above method, the coupling degree is R ij = 1, and according to the above method, the coupling degree is R ij = 5.
According to the above method, the coupling degree is R ij = 5/8 .

【0089】上記の方法にしたがって演算された,13
個の出力コイルから選択された任意の2つの出力コイル
間の結合度が図17に示されている。これを監視対象出力
コイル結合度表という。空欄は結合度0を表わす。これ
らの結合度の分子は上記の方法によって算出された結
合度を表わす。結合度が0以外(空欄以外)の分数を1
とすれば,図17は上記の方法による結合度表に容易に
変換される。
13 calculated according to the above method
The degree of coupling between any two output coils selected from the output coils is shown in FIG. This is called a monitoring target output coil coupling degree table. A blank column indicates a bond degree of 0. The molecules of these degrees of binding represent the degrees of binding calculated by the above method. Fraction with a degree of coupling other than 0 (other than blank) is 1
Then, Fig. 17 can be easily converted into the coupling degree table by the above method.

【0090】図18はすべての監視対象出力コイルを対象
として,2つの出力コイル間の結合度を算出し,図17に
示すような結合度表を作成する処理の手順を示してい
る。これは図10のステップ106 の処理の詳細に相当す
る。
FIG. 18 shows the procedure of the processing for calculating the degree of coupling between two output coils for all the monitoring target output coils and creating a coupling degree table as shown in FIG. This corresponds to details of the processing in step 106 in FIG.

【0091】上述したように監視対象出力コイルの番号
100〜112は初期化され,0〜12に変換されてい
る。この初期化された出力コイル番号をiまたはjと置
く。出力コイル数をnとする。この実施例ではn=13で
ある。
As described above, the monitoring target output coil numbers 100 to 112 are initialized and converted to 0 to 12. This initialized output coil number is set as i or j. The number of output coils is n. In this example, n = 13.

【0092】出力コイル番号iとjを0と置く(ステッ
プ121 )。出力コイル番号iを固定しておき,番号jを
インクレメントして(ステップ122),番号iの出力コ
イルと番号jの出力コイルとの間で上述した算出方法に
したがって結合度Rijを算出する(ステップ123 )。こ
の処理を,番号jをインクレメントしながら番号jがn
に達するまで繰返す(ステップ124 )。
The output coil numbers i and j are set to 0 (step 121). The output coil number i is fixed, the number j is incremented (step 122), and the coupling degree R ij between the output coil of number i and the output coil of number j is calculated according to the above-described calculation method. (Step 123). In this process, the number j is incremented by n while incrementing the number j.
Repeat until (step 124).

【0093】次に,番号iをインクレメントし(ステッ
プ126 ),番号jをj=iと置き(ステップ127 ),上
述したステップ122 〜124 の処理を繰返す。
Next, the number i is incremented (step 126), the number j is set as j = i (step 127), and the above-mentioned steps 122 to 124 are repeated.

【0094】番号iがnに達すれば,結合度算出処理を
終える(ステップ125 )。
When the number i reaches n, the coupling degree calculation process is terminated (step 125).

【0095】以上により,番号iと番号jのすべての組
合せ(i=jを除く)について結合度Rijが算出され,
図17に示すような結合度表が作成される。
From the above, the degree of connection R ij is calculated for all combinations of numbers i and j (excluding i = j),
A coupling degree table as shown in FIG. 17 is created.

【0096】(3-4) グループの形成(その1) 作成された監視対象出力コイル結合度表を利用して出力
コイルのグループ化が行なわれる(図10,ステップ107
)。
(3-4) Group Formation (Part 1) The output coil grouping table is used to group the output coils (FIG. 10, step 107).
).

【0097】このグループ化処理の一例が図19に示され
ている。このグループ化処理は,結合度が0以外の出力
コイルを同一グループに属させる考え方に基づいてい
る。
An example of this grouping process is shown in FIG. This grouping process is based on the idea that output coils with coupling degrees other than 0 belong to the same group.

【0098】初期化された出力コイルの番号iとjをと
もに0と置き(ステップ131 ),番号iを固定しておい
て番号jをインクレメントする(ステップ132 )。
The numbers i and j of the initialized output coils are both set to 0 (step 131), the number i is fixed and the number j is incremented (step 132).

【0099】番号iの出力コイルと番号jの出力コイル
の結合度Rijを上述した結合度表から読出してそれが0
かどうかがチェックされる(ステップ133 )。
The coupling degree R ij of the output coil of number i and the output coil of number j is read from the coupling degree table described above, and is read as 0.
It is checked whether or not (step 133).

【0100】結合度Rijが0でなければ,番号iの出力
コイルと番号jの出力コイルは同一グループに属させる
必要がある。そこで,まず出力コイルiとjの少なくと
もいずれか一方が既に作成されたグループに登録されて
いるかどうかがチェックされる(ステップ134 )。出力
コイルiと出力コイルjが同じグループに既に属してい
れば,新たな登録は不要である。出力コイルiとjのい
ずれか一方があるグループに属していた場合には,まだ
そのグループに属していない他方の出力コイルを同じグ
ループに追加登録する。また,出力コイルiとjが別個
のグループにそれぞれ登録されていた場合にはこれらの
2つのグループを合併して1つのグループとする(ステ
ップ135 )。出力コイルiとjがともに既に作成されて
いるグループに属していない場合には,出力コイルiと
jにより新たなグループを形成して,そのグループに出
力コイルiとjを登録する(ステップ136 )。
If the coupling degree R ij is not 0, the output coil with number i and the output coil with number j must belong to the same group. Therefore, it is first checked whether or not at least one of the output coils i and j is registered in the already created group (step 134). If the output coil i and the output coil j already belong to the same group, new registration is unnecessary. If one of the output coils i and j belongs to a certain group, the other output coil that does not yet belong to that group is additionally registered in the same group. If the output coils i and j are registered in separate groups, these two groups are merged into one group (step 135). If both the output coils i and j do not belong to the group already created, a new group is formed by the output coils i and j, and the output coils i and j are registered in the group (step 136). .

【0101】出力コイルiとjの結合度Rijが0の場合
には何らの処理も不要である。
If the coupling degree R ij of the output coils i and j is 0, no processing is required.

【0102】番号jがnに達するまで,番号jをインク
レメントしながら上述したステップ132 〜136 の処理を
繰返す(ステップ137 )。
Until the number j reaches n, the above steps 132 to 136 are repeated while incrementing the number j (step 137).

【0103】j=nになると,番号iをインクレメント
して(ステップ139),j=iと置き(ステップ140
),ステップ132 に戻って再び上述の処理を繰返す。
When j = n, the number i is incremented (step 139) and j = i is set (step 140).
), And returns to step 132 and repeats the above processing again.

【0104】番号iがnに達したときにグループ化処理
が終る(ステップ138 )。
When the number i reaches n, the grouping process ends (step 138).

【0105】このようにして形成されたグループ(一般
には複数)は出力(表示)装置24に表示される(図10,
ステップ108 )。その表示例が図20に示されている。
The group (generally a plurality) thus formed is displayed on the output (display) device 24 (see FIG. 10,
Step 108). The display example is shown in FIG.

【0106】上述した13個の出力コイル100〜112
は次のように3つのグループに分けられる。
The above-mentioned 13 output coils 100 to 112
Are divided into three groups as follows.

【0107】グループI:出力コイル100,101 グループII:出力コイル102,103,104 グループIII :出力コイル105,106,107,1
08,109,110,111,112
Group I: Output coils 100, 101 Group II: Output coils 102, 103, 104 Group III: Output coils 105, 106, 107, 1
08,109,110,111,112

【0108】図2に示す被制御システムについて説明す
ると,グループIは操作盤90における運転中ランプ70と
異常ランプ71の点滅についての処理に関するものであ
る。この処理についての概要が図21に示されている。
The controlled system shown in FIG. 2 will be described. Group I relates to a process for blinking the operating lamp 70 and the abnormal lamp 71 on the operation panel 90. An overview of this process is shown in FIG.

【0109】グループIIは,不良ワークの排除工程に関
するものである。このグループIIではワーク検出器55お
よびバリ検出器56の出力信号に基づいてモータ72および
不良排除シリンダ73が制御される。この工程における制
御の概要が図22に示されている。
Group II relates to the process of eliminating defective work. In this group II, the motor 72 and the defect elimination cylinder 73 are controlled based on the output signals of the work detector 55 and the burr detector 56. The outline of the control in this step is shown in FIG.

【0110】グループIII はワークの穴あけ工程に関す
るものである。このグループIII では,投入シリンダ75
によるワークの加工台93への投入,治具77によるワーク
の締め付け固定,ドリル79による穴あけ,および排出シ
リンダ81によるワークの加工台からの排出が相互に関連
して実施される。この工程における制御の概要が図23に
示されている。
Group III relates to the process of drilling a workpiece. In this group III, the loading cylinder 75
The work is loaded into the processing table 93, the work is clamped and fixed by the jig 77, the hole is drilled by the drill 79, and the work is discharged from the processing table by the discharge cylinder 81. The outline of the control in this step is shown in FIG.

【0111】このようにして,入出力接点の共通性の観
点から出力コイルをグループ分けすることができる。各
グループのグループ内においては各部の動作が相互に関
連している。グループ間においては相互に関連性が殆ど
ない。
In this way, the output coils can be grouped in terms of the commonality of the input / output contacts. The operation of each unit is related to each other in each group. The groups have little relevance to each other.

【0112】(3-5) グループの形成(その2) グルーピングの他の方法について説明する。このグルー
プ化方法は1つのグループ内に属する出力コイル数を制
限するものである。上述したまたはの方法により算
出された結合度が用いられる。結合度の大きいものから
順にグループ化していき,グループに属する出力コイル
数が制限数に達すると,そのグループへの出力コイルの
登録は禁止され,新たなグループが形成される。
(3-5) Group Formation (Part 2) Another method of grouping will be described. This grouping method limits the number of output coils belonging to one group. The degree of coupling calculated by the above method or is used. When the number of output coils belonging to the group reaches the limit number, registration of the output coil to the group is prohibited and a new group is formed.

【0113】図24はこのグループ化方法の処理手順を示
している。1つのグループに属させることのできる最大
出力コイル数をaとする。
FIG. 24 shows the processing procedure of this grouping method. The maximum number of output coils that can belong to one group is a.

【0114】監視対象出力コイル結合度表を参照して,
最大の結合度Rijをもつ出力コイルiとjを捜し出す
(ステップ141 )。
Referring to the monitoring target output coil coupling degree table,
The output coils i and j having the maximum coupling degree R ij are searched (step 141).

【0115】その結合度Rijが0でないことを確認して
(ステップ142 ),これらの出力コイルiとjのいずれ
か一方が,既に形成されているグループ(第1番目の結
合度Rijのための処理の時点ではグループはまだ形成さ
れていない)に登録されているかどうかが判定される
(ステップ143 )。出力コイルi,jの両方とも既に存
在するグループに登録されていなければ,これらの出力
コイルiとjによって新たなグループを形成し,このグ
ループをメモリに登録する(ステップ144 )。そして,
処理の対象となった(ステップ141 で検索された)結合
度Rijを監視対象出力コイル結合度表から削除する(ス
テップ145 )。
It is confirmed that the coupling degree R ij is not 0 (step 142), and one of the output coils i and j has a group already formed (of the first coupling degree R ij ). It is determined whether or not the group has not been formed at the time of the processing (step 143). If both output coils i and j are not already registered in the existing group, a new group is formed by these output coils i and j, and this group is registered in the memory (step 144). And
The coupling degree R ij that has been the object of processing (searched in step 141) is deleted from the monitoring target output coil coupling degree table (step 145).

【0116】出力コイルiとjのいずれか一方が既に存
在するグループに登録されている場合には(ステップ14
3 でYES ),次に出力コイルiとjの両方ともが既に存
在するグループに登録されているかどうか(出力コイル
iとjが同じグループでも,異なるグループでもよい)
が判定される(ステップ146 )。
If any one of the output coils i and j is registered in the existing group (step 14
3 YES), then whether both output coils i and j are already registered in the existing group (the output coils i and j may be the same group or different groups)
Is determined (step 146).

【0117】出力コイルiとjの両方ともグループ登録
されていなければ,いずれか一方の出力コイルが登録さ
れているのであるから(ステップ143 でYES の条件を通
過している),一方の出力コイルが登録されているグル
ープに属する出力コイルの数が最大数aに達しているか
どうかが判定される(ステップ147 )。当該グループに
属する出力コイルの数が最大数aに達していなければ,
当該グループに,いずれのグループにも属していない他
方の出力コイルを登録し(ステップ148 ),処理の対象
となっている結合度Rijを結合度表から削除する(ステ
ップ145 )。一方の出力コイルが登録されているグルー
プに含まれる出力コイルの数が既に最大数aに達してい
る場合には(ステップ147 でYES ),何もすることな
く,当該結合度Rijを結合度表から削除する(ステップ
145 )。この場合には,グループにまだ属していない他
方の出力コイルについてのグループ登録が行なわれない
が,以降の繰返し処理において最終的にはいずれかのグ
ループに登録されることを期待する。グループ形成処理
が終了した時点で,どのグループにも属さない出力コイ
ル(他の出力コイルとの結合度が0でないもの)が残っ
てしまった場合には,何らかのやり方で(たとえば,登
録数がaよりも大きくなっても無理にいずれかのグルー
プに入れる,ユーザが判断していずれかのグループに入
れる等),いずれかのグループに属されるようにすると
よい。
If both output coils i and j are not group-registered, one of the output coils is registered (YES condition is satisfied in step 143). It is judged whether or not the number of output coils belonging to the group in which has been registered has reached the maximum number a (step 147). If the number of output coils belonging to the group has not reached the maximum number a,
The other output coil that does not belong to any group is registered in the group (step 148), and the coupling degree R ij to be processed is deleted from the coupling degree table (step 145). If the number of output coils included in the group in which one of the output coils is registered has already reached the maximum number a (YES in step 147), the coupling degree R ij is set to the coupling degree without performing anything. Delete from table (step
145). In this case, the other output coil that does not yet belong to the group is not registered as a group, but it is expected that it will eventually be registered in one of the groups in the subsequent iterative processing. If output coils that do not belong to any group (coupling degree with other output coils is not 0) remain at the end of the group forming process, the output coil is registered in some way (for example, the number of registrations is a. Even if it becomes larger than that, it is forcibly put in any group, it is judged by the user to be put in any group, etc.), and it is recommended to belong to any group.

【0118】出力コイルiとjの両方が既にいずれかの
グループに属している場合には,それらの出力コイルi
とjとが同じグループに登録されているかどうかが判定
される(ステップ149 )。出力コイルiとjが同じグル
ープに登録されている場合には,一切の処理は不要であ
り,当該結合度Rijを結合度表から削除する(ステップ
145 )。
If both output coils i and j already belong to either group, those output coils i
It is determined whether and j are registered in the same group (step 149). If the output coils i and j are registered in the same group, no processing is required and the coupling degree R ij is deleted from the coupling degree table (step
145).

【0119】出力コイルiとjが別個のグループに属し
ている場合には,これらの2つのグループに登録されて
いる出力コイルの数の和が最大数a以下かどうかが判断
される(ステップ150 )。2つのグループに属する出力
コイル数の和がa以下であれば,これら2つのグループ
を1つに合併する(ステップ151 )。2つのグループに
属するコイル数の和がaを超える場合には何もしない。
これらの後,処理の対象となっている結合度Rijを結合
度表から削除する(ステップ145 )。
If the output coils i and j belong to different groups, it is determined whether the sum of the numbers of output coils registered in these two groups is less than or equal to the maximum number a (step 150). ). If the sum of the numbers of output coils belonging to the two groups is a or less, these two groups are merged into one (step 151). If the sum of the numbers of coils belonging to the two groups exceeds a, nothing is done.
After that, the connection degree R ij which is the object of processing is deleted from the connection degree table (step 145).

【0120】ステップ145 の処理ののち,再びステップ
141 に戻り,結合度表に残っている結合度のうち最大の
ものを選択して同じような処理が繰返される。そして,
結合度表に残っている結合度のすべてが0となったとき
にグループ形成処理が終る(ステップ142 )。
After the processing of step 145, the step is repeated again.
Returning to step 141, the highest bond degree remaining in the bond degree table is selected and the same process is repeated. And
When all the bond degrees remaining in the bond degree table become 0, the group forming process ends (step 142).

【0121】図25はこのグルーピング方法により作成さ
れたグループの表示例を示すものである。1グループに
属することのできる出力コイル数をa=6としてある。
4つのグループI,II,III およびIVが形成されてい
る。図26は作成されたグループの他の表示例を示すもの
である。
FIG. 25 shows a display example of a group created by this grouping method. The number of output coils that can belong to one group is a = 6.
Four groups I, II, III and IV have been formed. FIG. 26 shows another display example of the created group.

【0122】(4) 故障診断処理の例 上述したように図2に示すシステムの制御のための出力
コイルはグルーピング処理により3つまたは4つのグル
ープに分けられることが分った。このようにして分けら
れた各グループについては相互に独立して故障診断が行
なわれる。
(4) Example of Fault Diagnosis Process As described above, it was found that the output coils for controlling the system shown in FIG. 2 are divided into three or four groups by the grouping process. For each of the groups thus divided, failure diagnosis is performed independently of each other.

【0123】故障診断処理の一例として,上記(3-4) グ
ループの形成(その1)でグルーピングされた3つのグ
ループのうち,穴あけ加工に関連するグループIII に関
する故障診断処理について以下に具体的に説明する。
As an example of the failure diagnosis processing, the failure diagnosis processing for the group III related to drilling among the three groups grouped in (3-4) Group formation (Part 1) will be specifically described below. explain.

【0124】図27は穴あけ加工全体(投入シリンダ75に
よるワークWの搬送台92から加工台93への搬送,冶具77
によるワークWの固定,モータ78とドリル79によるワー
クWの穴あけ,排出シリンダ81による穴あけ加工済ワー
クの加工台93からの排出)の動作を示すものである。P
LC10への入力信号とPLC10からの出力信号が示され
ている。また,時間の推移にしたがって出力信号の状態
(出力パターン)が遷移する様子が示されている。遷移
する出力信号の各状態(破線が引かれた位置における信
号の状態)に[1]〜[7]の番号が割当てられてい
る。これらの各状態を以下ではステートと呼ぶことにす
る。
FIG. 27 shows the entire drilling process (transfer of the work W from the transfer table 92 to the processing table 93 by the loading cylinder 75, the jig 77).
The operation of fixing the work W by means of, the drilling of the work W by means of the motor 78 and the drill 79, and the discharge of the hole-finished work from the processing table 93 by means of the discharge cylinder 81). P
The input signal to LC10 and the output signal from PLC10 are shown. Further, it is shown that the state of the output signal (output pattern) changes with the passage of time. The numbers [1] to [7] are assigned to the respective states of the output signal that transits (state of the signal at the position where the broken line is drawn). Hereinafter, each of these states will be referred to as a state.

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

【0126】次に,投入シリンダ75のロッドがその前進
端に至ったことが投入前端検出器によって検知されると
(入力信号「投入前端」オン),ステート[1]からス
テート[2]に遷移し,投入シリンダ75のロッドは前進
動作を停止して後退動作を開始し,冶具77が加工台93に
送られてきたワークの固定を開始し,さらにモータ78が
回転駆動される。これは図6に示すアドレス00052
等のプログラムにしたがって実行される。
Next, when it is detected by the closing front end detector that the rod of the closing cylinder 75 has reached its forward end (input signal "closing front end" is on), the state [1] transits to the state [2]. Then, the rod of the charging 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 rotationally driven. This is the address 00052 shown in FIG.
Etc. are executed according to the program.

【0127】投入シリンダ75のロッドが後退端に至った
ことが投入後端検出器によって検知されると(入力信号
「投入後端」オフ),ステート[2]からステート
[3]に遷移し,投入シリンダ75の後退動作が停止し,
ドリル79が下降を開始する。これにより,ドリル79によ
ってワークWに穴があけられていく。
When it is detected by the closing trailing end detector that the rod of the closing cylinder 75 has reached the retracted end (input signal "closing rear end" is off), the state [2] transits to the state [3], The backward movement of the closing cylinder 75 stops,
The drill 79 starts descending. As a result, the work 79 is drilled by the drill 79.

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

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

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

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

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

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

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

【0135】このような出力パターン・データは被制御
システムを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 it operates normally when it changes. Can be created. Most commonly, I / O provided in RAM14 of PLC10
It can be created by sampling the O table at regular intervals and processing it. The details will be described in the description of the creation of the reference data for detecting abnormal points.

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

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

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

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

【0140】異常箇所検知用基準データは上述した異常
判定用基準データを用いた異常検知処理において異常が
検知されたときにその検知された異常の原因となる箇所
ないしは部位を特定するために用いられる。したがっ
て,原則的には,監視の対象となっている出力信号に直
接または間接に影響を及ぼす入力信号のすべてが選択さ
れる。しかしながら,異常箇所特定処理から漏れても問
題のない部位に関する入力信号を意識的に外すこともで
きる。監視の対象となっている出力信号に関連性のない
入力信号は選択する必要はない。
The abnormal point detection reference data is used to specify a point or a portion which causes the detected abnormality when an abnormality is detected in the abnormality detection process using the abnormality determination reference data described above. . Therefore, in principle, all input signals that directly or indirectly influence the output signal being monitored are selected. However, it is also possible to intentionally remove the input signal related to the part that has no problem even if it leaks from the abnormal part identification processing. It is not necessary to select an input signal that is unrelated to the output signal being monitored.

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

【0142】図30は異常箇所検知用基準データの一例を
示すものであり,図29に示す各ステートに対応する入力
期待パターンから構成されている。この入力期待パター
ンにおいても各入力信号の期待状態は1ビットで表現さ
れ,オンが1,オフが0によってそれぞれ表わされてい
る。図27に示す入力信号のタイミング・チャートと図30
のテーブルを比較することにより,それらの対応関係が
容易に理解できるであろう。
FIG. 30 shows an example of abnormal point detection reference data, which is composed of input expected patterns corresponding to the respective states shown in FIG. Also in this input expectation 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. Input Signal Timing Chart Shown in Figure 27 and Figure 30
By comparing the tables in, it will be easy to understand their correspondence.

【0143】このような入力期待パターンを含む異常箇
所検知用基準データは,被制御システムをPLC10の制
御の下に稼動させておき,被制御システムが正常に動作
している場合において,出力信号の状態が変化したとき
の入力信号の状態を読取り,出力信号の状態遷移に関す
る異常判定用基準データに対応して読取った入力信号の
状態を記憶することにより作成することができる。
The abnormal point detection reference data including such an expected input pattern is used to output the output signal when the controlled system is operated under the control of the PLC 10 and 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 regarding the state transition of the output signal.

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

【0145】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 out at regular sampling time intervals.
Check to see if there is a change in the output signal state from the read input and output signal states. When the state of the output signal changes, the changed state of the output signal 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 abnormal part detection reference data is created by storing the state of the input signal immediately after the change of the state of the output signal as an input expected pattern in association with the above state number.

【0146】以下の説明では故障診断処理は基本的には
PLC10のCPU11によって実行されるものとする。P
LC10のROM12には故障診断プログラムがあらかじめ
格納されている。
In the following description, the failure diagnosis processing is basically executed by the CPU 11 of the PLC 10. P
A failure diagnostic program is stored in advance in the ROM 12 of the LC10.

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

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

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

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

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

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

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

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

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

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

【0157】ステップ162 において,前回サンプル・パ
ターンと今回サンプル・パターンとが異なる場合には,
出力信号の状態,すなわちステートが遷移したと判定さ
れる。この場合には,タイマ15の計時時間がステート
[i]からステート[i+1]への実際の遷移時間とし
て読取られる(ステップ163 )。また,今回のサンプル
・パターンと遷移後のステート[i+1]の基準データ
に含まれる出力パターンとが比較される(ステップ164
)。
In step 162, if the previous sample pattern and the current sample pattern are different,
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 163). Further, the sample pattern this time is compared with the output pattern included in the reference data of the state [i + 1] after the transition (step 164).
).

【0158】今回のサンプル・パターンと基準出力パタ
ーンとが一致していれば(ステップ165 ),次のステッ
プ166 の遷移時間のチェックに進む。今回のサンプル・
パターンと基準出力パターンとが不一致の場合には,異
常と判定され,異常検知の旨および異常の生じている出
力信号が表示装置24に表示され(ステップ168 ),ステ
ップ169 から始まる異常箇所の特定処理に進む。今回の
サンプル・パターンと基準出力パターンとの比較におい
て,不一致の箇所が異常出力信号に相当する。
If the sample pattern this time matches the reference output pattern (step 165), the process proceeds to the next step 166 to check the transition time. This sample
If the pattern and the reference output pattern do not match, it is determined that there is an abnormality, the abnormality detection result and the output signal indicating the abnormality are displayed on the display device 24 (step 168), and the abnormal portion starting from step 169 is identified. Go to processing. In the comparison between the sample pattern and the reference output pattern this time, the mismatched portion corresponds to the abnormal output signal.

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

【0160】遷移のために要する時間の計時はタイマ15
を用いずにRAM14の所定のエリアを用いて行うことも
できるのはいうまでもない。
Timer 15 measures the time required for the transition.
It goes without saying that it is also possible to use a predetermined area of the RAM 14 without using.

【0161】異常箇所の特定処理においてはまず,異常
が検知された時点における入力信号の状態(入力パター
ン)がI/Oテーブルから読出され,このサンプル入力
パターンが一時的にRAM104 に記憶される(ステップ
169)。
In the process of identifying the abnormal portion, 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 ( Step
169).

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

【0163】この入力期待パターンとサンプル入力パタ
ーンとの比較において一致していない入力信号の状態が
あれば,その入力信号が異常箇所としてコンソール20の
表示装置24に表示される(ステップ171 )。
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 24 of the console 20 as an abnormal portion (step 171).

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

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

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

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

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

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

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

【図1】PLCおよびコンソール(グループ化装置)の
構成を示すブロック図である。
FIG. 1 is a block diagram showing configurations of a PLC and a console (grouping device).

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

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

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

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

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

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

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

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

【図10】グループ化処理の全体を示すフローチャート
である。
FIG. 10 is a flowchart showing the entire grouping process.

【図11】I/Oリレー・リストの一例を示す。FIG. 11 shows an example of an I / O relay list.

【図12】入出力接点リストの一例を示す。FIG. 12 shows an example of an input / output contact list.

【図13】ニモニック・リストを示す。FIG. 13 shows a mnemonic list.

【図14】ニモニック・リストを示す。FIG. 14 shows a mnemonic list.

【図15】ニモニック・リストを示す。FIG. 15 shows a mnemonic list.

【図16】入出力接点リスト作成処理手順を示すフロー
チャートである。
FIG. 16 is a flowchart showing an input / output contact list creation processing procedure.

【図17】監視対象出力コイル結合度表を示す。FIG. 17 shows a monitored output coil coupling degree table.

【図18】結合度算出処理手順を示すフローチャートで
ある。
FIG. 18 is a flowchart showing a coupling degree calculation processing procedure.

【図19】出力コイルのグループ形成処理手順を示すフ
ローチャートである。
FIG. 19 is a flowchart showing a procedure for forming a group of output coils.

【図20】グルーピング結果の表示例を示す。FIG. 20 shows a display example of a grouping result.

【図21】操作盤における処理の概要を示す。FIG. 21 shows an outline of processing in the operation panel.

【図22】不良ワーク排除工程の概要を示す。FIG. 22 shows an outline of a defective work elimination process.

【図23】ワークの穴あけ工程の概要を示す。FIG. 23 shows an outline of a work drilling process.

【図24】出力コイルのグループ形成処理手順の他の例
を示すフローチャートである。
FIG. 24 is a flowchart showing another example of a procedure for forming a group of output coils.

【図25】グルーピング結果の他の表示例を示す。FIG. 25 shows another display example of the grouping result.

【図26】グルーピング結果のさらに他の表示例を示
す。
FIG. 26 shows still another display example of the grouping result.

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

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

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

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

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

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

【図33】故障診断結果の表示例を示す。FIG. 33 shows a display example of a failure diagnosis result.

【図34】相互に非同期の2つの工程の動作を示す。FIG. 34 shows the operation of two steps asynchronous with each other.

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

10 PLC(プログラマブル・ロジック・コントロー
ラ) 11,21 CPU 12 ROM 13 RAM 14 RAM 15 タイマ 20 コンソール 22,23 メモリ装置 24 出力装置 25 入力装置
10 PLC (Programmable Logic Controller) 11,21 CPU 12 ROM 13 RAM 14 RAM 15 Timer 20 Console 22,23 Memory device 24 Output device 25 Input device

フロントページの続き (72)発明者 石黒 進 京都市右京区花園土堂町10番地 オムロ ン株式会社内 (56)参考文献 特開 昭58−97703(JP,A) 特開 昭58−94005(JP,A) 特開 平2−16603(JP,A) 特開 平1−134503(JP,A) 特開 昭62−117010(JP,A) 特開 昭62−86408(JP,A) 特開 昭58−62709(JP,A) 実開 昭61−65507(JP,U) (58)調査した分野(Int.Cl.7,DB名) G05B 19/04 - 19/05 Front Page Continuation (72) Inventor Susumu Ishiguro 10 Hanazono Dodo-cho, Ukyo-ku, Kyoto Omron Co., Ltd. (56) References JP-A-58-97703 (JP, A) JP-A-58-94005 (JP, A) JP 2-16603 (JP, A) JP 1-134503 (JP, A) JP 62-117010 (JP, A) JP 62-86408 (JP, A) JP 58 -62709 (JP, A) Actual development Sho 61-65507 (JP, U) (58) Fields investigated (Int.Cl. 7 , DB name) G05B 19/04-19/05

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 プログラマブル・ロジック・コントロー
ラが実行するプログラムにおいて各監視対象出力に関連
する入,出力接点を抽出する処理をすべての上記監視対
象出力について行い, 抽出された入,出力接点の共通性の観点から任意の2つ
の監視対象出力相互の結合性に関するデータを算出し, 算出された結合性に関するデータによって表わされる監
視対象出力間の結合の強さの観点から上記の各監視対象
出力が属するグループを形成する, 故障診断のための診断対象のグループ化方法。
1. A program executed by a programmable logic controller performs a process of extracting input / output contacts related to each monitored output for all the monitored outputs, and commonality of the extracted input / output contacts. From the viewpoint, the data regarding the connectivity between any two monitored outputs are calculated, and the above monitored outputs belong to the viewpoint of the strength of the coupling between the monitored outputs represented by the calculated connectivity data. A method of grouping diagnostic targets for fault diagnosis that forms a group.
【請求項2】 1つのグループに属する監視対象出力の
数に上限を設け,結合の強い監視対象出力から順にグル
ープ化を行い,含まれる監視対象出力の数が上記上限に
達したグループについてはそのグループへの監視対象出
力の登録を禁止する,請求項1に記載のグループ化方
法。
2. An upper limit is set for the number of monitoring target outputs belonging to one group, and the monitoring target outputs having strong coupling are grouped in order, and the group whose number of monitoring target outputs included therein reaches the upper limit is The grouping method according to claim 1, wherein registration of monitored output to a group is prohibited.
【請求項3】 選択された監視対象出力のそれぞれにつ
いて,プログラマブル・ロジック・コントローラが実行
するプログラム上においてその監視対象出力が参照する
入,出力接点を抽出する手段, 上記監視対象出力の中から選択された2つの監視対象出
力の組合せのすべてについて,それらの2つの監視対象
出力が参照する入,出力接点の共通性の観点から2つの
監視対象出力相互の結合度を算出する手段, 算出された結合度に基づいて上記監視対象出力をグルー
プ化する手段,および上記監視対象出力のグループ化の
結果を出力する手段, を備えた故障診断のための診断対象のグループ化装置。
3. For each of the selected monitored outputs, a means for extracting the input / output contact referred to by the monitored output in the program executed by the programmable logic controller, and selected from the monitored outputs. For all combinations of the two monitored outputs that have been selected, means for calculating the degree of coupling between the two monitored outputs from the viewpoint of the commonality of the input and output contacts that the two monitored outputs refer to, A diagnostic target grouping device for fault diagnosis, comprising: means for grouping the monitored outputs based on the degree of coupling; and means for outputting a result of grouping the monitored outputs.
JP31975491A 1991-11-08 1991-11-08 Method and apparatus for grouping diagnosis targets for failure diagnosis Expired - Fee Related JP3380912B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31975491A JP3380912B2 (en) 1991-11-08 1991-11-08 Method and apparatus for grouping diagnosis targets for failure diagnosis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31975491A JP3380912B2 (en) 1991-11-08 1991-11-08 Method and apparatus for grouping diagnosis targets for failure diagnosis

Publications (2)

Publication Number Publication Date
JPH05134718A JPH05134718A (en) 1993-06-01
JP3380912B2 true JP3380912B2 (en) 2003-02-24

Family

ID=18113803

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31975491A Expired - Fee Related JP3380912B2 (en) 1991-11-08 1991-11-08 Method and apparatus for grouping diagnosis targets for failure diagnosis

Country Status (1)

Country Link
JP (1) JP3380912B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120072777A1 (en) * 2009-05-27 2012-03-22 Mitsubishi Electric Corporation Debugging device, debugging method, and computer program for sequence program
JP6122054B2 (en) 2015-03-13 2017-04-26 ファナック株式会社 Monitor device having branch circuit extraction display function of ladder program

Also Published As

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

Similar Documents

Publication Publication Date Title
US5742624A (en) Fault detecting apparatus and method
JP3275450B2 (en) Failure diagnosis method and device
US20040176926A1 (en) System and method for machining data management
US4592053A (en) Programmable controller
WO1989003073A1 (en) Expert system for a machine tool equipped with an nc apparatus
JP5021547B2 (en) Automatic machine monitoring equipment
CN115592468B (en) Automatic detection and error prevention method for milling machine cutter
JP3380912B2 (en) Method and apparatus for grouping diagnosis targets for failure diagnosis
JP3134428B2 (en) Failure diagnosis method and device
Brophy et al. AI-based condition monitoring of the drilling process
JPH06318113A (en) Method and device for grouping objects of diagnosis for fault diagnosis
CN114063575B (en) Information processing equipment, control methods, production systems, manufacturing methods and media
US8346383B2 (en) Method for determining the machining quality of components, particularly for metal cutting by NC machines
JP2554282B2 (en) Fault diagnosis device for sequence controller
JPH05172862A (en) Method and apparatus for determining cycle of data string and method and apparatus for failure diagnosis
JPH0749293A (en) Fault code storage device
JP2687726B2 (en) Failure detection device and method
JPS6288540A (en) Machining tool processing equipment in FMS
JP7629881B2 (en) Tact division data collection system and anomaly detection system
JP4484450B2 (en) Integrated monitoring analyzer
JPS61164764A (en) Cutting tool damage detection device
KR0183746B1 (en) Apparatus and method of testing hard disk assembly
AU775127B2 (en) Method and system for analyzing fault log data for diagnostics and repairs of locomotives
JP7750101B2 (en) Abnormality diagnosis device and abnormality diagnosis method
JP2003022181A (en) Microcomputer software execution error detection method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081220

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees