JPH0965461A - Monitor controller - Google Patents

Monitor controller

Info

Publication number
JPH0965461A
JPH0965461A JP21738695A JP21738695A JPH0965461A JP H0965461 A JPH0965461 A JP H0965461A JP 21738695 A JP21738695 A JP 21738695A JP 21738695 A JP21738695 A JP 21738695A JP H0965461 A JPH0965461 A JP H0965461A
Authority
JP
Japan
Prior art keywords
reset
cause
information
cpu
task
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.)
Withdrawn
Application number
JP21738695A
Other languages
Japanese (ja)
Inventor
Takashi Kuritani
孝 栗谷
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP21738695A priority Critical patent/JPH0965461A/en
Publication of JPH0965461A publication Critical patent/JPH0965461A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a monitor controller with excellent maintenance performance by observing information relating to reset after initializing. SOLUTION: The controller is provided with a central processing unit 5a processing text data and making initializing when being reset, a 1st reset means 5c reset with a first cause, and a 2nd reset means 5d reset with a 2nd cause, a reset cause information storage section 5f storing reset cause information representing which of the 1st or 2nd reset means reset is made. Since the reset cause information storage section stores reset cause information, the reset cause information is observed after reset and whether reset is made by the 1st cause or the 2nd cause is recognized.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、端末器を監視して
負荷装置を制御する監視制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a monitor control device for monitoring a terminal device and controlling a load device.

【0002】[0002]

【従来の技術】従来の監視制御システムを図2、図3を
用いて説明する。図2は、監視制御システムの構成を示
すブロック図である。図3は従来の監視制御装置の一構
成例を示すブロック図である。
2. Description of the Related Art A conventional supervisory control system will be described with reference to FIGS. FIG. 2 is a block diagram showing the configuration of the supervisory control system. FIG. 3 is a block diagram showing an example of the configuration of a conventional monitoring control device.

【0003】図2に示す監視制御システムは、端末器1
と、監視制御装置2と、管理装置3と、負荷装置4とを
有して構成されている。
The supervisory control system shown in FIG.
A monitoring control device 2, a management device 3, and a load device 4.

【0004】端末器1は、建物内の各所に設けられてお
り、状態検知センサ1aと接続されている。そして、端
末器1は、状態検知センサ1aのオン・オフの状態を検
出する。
The terminal 1 is provided at various places in the building and is connected to the state detection sensor 1a. Then, the terminal device 1 detects the on / off state of the state detection sensor 1a.

【0005】負荷装置4は、建物内の各所に設けられて
おり、照明装置や空調装置、動力装置などであり監視制
御装置2によって制御される。
The load device 4 is provided at various places in the building, and is a lighting device, an air conditioner, a power device, or the like, and is controlled by the monitoring control device 2.

【0006】監視制御装置2は、建物内の各階毎あるい
は数階毎に設けられており、複数の端末器1の検出した
データの逐次収集、負荷装置4の動作制御等の複数のタ
スクを実行する。監視制御装置2は、該収集動作とは別
に、管理装置3からの要求に応じて、収集した状態デー
タを管理装置3に送信する。
The supervisory controller 2 is provided for each floor or several floors in the building, and executes a plurality of tasks such as sequential collection of data detected by a plurality of terminals 1 and operation control of the load device 4. To do. In addition to the collecting operation, the monitoring control device 2 transmits the collected state data to the management device 3 in response to a request from the management device 3.

【0007】管理装置3は、一または複数の監視制御装
置2を管理する。管理装置3は、主に建物の中央管理室
などに設置されて、状態データを視覚的に分かり易いよ
うにして表示し、また監視制御装置2に負荷装置4の制
御を指示する。
The management device 3 manages one or a plurality of supervisory control devices 2. The management device 3 is mainly installed in a central management room of a building or the like, displays state data in a visually easy-to-understand manner, and instructs the monitoring control device 2 to control the load device 4.

【0008】ところで、監視制御装置2は、図3に示す
ように、中央処理装置(以下、CPUと記す)2aと、
ランダム・アクセス・メモリ(以下RAMと記す)2b
と、第一のリセット手段に相当するリセットIC2c
と、第二のリセット手段に相当する電源監視リセットI
C2dと、時計IC2eとを有して構成されている。
By the way, as shown in FIG. 3, the supervisory control device 2 includes a central processing unit (hereinafter referred to as CPU) 2a,
Random access memory (hereinafter referred to as RAM) 2b
And a reset IC 2c corresponding to the first reset means
And a power supply monitoring reset I corresponding to the second reset means.
It is configured to have a C2d and a clock IC2e.

