JPH0635758A - Program monitor controller - Google Patents

Program monitor controller

Info

Publication number
JPH0635758A
JPH0635758A JP4191748A JP19174892A JPH0635758A JP H0635758 A JPH0635758 A JP H0635758A JP 4191748 A JP4191748 A JP 4191748A JP 19174892 A JP19174892 A JP 19174892A JP H0635758 A JPH0635758 A JP H0635758A
Authority
JP
Japan
Prior art keywords
program
processing
abnormality
abnormal
watchdog timer
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
JP4191748A
Other languages
Japanese (ja)
Inventor
Kiyozumi Tanigawa
清純 谷川
Katsuhiro Oki
勝博 大木
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4191748A priority Critical patent/JPH0635758A/en
Publication of JPH0635758A publication Critical patent/JPH0635758A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To flexibly use watchdog timers relating to a program monitor controller for monitoring a program by the watchdog timers. CONSTITUTION:In the program monitor controller 1 for controlling the monitoring of the program by providing the watching timers 2-1 to 2-n, the plural watchdog timers 2-1 to 2-n and a monitoring object setting means 3 for setting validity or invalidity for the respective watchdog timers 2-1 to 2-n, are provided and the validity or the invalidity is set for the respective watchdog timers 2-1 to 2-n.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は,ウォッチドッグタイマ
によりプログラムの監視を行うプログラム監視制御装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program monitoring control device for monitoring a program with a watchdog timer.

【0002】プログラム監視制御装置はウォッチドッグ
タイマにより,予め設定された時間以内にプログラムが
終了するかを監視し,プログラムの暴走を検出するもの
である。そして,プログラムの暴走を検出した場合には
装置全体をリセットする等の処理を行うものである。
A program monitoring control device uses a watchdog timer to monitor whether a program is completed within a preset time and detect runaway of the program. When a program runaway is detected, the entire device is reset.

【0003】[0003]

【従来の技術】従来のプログラム監視装置のウォッチド
ッグタイマは通常1個であって,プログラムが暴走した
場合の異常処理は装置全体をリセットする等に固定的に
定められたものであった。
2. Description of the Related Art Usually, a watchdog timer of a conventional program monitoring device is one, and an abnormal process when a program runs out is fixedly fixed such as resetting the entire device.

【0004】図14は従来のプログラム監視制御装置を
示す。図において,100はウォッチドッグタイマであ
って,プログラムの実行が開始される度に再起動され,
終了する毎にリセットされるものである。そして,予め
設定した時間内にプログラムが終了しているかを判定す
ることによりプログラムが正常に動作しているかを判定
するものである。101は異常処理手段であって,ウォ
ッチドッグタイマがプログラムの暴走を検出した時に動
作するものである。102は被監視プログラムである。
FIG. 14 shows a conventional program supervisory control device. In the figure, reference numeral 100 is a watchdog timer, which is restarted every time the execution of the program is started,
It is reset each time it is finished. Then, it is determined whether the program is operating normally by determining whether the program has ended within a preset time. Reference numeral 101 is an abnormality processing means, which operates when the watchdog timer detects a program runaway. 102 is a monitored program.

【0005】図の構成の動作を説明する。ウォッチドッ
グタイマ100には予めプログラムの監視時間を設定し
ておく。被監視プログラム102は,処理を開始すると
ウォッチドッグタイマ100を再起動する。そして,プ
ログラムが終了するとウォッチドッグタイマをリセット
する。
The operation of the configuration shown in the figure will be described. The watchdog timer 100 is preset with a program monitoring time. The monitored program 102 restarts the watchdog timer 100 when the processing is started. Then, when the program ends, the watchdog timer is reset.

【0006】ウォッチドッグタイマ100のタイマ設定
時間は被監視プログラムの開始から終了までの時間以上
に設定されているので被監視プログラム102が正常に
動作していれば,プログラムの実行が終了した時点でウ
ォッチドッグタイマ100はリセットされるのでタイム
アウトになることはない。しかし,被監視プログラムが
ループ等で暴走すると,被監視プログラム102は終了
処理にはいたらないので処理を終了することがなくな
る。そのため,ウォッチドッグタイマ100がタイムア
ウトし,被監視プログラムの異常を検出する。そして,
異常処理手段101に被監視プログラム102の異常を
示す信号を出力する。その結果,異常処理手段101は
装置全体をリセットする等の予め定められた異常処理を
行う。
Since the timer setting time of the watchdog timer 100 is set to be equal to or longer than the time from the start to the end of the monitored program, if the monitored program 102 is operating normally, when the program execution ends. Since the watchdog timer 100 is reset, it does not time out. However, if the monitored program runs out of control due to a loop or the like, the monitored program 102 does not complete the termination processing, and thus the processing is not terminated. Therefore, the watchdog timer 100 times out and detects an abnormality in the monitored program. And
A signal indicating an abnormality of the monitored program 102 is output to the abnormality processing means 101. As a result, the abnormality processing means 101 performs predetermined abnormality processing such as resetting the entire device.

【0007】[0007]

【発明が解決しようとする課題】従来のプログラム監視
制御装置は,通常1個のウォッチドッグタイマにより制
御され,異常処理に対する制御は装置全体をリセットす
る等の固定的に定められたものであった。また,複数の
ウォッチドッグタイマによりプログラム監視制御する場
合もあったが,その場合にも異常処理は固定的で,被監
視プログラムの重要度等に応じてきめ細かく異常処理手
段が決められているものではなかった。
The conventional program monitoring and control apparatus is usually controlled by one watchdog timer, and the control for abnormality processing is fixedly fixed such as resetting the entire apparatus. . In some cases, multiple watchdog timers are used to monitor and control the program. In that case, however, the error handling is fixed, and the error handling means is finely determined according to the importance of the monitored program. There wasn't.

【0008】本発明は,柔軟にウォッチドッグタイマを
運用することのできるプログラム監視制御装置を提供す
ることを目的とする。
An object of the present invention is to provide a program monitoring control device which can flexibly operate a watchdog timer.

【0009】[0009]

【課題を解決するための手段】本発明は,複数のウォッ
チドッグタイマを備えた場合にウォッチドッグタイマ毎
に有効/無効を自由に設定できるようにした。また,異
常検出時の処理をプログラムに応じて最適な異常処理と
なるようにその内容を設定できるようにした。
According to the present invention, when a plurality of watchdog timers are provided, it is possible to freely set validity / invalidity for each watchdog timer. In addition, the contents of the process when an abnormality is detected can be set according to the program so that it is the optimum abnormality process.

【0010】図1は本発明の基本構成(1) を示す図であ
る。図はウォッチドッグタイマを複数(n個)備えた場
合に,ウォッチドッグタイマ毎に有効/無効を設定する
場合の基本構成を示す。
FIG. 1 is a diagram showing a basic configuration (1) of the present invention. The figure shows the basic configuration in the case where a plurality of (n) watchdog timers are provided and the enable / disable is set for each watchdog timer.

【0011】図において,1はプログラム監視制御装
置,2−1はウォッチドッグタイマ1であって,1番目
のウォッチドッグタイマである。2−nはウォッチドッ
グタイマnであって,n番目のウォッチドッグタイマで
ある。3は監視対象設定手段であって,ウォッチドッグ
タイマ毎の有効/無効を設定するものである。4は異常
処理起動手段であって,ウォッチドッグタイマ(2−1
〜2−n)のタイムアウト信号を入力し,異常処理手段
7を起動するものである。4’はCPUであって,異常
処理手段7等を実行するものである。7は異常処理手段
であって,ウォッチドッグタイマのタイムアウトにより
異常処理を行うものである。11−1は被監視プログラ
ム1であって,ウォッチドッグタイマ2−1で動作を監
視されるものである。11−nは被監視プログラムnで
あって,ウォッチドッグタイマ2−nで動作を監視され
るものである。
In the figure, reference numeral 1 is a program monitoring controller, 2-1 is a watchdog timer 1, which is the first watchdog timer. 2-n is a watchdog timer n, which is an nth watchdog timer. Reference numeral 3 is a monitoring target setting means for setting valid / invalid for each watchdog timer. Reference numeral 4 denotes an abnormality processing starting means, which is a watchdog timer (2-1
The 2-n) timeout signal is input to activate the abnormality processing means 7. A CPU 4'executes the abnormality processing means 7 and the like. Reference numeral 7 denotes an abnormality processing means, which performs abnormality processing when the watchdog timer times out. Reference numeral 11-1 is a monitored program 1 whose operation is monitored by the watchdog timer 2-1. Reference numeral 11-n is a monitored program n, whose operation is monitored by the watchdog timer 2-n.

