JPH06324914A - Runaway detecting method for computer - Google Patents

Runaway detecting method for computer

Info

Publication number
JPH06324914A
JPH06324914A JP5111591A JP11159193A JPH06324914A JP H06324914 A JPH06324914 A JP H06324914A JP 5111591 A JP5111591 A JP 5111591A JP 11159193 A JP11159193 A JP 11159193A JP H06324914 A JPH06324914 A JP H06324914A
Authority
JP
Japan
Prior art keywords
program
computer
runaway
identification information
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5111591A
Other languages
Japanese (ja)
Inventor
Kazuhiro Fujita
和弘 藤田
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP5111591A priority Critical patent/JPH06324914A/en
Publication of JPH06324914A publication Critical patent/JPH06324914A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To detect the runaway of a computer without using any watchdog timer. CONSTITUTION:A check program, namely, numerical values of a RAM 15 are read out, deciding whether the read numerical values are arranged in a certain fixed order or not and the check program for writing new numerical values is written at the plural positions of a program stored in a program memory 4. When a CPU 3 normally executes the program of the program memory 4, according to the check program, the numerical values are written in the RAM 15 successively from 1, 2 and 3. The CPU 3 confirms that the numerical values of the RAM 15 are regularly changed in the ascending order by the decision processing of the check program. When it is detected that this regularity is broken, the CPU 3 regards the generation of runaway in the program executed by itself and starts a program for dealing with the runaway.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータ、特に、
マイクロコンピュータに好適なコンピュータの暴走検出
方法に関する。
BACKGROUND OF THE INVENTION The present invention relates to computers, and in particular to
The present invention relates to a computer runaway detection method suitable for a microcomputer.

【0002】[0002]

【従来の技術】従来、マイクロコンピュータを用いた装
置、たとえば、プログラマブルコントローラではマイク
ロコンピュータの暴走(プログラムの実行順序が不定に
なること)を検出する機能を搭載し、この暴走を検出し
て装置全体を停止する制御を行っている。マイクロコン
ピュータが暴走する原因は、プリント板のパターン短
絡、解放や部品のハンダ付け不良または外来ノイズ等が
要因となっている。マイクロコンピュータに限らずコン
ピュータ一般の暴走を検知する方法としては、ウオッチ
ドッグタイマーを用いる方法がよく知られている。すな
わちコンピュータ側からほぼ一定周期で、ウオッチドッ
グタイマーにリセット(計数値を初期化すること)をか
ける。このため、コンピュータが正常に作動している間
は、ウオッチドッグタイマーは、タイムアップすること
はない。しかしながら、何等かの原因でマイクロコンピ
ュータが暴走すると、ウオッチドッグタイマーのリセッ
ト周期が変化するので、ウオッチドッグタイマーがタイ
ムアップし、コンピュータの暴走が検知される。通常、
コンピュータ側でウオッチドッグタイマーをリセットす
るためには、図5に示すようなループプログラムでは実
行プログラム内の複数箇所に、リセット信号を発生する
プログラム(タイマーリフレッシュと表記)を予め挿入
しておく。
2. Description of the Related Art Conventionally, a device using a microcomputer, for example, a programmable controller is equipped with a function of detecting a runaway of a microcomputer (an uncertain order of execution of programs), and this runaway is detected to detect the entire device. Control to stop. The cause of the runaway of the microcomputer is caused by a pattern short circuit, release of the printed board, defective soldering of parts, external noise, or the like. A method using a watchdog timer is well known as a method for detecting runaway in general computers, not limited to microcomputers. That is, the watchdog timer is reset (count value is initialized) from the computer side at a substantially constant cycle. Therefore, the watchdog timer does not expire while the computer is operating normally. However, if the microcomputer runs out of control for some reason, the reset period of the watchdog timer changes, so the watchdog timer times out and the runaway of the computer is detected. Normal,
In order to reset the watchdog timer on the computer side, in a loop program as shown in FIG. 5, a program for generating a reset signal (denoted as timer refresh) is inserted in advance at a plurality of points in the execution program.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、タイマ
ーリフレッシュ用のプログラムの設置間隔は、このプロ
グラムの実行間隔時間がウオッチドッグタイマーのタイ
ムアップ時間以内となるように設置しなければならず、
被設置側のプログラム内容が制限を受けるという不具合
があった。また、図5の第3プログラムの終了後に暴走
が発生し、第6プログラムに実行プログラムが移行した
場合には従来方法ではウオッチドッグタイマーはタイム
アップせず、暴走を検知できないという不具合があっ
た。
However, the interval for installing the program for timer refresh must be set so that the execution interval time of this program is within the time-up time of the watchdog timer,
There was a problem that the program contents on the installed side were restricted. Further, when a runaway occurs after the completion of the third program in FIG. 5 and the execution program is transferred to the sixth program, the watchdog timer does not time up and the runaway cannot be detected by the conventional method.