【0009】CPU2aは、前記データ収集および負荷
装置4の動作制御のタスクのプログラムを実行するもの
であり、動作時にはリセットIC2cに対して一定周期
でパルス出力をしており、誤動作をしてハングアップし
た時にはパルス出力をしない。また、CPU2aは、リ
セットIC2cからリセット信号が入力されると(以
下、リセット信号が入力されることをリセットと記
す)、初期化動作を行い、また電源監視リセットIC2
dからリセットされると、所定時間後に初期化動作を行
う。初期化動作とは、RAM2bの記憶内容を消去し
て、CPU2aの処理していたタスクのプログラムを最
初から行うことである。なお、CPU2aはハングアッ
プ時には処理を停止するが、リセット信号を受信しての
初期化動作はできるようにされている。
The CPU 2a executes a program for the task of data collection and operation control of the load device 4, and outputs a pulse to the reset IC 2c at a constant cycle during operation, causing a malfunction and hangup. When it does, it does not output a pulse. When the reset signal is input from the reset IC 2c (hereinafter, the input of the reset signal is referred to as reset), the CPU 2a performs the initialization operation, and the power supply monitoring reset IC 2
When reset from d, the initialization operation is performed after a predetermined time. The initialization operation is to erase the stored contents of the RAM 2b and to execute the program of the task which the CPU 2a was processing from the beginning. Although the CPU 2a stops the process at the time of hang-up, the initialization operation can be performed by receiving the reset signal.

【0010】RAM2bはCPU2aの行う複数のタス
クについての「タスク状態」(停止、待ち、実行可、中
断、実行中、暴走停止)と、タスク状態が「待ち」であ
る場合の「タスク待ち原因」(時間待ち、イベント要求
待ち、資源解放待ち)と、タスクの処理のすすみ具合を
示す「タスク処理進度」と、タスクのワークデータと、
タスクのプログラムとを記憶する。
The RAM 2b has a "task state" (stop, wait, executable, interrupted, running, runaway stop) for a plurality of tasks executed by the CPU 2a and a "task wait cause" when the task state is "wait". (Waiting for time, waiting for event request, waiting for resource release), "task processing progress" indicating the progress of task processing, task work data,
Memorize the program of the task.

【0011】リセットIC2cは、一定周期以内でCP
U2aからパルスの入力がなければ、CPU2aがハン
グアップしていると判断して、CPU2aにリセット信
号を出力する。
The reset IC 2c has a CP within a fixed period.
If no pulse is input from U2a, it is determined that the CPU2a is hung up, and a reset signal is output to the CPU2a.

【0012】電源監視リセットIC2dは、監視制御装
置2の電源の状態を監視して、電圧がCPU2aの動作
保証電圧以下になったときにリセット信号をCPU2a
に出力する。
The power supply monitoring reset IC 2d monitors the state of the power supply of the monitoring control device 2 and outputs a reset signal to the CPU 2a when the voltage becomes equal to or lower than the operation guarantee voltage of the CPU 2a.
Output to

【0013】時計IC2eは、現在時刻を出力するもの
である。以上のようにして構成された監視制御装置2の
初期化動作を説明する。
The clock IC 2e outputs the present time. The initialization operation of the monitoring control device 2 configured as above will be described.

【0014】監視制御システムの初期稼働時などにおい
て、監視制御装置2のタスクのプログラムに誤り(バ
グ)が含まれており、該プログラムをCPU2aが実行
すると、CPU2aは誤動作を起こしてハングアップす
る。CPU2aがハングアップすると、CPU2aはリ
セットIC2cへのパルス出力を停止するので、リセッ
トIC2cは一定周期以上パルスの入力がないと判断し
てリセット信号をCPU2aに出力する。
During the initial operation of the supervisory control system, an error (bug) is included in the program of the task of the supervisory controller 2, and when the CPU 2a executes the program, the CPU 2a malfunctions and hangs up. When the CPU 2a hangs up, the CPU 2a stops the pulse output to the reset IC 2c. Therefore, the reset IC 2c judges that there is no pulse input for a certain period or longer and outputs a reset signal to the CPU 2a.

【0015】ハングアップしたCPU2aは、リセット
信号を受け取ると初期化動作をして(リセットIC2c
からのリセット信号によるリセットをウオッチドックリ
セットという)、改めてタスクのプログラムの実行を最
初からやり直す。従って、プログラムの誤りによってC
PU2aがハングアップした場合でも、CPU2aは該
リセット信号による初期化動作により、いつまでもハン
グアップしていることなく、プログラムを再実行するよ
うになっている。
Upon receiving the reset signal, the hung-up CPU 2a performs an initialization operation (reset IC 2c
The reset signal from the reset signal is called Watchdog reset), and the task program is restarted from the beginning. Therefore, due to a program error, C
Even if the PU 2a hangs up, the CPU 2a re-executes the program without being hung up forever by the initialization operation by the reset signal.

