JPH05298512A - Operating condition monitoring device - Google Patents

Operating condition monitoring device

Info

Publication number
JPH05298512A
JPH05298512A JP4104396A JP10439692A JPH05298512A JP H05298512 A JPH05298512 A JP H05298512A JP 4104396 A JP4104396 A JP 4104396A JP 10439692 A JP10439692 A JP 10439692A JP H05298512 A JPH05298512 A JP H05298512A
Authority
JP
Japan
Prior art keywords
power failure
data
operating condition
equipment
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4104396A
Other languages
Japanese (ja)
Inventor
Satoru Matsushita
悟 松下
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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP4104396A priority Critical patent/JPH05298512A/en
Publication of JPH05298512A publication Critical patent/JPH05298512A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform a monitoring operation even when power failure occurs in facilities. CONSTITUTION:An operation monitoring motor 1 is to monitor the operating condition of the facilities that is a target of monitoring, and is equipped with a power failure detecting means, a data input circuit 21, a ring buffer 22, and a control part 23. The power failure detecting means is to detect whether or not the power failure occurs in a power source supplied to the facilities. The data input circuit 21 is to collect the operating condition sequentially as operating condition data. The ring buffer 22 invalidates a part of operating condition data in the neighborhood of a detecting timing when the power failure detecting means detects the power failure. The control part 23 outputs the operating condition data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、稼動状態監視装置、特
に、監視対象の設備の稼動状態を監視する稼動状態監視
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an operating condition monitoring device, and more particularly to an operating condition monitoring device for monitoring the operating condition of equipment to be monitored.

【0002】[0002]

【従来の技術】ファクトリーオートメーションを採用し
た工場では、生産性を向上するために、製品や設備の不
具合による設備の停止状況を的確に把握し、設備停止の
要因を突き止めて改善していくことが必要である。これ
らの停止状況の把握や停止要因の追求を行うために、稼
動状態監視装置としての稼動管理モニタが用いられてい
る。この稼動管理モニタでは、設備からの種々の信号を
記録し、設備の稼動状態や不良品の発生状態を監視して
いる。この種のモニタには、設備から電源が供給される
ものと、設備とは別に電源が供給されるものとがある。
2. Description of the Related Art In a factory that employs factory automation, in order to improve productivity, it is necessary to accurately grasp the status of equipment stoppages due to product or equipment malfunctions, identify the causes of equipment stoppages, and make improvements. is necessary. An operation management monitor as an operating condition monitoring device is used in order to grasp the stop situation and to pursue the stop cause. This operation management monitor records various signals from the equipment and monitors the operating status of the equipment and the occurrence status of defective products. Some types of monitors are supplied with power from equipment, and some are supplied with power separately from equipment.

【0003】この種の稼動管理モニタでは、設備が停電
したときの処理が重要となる。従来、設備が停電した場
合には、停電直後の電圧降下をトリガー信号として、そ
のときのデータを収集して記憶しておき、電源が復旧し
た後に、それを読み出して現在の状態と整合性を持つデ
ータを作成する等の処理を行っている。
In this type of operation management monitor, it is important to process the equipment when a power failure occurs. Conventionally, when the equipment has a power failure, the voltage drop immediately after the power failure is used as a trigger signal to collect and store the data at that time, and after the power is restored, it is read to check the consistency with the current state. Processes such as creating possessed data are performed.

【0004】[0004]

【発明が解決しようとする課題】設備から電源が供給さ
れる前記従来の構成では、設備と稼動管理モニタとで停
電するタイミングがずれた場合に前記処理が困難であ
る。また、停電時の電圧が、単純に降下せずにチャタリ
ングを起こし波状に降下することが多いので、一定のし
きい値で停電を判別することが難しく、停電時の前記処
理が困難である。
In the above-mentioned conventional configuration in which power is supplied from the equipment, the above processing is difficult when the timing of power failure is different between the equipment and the operation management monitor. In addition, since the voltage at the time of a power failure often causes chattering without a simple drop and drops in a wave shape, it is difficult to determine a power failure at a certain threshold value, and the above-described processing at the time of a power failure is difficult.

【0005】また、設備と稼動管理モニタとが別電源の
場合には、設備の停電時にも稼動管理モニタは停電する
ことなく動いているが、設備の停電時にランダムなデー
タが稼動管理モニタに入力されるので、そのデータが停
電に起因するものなのか真のデータなのかが判断でき
ず、前記処理を行った場合のデータの信憑性が確保され
ない。
Further, when the equipment and the operation management monitor are separate power sources, the operation management monitor operates without power failure even when the equipment has a power failure, but random data is input to the operation management monitor when the equipment has a power failure. Therefore, it is not possible to determine whether the data is due to a power failure or true data, and the credibility of the data when the above processing is performed cannot be ensured.

【0006】本発明の目的は、設備が停電しても正常に
監視動作を行えるようにすることにある。
An object of the present invention is to enable a normal monitoring operation even if the equipment has a power failure.

【0007】[0007]