【0004】そこで、本発明の第1の目的は、上述の点
に鑑みて、ウオッチドッグタイマーを用いることなく非
同期でコンピュータの暴走を検出できるコンピュータの
暴走検出方法を提供することにある。
Therefore, in view of the above points, a first object of the present invention is to provide a computer runaway detection method capable of asynchronously detecting a computer runaway without using a watchdog timer.

【0005】本発明の第2の目的は、ウオッチドッグタ
イマーを用いる暴走検出方法の暴走検知精度をさらに向
上させるコンピュータの暴走検出方法を提供することに
ある。
A second object of the present invention is to provide a runaway detecting method for a computer which further improves the runaway detecting accuracy of the runaway detecting method using a watchdog timer.

【0006】[0006]

【課題を解決するための手段】このような目的を達成す
るために、請求項1の発明は、コンピュータのプログラ
ムの実行順序が暴走したことを検出するためのコンピュ
ータの暴走検出方法において、前記プログラム内の特定
の複数の位置およびそれら位置の前記コンピュータの実
行順序に対応させて、それぞれ異なる識別情報および当
該識別情報の接続順序を予め定めておき、前記コンピュ
ータが前記プログラムの実行を開始するときに、前記接
続順序において第1番目の識別情報を初期情報としてメ
モリに記憶しておき、前記コンピュータの前記プログラ
ムの実行位置が前記特定の複数の位置のいずれか1つの
特定位置に到達するごとに、前記コンピュータは前記メ
モリに記憶された識別情報と、当該特定位置に対応する
識別情報とが一致しているか否かの比較判定を行い、一
致判定が得られた場合は正常作動とみなして前記コンピ
ュータは現在の特定位置の次の接続順序にあたる特定位
置の識別情報を前記メモリに書き込みし、不一致判定が
得られた場合は前記コンピュータは暴走発生とみなすこ
とを特徴とする。
In order to achieve such an object, the invention of claim 1 is a computer runaway detecting method for detecting that the execution sequence of a computer program has run out of control. Corresponding to a plurality of specific positions in the position and the execution order of the computer at those positions, when different identification information and the connection order of the identification information are determined in advance, and when the computer starts the execution of the program. , The first identification information in the connection order is stored in the memory as initial information, and each time the execution position of the program of the computer reaches any one specific position of the specific plurality of positions, The computer matches the identification information stored in the memory with the identification information corresponding to the specific position. If a match is obtained, it is regarded as normal operation, and the computer writes the identification information of the specific position corresponding to the next connection sequence of the current specific position in the memory to determine the mismatch. Is obtained, the computer considers that a runaway has occurred.

【0007】請求項2の発明は、前記不一致判定が得ら
れた場合は前記コンピュータは、暴走発生に対処するた
めに予め定められたプログラムを起動することを特徴と
する。
The invention of claim 2 is characterized in that, when the inconsistency determination is obtained, the computer activates a predetermined program for coping with the occurrence of runaway.

【0008】[0008]

【作用】請求項1の発明では、プログラムの実行順序が
正常の場合は、メモリに記憶される識別情報の順序は予
め定めた順序の通りとなるが、暴走が発生した場合は、
予め定めた順序とはならず、このことがコンピュータの
識別情報の比較判定により検出される。
According to the first aspect of the invention, when the execution order of the programs is normal, the order of the identification information stored in the memory is in a predetermined order, but when a runaway occurs,
The order is not predetermined and this is detected by the comparison judgment of the identification information of the computer.

【0009】請求項2の発明では、暴走検出時に暴走に
対処するプログラムを起動、すなわちプログラムの読み
出し開始アドレスを設定することで、暴走中のコンピュ
ータでも、暴走異常を自動解除することができる。
According to the second aspect of the present invention, when a runaway is detected, a program for coping with the runaway is activated, that is, by setting the read start address of the program, the runaway abnormality can be automatically canceled even in a computer that is running out of control.