【0016】一方、電源に何らかの不都合が生じて電圧
がCPU2aの動作保証電圧以下に下がった場合、CP
U2aの動作を保証するため、電源監視リセットIC2
dはリセット信号をCPU2aに出力する。CPU2a
はリセット信号を受け取ると、電圧が動作保証電圧以上
に回復するのに十分な一定時間時間間隔をおいて初期化
動作し(電源監視リセットIC2dからのリセット信号
によるリセットを電源リセットという)、改めてプログ
ラムの実行を最初からやり直す。従って、動作保証電圧
以下の状態でCPU2aが動作することがない。
On the other hand, if the voltage drops below the operation guarantee voltage of the CPU 2a due to some inconvenience in the power source, CP
In order to guarantee the operation of U2a, the power supply monitoring reset IC2
d outputs a reset signal to the CPU 2a. CPU2a
When the reset signal is received, the initialization operation is performed at a constant time interval sufficient for the voltage to recover to the operation guarantee voltage or higher (reset by the reset signal from the power supply monitoring reset IC 2d is called power reset), and the program is reprogrammed. Start over from the beginning. Therefore, the CPU 2a does not operate in a state of the operation guarantee voltage or less.

【0017】[0017]

【発明が解決しようとする課題】ところで、監視制御シ
ステムにあってはメンテナンス面から、初期化動作が行
われたときのリセット原因(ウオッチドックリセットま
たは電源リセット)やリセットの時刻などのリセットに
関する情報を、後から保守者が分かるようになっている
ことが望ましい。該リセットに関する情報を解析するこ
とにより、リセットの原因となったプログラムの誤り等
を発見して、修正することができるからである。
In the meantime, in the monitoring control system, from the viewpoint of maintenance, information related to reset such as reset cause (watchdog reset or power supply reset) and reset time when the initialization operation is performed. It is desirable that the maintenance personnel can understand later. This is because by analyzing the information related to the reset, it is possible to find and correct an error in the program that caused the reset.

【0018】しかしながら、上述の図2、図3に示すよ
うな監視制御装置2にあっては、保守者はリセットに関
する情報を知ることができない。このため、リセットの
原因となるプログラムの誤りを解析することが困難であ
り、メンテナンス作業に手間を要するという問題点があ
った。
However, in the supervisory control device 2 as shown in FIGS. 2 and 3, the maintenance person cannot know the information regarding the reset. Therefore, it is difficult to analyze a program error that causes a reset, and there is a problem in that maintenance work requires time and effort.

【0019】本発明は、上記問題点を改善するために成
されたもので、その目的とするところは、初期化動作後
にリセットに関する情報を見ることができ、メンテナン
ス性のよい監視制御装置を提供することにある。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a supervisory control device which can see information related to resetting after an initialization operation and has good maintainability. To do.

【0020】[0020]

【課題を解決するための手段】本発明は上記の問題を解
決するために、請求項1記載の発明にあっては、データ
の処理を行う中央処理装置と、第一の要因によりリセッ
トする第一のリセット手段と、第二の要因によりリセッ
トする第二のリセット手段とを有する監視制御装置にお
いて、第一のリセット手段と第二のリセット手段とのい
ずれによりリセットされたのかを表すリセット原因情報
を記憶するリセット原因情報保持部を設けたことを特徴
とするものである。
In order to solve the above problems, the present invention provides a central processing unit for processing data and a reset for the first factor. In a supervisory control device having one resetting means and a second resetting means for resetting by a second factor, reset cause information indicating which of the first resetting means and the second resetting means resets the information. It is characterized in that a reset cause information holding unit for storing is stored.

【0021】請求項2記載の発明にあっては、前記中央
処理装置は、初期化動作時にリセット原因情報保持部か
らリセット原因情報を読み出してメモリに書き込むリセ
ット原因書込部を有することを特徴とするものである。
According to a second aspect of the present invention, the central processing unit has a reset cause writing section for reading the reset cause information from the reset cause information holding section and writing it in the memory during the initialization operation. To do.

【0022】請求項3記載の発明にあっては、前記中央
処理装置は、初期化動作時にメモリからリセット情報を
読み出してメモリの所定領域に書き込むリセット情報書
込部を有することを特徴とするものである。
According to a third aspect of the present invention, the central processing unit has a reset information writing section for reading reset information from the memory and writing the reset information in a predetermined area of the memory during an initialization operation. Is.

【0023】[0023]

【発明の実施の形態】本発明の実施の形態を図1を用い
て説明する。図1は監視制御装置の一実施の形態を示す
ブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIG. FIG. 1 is a block diagram showing an embodiment of a supervisory control device.