【課題を解決するための手段】本発明に係る稼動状態監
視装置は、監視対象の設備の稼動状態を監視するもので
あって、停電検出手段とデータ収集手段と出力手段とを
備えている。停電検出手段は、設備の電源部の電圧を直
接検出することにより、設備が停電しているか否かを検
出するためのものである。データ収集手段は、稼動状態
を稼動状態データとして順次収集するためのものであ
る。出力手段は、停電検出手段の検出結果に応じて稼動
状態データを出力するものである。また、停電検出手段
が停電を検出したとき、その検出タイミング近傍の稼動
状態データの一部を無効にする無効化手段を設けること
もできる。
An operating condition monitoring apparatus according to the present invention monitors the operating condition of equipment to be monitored, and comprises a power failure detecting means, a data collecting means, and an outputting means. The power failure detection means is for directly detecting the voltage of the power supply section of the equipment to detect whether or not the equipment has a power failure. The data collecting means is for sequentially collecting operating states as operating state data. The output means outputs the operating state data according to the detection result of the power failure detection means. Further, when the power failure detecting means detects a power failure, it is also possible to provide an invalidating means for invalidating a part of the operating state data near the detection timing.

【0008】[0008]

【作用】本発明に係る稼動状態監視装置では、停電検出
手段により設備の電源部の電圧を直接検出して停電が検
出されると、データ収集手段により順次収集された稼動
状態データが検出結果に応じて出力される。ここでは正
確に停電を検出できるので、停電の際に起こる過渡現象
による誤ったデータを容易に判別でき、装置の構造や内
部処理を簡単にすることができる。
In the operating condition monitoring apparatus according to the present invention, when the power failure detecting means directly detects the voltage of the power supply section of the equipment to detect a power failure, the operating condition data sequentially collected by the data collecting means becomes the detection result. Is output accordingly. Since the power failure can be accurately detected here, erroneous data due to a transient phenomenon occurring at the time of the power failure can be easily discriminated, and the structure and internal processing of the device can be simplified.

【0009】また無効化手段を設けた場合には、停電検
出時に稼動状態データのうち、停電検出タイミング近傍
のデータの一部が無効化手段により無効にされる。そし
て、有効なデータだけが出力手段により出力される。こ
こでは、停電時の稼動状態データの一部が無効にされる
ので、停電した場合においても、正常なデータのみが出
力されることになる。このため、停電時においてもデー
タの信憑性が高くなり、正常に監視動作を行える。
Further, when the invalidating means is provided, a part of the data in the operation state data in the vicinity of the power outage detection timing is invalidated by the invalidating means when the power outage is detected. Then, only valid data is output by the output means. Here, since some of the operating state data at the time of power failure is invalidated, only normal data will be output even when a power failure occurs. Therefore, the reliability of the data is enhanced even during a power failure, and the monitoring operation can be performed normally.

【0010】[0010]

【実施例】図1は、本発明の一実施例を採用した稼動状
態監視システムを示している。図において、稼動状態監
視装置である稼動管理モニタ(以下、モニタと記す)1
は、監視対象の設備である加工機2に取り付けられてい
る。モニタ1は前面に、稼動率/サイクルタイム表示部
3と、時刻/停止経過時間表示部4と、停止要因番号等
を表示するための状態表示部5とが設けられている。ま
た時刻/停止経過時間表示部4の下方には、表示切り換
えや、停止時間の参照等を行うための入力キー群6が設
けられている。入力キー群6の下方には、メモリカード
8を挿入するためのメモリカード挿入口7が配置されて
いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT FIG. 1 shows an operating condition monitoring system adopting an embodiment of the present invention. In the figure, an operation management monitor (hereinafter referred to as a monitor), which is an operation state monitoring device 1
Are attached to the processing machine 2, which is the equipment to be monitored. The monitor 1 is provided on the front with an operating rate / cycle time display section 3, a time / stop elapsed time display section 4, and a status display section 5 for displaying a stop cause number and the like. Further, below the time / stop elapsed time display portion 4, there is provided an input key group 6 for switching the display and referring to the stop time. Below the input key group 6, a memory card insertion slot 7 for inserting the memory card 8 is arranged.

【0011】メモリカード8には、設備の停止時間、停
止回数、生産数等の収集データが自動的に記録される。
記録されたデータは、カードリーダライター9を介し
て、パーソナルコンピュータ(以下、パソコンと記す)
10に取り込み可能となっている。パソコン10では、
アプリケーションソフトにより、メモリカード8に記録
したデータを自動的に集計し、プリンタ11から稼動日
報やパレート図等の稼動データ分析資料をプリントアウ
ト可能となっている。
The memory card 8 automatically records the collected data such as the stop time of the equipment, the number of stop times, and the number of productions.
The recorded data is sent to the personal computer (hereinafter referred to as a personal computer) via the card reader / writer 9.
It is possible to take in 10. On the personal computer 10,
With the application software, the data recorded in the memory card 8 can be automatically totaled, and the operating data analysis material such as the daily operating report and the Pareto chart can be printed out from the printer 11.

