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
JP3211099B2 - Data sequence period determination device and failure diagnosis method and device - Google Patents
[go: Go Back, main page]

JP3211099B2 - Data sequence period determination device and failure diagnosis method and device - Google Patents

Data sequence period determination device and failure diagnosis method and device

Info

Publication number
JP3211099B2
JP3211099B2 JP32678591A JP32678591A JP3211099B2 JP 3211099 B2 JP3211099 B2 JP 3211099B2 JP 32678591 A JP32678591 A JP 32678591A JP 32678591 A JP32678591 A JP 32678591A JP 3211099 B2 JP3211099 B2 JP 3211099B2
Authority
JP
Japan
Prior art keywords
data
pattern
data transition
transition pattern
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
JP32678591A
Other languages
Japanese (ja)
Other versions
JPH05172862A (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 JP32678591A priority Critical patent/JP3211099B2/en
Publication of JPH05172862A publication Critical patent/JPH05172862A/en
Application granted granted Critical
Publication of JP3211099B2 publication Critical patent/JP3211099B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measuring Frequencies, Analyzing Spectra (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

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

【0001】[0001]

【技術分野】この発明は与えられたデータ列に内包され
るデータの繰返し周期を自動的に見い出してその周期を
構成するデータ列を特定するデータ列の周期決定装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data sequence period determining apparatus for automatically finding a repetition period of data contained in a given data sequence and specifying a data sequence constituting the period.

【0002】この発明はまた,プログラマブル・ロジッ
ク・コントローラ(PLC)等の制御装置によって制御
されるシステム(機器を含む)の故障を診断するための
方法および装置に関する。上記データ列の周期決定方法
および装置は,被制御システムの動作の類型を把握する
ために好適に用いられ,故障診断のための基準となるデ
ータの作成の便宜のための基礎データを与えてくれる。
[0002] The present invention also relates to a method and apparatus for diagnosing a failure of a system (including equipment) controlled by a control device such as a programmable logic controller (PLC). The above-described method and apparatus for determining the cycle of the data sequence are suitably used to grasp the type of operation of the controlled system, and provide basic data for convenience in creating data that serves as a reference for failure diagnosis. .

【0003】[0003]

【発明の背景】連続的に与えられる周期的性質をもつデ
ータ,たとえばデータ通信において受信するデータ,音
声認識の波形解析において処理対象となるデータ,被制
御システムの故障診断のために被制御システムまたはそ
の制御装置から得られるデータを受取った場合,そのデ
ータに含まれる周期的パターンを特定する必要がある。
BACKGROUND OF THE INVENTION Data having a periodically given periodic characteristic, for example, data received in data communication, data to be processed in speech analysis waveform analysis, a controlled system or a controlled system for failure diagnosis of the controlled system. When data obtained from the control device is received, it is necessary to specify a periodic pattern included in the data.

【0004】周期的性質をもつデータ列に含まれる周期
的パターンを特定する方法として, 1.データ列に一周期ごとに同期信号をあらかじめ付加
しておき,この同期信号を利用する, 2.同期信号が付加されていない場合には,何らかの手
法によりコンピュータを用いて周期を同定する,または 3.データ列を人間が観察して周期を見付ける(故障診
断のための基準データを作成するときなどにおいて用い
られる),などがある。
As a method of specifying a periodic pattern included in a data string having a periodic property, there are the following methods. 1. A synchronization signal is added in advance to the data sequence for each cycle, and the synchronization signal is used. 2. If no synchronization signal is added, the period is identified using a computer by some means, or A human observes the data sequence to find the cycle (used when creating reference data for failure diagnosis, for example).

【0005】上記1.の方法は同期信号を付加すること
によりデータが冗長となり,かつデータ長が長くなる。
また,同期信号が付加されていない場合には用いること
ができない。
[0005] 1. In the method (1), the data becomes redundant and the data length becomes longer by adding a synchronization signal.
Also, when no synchronization signal is added, it cannot be used.

【0006】上記2.の方法は,現在,相関係数を用い
る方法などにより実現可能であるが計算量が膨大とな
り,かつ計算に時間がかかる。また,分岐するデータ列
構造のものに適用するのは困難である。
[0006] 2. This method can be realized by a method using a correlation coefficient at present, but the amount of calculation becomes enormous and the calculation takes time. Further, it is difficult to apply the present invention to a branching data string structure.

【0007】上記3.の方法は,人間が行うために,相
当の時間と手間がかかる。
[0007] 3. This method requires a considerable amount of time and effort to be performed by humans.

【0008】[0008]

【発明の概要】この発明は,比較的簡単に,分岐をもつ
構造のものであっても,与えられたデータ列の周期をコ
ンピュータを用いて特定することができる方法および装
置を提供するものである。
SUMMARY OF THE INVENTION The present invention provides a method and an apparatus which can specify the period of a given data sequence using a computer, even if it has a relatively simple structure having branches. is there.

【0009】この発明はまた,とくに分岐をもつ構造の
状態遷移パターンが現われる被制御システムの故障診断
に適した故障診断方法および装置を提供するものであ
る。
Another object of the present invention is to provide a failure diagnosis method and apparatus suitable for failure diagnosis of a controlled system in which a state transition pattern of a structure having a branch appears.

【0010】この発明によるデータ列の周期決定装置
は,与えられたデータ列から,所定長の連続するデータ
からなるすべての種類のデータ遷移パターンを抜出す手
段,抜出されたデータ遷移パターンのうちの任意のもの
を先頭に配置し,先行するデータ遷移パターンの後部と
共通なデータの並びを前部にもつ他のデータ遷移パター
ンを,上記先行するデータ遷移パターンに後続させるよ
うにして,かつできるだけ異なるデータ遷移パターンを
用いるようにして,データ遷移パターンの連鎖を作成す
る手段,先頭に配置されるデータ遷移パターンを変えな
がら,上記連鎖作成手段にデータ遷移パターンの連鎖の
作成を繰返させ,先頭のデータ遷移パターンに再び戻っ
てくる連鎖があるかどうかをチェックする手段,および
先頭のデータ遷移パターンに戻ってきたときに,作成さ
れた連鎖が与えられたデータ列の一周期に相当すること
を利用して,その周期を決定する手段を備えている。
A data string period determining apparatus according to the present invention includes means for extracting all types of data transition patterns consisting of continuous data of a predetermined length from a given data string, and among the extracted data transition patterns, Is placed at the beginning, and another data transition pattern having the same data sequence as the rear part of the preceding data transition pattern at the front is made to follow the preceding data transition pattern, and Means for creating a chain of data transition patterns by using different data transition patterns, and changing the chain of data transition patterns arranged at the head, causing the chain creation means to repeat the creation of the chain of data transition patterns, Means for checking whether there is a chain that returns to the data transition pattern again, and the first data transition pattern When came back over down, by utilizing the fact that corresponding to one period of the data string given a chain created, and a means for determining the period.

【0011】[0011]

【0012】上記において,抜出されたすべてのデータ
遷移パターンを連鎖の先頭に配置しても,作成された連
鎖において先頭のデータ遷移パターンに戻ってこなかっ
たときには,与えられたデータ列から抜出すデータ遷移
パターンのデータ長を変えるとよい。
In the above, even if all the extracted data transition patterns are arranged at the head of the chain, if they do not return to the first data transition pattern in the created chain, they are extracted from a given data string. It is preferable to change the data length of the data transition pattern.

【0013】[0013]

【0014】[0014]

【0015】[0015]

【0016】この発明によるデータ列の周期を決定する
装置は,与えられたデータ列から,所定長の連続するデ
ータからなるすべての種類のデータ遷移パターンを抜出
す手段,抜出されたデータ遷移パターンを,上記データ
列を構成するすべての種類の単位データに関連させて記
憶する手段,任意の単位データに関連しかつそれを含む
データ遷移パターンを先頭に置き,先行するデータ遷移
パターンの後部と共通なデータの並びを前部にもつ他の
データ遷移パターンを,上記先行するデータ遷移パター
ンに後続させるようにしてデータ遷移パターンの連鎖を
形成する手段,先頭に置かれるデータ遷移パターンを変
えながら,データ遷移パターンの連鎖の形成を繰返し,
先頭のデータ遷移パターンが関連する単位データが後続
データ遷移パターンに再び出現するかどうかをチェック
する第1のチェック手段,先頭のデータ遷移パターンが
関連する単位データが後続のデータ遷移パターンに再出
現したときに,その単位データを上記データ列の周期に
関連するものと判定する手段,周期に関連するものと判
定された単位データに関連するデータ遷移パターンを先
頭に置き,先行するデータ遷移パターンの後部と共通な
データの並びを前部にもつ他のデータ遷移パターンを,
上記先行するデータ遷移パターンに後続させるようにし
て,かつできるだけ異なるデータ遷移パターンを用いる
ようにして,データ遷移パターンの連鎖を形成し,上記
先頭に置かれたデータ遷移パターンに戻ってこざるを得
ないものがあるかどうかをチェックする第2のチェック
手段,および戻ってこざるを得ないものがあれば,その
データ遷移パターンを用いて与えられたデータ列を分割
することにより周期を構成するデータ列とその周期を決
定する第1の決定手段を備えている。
According to the present invention , there is provided an apparatus for determining a cycle of a data sequence, comprising: means for extracting, from a given data sequence, all types of data transition patterns consisting of continuous data of a predetermined length; Means for storing in association with all types of unit data constituting the data string, a data transition pattern relating to and including any unit data at the beginning, and common with the rear part of the preceding data transition pattern Means for forming a chain of data transition patterns by causing another data transition pattern having a sequence of data at the front to follow the preceding data transition pattern, and by changing the data transition pattern placed at the head, Repeat the formation of a chain of transition patterns,
A first checking means for checking whether or not the unit data associated with the first data transition pattern appears again in the subsequent data transition pattern; the unit data associated with the first data transition pattern reappears in the subsequent data transition pattern Means for judging the unit data to be related to the cycle of the data sequence, placing a data transition pattern related to the unit data determined to be related to the cycle at the head, and a trailing part of the preceding data transition pattern Another data transition pattern that has a common data sequence at the front and
By following the preceding data transition pattern and using a data transition pattern that is as different as possible, a chain of data transition patterns is formed, and it is inevitable to return to the data transition pattern placed at the top. Second check means for checking whether there is any data, and if there is no choice but to return, the data sequence constituting the cycle is obtained by dividing the given data sequence using the data transition pattern. A first determining means for determining the cycle is provided.

【0017】上記装置はさらに,周期に関連するものと
判定された単位データに関連するすべてのデータ遷移パ
ターンについて連鎖の形成を繰返しても再出現する先頭
のデータ遷移パターンが存在しない場合には,上記単位
データを用いて与えられたデータ列を分割することによ
り周期を構成するデータ列とその周期を決定する第2の
決定手段を備えている。
[0017] The above apparatus further comprises: if there is no leading data transition pattern which reappears even if the formation of a chain is repeated for all data transition patterns related to the unit data determined to be related to the cycle, There is provided a data string constituting a cycle by dividing a given data string using the unit data, and a second determining means for determining the cycle.

【0018】上記において,抜出されたすべてのデータ
遷移パターンを連鎖の先頭に置いても,作成された連鎖
において,先頭のデータ遷移パターンが関連する単位デ
ータが再出現しなかったときには,与えられたデータ列
から抜出すデータ遷移パターンのデータ長を変えるとよ
い。
In the above, even if all the extracted data transition patterns are placed at the head of the chain, if the unit data associated with the head data transition pattern does not reappear in the created chain, it is given. It is preferable to change the data length of the data transition pattern extracted from the data sequence.

【0019】上記においてデータとは信号を含む。デー
タ列は信号列を含む。
In the above, data includes a signal. The data sequence includes a signal sequence.

【0020】この発明によると,連続的に与えられる周
期的要素をもつデータ列においてその周期をコンピュー
タ等の処理手段を用いて自動的に特定することができ
る。
According to the present invention, the cycle of a data string having a periodically given periodic element can be automatically specified using processing means such as a computer.

【0021】したがって,データ通信等においても送信
側において同期信号を付加する必要がなくなる。与えら
れるデータ列に同期信号がなくてもその周期を特定し,
周期的パターンを抽出することができる。
Therefore, there is no need to add a synchronization signal on the transmission side even in data communication or the like. Even if there is no synchronization signal in the given data sequence, its period is specified,
Periodic patterns can be extracted.

【0022】与えられたデータ列が分岐する構造をも
ち,二種類以上の周期が存在する場合であっても自動的
にこれらの周期の特定が可能である。
It has a structure in which a given data string branches, and even when there are two or more types of periods, these periods can be automatically specified.

【0023】この発明は与えられたデータ列からデータ
遷移パターンを抜出し,その連鎖を形成しながらそこに
含まれている周期を特定するので,少ない計算量で周期
の特定と周期パターンの決定が可能となる。
According to the present invention, a data transition pattern is extracted from a given data sequence, and a cycle included therein is specified while forming a chain thereof. Therefore, the cycle can be specified and the cycle pattern can be determined with a small amount of calculation. Becomes

【0024】この発明による周期決定方法および装置
は,故障診断対象から得られる信号パターンの経時的な
変化を表わすデータを処理することにより,故障診断対
象の動作のもつ周期パターンを決定することにも応用す
ることができるので,この決定された周期パターンを利
用して容易に故障診断のための基準データを作成するこ
とが可能となる。
The period determination method and apparatus according to the present invention can also determine a period pattern of an operation of a failure diagnosis target by processing data representing a temporal change of a signal pattern obtained from the failure diagnosis target. Since the present invention can be applied, it is possible to easily create reference data for failure diagnosis using the determined periodic pattern.

【0025】この発明はまた,上記周期決定装置に有用
な周期に関連するデータを見付け出す装置を提供してい
る。
The present invention also provides an apparatus for finding data relating to a cycle useful for the cycle determining apparatus.

【0026】[0026]

【0027】この発明による周期に関連するデータを見
付け出す装置は,与えられたデータ列から,所定長の連
続するデータからなるすべての種類のデータ遷移パター
ンを抜出す手段,抜出されたデータ遷移パターンを,上
記データ列を構成するすべての種類の単位データに関連
させて記憶する手段,任意の単位データに関連しかつそ
れを含むデータ遷移パターンを先頭に置き,先行するデ
ータ遷移パターンの後部と共通なデータの並びを前部に
もつ他のデータ遷移パターンを,上記先行するデータ遷
移パターンに後続させるようにしてかつできるだけ上記
単位データが出現しないようにデータ遷移パターンを選
択しながらデータ遷移パターンの連鎖を形成する手段,
先頭に置かれるデータ遷移パターンを変えながら,デー
タ遷移パターンの連鎖の形成を繰返し,先頭のデータ遷
移パターンが関連する単位データが後続データ遷移パタ
ーンに再び出現せざるを得ないかどうかをチェックする
手段,および先頭のデータ遷移パターンが関連する単位
データが後続のデータ遷移パターンに再出現したとき
に,その単位データを上記データ列の周期に関連するも
のと判定する手段を備えている。
According to the present invention, there is provided an apparatus for finding data related to a cycle, comprising: means for extracting all types of data transition patterns consisting of continuous data of a predetermined length from a given data sequence; Means for storing a pattern in association with all types of unit data constituting the above data sequence; a data transition pattern relating to and including any unit data at the beginning; Another data transition pattern having a common data sequence at the front is made to follow the preceding data transition pattern, and the data transition pattern is selected while selecting the data transition pattern so that the unit data does not appear as much as possible. Means to form a chain,
Means for repeating the formation of a chain of data transition patterns while changing the data transition pattern placed at the head, and checking whether unit data associated with the head data transition pattern has to appear again in the subsequent data transition pattern , And when the unit data associated with the first data transition pattern reappears in the subsequent data transition pattern, the unit data is determined to be related to the cycle of the data string.

【0028】上記において,抜出されたすべてのデータ
遷移パターンを連鎖の先頭に置いても,作成された連鎖
において,先頭のデータ遷移パターンが関連する単位デ
ータが再出現しなかったときには,与えられたデータ列
から抜出すデータ遷移パターンのデータ長を変えるよう
にするとよい。
In the above, even if all the extracted data transition patterns are placed at the head of the chain, if the unit data associated with the head data transition pattern does not reappear in the created chain, it is given. The data length of the data transition pattern extracted from the data sequence may be changed.

【0029】この周期に関連するデータを見付け出す装
置は,上述した周期決定装置において有効に用いること
ができる。
The device for finding the data related to the cycle can be effectively used in the above-described cycle determination device.

【0030】この発明による故障診断方法は,制御装置
の少なくとも出力信号のデータ列から,所定長の連続す
るデータからなるすべての種類のデータ遷移パターンを
抜出し,抜出されたデータ遷移パターンのうちの任意の
ものを先頭に配置し,先行するデータ遷移パターンの後
部と共通なデータの並びを前部にもつ他のデータ遷移パ
ターンを,上記先行するデータ遷移パターンに後続させ
るようにして,かつできるだけ異なるデータ遷移パター
ンを用いるようにして,データ遷移パターンの連鎖を作
成し,先頭に配置されるデータ遷移パターンを変えなが
ら,データ遷移パターンの連鎖の作成を繰返すことによ
り,先頭のデータ遷移パターンに再び戻ってくる連鎖が
あるかどうかをチェックし,先頭のデータ遷移パターン
に戻ってきたときに,作成された連鎖が与えられたデー
タ列の一周期に相当することを利用して,その周期を決
定し,一周期中に出現する各ステートの基準パターンと
ステート間のつながりに関するデータとを含む異常判定
用基準データをあらかじめ作成して記憶しておき,上記
制御装置の動作中において,上記制御装置の少なくとも
出力信号のパターンの変化が,上記異常判定用基準デー
タによって表わされるステートの遷移にともなう基準パ
ターンの変化に合致しているかどうかをチェックするこ
とにより,上記制御装置によって制御されるシステムの
異常の有無を判定するものである。
The failure diagnosis method according to the present invention extracts all types of data transition patterns composed of continuous data of a predetermined length from at least a data string of an output signal of a control device, and includes the extracted data transition patterns among the extracted data transition patterns. Arbitrary ones are placed at the head, and another data transition pattern that has the same data sequence as the rear part of the preceding data transition pattern at the front is made to follow the preceding data transition pattern, and is as different as possible. By using a data transition pattern to create a chain of data transition patterns, and by repeatedly creating a chain of data transition patterns while changing the data transition pattern placed at the top, the process returns to the top data transition pattern again. Check if there is a chain that comes in and return to the first data transition pattern Utilizing the fact that the created chain corresponds to one cycle of a given data sequence, the cycle is determined, and includes a reference pattern of each state appearing in one cycle and data on a connection between the states. Abnormality determination reference data is created and stored in advance, and at least a change in the pattern of the output signal of the control device during operation of the control device accompanies a state transition represented by the abnormality determination reference data. The presence or absence of an abnormality in the system controlled by the control device is determined by checking whether or not the change matches the reference pattern.

【0031】この発明の一実施態様においては,上記異
常判定用基準データが,出力パターンの遷移に許容され
る時間データを含み,上記制御装置の出力パターンが上
記許容時間以内に遷移したかどうかのチェックを行う。
In one embodiment of the present invention, the reference data for abnormality determination includes time data allowed for the transition of the output pattern, and whether or not the output pattern of the control device has transitioned within the allowable time. Perform a check.

【0032】この発明の他の実施態様においては,上記
異常判定用基準データにおける各出力基準パターンに対
応する上記制御装置の入力期待パターンを含む異常箇所
検知用基準データをあらかじめ作成して記憶しておき,
異常有と判定したときには,そのときの上記制御装置の
入力パターンを,対応する入力期待パターンと照合する
ことにより,異常を生じた部位を特定する。
In another embodiment of the present invention, the reference data for detecting an abnormal part including the expected input pattern of the control device corresponding to each output reference pattern in the reference data for determining abnormality is prepared and stored in advance. Every
When it is determined that there is an abnormality, the part where the abnormality has occurred is specified by comparing the input pattern of the control device at that time with the corresponding expected input pattern.

【0033】この発明のさらに他の実施態様において
は,異常有と判定したときにその旨を可視的に出力し,
異常発生部位を特定したときにそれを可視的に出力す
る。
In still another embodiment of the present invention, when it is determined that there is an abnormality, that fact is visually output,
When an abnormal site is specified, it is output visually.

【0034】この発明による故障診断装置は,制御装置
の少なくとも出力信号のデータ列から,所定長の連続す
るデータからなるすべての種類のデータ遷移パターンを
抜出す手段,抜出されたデータ遷移パターンのうちの任
意のものを先頭に配置し,先行するデータ遷移パターン
の後部と共通なデータの並びを前部にもつ他のデータ遷
移パターンを,上記先行するデータ遷移パターンに後続
させるようにして,かつできるだけ異なるデータ遷移パ
ターンを用いるようにして,データ遷移パターンの連鎖
を作成する手段,先頭に配置されるデータ遷移パターン
を変えながら,上記連鎖作成手段にデータ遷移パターン
の連鎖の作成を繰返させ,先頭のデータ遷移パターンに
再び戻ってくる連鎖があるかどうかをチェックする手
段,先頭のデータ遷移パターンに戻ってきたときに,作
成された連鎖が与えられたデータ列の一周期に相当する
ことを利用して,その周期を決定する手段,一周期中に
出現する各ステートの基準パターンとステート間のつな
がりに関するデータとを含む異常判定用基準データをあ
らかじめ記憶する記憶手段,および上記制御装置の動作
中において,上記制御装置の少なくとも出力信号のパタ
ーンの変化が,上記異常判定用基準データによって表わ
されるステートの遷移にともなう基準パターンの変化に
合致しているかどうかをチェックすることにより,上記
制御装置によって制御されるシステムの異常の有無を判
定する手段を備えている。
The fault diagnosing device according to the present invention comprises means for extracting all types of data transition patterns consisting of continuous data of a predetermined length from at least a data string of an output signal of the control device, and a means for extracting the extracted data transition patterns. Any of the preceding data transition patterns is arranged at the beginning, and another data transition pattern having a data sequence common to the rear part of the preceding data transition pattern at the front is made to follow the preceding data transition pattern, and A means for creating a chain of data transition patterns by using different data transition patterns as much as possible, and changing the chain of data transition patterns arranged at the head while causing the chain creation means to repeat the creation of a chain of data transition patterns. To check if there is a chain that returns to the data transition pattern of the first data transition Means for determining the cycle by using the fact that the created chain corresponds to one cycle of the given data sequence when returning to the pattern, the reference pattern and state of each state appearing in one cycle Storage means for preliminarily storing reference data for abnormality determination including data relating to the connection between them, and at least a change in a pattern of an output signal of the control device during the operation of the control device is represented by the reference data for abnormality determination. Means for determining whether or not there is an abnormality in a system controlled by the control device by checking whether or not the change corresponds to a reference pattern accompanying a state transition.

【0035】この発明の一実施態様においては,上記異
常判定用基準データに,出力パターンの遷移に許容され
る時間データが含まれ,上記判定手段は上記制御装置の
出力パターンが上記許容時間以内に遷移したかどうかの
チェックを行う。
In one embodiment of the present invention, the reference data for abnormality determination includes time data allowed for transition of the output pattern, and the determination means determines that the output pattern of the control device is within the allowable time. Check whether the transition has occurred.

【0036】この発明による故障診断装置は,好ましく
はさらに,上記異常判定用基準データにおける各出力基
準パターンに対応する上記制御装置の入力期待パターン
を含む異常箇所検知用基準データをあらかじめ記憶する
第2の記憶手段,および異常有と判定したときには,そ
のときの上記制御装置の入力パターンを,対応する入力
期待パターンと照合することにより,異常を生じた部位
を特定する手段を備えている。
Preferably, the failure diagnosis apparatus according to the present invention further stores in advance the abnormal point detection reference data including the expected input pattern of the control device corresponding to each output reference pattern in the abnormality determination reference data. And a means for identifying the part where the abnormality has occurred by comparing the input pattern of the control device at that time with the corresponding expected input pattern when it is determined that there is an abnormality.

【0037】この故障診断装置はさらに,特定された異
常発生部位を可視的に出力する出力手段を備えている。
The failure diagnosis apparatus further includes output means for visually outputting the specified abnormality occurrence site.

【0038】この発明による故障診断方法および装置に
よると,故障診断のための基準データにステート間のつ
ながりに関するデータが含まれているので,ステートが
分岐して遷移し,複数の異なる周期が含まれる場合であ
っても,ステート間のつながりに関するデータを参照し
ながら故障診断処理を続けていくことができ,ステート
の遷移を正しく追跡することができる。
According to the failure diagnosis method and apparatus according to the present invention, since the reference data for failure diagnosis includes data relating to the connection between the states, the state branches and transits, and a plurality of different periods are included. Even in this case, the failure diagnosis process can be continued while referring to the data relating to the connection between the states, and the state transition can be tracked correctly.

【0039】[0039]

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

(1) データ列の周期決定のアルゴリズム データ列の周期決定はコンピュータ・システムによって
実行される。用いられるコンピュータ・システムはいわ
ゆるパーソナル・コンピュータ等の小型のもので充分で
ある。このコンピュータ・システムは,キーボード,マ
ウス等の入力装置,表示装置,プリンタ等の出力装置,
必要ならば他のコンピュータ・システムまたはコントロ
ーラとの交信を行うインターフェイス等を備えている。
コンピュータ・システムは,当然に内部メモリ(半導体
メモリ)や外部メモリ(ディスク・メモリ等)を含んで
いる。
(1) Algorithm for Determining the Period of the Data Sequence The period of the data sequence is determined by the computer system. A small computer system such as a so-called personal computer is sufficient. The computer system includes input devices such as a keyboard and a mouse, display devices, output devices such as a printer,
If necessary, an interface for communicating with another computer system or controller is provided.
The computer system naturally includes an internal memory (semiconductor memory) and an external memory (disk memory or the like).

【0040】(1-1) 例1 図1はデータ列の周期決定の処理手順の概要を示すもの
であり,この処理は主にコンピュータ・システム内のC
PUによって実行される。この処理手順を表わすプログ
ラムはコンピュータ・システムのメモリに記憶されてい
る。図1に示すステップ103 の処理の詳細が図2に,ス
テップ104 の処理の詳細が図3にそれぞれ示されてい
る。
(1-1) Example 1 FIG. 1 shows an outline of a processing procedure for determining a cycle of a data string. This processing is mainly performed by the C in the computer system.
Performed by PU. A program representing this processing procedure is stored in the memory of the computer system. FIG. 2 shows the details of the processing in step 103 shown in FIG. 1, and FIG. 3 shows the details of the processing in step 104, respectively.

【0041】まず,周期が決定されるべきデータ列が入
力される(ステップ101 )。データ列は入力装置から入
力されてもよいし,交信インターフェイスを介して他の
コンピュータ・システムまたはコントローラから伝送さ
れてもよい。
First, a data string whose cycle is to be determined is input (step 101). The data sequence may be input from an input device or transmitted from another computer system or controller via a communication interface.

【0042】入力されたデータ列の一例が図4に示され
ている。これをデータ列の例1とする。
FIG. 4 shows an example of the input data sequence. This is referred to as a data string example 1.

【0043】入力されたデータ列から,所定長の連続す
るデータからなるすべての種類のデータ遷移パターンが
抽出される(ステップ102 )。データ遷移パターンのデ
ータ長は任意であるが,ここでは4とする。図5に示す
ように,4個の連続するデータを,重複するものを避け
ながら,データ列から抜出していけばよい。データ列の
例1から抽出された9種類のデータ遷移パターンが図6
に示されている。
All types of data transition patterns composed of continuous data of a predetermined length are extracted from the input data sequence (step 102). The data length of the data transition pattern is arbitrary, but is 4 in this case. As shown in FIG. 5, four continuous data may be extracted from the data string while avoiding duplicate data. Nine types of data transition patterns extracted from the data string example 1 are shown in FIG.
Is shown in

【0044】データ列の例1で用いられる単位データ
(以下,単に文字という)はA,B,C,DおよびEの
5種類である。抽出された9種類のデータ遷移パターン
が,これらの文字ごとに分類される。
There are five types of unit data (hereinafter, simply referred to as characters) used in the first example of the data string, namely, A, B, C, D, and E. The nine types of extracted data transition patterns are classified for each of these characters.

【0045】図7は,データ遷移パターンの先頭の文字
に着目して分類した例を示す。図8はデータ遷移パター
ンの2番目に位置する文字に着目して分類した例を示
す。これらの分類されたデータ遷移パターンはメモリに
記憶される。もっとも,この分類は後述するステップ10
3 または104 の処理における文字またはデータ遷移パタ
ーンの指定の都度行うことができるので,分類した形態
で遷移パターンを記憶する必要は必ずしもなく,図6に
示すような未分類の形で記憶することもできる。
FIG. 7 shows an example of classification based on the first character of the data transition pattern. FIG. 8 shows an example of classification based on the character located at the second position in the data transition pattern. These classified data transition patterns are stored in the memory. However, this classification is performed in step 10 described later.
Since it can be performed each time a character or data transition pattern is specified in the processing of 3 or 104, it is not always necessary to store the transition pattern in a classified form, and it is also possible to store it in an unclassified form as shown in FIG. it can.

【0046】分類のために着目する文字が,図8に示す
例のように,データ遷移パターンを構成する文字列の
先,後端ではなく,中央部分に位置する場合の方が,後
述する処理がやりやすいことが分った。しかしながら,
以下の説明では,理解しやすくするために,データ遷移
パターンの先頭の文字に着目して行われた図7に示す分
類を用いることとする。
When the character to be focused on for classification is located at the center of the character string constituting the data transition pattern, not at the beginning and end, as shown in FIG. It turned out to be easy to do. However,
In the following description, for ease of understanding, the classification shown in FIG. 7 performed by focusing on the first character of the data transition pattern will be used.

【0047】次に,このようにして作成されたデータ遷
移パターンを利用して,周期に関係する文字を決定する
処理が行われる(ステップ103 )。
Next, using the data transition pattern created in this way, a process of determining characters related to the cycle is performed (step 103).

【0048】図2を参照して,入力されたデータ列に含
まれるA〜Eの文字のうちの1つが指定される(ステッ
プ111 )。任意の文字を指定することが可能である。こ
の周期に関係する文字の決定処理における処理量を少な
くして,できるだけ迅速にかつ正確に結論が得られるよ
うにするために,各文字に分類されているデータ遷移パ
ターンの数の少ないものから順番に文字を指定すること
が好ましい。図7に示す例においては,文字CおよびD
についてはデータ遷移パターンの数がそれぞれ1個であ
り,文字AおよびEについてはそれぞれ2個,文字Bに
ついては3個である。したがって,これらの文字をC,
D(またはD,C),A,E,(またはE,A),Bの
順に指定するとよい。
Referring to FIG. 2, one of the characters A to E included in the input data string is designated (step 111). Any character can be specified. In order to reduce the amount of processing involved in determining characters related to this cycle and to obtain conclusions as quickly and accurately as possible, the order of data transition patterns classified into each character is as follows. It is preferable to specify a character for. In the example shown in FIG.
, The number of data transition patterns is one each, characters A and E each have two, and character B has three. Therefore, these characters are C,
It is preferable to specify D (or D, C), A, E, (or E, A), and B in this order.

【0049】指定した文字を先頭にもつ(図8の分類に
おいては,第2番目の位置にもつ)データ遷移パターン
を先頭に置き,先行するデータ遷移パターンの後部と共
通なデータの並びを前部にもつ他のデータ遷移パターン
を,先行するデータ遷移パターンに後続させるようにし
てデータ遷移パターンの連鎖を形成する(ステップ112
)。このデータ遷移パターンの連鎖を形成することを
遷移シュミレーションという。この遷移シュミレーショ
ンにおいては,先頭に置かれた文字を含まないデータ遷
移パターンで使用できるものがあれば,その使用可能な
データ遷移パターンを用いる。
The data transition pattern having the designated character at the beginning (in the second position in the classification of FIG. 8) is placed at the beginning, and the data sequence common to the rear part of the preceding data transition pattern is placed at the front part. A chain of data transition patterns is formed by causing another data transition pattern of the data transition pattern to follow the preceding data transition pattern (step 112).
). Forming this chain of data transition patterns is called transition simulation. In this transition simulation, if there is a data transition pattern that does not include the character placed at the beginning and can be used, the usable data transition pattern is used.

【0050】たとえば,図9に示すように,文字Cを先
頭にもつデータ遷移パターンCEABを先頭に置き,こ
のパターンCEABの先頭のCを除くEABを前部にも
つデータ遷移パターンEABDをそれに後続させ,さら
にABDB,BDBE,DBEAというようにデータ遷
移パターンの連鎖を形成していく。この遷移シュミレー
ションにおいて,文字Eに分類された文字Cを含む一方
のデータ遷移パターンEABCを用いることなく,他方
のデータ遷移パターンEABDを用いて連鎖の形成が可
能であり,データ遷移パターンEABDが一定周期で出
現することにより無限の繰返し連鎖が形成されるので,
先頭の文字Cは全く出現しない。したがって,ステップ
113 でNOとなる。
For example, as shown in FIG. 9, a data transition pattern CEAB having a character C at the beginning is placed at the beginning, and a data transition pattern EABD having an EAB at the front except for the leading C of the pattern CEAB is made to follow it. , And a chain of data transition patterns such as ABDB, BDBE, and DBEA. In this transition simulation, it is possible to form a chain using the other data transition pattern EABD without using one data transition pattern EABC including the character C classified as the character E, and the data transition pattern EABD has a constant period. Since an infinite repeating chain is formed by appearing in,
The leading character C does not appear at all. Therefore, step
NO at 113.

【0051】次に他の文字Dを指定して(ステップ116
),同じように遷移シュミレーションを行っても(ス
テップ112 ),図10に示すように,指定した文字Dは再
び出現することがない(ステップ113 でNO)。
Next, another character D is designated (step 116).
), Even if the transition simulation is performed in the same manner (step 112), the designated character D does not appear again as shown in FIG. 10 (NO in step 113).