【0010】[0010]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0011】<第1実施例>本発明を適用したプログラ
マブルコントローラシステムのシステム構成を図1に示
す。
<First Embodiment> FIG. 1 shows the system configuration of a programmable controller system to which the present invention is applied.

【0012】図1において、プログラマブルコントロー
ラ1内で用いられる1チップのマイクロコンピュータ2
は中央演算処理装置(CPU)3、プログラムメモリ
4、ランダムアクセスメモリ(RAM)5、入出力ポー
ト8、バス拡張バッファ10を有している。なお、監視
用タイマー6は後述の第2実施例において用いられる。
これらの回路は内部バス9に共通接続されている。CP
U3はプログラムメモリ4内のシステムプログラムに従
ってシステムの制御を行う。プログラムメモリ4内に
は、CPU3の実行するシステムプログラムの他、演算
に用いる固定情報を格納する。
In FIG. 1, a one-chip microcomputer 2 used in the programmable controller 1
Has a central processing unit (CPU) 3, a program memory 4, a random access memory (RAM) 5, an input / output port 8 and a bus expansion buffer 10. The monitoring timer 6 is used in the second embodiment described later.
These circuits are commonly connected to the internal bus 9. CP
U3 controls the system according to the system program in the program memory 4. In the program memory 4, in addition to the system program executed by the CPU 3, fixed information used for calculation is stored.

【0013】RAM5にはCPU3に対する入出力情報
を一時記憶する。入出力ポート8は出力回路11、入力
回路12を介してプログラマブルコントローラシステム
1の制御の対象となる電子機器から入出力される情報を
CPU3に転送する。バス拡張バッファ10は装着の拡
張プログラムメモリ13とCPU3との間で情報の転送
を行う。拡張プログラムメモリ13はバス拡張バッファ
10と外部バス14により接続する。出力回路11は制
御対象の電子機器へ送る情報信号をCPU3の処理可能
な制御信号から信号伝送に好適な信号形態に変換する。
入力回路12は伝送信号を制御信号に変換する。CPU
3は入力回路12から入力された情報信号を用いて、電
子機器の制御内容を決定し、その動作を指示する動作制
御信号を出力回路11を介してで電子機器に送信する。
RAM15は外部バス14に接続された外付きのRAM
であり、CPU3に対する入出力データを一時記憶する
他、本発明に関わる暴走監視に用いる数値形態の識別情
報を格納する。
Input / output information for the CPU 3 is temporarily stored in the RAM 5. The input / output port 8 transfers information input / output from an electronic device to be controlled by the programmable controller system 1 to the CPU 3 via the output circuit 11 and the input circuit 12. The bus expansion buffer 10 transfers information between the installed expansion program memory 13 and the CPU 3. The expansion program memory 13 is connected to the bus expansion buffer 10 by the external bus 14. The output circuit 11 converts an information signal sent to the electronic device to be controlled from a control signal processable by the CPU 3 into a signal form suitable for signal transmission.
The input circuit 12 converts the transmission signal into a control signal. CPU
3 uses the information signal input from the input circuit 12 to determine the control contents of the electronic device, and sends an operation control signal for instructing the operation to the electronic device via the output circuit 11.
RAM 15 is an external RAM connected to the external bus 14.
In addition to temporarily storing the input / output data with respect to the CPU 3, it also stores identification information in a numerical form used for runaway monitoring according to the present invention.