【0012】図2は、稼動状態監視システムのブロック
構成を示している。モニタ1には、電源12から直接、
DC24Vの電圧が供給されている。また電源12か
ら、ブレーカー13及び制御スイッチ14を介して、加
工機2にDC24Vの電圧が供給されている。さらに、
ブレーカー13及びメインスイッチ15を介して、シー
ケンサ16にDC24Vの電圧が供給されている。
FIG. 2 shows a block configuration of the operating condition monitoring system. Directly from the power supply 12 to the monitor 1,
The voltage of DC24V is supplied. In addition, a DC 24V voltage is supplied from the power source 12 to the processing machine 2 via the breaker 13 and the control switch 14. further,
A voltage of 24 VDC is supplied to the sequencer 16 via the breaker 13 and the main switch 15.

【0013】シーケンサ16は加工機2に接続されてお
り、加工機2をシーケンス制御する。制御スイッチ14
にはシーケンサ16から制御信号が出力される。またメ
インスイッチ15にはスイッチパネル17からON/O
FF信号が出力される。シーケンサ16にはスイッチパ
ネル17及び表示パネル18が接続されており、シーケ
ンサ16に対してスイッチパネル17から各種のスイッ
チ信号が出力されるとともに、表示パネル18に対して
シーケンサ16から各種の表示信号が出力される。シー
ケンサ16からモニタ1には、後述する各種の信号DA
〜DGが出力される。また、シーケンサ16に供給され
る電源が停電しているか否かを検出するための停電監視
入力信号DHがモニタ1に出力される。
The sequencer 16 is connected to the processing machine 2 and controls the processing machine 2 in sequence. Control switch 14
A control signal is output from the sequencer 16 to. The main switch 15 is turned on / off from the switch panel 17.
The FF signal is output. A switch panel 17 and a display panel 18 are connected to the sequencer 16, and various switch signals are output from the switch panel 17 to the sequencer 16 and various display signals are output from the sequencer 16 to the display panel 18. Is output. From the sequencer 16 to the monitor 1, various signals DA to be described later are provided.
~ DG is output. Further, a power failure monitoring input signal DH for detecting whether or not the power supplied to the sequencer 16 has a power failure is output to the monitor 1.

【0014】モニタ1は、図3に示すように、シーケン
サ16から収集した入力信号DA〜DH(データ)を3
m秒毎に順次収集するデータ入力回路21と、データ入
力回路21で収集したデータを一時的に格納するリング
バッファ22と、リングバッファ22からデータを取り
込み、それを演算部25及びデータ記憶回路24に入出
力する制御部23とを備えている。
As shown in FIG. 3, the monitor 1 inputs the input signals DA to DH (data) collected from the sequencer 16 into 3 signals.
The data input circuit 21 that sequentially collects data every m seconds, the ring buffer 22 that temporarily stores the data collected by the data input circuit 21, and the data that is fetched from the ring buffer 22 and that is stored in the arithmetic unit 25 and the data storage circuit 24 And a control unit 23 that inputs and outputs.

【0015】ここで、信号DAはデータ収集入力信号で
あり、この入力信号がONしている期間の収集データが
メモリカード8に記録されることになる。なお、1枚の
メモリカード8には、ONしている1回の期間のデータ
しか記録できないため、停電によりデータ収集信号DA
が一旦OFFすると、同じメモリカード8には以降のデ
ータを記録できないまた、信号DBは基準稼動入力信号
であり、信号DCは稼動/停止入力信号であり、信号D
Dは停止要因入力信号であり、信号DEは生産パルス入
力信号であり、信号DFは不良品を検出すると1回ON
する信号であり、信号DGは不良の発生理由を示すコー
ド信号である。さらに、信号DHは、対象設備が停電し
ているか否かを監視する入力信号である。これがONし
ているときは対象設備は停電していない。
Here, the signal DA is a data collection input signal, and the collection data during the period when this input signal is ON are recorded in the memory card 8. It should be noted that since one memory card 8 can only record data for one period during which it is turned on, the data collection signal DA
Once turned off, subsequent data cannot be recorded in the same memory card 8. Further, the signal DB is the reference operation input signal, the signal DC is the operation / stop input signal, and the signal D
D is a stop factor input signal, signal DE is a production pulse input signal, and signal DF is turned on once when a defective product is detected.
The signal DG is a code signal indicating the reason for occurrence of a defect. Further, the signal DH is an input signal for monitoring whether or not the target equipment has a power failure. When this is ON, the target equipment has not lost power.

