JPH0621961B2 - Abnormality diagnosis device for sequencer - Google Patents

Abnormality diagnosis device for sequencer

Info

Publication number
JPH0621961B2
JPH0621961B2 JP60171083A JP17108385A JPH0621961B2 JP H0621961 B2 JPH0621961 B2 JP H0621961B2 JP 60171083 A JP60171083 A JP 60171083A JP 17108385 A JP17108385 A JP 17108385A JP H0621961 B2 JPH0621961 B2 JP H0621961B2
Authority
JP
Japan
Prior art keywords
memory
diagnostic
copy
sequencer
writing
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 - Lifetime
Application number
JP60171083A
Other languages
Japanese (ja)
Other versions
JPS6232510A (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.)
Hitachi Ltd
Nissan Motor Co Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Nissan Motor Co Ltd
Hitachi Information and Control Systems Inc
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 Hitachi Ltd, Nissan Motor Co Ltd, Hitachi Information and Control Systems Inc filed Critical Hitachi Ltd
Priority to JP60171083A priority Critical patent/JPH0621961B2/en
Publication of JPS6232510A publication Critical patent/JPS6232510A/en
Publication of JPH0621961B2 publication Critical patent/JPH0621961B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はシーケンス制御装置に係り、特に電子式シーケ
ンス制御装置、すなわちプログラマブルコントローラ
(以下PCsと略す。)に発生する突発的異常現象の原
因究明に役立つ装置に関する。
Description: FIELD OF THE INVENTION The present invention relates to a sequence control device, and more particularly to the investigation of the cause of a sudden abnormal phenomenon occurring in an electronic sequence control device, that is, a programmable controller (hereinafter abbreviated as PCs). Regarding useful equipment.

〔発明の背景〕[Background of the Invention]

PCsは半導体電子技術の進歩に伴ない、生産設備の制
御に数多く採用されるようになつた。ところでPCsの
シーケンス制御のプログラムは実際の製造ラインに適用
して十分に調整デバツクを行なつた後に、製造ラインの
実稼動へと移行する。実操業に移つた後、多くのシステ
ムで詳細な原因が判明できないトラブルが発生する。こ
のトラブルのなかでも、ある程度再現性のあるものは、
トラブル発生時の状況を作り出していくということで不
良発生のメカニズムを解明していくことができる。
With the progress of semiconductor electronic technology, PCs have come to be widely used for controlling production equipment. By the way, the sequence control program of the PCs is applied to an actual production line to sufficiently perform the adjustment debugging, and then the production line is put into actual operation. After going into actual operation, many systems have problems in which the detailed cause cannot be determined. Among these problems, the ones that have some reproducibility are:
It is possible to elucidate the mechanism of failure occurrence by creating situations when trouble occurs.

しかしながら、トラブルの再現性が少なく、一ケ月に一
回程度しか異常現象が発生しない様な場合、往々にして
そのトラブルがどの様な状況のもとで発生したのかが明
白でないことが多い。特にその異常現象が発生すると、
生産に重大な損害を与え、正常運転に復帰するのに非常
に長時間の製造ラインの停止を招いたり、あるいは製造
中の加工品が不良となる場合においては、特に重大な問
題となる。
However, when the trouble is not reproducible and the abnormal phenomenon occurs only once a month, it is often not clear under what circumstances the trouble occurred. Especially when the abnormal phenomenon occurs,
This is a particularly serious problem in the case where production is seriously damaged, a production line is stopped for a very long time to return to normal operation, or a processed product being manufactured is defective.

この様に再現頻度がかなり低いものについての従来の対
処の仕方としては、トラブルが発生した前後の現場の状
況をできるだけ詳しく現場の作業者より聞き出したり、
次の現象が再び発生した時の状況を記録するための特別
な記録装置をつけたりしていた。
As a conventional method of dealing with such a low reproducibility frequency, the situation of the site before and after the trouble occurred is heard as much as possible from the site worker,
I was equipped with a special recording device to record the situation when the next phenomenon occurred again.

一般的には現場作業者から得られる情報としては正確な
データが得られず、問題が収束するまでに同一トラブル
を数多く体験せざるを得ず、時間がかなりかかるのが常
である。
In general, accurate data cannot be obtained as information obtained from field workers, and many problems must be experienced before the problems converge, which usually takes a lot of time.

また異常現象を記録するために特別な記録装置を接続す
るにはユーザは高価な記録装置を購入せざるを得ない
し、また記録装置を手狭な生産現場に設置するのに苦労
しなければならず、記録装置が長時間に動作する様に温
度,湿度,塵埃などの環境作りも行なわなければならな
い。
In addition, in order to connect a special recording device to record an abnormal phenomenon, the user has to purchase an expensive recording device, and it is difficult to install the recording device in a narrow production site. In order to operate the recording device for a long time, the environment such as temperature, humidity and dust must be created.