【0014】このような構成における、暴走検出処理を
図2のフローチャートを参照して説明する。図2のフロ
ーチャートが示すシステムプログラムの処理手順は実際
にはCPU3の実行可能なプログラム言語で記載されて
いるので、説明の都合上、図2では機能的に表現してい
る。このシステムプログラムは、電源投入時に実行する
第1プログラムと、以後、ループ処理により順次似繰り
返し実行する第2〜第11プログラムで構成されてい
る。第2〜第11プログラム内の任意のプログラム内の
複数の特定位置には本発明に関わる暴走検知用の5つの
チェックプログラムがそれぞれ設けられている。特定位
置に対応する識別情報およびその接続順序として数値1
→2→3→4→5→1の接続順序が予め定められてい
る。このチェックプログラムの記載位置はユーザの所望
の位置に設定すれば良く、なんらの制限を受けない。第
1プログラム〜第10プログラムはプログラムメモリ4
に格納され、第11プログラムは拡張プログラムメモリ
13に格納されているものとする。
The runaway detection processing in such a configuration will be described with reference to the flowchart of FIG. The processing procedure of the system program shown by the flowchart of FIG. 2 is actually described in a program language that can be executed by the CPU 3, and therefore is represented functionally in FIG. 2 for convenience of description. This system program is composed of a first program that is executed when the power is turned on, and thereafter, second to eleventh programs that are sequentially and repeatedly executed by loop processing. Five check programs for runaway detection according to the present invention are provided at a plurality of specific positions in any program of the second to eleventh programs. Numerical value 1 as identification information corresponding to a specific position and its connection order
The connection order of → 2 → 3 → 4 → 5 → 1 is predetermined. The position described in the check program may be set to a position desired by the user, and is not limited in any way. The first to tenth programs are the program memory 4
And the eleventh program is stored in the extended program memory 13.

【0015】第n番目のチェックプログラムの内容を図
3に示す。このプログラムの処理内容は以下の通りであ
る。すなわち、RAM15の監視データに対する読み出
しアドレスを設定し、監視データを読み出す(S1
0)。読み出された監視データの示す数値と、上記接続
順序を示す数値としてチェックプログラム上で規定され
ている数値nが一致しているか否かの判定を行う(S2
0)。肯定(YES)判定が得られた場合は、数値nに
1を加えた値を新たな監視データ(請求項1の発明の現
在の特定位置の次の接続順序にあたる特定位置の識別情
報に対応)として書き込みアドレスを設定し、RAM1
5に書き込む(S30)。S20の判定処理で否定(N
O)判定が得られた場合は、暴走発生と判断し、暴走に
対処する処理、たとえばシステム内の回路を停止、また
はリセットする処理へジャンプすることにより暴走に対
処するプログラムを起動する。
The contents of the nth check program are shown in FIG. The processing contents of this program are as follows. That is, a read address for the monitoring data in the RAM 15 is set and the monitoring data is read (S1
0). It is determined whether or not the numerical value indicated by the read monitoring data and the numerical value n defined on the check program as the numerical value indicating the above connection order match (S2).
0). If an affirmative (YES) determination is obtained, the value obtained by adding 1 to the numerical value n is newly monitored data (corresponding to the identification information of the specific position corresponding to the connection sequence next to the current specific position of the invention of claim 1). Set the write address as
5 is written (S30). Negative in the determination process of S20 (N
O) When the determination is obtained, it is determined that a runaway has occurred, and a program for handling the runaway is activated by jumping to a process for handling the runaway, for example, a process for stopping or resetting a circuit in the system.

【0016】このような制御手順をCPU3が正常に実
行している場合、CPU3が第2プログラムの実行の際
に、第1回目のチェックプログラムの実行が行われる。
このとき、CPU3はRAM15から電源投入時にCP
U3により初期化の数値1を読み出し、プログラム上で
定められている基準値1と比較する(図3のS10〜S
20)。比較判定の結果として一致判定が得られるの
で、CPU3は正常作動と判断し、RAM15に次回の
判定に用いる数値2を格納する(図3のS30)。この
ようにして、CPU3はチェックプログラムにおいて正
常判定が得られる毎にRAM15に格納する数値を1だ
け更新してゆく。またS20の判定において用いられる
もう一方の基準値も1づつ変化するように定められてい
る。なお最終位置のチェックプログラムの時には、次回
の判定に用いる数値は、1に設定される。
When the CPU 3 normally executes such a control procedure, the first check program is executed when the CPU 3 executes the second program.
At this time, the CPU 3 sends the CP from the RAM 15 when the power is turned on.
The initialization value 1 is read by U3 and compared with the reference value 1 defined on the program (S10 to S in FIG. 3).
20). Since a coincidence judgment is obtained as a result of the comparison judgment, the CPU 3 judges that the operation is normal, and stores the numerical value 2 used for the next judgment in the RAM 15 (S30 in FIG. 3). In this way, the CPU 3 updates the numerical value stored in the RAM 15 by 1 each time a normal judgment is obtained in the check program. The other reference value used in the determination of S20 is also set to change by one. In the final position check program, the numerical value used for the next determination is set to 1.