【0016】前記データ入力回路21では、停電監視入
力信号DHを含む全ての入力信号について連続3回の入
力データが同じ場合に限り入力されたデータを収集する
ようになっている。これは、ノイズ等による誤った信号
を収集しないようにするためである。前記リングバッフ
ァ22は、図4に示すように、101バイトの格納領域
を有しており、1バイトには信号DA〜DGを記録でき
る。ただし、信号DHは図2に示すようにリングバッフ
ァ22を介さず直接制御部23に入力される。リングバ
ッファ22の先頭アドレスAs をたとえば「1」とする
と、終点アドレスAeは「102」となる。このリング
バッファ22では、終点アドレスAe までデータが読み
書きされると、次に再び先頭アドレスから順にリング状
にデータの読み書きがなされる。リングバッファ22の
容量を101バイトとしたのは、停電発生時と停電復旧
時とに、停電以前及び停電復旧以後に収集した100回
分の信頼性のないデータを読み捨てるためである。デー
タを3m秒毎に収集した場合、リングバッファ22には
300m秒のデータを格納できる(詳細後述)。通常は
リングバッファ22に格納されてから300m秒経った
データを有効データとして処理する。停電により信号D
HがOFFした場合には、処理を中断することで、停電
直前の300m秒分のデータを無効にすることができ
る。
The data input circuit 21 collects the input data only when all the input signals including the power failure monitoring input signal DH have the same input data three consecutive times. This is to prevent erroneous signals due to noise or the like from being collected. As shown in FIG. 4, the ring buffer 22 has a storage area of 101 bytes and can record signals DA to DG in 1 byte. However, the signal DH is directly input to the control unit 23 without passing through the ring buffer 22 as shown in FIG. When the start address A s of the ring buffer 22 for example, "1", the destination address A e is "102". In this ring buffer 22, when the data is read / written up to the end point address A e , the data is next read / written in a ring shape from the top address again. The capacity of the ring buffer 22 is set to 101 bytes in order to read and discard 100 unreliable data collected before and after the power failure when the power failure occurs and when the power failure is restored. When data is collected every 3 msec, 300 msec of data can be stored in the ring buffer 22 (details will be described later). Normally, data stored 300 m seconds after being stored in the ring buffer 22 is processed as valid data. Signal D due to power failure
When H is turned off, the data for 300 msec immediately before the power failure can be invalidated by interrupting the process.

【0017】次に信号DHがONした場合には、リング
バッファ22の1周分のデータを読みとばすことによ
り、停電復旧後の300m秒に収集したデータを無効に
することができる。ここで停電監視入力信号DHがノイ
ズ等によりOFF状態となっても、前述したように信号
DHを含むすべての入力信号DA〜DHについて、連続
3回の入力データが同じ場合に限り入力されたデータを
収集しているため、停電を誤認することなく停電または
信号DAのOFFまでのデータをメモリカード8に確実
に記録できる。
Next, when the signal DH is turned on, the data for one round of the ring buffer 22 is skipped to invalidate the data collected in 300 ms after the restoration of the power failure. Here, even if the power failure monitoring input signal DH is turned off due to noise or the like, as described above, for all the input signals DA to DH including the signal DH, the data input only when the input data for three consecutive times is the same. Since the data is collected, the data until the power failure or the signal DA is turned off can be surely recorded in the memory card 8 without erroneously recognizing the power failure.

【0018】制御部23に転送された各種データは、デ
ータ記憶回路24に記憶されるとともに、演算部25に
与えられる。演算部25には、内部時計26からの時間
データも与えられている。演算部25では、入力された
データと時間データとを結びつけ、監視開始、各停止入
力、監視終了等の稼動/非稼動データに年,月,日,
時,分,秒の時間データを付与することができる。演算
部25の演算結果は、表示部3,4,5に与えられ、表
示される。また、演算部25の演算結果は、メモリカー
ドインターフェイス27を介してメモリカード8に記録
される。
The various data transferred to the control unit 23 are stored in the data storage circuit 24 and also given to the arithmetic unit 25. The arithmetic unit 25 is also provided with time data from the internal clock 26. In the calculation unit 25, the input data and the time data are connected to each other, and the year, month, day,
Time data of hours, minutes, and seconds can be added. The calculation result of the calculation unit 25 is given and displayed on the display units 3, 4, and 5. Further, the calculation result of the calculation unit 25 is recorded in the memory card 8 via the memory card interface 27.

【0019】一方、制御部23には入力キー6からの入
力信号が与えられ、それに応じて、表示部3,4,5へ
の表示を切り換える等の各種の入力キー処理が行われ
る。次に、制御部23の制御動作について図5〜図6の
フローチャートを基に説明する。まずステップS1で
は、リングバッファ22の読み出しアドレスを示す読み
出しポインターPr と、書き込みアドレスを示す書き込
みポインターPw とをともに先頭アドレスAs (=1)
にセットするとともに、後述する停電フラグFlを
「0」にリセットする等の初期設定が行われる。
On the other hand, an input signal from the input key 6 is given to the control section 23, and various input key processings such as switching the display on the display sections 3, 4 and 5 are performed according to the input signal. Next, the control operation of the control unit 23 will be described based on the flowcharts of FIGS. First, in step S1, the read pointer P r indicating the read address of the ring buffer 22 and the write pointer P w indicating the write address are both set to the head address A s (= 1).
And a power failure flag Fl described later is reset to "0".