【0012】図において,全体を制御するCPUは省略
されている。図の構成の動作は後述する(作用参照)。
図2は本発明の基本構成(2) を示す。
In the figure, the CPU for controlling the whole is omitted. The operation of the configuration shown in the figure will be described later (see operation).
FIG. 2 shows the basic configuration (2) of the present invention.

【0013】図において,1はプログラム監視制御装
置,2はウォッチドッグタイマ,4は異常処理起動手段
であって,ウォッチドッグタイマ2のタイムアウト信号
を入力して異常処理手段7を起動するものである。4’
はCPUであって,異常処理手段7等を実行するもので
ある。5は異常処理定義保持部であって,異常処理手段
7を選択するための情報を保持するものである。例え
ば,レジスタにより構成され,異常処理を定めたプログ
ラム(異常処理手段7)の開始アドレスを格納するもの
である。6は異常処理設定手段であって,例えば,異常
処理定義保持部5に異常処理手段の開始アドレスを設定
するものである。7は異常処理手段であって,例えば,
メモリ上に格納された異常処理を行うプログラムであ
る。
In the figure, 1 is a program monitoring control device, 2 is a watchdog timer, and 4 is an abnormality processing starting means for inputting a time-out signal of the watchdog timer 2 to start the abnormality processing means 7. . 4 '
Is a CPU that executes the abnormality processing means 7 and the like. Reference numeral 5 denotes an abnormality processing definition holding unit, which holds information for selecting the abnormality processing means 7. For example, the start address of a program (abnormality processing means 7) which is constituted by a register and defines an abnormal processing is stored. Reference numeral 6 denotes an abnormal processing setting means for setting the start address of the abnormal processing means in the abnormal processing definition holding unit 5, for example. 7 is an abnormality processing means, for example,
This is a program that performs abnormality processing stored in memory.

【0014】図の構成の動作は後述する(作用参照)。
本発明の基本構成(3) である。図において,1はプログ
ラム監視制御装置,2はウォッチドッグタイマ,8は異
常記録手段であって,ウォッチドッグタイマのタイムア
ウト信号を入力し,被監視プログラム11の異常を異常
記録保持部8’に記録するものである。8’は異常記録
保持部であって,被監視プログラム11の異常情報を保
持するものである。9は処理委譲手段であって,処理依
頼元10から処理依頼があった時,異常記録保持部8’
を参照し,依頼された被監視プログラム11が正常であ
ればそれを実行するようにし,異常が記録されていれば
その代替処理手段12を指定し実行するようにするもの
である。10は処理依頼元であって,被監視プログラム
11の実行依頼等を行うものである。12は代替処理手
段であって,被監視プログラム11が異常の場合に代替
処理を行うものである。
The operation of the configuration shown in the figure will be described later (see operation).
It is a basic configuration (3) of the present invention. In the figure, 1 is a program monitoring control device, 2 is a watchdog timer, and 8 is an abnormality recording means, which inputs a time-out signal of the watchdog timer and records the abnormality of the monitored program 11 in the abnormality record holding unit 8 '. To do. Reference numeral 8'denotes an abnormality record holding unit for holding abnormality information of the monitored program 11. Reference numeral 9 denotes a processing delegation means, which is used when a processing request is issued from the processing requesting source 10 and stores an abnormal record.
If the requested monitored program 11 is normal, it is executed, and if an abnormality is recorded, the alternative processing means 12 is designated and executed. Reference numeral 10 denotes a processing request source, which requests execution of the monitored program 11 and the like. Reference numeral 12 is an alternative processing means for performing alternative processing when the monitored program 11 is abnormal.

【0015】14は他の装置であって,被監視プログラ
ム11の代替処理手段12を持つ他の装置である(例え
ば,プログラム監視制御装置がワークステーションAの
ものとすると,他のワークステーションB等)。他の装
置14において,13は処理受付手段である。12’は
代替処理手段である。
Reference numeral 14 denotes another device, which has an alternative processing means 12 for the monitored program 11 (for example, if the program monitoring control device is the workstation A, another workstation B, etc.). ). In the other device 14, 13 is a process receiving means. 12 'is an alternative processing means.

【0016】15は他のプログラム監視制御装置であっ
て,プログラム監視制御装置1に替わって代替処理を行
うものである。他のプログラム監視制御装置15におい
て,9’は処理委譲手段,10’は処理依頼手段,1
2”は被監視プログラムである。図において,全体の動
作を制御し,被監視プログラム11,代替処理手段1
2,処理委譲手段9等を実行するCPUは省略されてい
る。
Reference numeral 15 is another program monitoring control device, which replaces the program monitoring control device 1 and performs alternative processing. In another program monitoring control device 15, 9'is a processing delegating means, 10 'is a processing requesting means, 1
2 "is a monitored program. In the figure, the entire operation is controlled, and the monitored program 11 and the alternative processing means 1 are controlled.
2. The CPU that executes the processing transfer means 9 and the like is omitted.

【0017】図の構成の動作は後述する(作用参照)。The operation of the configuration shown in the figure will be described later (see operation).

【0018】[0018]

【作用】図4は本発明の基本構成(1) ,(2) の動作説明
図である。図において,2はウォッチドッグタイマ,3
は監視対象設定手段,4は異常処理起動手段,4’はC
PU,5は異常処理定義保持部,6は異常処理設定手段
である。7は異常処理手段であって,メモリ7”に格納
されている異常処理を行うプログラムである。7’は異
常処理手段の開始アドレスである。7”は被監視プログ
ラム11,異常処理手段7等を格納するメモリである。
11は被監視プログラムである。11’は被監視プログ
ラム11におけるウォッチドッグタイマ2の起動処理で
ある(WDTはウォッチドッグタイマを表す(以下同
じ))。11”は被監視プログラム11におけるウォッ
チドッグタイマ2のリセット処理である。
FIG. 4 is a diagram for explaining the operation of the basic configurations (1) and (2) of the present invention. In the figure, 2 is a watchdog timer, 3 is
Is a monitoring target setting means, 4 is an abnormal processing starting means, and 4'is C
PU, 5 is an abnormal process definition holding unit, and 6 is an abnormal process setting means. Reference numeral 7 denotes an abnormality processing means, which is a program for performing abnormality processing stored in the memory 7 ". 7'is a start address of the abnormality processing means. 7" is a monitored program 11, the abnormality processing means 7, etc. Is a memory for storing.
Reference numeral 11 is a monitored program. Reference numeral 11 'is a start-up process of the watchdog timer 2 in the monitored program 11 (WDT represents a watchdog timer (hereinafter the same)). Reference numeral 11 ″ is a reset process of the watchdog timer 2 in the monitored program 11.

【0019】図により,図1の本発明の基本構成(1) お
よび図2の本発明基本構成(2) の動作を説明する。監視
対象設定手段3にウォッチドッグタイマ2の有効もしく
は無効を設定する(例えば,ウォッチドッグタイマのタ
イムアウト信号を有効もしくは無効とするマスクをセッ
トする。あるいは,開始動作を有効もしくは無効にする
等のマスクを設定する)。図1のようにウォッチドッグ
タイマ(2−1〜2−n)が複数ある場合にはその各々
に有効もしくは無効を設定する。
The operation of the basic configuration (1) of the present invention shown in FIG. 1 and the basic configuration (2) of the present invention shown in FIG. 2 will be described with reference to the drawings. The watchdog timer 2 is enabled or disabled in the monitoring target setting means 3 (for example, a mask for enabling or disabling the time-out signal of the watchdog timer is set. Alternatively, a mask for enabling or disabling the start operation) Set). When there are a plurality of watchdog timers (2-1 to 2-n) as shown in FIG. 1, each of them is set to valid or invalid.