現場に設置される制御装置はかなり劣悪な環境の中でも
正常動作する様に設計されているが、測定記録装置につ
いては短時間ならともかく、長時間苛酷な状態にさらせ
る様には設計されていないため、その測定記録装置が連
続的にモニター運転できるようにしてやらなければなら
ない。
The control equipment installed in the field is designed to operate normally even in a very bad environment, but the measurement recording equipment is not designed to be harsh for a long time, not only for a short time. Therefore, the measurement and recording device must be continuously monitor-operated.

〔発明の目的〕[Object of the Invention]

本発明の目的は、主に再現頻度の低い現場設備の異常状
態の原因を解明するために、異常状態が発生したの前後
の任意の期間における制御状態をPCs内に設けられた
メモリに記憶保持しておき、トラブルの原因を容易にし
ることができるシーケンサの異常診断装置を提供するこ
とにある。
An object of the present invention is to mainly store and retain a control state in an arbitrary period before and after an abnormal state occurs in a memory provided in the PCs in order to elucidate the cause of the abnormal state of the field equipment which is rarely reproduced. It is another object of the present invention to provide a sequencer abnormality diagnosis device capable of easily causing a cause of trouble.

〔発明の概要〕[Outline of Invention]

上記本発明の目的を達成するために、本発明は、リレー
ラダープログラムを周期的に演算制御するシーケンサの
異常診断装置において、出力プロセス入出力装置の状態
を記憶する第1のメモリと、上記第1のメモリ上に不規
則に分散した情報を整列して記憶する第2のメモリと、
上記第2のメモリから、所定のタイミングで書き込まれ
た情報を記憶する第3のメモリと、上記第2のメモリか
ら上記第3のメモリへの書き込み及び書き込み停止のタ
イミングを制御する制御回路と上記シーケンサと脱着可
能に通信回線で接続され、かつ上記第3のメモリに記憶
した情報に基づいて表示を行なう表示装置とを具備し、
上記制御回路は、上記第2メモリから上記第3のメモリ
への書き込み開始を指示するスイッチと、該書き込み間
隔をシーケンスサイクル整数倍の間隔で可変に設定する
書き込み間隔設定回路と、上記第2のメモリから上記第
3のメモリへの書き込み停止のタイミングを可変に設定
できる書き込み停止時期設定回路と、上記第3のメモリ
書き込みアドレスを制御するアドレス制御回路とを有す
ることを特徴とする。
In order to achieve the above-mentioned object of the present invention, the present invention provides a first memory for storing the state of an output process input / output device in an abnormality diagnosis device for a sequencer that periodically controls a relay ladder program, A second memory for aligning and storing randomly distributed information on one memory;
A third memory for storing information written from the second memory at a predetermined timing, a control circuit for controlling timing of writing from the second memory to the third memory and stop of writing, and A display device which is detachably connected to the sequencer through a communication line and which displays based on the information stored in the third memory,
The control circuit includes a switch for instructing the start of writing from the second memory to the third memory, a write interval setting circuit for variably setting the write interval at an interval that is an integral multiple of a sequence cycle, and the second A write stop timing setting circuit that can variably set a write stop timing from the memory to the third memory, and an address control circuit that controls the third memory write address.

〔発明の実施例〕Example of Invention

第2図に一般的なPCs1の構成を示す。PCs1のメ
モリ11には現場設備2を制御するシーケンス命令が記
憶されている。そして、PCs1のCPU12は、現場
設備2の該当機器のON/OFF状態を入力プロセス入
出力装置13(以下PI/Oと略す)を通して、CPU
12と信号のやりとりができるように信号レベルを調整
し、そのON/OFF状態をPI/Oコントローラ14
の中にある、PI/Oイメージメモリ15にON/OF
F状態を“1”,“0”のパターンでコピーする。
FIG. 2 shows the configuration of a general PCs1. The memory 11 of the PCs 1 stores a sequence command for controlling the field facility 2. Then, the CPU 12 of the PCs 1 controls the ON / OFF state of the corresponding device of the field facility 2 through the input process input / output device 13 (hereinafter abbreviated as PI / O) to generate
The signal level is adjusted so that signals can be exchanged with the device 12, and the ON / OFF state is adjusted by the PI / O controller 14
ON / OF the PI / O image memory 15 in the
The F state is copied with a pattern of "1" and "0".

PCs1のCPU12はメモリ11内に記憶されている
シーケンス命令に従つて、入力B、入力Cといつた信号
を、PI/Oイメージメモリ15から読み出し、シーケ
ンス演算を行なう。その演算結果はPI/Oイメージメ
モリ15の該当メモリアドレスに“1”(ON時)、
“0”(OFF時)として書き込まれる。このON/O
FF条件に従つて該当の現場設備2に対しON,OFF
の信号を出力する。
The CPU 12 of the PCs 1 reads the signals of the input B and the input C from the PI / O image memory 15 in accordance with the sequence command stored in the memory 11 and performs the sequence operation. The calculation result is "1" (when ON) at the corresponding memory address of the PI / O image memory 15,
It is written as "0" (when OFF). This ON / O
ON / OFF for the corresponding field equipment 2 according to the FF condition
The signal of is output.