【0020】ステップS2では、入力キー群6の操作が
なされたか否かを判断する。入力キー群6が操作された
と判断するとステップS3に移行し、操作された入力キ
ー群6に応じた入力キー処理を行う。キー入力がなされ
なかった場合にはステップS4に移行する。ステップS
4では、通常動作としてのその他の処理を実行する。こ
のメイン処理中おいて、3m秒タイマ割り込みが入った
場合には、図6に示す割り込み処理ルーチンに移行す
る。
In step S2, it is determined whether or not the input key group 6 has been operated. If it is determined that the input key group 6 has been operated, the process proceeds to step S3, and the input key processing corresponding to the operated input key group 6 is performed. If no key is input, the process proceeds to step S4. Step S
At 4, other processing as a normal operation is executed. If a 3-msec timer interrupt is input during this main processing, the routine proceeds to the interrupt processing routine shown in FIG.

【0021】図6のステップS5では、データ入力回路
21に入力されたデータのうち停電監視入力信号DHを
除く入力信号DA〜DGを、書き込みポインターPw
示す位置に書き込む。最初は、書き込みポインターPw
は「1」に初期設定されているので、先頭アドレスAs
に入力データが書き込まれる。ステップS6では、書き
込みポインターPw をインクリメントする。ステップS
7では、インクリメントされた書き込みポインターPw
が終点アドレスAe (=102)に等しいか否かを判断
する。リングバッファ22の最後にデータを書き込むま
では、ここでの判断がNOとなり、ステップS8に移行
する。
In step S5 of FIG. 6, of the data input to the data input circuit 21, the input signals DA to DG excluding the power failure monitoring input signal DH are written to the position indicated by the write pointer P w . First, the write pointer P w
Because is initially set to "1", the start address A s
Input data is written in. In step S6, the write pointer P w is incremented. Step S
In 7, the write pointer P w incremented
Is equal to the end point address A e (= 102). Until the data is written at the end of the ring buffer 22, the determination here is NO, and the process proceeds to step S8.

【0022】ステップS8では、停電監視入力信号DH
のON,OFFにより、停電状態となったか否かを判断
する。停電状態となっていない場合にはステップS9に
移行する。ステップS9では、読み出しポインターPr
と書き込みポインターPw とが等しいか否かを判断す
る。データの収集開始から100回(300m秒)の間
はここでの判断はNOとなり、リングバッファ22にデ
ータを書き込むだけでステップS2に戻る。ステップS
5〜S9での処理を101回繰り返し、ステップS6で
書き込みポインターPw がインクリメントされて「10
2」になると、ステップS7での判断がYESとなりス
テップS10に移行する。
In step S8, the power failure monitoring input signal DH
It is determined whether or not a power failure has occurred by turning on and off. If there is no power failure, the process proceeds to step S9. In step S9, the read pointer P r
And write pointer P w are equal to each other. The determination here is NO for 100 times (300 msec) from the start of data collection, and the process returns to step S2 only by writing the data in the ring buffer 22. Step S
The processing from 5 to S9 is repeated 101 times, and the write pointer P w is incremented by “10” in step S6.
When it becomes "2", the determination in step S7 becomes YES and the process proceeds to step S10.

【0023】ステップS10では、書き込みポインター
w が先頭アドレスAs にセットされる。つまり、10
1バイトの書き込みが終了すると、書き込みポインター
wを先頭に移動する。ステップS10で書き込みポイ
ンターPw が先頭アドレスA s にセットされ、しかもス
テップS8で停電ではないと判断されると、ステップS
9での判断がYESとなる。このとき、読み出しポイン
ターPr と書き込みポインターPw とがともに「As
1」となる。以降3m秒毎に、ポインターPrとポイン
ターPw とは2,3,4…となる。ステップS9での判
断がYESとなると、ステップS11に移行する。
In step S10, the write pointer
PwIs the start address AsIs set to. That is, 10
When 1 byte has been written, write pointer
PwTo the top. Write poi in step S10
Center PwIs the start address A sSet to
If it is determined in step S8 that there is no power outage, step S
The determination in 9 is YES. At this time, the read point
Tar PrAnd write pointer PwTogether with "As=
1 ”. Every 3 msec thereafter, pointer PrAnd point
Tar PwAnd are 2, 3, 4 ... Format in step S9
If the determination is YES, the process proceeds to step S11.

【0024】ステップS11では、停電フラグFlがセ
ットされているか否かを判断する。この停電フラグFl
は初期設定時に「0」にリセットされており、停電発生
時に「1」にセットされる。停電ではない場合には、こ
こでの判断はNOとなりステップS12に移行する。ス
テップS12では、リングバッファ22に書き込まれた
データを読み出し、データ記憶回路24及び演算部25
に出力する。ステップS13では、読み出しポインター
r をインクリメントする。この状態では、たとえばP
w =1,Pr =2となりPr がPw より「1」大きい値
になる。ステップS13では、読み出しポインターPr
が終点アドレスAe に等しいか否かを判断する。つま
り、リングバッファ22の終点アドレスまでデータを読
んだか否かを判断する。100バイト分のデータを読み
出すまではここでの判断はNOとなりメインルーチンに
戻る。一方、100バイト分のデータの読み出しを終了
すると、ここでの判断がYESとなりステップS15に
移行する。ステップS15では、読み出しポインターP
r の値を先頭アドレスAs の値にセットしメインルーチ
ンに戻る。
In step S11, it is determined whether or not the power failure flag Fl is set. This power failure flag Fl
Is reset to "0" at the initial setting and is set to "1" when a power failure occurs. If it is not a power failure, the determination here is NO, and the routine goes to Step S12. In step S12, the data written in the ring buffer 22 is read out, and the data storage circuit 24 and the arithmetic unit 25 are read.
Output to. In step S13, the read pointer P r is incremented. In this state, for example, P
Since w = 1 and P r = 2, P r becomes a value larger by 1 than P w . In step S13, the read pointer P r
Is equal to the end point address A e . That is, it is determined whether or not the data has been read up to the end address of the ring buffer 22. Until the data of 100 bytes is read, the determination here is NO and the process returns to the main routine. On the other hand, when the reading of the data of 100 bytes is completed, the determination here is YES, and the routine goes to Step S15. In step S15, the read pointer P
Set the value of r in the value of the head address A s returns to the main routine.