【0024】監視制御装置5は、図1に示すように、中
央処理装置(以下、CPUと記す)5aと、RAM5b
と、リセットIC5cと、電源監視リセットIC5d
と、時計IC5eと、リセット原因情報保持部5fを有
して構成されている。
As shown in FIG. 1, the supervisory controller 5 includes a central processing unit (hereinafter referred to as CPU) 5a and a RAM 5b.
, Reset IC 5c, and power supply monitoring reset IC 5d
A clock IC 5e and a reset cause information holding unit 5f.

【0025】RAM5bは、主記憶領域にCPU5aの
行う複数のタスクについての「タスク状態」(停止、待
ち、実行可、中断、実行中、暴走停止)と、タスク状態
が「待ち」である場合の「タスク待ち原因」(時間待
ち、イベント要求待ち、資源解放待ち)と、タスクの処
理の進み具合を示す「タスク処理進度」と、タスクのワ
ークデータと、タスクのプログラムとを記憶する。ま
た、RAM5bは、リセット情報記憶部5jとリセット
原因記憶部5kとを有している。
The RAM 5b stores the "task state" (stop, wait, executable, interrupted, running, runaway stop) for a plurality of tasks executed by the CPU 5a in the main storage area and the task state "wait". The “task wait cause” (waiting for time, waiting for event request, waiting for resource release), “task processing progress” indicating the progress of task processing, task work data, and task program are stored. Further, the RAM 5b has a reset information storage unit 5j and a reset cause storage unit 5k.

【0026】リセット情報記憶部5jは、最終アドレス
と先頭アドレスが論理的に接続されているリングバッフ
ァであり、リセット情報を記憶する。リセット情報と
は、初期化動作前のRAM5bの主記憶領域に書き込ま
れていた情報である「タスク状態」「タスク待ち原因」
「タスク処理進度」と、リセット原因情報(ウオッチド
ックリセットまたは電源リセット)と、リセットがされ
た時刻である現在時刻(時計IC5eから読み出した値
である)である。また、リセット情報記憶部5jは、数
回分のリセット情報を記憶することができ、前回のリセ
ット時に記憶したリセット情報の書き込まれた領域の後
に続けて、今回のリセットによるリセット情報を書き込
む。また、リセット情報記憶部5jは、リングバッファ
であるから、数回分のリセット情報を記憶して記憶領域
の最終アドレスまで記憶したならば、再び先頭アドレス
に戻って先頭のアドレスから記憶を行う。
The reset information storage section 5j is a ring buffer in which the final address and the start address are logically connected, and stores the reset information. The reset information is the information written in the main memory area of the RAM 5b before the initialization operation, that is, "task status" and "task wait cause".
The “task processing progress”, the reset cause information (watchdog reset or power reset), and the current time (the value read from the clock IC 5e) that is the time when the reset is performed. Further, the reset information storage unit 5j can store the reset information for several times, and writes the reset information by the current reset after the area in which the reset information stored at the previous reset is written. Further, since the reset information storage unit 5j is a ring buffer, if the reset information for several times is stored and stored up to the last address of the storage area, the reset information storage unit 5j returns to the head address again and stores from the head address.

【0027】リセット原因記憶部5kは、電源リセット
のされた累計回数である「電源リセット回数」と、ウオ
ッチドックリセットのされた累計回数である「ウオッチ
ドックリセット回数」とを記憶する。なお、リセット情
報記憶部5jとリセット原因記憶部5kとは初期化動作
によってはクリアされない。
The reset cause storage unit 5k stores the "power reset count", which is the total number of power resets, and the "watch dock reset count", which is the total number of watchdog resets. The reset information storage unit 5j and the reset cause storage unit 5k are not cleared by the initialization operation.

【0028】CPU5aは、従来の技術で説明したとこ
ろのデータ収集および負荷装置の動作制御等のタスクの
プログラムを実行する。CPU5aは、動作時にはリセ
ットIC5cに対して一定周期でパルス出力をしてお
り、CPU5aが誤動作をしてハングアップした時には
パルス出力をしない。また、リセットIC5cからリセ
ット信号が入力されると、初期化動作を行い、電源監視
リセットIC5dからリセット信号が入力されると、所
定時間後に初期化動作を行う。また、CPU5aは、初
期化動作時にリセット原因情報保持部5fからリセット
原因情報を読み出してリセット原因記憶部5kに書き込
むリセット原因書込部5hと、RAM5bの主記憶領域
に記憶している「タスク状態」「タスク待ち原因」「タ
スク処理進度」を読み出してリセット情報としてリセッ
ト情報記憶部5jに書き込むリセット情報書込部5iを
有する。
The CPU 5a executes programs for tasks such as data collection and load device operation control as described in the prior art. The CPU 5a outputs a pulse to the reset IC 5c at a constant cycle during operation, and does not output a pulse when the CPU 5a malfunctions and hangs up. When the reset signal is input from the reset IC 5c, the initialization operation is performed, and when the reset signal is input from the power supply monitoring reset IC 5d, the initialization operation is performed after a predetermined time. Further, the CPU 5a reads the reset cause information from the reset cause information holding unit 5f at the time of the initialization operation and writes it in the reset cause storage unit 5k, and the "task state" stored in the main storage area of the RAM 5b. It has a reset information writing unit 5i which reads out the "task waiting cause" and "task processing progress" and writes it in the reset information storage unit 5j as reset information.