【0020】被監視プログラム11が実行されると,W
DT起動処理11’でウォッチドッグタイマ2が起動さ
れる。そして,WDTリセット処理11”でウォッチド
ッグタイマ2がリセットされる。ウォッチドッグタイマ
2のタイムアウト設定時間は,被監視プログラム11が
正常に動作している場合に,WDT起動処理11’から
WDTリセット処理11”までの時間より長く設定され
ている。そのため,被監視プログラム11が正常に動作
している場合には,ウォッチドッグタイマ2はタイムア
ウトすることはない。しかし,被監視プログラム11が
ループする等で暴走すると,WDTリセット処理11”
まで処理が進行せず,ウォッチドッグタイマ2がタイム
アウトする。被監視プログラム11の異常を検出したウ
ォッチドッグタイマ2は異常処理起動手段4に被監視プ
ログラムの異常を通知する。
When the monitored program 11 is executed, W
The watchdog timer 2 is activated in the DT activation process 11 '. Then, the watchdog timer 2 is reset by the WDT reset processing 11 ″. The time-out setting time of the watchdog timer 2 is from the WDT start processing 11 ′ to the WDT reset processing when the monitored program 11 is operating normally. It is set longer than the time until 11 ". Therefore, when the monitored program 11 is operating normally, the watchdog timer 2 does not time out. However, if the monitored program 11 runs out of control due to a loop, WDT reset processing 11 "
The process does not proceed until and the watchdog timer 2 times out. The watchdog timer 2 which has detected the abnormality of the monitored program 11 notifies the abnormality processing starting means 4 of the abnormality of the monitored program.

【0021】異常処理起動手段4は,異常処理定義保持
部5の保持するアドレス(異常処理手段7の開始アドレ
ス7’)を,CPU4’の命令カウンタにセットし,C
PU4’はその開始アドレス7’から異常処理手段7を
実行する。例えば,被監視プログラム11がプリンタ出
力の制御プログラムであれば,該当するプリンタをリセ
ットし,警告ランプを点灯させるか,あるいはブザーで
警告する等様々に設定できる。
The abnormal processing starting means 4 sets the address held by the abnormal processing definition holding portion 5 (start address 7'of the abnormal processing means 7) in the instruction counter of the CPU 4 ', and C
The PU 4'executes the abnormality processing means 7 from the start address 7 '. For example, if the monitored program 11 is a printer output control program, various settings can be made, such as resetting the corresponding printer, turning on a warning lamp, or issuing a buzzer warning.

【0022】(なお,図1,図2において,異常処理起
動手段4より異常処理手段7に直接実線により信号線が
引かれているが,便宜的にCPU4’の動作を省略して
表したものである。以下,CPU4’は省略して説明す
る)。
(In FIG. 1 and FIG. 2, the signal line is drawn from the abnormal process starting means 4 directly to the abnormal process means 7 by a solid line, but the operation of the CPU 4'is omitted for convenience sake. The CPU 4'is omitted in the following description).

【0023】ウォッチドッグタイマ2に無効マスクがセ
ットされていると,そのマスクがタイムアウト出力を抑
止するものであれば,異常処理起動手段4にはウォッチ
ドッグタイマ2のタイムアウト信号が入力されることは
ないので,異常処理が起動されることはない。
When the invalid mask is set in the watchdog timer 2, if the mask suppresses the time-out output, the time-out signal of the watchdog timer 2 is not input to the abnormal process starting means 4. Since it does not exist, abnormal processing is not started.

【0024】以上のように,本発明の基本構成(1) によ
れば,複数のウォッチドッグタイマを備えた場合に,プ
ログラムの開発状況等に応じて個別に有効もしくは無効
を設定できる。そのため,プログラム開発時等において
ウォッチドッグタイマが必要以上に動作しプログラム開
発の障害となるようなことをなくすことができる。
As described above, according to the basic configuration (1) of the present invention, when a plurality of watchdog timers are provided, it is possible to individually enable or disable the program according to the development status of the program. Therefore, it is possible to prevent the watchdog timer from operating unnecessarily and hindering the program development at the time of program development.

【0025】また,基本構成(2) においては,異常処理
手段7を装置リセット,ランプ警告,ブザー警告等に複
数定め,被監視プログラム11の内容に応じて選択する
ようにすれば,被監視プログラム11の重要度等に応じ
てきめ細かく異常処理を定めることが可能にある。
Further, in the basic configuration (2), if the plurality of abnormality processing means 7 are set for device reset, lamp warning, buzzer warning, etc. and selected according to the contents of the monitored program 11, the monitored program can be selected. It is possible to finely determine the abnormality processing according to the degree of importance of 11.

【0026】次に図3の本発明の基本構成(3) の動作を
説明する。ウォッチドッグタイマ2は被監視プログラム
11の異常を検出すると,異常記録手段8に被監視プロ
グラム11の異常を通知する。異常記録手段8は異常記
録保持部8’に被監視プログラム11の異常を記録す
る。
Next, the operation of the basic configuration (3) of the present invention shown in FIG. 3 will be described. When the watchdog timer 2 detects an abnormality in the monitored program 11, it notifies the abnormality recording means 8 of the abnormality in the monitored program 11. The abnormality recording means 8 records the abnormality of the monitored program 11 in the abnormality record holding unit 8 '.

【0027】その後,処理依頼元から被監視プログラム
11に対する処理依頼が生じると,処理委譲手段9は異
常記録保持部8’を参照する。そして,被監視プログラ
ム11の異常を認識すると,代替処理手段12に被監視
プログラム11の代替処理を依頼する。例えば,被監視
プログラム11がプリンタ出力プログラムであり,代替
処理手段12がファイル入出力処理であるとすると,プ
リンタ出力は行わず,とりあえずファイルにデータが格
納される。
After that, when the processing request source issues a processing request to the monitored program 11, the processing delegating means 9 refers to the abnormal record holding unit 8 '. When the abnormality of the monitored program 11 is recognized, the alternative processing means 12 is requested to perform the alternative processing of the monitored program 11. For example, if the monitored program 11 is a printer output program and the alternative processing means 12 is a file input / output process, the printer output is not performed and the data is stored in the file for the time being.

【0028】処理委譲手段9が異常記録保持部8’を参
照した結果,異常記録がない場合には,処理委譲手段9
は被監視プログラム11を実行する。代替処理は,他の
装置14の代替処理手段12’でもよい。例えば,プロ
グラム監視制御装置1がワークステーションAのもので
あり,被監視プログラムがプリンタ出力プログラムであ
ったとすると,他のワークステーションのプリンタで代
替処理を行うようにする等である。
As a result of the processing delegating means 9 referring to the abnormal record holding unit 8 ', if there is no abnormal recording, the processing delegating means 9
Executes the monitored program 11. The alternative processing may be the alternative processing means 12 ′ of the other device 14. For example, if the program monitoring controller 1 is for the workstation A and the monitored program is a printer output program, the printer of another workstation may perform the alternative process.

【0029】この場合には,処理委譲手段9は他の装置
14(他のワークステーション等)に代替処理を依頼す
る。他の装置14は処理受付手段13により代替処理を
受付け,代替処理手段12’が代替処理を行う。
In this case, the process delegating means 9 requests another device 14 (another workstation or the like) for an alternative process. The other device 14 accepts the alternative process by the process accepting unit 13, and the alternative processing unit 12 'performs the alternative process.

【0030】あるいは,代替処理は他のプログラム監視
制御装置15(例えば,他のワークステーションのプロ
グラム監視制御装置等)において行うようにしてもよ
い。この場合,他のプログラム監視制御装置15の処理
委譲手段9’はプログラム監視制御装置1から代替処理
の依頼を受けると,処理委譲手段9’は被監視プログラ
ム12”に処理を代替させる。
Alternatively, the alternative process may be performed in another program monitoring controller 15 (for example, a program monitoring controller of another workstation). In this case, when the process delegating means 9 ′ of the other program monitoring control device 15 receives a request for the alternative process from the program monitoring control device 1, the process delegating means 9 ′ causes the monitored program 12 ″ to substitute the process.

【0031】(なお,図3において,処理委譲手段9,
処理依頼元10,被監視プログラム11,代替処理手段
12はソフトウェアにより構成され,実行はCPUにお
いて実行されるが,CPUは省略されている)。
(Note that in FIG. 3, the processing delegating means 9,
The processing request source 10, the monitored program 11, and the alternative processing means 12 are configured by software, and the execution is executed by the CPU, but the CPU is omitted).

【0032】本発明は,基本構成(1) ,基本構成(2) ,
基本構成(3) それぞれ単独でもよいが,そのうちの2つ
ずつ,もしくは3つを組み合わせてプログラム監視制御
装置を構成しても良い。
The present invention comprises a basic configuration (1), a basic configuration (2),
Basic configuration (3) Each may be independent, but two or three of them may be combined to configure a program monitoring control device.

【0033】[0033]

【実施例】以下の説明において,本発明の基本構成(1)
,基本構成(2) ,基本構成(3) と同じ番号は同じ部分
を表す。
EXAMPLES In the following description, the basic configuration of the present invention (1)
, The same numbers as in the basic configuration (2) and basic configuration (3) represent the same parts.

【0034】図5は本発明の実施例である。図5 (a)は
本発明の基本構成(2) の実施例である。本発明の基本構
成(2) はウォッチドッグタイマが1つでも良いのである
が,図5はウォッチドッグタイマ(WDT)を複数備え
たものである。
FIG. 5 shows an embodiment of the present invention. FIG. 5 (a) is an embodiment of the basic configuration (2) of the present invention. The basic configuration (2) of the present invention may have one watchdog timer, but FIG. 5 has a plurality of watchdog timers (WDT).

【0035】図において,5−1は異常処理定義保持部
1であって,1番目の異常処理手段の開始アドレスを保
持するレジスタである。5−nは異常処理定義保持部n
であって,n番目の異常処理手段の開始アドレスを保持
するレジスタである。7−1は異常処理手段1であっ
て,1番目の異常処理手段である。7−nは異常処理手
段nであって,n番目の異常処理手段である。11−1
は処理1であって,1番目の被監視プログラム,11−
nは処理nであって,n番目の被監視プログラムであ
る。
In the figure, 5-1 is an abnormal processing definition holding unit 1, which is a register for holding the start address of the first abnormal processing means. 5-n is an abnormal process definition holding unit n
And is a register for holding the start address of the n-th abnormality processing means. 7-1 is the abnormality processing means 1 and is the first abnormality processing means. 7-n is an abnormality processing means n, which is the n-th abnormality processing means. 11-1
Is processing 1, and is the first monitored program, 11-
n is the process n, which is the n-th monitored program.

【0036】2−1,2−nはそれぞれウォッチドッグ
タイマ1,ウォッチドッグタイマn,4は異常処理起動
手段,6は異常処理設定手段である。2−1,2−n,
4,6は図1,図2と同じものであるので説明は省略す
る(以下同じ)。
Reference numerals 2-1 and 2-n are a watchdog timer 1, watchdog timers n and 4, an abnormal process starting means, and 6 is an abnormal process setting means. 2-1, 2-n,
Since 4 and 6 are the same as those in FIGS. 1 and 2, their description is omitted (the same applies hereinafter).

【0037】ウォッチドッグタイマ2−1〜2−nのい
ずれかが,それぞれの監視対象の処理(処理1〜処理
n)の異常を検出したとする。異常を検出され処理(処
理1〜処理n)に応じて,異常処理定義保持部(5−1
〜5−n)のいずれかが選択される。そして,異常処理
起動手段4は選択した異常処理定義保持部(5−1〜5
−n)の開始アドレスに基づいてその開始アドレスの異
常処理手段(7−1〜7−n)を起動する。そして,起
動された異常処理手段(7−1〜7−n)により異常処
理が実行される(装置リセット,ランプ警告等)。
It is assumed that any of the watchdog timers 2-1 to 2-n has detected an abnormality in the process to be monitored (process 1 to process n). Depending on the process (process 1 to process n) in which the abnormality is detected, the abnormal process definition holding unit (5-1
~ 5-n) is selected. Then, the abnormal process starting unit 4 selects the abnormal process definition holding unit (5-1 to 5).
Based on the start address of -n), the abnormality processing means (7-1 to 7-n) of the start address is activated. Then, the abnormality processing is executed by the activated abnormality processing means (7-1 to 7-n) (device reset, lamp warning, etc.).

