JPS63244235A - Method and device for processing abnormality - Google Patents

Method and device for processing abnormality

Info

Publication number
JPS63244235A
JPS63244235A JP62076376A JP7637687A JPS63244235A JP S63244235 A JPS63244235 A JP S63244235A JP 62076376 A JP62076376 A JP 62076376A JP 7637687 A JP7637687 A JP 7637687A JP S63244235 A JPS63244235 A JP S63244235A
Authority
JP
Japan
Prior art keywords
abnormality
time
error
nonvolatile memory
memory
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
JP62076376A
Other languages
Japanese (ja)
Inventor
Satoshi Ono
聡 小野
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP62076376A priority Critical patent/JPS63244235A/en
Publication of JPS63244235A publication Critical patent/JPS63244235A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To properly grasp the situation at a time when an abnormality occurs and to execute a suitable error processing by writing the operating state of a system at the time when the abnormality is detected in a nonvolatile memory. CONSTITUTION:A timer 4 is started, and if a response to an access data comes or if the timer 4 reaches an overtime state is monitored. The content of an error at the time when a time-over occurs is examined, and the result is written in the error content storing area of the nonvolatile memory 11, then the number of an equipment operating at said time is read out from the prescribed position of a memory 3, and it is written similarly in the error equipment number storing area of the memory 11. As a result, it can be made possible to read out the situation of an error-occurrence and to analyze it, even when a reset key or others on a final control element 7 is depressed by the interruption of power source.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は不揮発性メモリを備える情報処理システムにお
ける異常処理方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an abnormality handling method in an information processing system equipped with a nonvolatile memory.

[従来の技術] 近年の半導体集積技術の発達により、1チツプ構成のマ
イクロコンピュータLSIが普及して来ている。これら
マイクロコンピュータ(以下rMRUJと称す)の組込
まれた機器も多様化してきており、あらゆる機器に及ん
でいる。
[Prior Art] With the recent development of semiconductor integration technology, single-chip microcomputer LSIs have become popular. Devices incorporating these microcomputers (hereinafter referred to as rMRUJ) have also become more diverse and are now available in all kinds of devices.

これらの機器において、接続I10の破損防止等のため
自己診断装置を組込み、動作開始前に各構成要素にエラ
ーがないかどうかを調べ、エラーがあればその旨を報知
するよう構成されているものが多くなってきている。
These devices incorporate a self-diagnosis device to prevent damage to the connection I10, and are configured to check each component for errors before starting operation, and to notify you if there is an error. are becoming more common.

更に、動作途中においても、各構成要素の異常を監視し
、異常を検出すると直ちに処理を停止し、異常発生を報
知する機器も登場してきている。
Furthermore, devices have also appeared that monitor abnormalities in each component even during operation, stop processing as soon as an abnormality is detected, and notify the occurrence of an abnormality.

この従来の装置の例を第9図に示す。An example of this conventional device is shown in FIG.

図中、1はROM2に格納されたプログラムに従い本装
置全体の制御を司どるマイクロプロセッサ(CPtJ)
、2は上述のプログラムの外来装置固有の各種パラメー
タ等を記憶するROM、3はCPU 1等のワークエリ
アとして使用される揮発性の半導体ICで構成されるメ
モリ、4はタイマであり、タイマ4は後述するシリアル
通信時のタイムオーバ等の監視用に用いられる。5は本
装置と他の装置とを伝送路15を介して接続し、互いの
間でデータ通信を行うためのデータ通信インタフェース
、6はCPUIが本装置システムの外部装置等の他の各
構成要素を制御するためのI10ボート、7は本装置の
動作開始を指示する“スタートキー”や各種指示入力キ
ー等より構成されるキーボードを含む操作部であり、操
作部7にはこれらのキーの外、動作中を示す動作表示、
エラー表示、モード表示等の表示が含まれる。また8は
モータであり、CPUIの制御で正逆回転を行い被制御
対象の位置決め等を行う。9はcpulより送られる画
像データや、独自に入力した画像データを処理してCP
U 1に出力する画像処理部、10は本装置の動作状態
等を表示する表示部である。
In the figure, 1 is a microprocessor (CPtJ) that controls the entire device according to the program stored in ROM2.
, 2 is a ROM that stores various parameters specific to the external device of the above-mentioned program, 3 is a memory composed of a volatile semiconductor IC used as a work area for CPU 1, etc., and 4 is a timer. is used for monitoring time-overs during serial communication, which will be described later. 5 is a data communication interface for connecting this device and other devices via a transmission path 15 and performing data communication between them, and 6 is a CPU that connects each other component such as an external device of this device system. 7 is an operation section including a keyboard consisting of a "start key" for instructing the start of operation of this device, various instruction input keys, etc. , an operation display indicating that the operation is in progress,
Displays such as error display and mode display are included. Further, reference numeral 8 denotes a motor, which performs forward and reverse rotation under the control of the CPU to position the controlled object. 9 processes the image data sent from cpul and the image data input independently to the CP
An image processing unit outputs to U1, and 10 is a display unit that displays the operating status of the apparatus.

以上の構成より成る従来装置の動作を第10図のフロー
チャートを参照して以下に説明する。
The operation of the conventional device having the above configuration will be explained below with reference to the flowchart shown in FIG.