【0025】以上の処理では、データ収集開始から10
0回(300m秒)の間はリングバッファ22に書き込
みだけを行う。それ以降は、ステップS9で書き込みポ
インターPw と読み出しポインターPr との値が同じ値
になり、ステップS12で収集タイミングから300m
秒前のデータが読み出される。そして、次のステップS
5で、その同じアドレスに新たな収集データが書き込ま
れる。つまり、リングバッファ22には、最近の300
m秒間のデータが格納される。
In the above processing, 10
Only writing to the ring buffer 22 is performed during 0 times (300 msec). After that, the values of the write pointer P w and the read pointer P r become the same value in step S9, and 300 m from the collection timing in step S12.
The data before the second is read. And the next step S
At 5, new collection data is written to that same address. In other words, the ring buffer 22 has the latest 300
Data for m seconds is stored.

【0026】ここで、たとえば図2のブレーカー13が
遮断状態となったり、操作者によりメインスイッチ15
が切断されたりした場合には、停電監視入力信号DHに
よりそのことが検知される。停電監視入力信号DHがO
NからOFFに変化し、ステップS8で停電状態と判断
した場合には、ステップS16に移行する。ステップS
16では、読み出しポインターPr を先頭アドレスAs
(=1)にセットする。ステップS17では、書き込み
ポインターPw を先頭アドレスAs +1(たとえば
「2」)にセットする。ステップS18では、停電フラ
グを「1」にセットする。ここでは、停電中は読み出し
ポインターPr を先頭アドレスAs に、書き込みポイン
ターPw をAs +1に固定することにより、リングバッ
ファ22にデータを格納しないようにしている。停電中
は、ステップS5〜S8に続いてステップS16〜S1
8のステップを繰り返し実行するだけである。
Here, for example, the breaker 13 shown in FIG. 2 is turned off, or the main switch 15 is operated by the operator.
In case of disconnection, the fact is detected by the power failure monitoring input signal DH. Power failure monitoring input signal DH is O
If the state changes from N to OFF and it is determined in step S8 that there is a power outage, the process proceeds to step S16. Step S
In 16, the read pointer P r is set to the start address A s.
Set to (= 1). In step S17, the write pointer P w is set to the head address A s +1 (for example, “2”). In step S18, the power failure flag is set to "1". Here, the data is not stored in the ring buffer 22 by fixing the read pointer P r to the head address A s and the write pointer P w to A s + 1 during the power failure. During a power failure, steps S16-S1 are performed after steps S5-S8.
Only the 8 steps are repeated.

【0027】停電が復旧すると、ステップS8での判断
がNOとなり、ステップS9に移行する。停電復旧直後
は、ステップS9においてPr =1、Pw =3(ステッ
プS6でポインターPw をインクリメントしているた
め)であるので、ステップS9での判断がNOとなり、
メインルーチンに戻る。そしてこのループを100回繰
り返すと、ポインターPw の値が「102」になってス
テップS7での判断がYESとなり、ステップS10で
ポインターPw の値が「1」にセットされる。すると、
ステップS9での判断がYESとなり、ステップS11
に移行する。このとき、停電フラグFlの値は「1」で
あるので、ステップS11での判断がYESとなり、ス
テップS19に移行する。
When the power failure is restored, the determination in step S8 becomes NO and the process proceeds to step S9. Immediately after the power failure is restored, since P r = 1 and P w = 3 in step S9 (because the pointer P w is incremented in step S6), the determination in step S9 is NO,
Return to the main routine. When this loop is repeated 100 times, the value of the pointer P w becomes “102”, the determination in step S7 becomes YES, and the value of the pointer P w is set to “1” in step S10. Then,
The determination in step S9 is YES, and step S11
Move to. At this time, since the value of the power failure flag Fl is "1", the determination in step S11 is YES, and the process proceeds to step S19.

