JPS6041777B2 - Program processing monitoring method - Google Patents
Program processing monitoring methodInfo
- Publication number
- JPS6041777B2 JPS6041777B2 JP53010952A JP1095278A JPS6041777B2 JP S6041777 B2 JPS6041777 B2 JP S6041777B2 JP 53010952 A JP53010952 A JP 53010952A JP 1095278 A JP1095278 A JP 1095278A JP S6041777 B2 JPS6041777 B2 JP S6041777B2
- Authority
- JP
- Japan
- Prior art keywords
- timer
- clock
- count
- monitoring
- reset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
【発明の詳細な説明】 本発明はCPUのプログラム処理監視方式に関する。[Detailed description of the invention] The present invention relates to a CPU program processing monitoring method.
多重並行処理のリアルタイム制御システムでは予想出
来ない原因によりプログラムが暴走したり、連続的にル
ープ状態に入り込んで正常な制御動作を行わず、最悪の
場合は誤動作による制御対象システムの破壊等の事態が
起る可能性がある。リアルタイムのシステムにおいては
、常に正常な処理動作を行つているかを監視し、異常時
にはフェイルセーフ装置を動作させなければならない。
従来プログラムのメインループの処理時間より少し長い
時間でタイマアップする監視タイマを設け、プログラム
の途中で、1ループごとにタイマリセット命令を行いタ
イマがタイムアップすると異常と判断して警報を出す監
視方式がある。この方式ではCPUとその周辺機器で共
通に使用するクロックが障害になると、プログラム処理
の異常は検出不能になるし、それぞれ別個のクロックを
使用している場合は、両方のクロックが正常であるこ
とを確める別の手段が必要である。 本発明はこのよう
な欠点を除くプログラム処理監視方式の提供を目的とし
、周辺機器のクロックで第一の監視タイマおよび第二の
監視タイマのカウントを進ませ、また、同クロックで第
三の監視タイマをリセットを行なわせ、また、プログラ
ムの途中に第一の監視タイマのリセット命令、第二の監
視タイマのリセット命令および第三の監視タイマのカウ
ントを進める命令を挿入し、CPUと周辺機器用クロッ
クとを相互監視することを特徴とする。In a real-time control system with multi-parallel processing, the program may run out of control due to unpredictable causes, enter into a continuous loop state and do not perform normal control operations, and in the worst case, the controlled system may be destroyed due to malfunction. It could happen. In a real-time system, it is necessary to constantly monitor whether normal processing operations are being performed, and to operate a fail-safe device in the event of an abnormality.
Conventional monitoring method that sets up a monitoring timer that times out in a slightly longer time than the processing time of the main loop of the program, issues a timer reset command for each loop during the program, and when the timer times out, it determines that there is an abnormality and issues an alarm. There is. With this method, if the clock commonly used by the CPU and its peripherals fails, the abnormality in program processing cannot be detected, and if separate clocks are used for each, both clocks must be normal. We need another means to confirm this. The present invention aims to provide a program processing monitoring method that eliminates such drawbacks, and uses the clock of a peripheral device to advance the counts of a first monitoring timer and a second monitoring timer, and also uses the same clock to advance a third monitoring timer. In addition, in the middle of the program, insert an instruction to reset the first watchdog timer, a reset instruction to reset the second watchdog timer, and an instruction to advance the count of the third watchdog timer. It is characterized by mutual monitoring with the clock.
本方式でプログラムを動作させると、正常なループを
正常な時間で動作していると、第一、第二の監視タイマ
はクロックによつてカウントは進むが、カウントアップ
するよりも短い時間の間に監視タイマリセット命令が行
われ、カウントがクリアされる。When a program is run using this method, if a normal loop is running at a normal time, the first and second watchdog timers will continue to count according to the clock, but for a shorter time than the time it takes to count up. A monitoring timer reset instruction is executed to clear the count.
また第三の監視タイマは、CPUの命令によつてカウン
トが進むが周辺機器用クロック−によつてクリアされて
カウントアップしない。周辺用クロックが正常でCPU
が異常なループを回つた場合、第一のタイマリセット命
令もしくは第二のタイマリセット命令が一定の時間たつ
ても出ないため、第一もしくは第二の監視タイマがタイ
ムアップしてシステム警報を発する。周辺機器用クロッ
クが異常でCPUが正常動作と行つている場合、第三の
監視タイマはCPUの命令によつてカウントは進んでタ
イムアップしてシステム警報を発する。以下、図面を用
いて詳しく説明する。Further, the third monitoring timer is counted up by a command from the CPU, but is cleared by the peripheral device clock and does not count up. Peripheral clock is normal and CPU
If the timer goes through an abnormal loop, the first or second timer reset command is not issued even after a certain period of time, so the first or second monitoring timer times out and issues a system alarm. . When the peripheral device clock is abnormal and the CPU is operating normally, the third monitoring timer advances the count according to the CPU's command, and when the timer expires, a system alarm is issued. This will be explained in detail below using the drawings.
第1図は従来の方式で13,17はタイマ、12,16
はリセット入力端子、110,111はクロック入力端
子、14,18はカウントアップ出力端子、113はオ
ア回路を示す。19端子にクロックを与えると13,1
7はカウントを進める。Figure 1 shows the conventional system, 13 and 17 are timers, 12 and 16
110 and 111 are clock input terminals, 14 and 18 are count-up output terminals, and 113 is an OR circuit. When a clock is applied to the 19 terminal, 13,1
7 advances the count.
もし端子11および端子15に定期的にリセット信号が
与えられていると端子14および端子18には、カウン
トアップ出力が出力されず、端子112に警報は出力さ
れない。いま端子11に与えられていた定期的リセット
信号が停止すると、タイマ13はタイムアツフ化て端子
14にタイムアップ出力が出る。113のオア回路が働
き端子112に警報を出力する。If a reset signal is periodically applied to terminals 11 and 15, no count-up output will be output to terminals 14 and 18, and no alarm will be output to terminal 112. When the periodic reset signal currently applied to the terminal 11 stops, the timer 13 becomes time-up and a time-up output is output to the terminal 14. The OR circuit 113 operates and outputs an alarm to the terminal 112.
一方端子15に与えられるリセット信号が停止しても同
様である。しかし従来の方式では19に与えられるクロ
ックが停止すれば監視の機能を果さない。第2図は本発
明による方式で23,27,217はタイマ、22,2
6,214はリセット入力端子、210,211,21
6はクロック入力端子、213はオア回路、219は微
分回路を示す。On the other hand, the same holds true even if the reset signal applied to the terminal 15 is stopped. However, in the conventional system, if the clock given to 19 stops, the monitoring function cannot be performed. FIG. 2 shows the method according to the present invention, 23, 27, 217 are timers, 22, 2
6, 214 are reset input terminals, 210, 211, 21
6 is a clock input terminal, 213 is an OR circuit, and 219 is a differential circuit.
端子29に入力されたクロックがクロック入力端子21
0,211に与えられ、23,27のタイマがカウント
を進め、21,25から定期的に入力されるカウントリ
セット信号によりタイマ23,27は、第1図で説明し
たと同じようにカウントアップしない。一方、217の
タイマは215から入力されるタイマ進行命令でカウン
トが進むが、29から入力されたクロックにより端子2
14にリセット命令が入り218にカウントアップ出力
が出力されない。端子21もしくは端子25に定期的に
リセット命令が来なくなれば、第1図の場合と同様にタ
イマ23もしくは27がタイムアップして端子212に
警報が出る。一方、端子29のクロックが断になればタ
イマ23,27は停止して24,28にタイムアップ出
力が出ないが、215にタイマ進行命令が出るごとにタ
イマのカウントは進み、カウントアップして218にカ
ウントアップ出力が出て、213のオア回路でオアがと
られ、212に警報出力が出る。219はクロックがリ
セット側の極性で障害になつたときにも、動作するよう
微分回路を採用している。The clock input to the terminal 29 is the clock input terminal 21
0 and 211, the timers 23 and 27 advance the count, and due to the count reset signal periodically input from 21 and 25, the timers 23 and 27 do not count up in the same way as explained in Fig. 1. . On the other hand, the timer 217 advances the count by the timer advance instruction input from 215, but the clock input from 29 causes the timer 217 to continue counting.
A reset command is input to 14, and no count-up output is output to 218. If the reset command does not come regularly to the terminal 21 or 25, the timer 23 or 27 times out and an alarm is output to the terminal 212, as in the case of FIG. On the other hand, if the clock at terminal 29 is cut off, timers 23 and 27 will stop and no time-up output will be output to 24 and 28, but each time a timer advance command is issued to 215, the timer count will advance and count up. A count up output is output at 218, an OR is taken by the OR circuit at 213, and an alarm output is output at 212. The 219 employs a differentiating circuit so that it operates even when the clock has a fault on the reset side polarity.
第3図に本システムのプログラムのフローチャートを示
す。FIG. 3 shows a flowchart of the program of this system.
クロックでカウントが進み命令でリセットするタイマは
、複数個設定し、プログラムの進行を精密に監視するこ
とが可能である。本システムの周辺機器用クロックは自
己システムCPU動作用のクロックとは別のクロックを
作成して、精度の高いシステムを作ることが出来るが、
フエイルセイフ装置の作動時間に余裕のある場合は、相
作側装置から伝送されて来るパルスもしくは商用電源か
ら50Hz/60Hzを採取してクロックとし、システ
ムの簡素化も図れる。また精度の高いループ監視をする
場合は、第一、第二の監視タイマに相当するタイマを増
やし、ループの各所で監視することが可能である。図面
の簡単な説明第1図は従来の監視方式を示し、第2図は
本発明による一実施例を示し、第3図はシステムとして
のプログラムのフローチャートを示す。It is possible to set multiple timers whose counts are advanced by a clock and reset by a command to precisely monitor the progress of the program. It is possible to create a highly accurate system by creating a clock for the peripheral devices of this system that is different from the clock for operating the own system CPU.
If there is sufficient operating time for the fail-safe device, the system can be simplified by collecting pulses transmitted from the companion device or 50 Hz/60 Hz from the commercial power source as a clock. In addition, when performing highly accurate loop monitoring, it is possible to increase the number of timers corresponding to the first and second monitoring timers and monitor each part of the loop. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 shows a conventional monitoring system, FIG. 2 shows an embodiment according to the present invention, and FIG. 3 shows a flowchart of a program as a system.
23,27,217はタイマ、22,26,214はリ
セット入力端子、210,211,216はクロック入
力端子、213はオア回路、219は微分回路。23, 27, 217 are timers, 22, 26, 214 are reset input terminals, 210, 211, 216 are clock input terminals, 213 is an OR circuit, and 219 is a differential circuit.
Claims (1)
二の監視タイマのカウントを進ませ、該クロックで第三
の監視タイマをリセットを行なわせ、CPUのプログラ
ムの途中に該第一の監視タイマのリセット命令、該第二
の監視タイマのリセット命令および該第三の監視タイマ
のカウントを進める命令を挿入し、該第一、第二および
第三の監視タイマのカウントアップ信号を警報として用
いるようにした、プログラム処理監視方式。1. Advance the count of the first supervisory timer and the second supervisory timer using the clock for the peripheral device, reset the third supervisory timer using the clock, and set the first supervisory timer in the middle of the CPU program. , a reset instruction for the second monitoring timer, and an instruction to advance the count of the third monitoring timer, and the count-up signals of the first, second, and third monitoring timers are used as an alarm. program processing monitoring method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP53010952A JPS6041777B2 (en) | 1978-02-01 | 1978-02-01 | Program processing monitoring method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP53010952A JPS6041777B2 (en) | 1978-02-01 | 1978-02-01 | Program processing monitoring method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS54103647A JPS54103647A (en) | 1979-08-15 |
| JPS6041777B2 true JPS6041777B2 (en) | 1985-09-18 |
Family
ID=11764520
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP53010952A Expired JPS6041777B2 (en) | 1978-02-01 | 1978-02-01 | Program processing monitoring method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6041777B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0359383A (en) * | 1989-07-28 | 1991-03-14 | Sanyo Electric Co Ltd | Low-temperature chamber |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5773418A (en) * | 1980-10-27 | 1982-05-08 | Yamatake Honeywell Co Ltd | Watchdog timer |
| JPS58169259A (en) * | 1982-03-31 | 1983-10-05 | Nec Home Electronics Ltd | Monitoring circuit for operation of microcomputer |
| JPS62259149A (en) * | 1986-05-02 | 1987-11-11 | Toshiba Corp | Runaway release system |
| JPH05299315A (en) * | 1992-04-20 | 1993-11-12 | Nec Kyushu Ltd | Manufacturing equipment of semiconductor device |
-
1978
- 1978-02-01 JP JP53010952A patent/JPS6041777B2/en not_active Expired
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0359383A (en) * | 1989-07-28 | 1991-03-14 | Sanyo Electric Co Ltd | Low-temperature chamber |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS54103647A (en) | 1979-08-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6041777B2 (en) | Program processing monitoring method | |
| JPS60258656A (en) | Microprocessor reset circuit | |
| JPS5920061A (en) | Watchdog timer | |
| JPS54162940A (en) | Computer supervisory device | |
| JPH0740233B2 (en) | Data processor re-start control method | |
| JPH05233374A (en) | Watchdog timer device | |
| JPS62145336A (en) | Program loop detection system for computer system | |
| JPH04148246A (en) | Watchdog timer | |
| JPH04155543A (en) | Self detecting system for microcomputer malfunction | |
| JPS62168204A (en) | digital control device | |
| JPH0218633A (en) | Runaway monitor/restart circuit for microprocessor | |
| JPH04182842A (en) | Timer monitor system | |
| JPH01293037A (en) | Monitoring device | |
| JP2749994B2 (en) | Numerical control unit | |
| JPS626262B2 (en) | ||
| JPS6320548A (en) | Supervisor/resetting circuit for cpu | |
| JPS5835291B2 (en) | Automatic reset device for microprocessor runaway | |
| JPS55150051A (en) | Fault detecting system | |
| JPS5868166A (en) | Processor fault monitoring device | |
| JPS605356A (en) | Self-monitoring timer method | |
| JPS61148565A (en) | Restarting method of building management system | |
| JPH0289136A (en) | Re-starting system for microprocessor | |
| JPS5680717A (en) | Actuation control system of arithmetic processor | |
| JPS62123531A (en) | Cpu supervisory unit | |
| JPS5821955A (en) | Emergency controlling system |