【0029】CPU5aは、以下のようにして初期化動
作を行う。まず、CPU5aがリセット信号を受け取る
と、ウオッチドックリセットならば即座に、また電源リ
セットならば所定時間経過後に、リセット原因書込部5
hはリセット原因情報保持部5fの記憶するリセット原
因情報(「0」または「1」)を読み込んで、「0」で
あればリセット原因記憶部5kに記憶する「電源リセッ
ト回数」の値に1を加算し、「1」であればリセット原
因記憶部5kに記憶する「ウオッチドックリセット回
数」の値に1を加算する。つぎに、リセット情報書込部
5iはRAM5b主記憶領域から「タスク状態」「タス
ク待ち原因」「タスク処理進度」を読み出し、時計IC
5eから現在時刻を読み出して、リセット情報記憶部5
jにリセット情報として書き込む。そして、CPU5a
はRAM5bのリセット情報記憶部5jとリセット原因
記憶部5kとを除く主記憶領域の消去を行い、タスクの
プログラムの実行を最初からやり直す。
The CPU 5a performs the initialization operation as follows. First, when the CPU 5a receives the reset signal, the reset cause writing unit 5 immediately after the watchdog reset and after a predetermined time has elapsed after the power reset.
h reads the reset cause information (“0” or “1”) stored in the reset cause information holding unit 5f, and if “0”, the value of the “power reset count” stored in the reset cause storage unit 5k is 1 Is added, and if it is "1", 1 is added to the value of the "watchdog reset count" stored in the reset cause storage unit 5k. Next, the reset information writing unit 5i reads the "task status", "task wait cause", and "task processing progress" from the RAM 5b main storage area, and the clock IC
The current time is read from 5e, and the reset information storage unit 5
Write to j as reset information. And the CPU 5a
Erases the main memory area of the RAM 5b excluding the reset information storage unit 5j and the reset cause storage unit 5k, and restarts the execution of the task program.

【0030】リセットIC5cは、一定周期以内でCP
U5aからパルスの入力がなければ、CPU5aはハン
グアップしていると判断して、CPU5aにリセット信
号を出力し、リセット原因情報保持部5fにウオッチド
ック信号を出力する。
The reset IC 5c has a CP within a fixed period.
If no pulse is input from U5a, the CPU 5a determines that it is hung up, outputs a reset signal to the CPU 5a, and outputs a watchdog signal to the reset cause information holding unit 5f.

【0031】電源監視リセットIC5dは、監視制御装
置5の電源の状態を監視して、電圧がCPU5aの動作
保証電圧以下になったときにリセット信号をCPU5a
に出力する。
The power supply monitoring and resetting IC 5d monitors the state of the power supply of the monitoring control device 5, and when the voltage becomes equal to or lower than the operation guarantee voltage of the CPU 5a, a reset signal is sent to the CPU 5a.
Output to

【0032】時計IC5eは、現在時刻を出力するもの
である。リセット原因情報保持部5fは電池などでバッ
クアップされたフリップフロップ回路であり、リセット
IC5cからウオッチドック信号を受け取るとリセット
原因情報として「1」を保持し、それ以外の場合にはリ
セット原因情報として「0」を保持する。
The clock IC 5e outputs the present time. The reset cause information holding unit 5f is a flip-flop circuit backed up by a battery or the like, and holds “1” as the reset cause information when receiving the watchdog signal from the reset IC 5c, and otherwise, as the reset cause information. Holds "0".

【0033】入出力部5gは、外部のメンテナンス機器
を接続する入出力ポートであり、該メンテナンス機器は
入出力部5gを介してRAM5bの記憶内容を見ること
ができる。
The input / output unit 5g is an input / output port for connecting an external maintenance device, and the maintenance device can see the stored contents of the RAM 5b via the input / output unit 5g.