PI/Oイメージメモリ15の中では外部入力信号群
と、外部出力信号群だけでなく、補助リレー的な役割を
はたすPCs1内部接点信号群、内部タイマ信号、内部
カウンタ信号群等実に多くの信号の処理バツフアメモリ
として動作している。通常このPI/Oイメージメモリ
15は、各信号群の各点1点ごとに1bit、1アドレス
で記憶している。これは、CPU12がシーケンス演算
をする際に、1アドレスあたり複数ビツトの入出力情報
をもたせていると該当信号のON/OFFをとらえるの
に該当ビツトの情報を切り出す処理に時間を要し、その
結果処理スピードが低下するためである。
In the PI / O image memory 15, not only the external input signal group and the external output signal group but also the PCs1 internal contact signal group, the internal timer signal, the internal counter signal group, etc., which play the role of auxiliary relays It operates as a processing buffer memory. Normally, the PI / O image memory 15 stores 1 bit and 1 address for each point of each signal group. This is because it takes time for the information of the corresponding bit to be cut out to catch ON / OFF of the corresponding signal if the CPU 12 has input / output information of a plurality of bits per address when performing the sequence operation. This is because the result processing speed decreases.

ところで、シーケンス制御を実行している時、トラブル
が発生したとする。例えば第3図のようなタンクがある
場合を考えてみる。通常はタンク31の上限レベルのフ
ロートスイツチ32がONになつていないとカクハンキ
33は回らないようにプログラムは作成したつもりでい
るとする。ところが数ケ月に一度ほどタンク31が満杯
になつていないにもかかわらず、カクハンキ33のモー
タ34の回転が行なわれることがあるとする(誤動
作)。この状態が発生することは極めてまれであり、こ
の状態がなぜ起きるのかを常時監視していることは極め
て困難である。
By the way, it is assumed that a trouble occurs while executing the sequence control. Consider, for example, the case where there is a tank as shown in FIG. It is assumed that the program is designed so that the agitator 33 does not normally rotate unless the float switch 32 at the upper limit level of the tank 31 is turned on. However, it is assumed that the motor 34 of the agitator 33 is rotated even though the tank 31 is not filled up once every few months (malfunction). This condition rarely occurs, and it is extremely difficult to constantly monitor why it occurs.

以下本発明における実施例を第1図に従つて説明する。An embodiment of the present invention will be described below with reference to FIG.

PCs1のPI/Oイメージメモリ15には、多数の信
号が全て記憶されているが制御プログラムを実行する場
合にはPI/Oイメージメモリ15の各所から要所要所
ランダムにON/OFF情報を読むとともに書き込んで
いる。ところが、第3図に示すシーケンス制御対象例に
おいてこのトラブルを分析するためにチエツクしたい信
号は上限リミツトスイツチ32、カクハンキ33のモー
タ34のON/OFF信号、モータ起動の自動、手動モ
ード、切替信号35などの各種信号だけであるPI/O
イメージメモリ15にランダムに存在している各信号の
ON/OFF状態をあちら、こちらのメモリアドレスよ
りピツクアツプして記録することは極めて難しい。
A large number of signals are all stored in the PI / O image memory 15 of the PCs 1, but when the control program is executed, the ON / OFF information is read randomly from each place of the PI / O image memory 15 when necessary. I am writing. However, in the sequence control target example shown in FIG. 3, the signals to be checked in order to analyze this trouble are the upper limit switch 32, the ON / OFF signal of the motor 34 of the agitator 33, the motor start automatic / manual mode, the switching signal 35, etc. PI / O with only various signals
It is extremely difficult to record the ON / OFF state of each signal randomly existing in the image memory 15 by picking up from this memory address.

PCs1はPI/Oイメージメモリ15の内容をある特
定メモリエリアに高速で集めることは極めて単純に処理
することができる。すなわち第4図に示すように故障の
原因にからむと思われるポイントの情報をシーケンス命
令によつて診断メモリ1〜nまでに集めるようにアプリ
ケーシヨンリレーラダー命令で入れてやる。第4図にお
けるリレーラダープログラムを実行すれば、PI/Oイ
メージメモリ15上にランダムに配置された診断情報を
設定メモリエリアに高速転送することができる。すなわ
ち、各シーケンスサイクルごとに、PI/Oイメージメ
モリ15上にランダムに存在していた信号群を診断メモ
リ41へ、第5図に示すごとく整然と記憶できる。
The PCs 1 can extremely simply collect the contents of the PI / O image memory 15 in a specific memory area at a high speed. That is, as shown in FIG. 4, information about points which are thought to be involved in the cause of the failure is put in by the application relay ladder command so as to be collected in the diagnostic memories 1 to n by the sequence command. By executing the relay ladder program in FIG. 4, diagnostic information randomly arranged on the PI / O image memory 15 can be transferred at high speed to the setting memory area. That is, in each sequence cycle, the signal group randomly existing in the PI / O image memory 15 can be stored in the diagnostic memory 41 in an orderly manner as shown in FIG.