【0028】ステップS19では、停電フラグFlの値
が「0」にリセットされる。つまりこの停電フラグは、
停電したときに「1」にセットされ、復旧後300m秒
経過した時点で「0」にリセットされる。停電フラグF
lがリセットされるとメインルーチンに戻る。次のステ
ップS6ではポインターPw がインクリメントされるの
で、ステップS9での判断がNOとなり、リングバッフ
ァ22にデータがさらに100回書き込まれるまで、ス
テップS2〜S9のループを繰り返す。これにより、停
電復旧後300m秒経過してから300m秒間の収集デ
ータがリングバッファ22に格納される。つまり、停電
復旧後から300m秒経過するまでのデータは上書きに
より無効化される。
In step S19, the value of the power failure flag Fl is reset to "0". In other words, this power failure flag is
It is set to "1" when there is a power outage, and reset to "0" when 300 msec has elapsed after restoration. Blackout flag F
When l is reset, it returns to the main routine. Since the pointer P w is incremented in the next step S6, the determination in step S9 becomes NO, and the loop of steps S2 to S9 is repeated until the data is written 100 more times in the ring buffer 22. As a result, the collected data for 300 msec after 300 msec after the power failure is restored is stored in the ring buffer 22. In other words, the data up to 300 msec after the restoration of the power failure is invalidated by overwriting.

【0029】再びステップS9での判断がYESとなる
と、ステップS11に移行する。ここでは、停電フラグ
Flは「0」にリセットされているので、判断はNOと
なり、ステップS12に移行する。これにより、ステッ
プS12では、停電復旧から300m秒経過した後に書
き込まれたデータのみが読み出されることになる。この
ように、本実施例では停電監視入力がOFFする300
m秒前からのデータを無効化しているので、設備が停電
した場合に、データ収集入力と停電監視入力とのどちら
が先にOFFするか予測できないときであっても、誤っ
たデータを収集することを防止できる。また、停電復旧
後にも、データが安定するまでの過渡的な期間の信頼で
きないデータを停電復旧から300m秒間無効化してい
るので、信頼性の高いデータだけを収集することができ
る。
When the determination in step S9 is YES again, the process proceeds to step S11. Here, since the power failure flag Fl is reset to "0", the determination is NO, and the process proceeds to step S12. As a result, in step S12, only the data written after 300 msec has elapsed from the power recovery is read. Thus, in this embodiment, the power failure monitoring input is turned off 300
Since the data from m seconds ago is invalidated, even if it is not possible to predict which of the data collection input and the power failure monitoring input will turn OFF first, when the equipment has a power failure, it is possible to collect incorrect data. Can be prevented. Further, even after the power failure is restored, unreliable data in a transitional period until the data is stabilized is invalidated for 300 msec after the power failure is restored, so that only highly reliable data can be collected.

【0030】なお、データ入力回路21では、停電監視
入力を含め全ての収集データに関し、連続して3回のデ
ータが同じときに限り、データを収集するようにしてい
るので、ノイズ等により停電監視入力信号DHが瞬時的
にOFFになっても、正しいデータが無効化されてしま
うことはない。また、その他の入力信号についても、ノ
イズによる攪乱を受けることなく、正しいデータだけが
収集できる。
The data input circuit 21 collects all the collected data including the power failure monitoring input only when the data is the same three times consecutively. Even if the input signal DH is momentarily turned off, correct data will not be invalidated. Also, for other input signals, only correct data can be collected without being disturbed by noise.

【0031】〔他の実施例〕 (a) 前記実施例ではモニタ1をシーケンサ16に接
続した構成としたが、本発明はこれに限られるものでな
はなく、スイッチパネル17の信号や制御パネル18の
信号及び加工機2のセンサ信号を直接モニタ1に入力す
るような構成でもよい。 (b) 前記実施例では、同一の電源12をモニタ1と
シーケンサ16及び加工機2に供給しているが、モニタ
1と、シーケンサ16及び設備2への電源は別々でもよ
い。 (c) 前記実施例では無効化手段としてリングバッフ
ァ22を設けたが、本発明はこれに限られるものではな
く、停電時にデータ記憶回路24に記憶されデータを所
定時間分消去する構成としてもよい。
[Other Embodiments] (a) Although the monitor 1 is connected to the sequencer 16 in the above embodiment, the present invention is not limited to this, and the signals of the switch panel 17 and the control panel are not limited thereto. Alternatively, the signal of 18 and the sensor signal of the processing machine 2 may be directly input to the monitor 1. (B) In the above embodiment, the same power source 12 is supplied to the monitor 1, the sequencer 16 and the processing machine 2, but the monitor 1, the sequencer 16 and the facility 2 may be powered separately. (C) Although the ring buffer 22 is provided as the invalidating means in the above-described embodiment, the present invention is not limited to this, and the data stored in the data storage circuit 24 may be erased for a predetermined time when a power failure occurs. ..

【0032】[0032]

【発明の効果】本発明に係る稼動状態監視装置では、停
電検出手段を新たに設けたため、設備の停電に際して起
こる様々な過渡現象による誤ったデータを容易に判別で
き、装置の構造や内部処理を簡単にすることができる。
またそれに伴い、対象設備が停電している間は停電とし
て正確に記録できる。
In the operating condition monitoring apparatus according to the present invention, since the power failure detecting means is newly provided, it is possible to easily discriminate erroneous data due to various transient phenomena occurring when the power failure of the equipment, and to improve the structure and internal processing of the apparatus. Can be easy.
Along with this, while the target equipment is out of power, it can be accurately recorded as a power outage.