【0038】図5 (b)は,本発明の基本構成(1) と基本
構成(2) を組み合わせた場合の実施例である。図5 (b)
において,図5 (a)と共通の番号は共通部分を表す(以
下,各実施例の構成において,共通番号は共通部分を表
す)。
FIG. 5 (b) shows an embodiment in which the basic configuration (1) and the basic configuration (2) of the present invention are combined. Figure 5 (b)
5 (a), the common numbers represent common parts (hereinafter, common numbers represent common parts in the configuration of each embodiment).

【0039】(b)は,監視対象設定手段3を備えている
点で (a)と異なる。監視対象設定手段3は,WDT2−
1〜WDT2−nのそれぞれに対して,有効/無効を設
定する。無効を設定されたウォッチドッグタイマ(2−
1〜2−n)はタイムアウト信号をマスクされる,ある
いはタイマの起動等がマスクされ動作を停止する。その
ため,本実施例によれば,必要なウォッチドッグタイマ
(2−1〜2−n)のみを動作させるようにすることが
でき,不要なウォッチドッグタイマが動作して障害とな
ることがなくなる。また,処理1〜処理n毎にタイムア
ウト時間をきめ細かく設定することもできる。
(B) differs from (a) in that the monitoring target setting means 3 is provided. The monitoring target setting means 3 is WDT2-
Valid / invalid is set for each of 1 to WDT2-n. A watchdog timer (2-
In 1 to 2-n), the time-out signal is masked, or the activation of the timer is masked and the operation is stopped. Therefore, according to this embodiment, only the necessary watchdog timers (2-1 to 2-n) can be operated, and unnecessary watchdog timers do not operate and become an obstacle. Further, the timeout time can be finely set for each of processing 1 to processing n.

【0040】図6は本発明の実施例である。図6 (a)
は,本発明の基本構成(1) と基本構成(3) を組み合わせ
た場合の実施例である。
FIG. 6 shows an embodiment of the present invention. Figure 6 (a)
Is an embodiment in which the basic configuration (1) and the basic configuration (3) of the present invention are combined.

【0041】(a)において,8−1’は異常記録保持部
1であって,1番目の異常記録保持部を表す。8−n’
は異常記録保持部nであって,n番目の異常記録保持部
を表す。12−1は代替処理手段1であって,1番目の
代替処理である。12−nは代替処理手段nであって,
n番目の代替処理である。
In (a), 8-1 'is the abnormal record holding unit 1 and represents the first abnormal record holding unit. 8-n '
Is an abnormal record holding unit n and represents an n-th abnormal record holding unit. Reference numeral 12-1 is the alternative processing means 1, which is the first alternative processing. 12-n is an alternative processing means n,
This is the nth alternative process.

【0042】監視対象設定手段3で有効を設定されたW
DT1(2−1)〜WDTn(2−n)のうちのいずれ
かが,それぞれの監視対象の処理(処理1〜処理n)の
異常を検出したら,異常記録手段8に異常を検出した処
理(処理1〜処理n)を通知する。異常記録手段8は異
常となった処理の異常情報を異常記録保持部1〜異常記
録保持部nのいずれかに記録する。次に,処理依頼元1
0より処理1〜処理nに対して実行依頼がくると,処理
委譲手段9は異常記録保持部1〜異常記録保持部nを参
照する。そして,実行対象処理の異常が記録されている
と,処理委譲手段9はその処理に対して定められている
代替処理(代替処理1〜代替処理n)により代替処理を
行わせる。
W set to be valid by the monitoring target setting means 3
When any of the DT1 (2-1) to WDTn (2-n) detects an abnormality in the process (process 1 to process n) to be monitored, the abnormality recording unit 8 detects the abnormality (process). Notification of processing 1 to processing n). The abnormality recording means 8 records the abnormality information of the abnormal process in any of the abnormality record holding unit 1 to the abnormality record holding unit n. Next, processing requester 1
When an execution request is sent to process 1 to process n from 0, the process delegating means 9 refers to the abnormal record holding unit 1 to the abnormal record holding unit n. Then, when the abnormality of the process to be executed is recorded, the process delegating means 9 causes the process to perform the alternative process by the alternative process (the alternative process 1 to the alternative process n).