PCs1において異常時のモニタを行う場合の動作を第
1図を用いて説明する。異常時のモニタを行いたいと思
った場合、診断記録開始スイッチ27をONすることに
より、PI/Oイメージメモリ15の該当ビット26が
ONになる。このビット26に基づく信号が、コピー開
始フリップフロップ310のセット信号として入り、コ
ピー開始フリップフロップ310の出力がONとなる。
The operation of the PCs 1 for monitoring an abnormality will be described with reference to FIG. When it is desired to monitor an abnormality, the diagnostic recording start switch 27 is turned on to turn on the corresponding bit 26 of the PI / O image memory 15. A signal based on this bit 26 enters as a set signal of the copy start flip-flop 310, and the output of the copy start flip-flop 310 turns ON.

シーケンスサイクルのタイミングパルスを発生するシー
ケンスプログラム起動タイマ300の出力に基づいて、
各シーケンスサイクルごとに、診断メモリコピータイミ
ングカウンタ341がカウントアップされる。診断メモ
リコピータイミングカウンタ設定値レジスタ340に
は、シーケンスサイクルを何回実行したときに診断メモ
リ41の内容を診断メモリ格納バッファメモリ42へコ
ピーするかを規定した実行回数が設定記録されている。
そして、比較器342において、診断メモリコピータイ
ミングカウンタ341の内容Aと診断メモリコピータイ
ミングカウンタ設定値レジスタ340の内容Bを比較
し、一致した場合(A=B)、コピー要求サイクル信号
343が出力される。このコピー要求サイクル信号34
3は、診断メモリコピータイミングカウンタ341のリ
セット信号としても用いられる。このコピー要求サイク
ル信号343が出力されたとき、先に述べたコピー開始
フリップフロップ310の出力311がONとなり、シ
ーケンスプログラム起動タイマ300の出力であるシー
ケンスサイクルのタイミングを示す信号301がONと
なると、AND回路344及び345の出力としてコピ
ー信号346がONとなり、診断メモリ41の内容が診
断メモリ格納バッファメモリ42へ書き込まれる。
Based on the output of the sequence program start timer 300 that generates the timing pulse of the sequence cycle,
The diagnostic memory copy timing counter 341 is incremented every sequence cycle. In the diagnostic memory copy timing counter set value register 340, the number of executions that defines how many times a sequence cycle is executed to copy the contents of the diagnostic memory 41 to the diagnostic memory storage buffer memory 42 is set and recorded.
Then, in the comparator 342, the content A of the diagnostic memory copy timing counter 341 and the content B of the diagnostic memory copy timing counter setting value register 340 are compared, and if they match (A = B), the copy request cycle signal 343 is output. It This copy request cycle signal 34
3 is also used as a reset signal for the diagnostic memory copy timing counter 341. When the copy request cycle signal 343 is output, the output 311 of the copy start flip-flop 310 described above is turned on, and the signal 301 indicating the timing of the sequence cycle, which is the output of the sequence program activation timer 300, is turned on. The copy signal 346 is turned on as the output of the AND circuits 344 and 345, and the contents of the diagnostic memory 41 are written in the diagnostic memory storage buffer memory 42.

診断メモリ格納バツフア42はリングカウンタバツフア
形式になつており、次にどのアドレスにコピーすればよ
いかバツフアアドレスカウンタ350で示している、こ
のカウンタは診断メモリ41内容を診断メモリ格納バツ
フア42にコピーするごとにコピー要求信号346によ
り+1ずつカウントアツプしていき診断メモリ格納バツ
フアの最終アドレスになり、バツフアアドレスカウンタ
350の内容がバツフアサイズ設定レジスタ351の内
容と等しくなつたことを比較器352が検出するとバツ
フアアドレスカウンタ350を0クリアする。そして、
常時このバツフアメモリ42の内容は次々と新しいデー
タで上塗りされつつ記録されている。診断記録停止命令
が実行されると診断メモリの内容を診断メモリ格納アド
レスにコピーすることを所定のシーケンスサイクル後に
停止しなければならないことを知るとともに、外部に異
常が起きたことを示らせる動作(例えば異常ランプ点
灯、ブザー鳴動など)を行なう(シーケンスユーザプロ
グラムにより記述する)。
The diagnostic memory storage buffer 42 has a ring counter buffer format, and a buffer address counter 350 indicates which address should be copied next. This counter stores the contents of the diagnostic memory 41 in the diagnostic memory storage buffer 42. Each time copying is performed, the copy request signal 346 counts up by +1 to reach the final address of the diagnostic memory storage buffer, and the comparator 352 confirms that the content of the buffer address counter 350 is equal to the content of the buffer size setting register 351. When it is detected, the buffer address counter 350 is cleared to 0. And
The contents of the buffer memory 42 are constantly overwritten with new data and recorded. When the diagnostic recording stop command is executed, the operation to know that copying of the diagnostic memory contents to the diagnostic memory storage address must be stopped after a predetermined sequence cycle and to indicate that an external error has occurred (For example, abnormal lamp lighting, buzzer sound, etc.) is performed (described by the sequence user program).