【0017】従って、CPU3が正常作動している間
は、RAM15に更新的に格納される数値の順序は予め
定められた数値の順序、すなわち、1→2→3→4・・
・と変化していく。
Therefore, while the CPU 3 is operating normally, the order of the numerical values renewedly stored in the RAM 15 is a predetermined numerical order, that is, 1 → 2 → 3 → 4 ...
・ It will change.

【0018】CPU3が図5と同様に図2において暴走
して第3プログラムから第6プログラムに移行した場
合、第3チェックプログラムにおいてRAM15の格納
値2(第1チェックプログラムにより設定された値)
と、第3チェックプログラムに割り当てた基準値3の比
較が行われる(図3のS20)。この比較判定は不一致
となるので、CPU3は暴走発生と判断(見なし)し、
異常に対処する処理に移行する。
When the CPU 3 runs out of control in FIG. 2 as in FIG. 5 and shifts from the third program to the sixth program, the stored value 2 in the RAM 15 in the third check program (the value set by the first check program).
And the reference value 3 assigned to the third check program are compared (S20 in FIG. 3). Since this comparison judgment does not match, the CPU 3 judges (considers) that a runaway has occurred,
Move to processing to deal with the abnormality.

【0019】<第2実施例>第1実施例は、チェックプ
ログラムが記載された位置に割り当てた基準値と、前回
のチェックプログラムにより設定された判定用数値を比
較することにより暴走チェックを行い、そのためのチェ
ックプログラムをメインプログラム上の任意の位置に置
くことができるようにした例である。この例では、プロ
グラムの実行が停止した場合にはその異常を検知できな
い。そこで、停止異常を検出できるように従来のウオッ
チドッグタイマー方式と併用するようにした第2実施例
を次に説明する。第2実施例では、図1の監視用タイマ
ー6が設けられており、カウントアップ信号7がCPU
3の割り込み入力端子(マスクできない最優先の割り込
み入力端子)に入力される。またCPU3の実行するチ
ェックプログラムを図4に示す。このチェックプログラ
ムの実行間隔はタイマー6のカウントアップ時間よりも
小さい時間となるようにその記載位置を定める。図4の
チェックプログラムは図3のチェックプログラムにタイ
マーリフレッシュ処理(図4のS40)を加えた例であ
る。この例では、数値比較により正常が確認されると、
タイマー6のリフレッシュ、すなわち、計数値の初期化
が行われる。また、タイマー6がカウントアップした場
合にはカウントアップ信号の割り込み入力により異常処
理用プログラムが起動される。第2実施例ではチェック
プログラムの全てにタイマーリフレッシュ処理を記載し
ているが、タイマー6のカウントアップ時間を長く取れ
ば、このカウントアップ時間に対応させてタイマーリフ
レッシュ処理を行うチェクプログラムを適宜選択する。
このようなチェックプログラムを用いると、CPU3の
異常停止、たとえばループ処理が発生するような状態に
なると、タイマー6により異常が検知される。
<Second Embodiment> In the first embodiment, a runaway check is performed by comparing a reference value assigned to a position where a check program is described with a determination numerical value set by a previous check program. This is an example in which a check program for that purpose can be placed at an arbitrary position on the main program. In this example, when the execution of the program is stopped, the abnormality cannot be detected. Therefore, a second embodiment will be described below, which is used in combination with the conventional watchdog timer system so that a stop abnormality can be detected. In the second embodiment, the monitoring timer 6 of FIG. 1 is provided, and the count-up signal 7 is the CPU.
3 is input to the interrupt input terminal (highest priority interrupt input terminal that cannot be masked). A check program executed by the CPU 3 is shown in FIG. The execution position of this check program is determined so that its description position is shorter than the count-up time of the timer 6. The check program of FIG. 4 is an example in which timer refresh processing (S40 of FIG. 4) is added to the check program of FIG. In this example, if normal is confirmed by numerical comparison,
The timer 6 is refreshed, that is, the count value is initialized. When the timer 6 counts up, the abnormality processing program is activated by the interrupt input of the count-up signal. In the second embodiment, the timer refresh process is described in all of the check programs, but if the count-up time of the timer 6 is set to be long, the check program for performing the timer refresh process is appropriately selected according to this count-up time. .
When such a check program is used, when the CPU 3 stops abnormally, for example, in a state where loop processing occurs, the timer 6 detects the abnormality.