【0052】さらに,文字C,D以外の文字Aを指定し
て(ステップ116 ),同じように遷移シュミレーション
を行うと,図11および図12に示すように,2種類のデー
タ遷移パターンの連鎖が形成され,指定した文字Aが再
び出現する(ステップ113 )。
Further, when a character A other than the characters C and D is designated (step 116) and the transition simulation is performed in the same manner, as shown in FIGS. 11 and 12, a chain of two types of data transition patterns is formed. The specified character A appears again (step 113).

【0053】このようにして,指定した文字Aが遷移シ
ュミレーションにおいて再出現したときには,この文字
Aが周期に関係するものと判定される(ステップ114
)。
In this way, when the designated character A reappears in the transition simulation, it is determined that this character A is related to the cycle (step 114).
).

【0054】もし,指定した文字Aについてもステップ
113 でNOとなったとすると,さらに残っている文字Eお
よびBについても同じように遷移シュミレーションが行
われる。これらの文字EおよびBのいずれについてもス
テップ113 でNOとなったとすると,すべての文字を指定
しても周期に関係する文字が見付からなかったことにな
る(ステップ115 でYES )。このような場合には,抽出
されたデータ遷移パターンが適切でなかったと判定さ
れ,入力データ列から抽出するデータ遷移パターンのデ
ータ長を長くして,再びステップ102 に戻り,データ遷
移パターンの抽出処理をやり直すこととなる(ステップ
117 )。上記例において,データ長4のデータ遷移パタ
ーンを抽出したときに周期に関係する文字が見付からな
かったとすれば,次にはデータ遷移パターンのデータ長
を5とする。
If the specified character A is also
If NO at 113, a transition simulation is performed for the remaining characters E and B in the same manner. If NO in step 113 for any of these characters E and B, even if all the characters are specified, no character related to the cycle is found (YES in step 115). In such a case, it is determined that the extracted data transition pattern is not appropriate, and the data length of the data transition pattern to be extracted from the input data sequence is increased, and the process returns to step 102 again to perform the data transition pattern extraction processing. Will be redone (step
117). In the above example, if no character related to the cycle is found when a data transition pattern with a data length of 4 is extracted, the data length of the data transition pattern is set to 5 next.