診断記録開始スイッチ27をONすることにより、PI
/Oイメージメモリ15の該当ビット26がONにな
る。このビット26に基づく信号が、コピー停止フリッ
プフロップ320のリセット信号として入り、コピー停
止フリップフロップ320の出力がOFFとなる。すな
わち、正常時には、フリップフロップ320の出力がO
FFとなる。
By turning on the diagnostic recording start switch 27, PI
The corresponding bit 26 of the / O image memory 15 is turned ON. A signal based on this bit 26 is input as a reset signal for the copy stop flip-flop 320, and the output of the copy stop flip-flop 320 is turned off. That is, in a normal state, the output of the flip-flop 320 is O.
It becomes FF.

一方、トラブルが発生した時、トラブル発生の有無を示
すPI/Oイメージメモリ15内のビット25に基づく
信号がONとなり、コピー停止フリップフロップ320
のセット信号として入り、コピー停止フリップフロップ
320の出力321がONとなる。すなわち、異常時に
はコピー停止フリップフロップ320の出力321がO
Nとなる。
On the other hand, when a trouble occurs, the signal based on the bit 25 in the PI / O image memory 15 indicating whether the trouble has occurred is turned on, and the copy stop flip-flop 320
, And the output 321 of the copy stop flip-flop 320 is turned on. That is, when an abnormality occurs, the output 321 of the copy stop flip-flop 320 becomes O.
N.

コピー回数カウンタ335には、シーケンスサイクルの
整数倍であるコピータイミングを示す信号が入力され、
異常発生時に、診断記録停止命令(コピー停止フリップ
フロップ320の出力321がONとなった状態)後、
何コピータイミング数だけ経過したかが、カウントされ
記憶される。レジスタ334には、異常発生時に、診断
記録停止命令後、何シーケンスサイクル経過した後に、
診断メモリ41から診断メモリ格納バッファ42へのコ
ピーを停止するかの規定回数が設定されている。異常発
生後のコピー回数カウンタ335との値が一致したこと
を比較器336が検収すると診断メモリ41のコピーを
停止するための信号337が出て、コピー開始フリツプ
フロツプ310をリセツトし、コピー動作を停止させ
る。この時、規定回数として0回を設定すると異常発生
時に直ちにコピーをとるため第6図(1)に示るごとく異
常発生直前の動きを示したデータ421をとることがで
きる。また、0<規定回線n<診断メモリ格納バツフア
容量とすれば第6図(2)に示すごとく、異常発生前42
1、後422のデータが分るし、さらに規定回数をバツ
フア容量とすれば第6図(3)に示すごとく、異常発生後
の動きについてのデータ422がわかる。
A signal indicating the copy timing, which is an integral multiple of the sequence cycle, is input to the copy number counter 335,
At the time of occurrence of an abnormality, after a diagnostic recording stop command (a state in which the output 321 of the copy stop flip-flop 320 is turned on),
The number of copy timings elapsed is counted and stored. When an abnormality occurs, the register 334 stores the number of sequence cycles after the diagnostic recording stop instruction,
A specified number of times whether to stop copying from the diagnostic memory 41 to the diagnostic memory storage buffer 42 is set. When the comparator 336 confirms that the value of the copy number counter 335 after occurrence of an abnormality matches, a signal 337 for stopping the copy of the diagnostic memory 41 is output, the copy start flip-flop 310 is reset, and the copy operation is stopped. Let At this time, if 0 is set as the prescribed number of times, a copy is immediately made when an abnormality occurs, so that data 421 showing the movement immediately before the abnormality occurrence can be obtained as shown in FIG. 6 (1). If 0 <specified line n <diagnostic memory storage buffer capacity, as shown in FIG.
The data of 1 and the data of the rear 422 are known, and if the specified number of times is the buffer capacity, the data 422 on the movement after the occurrence of the abnormality can be found as shown in FIG. 6 (3).