【0020】以上述べた第1、第2実施例の他、次の例
を実施できる。
In addition to the first and second embodiments described above, the following examples can be implemented.

【0021】1)プログラムの実行順序を確認するため
に用いるプログラムの実行順序を表す識別情報には数値
の他、文字、たとえば、A、B、Cのような英文字の列
を用いることができる。また、メインプログラム中のプ
ログラムの実行アドレスをも識別情報として用いること
ができる。
1) In addition to numerical values, characters, for example, a string of English characters such as A, B, and C, can be used as identification information indicating the execution order of programs used to confirm the execution order of programs. . The execution address of the program in the main program can also be used as the identification information.

【0022】2)第1実施例においてチェックプログラ
ムに割り当てた基準値を、図1のRAM5に予め記憶さ
せて置くこともできる。この例はメインプログラムの長
さが変化し、チェックプログラムを増減する場合に好適
である。
2) The reference value assigned to the check program in the first embodiment may be stored in advance in the RAM 5 of FIG. This example is suitable when the length of the main program changes and the number of check programs is increased or decreased.

【0023】3)チェックプログラムが数値を書き込む
メモリ(RAM15)が異常となり記憶データが不定と
なった場合にも本例では、チェックプログラムの数値比
較処理で不一致判定が得られるので、メモリ異常を検知
できる。
3) Even if the memory (RAM 15) in which the check program writes numerical values becomes abnormal and the stored data becomes indeterminate, in this example, the numerical value comparison processing of the check program can provide the mismatch determination, so the memory abnormality is detected. it can.

【0024】[0024]

【発明の効果】以上、説明したように、本発明によれ
ば、プログラムの実行順序そのものを監視するので、ウ
オッチドッグタイマーを用いる必要はない。このため暴
走検知用プログラムの記載位置を任意とすることができ
るほか、装置の小型化に寄与することができる。また、
ウオッチドッグタイマー方法を併用することにより、暴
走検知精度が更に向上する。
As described above, according to the present invention, since the program execution sequence itself is monitored, it is not necessary to use a watchdog timer. Therefore, the runaway detection program can be set at any position, and the device can be downsized. Also,
By using the watchdog timer method together, runaway detection accuracy is further improved.

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

【図1】本発明実施例の回路構成を示す説明図である。FIG. 1 is an explanatory diagram showing a circuit configuration of an embodiment of the present invention.

【図2】第1実施例の処理手順を示すフローチャートで
ある。
FIG. 2 is a flowchart showing a processing procedure of the first embodiment.

【図3】第1実施例の暴走検知処理手順を示すフローチ
ャートである。
FIG. 3 is a flowchart showing a runaway detection processing procedure of the first embodiment.

【図4】第2実施例の暴走検知処理手順を示すフローチ
ャートである。
FIG. 4 is a flowchart showing a runaway detection processing procedure of the second embodiment.

【図5】暴走手順を示すフローチャートである。FIG. 5 is a flowchart showing a runaway procedure.

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