【0055】周期に関係する文字が定まると,データ列
の周期を構成するパターンの決定,周期の決定および周
期パターンの決定のための処理に進む(ステップ104
)。
When the characters related to the cycle are determined, the process proceeds to the processing for determining the pattern constituting the cycle of the data string, the cycle, and the cycle pattern (step 104).
).

【0056】図3を参照して,n=1と置く(ステップ
121 )。nは次のステップ122 で指定するデータ遷移パ
ターンの数である。
Referring to FIG. 3, n = 1 is set (step
121). n is the number of data transition patterns specified in the next step 122.

【0057】次に,ステップ103 で周期に関係するもの
と決定された文字に分類されたm個のデータ遷移パター
ンのうちのn個のデータ遷移パターンを指定する(ステ
ップ122 )。
Next, n data transition patterns among the m data transition patterns classified into the characters determined to be related to the period in step 103 are specified (step 122).

【0058】上述したデータ列の例1においては文字A
が周期に関係するものと決定されている。図7を参照し
て,文字Aに分類されたデータ遷移パターンはABCE
およびABDBである。n=1であるから,この2つの
データ遷移パターンのうちのいずれか1つを指定するこ
とになる。
In the first example of the data string described above, the character A
Has been determined to be related to the period. Referring to FIG. 7, the data transition pattern classified into character A is ABCE
And ABDB. Since n = 1, one of these two data transition patterns is specified.