設備としての異常現象から出現後第7図に示すように、
プログラミング装置7とCRTなどの表示装置8をこの
PCsに通信ポート6を介して接続し、プログラミング
装置7のロジツクアナライザ機能用プログラムに起動を
かけると、プログラミング装置7は、診断メモリ41の
時間経過を示す診断メモリ格納バツフア15の情報と、
最終トレースアドレス+1番地を示すアドレスカウンタ
350を読み取り、表示装置8に時間経過を横軸とし
て、例えば第8図の様にON,OFF状態を表示する。
診断メモリ41の情報が表示装置8の一画面に表示しき
れない場合には、上下左右のスクロールなどを行い、見
やすくすることもできる。
After appearing from the abnormal phenomenon as equipment, as shown in Fig. 7,
When the programming device 7 and the display device 8 such as a CRT are connected to the PCs via the communication port 6 and the program for the logic analyzer function of the programming device 7 is activated, the programming device 7 causes the elapsed time of the diagnostic memory 41 to pass. Information of the diagnostic memory storage buffer 15 indicating
The address counter 350 indicating the final trace address + 1 is read, and the ON / OFF state is displayed on the display device 8 with the lapse of time as the horizontal axis, for example, as shown in FIG.
If the information in the diagnostic memory 41 cannot be displayed on one screen of the display device 8, it is possible to scroll up, down, left, and right to make it easier to see.

本実施例によれば、各所に分散する情報を高速に整列
し、この整列した情報を診断メモリ格納バツフア42に
格納し、表示装置8にタイムチヤート式に表示すること
により、異常状態記録装置を設備側に新たに設けること
なく、PCs1のみで異常現象解析し対策することがで
きる。
According to the present embodiment, the information distributed in various places is sorted at high speed, the sorted information is stored in the diagnostic memory storage buffer 42, and is displayed on the display device 8 in a time chart manner. It is possible to analyze and take countermeasures against abnormal phenomena using only the PCs 1 without newly providing on the equipment side.

第1図の実施例では診断メモリ格納バツフア42に格納
するタイミングをシーケンスプログラム起動タイマ30
0の設定に依つたが、外部接点などのPCs1外の要因
によるものや、PCs1内の内部リレーのON,OFF
を起動とすることもでき、トレース情報の最適化を図る
こともできる。
In the embodiment shown in FIG. 1, the timing for storing in the diagnostic memory storage buffer 42 is set to the sequence program start timer 30.
It depends on the setting of 0, but it is caused by factors outside PCs1 such as external contacts, and ON / OFF of internal relays inside PCs1.
Can be started, and the trace information can be optimized.

又、第1図に示す診断メモリ格納バツフア42を第9図
に示す様にシフトレジスタにて構成すると、アドレスカ
ウンタ350が不要となり、プログラミング装置7が、
トレース終了後、診断メモリ格納バツフア42を参照す
ると、必ず左端が最新情報で右端が古い情報となつてい
るので、そのまま表示装置8にタイムチヤートとして表
示できるという効果もある。
Further, if the diagnostic memory storage buffer 42 shown in FIG. 1 is configured by a shift register as shown in FIG. 9, the address counter 350 becomes unnecessary and the programming device 7 is
When the diagnostic memory storage buffer 42 is referred to after the end of tracing, the latest information is always on the left end and the old information is on the right end. Therefore, it is possible to display the same on the display device 8 as a time chart.

本実施例によれば、診断記録開始ボタン27によって、
診断記録開始を設定できるので、無差別に記憶するので
はなく、意図的に記憶でき、メモリの節約が可能であ
る。
According to this embodiment, the diagnostic recording start button 27
Since the start of diagnostic recording can be set, it can be stored intentionally instead of indiscriminately, and memory can be saved.

また、診断メモリ41から診断メモリ格納バッファ42
へのコピーの開始/停止を、任意の時点で制御でき、詳
細な異常診断が可能となる。
In addition, from the diagnostic memory 41 to the diagnostic memory storage buffer 42
It is possible to control the start / stop of copying to the disk at any time, and it is possible to perform detailed abnormality diagnosis.

さらに、診断メモリ41から診断メモリ格納バッファ4
2へのコピー間隔を、シーケンスサイクルの整数倍にし
ているので、無駄無くシーケンスサイクルに対応した適
切なコピーが可能である。
Furthermore, from the diagnostic memory 41 to the diagnostic memory storage buffer 4
Since the copy interval to 2 is set to an integral multiple of the sequence cycle, it is possible to perform appropriate copy corresponding to the sequence cycle without waste.

〔発明の効果〕〔The invention's effect〕