3 CPU 4 プログラムメモリ 5,15 RAM 6 (監視用)タイマー 3 CPU 4 Program memory 5, 15 RAM 6 (for monitoring) timer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータのプログラムの実行順序が
暴走したことを検出するためのコンピュータの暴走検出
方法において、 前記プログラム内の特定の複数の位置およびそれら位置
の前記コンピュータの実行順序に対応させて、それぞれ
異なる識別情報および当該識別情報の接続順序を予め定
めておき、 前記コンピュータが前記プログラムの実行を開始すると
きに、前記接続順序において第1番目の識別情報を初期
情報としてメモリに記憶しておき、 前記コンピュータの前記プログラムの実行位置が前記特
定の複数の位置のいずれか1つの特定位置に到達するご
とに、前記コンピュータは前記メモリに記憶された識別
情報と、当該特定位置に対応する識別情報とが一致して
いるか否かの比較判定を行い、 一致判定が得られた場合は正常作動とみなして前記コン
ピュータは現在の特定位置の次の接続順序にあたる特定
位置の識別情報を前記メモリに書き込みし、 不一致判定が得られた場合は前記コンピュータは暴走発
生とみなすことを特徴とするコンピュータの暴走検出方
法。
1. A computer runaway detection method for detecting that the execution sequence of a computer program has runaway, wherein a plurality of specific positions in the program and the execution sequence of the computer at those positions are associated with each other. Different identification information and a connection order of the identification information are determined in advance, and when the computer starts executing the program, the first identification information in the connection order is stored in the memory as initial information. Whenever the execution position of the program of the computer reaches any one specific position of the specific plurality of positions, the computer stores identification information stored in the memory and identification information corresponding to the specific position. If a match is obtained, a normal operation is performed. The computer writes the identification information of the specific position corresponding to the connection sequence next to the current specific position in the memory, and if a mismatch determination is obtained, the computer considers that a runaway has occurred. Runaway detection method.
【請求項2】 前記不一致判定が得られた場合は前記コ
ンピュータは、暴走発生に対処するために予め定められ
たプログラムを実行することを特徴とする請求項1に記
載のコンピュータの暴走検出方法。
2. The computer runaway detecting method according to claim 1, wherein when the mismatch determination is obtained, the computer executes a predetermined program for coping with the occurrence of the runaway.
JP5111591A 1993-05-13 1993-05-13 Runaway detecting method for computer Pending JPH06324914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5111591A JPH06324914A (en) 1993-05-13 1993-05-13 Runaway detecting method for computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5111591A JPH06324914A (en) 1993-05-13 1993-05-13 Runaway detecting method for computer

Publications (1)

Publication Number Publication Date
JPH06324914A true JPH06324914A (en) 1994-11-25

Family

ID=14565251

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5111591A Pending JPH06324914A (en) 1993-05-13 1993-05-13 Runaway detecting method for computer

Country Status (1)