【0059】データ遷移パターンABCEが指定された
ものとする。この指定したデータ遷移パターンを先頭と
して,この指定データ遷移パターンABCEをできるだ
け使わないようにして遷移シュミレーションを行う(ス
テップ123 )。遷移シュミレーションの結果が図13に示
されている。この図から明らかなように,データ遷移パ
ターンABCEをできるだけ使用しないようにしてデー
タ遷移パターンの連鎖を作成していくと,繰返しパター
ンが生じる。先頭のデータ遷移パターンABCEを再度
使用することなく遷移シュミレーションが可能であるか
らステップ124でNOとなる。
It is assumed that the data transition pattern ABCE has been designated. With the specified data transition pattern at the top, a transition simulation is performed while using the specified data transition pattern ABCE as little as possible (step 123). The result of the transition simulation is shown in FIG. As is apparent from this figure, when a chain of data transition patterns is created while using the data transition pattern ABCE as little as possible, a repeated pattern is generated. Since the transition simulation can be performed without using the leading data transition pattern ABCE again, the result of step 124 is NO.

【0060】ステップ125 に進み,データ遷移パターン
ABDBをまだ指定していないのでこのステップ125 で
YES となり,ステップ122 に戻り,データ遷移パターン
ABDBを指定する。
In step 125, the data transition pattern ABDB has not been specified yet.
YES, the process returns to step 122, and specifies the data transition pattern ABDB.

【0061】新たに指定したデータ遷移パターンABD
Bを先頭に置いて遷移シュミレーションを行うと,図14
に示すように,このデータ遷移パターンABDBを再び
使用することなく,無限の繰返しが形成される。したが
ってこの場合にもステップ124 でNOとなる。
Data transition pattern ABD newly specified
When the transition simulation is performed with B at the top,
As shown in (1), an infinite repetition is formed without using the data transition pattern ABDB again. Therefore, also in this case, the answer at step 124 is NO.

【0062】周期に関係する文字Aに分類された2つの
データ遷移パターンABCEとABDBについてその指
定と遷移シュミレーションとが終了したからステップ12
5 でNOとなる。
Since the designation and the transition simulation are completed for the two data transition patterns ABCE and ABDB classified into the character A related to the cycle, step 12 is executed.
5 is NO.

【0063】ステップ126 においてnがインクレメント
され,n=2となる。m=2であるから,n=mとなる
(ステップ127 でYES )。
In step 126, n is incremented so that n = 2. Since m = 2, n = m (YES in step 127).

【0064】したがって,ステップ128 に進み,n=m
のときは,周期に関係するものと決定された文字Aを用
いて,入力データ列を分割する。図4に示す入力データ
列の例1を,文字Aを用いて分割した様子が図15に示さ
れている。分割点は/(スラッシュ)で示されている。
Therefore, the process proceeds to step 128, where n = m
In the case of, the input data string is divided using the character A determined to be related to the cycle. FIG. 15 shows a state in which Example 1 of the input data string shown in FIG. 4 is divided using the character A. The division points are indicated by / (slash).

【0065】これにより,入力データ列の例1において
は,データ列ABCEとデータ列ABDBEがそれぞれ
周期を形成していることが分る。データ列ABCEの周
期は4,データ列ABDBEの周期は5である(ステッ
プ129 )。このようにして,周期パターンと周期が決定
される。
Thus, in example 1 of the input data string, it can be seen that the data string ABCE and the data string ADBBE each form a cycle. The cycle of the data string ABCE is 4 and the cycle of the data string ADBBE is 5 (step 129). In this way, the period pattern and the period are determined.

【0066】周期パターン(データ列)ABCEとAB
DBEを図に表わすと図16に示すように,文字Bのとこ
ろでCとDに分岐し,各分岐の最後のEから再びAに戻
るという構造をもっていることが分る。
Periodic patterns (data strings) ABCE and AB
As shown in FIG. 16, the DBE has a structure in which the character B branches to C and D at the character B, and returns from the last E of each branch to A again.

【0067】このように,上述した周期決定方法による
と,分岐する構造をもつデータ(文字)の遷移であって
も,周期をつくるデータ列を特定し,かつその周期を決
定することができる。
As described above, according to the above-described cycle determination method, it is possible to specify a data string forming a cycle and determine the cycle even for transition of data (character) having a branching structure.

【0068】このようにして決定された周期パターンお
よび周期が表示装置またはプリンタ等の出力装置から出
力される(ステップ105 )。
The cycle pattern and the cycle determined in this way are output from an output device such as a display device or a printer (step 105).

【0069】(1-2) 例2 次に,図17に示す入力データ列をその例2として周期決
定処理を追跡することを試みよう。
(1-2) Example 2 Next, let's try to trace the period determination processing using the input data sequence shown in FIG. 17 as Example 2.

【0070】例2で用いられる文字はA,B,C,D,
EおよびFの6種類である。データ列の例2からデータ
長が3のデータ遷移パターンを抽出するものとする。12
種類のデータ遷移パターンが抽出され,これらは図18に
示すように6種類の文字に着目して分類される(図1ス
テップ102 )。
The characters used in Example 2 are A, B, C, D,
There are six types, E and F. It is assumed that a data transition pattern having a data length of 3 is extracted from the data string example 2. 12
The types of data transition patterns are extracted, and these are classified by focusing on the six types of characters as shown in FIG. 18 (step 102 in FIG. 1).

【0071】図1ステップ103 の処理(詳細を図2に示
す処理)により,周期に関係する文字はAであると決定
される。
The character related to the cycle is determined to be A by the processing of step 103 in FIG. 1 (processing shown in detail in FIG. 2).

【0072】図1ステップ104 ,すなわち図3の処理に
移る。
The process proceeds to step 104 in FIG. 1, that is, the process of FIG.

【0073】n=1と置く(ステップ121 )。Set n = 1 (step 121).

【0074】周期に関係すると決定された文字Aに分類
されたデータ遷移パターンはABC,ADEおよびAF
Aの3個である。すなわちm=3。これら3個のデータ
遷移パターンのうちの1個(n=1)を指定して,この
指定したデータ遷移パターンをできるだけ使用しないよ
うにして遷移シュミレーションを行う(ステップ122,1
23 )。
The data transition patterns classified into the character A determined to be related to the cycle are ABC, ADE, and AF.
A. That is, m = 3. One of the three data transition patterns (n = 1) is designated, and the transition simulation is performed while using the designated data transition pattern as little as possible (steps 122 and 1).
twenty three ).

【0075】データ遷移パターンABCを指定した場合
には図19に示すように,指定したデータ遷移パターンA
BCを使用しなくても繰返しが生じるのでステップ124
でNOとなる。
When the data transition pattern ABC is specified, as shown in FIG.
Since repetition occurs without using BC, step 124 is used.
Is NO.

【0076】他のデータ遷移パターンADEを指定して
遷移シュミレーションを実行しても,さらに他のデータ
遷移パターンAFAを指定して遷移シュミレーションを
実行しても,図20,21にそれぞれ示すように,これらの
指定した遷移パターンを使用することなく,データ遷移
パターンの連鎖を続けることができる。(ステップ124
でNO)。
Whether the transition simulation is executed by specifying another data transition pattern ADE or the transition simulation is executed by specifying another data transition pattern AFA, as shown in FIGS. The chain of data transition patterns can be continued without using these designated transition patterns. (Step 124
NO).

【0077】3個のデータ遷移パターンのうちの1個を
指定する組合せは以上ですべてであり,もはや指定して
いない組合せは無い。したがってステップ125 でNOとな
り,nがインクレメントされる。すなわちn=1+1=
2となる(ステップ126 )。
The combinations that specify one of the three data transition patterns are all described above, and there is no combination that is no longer specified. Therefore, the answer is NO in step 125, and n is incremented. That is, n = 1 + 1 =
It becomes 2 (step 126).

【0078】n=mではないから(n=2,m=3),
ステップ127 でNOとなり,再びステップ122 に戻る。
Since n = m is not satisfied (n = 2, m = 3),
In step 127, the result is NO, and the process returns to step 122 again.

【0079】ステップ122 において,3個のデータ遷移
パターンのうちの2個を指定する。
In step 122, two of the three data transition patterns are specified.

【0080】データ遷移パターンABC,ADE,AF
AのうちのABCとADEを指定して遷移シュミレーシ
ョンを行う(ステップ123 )。この場合には図22に示す
ように,ABCを先頭に置いてデータ遷移パターンをど
のように作成しても,ADEを先頭に置いてデータ遷移
パターンをどのように作成しても,指定したデータ遷移
パターンABC,ADEのうちのいずれか一方が必ず出
現し,それを使用しなければ遷移シュミレーションを続
けることができない。したがって,ステップ124 でYES
となる。
Data transition patterns ABC, ADE, AF
The transition simulation is performed by designating ABC and ADE of A (step 123). In this case, as shown in FIG. 22, no matter how the data transition pattern is created with ABC at the top, or how the data transition pattern is created with ADE at the top, One of the transition patterns ABC and ADE always appears, and the transition simulation cannot be continued unless it is used. Therefore, YES in step 124
Becomes

【0081】この後,ステップ128 に進んで,nとmは
等しくないから,指定した2個のデータ遷移パターンA
BCとADEを用いて入力データ列(例2)を分割す
る。この分割結果が図23に示されている。ABCまたは
ADEを先頭とするデータ列に分割される。
Thereafter, the flow advances to step 128, where n and m are not equal, so that the two designated data transition patterns A
The input data sequence (example 2) is divided using BC and ADE. The result of this division is shown in FIG. It is divided into data strings starting with ABC or ADE.

【0082】周期を構成するデータ列(周期パターン)
はABC,ABEFおよびADEAFであり,それらの
周期は3,4および5であると決定される(ステップ12
9 )。
Data sequence (period pattern) constituting the period
Are ABC, ABEF, and ADEAF, and their periods are determined to be 3, 4, and 5 (step 12).
9).

【0083】上述した例2のデータ列は図24に示すよう
な複雑な構造をもっていることが分る。
It can be seen that the data string of Example 2 described above has a complicated structure as shown in FIG.

【0084】(1-3) 例3 さらに,図25に示す入力データ列の例3について検討す
る。
(1-3) Example 3 Further, Example 3 of the input data string shown in FIG. 25 will be examined.

【0085】例3で用いられる文字は80,70,3
8,34,02,01,00の7種類である。例3のデ
ータ列から3のデータ長をもつデータ遷移パターンを抜
出すものとする。図26に示す7種類のデータ遷移パター
ンが抜出される。これら7種類のデータ遷移パターンは
上記の7種類の文字にそれぞれ対応している(図1ステ
ップ102 )。
The characters used in Example 3 are 80, 70, 3
8, 34, 02, 01, and 00. It is assumed that a data transition pattern having a data length of 3 is extracted from the data sequence of Example 3. The seven types of data transition patterns shown in FIG. 26 are extracted. These seven types of data transition patterns respectively correspond to the above seven types of characters (step 102 in FIG. 1).

【0086】図1ステップ103 (図2)の処理により,
最初の文字80が周期に関係していると決定される。も
っとも,7種類のすべての文字が周期に関係している
が,最初に文字80を指定すると,図2ステップ113 で
YES となるので,周期に関係している文字は80である
とのみ判定される。すなわち,他の6種類の文字につい
ては検討するに及ばない。
By the process of step 103 in FIG. 1 (FIG. 2),
The first character 80 is determined to be related to the cycle. Although all seven types of characters are related to the cycle, if character 80 is specified first, step 113 in FIG.
Since the answer is YES, it is determined that the character related to the cycle is 80 only. That is, the other six types of characters need not be considered.

【0087】文字80に分岐されるデータ遷移パターン
は80,70,38のみである(m=1)。データ遷移
パターン80,70,38を指定し,それを先頭に置い
て遷移シュミレーションを実行すると,図27に示すよう
に,この指定したデータ遷移パターンが必ず出現する
(ステップ124 でYES )。
The data transition patterns branched to the character 80 are only 80, 70 and 38 (m = 1). When the transition simulation is executed by designating the data transition patterns 80, 70, and 38 and placing them at the head, the designated data transition pattern always appears as shown in FIG. 27 (YES in step 124).