本発明によれば、異常診断時において、異常発生前後に
おいて、任意に設定されたシーケンスサイクル期間内
で、無駄無く制御状態を把握でき、プログラマブルコン
トローラ内のメモリを節約が出来、かつユーザの目的に
対応して、シーケンサの異常状態の効率的な情報収集が
可能である。
According to the present invention, at the time of abnormality diagnosis, before and after the occurrence of an abnormality, the control state can be grasped without waste within an arbitrarily set sequence cycle period, the memory in the programmable controller can be saved, and the purpose of the user can be improved. Correspondingly, it is possible to efficiently collect information on the abnormal state of the sequencer.

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

第1図は本発明による実施回路例を示す図、第2図は一
般的なプログラマブルコントローラの構成図、第3図は
タンクがあるシーケンス制御対象システム例を示す図、
第4図はリレーラダープログラム例を示す図、第5図は
PI/OイメージメモリのランダムなON/OFF情報
を高速に整列させる状態を示す図、第6図は異常発生時
に診断メモリ格納バツフアに診断メモリデータが収納さ
れる状態を示す図、第7図はプログラマブルコントロー
ラにプログラミング装置と表示装置を接続した図、第8
図は診断メモリ記録内容の表示例を示す図、第9図は本
発明の変形実施例を示す図である。 1……PCs、2……現場設備、15……PI/Oイメ
ージメモリ、41……診断メモリ、42……診断メモリ
格納バツフア、300……シーケンスプログラム起動周
期タイマ、310……コピー開始フリツプフロツプ、3
34……診断メモリコピー停止サイクル設定レジスタ、
335……異常発生後コピー回数カウンタ、336……
比較器、340……診断メモリコピータイミングカウン
タ設定レジスタ、341……診断メモリコピータイミン
グカウンタ、342……比較器、350……診断メモリ
格納バツフアアドレスカウンタ、351……バツフアサ
イズ設定レジスタ、352……比較器。
FIG. 1 is a diagram showing an example of an implementation circuit according to the present invention, FIG. 2 is a configuration diagram of a general programmable controller, FIG. 3 is a diagram showing an example of a sequence control target system having a tank,
FIG. 4 is a diagram showing an example of a relay ladder program, FIG. 5 is a diagram showing a state in which random ON / OFF information of the PI / O image memory is aligned at high speed, and FIG. 6 is a buffer for storing diagnostic memory when an abnormality occurs. FIG. 7 is a diagram showing a state in which diagnostic memory data is stored, FIG. 7 is a diagram in which a programming device and a display device are connected to a programmable controller, and FIG.
FIG. 9 is a diagram showing a display example of the contents recorded in the diagnostic memory, and FIG. 9 is a diagram showing a modified embodiment of the present invention. 1 ... PCs, 2 ... Field equipment, 15 ... PI / O image memory, 41 ... Diagnostic memory, 42 ... Diagnostic memory storage buffer, 300 ... Sequence program start cycle timer, 310 ... Copy start flip-flop, Three
34 ... Diagnostic memory copy stop cycle setting register,
335 ... Copy number counter after abnormal occurrence, 336 ...
Comparator, 340 ... Diagnostic memory copy timing counter setting register, 341 ... Diagnostic memory copy timing counter, 342 ... Comparator, 350 ... Diagnostic memory storing buffer address counter, 351 ... Buffer size setting register, 352 ... Comparator.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 荒岡 学 茨城県日立市大みか町5丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 荻野 康一 神奈川県横浜市神奈川区宝町2番地 日産 自動車株式会社内 (72)発明者 小野寺 勝幸 神奈川県横浜市神奈川区宝町2番地 日産 自動車株式会社内 (56)参考文献 特開 昭56−63612(JP,A) 実願昭54−95785号(実開昭56−16202 号)の願書に添付した明細書及び図面の内 容を撮影したマイクロフィルム(昭和56年 2月12日特許庁発行) ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Manabu Araoka 5-2-1 Omika-cho, Hitachi City, Ibaraki Hitachi Ltd. Omika Plant, Ltd. (72) Inventor Koichi Ogino 2 Takara-cho, Kanagawa-ku, Yokohama, Kanagawa Address Nissan Motor Co., Ltd. (72) Inventor Katsuyuki Onodera 2 Takara-cho, Kanagawa-ku, Yokohama, Kanagawa Nissan Motor Co., Ltd. (56) Reference JP 56-63612 (JP, A) Japanese Patent Application No. 54-95785 (Actual No. Sho 56-16202) Micro film filming the contents of the specification and drawings attached to the application (Published by the Japan Patent Office on February 12, 1981)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】リレーラダープログラムを周期的に演算制
御するシーケンサの異常診断装置において、 入力プロセス入出力装置の状態を記憶する第1のメモリ
と、 上記第1のメモリ上に不規則に分散した情報を整列して
記憶する第2のメモリと、 上記第2のメモリから、所定のタイミングで書き込まれ
た情報を記憶する第3のメモリと、 上記第2のメモリから上記第3のメモリへの書き込み及
び書き込み停止のタイミングを制御する制御回路と 上記シーケンサと脱着可能に通信回線で接続され、かつ
上記第3のメモリに記憶した情報に基づいて表示を行な
う表示装置とを具備し、 上記制御回路は、上記第2のメモリから上記第3のメモ
リへの書き込み開始を指示するスイッチと、該書き込み
間隔をシーケンスサイクルの整数倍の間隔で可変に設定
する書き込み間隔設定回路と、上記第2のメモリから上
記第3のメモリへの書き込み停止のタイミングを可変に
設定できる書き込み停止時期設定回路と、上記第3のメ
モリの書き込みアドレスを制御するアドレス制御回路と
を有することを特徴とするシーケンサの異常診断装置。
1. An abnormality diagnosing device for a sequencer for periodically controlling a relay ladder program, comprising: a first memory for storing a state of an input process input / output device; and an irregular distribution on the first memory. A second memory for aligning and storing information, a third memory for storing information written at a predetermined timing from the second memory, and a second memory for storing the third memory. The control circuit includes a control circuit for controlling the timing of writing and the stop of writing, and a display device which is detachably connected to the sequencer by a communication line and displays based on the information stored in the third memory. Is a switch for instructing to start writing from the second memory to the third memory, and the writing interval is variable at an interval which is an integral multiple of a sequence cycle. A write interval setting circuit for setting, a write stop time setting circuit for variably setting a write stop timing from the second memory to the third memory, and an address control for controlling a write address of the third memory An abnormality diagnosis device for a sequencer having a circuit.
JP60171083A 1985-08-05 1985-08-05 Abnormality diagnosis device for sequencer Expired - Lifetime JPH0621961B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60171083A JPH0621961B2 (en) 1985-08-05 1985-08-05 Abnormality diagnosis device for sequencer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60171083A JPH0621961B2 (en) 1985-08-05 1985-08-05 Abnormality diagnosis device for sequencer