Country Link
JP (1) JPH06324914A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007299081A (en) * 2006-04-28 2007-11-15 Hitachi Ltd Control flow error detection method, data processing device and compiler
JP2009289119A (en) * 2008-05-30 2009-12-10 Nec Electronics Corp Watchdog timer and microcomputer
US7729806B2 (en) 2004-05-25 2010-06-01 Mitsubishi Denki Kabushiki Kaisha Elevator controller
WO2010097844A1 (en) * 2009-02-25 2010-09-02 パナソニック株式会社 Runaway detection device
JP2010244213A (en) * 2009-04-02 2010-10-28 Fuji Electric Systems Co Ltd Programmable controller, program execution monitoring method, and program
JP2011159114A (en) * 2010-02-01 2011-08-18 Fuji Electric Co Ltd Module arithmetic processing apparatus
JP5846342B1 (en) * 2014-09-25 2016-01-20 日本精工株式会社 Control device and control method for in-vehicle electronic device
WO2016047576A1 (en) * 2014-09-25 2016-03-31 日本精工株式会社 Control device and control method for on-vehicle electronic apparatus
WO2016047575A1 (en) * 2014-09-25 2016-03-31 日本精工株式会社 Control device and control method for on-vehicle electronic apparatus
WO2016046930A1 (en) * 2014-09-25 2016-03-31 日本精工株式会社 Vehicle-mounted electronic device control device and control method
FR3101973A1 (en) * 2019-10-10 2021-04-16 Continental Automotive Monitoring device

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7729806B2 (en) 2004-05-25 2010-06-01 Mitsubishi Denki Kabushiki Kaisha Elevator controller
JP2007299081A (en) * 2006-04-28 2007-11-15 Hitachi Ltd Control flow error detection method, data processing device and compiler
US7664939B2 (en) 2006-04-28 2010-02-16 Hitachi, Ltd. Method and apparatus for detecting false operation of computer
JP2009289119A (en) * 2008-05-30 2009-12-10 Nec Electronics Corp Watchdog timer and microcomputer
WO2010097844A1 (en) * 2009-02-25 2010-09-02 パナソニック株式会社 Runaway detection device
JP2010244213A (en) * 2009-04-02 2010-10-28 Fuji Electric Systems Co Ltd Programmable controller, program execution monitoring method, and program
JP2011159114A (en) * 2010-02-01 2011-08-18 Fuji Electric Co Ltd Module arithmetic processing apparatus
JPWO2016047575A1 (en) * 2014-09-25 2017-04-27 日本精工株式会社 Control device and control method for in-vehicle electronic device
US9796415B2 (en) 2014-09-25 2017-10-24 Nsk Ltd. Control apparatus and control method of on-vehicle electronic equipment
WO2016047575A1 (en) * 2014-09-25 2016-03-31 日本精工株式会社 Control device and control method for on-vehicle electronic apparatus
WO2016046931A1 (en) * 2014-09-25 2016-03-31 日本精工株式会社 Vehicle-mounted electronic device control device and control method
WO2016046930A1 (en) * 2014-09-25 2016-03-31 日本精工株式会社 Vehicle-mounted electronic device control device and control method
CN105980214A (en) * 2014-09-25 2016-09-28 日本精工株式会社 Vehicle-mounted electronic device control device and control method
JP6020765B2 (en) * 2014-09-25 2016-11-02 日本精工株式会社 Control device and control method for in-vehicle electronic device
JP5846342B1 (en) * 2014-09-25 2016-01-20 日本精工株式会社 Control device and control method for in-vehicle electronic device
JPWO2016047576A1 (en) * 2014-09-25 2017-04-27 日本精工株式会社 Control device and control method for in-vehicle electronic device
CN106794810A (en) * 2014-09-25 2017-05-31 日本精工株式会社 The control device and control method of vehicle-mounted electronic device
JP2017174463A (en) * 2014-09-25 2017-09-28 日本精工株式会社 Controller and control method for on-vehicle electronic device
WO2016047576A1 (en) * 2014-09-25 2016-03-31 日本精工株式会社 Control device and control method for on-vehicle electronic apparatus
JP2017199403A (en) * 2014-09-25 2017-11-02 日本精工株式会社 Control device and control method of on-vehicle electronic equipment
JP2017208108A (en) * 2014-09-25 2017-11-24 日本精工株式会社 Device and method for controlling vehicle-mounted electronic devices
JP2017215973A (en) * 2014-09-25 2017-12-07 日本精工株式会社 Control device and control method for on-vehicle electronic apparatus
JP2017224304A (en) * 2014-09-25 2017-12-21 日本精工株式会社 Control device, and control method, for electronic device for on-vehicle use
CN107531194A (en) * 2014-09-25 2018-01-02 日本精工株式会社 The control device and control method of vehicle-mounted electronic device
US9889881B2 (en) 2014-09-25 2018-02-13 Nsk Ltd. Control apparatus and control method of on-vehicle electronic equipment
US9896125B2 (en) 2014-09-25 2018-02-20 Nsk Ltd. Control apparatus and control method of on-vehicle electronic equipment
US10017205B2 (en) 2014-09-25 2018-07-10 Nsk Ltd. Control apparatus and control method of on-vehicle electronic equipment
CN107531194B (en) * 2014-09-25 2019-07-09 日本精工株式会社 The control device and control method of electric power steering apparatus
FR3101973A1 (en) * 2019-10-10 2021-04-16 Continental Automotive Monitoring device

Similar Documents

Publication Publication Date Title
EP1588260B1 (en) Hot plug interfaces and failure handling
US7890800B2 (en) Method, operating system and computing hardware for running a computer program
US7103738B2 (en) Semiconductor integrated circuit having improving program recovery capabilities
JPH06324914A (en) Runaway detecting method for computer
JP2008009721A (en) Evaluation system and evaluation method thereof
US6553512B1 (en) Method and apparatus for resolving CPU deadlocks
CA2292991C (en) Watch dog timer system
US7103692B2 (en) Method and apparatus for an I/O controller to alert an external system management controller
US20080059666A1 (en) Microcontroller and debugging method
US6611931B1 (en) Check method of temporary storage circuit in electronic control unit
JP2737645B2 (en) Program debug device
JP4647276B2 (en) Semiconductor circuit device
US8145953B2 (en) Programmable unit
JPS6230105Y2 (en)
JPS6118045A (en) Detecting system of program runaway
JPH07104841A (en) Abnormality detecting method for programmable controller
JPH10228395A (en) Abnormality diagnostic device for controller
JP3152014B2 (en) Timer circuit
JP2021189864A (en) Vehicle electronic controller and vehicle control method
JPH06214831A (en) Abnormality detector for central processing unit
JPH0454656A (en) Electronic apparatus
JP2002251299A (en) Program tracing device
JPS6324331A (en) Runaway detecting device for computer
JPS63163943A (en) Control method for writing into memory
JPH07281961A (en) Memory fault detector and computer