【0034】以上のようにして構成された監視制御装置
5の初期化動作を説明する。監視制御システムの初期稼
働時などにおいて、監視制御装置5のタスクのプログラ
ムに誤りが含まれており、該プログラムをCPU5aが
実行すると、CPU5aは誤動作を起こしてハングアッ
プする。CPU5aがハングアップすると、CPU5a
はリセットIC5cへのパルス出力を停止するので、リ
セットIC5cは一定周期以上パルスの入力がないと、
CPU5aがハングアップしたものと判断してリセット
信号をCPU5aに出力し、ウオッチドック信号をリセ
ット原因情報保持部5fに出力する。
The initialization operation of the supervisory control device 5 configured as above will be described. An error is included in the program of the task of the monitoring control device 5 at the time of initial operation of the monitoring control system, and when the CPU 5a executes the program, the CPU 5a malfunctions and hangs up. When the CPU 5a hangs up, the CPU 5a
Stops the pulse output to the reset IC 5c, so the reset IC 5c must input a pulse for a certain period or more,
The CPU 5a determines that the CPU 5a has hung up, outputs a reset signal to the CPU 5a, and outputs a watchdog signal to the reset cause information holding unit 5f.

【0035】リセット原因情報保持部5fはウオッチド
ック信号を受け取って、リセット原因情報「1」を保持
する。
The reset cause information holding section 5f receives the watchdog signal and holds the reset cause information "1".

【0036】CPU5aがリセット信号を受け取ると、
リセット原因書込部5hがリセット原因情報保持部5f
の記憶するリセット原因情報「1」を読み込んで、リセ
ット原因記憶部5kに記憶する「ウオッチドックリセッ
ト回数」の値に1を加算する。つぎに、リセット情報書
込部5iはRAM5bの主記憶領域から「タスク状態」
「タスク待ち原因」「タスク処理進度」を読み出し、時
計IC5eから現在時刻を読み出して、リセット情報記
憶部5jにリセット情報として書き込む。そして、CP
U5aはRAM5bのリセット情報記憶部5jとリセッ
ト原因記憶部5kとを除く主記憶領域の消去を行い、タ
スクのプログラムの実行を最初からやり直す。
When the CPU 5a receives the reset signal,
The reset cause writing unit 5h has the reset cause information holding unit 5f.
The reset cause information “1” stored in is read, and 1 is added to the value of the “watchdog reset count” stored in the reset cause storage unit 5k. Next, the reset information writing unit 5i reads "task state" from the main storage area of the RAM 5b.
The "task waiting cause" and "task processing progress" are read out, the current time is read out from the clock IC 5e, and the result is written in the reset information storage unit 5j as reset information. And CP
The U 5a erases the main memory area of the RAM 5b excluding the reset information storage unit 5j and the reset cause storage unit 5k, and restarts the execution of the task program from the beginning.

【0037】一方、電源に何らかの不都合が生じて電圧
がCPU5aの動作保証電圧以下に下がった場合、CP
U5aの動作を保証するため、電源監視リセットIC5
dはリセット信号をCPU5aに出力する。
On the other hand, if the power supply has some trouble and the voltage drops below the operation guarantee voltage of the CPU 5a, CP
In order to guarantee the operation of U5a, the power supply monitoring reset IC5
d outputs a reset signal to the CPU 5a.

【0038】リセット原因情報保持部5fはウオッチド
ック信号を受け取らないので、リセット原因情報「0」
を保持する。
Since the reset cause information holding section 5f does not receive the watchdog signal, the reset cause information "0".
Hold.

【0039】CPU5aがリセット信号を受け取ると、
一定時間時間間隔をおいて、リセット原因書込部5hは
リセット原因情報保持部5fの記憶するリセット原因情
報「0」を読み込んで、リセット原因記憶部5kに記憶
する「電源リセット回数」の値に1を加算する。つぎ
に、リセット情報書込部5iはRAM5bの主記憶領域
から「タスク状態」「タスク待ち原因」「タスク処理進
度」を読み出し、時計IC5eから現在時刻を読み出し
て、リセット情報記憶部5jにリセット情報として書き
込む。そして、CPU5aはRAM5bのリセット情報
記憶部5jとリセット原因記憶部5kとを除く主記憶領
域の消去を行い、タスクのプログラムの実行を最初から
やり直す。
When the CPU 5a receives the reset signal,
After a certain time interval, the reset cause writing unit 5h reads the reset cause information “0” stored in the reset cause information holding unit 5f, and sets the value of the “power reset count” stored in the reset cause storage unit 5k. Add 1 Next, the reset information writing unit 5i reads "task status", "task wait cause", and "task processing progress" from the main storage area of the RAM 5b, reads the current time from the clock IC 5e, and resets the reset information in the reset information storage unit 5j. Write as. Then, the CPU 5a erases the main storage area of the RAM 5b excluding the reset information storage unit 5j and the reset cause storage unit 5k, and restarts the execution of the task program from the beginning.