Publications (2)

Publication Number Publication Date
JPS6232510A JPS6232510A (en) 1987-02-12
JPH0621961B2 true JPH0621961B2 (en) 1994-03-23

Family

ID=15916688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60171083A Expired - Lifetime JPH0621961B2 (en) 1985-08-05 1985-08-05 Abnormality diagnosis device for sequencer

Country Status (1)

Country Link
JP (1) JPH0621961B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01236310A (en) * 1988-03-17 1989-09-21 Nissan Motor Co Ltd Trouble diagnosis device in sequence controller
JPH01238499A (en) * 1988-03-17 1989-09-22 Toshiba Corp Excitation controller
JPH0415708A (en) * 1990-05-02 1992-01-21 Hitachi Seiki Co Ltd Programmable controller with logic analyzing function
JPH0415707A (en) * 1990-05-02 1992-01-21 Hitachi Seiki Co Ltd Programmable controller with logic analyzing function
JP4578476B2 (en) * 2004-06-30 2010-11-10 ソフトバンクモバイル株式会社 Cooperation operation method and mobile communication terminal device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5616202U (en) * 1979-07-13 1981-02-12
JPS5663612A (en) * 1979-10-30 1981-05-30 Toshiba Corp Controller with process fault diagnostic function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
実願昭54−95785号(実開昭56−16202号)の願書に添付した明細書及び図面の内容を撮影したマイクロフィルム(昭和56年2月12日特許庁発行)

Also Published As

Publication number Publication date
JPS6232510A (en) 1987-02-12

Similar Documents

Publication Publication Date Title
KR860000114B1 (en) Logic tracing apparatus
KR950009435A (en) Method and device for controlling operation of programmed device
JP3257027B2 (en) Information recording / reproducing device having self-diagnosis information recording mechanism
EP0120186B1 (en) Apparatus for automatic instruction parity error recovery
JPH03118643A (en) Data fetching method
JPH05157667A (en) Fault memory device in controller of automobile
JPH0621961B2 (en) Abnormality diagnosis device for sequencer
JPH0236003B2 (en)
JPS5840772B2 (en) Data comparison match display method
JP2682707B2 (en) Programmable controller
JPS5944694B2 (en) Magnetic tape control method
JP3039631B2 (en) Signal line monitoring device
JPH06103119A (en) Trace information holding controller
JPH0282334A (en) Bus cycle trace circuit
JPS63147243A (en) Method for monitoring trace information for multi-processor system
JPS6227422B2 (en)
JPS6017544A (en) Pseudo fault generation system
JPH0375939A (en) Information processing system
JPS62208138A (en) Program counter information storage circuit
JPS63150744A (en) History analyzer for logic device
JPS63193260A (en) Host processor monitoring system for loosely coupled multiprocessor system
JPS61190636A (en) Information processor with trace function
JPH03187091A (en) Magnetic recording and reproducing device
JPS63244240A (en) Information processor
JPH051481B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term