本装置は外部システムよりの指示に従い各fffi動作
を行い、その結果等を報知するものであり、まずステッ
プS1でデータ通信インタフェース5を介して他装置と
の通信処理を実行する。
This device performs each fffi operation according to instructions from an external system and reports the results. First, in step S1, communication processing with other devices is executed via the data communication interface 5.

この通信処理の詳細を第11図に示す。Details of this communication processing are shown in FIG.

第11図の通信処理サブルーチンは、常時アクセスされ
、外部の他装置との間でデータ通信を行うものである。
The communication processing subroutine shown in FIG. 11 is constantly accessed and performs data communication with other external devices.

まず、ステップS30で接続装置にアクセスデータを送
信する。接続装置はこのアクセスに対して必ず応答を返
送してくるため、続くステップ531でタイマ4をリセ
ットして起動し、ステップS32、ステップS33でア
クセスデータに対する応答が来るか、又はタイマ4がタ
イムオーバとなるかを監視する。ここで接続装置よりの
応答を受信すれば、ステップ332よりステップS34
に進み、受信した応答データをメモリ3に格納し、リタ
ーンする。この応答は動作指示データ又は動作開始コマ
ンド等の有効データの場合もあるし、単なる応答データ
の返送のみで何らの具体的指示のない場合もある。この
単なる応答データの返送のみの場合にはこれをメモリ3
に格納しなくてもよい。
First, in step S30, access data is transmitted to the connected device. Since the connected device always returns a response to this access, the timer 4 is reset and activated in the following step 531, and in steps S32 and S33, a response to the access data is received or the timer 4 times out. Monitor whether this happens. If a response from the connected device is received here, step S332 is followed by step S34.
The process proceeds to , stores the received response data in the memory 3, and returns. This response may be valid data such as operation instruction data or an operation start command, or may simply be response data returned without any specific instruction. In the case of simply returning response data, store this in memory 3.
It does not need to be stored in .

一方、タイムオーバの場合には、ステップS33よりス
テップS35に進み、CPUIは表示部10及び操作部
7にエラー表示を行い、操作者にデータ通信中にエラー
が発生した旨を報知し、ステップ336でCPU 1の
処理停止(ホルト)状態への穆行が行われる。
On the other hand, in the case of time over, the process proceeds from step S33 to step S35, where the CPUI displays an error on the display unit 10 and the operation unit 7, notifying the operator that an error has occurred during data communication, and in step 336 At this point, the CPU 1 enters a halt state.