【0040】従って、リセットがなされるとリセット原
因とリセット情報とがRAM5b内記憶され、保守者は
入出力部5gにメンテナンス機器を接続して、RAM5
b内のリセット情報を見ることによりリセット直前に発
生したリセットに関する詳細なリセット情報を見てリセ
ットの発生原因を解析することができ、また累計された
「電源リセット回数」および「ウオッチドックリセット
回数」を見ることにより、リセット原因の統計を知るこ
とができる。
Therefore, when the reset is performed, the cause of the reset and the reset information are stored in the RAM 5b, and the maintenance person connects the maintenance device to the input / output unit 5g, and the RAM 5
By looking at the reset information in b, it is possible to analyze the cause of the reset by looking at the detailed reset information related to the reset that has occurred immediately before the reset, and the accumulated "power reset count" and "watchdog reset count". You can know the statistics of the reset cause by looking at.

【0041】なお、本発明の実施の形態では、入出力部
5gにメンテナンス機器を接続することによりリセット
情報を見るようにしているが、これに限られるものでは
なく、例えば従来の技術で説明したところの管理装置3
から監視制御装置5にリセット情報送信要求信号を送
り、監視制御装置5がリセット情報を管理装置3に送信
して、管理装置3でリセット情報を見ることができるよ
うにしてもよい。このようにすれば、管理装置3によっ
て複数の監視制御装置5のリセット情報を一括管理でき
るので、よりメンテナンス性の高い監視制御システムと
することができる。
In the embodiment of the present invention, the reset information is viewed by connecting the maintenance device to the input / output unit 5g. However, the present invention is not limited to this, and for example, the conventional technique has been described. Management device 3
The monitor control device 5 may send a reset information transmission request signal from the monitor control device 5 to the management device 3 so that the management device 3 can view the reset information. By doing so, the management device 3 can collectively manage the reset information of the plurality of monitoring control devices 5, so that the monitoring control system with higher maintainability can be obtained.

【0042】[0042]

【発明の効果】本発明の監視制御装置は上述のように構
成してあるから、請求項1記載の発明にあっては、リセ
ット原因情報保持部が第一のリセット手段と第二のリセ
ット手段とのいずれによりリセットされたのかを表すリ
セット原因情報を記憶するので、リセット後にリセット
原因情報を見ることができ、第一の要因によりリセット
されたのか第二の要因によりリセットされたのかを知る
ことができ、不具合部分の解析が行いやすく、メンテナ
ンス性のよい監視制御装置を提供できるという効果を奏
する。
Since the supervisory control device of the present invention is configured as described above, in the invention according to claim 1, the reset cause information holding section has the first reset means and the second reset means. Since the reset cause information indicating which of the two causes the reset cause is stored, it is possible to see the reset cause information after the reset, and to know whether the reset is caused by the first factor or the second factor. Therefore, it is possible to provide a monitoring control device that is easy to analyze, and that has good maintainability.

【0043】請求項2記載の発明にあっては、リセット
原因書込部は初期化動作時にリセット原因情報保持部か
らリセット原因情報を読み出してメモリに書き込むの
で、メモリを見ることによりリセットの原因を知ること
ができ、メンテナンス性のよい監視制御装置を提供でき
るという効果を奏する。
According to the second aspect of the present invention, the reset cause writing unit reads the reset cause information from the reset cause information holding unit and writes it in the memory during the initialization operation. It is possible to provide a monitoring control device that can be known and that has good maintainability.

【0044】請求項3記載の発明にあっては、リセット
情報書込部は初期化動作時にメモリからリセット情報を
読み出してメモリの所定領域に書き込むので、該メモリ
の所定領域を見ることにより、リセットがされたときの
時間やタスクの状態など知ることができ、メンテナンス
性のよい監視制御装置を提供できるという効果を奏す
る。
According to the third aspect of the present invention, since the reset information writing unit reads the reset information from the memory and writes the reset information in the predetermined area of the memory during the initialization operation, the reset information is reset by looking at the predetermined area of the memory. It is possible to know the time and task status at the time of being removed, and it is possible to provide a monitoring control device with good maintainability.

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

【図1】本発明の監視制御装置の一実施の形態を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of a supervisory control device of the present invention.

【図2】従来の監視制御システムのシステム構成図であ
る。
FIG. 2 is a system configuration diagram of a conventional supervisory control system.

【図3】従来の監視制御装置のブロック図である。FIG. 3 is a block diagram of a conventional supervisory control device.

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