【0043】図6 (b)は,本発明の基本構成(2) と基本
構成(3) を組み合わせた場合の実施例である。図は異常
記録保持部8’の領域の指定を異常処理定義保持部5に
格納したアドレスにより行うようにした。
FIG. 6 (b) shows an embodiment in which the basic configuration (2) and the basic configuration (3) of the present invention are combined. In the figure, the area of the abnormal record holding unit 8'is designated by the address stored in the abnormal process definition holding unit 5.

【0044】異常処理設定手段6により異常処理定義保
持部5に異常記録保持部8’の領域を格納する。それ以
外は図6 (a)の動作と同じである。図7は本発明の実施
例である。
The abnormal process setting means 6 stores the area of the abnormal record holding unit 8'in the abnormal process definition holding unit 5. Other than that, the operation is the same as that of FIG. FIG. 7 shows an embodiment of the present invention.

【0045】(a)は本発明の基本構成(1) ,基本構成(2)
において異常処理手段を複数とし,基本構成(3) の異
常記録保持部を複数として,それ等を組み合わせた場合
の構成を示す。
(A) is a basic configuration (1) and a basic configuration (2) of the present invention
In Fig. 4, the configuration is shown in the case where there are a plurality of abnormality processing means and a plurality of abnormality record holding units of the basic configuration (3) and they are combined.

【0046】図7 (b)は,図7 (a)の構成に監視対象設
定手段3を付加した点で異なる。監視対象設定手段3を
付加したことによるウォッチドッグタイマ2−1〜2−
nの動作は基本構成(1) の場合と同様であり,その点を
除いて (b)の動作は (a)の動作と同じである。
FIG. 7B is different in that a monitoring target setting means 3 is added to the configuration of FIG. 7A. Watchdog timers 2-1 to 2-by adding the monitoring target setting means 3
The operation of n is the same as that of the basic configuration (1), except that the operation of (b) is the same as the operation of (a).

【0047】図8は,本発明の実施例である。図は,基
本構成(1) と基本構成(3) において複数の異常記録保持
部(8−1’〜8−n’)を備えた場合に,異常処理の
代替処理を他の装置の代替処理手段(12−1’〜12
−n’)において行う構成を示す。
FIG. 8 shows an embodiment of the present invention. The figure shows that when the basic configuration (1) and the basic configuration (3) are provided with a plurality of abnormal record holding units (8-1 'to 8-n'), the alternative process of the abnormal process is replaced by the alternative process of another device. Means (12-1'-12
-N ') shows the configuration performed.

【0048】図において,1’は他の装置(他のワーク
ステーション等)である。12−1’は代替処理手段
1,12−n’は代替処理手段nである(例えばディス
ク装置出力プログラム等)。
In the figure, 1'denotes another device (another workstation or the like). 12-1 'is an alternative processing means 1 and 12-n' is an alternative processing means n (for example, a disk device output program).

【0049】処理依頼元10より処理依頼がくると,処
理委譲手段9は異常記録保持部1〜異常記録保持部nを
参照し,依頼された処理に異常がなければ,指定された
処理(処理1〜処理n)を実行する。指定された処理が
異常記録保持部1〜異常記録保持部nのいずれかに異常
として記録されていれば,他の装置1’に処理を依頼す
る。他の装置1’では,処理受付手段13が処理委譲手
段9からの処理依頼を受付け,代替処理手段1(12−
1’)〜代替処理手段n(12−n’)から代替処理が
選択されて,代替処理がなされる。
When a processing request is received from the processing request source 10, the processing delegating means 9 refers to the abnormal record holding unit 1 to the abnormal record holding unit n, and if the requested processing is normal, the designated processing (processing 1 to process n) are executed. If the designated process is recorded as an abnormality in any of the abnormal record holding unit 1 to the abnormal record holding unit n, the other device 1 ′ is requested to perform the process. In the other device 1 ′, the process accepting unit 13 accepts the process request from the process delegating unit 9, and the alternative process unit 1 (12-
1 ')-alternative processing means n (12-n') is selected, and the alternative processing is performed.

【0050】図9は本発明の実施例である。図は,基本
構成(1) ,複数の異常処理手段を定義されている基本構
成(2) ,複数の異常記録保持手段を備えている基本構成
(3) を組み合わせた構成において,他の装置に代替処理
を行う構成を示す。
FIG. 9 shows an embodiment of the present invention. The figure shows the basic configuration (1), the basic configuration in which a plurality of abnormality processing means are defined (2), and the basic configuration including a plurality of abnormality record holding means.
In the configuration combining (3), the configuration for performing alternative processing to other devices is shown.

【0051】図9は異常処理設定手段6,異常処理定義
保持部(5−1〜5−n)を設けた点および,異常処理
手段を複数設けた点で図8と異なる。複数の異常処理定
義保持部(5−1〜5−n)には異常処理手段(7−1
〜7−n)の開始アドレスおよび異常記録保持部(8−
1’〜8−n’)の領域アドレスが格納される。それ以
外は図8の動作と同じである。
FIG. 9 is different from FIG. 8 in that the abnormal process setting means 6 and the abnormal process definition holding sections (5-1 to 5-n) are provided and that a plurality of abnormal process means are provided. The abnormality processing means (7-1) is included in the plurality of abnormality processing definition holding units (5-1 to 5-n).
7-n) start address and abnormal record holding unit (8-
Area addresses 1'to 8-n ') are stored. Otherwise, the operation is the same as in FIG.

【0052】図10は本発明の実施例である。図は本発
明の基本構成(1) と基本構成(3) を組み合わせた場合に
おいて,代替処理を他のプログラム監視制御装置に依頼
する構成を示す。
FIG. 10 shows an embodiment of the present invention. The figure shows a configuration in which, when the basic configuration (1) and the basic configuration (3) of the present invention are combined, an alternative process is requested to another program monitoring control device.