再び第10図の説明に戻るとステップS1でこのような
通信処理を実行し、接続装置よりの応答を受信するとス
テップS2に進み、この応答が動作スタート応答(又は
、操作部7の“スタートキー”の人力等の動作指示入力
)があるか否かを判断し、この応答の受信(又はキー人
力)がなければステップS1に戻る。ここで動作指示入
力があればステップS3に進み、表示部10の不図示の
動作中ランプを点灯させる。そして次のステップS4で
再び通信処理サブルーチンを実行する。
Returning to the explanation of FIG. 10 again, such a communication process is executed in step S1, and when a response is received from the connected device, the process proceeds to step S2, and this response is received as an operation start response (or when the "start key" on the operation unit 7 is pressed. If there is no response (or key human power input), the process returns to step S1. If an operation instruction is input here, the process proceeds to step S3, and an operation lamp (not shown) on the display section 10 is turned on. Then, in the next step S4, the communication processing subroutine is executed again.

ここでは例えば本装置が動作モードとなったことを示す
アクセスデータ等を送出し、応答を受信する。このため
、ステップS5で応答が次の処理へ進行許可であったか
否かを調べ、進行許可でなければ、その応答に対応した
処理を実行し、再びステップS4に戻り、進行許可応答
の受信を待つ。進行許可応答を受信するとステップS5
よりステップS6に進み、先の通信処理の応答で指示さ
れた処理を実行する。例えば、ここで画像処理部7を起
動し、モータ8をホワード方向(正方向)に回転させる
。そしてステップS7の通信処理を実行して次の応答を
受信し、メモリ3に格納する。そして続くステップS8
で受信応答が進行許可応答か否かを調べ、進行許可応答
でなければ再び進7に戻る。
Here, for example, access data indicating that the device is in the operating mode is sent, and a response is received. Therefore, in step S5, it is checked whether the response is permission to proceed to the next process or not, and if the response is not permission to proceed, the process corresponding to the response is executed, and the process returns to step S4 again to wait for reception of the proceeding permission response. . Upon receiving the proceeding permission response, step S5
The process then proceeds to step S6, and the process instructed in the response to the previous communication process is executed. For example, the image processing section 7 is activated here, and the motor 8 is rotated in the forward direction (positive direction). Then, the communication processing in step S7 is executed to receive the next response and store it in the memory 3. And the following step S8
It is checked whether the received response is a proceeding permission response or not, and if it is not a proceeding permission response, the process returns to step 7 again.

ここで、次の処理への進行許可応答を受信するとステッ
プS8よりステップS9に進み、先の通信処理(ステッ
プS7)で指示された処理を実行する。例えばモータ8
のホワード方向(正方向)への回転停止等の処理を実行
する、そして処理実行後ステップSIOに進み、再び通
信処理を実行する。そして、上述と同様にして次の処理
への進行許可応答の受信を監視し、この進行許可応答を
受信するとステップS12に進み、先の通信処理での指
示に従い、例えばモータ8のバック(逆)回転を開始さ
せ、再びステップS13、ステップ514で指示入力を
メモリ3に格納し、処理進行許可が受信されるのを待つ
。進行許可を受信するとステップS15で指示に従った
処理、例えばモータ8の停止(バック走行よりの停止)
、画像処理部9を消勢する等の処理を実行する。そして
、処理実行後再びステップS16,317で指示応答を
受信してメモリ3に格納し、進行許可応答の受信に備え
る。ここでの指示応答が処理終了指示であった場合には
、進行許可応答を受信したCPU 1は表示部10の動
作中ランプを消灯し、一連の処理を終了して、ステップ
S1に戻る。
Here, when a proceeding permission response to the next process is received, the process proceeds from step S8 to step S9, and the process instructed in the previous communication process (step S7) is executed. For example, motor 8
Processes such as stopping the rotation in the forward direction (positive direction) are executed, and after the process is executed, the process proceeds to step SIO and the communication process is executed again. Then, in the same manner as described above, the reception of a proceeding permission response to the next process is monitored, and when this proceeding permission response is received, the process proceeds to step S12, and according to the instruction in the previous communication process, for example, the motor 8 is moved back (reverse). The rotation is started, and the instruction input is stored in the memory 3 in steps S13 and 514 again, and the process waits for permission to proceed with the process to be received. When permission to proceed is received, processing is performed according to the instructions in step S15, for example, stopping the motor 8 (stopping from backing up).
, executes processing such as deactivating the image processing unit 9. After the process is executed, the instruction response is received again in step S16, 317 and stored in the memory 3, in preparation for receiving the proceeding permission response. If the instruction response here is an instruction to end the process, the CPU 1 that has received the proceeding permission response turns off the operating lamp on the display unit 10, ends the series of processes, and returns to step S1.

この様にデータ通信インタフェース5を介して他の接続
装置より送られる指示に従った処理を実行するものであ
る。
In this way, processing is executed in accordance with instructions sent from other connected devices via the data communication interface 5.

[発明が解決しようとする問題点] このように処理内容は固定的なものではなく、接続装置
よりの指示により変化するものであり、この処理途中で
エラー例えば通信処理でタイムアウトが発生しても、単
にエラーが点灯するのみであり、CPU 1が停止して
しまうものでエラー発生状態が明確に認識できず、適切
な処理ができなかった。
[Problems to be solved by the invention] As described above, the processing content is not fixed, but changes depending on instructions from the connected device, and even if an error occurs during this processing, such as a timeout in communication processing, it will not be fixed. However, since the error signal was simply turned on and the CPU 1 was stopped, the error state could not be clearly recognized and appropriate processing could not be performed.

更に、構成要素の稼動状態等によりエラー発生が影響を
受けるような場合にあっては上述の処理では、これらの
因果関係を把握することは全く不可能であった。またメ
モリは揮発性であり、一旦電源が落ちるとエラー発生時
の状況は全く知ることができなかった。
Furthermore, in cases where the occurrence of an error is affected by the operating state of the components, it is completely impossible to grasp the causal relationships between them using the above-described processing. Furthermore, memory is volatile, and once the power is turned off, the situation at the time of the error occurrence cannot be known at all.

[問題点を解決するための手段] 本発明は上述の問題点を解決することを目的として成さ
れたもので、この目的を達成する一手段として本実施例
は以下の構成を備える。
[Means for Solving the Problems] The present invention has been made for the purpose of solving the above-mentioned problems, and as a means for achieving this purpose, the present embodiment has the following configuration.

即ち、不揮発性メモリと、システムが動作異常を検出す
ると該異常検出時のシステムの稼動状態を不揮発性メモ
リに書込む書込手段と、異常検出を報知する報知手段と
、該報知手段に続き、実行中の処理を停止する停止手段
とを備える。
That is, a non-volatile memory, a writing means for writing the operating state of the system at the time of detection of the abnormality into the non-volatile memory when the system detects an operational abnormality, a notifying means for notifying the detection of the abnormality, and following the notifying means, and a stop means for stopping the process being executed.

[作用] 以上の構成において、システムが動作異常を検出すると
、該異常検出時のシステムの稼動状態が不揮発性メモリ
に書込まれるため、異常発生時の状況を適格に把握し、
認識することができる。このため適切なエラー処理が行
える。
[Operation] In the above configuration, when the system detects an operational abnormality, the operating state of the system at the time of the abnormality detection is written to the non-volatile memory, so the situation at the time of the abnormality can be accurately grasped,
can be recognized. Therefore, appropriate error handling can be performed.

[実施例] 以下、図面を参照して本発明に係る一実施例を詳細に説
明する。
[Example] Hereinafter, an example according to the present invention will be described in detail with reference to the drawings.

[第1実施例] 第1図は本発明に係る一実施例のブロック図であり、第
9図と同一構成には同一番号を付し、説明を省略する。
[First Embodiment] FIG. 1 is a block diagram of an embodiment according to the present invention, and the same components as in FIG. 9 are denoted by the same numbers, and the description thereof will be omitted.

本実施例は第9図に示す従来装置に比し、不揮発性メモ
リ11を附加した構成となっており、この不揮発績メモ
リとしてはEEFROMが用いられているが、通常の揮
発性半導体メモリにバックアップ用電源を附加したもの
であってもよい。
This embodiment has a configuration in which a non-volatile memory 11 is added compared to the conventional device shown in FIG. A power source may be added.

また、更にこれ以外の外部記憶装置、例えばフレキシブ
ル磁気ディスク装置やハードディスク装置を用いてもよ
い。このような外部記憶装置を用いることにより、当該
メディアに後述するエラー状況を記憶させ、これを他の
情報処理装置で読み込み、エラー解析をすることができ
、より適切な対処が行われる。
Furthermore, other external storage devices such as flexible magnetic disk devices and hard disk devices may also be used. By using such an external storage device, it is possible to store an error situation, which will be described later, in the medium, read it in another information processing device, and perform error analysis, thereby taking more appropriate measures.

また操作部7には、本装置の動作モードをメンテナンス
(サービスマン)モードと通常モードとに切り換えるモ
ードキー7aが儲えられている。
Further, the operation section 7 is provided with a mode key 7a for switching the operating mode of the apparatus between a maintenance (serviceman) mode and a normal mode.

次に、第1図の構成を備える本実施例の動作を第3図〜
第5図のフローチャートを参照して以下に説明する。
Next, the operation of this embodiment having the configuration shown in FIG. 1 will be explained in FIGS.
This will be explained below with reference to the flowchart shown in FIG.

以下、上述した第10図と同様の画像処理及びモータ制
御を行う場合を例に説明する。本実施例におけるこの第
10図と同様の各状態のシーケンス図を第2図に示す。
Hereinafter, a case where image processing and motor control similar to those shown in FIG. 10 described above are performed will be described as an example. FIG. 2 shows a sequence diagram of each state similar to FIG. 10 in this embodiment.

ここで、動作シーケンス中の各動作状態を図示の如<F
l〜F5で示す。
Here, each operation state in the operation sequence is as shown in the figure.
Indicated by l to F5.

また、各構成要素には装置番号が付与されており、動作
ランプに装置番号“動、1”、モータ8に装置番号“陽
、2”、画像処理部9に装置番号“動、3”がそれぞれ
割り当てられている。
In addition, each component is assigned a device number, and the operating lamp has the device number “Movement, 1”, the motor 8 has the device number “Yang, 2”, and the image processing unit 9 has the device number “Movement, 3”. assigned to each.

まず、装置(第1図図示の本実施例システム)に電源が
投入されると第3図の処理が実行される。
First, when the device (the system of this embodiment shown in FIG. 1) is powered on, the process shown in FIG. 3 is executed.

まず、ステップS50でモードキー7aの設定状態を読
込み、メンテナンス(サービスマン)モードか否かを調
べる。ここでメンテナンス(サービスマン)モードでな
い場合にはステップS51に進み、第10図とほぼ同様
の第3図に示す通常を実行する。
First, in step S50, the setting state of the mode key 7a is read and it is determined whether the mode is maintenance (serviceman) mode. If it is not the maintenance (serviceman) mode, the process advances to step S51, and the normal operation shown in FIG. 3, which is substantially the same as FIG. 10, is executed.

一方、メンテナンス(サービスマン)モードの時にはス
テップS52に進み、電源オン又はリセット以前の後述
する処理におけるエラーフラグがセットされており、エ
ラーの発生があるとステップS53に進み、不揮発性メ
モリ11に格納されているエラー発生時の稼動状況及び
稼動中の装置番号を表示部10に表示し、処理を停止す
る。
On the other hand, in the maintenance (serviceman) mode, the process proceeds to step S52, and an error flag is set in the process described below before the power is turned on or reset. The operating status and operating device number at the time of the error occurrence are displayed on the display unit 10, and the processing is stopped.

次にステップS51に通常処理を第4図及び第5図を参
照して説明する。
Next, the normal processing in step S51 will be explained with reference to FIGS. 4 and 5.

なお、第4図、第5図において、第10図、第11図と
同一処理については同一ステップ番号を付し、その説明
を省略する。
Note that in FIGS. 4 and 5, the same steps as those in FIGS. 10 and 11 are given the same step numbers, and their explanations will be omitted.

第10図と同様にしてステップ51〜S3の処理実行後
、続くステップS3aでこの時(第5図Fl)の動作装
置番号である“動、1”をメモリ3中の所定位置に書込
む。そして、ステップS4〜S6の処理を実行し、第5
図F2の動作状態とする。続くステップ36aでこの時
の動作装置番号である“歯、1″、′動、2”、  ″
歯、3″をメモリ3中の所定位置に書込む。
After executing steps 51 to S3 in the same manner as in FIG. 10, in the subsequent step S3a, the operating device number "Movement, 1" at this time (FIG. 5 Fl) is written in a predetermined position in the memory 3. Then, the processes of steps S4 to S6 are executed, and the fifth
The operating state is shown in Figure F2. In the following step 36a, the operating device numbers at this time are "Tooth, 1", 'Movement, 2', ''.
Write tooth, 3″ into a predetermined position in memory 3.

以下同様にしてステップ57〜S9の処理で第5図F3
の動作状態とし、ステップ39aでこの時の動作装置番
号である“No、  1“、”No、3”をメモリ3中
の所定位置に書込み、ステップS10〜S12の処理に
より第5図F4の状態とする。そしてステップ512a
でメモリ3中の所定位置にこの時の稼動装置番号である
“動、1”。
Thereafter, in the same manner, in the processing of steps 57 to S9, F3 in FIG.
In step 39a, the operating device numbers "No. 1" and "No. 3" at this time are written to predetermined positions in the memory 3, and the processing in steps S10 to S12 returns to the state of F4 in FIG. shall be. and step 512a
At a predetermined location in the memory 3, the number of the operating device at this time is "Movement, 1".

“No、2”、  ″動、3″を書込む。更にステップ
S13〜S15を実行し、第5図F5の状態として、そ
の時の稼動装置番号“動、1”をメモリ3にセットし、
ステップ516〜S18の処理を実行する。そして、こ
の処理により全ての装置を停止状態として、メモリ3中
の所定位置に記憶されている稼動装置番号をクリアして
再びステップS1の処理に戻る。
Write “No, 2”, “Move, 3”. Furthermore, steps S13 to S15 are executed, and the operating device number "Moving, 1" at that time is set in the memory 3 as the state shown in FIG. 5, F5.
The processes of steps 516 to S18 are executed. Then, through this process, all devices are brought to a halt state, the operating device number stored in a predetermined position in the memory 3 is cleared, and the process returns to step S1 again.

以上の通常処理における通信処理サブルーチンの詳細を
第5図に示す。上述した第11図とほぼ同様の処理であ
るが、ステップS33でタイムオーバが検出された時に
、ステップ340以下の処理を実行することになる。即
ち、まず、ステップS40でこのタイムオーバ発生時の
エラー内容を調べ、ごれを不揮発性メモリドlのエラー
内容記憶領域に書込む、そして続くステップS41でこ
の時の稼動装置番号をメモリ3中の所定位置より読出し
、同じく不揮発性メモリ11のエラー装置番号記憶領域
に書込む。そして不揮発性メモリ11中のエラーフラグ
記憶領域のエラーフラグをセットし、ステップS35で
エラー表示して処理を停止する。
FIG. 5 shows details of the communication processing subroutine in the above normal processing. The process is almost the same as that in FIG. 11 described above, but when a time-over is detected in step S33, the processes from step 340 onwards are executed. That is, first, in step S40, the content of the error at the time of this time-over occurrence is checked, and the error is written into the error content storage area of the non-volatile memory card 1.Then, in the subsequent step S41, the operating device number at this time is stored in the memory 3. It is read from a predetermined location and written to the error device number storage area of the nonvolatile memory 11 as well. Then, an error flag in the error flag storage area in the nonvolatile memory 11 is set, an error is displayed in step S35, and the process is stopped.

以上説明した如く本実施例によれば、特定装置が稼動中
の場合のみエラーが発生するような場合であってもエラ
ー発生時の稼動装置が不揮発性メモリに記憶されており
、適切な処理が可能となる。例えば、本実施例によれば
、モータ8が動作している時だけ通信エラーが発生すれ
ば、原因はモータ8のノイズなるという推測がつけ易く
、大変便利である。
As explained above, according to this embodiment, even if an error occurs only when a specific device is in operation, the operating device at the time of the error is stored in the nonvolatile memory, and appropriate processing can be performed. It becomes possible. For example, according to this embodiment, if a communication error occurs only when the motor 8 is operating, it is easy to assume that the cause is noise in the motor 8, which is very convenient.

[第2実施例] 以上の説明においては、各構成装置に固有の番号を附し
、システムにおいて実際に稼動中の装置番号をメモリ3
に格納しておき、エラー発生時にこのメモリ3中の稼動
装置番号を読出し、不揮発性メモリ11にストアする例
について述べたが、本発明はこれに限るものではなく、
エラー発生時のシステムの稼動状況が正確に認識できる
ものであればよい。
[Second Embodiment] In the above explanation, each component device is given a unique number, and the device number actually in operation in the system is stored in the memory 3.
Although an example has been described in which the operating device number is stored in the memory 3 and stored in the nonvolatile memory 11 when an error occurs, the present invention is not limited to this.
Any method is sufficient as long as it can accurately recognize the operating status of the system at the time of error occurrence.

以下、第1実施例における稼動装置番号に変え、稼動モ
ード(その時のフェーズ番号)をメモリ3に記憶し、エ
ラー発生時にこの稼動状況を読出し不揮発性メモリ11
に格納する例を第6図〜第8図を参照して説明する。第
6図〜第8図において、第3図〜第5図と同一処理につ
いては同一ステップ番号を附し、説明を省略する。
Hereinafter, the operating device number in the first embodiment is changed, the operating mode (the phase number at that time) is stored in the memory 3, and when an error occurs, this operating status is read out from the non-volatile memory 11.
An example of storing the data in a file will be explained with reference to FIGS. 6 to 8. In FIGS. 6 to 8, the same steps as those in FIGS. 3 to 5 are given the same step numbers, and the explanation thereof will be omitted.

まず、第6図において、第3図のステップS53では表
示部10にエラー内容と共に稼動していた装置番号を表
示したが、本例では装置番号に変え、その時のフェーズ
番号を表示することとした。なお、このフェーズ番号は
第2図に示すF1〜F5に該当する。
First, in FIG. 6, in step S53 of FIG. 3, the display unit 10 displays the error details as well as the device number that was operating, but in this example, the phase number at that time is displayed instead of the device number. . Note that this phase number corresponds to F1 to F5 shown in FIG.

この様に、稼動装置番号に変えてフェーズ番号を表示す
ることとしたのは、各フェーズF1〜F5において稼動
中の装置は、一義的に定まるためである。
The reason why the phase number is displayed instead of the operating device number is because the devices that are operating in each phase F1 to F5 are uniquely determined.

第7図に示す通常処理においては、第4図において稼動
中の装置番号をそれぞれメモリ3中の所定位置に書込ん
だのに変え、その時のフェーズ番号をメモリ3中の所定
位置に書込むものである。
In the normal processing shown in FIG. 7, the device numbers in operation in FIG. 4 are written in predetermined locations in the memory 3, respectively, and the phase numbers at that time are written in predetermined locations in the memory 3. .

即ち、第4図ステップS3aでの″動、1″の格納に変
え第7図ステップS3bで“Fl”を格納し、第4図ス
テップ36aでの“歯、1”。
That is, instead of storing "movement, 1" in step S3a of FIG. 4, "Fl" is stored in step S3b of FIG. 7, and "tooth, 1" is stored in step S36a of FIG.

“陽、2″、  ”No、 3″の格納に変え第7図ス
テップS6bで”F2”を、第4図ステップS9aでの
’No、1”、″勤、2″格納に変え第7図ステップS
9bでF3″を、第4図ステップ512aでの’No、
  1” 、  ”No、  2” 、  “No、3
”の格納に変え第7図ステップ512bでF4″を、第
4図ステップ515aでのNo、1”格納に変え第7図
ステップ515bで“F5”を、第4図ステップS19
で動作装置番号格納位置をクリアするのに対して第7図
ステップS20でフェーズ番号記憶位置をクリアするよ
う制御する。
In step S6b of Fig. 7, "F2" is changed to the storage of "positive, 2", "no, 3", and is changed to the storage of 'no, 1', "shift, 2" in step S9a of Fig. 4. Step S
F3'' at step 9b, 'No' at step 512a in FIG.
1”, “No, 2”, “No, 3”
"F4" in step 512b of FIG. 7, and "F5" in step S19 of FIG. 4 instead of storing "No, 1" in step 515a of FIG.
In step S20 of FIG. 7, the operating device number storage location is cleared, and in step S20 of FIG. 7, the phase number storage location is cleared.

なお、このメモリ3中の両状態格納位置を分ける必要は
なく、全く同一の領域を割当ててもよい。
Note that there is no need to separate the storage locations for both states in the memory 3, and the same area may be allocated.

本実施例においては、以上の処理により常時現在実行中
のフェーズ番号がメモリ3中に格納されていることにな
る。
In this embodiment, the phase number currently being executed is always stored in the memory 3 through the above processing.

このようにフェーズ番号で記憶することにより、例えば
第4図の処理においては、フェーズ“F2”とフェーズ
F4”では全く同一の装置番号”No、  1” 、 
 ”No、  2″、“No、3”が記憶されているが
、第7図の処理によりフェーズ番号によって記憶するこ
とにより、モータ8か正転中が逆転中かをも容易に判別
することができる。
By storing the phase numbers in this way, for example, in the process shown in FIG.
"No. 2" and "No. 3" are stored, but by storing the phase numbers using the process shown in FIG. 7, it is possible to easily determine whether the motor 8 is rotating in the forward direction or in the reverse direction. can.

更に、第8図においては、第5図ステップS41でメモ
リ3中の装置番号記憶領域から装置番号を読出してきて
、不揮発性メモリ11中に書込んだのに対して、メモリ
3中のフェーズ番号記憶領域から、現在の稼動フェーズ
番号を読出して不揮発性メモリ11中に書込む。
Furthermore, in FIG. 8, while the device number is read from the device number storage area in the memory 3 and written into the nonvolatile memory 11 in step S41 in FIG. The current operating phase number is read from the storage area and written into the nonvolatile memory 11.

なお、以上の第1、第2実施例においては、エラー発生
時の不揮発性メモリ11への稼動状況の格納を、データ
通信中の異常検出時のみ行う例を説明したが、システム
の稼動状況が常時メモリ3中に保持されており、電源異
常時や、処理途中での電源断時等においても、このメモ
リ3格納データ(エラー状態)を不揮発性メモリ11に
書込むことができる。この様に制御することにより、ど
のようなエラー発生時であっても、適切な処理が可能と
なる。
In the first and second embodiments described above, an example was explained in which the operating status is stored in the nonvolatile memory 11 only when an abnormality is detected during data communication when an error occurs. The data stored in the memory 3 (error state) can be written to the nonvolatile memory 11 even in the event of a power failure or a power cut during processing. By controlling in this manner, appropriate processing can be performed no matter what kind of error occurs.

このように本実施例においては、エラー発生時の稼動状
況を不揮発性メモリ11に格納するため、エラーの発生
によりシステムがハングアップしてしまった場合等に、
電源断により、又は操作部7上のリセットキー等を押下
人力した場合であっても、そのエラー発生状態を後で読
出し、分析することが可能となる。
As described above, in this embodiment, since the operating status at the time of error occurrence is stored in the nonvolatile memory 11, when the system hangs up due to the occurrence of an error, etc.
Even if the power is turned off or a reset key or the like on the operation unit 7 is pressed manually, the error occurrence state can be read out and analyzed later.

[発明の効果] 以上説明した様に本発明によれば、異常検出時のシステ
ムの稼動状態が不揮発性メモリに書込まれているため、
異常状態の解析時に容易にエラー発生状態が認識するこ
とができる。
[Effects of the Invention] As explained above, according to the present invention, since the operating state of the system at the time of abnormality detection is written in the nonvolatile memory,
An error occurrence state can be easily recognized when analyzing an abnormal state.

このため特殊な条件が重なった場合にのみ発生する異常
状態であってもこの条件を把握できる。
Therefore, even if an abnormal condition occurs only when special conditions overlap, this condition can be grasped.

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

第1図は本発明に係る一実施例のブロック図、第2図は
本実施例の動作シーケンス例を示す図、 第3図〜第5図は本実施例の動作フローチャート、 第6図〜第8図は本発明に係る他の実施例の動作フロー
チャート、 第9図は従来装置のブロック図、 第10図、第11図は従来装置の動作フローチャートで
ある。 図中、1・・・CPU、2・・・ROM、3・・・メモ
リ、4・・・タイマ、5・・・データ通信インタフェー
ス、6・・・I10ボート、7・・・操作部、7a・・
・モードキー、8・・・モータ、9・・・画像処理部、
10・・・表示部、11・・・不揮発性メモリ、15・
・・データ通信媒体である。
FIG. 1 is a block diagram of an embodiment according to the present invention, FIG. 2 is a diagram showing an example of an operation sequence of this embodiment, FIGS. 3 to 5 are operation flowcharts of this embodiment, and FIGS. FIG. 8 is an operational flowchart of another embodiment of the present invention, FIG. 9 is a block diagram of a conventional device, and FIGS. 10 and 11 are operational flowcharts of a conventional device. In the figure, 1... CPU, 2... ROM, 3... Memory, 4... Timer, 5... Data communication interface, 6... I10 board, 7... Operation unit, 7a・・・
・Mode key, 8...Motor, 9...Image processing section,
10...Display section, 11...Nonvolatile memory, 15.
...A data communication medium.

Claims (12)

【特許請求の範囲】[Claims] (1)揮発性メモリの他に不揮発性メモリを備える情報
処理システムにおける異常処理方法であつて、システム
が動作異常を検出すると、該異常検出時のシステムの稼
動状態を前記不揮発性メモリに書込む書込処理と、異常
検出を報知する報知処理と、該報知処理に続き、実行中
の処理を停止する停止処理とより成ることを特徴とする
異常処理方法。
(1) An abnormality handling method in an information processing system that includes nonvolatile memory in addition to volatile memory, wherein when the system detects an operational abnormality, the operating state of the system at the time of the abnormality detection is written to the nonvolatile memory. An abnormality handling method comprising: a write process, a notification process for notifying abnormality detection, and, following the notification process, a stop process for stopping the process being executed.
(2)書込処理は、異常検出時のシステムの各構成装置
の動作状態を検出して、不揮発性メモリに書込むことを
特徴とする特許請求の範囲第1項記載の異常処理方法。
(2) The abnormality processing method according to claim 1, wherein the writing process detects the operating state of each component device of the system at the time of abnormality detection and writes it into a nonvolatile memory.
(3)書込処理は、異常検出時のシステムの動作中の装
置番号を書込むことを特徴とする特許請求の範囲第1項
記載の異常処理方法。
(3) The abnormality processing method according to claim 1, wherein the writing process writes the number of the device in operation in the system at the time of abnormality detection.
(4)報知処理はシステムの表示装置にエラー表示を行
い、停止処理はシステムのプロセッサをホルト状態にす
ることを特徴とする特許請求の範囲第1項より第3項の
いずれかに記載の異常処理方法。
(4) The abnormality according to any one of claims 1 to 3, wherein the notification process displays an error on a display device of the system, and the stop process places the system processor in a halt state. Processing method.
(5)異常検出はデータ通信媒体を介して他の装置との
間でデータ通信を行つている場合に異常検出を行うこと
を特徴とする特許請求の範囲第1項より第4項のいずれ
かに記載の異常処理方法。
(5) Any one of claims 1 to 4, characterized in that abnormality detection is performed when data communication is being performed with another device via a data communication medium. The abnormality handling method described in .
(6)稼動状態は状態の変わる毎に予め記憶手段に記憶
しておき、書込処理でこれを読出して不揮発性メモリに
書込むことを特徴とする特許請求の範囲第1項より第5
項のいずれかに記載の異常処理方法。
(6) The operating state is stored in advance in a storage means each time the state changes, and is read out and written into a non-volatile memory in a write process.
The abnormality handling method described in any of the paragraphs.
(7)揮発性メモリの他に不揮発性メモリを備える情報
処理システムにおける異常処理装置であつて、システム
が動作異常を検出すると該異常検出時のシステムの稼動
状態を前記不揮発性メモリに書込む書込手段と、異常検
出を報知する報知手段と、該報知手段に続き、実行中の
処理を停止する停止手段とを備えることを特徴とする異
常処理装置。
(7) An abnormality processing device in an information processing system that includes a nonvolatile memory in addition to a volatile memory, which writes the operating state of the system at the time of detection of the abnormality to the nonvolatile memory when the system detects an operational abnormality. 1. An abnormality processing apparatus, comprising: a notification means for notifying abnormality detection; and a stopping means following the notification means for stopping a process being executed.
(8)書込手段は、異常検出時のシステムの各構成装置
の動作状態を検出して、不揮発性メモリに書込むことを
特徴とする特許請求の範囲第7項記載の異常処理装置。
(8) The abnormality processing device according to claim 7, wherein the writing means detects the operating state of each component device of the system at the time of abnormality detection and writes it into the nonvolatile memory.
(9)書込手段は、異常検出時のシステムの動作中の装
置番号を書込むことを特徴とする特許請求の範囲第7項
記載の異常処理装置。
(9) The abnormality processing device according to claim 7, wherein the writing means writes the number of the device in operation in the system at the time of detecting the abnormality.
(10)報知手段はシステムの表示装置にエラー表示を
行い、停止手段はシステムのプロセッサをホルト状態に
することを特徴とする特許請求の範囲第7項より第9項
のいずれかに記載の異常処理装置。
(10) The abnormality according to any one of claims 7 to 9, wherein the notifying means displays an error on a display device of the system, and the stopping means puts the processor of the system in a halt state. Processing equipment.
(11)異常検出はデータ通信媒体を介して他の装置と
の間でデータ通信を行つている場合に行うことを特徴と
する特許請求の範囲第7項より第10項のいずれかに記
載の異常処理装置。
(11) The abnormality detection according to any one of claims 7 to 10, characterized in that the abnormality detection is performed when data communication is being performed with another device via a data communication medium. Abnormality processing device.
(12)稼動状態は状態の変わる毎に予め記憶手段に記
憶しておき、書込処理でこれを読出して不揮発性メモリ
に書込むことを特徴とする特許請求の範囲第7項より第
11項のいずれかに記載の異常処理装置。
(12) The operating state is stored in advance in a storage means each time the state changes, and is read out and written into a non-volatile memory in a write process. The abnormality processing device according to any one of.
JP62076376A 1987-03-31 1987-03-31 Method and device for processing abnormality Pending JPS63244235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62076376A JPS63244235A (en) 1987-03-31 1987-03-31 Method and device for processing abnormality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62076376A JPS63244235A (en) 1987-03-31 1987-03-31 Method and device for processing abnormality

Publications (1)

Publication Number Publication Date
JPS63244235A true JPS63244235A (en) 1988-10-11

Family

ID=13603618

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62076376A Pending JPS63244235A (en) 1987-03-31 1987-03-31 Method and device for processing abnormality

Country Status (1)

Country Link
JP (1) JPS63244235A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647764A (en) * 2019-09-05 2020-01-03 上海交通大学 Protection method and system for user-mode nonvolatile memory file system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647764A (en) * 2019-09-05 2020-01-03 上海交通大学 Protection method and system for user-mode nonvolatile memory file system

Similar Documents

Publication Publication Date Title
JPS63244235A (en) Method and device for processing abnormality
JP2009223714A (en) Arithmetic circuit and failure analysis method of arithmetic circuit
JP2708471B2 (en) Processing device control method
JP3357777B2 (en) Program control system
JPH0424838A (en) Fault control system for multiprocessor
JPS6232510A (en) Abnormality diagnostic device for sequencer
JP2679575B2 (en) I / O channel fault handling system
JPH10228395A (en) Abnormality diagnostic device for controller
JPH0713780A (en) Device equipped with graphical user interface
JPH1091477A (en) Control microcomputer device and maintenance tool for the same
JPS6051961A (en) Initial program load processing system
JP2004102324A (en) Interrupt program module, recording medium storing the module and computer capable of interrupt processing
JP2684966B2 (en) I / O processor debug device
JPH0628782A (en) Magnetic disk device provided with self-diagnosis function
JPH10222361A (en) Rom program monitor device in processor of computer or the like
JPH0241189Y2 (en)
JPH04330543A (en) Method for discriminating presence/absence of data in memory
JPH0395634A (en) Restart control system for computer system
JPH11259332A (en) Computer system device
JPS62133549A (en) Ipl sate display control system
JPS6299812A (en) Monitor system for numerical controller
JPH081607B2 (en) Pseudo-fault occurrence method in information processing system
JPS62298841A (en) Firmware debugging system
JPH0993781A (en) Digital protection-control device and its initialization and man-machine interface access control
JPH04295931A (en) Programming device for programmable controller