5 監視制御装置 5a 中央処理装置 5c 第一のリセット手段 5d 第二のリセット手段 5f リセット原因保持部 5h リセット原因書込部 5i リセット情報書込部 5 supervisory control device 5a central processing unit 5c first reset means 5d second reset means 5f reset cause holding unit 5h reset cause writing unit 5i reset information writing unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データの処理を行い、リセットされたと
きに初期化動作を行う中央処理装置と、第一の要因によ
りリセットする第一のリセット手段と、第二の要因によ
りリセットする第二のリセット手段とを有する監視制御
装置において、第一のリセット手段と第二のリセット手
段とのいずれによりリセットされたのかを表すリセット
原因情報を記憶するリセット原因情報保持部を設けたこ
とを特徴とする監視制御装置。
1. A central processing unit that processes data and performs an initialization operation when reset, a first reset means that resets by a first factor, and a second reset unit that resets by a second factor. In a supervisory control device having a reset means, a reset cause information holding section for storing reset cause information indicating which of the first reset means and the second reset means reset is provided. Monitoring and control equipment.
【請求項2】 前記中央処理装置は、初期化動作時にリ
セット原因情報保持部からリセット原因情報を読み出し
てメモリに書き込むリセット原因書込部を有することを
特徴とする請求項1記載の監視制御装置。
2. The supervisory control device according to claim 1, wherein the central processing unit has a reset cause writing unit that reads reset cause information from a reset cause information holding unit and writes the reset cause information in a memory during an initialization operation. .
【請求項3】 前記中央処理装置は、初期化動作時にメ
モリからリセット情報を読み出してメモリの所定領域に
書き込むリセット情報書込部を有することを特徴とする
請求項1または請求項2記載の監視制御装置。
3. The monitoring device according to claim 1, wherein the central processing unit has a reset information writing unit that reads reset information from the memory and writes the reset information in a predetermined area of the memory during an initialization operation. Control device.
JP21738695A 1995-08-25 1995-08-25 Monitor controller Withdrawn JPH0965461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21738695A JPH0965461A (en) 1995-08-25 1995-08-25 Monitor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21738695A JPH0965461A (en) 1995-08-25 1995-08-25 Monitor controller

Publications (1)

Publication Number Publication Date
JPH0965461A true JPH0965461A (en) 1997-03-07

Family

ID=16703370

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21738695A Withdrawn JPH0965461A (en) 1995-08-25 1995-08-25 Monitor controller

Country Status (1)

Country Link
JP (1) JPH0965461A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015034442A (en) * 2013-08-09 2015-02-19 株式会社東海理化電機製作所 Electronic key system
CN115909674A (en) * 2023-02-13 2023-04-04 成都秦川物联网科技股份有限公司 Alarm and gas meter linkage method based on intelligent gas and Internet of things system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015034442A (en) * 2013-08-09 2015-02-19 株式会社東海理化電機製作所 Electronic key system
CN115909674A (en) * 2023-02-13 2023-04-04 成都秦川物联网科技股份有限公司 Alarm and gas meter linkage method based on intelligent gas and Internet of things system
CN115909674B (en) * 2023-02-13 2023-06-30 成都秦川物联网科技股份有限公司 Intelligent gas-based alarm and gas meter linkage method and Internet of things system

Similar Documents

Publication Publication Date Title
CN100481021C (en) Method, system, and apparatus for identifying unresponsive portions of a computer program
JP2006277115A (en) Abnormality detection program and abnormality detection method
US11860718B2 (en) Register reading method and apparatus, device, and medium
US5555177A (en) Method and apparatus for resetting individual processes in a control system
JPH0965461A (en) Monitor controller
JPH09179754A (en) Task monitoring device and its method
EP0607660A2 (en) Data processing system
JPS63163932A (en) System monitoring system for control computer
CN108710552B (en) Inertial device graphical test system based on VxWorks
JPH06103218A (en) Data communication interface and operating method thereof and data processing program product
JP2000112790A (en) Computer with fault information collection function
JPH06348535A (en) Abnormality generation history storage device
CN113760510B (en) Data acquisition optimization method and terminal
JP2716537B2 (en) Down monitoring processing method in complex system
JP2762467B2 (en) Computer system
EP0608605A1 (en) Communication handler for a data processing system
CN112667423A (en) Method, device and system for diagnosing program running time abnormity
JPH0588944A (en) Input/output control and monitor system for information processing system
JP3128791B2 (en) FA controller
JPH0683721A (en) State monitor and control system for input/output device
JP2809174B2 (en) Debug device
CN100401233C (en) Method for restarting peripheral device
JPH06168174A (en) File sub-system connected with plural host computers
JPH0440544A (en) Processing system for input and output instructions for test
KR20040021042A (en) A device and a operating method thereof improving processing performance for real time operating system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20021105