【0053】プログラム監視制御装置1において,処理
依頼元10から異常記録保持部(8−1’〜8−n’)
に異常記録がなされている処理(処理1〜処理n)に処
理依頼がなされると,処理委譲手段9は異常記録保持部
8−1’〜8−n’を参照し,処理を他のプログラム監
視制御装置1’に依頼する。他のプログラム監視制御装
置1’は処理委譲手段9’が処理を受付け,内容に応じ
て,処理1(11−1’)〜処理n(11−n’)から
適切な処理を選択して,代替処理を行わせる。
In the program supervisory control device 1, the process request source 10 sends an abnormal record holding unit (8-1'-8-n ').
When a process request is made to a process (process 1 to process n) in which abnormal recording is performed, the process delegating unit 9 refers to the abnormal record holding units 8-1 'to 8-n' to execute the process in another program. Request the monitoring control device 1 '. In the other program monitoring control device 1 ', the process delegating means 9'receives the process, and selects an appropriate process from process 1 (11-1') to process n (11-n ') according to the content, Perform alternative processing.

【0054】図11は,基本構成(2) と基本構成(3) を
組合せた場合において,別のプログラム監視制御装置に
代替処理を行うようにした場合の構成を示す。異常記録
保持部8’に処理11の異常が記録されている場合は,
処理委譲手段9は処理依頼元10からの処理依頼を別の
プログラム監視制御装置1’に依頼する。別のプログラ
ム監視制御装置1’において,プログラム監視制御装置
1の処理11と同じ処理nが選択され,代替処理を行
う。
FIG. 11 shows a configuration in which the basic configuration (2) and the basic configuration (3) are combined with each other, and another program monitoring and control device performs an alternative process. When the abnormality of the process 11 is recorded in the abnormality record holding unit 8 ′,
The processing delegating means 9 requests the processing request from the processing request source 10 to another program monitoring control device 1 '. In another program supervisory control device 1 ', the same process n as the process 11 of the program supervisory control device 1 is selected and an alternative process is performed.

【0055】図12は本発明の実施例を示す。図は,基
本構成(1) ,基本構成(2) において複数の異常処理手段
を備える場合,基本構成(3) において複数の異常記録保
持部8−1’〜異常記録保持部8−2’を備える場合を
組み合わせた構成において,別のプログラム監視制御装
置において,代替処理を行うようにした場合の構成を示
す。
FIG. 12 shows an embodiment of the present invention. In the figure, when the basic configuration (1) and the basic configuration (2) are provided with a plurality of abnormality processing means, in the basic configuration (3), a plurality of abnormality record holding units 8-1 'to 8-2' are provided. A configuration in which the alternative processing is performed in another program monitoring control device in a configuration in which the provision cases are combined is shown.

【0056】プログラム監視制御装置1において,処理
委譲手段9が複数の異常記録保持部を参照して処理の委
譲先を判定し,動作する点以外は図11と同じである。
図13は本発明の実施例の詳細構成を示す。
The program monitoring control apparatus 1 is the same as FIG. 11 except that the process transfer means 9 operates by referring to a plurality of abnormal record holding units to determine the transfer destination of the process.
FIG. 13 shows the detailed configuration of the embodiment of the present invention.

【0057】図において,1はプログラム監視制御装置
であって,マスタ側のネットワーク管理装置に含まれる
ものである。1’はプログラム監視制御装置であって,
スレーブ側のネットワーク管理装置に含まれるものであ
る。通常は,マスタ側のネットワーク管理装置(プログ
ラム監視制御装置1を含むもの)が高速デジタル網ネッ
トワーク全体の監視を行い,マスタ側(1)が異常にな
った時にスレーブ側(1’)に切り替えて,スレーブ側
(1’)が制御を行う。
In the figure, reference numeral 1 is a program monitoring control device, which is included in the network management device on the master side. 1'is a program supervisory controller
It is included in the network management device on the slave side. Normally, the network management device on the master side (including the program monitoring control device 1) monitors the entire high-speed digital network and switches to the slave side (1 ') when the master side (1) becomes abnormal. , The slave side (1 ') controls.

【0058】プログラム監視制御装置1において,2−
1はウォッチドッグタイマ1(WDT1),2−nはウ
ォッチドッグタイマ2(WDT2)である(説明を簡単
にするために,ウォッチドッグタイマが2個の場合を示
す)。3は監視対象設定手段であって,WDT1,WD
T2に対する割り込みマスクを設定するものである。4
は異常処理起動手段であって,WDT1,WDT2の後
処理(被監視プログラムの異常検出の場合の処理)を起
動するものであり,WDT1もしくはWDT2のタイム
アウトによる割り込み信号をトリガとして異常処理定義
保持部(5−1,5−2)のレジスタの内容をCPUの
命令カウンタに設定したり,リセット回路72を起動す
るものである。5−1,5−2はそれぞれ異常処理定義
保持部1,異常処理定義保持部2であって,WDT1,
WDT2の後処理のエントリレジスタである。そして,
WDT1もしくはWDT2で異常を検出した場合の起動
すべき異常処理手段(7−1〜7−n)(図12参照)
の開始アドレスおよび異常記録保持部(8−1’〜8−
n’)の領域のアドレスを設定するレジスタである。6
は異常処理設定手段であって,WDT1もしくはWDT
2で異常を検出した場合に,起動すべき異常処理手段
(7−1〜7−n)(図12参照)の開始アドレスおよ
び異常記録保持部(8−1’〜8−2’)のアドレスを
異常処理定義保持部5−1,5−2に登録する処理を行
うものである。8は異常記録手段であって,WDT1も
しくはWDT2で異常を検出した場合に,異常を検出し
たことを記録領域(メモリ)に記録する処理である。8
−1’,8−2’はそれぞれ異常記録保持部1,異常記
録保持部2であって,WDT1もしくはWDT2が異常
検出したことを記録するメモリ領域である。9は処理委
譲手段(ディスパッチ処理部)であって,上位の処理
(監視処理,制御処理等)からの処理依頼を下位の処理
(制御コマンド編集処理,プリンタ出力処理,ファイル
出力処理等)に伝えたり,下位の処理が異常となったこ
とを上位の処理へ伝える処理である。10は処理依頼元
である。10−1は監視処理であって,ネットワーク全
体の監視を行う処理である。10−2は制御処理であっ
て,ネットワークを構成する要素を制御する処理であ
る。11は被監視プログラム,11−1は制御コマンド
編集処理であって,制御処理からの依頼に基づいて制御
用コマンドを編集する処理である。11−2はプリンタ
出力処理であり,各種処理からの依頼に基づいてプリン
タに出力する処理である。12はファイル入出力処理で
あり,各種処理から依頼に基づいてファイルへの入出力
を行う処理である(本実施例では,代替処理手段の例と
して,ファイル入出力処理を用いる場合を示す)。
In the program monitoring control device 1,
Reference numeral 1 is a watchdog timer 1 (WDT1), and 2-n is a watchdog timer 2 (WDT2) (for simplification of description, the case where there are two watchdog timers is shown). 3 is a monitoring target setting means, which is WDT1, WD
The interrupt mask for T2 is set. Four
Is an abnormal process starting means for starting post-processing of WDT1 and WDT2 (process in the case of detecting an abnormality of the monitored program), and the abnormal process definition holding unit is triggered by an interrupt signal due to a timeout of WDT1 or WDT2. The contents of the registers (5-1, 5-2) are set in the instruction counter of the CPU, and the reset circuit 72 is activated. Reference numerals 5-1 and 5-2 denote an abnormal process definition holding unit 1 and an abnormal process definition holding unit 2, respectively.
It is an entry register for post-processing of WDT2. And
Abnormality processing means (7-1 to 7-n) to be started when an abnormality is detected by WDT1 or WDT2 (see FIG. 12)
Start address and abnormal record holding unit (8-1 ′ to 8−
n ') is a register for setting the address of the area. 6
Is an abnormality processing setting means, and is WDT1 or WDT
When the abnormality is detected in 2, the start address of the abnormality processing means (7-1 to 7-n) (see FIG. 12) and the address of the abnormality record holding unit (8-1 'to 8-2') to be activated Is registered in the abnormal process definition holding units 5-1 and 5-2. Reference numeral 8 denotes an abnormality recording means, which is a process for recording the detected abnormality in the recording area (memory) when the abnormality is detected by the WDT 1 or WDT 2. 8
Reference numerals -1 'and 8-2' denote an abnormal record holding unit 1 and an abnormal record holding unit 2, respectively, which are memory areas for recording that the WDT1 or WDT2 has detected an abnormality. Reference numeral 9 denotes a process delegating means (dispatch processing unit) which transmits a processing request from a higher-level process (monitoring process, control process, etc.) to a lower-level process (control command editing process, printer output process, file output process, etc.). Alternatively, it is a process of notifying the upper process that the lower process has become abnormal. Reference numeral 10 is a processing request source. Reference numeral 10-1 is a monitoring process, which is a process of monitoring the entire network. Reference numeral 10-2 is a control process, which is a process for controlling the elements forming the network. Reference numeral 11 is a monitored program, 11-1 is a control command editing process, which is a process for editing a control command based on a request from the control process. Reference numeral 11-2 is a printer output process, which is a process for outputting to a printer based on requests from various processes. Reference numeral 12 denotes a file input / output process, which is a process of inputting / outputting to / from a file based on a request from various processes (in the present embodiment, a case of using the file input / output process is shown as an example of the alternative processing means).

【0059】72はリセット回路であって,装置全体を
リセットする回路である。73はリスタート処理であり
装置の初期設定を行うものである。74は警告出力処理
であり,WDT1もしくはWDT2で異常を検出したこ
とをランプやブザーで保守員に知らせるものである。7
5は縮退処理であって,WDT1もしくはWDT2によ
り異常を検出された処理の動作を停止するものである。
Reference numeral 72 is a reset circuit, which is a circuit for resetting the entire apparatus. A restart process 73 is for initializing the apparatus. Reference numeral 74 denotes a warning output process, which notifies a maintenance staff that an abnormality is detected by WDT1 or WDT2 by a lamp or a buzzer. 7
Reference numeral 5 is a degeneration process, which stops the operation of the process in which the abnormality is detected by the WDT1 or WDT2.

【0060】他のプログラム監視制御装置1’におい
て,9’は処理委譲手段(ディパッチ処理部),10−
1’は監視処理,10−2’は制御処理,11’はプリ
ンタ出力処理である。
In another program monitoring control apparatus 1 ', 9'is a processing delegating means (patch processing section), 10-
1'is a monitoring process, 10-2 'is a control process, and 11' is a printer output process.

【0061】図13の構成において,処理の異常が検出
された場合,以後の処理として装置のリセット,装置の
再起動,警告出力,異常となった処理の縮退等のいずれ
の処理を行うかは,異常処理定義保持部1,2のレジス
タ(5−1,5−2)の内容を変更することにより,各
WDT監視対象毎に任意に選択可能である。
In the configuration shown in FIG. 13, when a process abnormality is detected, which of the following processes is to be performed, such as device reset, device restart, warning output, and degeneration of the abnormal process? By changing the contents of the registers (5-1, 5-2) of the abnormal process definition holding units 1 and 2, it is possible to arbitrarily select each WDT monitoring target.

【0062】また,特定のWDTからの割り込みをマス
クすることにより,そのWDTが異常を検出しても何ら
処理を行わないように設定できる。図の構成は,例え
ば,プリンタ出力処理で異常を検出した場合,ファイル
入出力処理が以後のプリンタ出力をディスク内に一時保
存するようにする。あるいは,スレーブ側のプログラム
監視制御装置に依頼して,プリンタ出力する場合の構成
を示している。
By masking an interrupt from a specific WDT, it is possible to set no processing even if the WDT detects an abnormality. In the configuration shown in the figure, for example, when an error is detected in the printer output process, the file input / output process temporarily stores the subsequent printer output in the disk. Alternatively, the configuration is shown in the case of requesting a program monitoring control device on the slave side for printer output.

【0063】図では省略されているが制御処理もウォッ
チドッグタイマの監視対象となり,その場合に,制御処
理で異常が検出された時は,ディスパッチ処理部によっ
て以後の制御動作は禁止され,マスタ側のプログラム監
視制御装置1は監視のみを行うスレーブ装置として切り
替えられて動作を開始するとともに,スレーブ側(プロ
グラム監視制御装置1’)に対してマスタとして動作す
るように切り替え,制御動作を行うように処理を依頼す
ることも可能である。
Although not shown in the figure, the control process is also monitored by the watchdog timer. In this case, when an abnormality is detected in the control process, the dispatch control unit prohibits the subsequent control operation and the master side. The program supervisory control device 1 is switched to a slave device for monitoring only and starts its operation, and the slave side (the program supervisory control device 1 ') is switched to operate as a master to perform a control operation. It is also possible to request processing.

【0064】図では省力されているが,制御処理(前
述),監視処理,ディスパッチ処理などもWDTによる
監視対象となる。また上記の説明においては,ウォッチ
ドッグタイマはハードウェアタイマにより構成するよう
にしたが,ソフトウァアタイマを利用して,1つのWD
Tで複数のWDTを設けた場合と同等の機能を実現する
ことも可能である。この場合,他の部分の構成に影響は
受けない。
Although omitted in the figure, control processing (described above), monitoring processing, dispatch processing, etc. are also monitored by the WDT. Further, in the above description, the watchdog timer is configured by the hardware timer, but it is possible to use one WD by using the software timer.
It is also possible to realize a function equivalent to the case where a plurality of WDTs are provided at T. In this case, the structure of other parts is not affected.

【0065】上記の説明における異常処理起動手段はハ
ードウェアによる場合について説明したが,同等機能を
ソフトウァアにより構成することも可能である。さら
に,異常記録手段の処理,縮退処理,警告出力処理を1
つにまとめて,各WDT毎に異常検出時に行うべき処理
を定義した領域を用意し,その領域の内容を変更するこ
とにより,異常処理を選択するようにしてもよい。
In the above description, the abnormality processing starting means is described as a case of using hardware, but it is also possible to configure an equivalent function by software. Further, the abnormality recording means processing, the degeneration processing, and the warning output processing are
In summary, an area in which processing to be performed at the time of abnormality detection is defined is prepared for each WDT, and the abnormality processing may be selected by changing the content of the area.

【0066】[0066]

【発明の効果】本発明によれば,任意のウォッチドッグ
タイマに対してプログラム監視の有効/無効を開発状況
に応じて自由に設定できる。そのため,例えば,開発途
中において必要以上にウォッチドッグタイマが動作して
プログラム開発の障害となるようなことをなくすことが
できる。また,監視するプログラムに応じて最適な検出
時間が設定でき,異常処理も監視するプログラムに応じ
て定めることができる等きめ細かく運用することができ
る。そのため,プログラムの異常発生による処置を異常
を生じたプログラムの内容に応じて適切にとることが可
能となる。
According to the present invention, it is possible to freely set valid / invalid of program monitoring for an arbitrary watchdog timer according to the development situation. Therefore, for example, it is possible to prevent the watchdog timer from being operated more than necessary during the development, which would hinder the program development. In addition, the optimum detection time can be set according to the program to be monitored, and the abnormality processing can be set according to the program to be monitored, so that the operation can be performed finely. Therefore, it becomes possible to take appropriate measures according to the contents of the program in which the abnormality has occurred.

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

【図1】本発明の基本構成(1) を示す図である。FIG. 1 is a diagram showing a basic configuration (1) of the present invention.

【図2】本発明の基本構成(2) を示す図である。FIG. 2 is a diagram showing a basic configuration (2) of the present invention.

【図3】本発明の基本構成(3) を示す図である。FIG. 3 is a diagram showing a basic configuration (3) of the present invention.

【図4】本発明の基本構成(1) ,(2) の動作説明図であ
る。
FIG. 4 is an operation explanatory diagram of basic configurations (1) and (2) of the present invention.

【図5】本発明の実施例を示す図である。FIG. 5 is a diagram showing an example of the present invention.

【図6】本発明の実施例を示す図である。FIG. 6 is a diagram showing an example of the present invention.

【図7】本発明の実施例を示す図である。FIG. 7 is a diagram showing an example of the present invention.

【図8】本発明の実施例を示す図である。FIG. 8 is a diagram showing an example of the present invention.

【図9】本発明の実施例を示す図である。FIG. 9 is a diagram showing an example of the present invention.

【図10】本発明の実施例を示す図である。FIG. 10 is a diagram showing an example of the present invention.

【図11】本発明の実施例を示す図である。FIG. 11 is a diagram showing an example of the present invention.

【図12】本発明の実施例を示す図である。FIG. 12 is a diagram showing an example of the present invention.

【図13】本発明の実施例の詳細構成を示す図である。FIG. 13 is a diagram showing a detailed configuration of an exemplary embodiment of the present invention.

【図14】従来のプログラム監視制御装置を示す図であ
る。
FIG. 14 is a diagram showing a conventional program monitoring control device.

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

図1,図2,図3において, 1 :プログラム監視制御装置 2−1:ウォッチドッグタイマ1 2−n:ウォッチドッグタイマn 3 :監視対象設定手段 4 :異常処理起動手段 4’:CPU 5 :異常処理定義保持部 6 :異常処理設定手段 7 :異常処理手段 8 :異常記録手段 8’:異常記録保持部 9 :処理委譲手段 9’:処理委譲手段 10:処理依頼元 10’:処理依頼手段 11:被監視プログラム 12:代替処理手段 12’:代替処理手段 12”:被監視プログラム 13:処理受付手段 14:他の装置 15:他のプログラム監視制御装置 In FIGS. 1, 2 and 3, 1: program monitoring control device 2-1: watchdog timer 1 2-n: watchdog timer n 3: monitoring target setting means 4: abnormal processing starting means 4 ′: CPU 5: Abnormal processing definition holding unit 6: Abnormal processing setting means 7: Abnormal processing means 8: Abnormal recording means 8 ': Abnormal recording holding unit 9: Processing delegating means 9': Processing delegating means 10: Processing request source 10 ': Processing requesting means 11: Monitored program 12: Substitute processing means 12 ': Substitute processing means 12 ": Monitored program 13: Processing receiving means 14: Other device 15: Other program monitoring control device

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 ウォッチドッグタイマ(2−1〜2−
n)を備えて,プログラムの監視制御を行うプログラム
監視制御装置(1) において,複数のウォッチドッグタイ
マ(2−1〜2−n)と,ウォッチドッグタイマ(2−
1〜2−n)毎にその有効もしくは無効を設定する監視
対象設定手段(3) とを備え,ウォッチドッグタイマ(2
−1〜2−n)毎に有効もしくは無効を設定することを
特徴とするプログラム監視制御装置。
1. A watchdog timer (2-1 to 2-
In the program monitoring control device (1) for monitoring and controlling the program, the plurality of watchdog timers (2-1 to 2-n) and the watchdog timer (2-
Monitoring target setting means (3) for setting valid or invalid of each of the watchdog timers (1 to 2-n).
-1 to 2-n) A program monitoring control device characterized by setting valid or invalid for each.
【請求項2】 ウォッチドッグタイマ(2) を備えてプロ
グラムの監視制御を行うプログラム監視制御装置(1) に
おいて,ウォッチドッグタイマが異常を検出した時の処
理を実行する1つもしくは複数の異常処理手段(7) と,
異常処理手段(7) を選択するための情報を保持する1つ
もしくは複数の異常処理定義保持部(5) と,異常処理定
義保持部(5) に異常処理手段(7) を選択するための情報
を設定する異常処理設定手段(6) と,ウォッチドッグタ
イマ(2) のタイムアウト信号を入力して異常処理手段
(7) を起動する異常処理起動手段(4) とを備え,ウォッ
チドッグタイマ(2) が被監視プログラム(11)の異常を検
出した時,異常処理定義保持部(5) の保持する情報に基
づいて異常処理手段(7) により異常処理を行うことを特
徴とするプログラム監視制御装置。
2. A program supervisory control device (1) comprising a watchdog timer (2) for supervisory control of a program, wherein one or a plurality of fault handlings for carrying out a process when the watchdog timer detects a fault. Means (7),
One or more abnormal processing definition holding units (5) holding information for selecting the abnormal processing means (7), and an abnormal processing definition holding unit (5) for selecting the abnormal processing means (7) Error processing setting means (6) for setting information and time-out signal of watchdog timer (2)
When the watchdog timer (2) detects an error in the monitored program (11), the error processing definition holding unit (5) stores the information stored in the error processing definition holding unit (5). A program supervisory control device characterized by performing abnormality processing by means of abnormality processing means (7) based on the above.
【請求項3】 ウォッチドッグタイマ(2) を備えてプロ
グラムの監視制御を行うプログラム監視制御装置(1) に
おいて,ウォッチドッグタイマ(2) により異常を検出さ
れた被監視プログラム(11)の異常を記録する1つもしく
は複数の異常記録保持部(8')と,ウォッチドッグタイマ
(2) のタイムアウト信号を入力して異常記録保持部(8')
に異常を記録する異常記録手段(8) と,異常を生じた
被監視プログラムの代替処理をする代替処理手段(12)を
選択する処理委譲手段(9) を備え,被監視プログラム(1
1)に対する処理依頼があった時,処理委譲手段(9) は異
常記録保持部(8') を参照し,その被監視プログラムに
対して異常記録がなされている場合は,代替処理手段(1
2)に処理を依頼することを特徴とするプログラム監視制
御装置。
3. A program monitoring controller (1) comprising a watchdog timer (2) for monitoring and controlling a program, wherein an abnormality of a monitored program (11) detected by the watchdog timer (2) is detected. One or more error record holding unit (8 ') to record and watchdog timer
Input the time-out signal of (2) and hold the abnormal record (8 ')
An abnormality recording means (8) for recording an abnormality in the monitored program and a processing delegating means (9) for selecting an alternative processing means (12) for performing an alternative process of the monitored program in which the abnormality has occurred are provided.
When there is a processing request for 1), the processing delegation means (9) refers to the abnormal record holding section (8 '), and if an abnormal record is made for the monitored program, the alternative processing means (1)
A program monitoring and control device characterized by requesting processing to 2).
【請求項4】 代替処理手段は異常を検出した自身のプ
ログラム監視制御装置の代替処理手段(12)もしくは,他
の装置(14)において代替処理を行う代替処理手段(1
2’),もしくは他のプログラム監視制御装置(15)にお
いて同じ処理を行う被監視プログラム(12") であること
を特徴とするプログラム監視制御装置。
4. The alternative processing means is an alternative processing means (12) of its own program monitoring and control device which has detected an abnormality, or an alternative processing means (1) for performing alternative processing in another device (14).
2 '), or a monitored program (12 ") which is the monitored program (12") that performs the same processing in another program monitoring controller (15).
【請求項5】 請求項1,もしくは請求項2,もしくは
請求項3のプログラム監視制御装置から2つもしくは3
つを組み合わせてプログラム監視制御を行うことを特徴
するプログラム監視制御装置。
5. The program monitoring controller according to claim 1, 2 or 3, or 2 or 3
A program supervisory control device characterized by performing program supervisory control by combining two.
JP4191748A 1992-07-20 1992-07-20 Program monitor controller Withdrawn JPH0635758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4191748A JPH0635758A (en) 1992-07-20 1992-07-20 Program monitor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4191748A JPH0635758A (en) 1992-07-20 1992-07-20 Program monitor controller

Publications (1)

Publication Number Publication Date
JPH0635758A true JPH0635758A (en) 1994-02-10

Family

ID=16279851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4191748A Withdrawn JPH0635758A (en) 1992-07-20 1992-07-20 Program monitor controller

Country Status (1)

Country Link
JP (1) JPH0635758A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163239A (en) * 1997-08-25 2000-12-19 Mitsubishi Denki Kabushiki Kaisha Duty driven solenoid valve
JP2008513900A (en) * 2004-09-25 2008-05-01 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method for processing a computer program on a computer system
JP2008513899A (en) * 2004-09-24 2008-05-01 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method for processing a computer program on a computer system
JP2012022469A (en) * 2010-07-13 2012-02-02 Toshiba Tec Corp Electronic apparatus and control program thereof
JP2018132956A (en) * 2017-02-15 2018-08-23 株式会社デンソーテン Control unit and control program updating method
US11255400B2 (en) 2016-06-24 2022-02-22 Hitachi Astemo, Ltd. Damping force adjustable shock absorber

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163239A (en) * 1997-08-25 2000-12-19 Mitsubishi Denki Kabushiki Kaisha Duty driven solenoid valve
JP2008513899A (en) * 2004-09-24 2008-05-01 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method for processing a computer program on a computer system
JP2008513900A (en) * 2004-09-25 2008-05-01 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method for processing a computer program on a computer system
US8316261B2 (en) 2004-09-25 2012-11-20 Robert Bosch Gmbh Method for running a computer program on a computer system
JP2012022469A (en) * 2010-07-13 2012-02-02 Toshiba Tec Corp Electronic apparatus and control program thereof
US11255400B2 (en) 2016-06-24 2022-02-22 Hitachi Astemo, Ltd. Damping force adjustable shock absorber
US11668366B2 (en) 2016-06-24 2023-06-06 Hitachi Astemo, Ltd. Damping force adjustable shock absorber
JP2018132956A (en) * 2017-02-15 2018-08-23 株式会社デンソーテン Control unit and control program updating method

Similar Documents

Publication Publication Date Title
US7418627B2 (en) Cluster system wherein failover reset signals are sent from nodes according to their priority
JPH1055337A (en) Device and method for bus recovery of multi-master bus system
JPH0831047B2 (en) Apparatus and method for inter-partition control in a logical partition data processor
US7925922B2 (en) Failover method and system for a computer system having clustering configuration
JP5998577B2 (en) Cluster monitoring apparatus, cluster monitoring method, and program
JPH0635758A (en) Program monitor controller
JPH11203254A (en) Shared process control device and machine readable recording medium for storing program
JP2814880B2 (en) Control device for computer system constituted by a plurality of CPUs having different instruction characteristics
JP2656643B2 (en) Log data collection method and device
JP6127039B2 (en) Method, apparatus, and system for cluster processing in cluster system
JP2658683B2 (en) System stall monitoring and control method for mutual standby system
JP2560620B2 (en) Exclusive control device with time limit
JP6540142B2 (en) Baseboard Management Controller, Information Processing System, and Baseboard Management Controller Processing Execution Method
JPH02291039A (en) Memory control system
JPH05204689A (en) Control device
JPS62202249A (en) Shared resource access guard system among plural host computers
JPH11110325A (en) Information processing system
JP3099355B2 (en) I / O processor
JPH10116262A (en) Parallel computer, processor element network, and recording medium where program for parallel computer is recorded
JPH0223445A (en) Bus supervisory and controlling system
JPH03116337A (en) Mutual standby business processing device
JPH05216792A (en) System for controlling service request between processors
JPH05252260A (en) Initial partial setting system
JPH11143728A (en) Multi-failure processing system
JPS62106564A (en) Using/spare processor switching control system for information processing 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: 19991005