JPH02103646A - Monitoring device - Google Patents
Monitoring deviceInfo
- Publication number
- JPH02103646A JPH02103646A JP63254778A JP25477888A JPH02103646A JP H02103646 A JPH02103646 A JP H02103646A JP 63254778 A JP63254778 A JP 63254778A JP 25477888 A JP25477888 A JP 25477888A JP H02103646 A JPH02103646 A JP H02103646A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- status
- status signal
- monitoring device
- contents
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Abstract] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
この発明は、装置の状態を周期的に監視する監視装置に
関するものである。The present invention relates to a monitoring device that periodically monitors the status of a device.
第5図は従来の監視装置の状態信号の記録に関する部分
を示すブロック図であり、図において、1は中央処理装
置(CPU)、2は被監視装置(図示せず)から一定周
期で状態信号を取り込む入カニニット(入力部)、3は
被監視装置から出力された状態信号、4はCPUIが直
接アクセスできるメモリで、CPU 1が動作するため
のプログラムおよびデータを記憶している。5は入カニ
ニット2が取り込んだ状態信号3の内容を記憶する入力
状態信号テーブル、6は入力状態信号テーブル5に記憶
した状態信号3に対して1周期前の状態信号3を記憶し
た前回入力状態信号テーブルで、入力状態信号テーブル
5と前回入力状態信号テーブル6とは状態変化検知手段
を構成している。
7はCPUIのプログラムファイルおよびデータファイ
ルを記録した不揮発性の外部記憶装置となる磁気ディス
ク、8は磁気ディスク7上にあって、変化した状態信号
と状態変化時刻とを記憶した状態信号変化記録ファイル
である。
次に動作について第6図に示すフローチャートを参照し
て説明する。このフローチャートによるプログラムは一
定周期(以下、サンプリングタイミングという)で起動
される。
まず、入カニニット2を介して取り込んだ状態信号3は
メモリ4上の入力状態信号テーブル5に書き込まれる(
ステップ5T41)。次に、この入力状態信号テーブル
5の内容と前回入力状態信号テーブル6の内容とを比較
して(ステップ5T42)、同じであるならば処理を終
了する(ステップ5T43)、相違点がある時は、状態
信号3の相違点とこの時の時刻とを磁気ディスク7上の
状態信号変化記録ファイルに記録しくステップ5T44
)、前回入力状態信号テーブル6の内容を行進しておく
(ステップ5T45)。FIG. 5 is a block diagram showing a part related to recording of status signals of a conventional monitoring device. 3 is a status signal output from the monitored device; 4 is a memory that can be directly accessed by the CPU 1, and stores programs and data for the operation of the CPU 1; 5 is an input state signal table that stores the contents of the state signal 3 taken in by the input state signal table 5, and 6 is the previous input state in which the state signal 3 one cycle before the state signal 3 stored in the input state signal table 5 is stored. Among the signal tables, the input state signal table 5 and the previous input state signal table 6 constitute state change detection means. 7 is a magnetic disk serving as a non-volatile external storage device that records CPUI program files and data files; 8 is a status signal change recording file on the magnetic disk 7 that stores changed status signals and status change times; It is. Next, the operation will be explained with reference to the flowchart shown in FIG. The program according to this flowchart is started at a fixed period (hereinafter referred to as sampling timing). First, the status signal 3 taken in via the input unit 2 is written to the input status signal table 5 on the memory 4 (
Step 5T41). Next, the contents of this input status signal table 5 and the contents of the previous input status signal table 6 are compared (step 5T42), and if they are the same, the process is terminated (step 5T43); if there is a difference, , record the difference in status signal 3 and the current time in the status signal change recording file on the magnetic disk 7. Step 5T44.
), the contents of the previous input status signal table 6 are stored (step 5T45).
従来の監視装置は以上のように構成されているので、電
源投入等で監視装置を起動した時に、メモリ4上の前回
入力状態信号テーブル6の内容が正しい値に設定されて
いないので、起動時には常に、状態変化を検出してしま
い、不必要な状態変化の情報が大量に磁気ディスク7に
記録され、また、監視装置の停止期間中に、新たな状態
信号の変化が発生していても見落してしまうという課題
があった。
この発明は上記のような課題を解消するためになされた
もので、監視装置が停止しても、停止前と再起動後とで
状態信号の監視を連続して行っていると見なせる監視装
置を得ることを目的とする。Since the conventional monitoring device is configured as described above, when the monitoring device is started by turning on the power, etc., the contents of the previous input status signal table 6 in the memory 4 are not set to the correct value, so when starting up, the contents of the previous input status signal table 6 are not set to the correct values. A state change is always detected, a large amount of unnecessary state change information is recorded on the magnetic disk 7, and even if a new state signal change occurs while the monitoring device is stopped, it cannot be detected. There was a problem with it falling off. This invention was made in order to solve the above-mentioned problem, and it provides a monitoring device that can be considered to be continuously monitoring the status signal before stopping and after restarting even if the monitoring device stops. The purpose is to obtain.
この発明に係る監視装置は、動作停止時に被監視装置の
状態信号を取り込んで外部記憶装置に保存する信号保存
手段と、この信号保存手段による保存内容を、起動時に
状態変化検知手段に対して検知のための信号として伝達
する信号復元手段とを備えたものである。The monitoring device according to the present invention includes a signal storage unit that captures the status signal of the monitored device and stores it in an external storage device when the operation is stopped, and a status change detection unit that detects the contents stored by the signal storage unit at the time of startup. and signal restoring means for transmitting the signal as a signal for the purpose.
この発明における信号復元手段は、監視装置が起動され
た時に、外部記憶装置に記録された、監視装置停止時の
被監視装置の状態信号をメモリ上の状態変化検知手段に
ロードする。The signal restoring means in this invention loads the state signal of the monitored device recorded in the external storage device when the monitoring device was stopped into the state change detecting means on the memory when the monitoring device is activated.
以下、この発明の一実施例を図について説明する。第1
図において、1〜8は第5図に示した従来の監視装置の
ものと同一である。ただし、メモリ4あるいは磁気ディ
スク7には、第2図および第3図に示すフローチャート
のような、信号保存手段および信号復元手段となるプロ
グラムが追加されている。9は停止時の入力状態信号テ
ーブルの内容を保存する前回入力状態信号ファイルであ
る。
次に動作について、第2図および第3図に示すフローチ
ャートを参照して説明する。通常のサンプリングタイミ
ングにおける処理は第6図に示す従来の場合と同一であ
るから説明は省略する。
監視装置が停止した時には、CPUIはサンプリングタ
イミングでなくても、入カニニット2には人力要求を与
える。入カニニット2は状態信号3を入力し、CPUI
に与える。CPUIは、この状態信号3を入力状態信号
テーブル5に書き込み(ステップ5TII)、次いで、
入力状態信号テーブル5と前回入力状態信号テーブル6
との内容を比較する(ステップ5T12)。内容が相違
している場合には(ステップ5T13)、状態信号の相
違点とこの時の時刻とを磁気ディスク7上の状態信号変
化記録ファイル8に記録しくステップ5T14)、前回
入力状態信号テーブル6の内容を更新した後(ステップ
5TI5)、ステップ(SrI2)の処理へ移行する。
ステップ(ST13)で内容に相違がない場合には、直
接ステップ(ST16)の処理へ移行する。
ステップ(ST16)で、入力状態信号テーブル5の内
容を磁気ディスク7上に前回入力状態信号ファイル9に
記録した後、停止処理を実行する(ステップ5T17)
。
監視装置が起動した時には、まず、CPUIは磁気ディ
スク7上の前回入力状態信号ファイル9の内容を読み出
し、読み出した内容、つまり、直前の停止時に保存した
入力状態信号テーブル5の内容を、前回入力状態信号テ
ーブル6に復元する(ステップ5T21)。次いで、ス
テップST22〜ステップST26において、通常のサ
ンプリングタイミング時の処理を実行していく。その後
は、サンプリングタイミングごとに第6図に示すフロー
チャートの処理を行う。
なお、上記実施例では停止時に入力状態信号テーブル5
の内容を、前回入力状態信号ファイル9に保存するよう
にしたものを示したが、第4図によるフローチャートに
示すように、入力状態信号テーブル5の内容で前回入力
状態信号テーブル6の内容を更新する際に(ステップS
T35) 、前回入力状態信号ファイル9の内容も更新
するようにしておけば(ステップST36) 、上記実
施例と同様の効果を奏するだけでなく、何らかの原因で
停止処理が実行されずに突然監視装置が停止した場合で
も、その後の起動時に、前回入力状態信号テーブル6の
内容を正しく復元することができる。An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, numerals 1 to 8 are the same as those of the conventional monitoring device shown in FIG. However, the memory 4 or the magnetic disk 7 has additional programs serving as signal storage means and signal restoration means, as shown in the flowcharts shown in FIGS. 2 and 3. 9 is a previous input state signal file that stores the contents of the input state signal table at the time of stop. Next, the operation will be explained with reference to the flowcharts shown in FIGS. 2 and 3. The processing at the normal sampling timing is the same as the conventional case shown in FIG. 6, so the explanation will be omitted. When the monitoring device stops, the CPUI issues a manual request to the input unit 2 even if it is not the sampling timing. The input crab unit 2 inputs the status signal 3 and outputs the CPU
give to The CPUI writes this status signal 3 to the input status signal table 5 (step 5TII), and then
Input status signal table 5 and previous input status signal table 6
The contents are compared with (step 5T12). If the contents are different (step 5T13), the difference in status signals and the current time are recorded in the status signal change record file 8 on the magnetic disk 7.Step 5T14), the previous input status signal table 6 is recorded. After updating the contents of (step 5TI5), the process moves to step (SrI2). If there is no difference in content in step (ST13), the process directly proceeds to step (ST16). After recording the contents of the input status signal table 5 in the previous input status signal file 9 on the magnetic disk 7 in step (ST16), a stop process is executed (step 5T17).
. When the monitoring device starts up, the CPU first reads the contents of the previous input status signal file 9 on the magnetic disk 7, and transfers the read contents, that is, the contents of the input status signal table 5 saved at the time of the previous stop, to the previous input status signal file 9. It is restored to the status signal table 6 (step 5T21). Next, in steps ST22 to ST26, processing at normal sampling timing is executed. Thereafter, the process shown in the flowchart shown in FIG. 6 is performed at each sampling timing. Note that in the above embodiment, the input status signal table 5 is
, the contents of the previous input status signal table 6 are updated with the contents of the input status signal table 5, as shown in the flowchart shown in FIG. (Step S
T35) If the contents of the previous input status signal file 9 are also updated (step ST36), not only the same effect as in the above embodiment can be achieved, but also the monitoring device may suddenly be shut down if the stop processing is not executed for some reason. Even if the system stops, the contents of the previous input status signal table 6 can be correctly restored upon subsequent startup.
以上のように、この発明によれば監視装置を、動作停止
時に信号保存手段で状態信号を保存し、起動時に信号復
元手段で状態信号を復元するように構成したので、監視
装置の停止前と再起動後とで、状態信号の監視を連続し
て行っていることにより、再起動時に不必要な情報を外
部記憶装置に記録しないようにでき、また、停止期間中
の状態信号の変化を見落すことがないものが得られる効
果がある。
さらに、監視の連続性を確保するために、メモリをバッ
テリーでバックアップするような構成とせず、不揮発性
の外部記憶装置を利用するように構成したので、バッテ
リーなど余分な部品の増加なしに安価に実現できる効果
もある。As described above, according to the present invention, the monitoring device is configured such that the signal storage means stores the status signal when the operation is stopped, and the signal restoration device restores the status signal when the operation is started. By continuously monitoring the status signal after restarting, it is possible to prevent unnecessary information from being recorded on the external storage device at the time of restart, and it is also possible to monitor changes in the status signal during the shutdown period. It has the effect of giving you something you won't drop. Furthermore, in order to ensure continuity of monitoring, the memory is not backed up by a battery, but is configured to use a non-volatile external storage device, making it possible to reduce costs without adding extra parts such as batteries. There are some effects that can be achieved.
第1図はこの発明の一実施例による監視装置の発明に関
わる部分の構成を示すブロック図、第2図は第1図に示
す監視装置の停止時の処理を示すフローチャート、第3
図は同じく起動時の処理を示すフローチャート、第4図
はこの発明の他の実施例による監視装置のサンプリング
タイミングごとの処理を示すフローチャート、第5図は
従来の監視装置の一部を構成するブロック図、第6図は
第5図に示す監視装置の処理を示すフローチャートであ
る。
1はCPU、2は入カニニット(入力部)、3は状態信
号、4はメモリ、5は入力状態信号テーブル(状態変化
検知手段)、6は前回入力状態信号テーブル(状態変化
検知手段)、7は磁気ディスク(外部記憶装置)。
なお、図中、同一符号は同一、又は相当部分を示す。
特 許 出 願 人 三菱電機株式会社j、lt
第
図
CPU
入カニニット(入力部)
伏懸f宮号
メモリ
7:−迩気テλスフ(外部式・−(長り第
図
埴
図
第
図
第
図FIG. 1 is a block diagram showing the configuration of parts related to the invention of a monitoring device according to an embodiment of the present invention, FIG. 2 is a flowchart showing processing when the monitoring device shown in FIG. 1 is stopped, and FIG.
FIG. 4 is a flowchart showing processing at each sampling timing of a monitoring device according to another embodiment of the present invention, and FIG. 5 is a block diagram configuring a part of a conventional monitoring device. FIG. 6 is a flowchart showing the processing of the monitoring device shown in FIG. 1 is a CPU, 2 is an input unit (input unit), 3 is a state signal, 4 is a memory, 5 is an input state signal table (state change detection means), 6 is a previous input state signal table (state change detection means), 7 is a magnetic disk (external storage device). In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Patent applicant: Mitsubishi Electric Corporation J, lt Figure CPU input unit (input section) figure
Claims (1)
る入力部と、この入力部に入力された前記状態信号から
前記装置の状態変化を検知する状態変化検知手段と、状
態変化時の時刻と前記状態信号の中の変化した信号とを
記録する外部記憶装置とを備えた監視装置において、動
作停止時における前記装置の状態信号を前記外部記憶装
置に保存する信号保存手段と、この信号保存手段が保存
した前記外部記憶装置の内容を、起動時に前記状態変化
検知手段に伝達する信号復元手段とを備えたことを特徴
とする監視装置。an input section for inputting a status signal from a device to be monitored at a constant cycle; a status change detection means for detecting a change in the status of the device from the status signal input to the input section; and a time and a time at which the status changes. In the monitoring device, the monitoring device includes an external storage device that records a changed signal among the status signals, and a signal storage device that stores the status signal of the device when the operation is stopped in the external storage device, and the signal storage device. A monitoring device comprising: signal restoration means for transmitting the contents of the external storage device stored by the external storage device to the state change detection means at the time of startup.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63254778A JPH02103646A (en) | 1988-10-12 | 1988-10-12 | Monitoring device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63254778A JPH02103646A (en) | 1988-10-12 | 1988-10-12 | Monitoring device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02103646A true JPH02103646A (en) | 1990-04-16 |
Family
ID=17269752
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63254778A Pending JPH02103646A (en) | 1988-10-12 | 1988-10-12 | Monitoring device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02103646A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007225205A (en) * | 2006-02-24 | 2007-09-06 | Noritz Corp | Hot water supply system |
-
1988
- 1988-10-12 JP JP63254778A patent/JPH02103646A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007225205A (en) * | 2006-02-24 | 2007-09-06 | Noritz Corp | Hot water supply system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5109505A (en) | Semiconductor memory disk apparatus with backup device capable of being accessed immediately after power source is recovered | |
| US6279120B1 (en) | Method for storing computer status data given a malfunction that requires a subsequent restarting of the computer | |
| JP3277452B2 (en) | Memory backup device, memory backup method, and audio / video data recording / reproducing device | |
| JPH02103646A (en) | Monitoring device | |
| JPH1014896A5 (en) | ||
| JPS62242257A (en) | Backup system for system | |
| JPS6012849A (en) | Fault information recording method | |
| JPH04209044A (en) | Data base control system | |
| JPS6254347A (en) | Processing system for fault of file | |
| JP2775865B2 (en) | Fault analysis information collection method for peripheral control devices | |
| JPS59227094A (en) | Electronic computer | |
| JP2005293085A (en) | Data storage device | |
| JPS5894044A (en) | System restoring system | |
| JPH01102658A (en) | File write backup method | |
| JPH0415726A (en) | Write backup method for disk controller | |
| JPS6354616A (en) | Microcomputer system | |
| JPH0619767A (en) | Magnetic disk device with file restoration function | |
| JPS61193241A (en) | Update history recording method | |
| JPH0388053A (en) | Method for writing/reading out data in/from recording medium | |
| JPH02176949A (en) | Acquisition system for journal data | |
| JPH04251317A (en) | System for protecting and reproducing status of task | |
| JPH0310331A (en) | Data saving system | |
| JPH0431129B2 (en) | ||
| JPS62196735A (en) | Resumption processing system | |
| JPH0256623A (en) | Data entry system for electronic computer |