【0088】したがって,指定したデータ遷移パターン
80,70,38を用いて入力データ列を分割すると
(この場合には最初からn=mであるが,ステップ124
からステップ128 に進んだのであるから,このように取
扱う。決定した文字80を用いて入力データを分割して
も同じ結果となる。),図28に示す結果が得られる。す
なわち,周期パターンは80,70,38,34,0
2,01,00であり,周期は7である。
Therefore, when the input data sequence is divided using the designated data transition patterns 80, 70, and 38 (in this case, n = m from the beginning, step 124
From step 128, it is handled in this way. Even if the input data is divided using the determined character 80, the same result is obtained. ) And the results shown in FIG. 28 are obtained. That is, the periodic pattern is 80, 70, 38, 34, 0
2,01,00, and the cycle is 7.

【0089】この入力データ列の構造は図29に示すよう
に単純である。
The structure of this input data string is simple as shown in FIG.

【0090】(2) 故障診断への応用 上述した処理により決定されたデータ列の周期は被制御
システム(機器を含む)の故障診断のために好適に利用
することができる。
(2) Application to Failure Diagnosis The cycle of the data string determined by the above-described processing can be suitably used for failure diagnosis of the controlled system (including equipment).

【0091】制御装置,たとえばプログラマブル・ロジ
ック・コントローラ(以下,単にPLCという)によっ
て制御されるシステムの故障診断は次のようにして行わ
れる。
A failure diagnosis of a system controlled by a control device, for example, a programmable logic controller (hereinafter, simply referred to as PLC) is performed as follows.

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

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

【0094】各動作状態ごとの入力信号と出力信号の両
方の状態を一緒に判定基準として作成しておくと,誤診
断を生じやすいので,出力信号の状態と各出力信号の状
態に対応する入力信号の状態を別個に基準データとして
作成しておく。実際の出力信号の状態をモニタし,出力
信号の基準データと比較することにより異常の有無を判
定する。異常が検知されたときにはじめて,そのときの
実際の入力信号の状態と対応する入力信号の基準データ
とを比較することにより異常箇所を検知する。
If the states of both the input signal and the output signal for each operating state are created together as a criterion, erroneous diagnosis is likely to occur, so that the output signal state and the input state corresponding to each output signal state The state of the signal is created separately as reference data. The state of the actual output signal is monitored, and the presence or absence of an abnormality is determined by comparing the output signal with reference data of the output signal. Only when an abnormality is detected, an abnormal part is detected by comparing the actual state of the input signal at that time with reference data of the corresponding input signal.

【0095】このような故障診断において,出力信号の
状態はシステムの動作にしたがって遷移していく。シス
テムの動作は繰返し動作が多いので,出力信号の状態は
図29に示すように一定の周期で繰返すと考えられる。場
合によっては,図16または図24に示すように,状態が分
岐することもある。この場合には被制御システムは状態
の遷移に関して2またはそれ以上の周期をもって動作し
ていると考えられる。
In such a fault diagnosis, the state of the output signal changes according to the operation of the system. Since the operation of the system is often repeated, the state of the output signal is considered to be repeated at a constant period as shown in FIG. In some cases, the state may branch as shown in FIG. 16 or FIG. In this case, the controlled system is considered to be operating with two or more cycles of state transition.

【0096】いずれにしても,被制御システムが正常な
動作を行っているときに,PLCの出力信号の状態の遷
移を観察し,その遷移周期と遷移パターンを特定すれ
ば,故障診断のための基準データを作成することができ
る。
In any case, when the controlled system is operating normally, the transition of the state of the output signal of the PLC is observed, and the transition cycle and the transition pattern are specified. Reference data can be created.

【0097】(2-1) システム構成 図30は制御装置としてのPLCおよびこの発明による周
期決定方法を実現する装置からなるシステム全体の構成
を示すものである。
(2-1) System Configuration FIG. 30 shows the overall configuration of a system including a PLC as a control device and a device for realizing the cycle determination method according to the present invention.

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

【0099】コンソール20はPLC10から出力され被制
御システムに与えられる出力信号の状態の遷移を表わす
データ列に基づいて上述した周期決定方法を実行するも
のであり,この周期決定方法の主な実行主体であるCP
U21,CPU21が実行するプログラムを格納するメモリ
装置22,処理実行において必要なまたは生成されるデー
タを格納するメモリ装置23,周期決定処理結果を出力す
る表示装置やプリンタを含む出力装置24,キーボードを
含む入力装置25,ならびにPLC10との接続のためのI
/F27,および入,出力装置25,24とのI/F29,28を
含んでいる。メモリ装置22,23はROM,RAM等の半
導体メモリのみならずハード・ディスクやフロッピィ・
ディスクにより実現することができる。コンソール20は
いわゆるパーソナル・コンピュータ等により実現されよ
う。
The console 20 executes the above-described cycle determination method based on a data sequence representing the transition of the state of the output signal output from the PLC 10 and applied to the controlled system. CP
U21, a memory device 22 for storing a program to be executed by the CPU 21, a memory device 23 for storing data required or generated in the execution of the process, an output device 24 including a display device and a printer for outputting a result of the cycle determination process, and a keyboard. Input device 25, and an I / O for connection to the PLC 10.
/ F27, and I / Fs 29 and 28 with the input and output devices 25 and 24. The memory devices 22 and 23 include not only semiconductor memories such as ROM and RAM but also hard disks and floppy disks.
It can be realized by a disk. The console 20 may be realized by a so-called personal computer or the like.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【0119】ドリル上端検出器によってドリル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 transits from the state [4] to the state [5], and the jig 77 moves the work piece 77 to the work. And the rotation of the motor 78 stops.
The lifting of the drill 79 stops, and the rod of the discharge cylinder 81 starts to move forward. As the rod of the discharge cylinder 81 advances,
The drilled workpiece W is discharged from the processing table 93.

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

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

【0122】(2-3) 故障診断処理(その1) 図31に示す被制御システムにおて,バリ検出に基づく不
良排除シリンダ73による不良品排除の制御と,上述した
穴あけ加工制御とは相互に殆ど関連性がない。したがっ
て,不良品排除動作の故障診断と穴あけ加工動作の故障
診断とは別個独立に行うことが可能である。以下では穴
あけ加工動作の故障診断に限って説明することとする。
(2-3) Failure Diagnosis Processing (Part 1) In the controlled system shown in FIG. 31, the control of defective product removal by the defective cylinder 73 based on the detection of burrs and the above-described drilling control are mutually reciprocal. Has little relevance to Therefore, the fault diagnosis of the rejection operation and the fault diagnosis of the drilling operation can be performed separately and independently. Hereinafter, the description will be limited to the failure diagnosis of the drilling operation.

【0123】故障診断のために参照すべき基準データを
作成するために,被制御システムの動作周期が特定され
なければならない。
In order to create reference data to be referred to for failure diagnosis, the operation cycle of the controlled system must be specified.

【0124】上述した出力パターンの遷移がどのような
周期で行われているかを上述した周期決定アルゴリズム
にしたがって決定するために,データ列の収集が行われ
る。データ列の各単位データ(上述した文字)はここで
は各出力パターンとなる。
Data strings are collected in order to determine at what cycle the transition of the output pattern is performed according to the above-described cycle determination algorithm. Here, each unit data (the above-mentioned characters) of the data string becomes each output pattern.

【0125】被制御システムをPLC10の制御の下に稼
動させておき,被制御システムが正常に動作している場
合において,出力信号の状態の変化を読取り,出力信号
の状態の遷移を表わすデータ列を作成する。PLC10の
RAM14内にI/Oテーブルが設けられているので,こ
のI/Oテーブルから出力信号データを一定のサンプリ
ング周期で読出し,読出した出力信号の状態に変化があ
ったかどうかを調べる。出力信号の状態に変化があった
ときには,その出力信号の状態を順次記憶していく。
The controlled system is operated under the control of the PLC 10, and when the controlled system is operating normally, a change in the state of the output signal is read, and a data string representing the transition of the state of the output signal is read. Create Since an I / O table is provided in the RAM 14 of the PLC 10, output signal data is read from the I / O table at a constant sampling cycle, and it is checked whether or not the state of the read output signal has changed. When the state of the output signal changes, the state of the output signal is sequentially stored.

【0126】図34は出力信号の状態(出力パターン)の
遷移を上述した各ステート[1]〜[7]に対応して示
すものである。各出力信号の状態は1ビットで表現さ
れ,この実施例ではオン状態が1,オフ状態が0でそれ
ぞれ表わされている。図34の最下段に8種類の出力信号
の状態を表わす8ビットデータ(これを出力パターンと
いう)を16進数で表現したときのデータが示されてい
る。
FIG. 34 shows the transition of the state (output pattern) of the output signal corresponding to each of the above-mentioned states [1] to [7]. The state of each output signal is represented by one bit. In this embodiment, the ON state is represented by 1 and the OFF state is represented by 0. At the bottom of FIG. 34, 8-bit data (this is referred to as an output pattern) representing the state of eight types of output signals is shown in hexadecimal notation.

【0127】この被制御システムについては,図25に示
す入力データ列の例3と同じデータ列が得られる。した
がって,上述した周期決定アルゴリズムによってこのデ
ータ列の周期は7で,周期パターンは図28に示した通り
であると決定される。
With this controlled system, the same data string as in the input data string example 3 shown in FIG. 25 is obtained. Therefore, the cycle of this data string is determined by the above-described cycle determination algorithm to be 7, and the cycle pattern is determined as shown in FIG.

【0128】出力パターンについては一周期を構成する
7種類の出力パターンに関してのみ基準データを作成す
ればよいことが分る。
As for output patterns, it is understood that reference data only needs to be created for seven types of output patterns that constitute one cycle.

【0129】図35は異常検知のための異常判定用基準デ
ータの一部を示している。異常判定用基準データはステ
ートごとに設けられており,そのステートの出力パター
ン・データ,前ステートからの平均遷移時間および遷移
時間の変動許容幅から構成されている。出力パターン・
データは上述のように監視の対象となるすべての出力信
号の状態を表わしたデータの集まりであり,7つのステ
ート[1]〜[7]の出力パターン・データを異常判定
用基準データから抽出してまとめたものが図34というこ
とになる。
FIG. 35 shows a part of the abnormality determination reference data for abnormality detection. The abnormality determination reference data is provided for each state, and includes output pattern data of the state, an average transition time from the previous state, and a permissible range of the transition time. Output pattern
The data is a collection of data representing the states of all output signals to be monitored as described above. The output pattern data of the seven states [1] to [7] is extracted from the abnormality determination reference data. Figure 34 shows the summary.

【0130】このような出力パターン・データは,周期
が決定されたのち再び被制御システムをPLC10の制御
の下で実際に稼動し,それが正常に動作したときの出力
信号の状態を,それが変化したときに抽出することによ
り作成することができる。最も一般的にはPLC10のR
AM14に設けられているI/Oテーブルを一定周期でサ
ンプリングし,これを加工することにより作成すること
ができる。
[0130] Such output pattern data shows the state of the output signal when the controlled system is actually operated under the control of the PLC 10 after the cycle is determined, and it operates normally. It can be created by extracting when it changes. Most commonly, the R
It can be created by sampling the I / O table provided in the AM 14 at a constant period and processing it.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【0157】この入力期待パターンとサンプル入力パタ
ーンとの比較において一致していない入力信号の状態が
あれば,その入力信号が異常箇所としてコンソール20の
表示装置24に表示される(ステップ141 )。
If there is an input signal state 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 point (step 141).

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

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

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

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

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

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

【0164】(2-4) 被制御システムの構成およびその制
御の例(その2) 図40は被制御システムの他の例を示している。また,図
41はこの被制御システムを制御するPLC10の入,出力
信号を示すタイミング・チャートである。
(2-4) Example of Configuration of Controlled System and Its Control (Part 2) FIG. 40 shows another example of the controlled system. In addition,
Reference numeral 41 is a timing chart showing input and output signals of the PLC 10 for controlling the controlled system.

【0165】初期状態からワークWが搬送コンベア41に
投入されると,これが第4のワーク検出器31によって検
出される(PLC10への入力信号「検出4」)。この第
4のワーク検出信号に応答して搬送コンベア41を駆動す
るモータ36が起動される(PLC10からの出力信号「C
1駆動」)。
When the work W is loaded into the conveyor 41 from the initial state, this is detected by the fourth work detector 31 (input signal "detection 4" to the PLC 10). In response to the fourth work detection signal, the motor 36 for driving the conveyor 41 is started (the output signal “C” from the PLC 10).
One drive ”).

【0166】ワークWが搬送コンベア41から搬送コンベ
ア42に渡されると,それが第5のワーク検出器32によっ
て検出される(「検出5」)。この第5のワーク検出信
号に応答して,搬送コンベア41(モータ36)の駆動が停
止され,かつ搬送コンベア42を駆動するモータ37が起動
される(「C2駆動」)。
When the work W is transferred from the conveyor 41 to the conveyor 42, it is detected by the fifth work detector 32 ("Detection 5"). In response to the fifth work detection signal, the drive of the conveyor 41 (motor 36) is stopped, and the motor 37 for driving the conveyor 42 is started ("C2 drive").

【0167】ワークWは搬送コンベア42によって搬送さ
れる過程で,不良品かどうかが不良検出器33によって判
別される。不良検出器33が不良品であると判定すると不
良検出信号が出力されPLC10に与えられる(「不良検
出」)。不良検出に応答してコンベア42(モータ37)の
駆動が停止され,排出シリンダ38が駆動される(「排出
駆動」)。不良品の排出が終了すれば初期状態に戻る。
In the process of transporting the workpiece W by the transport conveyor 42, the defective detector 33 determines whether or not the workpiece W is defective. When the failure detector 33 determines that the product is defective, a failure detection signal is output and given to the PLC 10 (“failure detection”). In response to the failure detection, the drive of the conveyor 42 (motor 37) is stopped, and the discharge cylinder 38 is driven ("discharge drive"). When the discharge of the defective product is completed, the state returns to the initial state.

【0168】不良検出器33によって不良と判定されなけ
れば搬送コンベア42の駆動が継続される。ワークWが加
工機39の位置まで搬送されると,第6のワーク検出器34
によって検出される(「検出6」)。第6のワーク検出
信号に応答してコンベア42(モータ37)の駆動が停止さ
れ,かつ加工機39が駆動される(「加工駆動」)。
If the failure detector 33 does not determine that the failure occurs, the driving of the conveyor 42 is continued. When the workpiece W is transported to the position of the processing machine 39, the sixth workpiece detector 34
("Detection 6"). In response to the sixth work detection signal, the drive of the conveyor 42 (motor 37) is stopped, and the processing machine 39 is driven ("processing drive").

【0169】加工機39によるワークWに対する加工が終
了すると加工終了信号が立上る(「加工終了」)。この
加工終了信号の立上りに応答して加工機39の駆動が停止
し搬送コンベア42(モータ37)が再び駆動される。
When the processing of the workpiece W by the processing machine 39 is completed, a processing end signal rises (“processing end”). In response to the rise of the processing end signal, the driving of the processing machine 39 is stopped, and the transport conveyor 42 (motor 37) is driven again.

【0170】加工済のワークWは搬送コンベア42によっ
て再び搬送され,搬送コンベア43に渡される。搬送コン
ベア43は常時駆動されている。搬送コンベア43に移送さ
れた加工済ワークWが第7のワーク検出器35によって検
出されると(「検出7」),搬送コンベア42(モータ3
7)の駆動が停止して初期状態に戻る。
The processed work W is transported again by the transport conveyor 42 and is transferred to the transport conveyor 43. The conveyor 43 is constantly driven. When the processed work W transferred to the conveyor 43 is detected by the seventh work detector 35 ("Detection 7"), the conveyor 42 (motor 3
7) Driving stops and returns to the initial state.

【0171】出力信号の状態を表わす各ステートが図41
に[A],[B],[C],[D]および[E]として
示されている。
Each state representing the state of the output signal is shown in FIG.
[A], [B], [C], [D], and [E].

【0172】(2-5) 故障診断処理(その2) 上述した場合と同じように,被制御システムの動作周期
を特定するために,PLC10の制御の下に被制御システ
ムが正常に動作しているときの出力信号の状態の遷移を
表わすデータ列がI/Oテーブルを参照して作成され
る。このデータ列は図4に示す例1のデータ列となる。
(2-5) Failure Diagnosis Processing (Part 2) As in the case described above, in order to specify the operation cycle of the controlled system, the controlled system operates normally under the control of the PLC 10. A data string representing the transition of the state of the output signal when the signal is present is created with reference to the I / O table. This data string is the data string of Example 1 shown in FIG.

【0173】図42は各ステート[A]〜[E]における
出力信号の状態を表にまとめて示すものである。出力パ
ターンの16進数表現8,4,2,1および0がステート
[A],[B],[C],[D]および[E]に対応す
る。以下の説明では16進数表現ではなく,[A]〜
[E]のステートを表わす記号を用いることとする。
FIG. 42 is a table showing states of output signals in each of the states [A] to [E]. The hexadecimal representations 8, 4, 2, 1 and 0 of the output pattern correspond to states [A], [B], [C], [D] and [E]. In the following description, [A] ~
A symbol representing the state of [E] is used.

【0174】上述した周期決定アルゴリズムにしたがう
処理によって,この例における被制御システムに関する
ステートの遷移を表わすデータ列は図16に示すように分
岐構造をもっていることが分る。このような構造を前提
として異常判定用基準データおよび異常検知用基準デー
タが作成される。
By the processing according to the above-described cycle determination algorithm, it is found that the data sequence representing the state transition regarding the controlled system in this example has a branch structure as shown in FIG. Based on such a structure, the reference data for abnormality determination and the reference data for abnormality detection are created.

【0175】図43は異常検知のための異常判定用基準デ
ータの一例を示している。
FIG. 43 shows an example of abnormality determination reference data for abnormality detection.

【0176】図16に示すように,ステート間のつながり
は比較的複雑である。初期状態[E]からは必ずステー
ト[A]に遷移し,ステート[A]からは必ずステート
[B]に遷移する。しかしながら,ステート[B]から
はステート[C],[D]または[E]のいずれかに遷
移する。また,ステート[E]に遷移する前のステート
は[B]または[C]である。このように,ステート間
の遷移のつながりは一通りではなく,複数通りある場合
があるので,2つのステート間で許容される遷移の組合
せに関するデータが必要となるとともに,各組合せに対
応して各遷移に要する時間の許容範囲を表わすデータも
それぞれ定めておく必要がある。
As shown in FIG. 16, the connection between the states is relatively complicated. The state always transitions from the initial state [E] to the state [A], and the state [A] always transitions to the state [B]. However, transition from state [B] to any of states [C], [D], or [E]. The state before transition to the state [E] is [B] or [C]. As described above, since there is a case where there is not one connection of the transitions between the states but a plurality of them, data on a combination of transitions allowed between the two states is required. It is also necessary to define data indicating the allowable range of the time required for the transition.

【0177】各ステートの基準データが格納されている
記憶場所の先頭アドレスがそれぞれaddA,add
B,addC,addDおよびaddEである。
The start addresses of the storage locations where the reference data of each state are stored are addA and add, respectively.
B, addC, addD and addE.

【0178】ステート[A]に関する基準データとして
は,ステート[A]の出力データ・パターン,前ステー
ト[E]からの遷移に要する時間の許容範囲(すなわち
上限値と下限値),ならびにステート[A]に後続する
ステートは[B]であることおよびその後続するステー
ト[B]に関する基準データが格納されている記憶場所
の先頭アドレスaddBがある。
The reference data relating to the state [A] includes the output data pattern of the state [A], the allowable range of the time required for transition from the previous state [E] (that is, the upper limit and the lower limit), and the state [A]. ] Is [B] and there is a head address addB of a storage location where reference data relating to the subsequent state [B] is stored.

【0179】もし,ステート[B]から[E]を経てス
テート[A]に移る場合と,ステート[C]から[E]
を経てステート[A]に移る場合とにおいて,遷移時間
の許容範囲が異なる場合にはこれらを区別して別個に遷
移時間の上限値と下限値とを記憶しておく必要があろ
う。
If the state is shifted from state [B] to state [A] via [E], or from state [C] to state [E]
If the allowable range of the transition time is different between the case where the state transitions to the state [A] through the above, it is necessary to separately store the upper limit value and the lower limit value of the transition time separately.

【0180】ステート[B]に関する基準データは複雑
である。この基準データにはステート[B]の出力パタ
ーン・データが含まれる。
The reference data relating to the state [B] is complicated. The reference data includes the output pattern data of the state [B].

【0181】また,この基準データには,前ステートが
[A]の場合に許容される遷移時間の範囲(上限値,下
限値)と,前ステートが[D]の場合に許容される遷移
時間の範囲(上限値,下限値)が含まれる。
The reference data includes the range (upper limit value, lower limit value) of the transition time allowed when the previous state is [A], and the transition time allowed when the previous state is [D]. (Upper limit, lower limit).

【0182】さらにこの基準データには,前ステートが
[A]の場合には後続するステートは[C]または
[D]であること,およびそれらの後続ステート
[C],[D]の基準データが格納されている記憶場所
のアドレスaddCおよびaddD,ならびに前ステー
トが[D]の場合には後続するステートは[E]である
こと,およびその後続ステート[E]の基準データが格
納されている記憶場所のアドレスaddEが含まれる。
Further, when the previous state is [A], the succeeding state is [C] or [D], and the reference data of the succeeding states [C] and [D] are included in the reference data. Are stored at the addresses addC and addD of the storage location in which is stored, and when the previous state is [D], the subsequent state is [E], and reference data of the subsequent state [E] is stored. Contains the address addE of the storage location.

【0183】ステート[C]および[D]の基準データ
はステート[A]のものと同じようなものである。
The reference data of states [C] and [D] are similar to those of state [A].

【0184】ステート[E]の基準データについては,
遷移時間の許容範囲が前ステートが[B]の場合と
[C]の場合とについて別個に記憶される。
With respect to the reference data of the state [E],
The allowable range of the transition time is stored separately for the case where the previous state is [B] and the case where the previous state is [C].

【0185】図44は故障箇所検知用基準データを示して
いる。各ステートについて入力期待パターンが記憶され
る。
FIG. 44 shows reference data for detecting a failure point. An expected input pattern is stored for each state.

【0186】図41からも分るように,ステート[B]が
ステート[A]に後続する場合とステート[D]に後続
する場合とでステート[B]の入力期待パターンが異な
る。ステート[E]についても,ステート[C]に後続
する場合とステート[B]に後続する場合とでその入力
期待パターンが異なる。このように,1つのステートに
ついて2種類以上の入力期待パターンがあるときにはそ
れらのすべての入力期待パターンを対応するステートに
関連してあらかじめ設定しておく。
As can be seen from FIG. 41, the expected input pattern of state [B] differs depending on whether state [B] follows state [A] or state [D]. Regarding the state [E], the expected input pattern differs between the case following the state [C] and the case following the state [B]. As described above, when there are two or more types of expected input patterns for one state, all the expected input patterns are set in advance in relation to the corresponding states.

【0187】図42において,ステート[A]〜[E]の
それぞれにおいて,状態が1である出力信号は1個のみ
である(ステート[E]については1つもない)。この
ような場合には,各ステートをそのステートにおいて状
態1となる出力信号によって置きかえてもよい。出力パ
ターンないしはステートは単一の出力信号からなるもの
も含む概念である。
In FIG. 42, in each of the states [A] to [E], there is only one output signal whose state is 1 (there is no state signal in the state [E]). In such a case, each state may be replaced by an output signal that becomes state 1 in that state. The output pattern or state is a concept including one consisting of a single output signal.

【0188】図45は図43に示す異常判定用基準データお
よび図44に示す異常箇所検知用基準データを用いた故障
診断処理の流れを示している。基本的には図37に示す故
障診断処理と同じであるが,異常判定用基準データおよ
び異常箇所検知用基準データの特殊性に対応する部分の
みが異なっている。
FIG. 45 shows the flow of a failure diagnosis process using the abnormality determination reference data shown in FIG. 43 and the abnormal point detection reference data shown in FIG. Basically, it is the same as the failure diagnosis processing shown in FIG. 37, except for the part corresponding to the specificity of the abnormality determination reference data and the abnormality location detection reference data.

【0189】PLC10の出力信号の状態(出力パター
ン)をサンプルし,これをRAM14に記憶している前回
のサンプル出力パターンと比較する(ステップ151 ,15
2 )。今回のサンプル出力パターンが前回のサンプル出
力パターンと同じであれば,現ステートから可能性のあ
る次ステートに遷移するのに許される時間範囲内かどう
かが,可能性のある次ステートのすべてについてチェッ
クされる(ステップ157)。
The state (output pattern) of the output signal of the PLC 10 is sampled and compared with the previous sample output pattern stored in the RAM 14 (steps 151 and 15).
2). If the current sample output pattern is the same as the previous sample output pattern, check all possible next states to see if they are within the time range allowed to transition from the current state to the possible next state Is performed (step 157).

【0190】たとえば現ステートが[B]の場合(前ス
テートが[A]であることを前提とする),次ステート
は[C]または[D]である。そこで,一方の次ステー
ト[C]の基準データに含まれる前ステートからの遷移
時間の上限値および下限値,ならびに他方の次ステート
[D]の基準データに含まれる前ステートからの遷移時
間の上限値および下限値を読出して,タイマ15の計時時
間とこれらを比較する。タイマ15の計時時間が,これら
の遷移時間のいずれもを超えている場合には異常が発生
したと判定し,その旨を表示する(ステップ159 )。こ
の場合,サンプルした出力パターンと,次のステート
[C]および[D]のそれぞれの出力基準パターンとを
比較し,一致しない出力信号を表示することになる。一
致しない出力信号は1個のみならず複数個存在する場合
もありうる。
For example, when the current state is [B] (assuming that the previous state is [A]), the next state is [C] or [D]. Therefore, the upper limit value and the lower limit value of the transition time from the previous state included in the reference data of one next state [C], and the upper limit of the transition time from the previous state included in the reference data of the other next state [D] The value and the lower limit are read and compared with the time measured by the timer 15. If the time counted by the timer 15 exceeds any of these transition times, it is determined that an abnormality has occurred, and that fact is displayed (step 159). In this case, the sampled output pattern is compared with the respective output reference patterns of the following states [C] and [D], and an output signal that does not match is displayed. There may be not only one output signal but also a plurality of output signals that do not match.

【0191】タイマ15の計時時間がいずれかの遷移設定
時間内であれば,今回のサンプル・パターンを記憶して
(ステップ158 ),ステップ151 に戻る。
If the time measured by the timer 15 is within one of the transition set times, the current sample pattern is stored (step 158), and the flow returns to step 151.

【0192】今回サンプルした出力パターンが前回のサ
ンプル・パターンと異なっていればステートが遷移した
可能性がある(ステップ152 )。そこで,タイマ15の計
時時間を遷移に要した時間として読取り,タイマ15をリ
セットする(ステップ153 )。タイマ15はリセットされ
ると再び0から計時を開始する。
If the output pattern sampled this time is different from the previous sample pattern, the state may have transitioned (step 152). Therefore, the time measured by the timer 15 is read as the time required for the transition, and the timer 15 is reset (step 153). When reset, the timer 15 starts counting from 0 again.

【0193】そして,前ステートに応じて,前ステート
に後続する可能性のあるすべてのステートの基準データ
に含まれる出力基準パターンとサンプルした出力パター
ンとが順次比較される(ステップ154 ,155 ,156 )。
Then, according to the previous state, the output reference patterns included in the reference data of all the states that may possibly follow the previous state are sequentially compared with the sampled output patterns (steps 154, 155, 156). ).

【0194】たとえばステート[B]から次のステート
に遷移した可能性があると判定されたときには(ステッ
プ152 でNO),もし,ステート[B]がステート[A]
から遷移してきたものであれば,ステート[B]に後続
する可能性のあるステートは[C]または[D]であ
る。そこで,今回のサンプル・パターンとステート
[C]の基準出力パターンとが比較され,一致していな
ければ(ステップ155 でNO),今回のサンプル・パター
ンとステート[D]の基準出力パターンとが比較され
る。今回のサンプル・パターンがステート[C]の基準
出力パターンとも,ステート[D]の基準出力パターン
とも一致していなければ(ステップ156 でYES ),異常
が発生したとしてその旨および不一致の出力信号が表示
される(ステップ159 )。この場合には,ステート
[C]またはステート[D]において異常の可能性があ
る。
For example, when it is determined that there is a possibility that a transition has occurred from state [B] to the next state (NO in step 152), if state [B] is changed to state [A]
, The state that may follow the state [B] is [C] or [D]. Then, the current sample pattern is compared with the reference output pattern of state [C]. If they do not match (NO in step 155), the current sample pattern is compared with the reference output pattern of state [D]. Is done. If the current sample pattern does not match the reference output pattern of state [C] or the reference output pattern of state [D] (YES in step 156), it is determined that an error has occurred and an output signal indicating that an error has occurred and a mismatch output signal are present. It is displayed (step 159). In this case, the state [C] or the state [D] may be abnormal.

【0195】今回のサンプル・パターンと,後続する可
能性のあるいずれかのステートの基準出力パターンとが
一致すれば(ステップ155 ),その一致した基準出力パ
ターンに遷移したものと判定し,遷移時間が設定範囲内
かどうかのチェックに移る(ステップ157 )。この場合
には,今回のサンプル・パターンと一致した基準出力パ
ターンをもつステートに遷移するのに要する時間の許容
範囲と,タイマ15の計時時間とを比較すればよい。
If the current sample pattern matches the reference output pattern of any of the following possible states (step 155), it is determined that a transition has been made to the matched reference output pattern, and the transition time is determined. Moves on to check whether or not is within the set range (step 157). In this case, the allowable range of the time required to transition to the state having the reference output pattern that matches the current sample pattern may be compared with the time measured by the timer 15.

【0196】異常を検知した場合には,そのときの入力
信号の状態(入力パターン)を取込み記憶する(ステッ
プ160 )。そして,異常の可能性があると判定された1
または複数のステートに対応して設定されている入力期
待パターンのすべてと取込んだ入力パターンとがそれぞ
れ比較される(ステップ161 )。この比較において入力
信号の状態が不一致のものが(1または複数個ありう
る)異常箇所候補として追加表示される(ステップ162
)。異常箇所候補の中から真に異常の箇所を捜し出す
作業は作業員によって実行されるであろう。
If an abnormality is detected, the state (input pattern) of the input signal at that time is captured and stored (step 160). And it is determined that there is a possibility of abnormality 1
Alternatively, all of the expected input patterns set corresponding to the plurality of states are compared with the fetched input patterns (step 161). In this comparison, an input signal with a mismatched state is additionally displayed as an abnormal point candidate (possibly one or more) (step 162).
). The task of searching for a truly abnormal location from among the abnormal location candidates will be performed by an operator.

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

【図1】周期決定の全体的な処理の流れを示すフロー・
チャートである。
FIG. 1 is a flow chart showing the overall processing flow of cycle determination.
It is a chart.

【図2】周期に関係する文字を決定する処理の流れを示
すフロー・チャートである。
FIG. 2 is a flowchart illustrating a flow of processing for determining a character related to a cycle.

【図3】周期パターンおよび周期を決定する処理の流れ
を示すフロー・チャートである。
FIG. 3 is a flowchart illustrating a flow of a process for determining a periodic pattern and a periodicity.

【図4】データ列の例1を示す。FIG. 4 shows a first example of a data string.

【図5】データ列からデータ遷移パターンを抜出す処理
を示す。
FIG. 5 shows a process of extracting a data transition pattern from a data sequence.

【図6】抜出されたデータ遷移パターンを示す。FIG. 6 shows extracted data transition patterns.

【図7】データ遷移パターンの分類表を示す。FIG. 7 shows a classification table of data transition patterns.

【図8】データ遷移パターンの分類表の他の例を示す。FIG. 8 shows another example of a classification table of data transition patterns.

【図9】周期に関係する文字を捜し出す処理の例を示
す。
FIG. 9 shows an example of processing for searching for a character related to a cycle.

【図10】周期に関係する文字を捜し出す処理の例を示
す。
FIG. 10 shows an example of a process of searching for a character related to a cycle.

【図11】周期に関係する文字を捜し出す処理の例を示
す。
FIG. 11 shows an example of processing for searching for a character related to a cycle.

【図12】周期に関係する文字を捜し出す処理の例を示
す。
FIG. 12 shows an example of a process of searching for a character related to a cycle.

【図13】周期を構成するデータ遷移パターンを捜し出
す処理の例を示す。
FIG. 13 shows an example of a process of searching for a data transition pattern constituting a cycle.

【図14】周期を構成するデータ遷移パターンを捜し出
す処理の例を示す。
FIG. 14 shows an example of a process of searching for a data transition pattern constituting a cycle.

【図15】分割されたデータ列を示す。FIG. 15 shows a divided data string.

【図16】データ列の構造を示す。FIG. 16 shows the structure of a data string.

【図17】データ列の例2を示す。FIG. 17 shows a second example of the data string.

【図18】データ遷移パターンの分類表を示す。FIG. 18 shows a classification table of data transition patterns.

【図19】周期を構成するデータ遷移パターンを捜し出
す処理の例を示す。
FIG. 19 shows an example of a process of searching for a data transition pattern constituting a cycle.

【図20】周期を構成するデータ遷移パターンを捜し出
す処理の例を示す。
FIG. 20 shows an example of a process of searching for a data transition pattern constituting a cycle.

【図21】周期を構成するデータ遷移パターンを捜し出
す処理の例を示す。
FIG. 21 shows an example of a process of searching for a data transition pattern constituting a cycle.

【図22】周期を構成するデータ遷移パターンを捜し出
す処理の例を示す。
FIG. 22 shows an example of a process of searching for a data transition pattern constituting a cycle.

【図23】分割されたデータ列を示す。FIG. 23 shows a divided data string.

【図24】データ列の構造を示す。FIG. 24 shows the structure of a data string.

【図25】データ列の例3を示す。FIG. 25 shows a third example of the data string.

【図26】データ遷移パターンを示す。FIG. 26 shows a data transition pattern.

【図27】周期を構成するデータ遷移パターンを捜し出
す処理の例を示す。
FIG. 27 shows an example of a process of searching for a data transition pattern constituting a cycle.

【図28】分割されたデータ列を示す。FIG. 28 shows a divided data string.

【図29】データ列の構造を示す。FIG. 29 shows the structure of a data string.

【図30】PLCおよびコンソール(周期決定装置)の
構成を示すブロック図である。
FIG. 30 is a block diagram showing a configuration of a PLC and a console (cycle determination device).

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

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

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

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

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

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

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

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

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

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

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

【図42】出力基準パターンの他の例を示す。FIG. 42 shows another example of the output reference pattern.

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

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

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

【符号の説明】[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

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/22 - 11/277 G01R 23/02 G01R 31/28 - 31/30 Continued on the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G06F 11/22-11/277 G01R 23/02 G01R 31/28-31/30

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 与えられたデータ列から,所定長の連続
するデータからなるすべての種類のデータ遷移パターン
を抜出す手段, 抜出されたデータ遷移パターンのうちの任意のものを先
頭に配置し,先行するデータ遷移パターンの後部と共通
なデータの並びを前部にもつ他のデータ遷移パターン
を,上記先行するデータ遷移パターンに後続させるよう
にして,かつできるだけ異なるデータ遷移パターンを用
いるようにして,データ遷移パターンの連鎖を作成する
手段, 先頭に配置されるデータ遷移パターンを変えながら,上
記連鎖作成手段にデータ遷移パターンの連鎖の作成を繰
返させ,先頭のデータ遷移パターンに再び戻ってくる連
鎖があるかどうかをチェックする手段,および先頭のデ
ータ遷移パターンに戻ってきたときに,作成された連鎖
が与えられたデータ列の一周期に相当することを利用し
て,その周期を決定する手段, を備えたデータ列の周期決定装置。
1. A means for extracting all types of data transition patterns consisting of continuous data of a predetermined length from a given data string, and arranging an arbitrary one of the extracted data transition patterns at the head. The other data transition pattern having the same sequence of data as the rear part of the preceding data transition pattern at the front is made to follow the preceding data transition pattern, and using a data transition pattern that is as different as possible. Means for creating a chain of data transition patterns. Changing the data transition pattern arranged at the head, causing the chain creation means to repeat the creation of the chain of data transition patterns, and returning to the head data transition pattern again. Means to check whether there is any data, and the sequence created when returning to the first data transition pattern. By utilizing the fact that corresponding to one period of the data row that has been given, means for determining the period, the period determination device data string having a.
【請求項2】 与えられたデータ列から,所定長の連続
するデータからなるすべての種類のデータ遷移パターン
を抜出す手段, 抜出されたデータ遷移パターンを,上記データ列を構成
するすべての種類の単位データに関連させて記憶する手
段, 任意の単位データに関連しかつそれを含むデータ遷移パ
ターンを先頭に置き,先行するデータ遷移パターンの後
部と共通なデータの並びを前部にもつ他のデータ遷移パ
ターンを,上記先行するデータ遷移パターンに後続させ
るようにしてデータ遷移パターンの連鎖を形成する手
段, 先頭に置かれるデータ遷移パターンを変えながら,デー
タ遷移パターンの連鎖の形成を繰返し,先頭のデータ遷
移パターンが関連する単位データが後続データ遷移パタ
ーンに再び出現するかどうかをチェックする第1のチェ
ック手段, 先頭のデータ遷移パターンが関連する単位データが後続
のデータ遷移パターンに再出現したときに,その単位デ
ータを上記データ列の周期に関連するものと判定する手
段, 周期に関連するものと判定された単位データに関連する
データ遷移パターンを先頭に置き,先行するデータ遷移
パターンの後部と共通なデータの並びを前部にもつ他の
データ遷移パターンを,上記先行するデータ遷移パター
ンに後続させるようにして,かつできるだけ異なるデー
タ遷移パターンを用いるようにして,データ遷移パター
ンの連鎖を形成し,上記先頭に置かれたデータ遷移パタ
ーンに戻ってこざるを得ないものがあるかどうかをチェ
ックする第2のチェック手段,および戻ってこざるを得
ないものがあれば,そのデータ遷移パターンを用いて与
えられたデータ列を分割することにより周期を構成する
データ列とその周期を決定する第1の決定手段, を備えたデータ列の周期決定装置。
2. A means for extracting, from a given data sequence, all types of data transition patterns composed of continuous data of a predetermined length, and extracting the extracted data transition patterns with all types constituting the data sequence. Means for storing the data transition pattern related to and including any unit data at the beginning, and other data having a common data arrangement at the front with the rear part of the preceding data transition pattern Means for forming a chain of data transition patterns by causing the data transition pattern to follow the preceding data transition pattern. Repeating the formation of the chain of data transition patterns while changing the data transition pattern placed at the head, A first step of checking whether the unit data associated with the data transition pattern reappears in the subsequent data transition pattern Checking means, means for determining, when unit data associated with the first data transition pattern reappears in a subsequent data transition pattern, the unit data to be associated with the cycle of the data sequence, and means associated with the cycle The data transition pattern related to the determined unit data is placed at the head, and another data transition pattern having the same data sequence as the rear part of the preceding data transition pattern at the front is made to follow the preceding data transition pattern. In this way, and by using different data transition patterns as much as possible, a chain of data transition patterns is formed, and it is checked whether there is any inevitable return to the data transition pattern placed at the top. If there is any checking means and if there is no choice but to return, use the data transition pattern Data train constituting a cycle by dividing the given data sequence and the first determining means for determining the period, the period determination device data string having a.
【請求項3】 与えられたデータ列から,所定長の連続
するデータからなるすべての種類のデータ遷移パターン
を抜出す手段, 抜出されたデータ遷移パターンを,上記データ列を構成
するすべての種類の単位データに関連させて記憶する手
段, 任意の単位データに関連しかつそれを含むデータ遷移パ
ターンを先頭に置き,先行するデータ遷移パターンの後
部と共通なデータの並びを前部にもつ他のデータ遷移パ
ターンを,上記先行するデータ遷移パターンに後続させ
るようにしてかつできるだけ上記単位データが出現しな
いようにデータ遷移パターンを選択しながらデータ遷移
パターンの連鎖を形成する手段, 先頭に置かれるデータ遷移パターンを変えながら,デー
タ遷移パターンの連鎖の形成を繰返し,先頭のデータ遷
移パターンが関連する単位データが後続データ遷移パタ
ーンに再び出現せざるを得ないかどうかをチェックする
手段,および先頭のデータ遷移パターンが関連する単位
データが後続のデータ遷移パターンに再出現したとき
に,その単位データを上記データ列の周期に関連するも
のと判定する手段, を備えた周期に関係するデータを見付け出す装置。
3. A means for extracting all types of data transition patterns composed of continuous data of a predetermined length from a given data sequence, and extracting the extracted data transition patterns with all types of data constituting the data sequence. Means for storing the data transition pattern related to and including any unit data at the beginning, and other data having a common data arrangement at the front with the rear part of the preceding data transition pattern Means for forming a chain of data transition patterns while selecting a data transition pattern so that the data transition pattern follows the preceding data transition pattern and so that the unit data does not appear as much as possible; Repeat the formation of the chain of data transition patterns while changing the pattern, and the leading data transition pattern Means for checking whether a unit data that has to be reappeared in a subsequent data transition pattern, and when the unit data associated with the first data transition pattern reappears in a subsequent data transition pattern, the unit data Means for determining that the data sequence is related to the cycle of the data sequence, and an apparatus for finding data related to the cycle.
【請求項4】 制御装置の少なくとも出力信号のデータ
列から,所定長の連続するデータからなるすべての種類
のデータ遷移パターンを抜出し, 抜出されたデータ遷移パターンのうちの任意のものを先
頭に配置し,先行するデータ遷移パターンの後部と共通
なデータの並びを前部にもつ他のデータ遷移パターン
を,上記先行するデータ遷移パターンに後続させるよう
にして,かつできるだけ異なるデータ遷移パターンを用
いるようにして,データ遷移パターンの連鎖を作成し, 先頭に配置されるデータ遷移パターンを変えながら,デ
ータ遷移パターンの連鎖の作成を繰返すことにより,先
頭のデータ遷移パターンに再び戻ってくる連鎖があるか
どうかをチェックし, 先頭のデータ遷移パターンに戻ってきたときに,作成さ
れた連鎖が与えられたデータ列の一周期に相当すること
を利用して,その周期を決定し, 一周期中に出現する各ステートの基準パターンとステー
ト間のつながりに関するデータとを含む異常判定用基準
データをあらかじめ作成して記憶しておき, 上記制御装置の動作中において,上記制御装置の少なく
とも出力信号のパターンの変化が,上記異常判定用基準
データによって表わされるステートの遷移にともなう基
準パターンの変化に合致しているかどうかをチェックす
ることにより,上記制御装置によって制御されるシステ
ムの異常の有無を判定する, 故障診断方法。
4. Extracting all types of data transition patterns composed of continuous data of a predetermined length from at least a data sequence of an output signal of the control device, and arbitrarily selecting any of the extracted data transition patterns at the beginning. The data transition pattern is arranged so that another data transition pattern having the same data sequence as the rear part of the preceding data transition pattern at the front thereof follows the preceding data transition pattern, and uses a data transition pattern that is as different as possible. Then, create a chain of data transition patterns and repeat the creation of a chain of data transition patterns while changing the data transition pattern placed at the top, so that there is a chain that returns to the top data transition pattern again. Check if it returns and return to the first data transition pattern. Utilizing the fact that it corresponds to one cycle of the data sequence, the cycle is determined, and the abnormality determination reference data including the reference pattern of each state appearing in one cycle and the data on the connection between the states is created in advance. During the operation of the control device, at least a change in the pattern of the output signal of the control device coincides with a change in the reference pattern associated with a state transition represented by the abnormality determination reference data. A failure diagnosis method that determines whether there is an abnormality in a system controlled by the control device by checking whether the system is operating.
【請求項5】 制御装置の少なくとも出力信号のデータ
列から,所定長の連続するデータからなるすべての種類
のデータ遷移パターンを抜出す手段, 抜出されたデータ遷移パターンのうちの任意のものを先
頭に配置し,先行するデータ遷移パターンの後部と共通
なデータの並びを前部にもつ他のデータ遷移パターン
を,上記先行するデータ遷移パターンに後続させるよう
にして,かつできるだけ異なるデータ遷移パターンを用
いるようにして,データ遷移パターンの連鎖を作成する
手段, 先頭に配置されるデータ遷移パターンを変えながら,上
記連鎖作成手段にデータ遷移パターンの連鎖の作成を繰
返させ,先頭のデータ遷移パターンに再び戻ってくる連
鎖があるかどうかをチェックする手段, 先頭のデータ遷移パターンに戻ってきたときに,作成さ
れた連鎖が与えられたデータ列の一周期に相当すること
を利用して,その周期を決定する手段, 一周期中に出現する各ステートの基準パターンとステー
ト間のつながりに関するデータとを含む異常判定用基準
データをあらかじめ記憶する記憶手段,および上記制御
装置の動作中において,上記制御装置の少なくとも出力
信号のパターンの変化が,上記異常判定用基準データに
よって表わされるステートの遷移にともなう基準パター
ンの変化に合致しているかどうかをチェックすることに
より,上記制御装置によって制御されるシステムの異常
の有無を判定する手段, を備えた故障診断装置。
5. A means for extracting all types of data transition patterns composed of continuous data of a predetermined length from at least a data sequence of an output signal of a control device, and selecting any one of the extracted data transition patterns. The other data transition pattern, which is placed at the beginning and has the same data sequence as the rear part of the preceding data transition pattern at the front, is made to follow the preceding data transition pattern, and a data transition pattern that is as different as possible Means for creating a chain of data transition patterns, by changing the data transition pattern arranged at the head, causing the chain creation means to repeat the creation of the chain of data transition patterns, Means to check if there is a returning chain. When returning to the first data transition pattern Means for determining the cycle using the fact that the created chain is equivalent to one cycle of a given data sequence. The reference pattern of each state appearing in one cycle and the data on the connection between the states are determined. Storage means for preliminarily storing abnormality determination reference data, and at least a change in a pattern of an output signal of the control device during operation of the control device, the reference being accompanied by a state transition represented by the abnormality determination reference data. Means for judging the presence or absence of an abnormality in a system controlled by the control device by checking whether or not the change corresponds to a change in the pattern.
JP32678591A 1991-11-15 1991-11-15 Data sequence period determination device and failure diagnosis method and device Expired - Fee Related JP3211099B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32678591A JP3211099B2 (en) 1991-11-15 1991-11-15 Data sequence period determination device and failure diagnosis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32678591A JP3211099B2 (en) 1991-11-15 1991-11-15 Data sequence period determination device and failure diagnosis method and device

Publications (2)

Publication Number Publication Date
JPH05172862A JPH05172862A (en) 1993-07-13
JP3211099B2 true JP3211099B2 (en) 2001-09-25

Family

ID=18191679

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32678591A Expired - Fee Related JP3211099B2 (en) 1991-11-15 1991-11-15 Data sequence period determination device and failure diagnosis method and device

Country Status (1)

Country Link
JP (1) JP3211099B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12340211B2 (en) * 2023-03-03 2025-06-24 The Mitre Corporation Systems and methods for real-time binary analysis with hot patching of programmable logic controllers

Also Published As

Publication number Publication date
JPH05172862A (en) 1993-07-13

Similar Documents

Publication Publication Date Title
US6845340B2 (en) System and method for machining data management
US4535456A (en) Method of detecting execution errors in program-controlled apparatus
KR102221473B1 (en) System for error detection according to plc control
US20210319368A1 (en) Fault diagnosis for diagnosis target system
JP3275450B2 (en) Failure diagnosis method and device
US5742624A (en) Fault detecting apparatus and method
CN112596490B (en) Industrial robot fault detection method, device, computer equipment and storage medium
CN116249945A (en) Process abnormality detection device and method using analysis of control part temperature signal
JP3211099B2 (en) Data sequence period determination device and failure diagnosis method and device
JP3134428B2 (en) Failure diagnosis method and device
CN117310422A (en) A kind of pyrotechnics resistor performance testing method and system
JP3380912B2 (en) Method and apparatus for grouping diagnosis targets for failure diagnosis
US5940413A (en) Method for detecting operational errors in a tester for semiconductor devices
JPS59132378A (en) Logic circuit testing device
JP3193120B2 (en) Tool abnormality detection device
JPH0677216B2 (en) Monitor device for sequence program control system
JPH06318113A (en) Method and device for grouping objects of diagnosis for fault diagnosis
JPS63303407A (en) Monitoring device for sequence program control
JP7629881B2 (en) Tact division data collection system and anomaly detection system
CN114398198B (en) Embedded software fault anchor point positioning analysis method, device, equipment and medium
JPS61164764A (en) Cutting tool damage detection device
Kovijanic A new look at test generation and verification
JP2607620B2 (en) Grouping method of sequence program control system monitor
CN118228931A (en) Photovoltaic energy storage operation and maintenance system and method
JP2001331221A (en) Operation abnormality analyzer

Legal Events

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