【0033】また、無効化手段を設けると、停電検出手
段が設備の停電を検出したとき、その検出タイミング近
傍の稼動状態の一部を無効にするので、停電時に生じる
信頼性のないデータを収集することなく、正確なデータ
だけを収集することができ、正常に監視動作を行える。
Further, when the invalidation means is provided, when the power failure detection means detects a power failure of the equipment, a part of the operating state near the detection timing is disabled, so that unreliable data generated at the time of power failure is collected. Without doing so, only accurate data can be collected and normal monitoring operation can be performed.

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

【図1】本発明の一実施例が採用された稼動状態監視シ
ステムの斜視概略図。
FIG. 1 is a schematic perspective view of an operating condition monitoring system to which an embodiment of the present invention is applied.

【図2】そのブロック構成図。FIG. 2 is a block configuration diagram thereof.

【図3】モニタのブロック構成図。FIG. 3 is a block diagram of a monitor.

【図4】リングバッファの格納領域を示す図。FIG. 4 is a diagram showing a storage area of a ring buffer.

【図5】制御部の制御動作を示すフローチャート。FIG. 5 is a flowchart showing a control operation of a control unit.

【図6】制御部の制御動作を示すフローチャート。FIG. 6 is a flowchart showing a control operation of a control unit.

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

1 モニタ 2 加工機 12 電源 21 データ入力回路 22 リングバッファ 23 制御部 25 演算部 27 メモリカードインターフェイス 1 monitor 2 processing machine 12 power supply 21 data input circuit 22 ring buffer 23 control unit 25 arithmetic unit 27 memory card interface

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】監視対象の設備の稼動状態を監視する稼動
状態監視装置であって、 前記設備の電源部の電圧を直接検出することにより、前
記設備が停電しているか否かを検出するための停電検出
手段と、 前記稼動状態を稼動状態データとして順次収集するため
のデータ収集手段と、 前記停電検出手段の検出結果に応じて前記稼動状態デー
タを出力する出力手段と、を備えた稼動状態監視装置。
1. An operating state monitoring device for monitoring the operating state of equipment to be monitored, for detecting whether or not the equipment is out of power by directly detecting the voltage of the power supply section of the equipment. A power failure detecting means, a data collecting means for sequentially collecting the working status as working status data, and an output means for outputting the working status data according to a detection result of the power failure detecting means. Monitoring equipment.
【請求項2】前記停電検出手段が前記停電を検出したと
き、その検出タイミング近傍の前記稼動状態データの一
部を無効にする無効化手段をさらに備えた請求項1に記
載の稼動状態監視装置。
2. The operating status monitoring device according to claim 1, further comprising invalidating means for invalidating a part of the operating status data near the detection timing when the power failure detecting means detects the power failure. ..
JP4104396A 1992-04-23 1992-04-23 Operating condition monitoring device Pending JPH05298512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4104396A JPH05298512A (en) 1992-04-23 1992-04-23 Operating condition monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4104396A JPH05298512A (en) 1992-04-23 1992-04-23 Operating condition monitoring device

Publications (1)

Publication Number Publication Date
JPH05298512A true JPH05298512A (en) 1993-11-12

Family

ID=14379578

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4104396A Pending JPH05298512A (en) 1992-04-23 1992-04-23 Operating condition monitoring device

Country Status (1)

Country Link
JP (1) JPH05298512A (en)

Similar Documents

Publication Publication Date Title
US5526269A (en) Digital operation recorder
US5734894A (en) Methods and apparatus for protecting the integrity of process data stored on a removable storage medium
JPH11146572A (en) Uninterrupted power supply system, backup object device used for the system and record medium in which program for making computer operate as the backup object device are recorded
JPH0440757B2 (en)
JP2001084032A (en) Data recording/display device
JPH05298512A (en) Operating condition monitoring device
JP2931107B2 (en) Nuclear zone patrol monitoring and inspection method
JP3292658B2 (en) Power failure time detection device
JPH1155845A (en) Digital protective relay device
JP2001306140A (en) Abnormality detection system
JPH0611038U (en) Data processing device
JPH0956051A (en) Automatic monitoring system for digital protective relay device
JP3064687B2 (en) Data memory controller
JPH06149347A (en) Abnormality reproducing device for equipment
JP3250898B2 (en) Numerical controller with data recovery function
JP3612951B2 (en) vending machine
JP2572386B2 (en) Fault diagnosis device
JPH08219815A (en) Data memory control device
JP3514168B2 (en) Monitoring control device, monitoring control method, and recording medium storing monitoring program
JPH0232885A (en) Printing apparatus
JPH03267722A (en) Plant data recording device
JPH1011317A (en) Digital controller
KR0175826B1 (en) Operation and malfunction measurement method during power switching test
JPH077079B2 (en) Equipment usage time measuring device
JPH0282334A (en) Bus cycle trace circuit

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20071212

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20081212

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091212

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091212

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101212

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees