[go: up one dir, main page]

JPS6362040A - Control system for abnormality ending process - Google Patents

Control system for abnormality ending process

Info

Publication number
JPS6362040A
JPS6362040A JP61207076A JP20707686A JPS6362040A JP S6362040 A JPS6362040 A JP S6362040A JP 61207076 A JP61207076 A JP 61207076A JP 20707686 A JP20707686 A JP 20707686A JP S6362040 A JPS6362040 A JP S6362040A
Authority
JP
Japan
Prior art keywords
abnormality
functional unit
program
unit block
control program
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
JP61207076A
Other languages
Japanese (ja)
Inventor
Masatoshi Nishikawa
正斗志 西川
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61207076A priority Critical patent/JPS6362040A/en
Publication of JPS6362040A publication Critical patent/JPS6362040A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

PURPOSE:To minimize the influence of abnormality by separating a faulty function unit block only in case the abnormality ending process may possibly repeated endlessly when said unit block has a normality in an abnormality ending process mode. CONSTITUTION:A control program for abnormality ending process is divided by functions and stored in plural function unit blocks 3. When the abnormality occurs during execution of a relevant program, those control programs stored in blocks 3 are successively executed. In this case, the contents of the corresponding factor code area 5 are first checked and the abnormality factor code of this time is added to the area 5 as long as no coincidence is obtained between the checked contents of the area 5 and the abnormality code of this time. Then the control program is carried out after +1 is given to a counter 4. If the abnormality having the same factor code occurs during execution of the control program, the processing is carried out again at and after the head program. In this case, however, the execution of the relevant control program is omitted since the same factor code is already returned into the area 5.

Description

【発明の詳細な説明】 〔産業上の利用分野] この発明は、計算機内で実行されるユーザの問題プログ
ラムの異常終了の処理を行う制御プログラムにおける異
常終了処理の制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control method for abnormal termination processing in a control program that processes abnormal termination of a user's problem program executed in a computer.

〔従来の技術〕[Conventional technology]

第3図は従来のプログラム異常終了処理の制御方式にお
ける主記憶装置の構成図である。一般的な計算機システ
ムにおいて設けられるCPUに、この主記憶装置が接続
され、全体的な作動状態を監督す′る制御プログラムと
ユーザの問題(処理)プログラムとが格納されている。
FIG. 3 is a configuration diagram of a main storage device in a conventional control system for abnormal program termination processing. This main memory is connected to a CPU provided in a general computer system, and stores a control program for supervising the overall operating state and a user problem (processing) program.

この主記憶装置における制御プログラムに関して、6は
初期設定部で、問題(処理)プログラムが実行を開始す
る直前に実行される初期設定用の制御プログラムが格納
されている。7は異常終了処理部で、問題(処理)プロ
グラムに異常が発生したときに実行される割込み制御プ
ログラムが格納されている。
Regarding the control programs in this main storage device, 6 is an initial setting section, which stores an initial setting control program that is executed immediately before the problem (processing) program starts execution. Reference numeral 7 denotes an abnormal termination processing section, which stores an interrupt control program to be executed when an abnormality occurs in the problem (processing) program.

異常終了処理部7はいくつかの機能単位プログラム部に
分割された機能単位ブロック8より構成される。また各
機能単位ブロック8に夫々対応して1ビツトの記憶域か
ら成るフラッグ9が存在する。
The abnormal termination processing section 7 is composed of a functional unit block 8 divided into several functional unit program sections. Further, there is a flag 9 consisting of a 1-bit storage area corresponding to each functional unit block 8.

次に動作について説明する。問題(処理)プログラムの
実行が開始する直前に初期設定部6がCPUに対する制
御権を受は取り、この期間中にすべてのフラッグ9を0
に初期化する。次に問題(処理)プログラムがCPUに
対する制御権を受は取り、ある仕事を行うため問題(処
理)プログラムの命令を実行する。次に問題プログラム
に異常が発生したときに異常終了処理部7が制御権を受
は取り、この期間中にすべての機能単位ブロック8が順
々に実行される。
Next, the operation will be explained. Immediately before the execution of the problem (processing) program starts, the initial setting unit 6 takes control over the CPU and sets all flags 9 to 0 during this period.
Initialize to . The problem (processing) program then takes control of the CPU and executes the problem (processing) program's instructions to do some work. Next, when an abnormality occurs in the problem program, the abnormal termination processing section 7 takes control, and during this period, all the functional unit blocks 8 are executed in sequence.

第4図はひとつの機能単位ブロック8の動作を示すフロ
ーチャートである。まずステップT1では該当する機能
単位ブロック8に対応するフラッグ9の内容を調べる。
FIG. 4 is a flowchart showing the operation of one functional unit block 8. First, in step T1, the contents of the flag 9 corresponding to the corresponding functional unit block 8 are checked.

フラッグ9の内容が0ならばステップT2でフラッグ9
を1にセットしてから、ステップT3では該当機能単位
ブロック8に対応する機能を持つ制御プログラムを実行
する。
If the content of flag 9 is 0, flag 9 is set in step T2.
is set to 1, and then, in step T3, a control program having a function corresponding to the corresponding functional unit block 8 is executed.

ステップT4では終了時にフラッグ9を0にセットする
。而して、もし該当機能単位ブロック8内の制御プログ
ラム実行中に異常が発生した場合は、異常終了処理部7
の先頭に戻り再び実行が開始される。実行が該当機能単
位ブロック8まで到達したとき、対応するフラッグ9の
内容は1なので、該当機能単位ブロック8に対応する機
能を持つ制御プログラムの実行を迂回して(ステップT
1の分岐)、次の機能単位ブロック8へ進む。これは、
該当制御プログラムを実行すると再び異常が発生する場
合が多いからである。この動作によって異常終了処理部
7の実行が無限にくり返されるのを防いでいる。
At step T4, the flag 9 is set to 0 at the end of the process. Therefore, if an abnormality occurs during the execution of the control program in the corresponding functional unit block 8, the abnormal termination processing section 7
The program returns to the beginning and starts execution again. When the execution reaches the corresponding functional unit block 8, the content of the corresponding flag 9 is 1, so the execution of the control program having the function corresponding to the corresponding functional unit block 8 is bypassed (step T
1 branch), proceed to the next functional unit block 8. this is,
This is because an abnormality often occurs again when the corresponding control program is executed. This operation prevents the execution of the abnormal termination processing section 7 from being repeated indefinitely.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のプログラム異常終了処理制御方式は−の機能単位
ブロック8に一度異常が発生すると、それ以降は迂回す
るように構成されているので、ハードウェア障害やマル
チプログラム環境における他プログラム等の要因による
一過性の異常に対しても、該当機能単位ブロック8を不
良とみなして再使用しない。このため、異常終了処理が
不十分となり、更に別の機能単位ブロック8に異常が発
生すると使用不能ブロックが増加し異常の影響が拡大す
るという問題点があった。
Conventional program abnormal termination processing control methods are configured to take a detour once an abnormality occurs in the - functional unit block 8, so that errors caused by hardware failures, other programs in a multi-program environment, etc. Even in the case of a temporary abnormality, the corresponding functional unit block 8 is regarded as defective and is not reused. For this reason, there is a problem in that the abnormal termination processing is insufficient, and if an abnormality occurs in another functional unit block 8, the number of unusable blocks increases and the influence of the abnormality becomes larger.

この発明は上記のような問題点を解消するためになされ
たもので、異常終了処理中に、ある機能単位ブロックで
異常が発生しても該当機能単位ブロックを再使用し、異
常終了処理が無限にくり返される可能性があるときのみ
該当機能単位ブロックを切り離すことによって、異常の
影響拡大を最小限にとどめることができるような異常終
了処理の制御方式を得ることを目的とする。
This invention was made to solve the above problems. Even if an error occurs in a certain functional unit block during abnormal termination processing, the relevant functional unit block is reused, and the abnormal termination processing is infinite. An object of the present invention is to obtain a control method for abnormal termination processing that can minimize the spread of the influence of an abnormality by separating the relevant functional unit block only when there is a possibility that the block will be repeated.

〔問題点を解決するための手段〕[Means for solving problems]

この発明における異常終了処理の制御方式は、異常終了
処理の制御プログラムを機能によって分割して複数の機
能単位ブロック3に格納し、この機能単位ブロック3に
対応して設けたカウンタ4にその実行回数を記憶し、か
つ機能単位ブロック3に対応して設けた複数の原因コー
ド領域5に異常終了の原因コードを格納し、前記機能単
位ブロック3内の制御プログラムの実行中に異常が発生
した場合は、当該制御プログラムの再実行を前記原因コ
ード記憶領域5の内容によって決定するようにした。
The control method for abnormal termination processing in this invention is such that the control program for abnormal termination processing is divided by function and stored in a plurality of functional unit blocks 3, and a counter 4 provided corresponding to this functional unit block 3 is recorded as the number of execution times. and store cause codes for abnormal termination in multiple cause code areas 5 provided corresponding to the functional unit blocks 3, and if an abnormality occurs during execution of the control program in the functional unit block 3, , re-execution of the control program is determined based on the contents of the cause code storage area 5.

〔作用〕[Effect]

機能単位ブロック3内の制御プログラムを順々に実行中
に異常が発生した場合、異常の原因を示すコードが異常
発生の回数分該当する機能単位ブロック3の原因コード
領域5に格納され、該当制御プログラムの再実行の可否
を判定する基準として参照される。このようにして異常
が発生した制御プログラムでも再使用の可能性があり、
異常の影響拡大を最小限にとどめるようにする。
If an error occurs while sequentially executing the control programs in the functional unit block 3, a code indicating the cause of the error is stored in the cause code area 5 of the corresponding functional unit block 3 for the number of times the error occurs, and the code indicating the cause of the error is stored in the cause code area 5 of the corresponding functional unit block 3. This is referred to as a criterion for determining whether a program can be re-executed. In this way, there is a possibility that a control program in which an error has occurred may be reused.
Try to minimize the spread of the effects of abnormalities.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第1
図は、この発明にかかわるプログラム異常終了処理の制
御方式における主記憶装置の構成図である。一般的な計
算機システムにおいて設けられるCPUにこの主記憶装
置が接続され、全体的な作動状態を監督する制御プログ
ラムとユーザの問題(処理)プログラムとが格納されて
いる。
An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure is a configuration diagram of a main storage device in a control system for abnormal program termination processing according to the present invention. This main memory is connected to a CPU provided in a general computer system, and stores a control program that supervises the overall operating state and a user problem (processing) program.

この主記憶装置における制御プログラムに関して、1は
初期設定部で問題(処理)プログラムが実行を開始する
直前に実行される初期設定用の制御プログラムが格納さ
れている。2は異常終了処理部2はいくつかの機能単位
プログラム部に分割された機能単位ブロック3より構成
される。また各機能単位ブロック3に夫々対応して1個
のカウンタ4と、各機能単位ブロック3に対応して原因
コードを複数個格納できる原因コード領域5が存在する
Regarding the control programs in the main storage device, reference numeral 1 denotes an initial setting section, which stores an initial setting control program that is executed immediately before the problem (processing) program starts execution. 2, the abnormal termination processing section 2 is composed of a functional unit block 3 divided into several functional unit program sections. Further, there is one counter 4 corresponding to each functional unit block 3, and a cause code area 5 capable of storing a plurality of cause codes corresponding to each functional unit block 3.

次に実施例の動作について説明する。問題プログラムの
実行が開始する直前に初期設定部1がCPUに対する制
御権を受は取り、この期間中にすべてのカウンタ4を0
にセットし、すべての原因コード領域5をクリアする。
Next, the operation of the embodiment will be explained. Immediately before the execution of the problem program starts, the initial setting unit 1 takes control of the CPU and sets all counters 4 to 0 during this period.
to clear all cause code areas 5.

次に問題(処理)プログラムがCPUに対する制御権を
受は取り、ある仕事を行うため間8(処理)プログラム
の命令を実行する。次に問題プログラムに異常が発生し
たときに異常終了処理部2が制御権を受は取り、この期
間中にすべての機能単位ブロック3が順々に実行される
The problem (processing) program then takes control of the CPU and executes the instructions of the problem (processing) program to do some work. Next, when an abnormality occurs in the problem program, the abnormal termination processing section 2 takes control, and during this period, all the functional unit blocks 3 are executed in sequence.

第2図はひとつの機能単位ブロック3の動作を示すフロ
ーチャートである。まずステップS1では、該当する機
能単位ブロック3に対応する原因コード領域5の内容を
調べる。原因コード領域5内の有効な原因コードの数は
カウンタ4の値で示されている。これらの有効な原因コ
ード中に、今回発生した異常の原因コードと一致するも
のがなければ、ステップS2で、原因コード領域5に今
回の異常原因コードを追加し、カウンタ4の値を1増加
させてから、ステップS3では、該当機能単位ブロック
3に対応する機能を持つ制御プログラムを実行する。
FIG. 2 is a flowchart showing the operation of one functional unit block 3. First, in step S1, the contents of the cause code area 5 corresponding to the corresponding functional unit block 3 are checked. The number of valid cause codes in cause code area 5 is indicated by the value of counter 4. If there is no one among these valid cause codes that matches the cause code of the abnormality that occurred this time, in step S2, the current abnormality cause code is added to the cause code area 5, and the value of the counter 4 is increased by 1. Then, in step S3, a control program having a function corresponding to the corresponding functional unit block 3 is executed.

而して、もし該当機能単位ブロック3内の制御プログラ
ム実行中に同一原因コードを持つ異常が発生した場合は
、異常終了処理部2の先頭に戻り、再び実行が開始され
る。実行が該当機能単位ブロック3まで到達したとき、
今度は、対応する原因コード領域5内に同一の原因コー
ドが含まれるので、該当機能単位ブロック3に対応する
機能をもつ制御プログラムの実行を迂回して(ステップ
S1の分、岐)、次へ進む。これは該当制御プログラム
を実行すると再び同一原因の異常が発生する場合が多い
からである。
If an abnormality having the same cause code occurs during the execution of the control program in the corresponding functional unit block 3, the abnormal termination processing section 2 returns to the beginning and starts execution again. When execution reaches the corresponding functional unit block 3,
This time, since the same cause code is included in the corresponding cause code area 5, the execution of the control program having the function corresponding to the corresponding functional unit block 3 is bypassed (step S1, branch) and the process goes to the next step. move on. This is because an abnormality with the same cause often occurs again when the corresponding control program is executed.

一方、該当機能単位ブロック3内の制御プログラム実行
中に異なる原因コードを持つ異常が発生した場合は、異
常終了処理部2の先頭に戻り、再び該当機能単位ブロッ
ク3まで達するが、ステップS1で対応する原因コード
領域5内に同一の原因コードが含まれないので、ステッ
プS 2−’c ハ、今回の原因コードを原因コード領
域5に追加し、カウンタ4の値を1増加させ、ステップ
s3では、対応する制御プログラムを実行する。
On the other hand, if an abnormality with a different cause code occurs during the execution of the control program in the corresponding functional unit block 3, the process returns to the beginning of the abnormal termination processing section 2 and reaches the corresponding functional unit block 3 again, but the countermeasure is taken in step S1. Since the same cause code is not included in the cause code area 5, the current cause code is added to the cause code area 5, the value of the counter 4 is increased by 1, and in step S3 , execute the corresponding control program.

以上のように、同一の原因コードがない場合は、異常が
発生した機能単位ブロックを再使用するので、異常の影
響拡大を最小限にとどめることが可能となる。
As described above, if there is no identical cause code, the functional unit block in which the abnormality has occurred is reused, making it possible to minimize the spread of the influence of the abnormality.

なお上記実施例では、今回の原因コードが原因コード領
域5内に含まれておれば、該当する機能単位ブロックの
制御プログラム実行を迂回する方式を示したが、重複許
容値を定義し、今回の原因フードが原因コード領域5内
に含まれていても、その個数が重複許容値以下ならば、
該当機能単位ブロックの制御プログラムを実行するとい
う方式%式% 〔発明の効果〕 異常終了処理の制御プログラムを機能によって分割して
複数の機能単位ブロックに格納し、この機能単位ブロッ
クに対応して設けたカウンタにその実行回数を記憶し、
かつ機能単位ブロックに対応して設けた複数の原因コー
ド領域に異常終了の原因コードを格納し、前記機能単位
ブロック内の制御プログラムの実行中に異常が発生した
場合は、当該制御プログラムの再実行を前記原因コード
記憶領域の内容によって決定するようにしたので、異常
終了処理内で発生した異常を発生した機能単位ブロック
の場所だけでなく、その内容の原因コードによっても識
別できる。従って、ハードウェア障害やマルチプログラ
ム環境における他プログラム等の要因による一過性の異
常と、無限ループをもたらす永続的な異常とを区別して
処理することが可能となり、異常の影響拡大を最小限に
とどめることができる効果がある。
In the above example, if the current cause code is included in the cause code area 5, the method of bypassing the execution of the control program of the corresponding functional unit block has been shown. Even if the cause food is included in cause code area 5, if the number is less than the allowable overlap value,
[Effect of the invention] A control program for abnormal termination processing is divided by function and stored in a plurality of functional unit blocks, and a program is created corresponding to the functional unit block. The number of executions is stored in the counter
In addition, the cause code for the abnormal termination is stored in multiple cause code areas provided corresponding to the functional unit block, and if an abnormality occurs during the execution of the control program in the functional unit block, the control program is re-executed. Since this is determined based on the contents of the cause code storage area, it is possible to identify not only the location of the functional unit block in which the abnormality occurred during the abnormal termination processing but also the cause code of its contents. Therefore, it is possible to distinguish and handle temporary abnormalities caused by factors such as hardware failures or other programs in a multi-program environment, and permanent abnormalities that cause an infinite loop, thereby minimizing the spread of the influence of abnormalities. It has the effect of staying in place.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例によるプログラム異常終了
処理の制御方式における主記憶装置の構成図、第2図は
この発明の一実施例によるプログラム異常終了処理の制
御方式の動作を示すフローチャート、第3図は従来のプ
ログラム異常終了処理の制御方式における主記憶装置の
構成図、第4図は従来のプログラム異常終了処理の制御
方式の動作を示すフローチャートである。 1・・・初期設定部、2・・・異常終了処理部、3・・
・機能単位ブロック、4・・・カウンタ、5・・・原因
コード領域。
FIG. 1 is a configuration diagram of a main storage device in a control method for abnormal program termination processing according to an embodiment of the present invention, and FIG. 2 is a flowchart showing the operation of a control method for abnormal program termination processing according to an embodiment of the present invention. FIG. 3 is a configuration diagram of a main storage device in a conventional control method for abnormal program termination processing, and FIG. 4 is a flowchart showing the operation of the conventional control method for abnormal program termination processing. 1... Initial setting section, 2... Abnormal termination processing section, 3...
-Functional unit block, 4...Counter, 5...Cause code area.

Claims (1)

【特許請求の範囲】[Claims] 計算機システムで実行される問題プログラムの異常終了
処理の制御方式において、異常終了処理の制御プログラ
ムを機能によって分割して複数の機能単位ブロックに格
納し、この機能単位ブロックに対応して設けたカウンタ
にその実行回数を記憶し、かつ機能単位ブロックに対応
して設けた複数の原因コード領域に異常終了の原因コー
ドを格納し、前記機能単位ブロック内の制御プログラム
の実行中に異常が発生した場合は、当該制御プログラム
の再実行を前記原因コード記憶領域の内容によって決定
するようにした異常終了処理の制御方式。
In a control method for abnormal termination processing of a problem program executed in a computer system, the control program for abnormal termination processing is divided by function and stored in multiple functional unit blocks, and a counter provided corresponding to this functional unit block is The number of executions is memorized, and the cause code for the abnormal termination is stored in multiple cause code areas provided corresponding to the functional unit block, and if an abnormality occurs during the execution of the control program in the functional unit block, . A control method for abnormal termination processing, wherein re-execution of the control program is determined based on the contents of the cause code storage area.
JP61207076A 1986-09-03 1986-09-03 Control system for abnormality ending process Pending JPS6362040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61207076A JPS6362040A (en) 1986-09-03 1986-09-03 Control system for abnormality ending process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61207076A JPS6362040A (en) 1986-09-03 1986-09-03 Control system for abnormality ending process

Publications (1)

Publication Number Publication Date
JPS6362040A true JPS6362040A (en) 1988-03-18

Family

ID=16533802

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61207076A Pending JPS6362040A (en) 1986-09-03 1986-09-03 Control system for abnormality ending process

Country Status (1)

Country Link
JP (1) JPS6362040A (en)

Similar Documents

Publication Publication Date Title
CN102804134B (en) Apparatus and method for handling exception events
JPH05108391A (en) Method for continuing program execution
JPH02294739A (en) Fault detecting system
JPS6362040A (en) Control system for abnormality ending process
JPH0245838A (en) Program execution condition monitoring method
JP2004185345A (en) Debugging method and system
CN120029811A (en) Method, device, equipment and system for detecting stack boundary crossing of multi-core real-time operating system
JPH07248810A (en) Numerical controller
JPS6170645A (en) Data collection device for failure cause analysis
JP3185780B2 (en) System monitoring apparatus and method
JPS62229334A (en) Test system using test program for information processing system
JPS59183443A (en) Debug device
JPS63282857A (en) System for preventing program runaway
JPH06301409A (en) Multiple program controller
JPH0341528A (en) Diagnostic device for computers
JPS63226745A (en) Processor system
JPH03127234A (en) Program debugging device for computer system
JPS60198649A (en) Loop detection control method
JPH02240799A (en) Fault preventive system for pos
JPH03157738A (en) Error information collecting system in service processor
JPS638946A (en) Program debug supporting system
JPH0434626A (en) Error logging method
JPS5981739A (en) Information processor
JPS61279949A (en) Program debug system
JPH0887310A (en) Programmable controller