JP2695785B2 - Processing state display method of processing unit - Google Patents

Processing state display method of processing unit

Info

Publication number
JP2695785B2
JP2695785B2 JP62128144A JP12814487A JP2695785B2 JP 2695785 B2 JP2695785 B2 JP 2695785B2 JP 62128144 A JP62128144 A JP 62128144A JP 12814487 A JP12814487 A JP 12814487A JP 2695785 B2 JP2695785 B2 JP 2695785B2
Authority
JP
Japan
Prior art keywords
display
processing
state
main program
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.)
Expired - Lifetime
Application number
JP62128144A
Other languages
Japanese (ja)
Other versions
JPS63293649A (en
Inventor
正彦 宮田
高 片山
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62128144A priority Critical patent/JP2695785B2/en
Publication of JPS63293649A publication Critical patent/JPS63293649A/en
Application granted granted Critical
Publication of JP2695785B2 publication Critical patent/JP2695785B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 【産業上の利用分野】 本願発明は、プログラムで制御される処理装置の動作
がシーケンス的に正常であるか否かを表示する処理装置
の動作状態表示方法に関する。 【従来の技術】 従来、処理装置の異常を検出するには、特開昭60−15
3548号公報に記載のように、ウオッチドックタイマを用
いて自動的に異常を検出した上、更に再スタートが行わ
れるようになっている。また、特開昭60−55448号公報
にはタイマカウンタの計数値を処理装置に取り込んで、
タイマカウンタの不良が判定されるようになっている。 また、ウオッチドックタイマを用いない方法として、
特開昭61−118845号公報に記載のように、プログラム中
のチェックポイントでランプを点灯、消灯させ、ソフト
シーケンスの動作状態を表示する方法がある。 【発明が解決しようとする問題点】 しかしながら、前者による場合は、タイマカウンタが
不良の場合、検出不可となっている。この問題は中者に
示された技術によって解消されるが、当初より処理装置
もタイマカウンタも動作しない場合は何ら表示が行われ
ないことになり、異常にも拘わらず正常と判断されてし
まうという不具合がある。 ところで、処理装置のシーケンス動作が正常であるか
否かは、一般には処理結果より知れるが、処理結果の出
力場所が処理シーケンス動作状態を把握したい場所から
離れていたり、あるいは処理結果の出力データが一定デ
ータであるような場合などでは、処理結果が正常に出力
されているのか、又はソフトウエアの異常ループにより
一定データを出力しているのが容易に知れなく、処理装
置の処理シーケンスが正常に動作しているか否かを容易
に知ることが必要となっている。 その方法として後者に記載の方法があるが、この場合
は動作監視されるプログラムを2本に分け、各々のプロ
グラムを交互にタイマ起動する構成にしなければならな
いという制約があった。 本発明の目的は、それらの制約がなく、処理シーケン
スが正常に動作しているか否かが容易に知れる処理装置
の動作状態表示方法を提供することにある。 【問題点を解決するための手段】 上記目的は、シーケンス処理動作途中に挿入され、表
示をオン、オフ制御するプログラムが周期的に実行され
ているか否か、その表示が周期的にオン、オフされてい
るか否かを認識することで達成される。 【作用】 表示をオン、オフ制御するプログラムはタイマ割込プ
ログラムで作成された、一定周期で反転する特定ビット
の状態に基づきその表示をオン、オフ制御するものとな
っている。即ち、例えばその特定ビットの状態が“1"の
場合のみ表示オン制御プログラムは表示をオンとし、ま
た、その状態が“0"の場合のみ表示オフ制御プログラム
はその表示をオフにするようにすれば、処理シーケンス
が正常である場合は、表示はその特定ビットの状態反転
と同期してオン、オフされることになる。表示がオン、
オフされない場合は、表示器や処理シーケンスなどに何
らかの異常が生じていると判断し得るが、オン、オフさ
れている場合には、処理シーケンスを含む全てが正常で
あると判断され得るものである。ここで、特定ビットの
反転は、タイマ割込プログラムで作成される。タイマ割
込プログラムとは、プログラム割込みの要因がタイマ割
込みでることを示し、タイマ割込みとは、ある決められ
た時間間隔での周期的処理(ここでは特定ビットの反
転)をするために、例えばハードウェアの発振回路で一
定周期のトリガ信号を作成し、プログラムを実行する処
理装置の割込みラインに入力して、前記一定周期の割り
込みを発生させることを意味する。一般に前記時間間隔
は前記一定周期の整数(N)倍で一定周期の割り込みが
ある度に割込みプログラムが割込の回数をカウントし
て、丁度N回毎に行う処理が前記時間間隔の周期の処理
(ここでは特定ビットの反転処理)となる。このこと
は、タイマ割込処理の一般的に行われている処理内容で
ある。 【実施例】 以下、本発明を第1図、第2図により説明する。ま
ず、本発明に係る処理装置について第2図を用いて説明
する。第2図はその一例で、概要構成を示したものであ
る。図示のように処理装置1は、実行プログラムの一つ
であるメインプログラムを処理するメインプログラム処
理部4と、特定ビットの状態を設定したレジスタ3と、
メインプログラム実行の途中に割込んで実行プログラム
の一つである割込処理プログラムを実行し、レジスタ3
の特定ビットの状態を反転するタイマ割込処理部2とを
備えている。タイマ割込処理部2(割込処理プログラ
ム)は、メインプログラム処理部4(メインプログラ
ム)とはそれぞれ独立した構成となっているので、割込
処理は、割込みがかかると、メインプログラム実行中に
一時的に割り込んで実行することになり、メインプログ
ラム中に割込処理が挿入されることになる。なお、一般
には、メインプログラムの実行中に割込みがかかると、
メインプログラムの実行は一時中断され、この中断の間
割込処理プログラムが実行され、該割込処理プログラム
の実行が終了すると、メインプログラムの実行が再開さ
れ、このようなことは割込処理の基本とされている。メ
インプログラム処理部4は、メインプログラム中に挿入
された表示オン制御プログラム処理と表示オフ制御プロ
グラム処理により、レジスタ3の特定ビットの状態が判
定され、この結果に応じて出力バッファ5を介して表示
器6に表示オン、または表示オフの信号を出力する。表
示オン制御プログラム処理及び表示オフ制御プログラム
処理は、メインプログラムが実行されると、シーケンス
的に実行される。この出力によって、表示器6での表示
がオン、オフ制御されるものとなっている。この場合、
レジスタ3に設定されている特定ビットの状態はタイマ
割込処理部2によって一定周期毎に反転され、その周期
はメインプログラムの実行周期よりも大きく設定されて
いる。また、タイマ割込処理部2の機能は、ソフトウェ
アつまりプログラム処理にて行っているが、タイマ割込
処理部そのものをハードウェア的に構成しても良く、つ
まり発振回路と分周回路の構成により前述した動作機能
を持たせるようにしても良いことは明らかである。 第1図は、本発明に係るメインプログラムの一例での
概要フローを示し、該図を用いて以下上記処理装置の動
作を説明する。 メインプログラムの実行が開始すると、まず初期設定
のプログラムにより必要な初期設定処理S1が行われる。
初期設定処理の後は、第1メインプログラム処理S2が行
なわれる。第1メインプログラム処理S2が実行された後
は、表示オン制御プログラム処理S3により既述の特定ビ
ットの状態が判定されるが、例えばその状態が“1"と判
定された場合にのみ表示オン信号が表示器6に出力さ
れ、“0"と判定された場合は即第2メインプログラム処
理S4が実行される。この第2メインプログラム処理の後
は、表示オフ制御プログラム処理S5が実行される。この
実行後は再び第1メインプログラム処理S2が実行され
る。このようにメインプログラムは、第1メインプログ
ラム処理S2、表示オン制御プログラム処理S3、第2メイ
ンプログラム処理S4、表示オフ制御プログラム処理S5が
周期的に実行されるように構成されている。ここで、表
示オフ制御プログラム処理S5では特定ビットの状態が
“0"の場合のみ表示オフ信号を表示器6に出力するも、
その状態が“1"と判定された場合は何らの処理も行われ
ることなく、即第1メインプログラム処理S2が実行され
るものとなっている。 したがって、メインプログラムの実行周期より特定ビ
ットの反転周期を大とした状態で表示オン、オフの制御
プログラムをメインプログラム実行周期で実行させる場
合は、表示器6による表示は特定ビットの反転周期に同
期してオン、オフされるところとなるものである。しか
しながら、メインプログラムの処理シーケンスが何らか
の原因で異常となった場合、例えば第1メインプログラ
ム処理S2において異常ループが発生した場合を想定すれ
ば、異常ループ発生後はもはや表示オン、オフの制御プ
ログラム処理は行われることはないから、表示器6はそ
の異常発生前の表示状態をそのまま維持することになる
ものである。表示状態の維持は表示器6自体や出力バッ
ファ5の故障によっても生じるが、何れにしても表示器
6による表示が所定にオン、オフされている場合は、少
なくとも処理シーケンスは正常に動作していると判断し
得るものである。 【発明の効果】 以上説明したように、本発明によれば、処理結果によ
ることなく、また、動作監視されるプログラムを、周期
的にタイマ起動させる必要もなく、処理シーケンスが正
常に動作しているか否かが容易に知れるという効果があ
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of displaying an operation state of a processing device which displays whether or not the operation of a processing device controlled by a program is normal in sequence. 2. Description of the Related Art Conventionally, in order to detect an abnormality of a processing apparatus, Japanese Patent Application Laid-Open No. 60-15 / 1985
As described in Japanese Patent Publication No. 3548, an abnormality is automatically detected by using a watchdog timer, and a restart is further performed. Also, Japanese Patent Application Laid-Open No. 60-55448 discloses that a count value of a timer counter is taken into a processing device,
The timer counter is determined to be defective. As a method that does not use the watchdog timer,
As described in JP-A-61-118845, there is a method of turning on and off a lamp at a check point in a program and displaying an operation state of a soft sequence. However, in the former case, if the timer counter is defective, it cannot be detected. This problem is solved by the technique shown by the middle man, but if neither the processing device nor the timer counter is operated from the beginning, no display will be performed, and it will be determined that it is normal despite abnormalities. There is a defect. By the way, it is generally known from the processing result whether or not the sequence operation of the processing device is normal. However, the output position of the processing result is far from the place where the operation sequence operation state is to be grasped, or the output data of the processing result is In the case of constant data, it is not easy to know whether the processing result is output normally or the constant data is output due to an abnormal software loop. It is necessary to easily know whether or not it is operating. As the method, there is a method described in the latter, but in this case, there is a restriction that the program whose operation is to be monitored is divided into two, and each program must be alternately started by a timer. It is an object of the present invention to provide an operating state display method of a processing device that has no such restrictions and easily knows whether or not a processing sequence is operating normally. [Means for Solving the Problems] The object of the present invention is to determine whether or not a program that is inserted during a sequence processing operation and that controls display on and off is periodically executed, and that the display is periodically turned on and off. It is achieved by recognizing whether or not it has been done. The display ON / OFF control program controls the display ON / OFF based on the state of a specific bit which is inverted at a constant cycle and is created by the timer interrupt program. That is, for example, the display-on control program turns on the display only when the state of the specific bit is "1", and the display-off control program turns off the display only when the state of the specific bit is "0". For example, if the processing sequence is normal, the display is turned on and off in synchronization with the state inversion of the specific bit. Display is on,
If it is not turned off, it can be determined that some abnormality has occurred in the display or the processing sequence, but if it is on or off, it can be determined that everything including the processing sequence is normal. . Here, the inversion of the specific bit is created by a timer interrupt program. The timer interrupt program indicates that the cause of the program interrupt is a timer interrupt. The timer interrupt is, for example, a hardware interrupt for performing periodic processing (here, inversion of a specific bit) at a predetermined time interval. This means that a trigger signal having a fixed cycle is generated by an oscillating circuit of a wearer and input to an interrupt line of a processing device for executing a program to generate the interrupt having the fixed cycle. Generally, the time interval is an integer (N) times the fixed period, and the interrupt program counts the number of interrupts every time there is a fixed period interrupt. (Here, the inversion process of the specific bit). This is a general processing content of the timer interrupt processing. DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described with reference to FIGS. First, a processing apparatus according to the present invention will be described with reference to FIG. FIG. 2 shows an example of this, showing a schematic configuration. As illustrated, the processing device 1 includes a main program processing unit 4 that processes a main program, which is one of the execution programs, a register 3 that sets the state of a specific bit,
The interrupt processing program, which is one of the execution programs, is interrupted during the execution of the main program, and the register 3
And a timer interrupt processing unit 2 for inverting the state of the specific bit. Since the timer interrupt processing unit 2 (interrupt processing program) has a configuration independent of the main program processing unit 4 (main program), the interrupt processing is interrupted during execution of the main program when an interrupt occurs. The execution is temporarily interrupted, and an interrupt process is inserted into the main program. In general, if an interrupt occurs during the execution of the main program,
The execution of the main program is temporarily interrupted. During this interruption, the interrupt processing program is executed, and when the execution of the interrupt processing program is completed, the execution of the main program is resumed. It has been. The main program processing section 4 determines the state of a specific bit of the register 3 by the display on control program processing and the display off control program processing inserted in the main program, and displays the result via the output buffer 5 according to the result. The display ON / OFF signal is output to the device 6. The display-on control program processing and the display-off control program processing are sequentially executed when the main program is executed. The output on the display 6 is controlled to be turned on and off by this output. in this case,
The state of the specific bit set in the register 3 is inverted by the timer interrupt processing unit 2 at regular intervals, and the cycle is set to be longer than the execution cycle of the main program. Although the function of the timer interrupt processing unit 2 is performed by software, that is, program processing, the timer interrupt processing unit itself may be configured by hardware, that is, by the configuration of the oscillation circuit and the frequency dividing circuit. Obviously, the above-described operation function may be provided. FIG. 1 shows a schematic flow of an example of a main program according to the present invention, and the operation of the above processing device will be described below with reference to FIG. When the execution of the main program starts, first, a necessary initialization process S1 is performed by an initialization program.
After the initial setting process, a first main program process S2 is performed. After the first main program processing S2 is executed, the state of the specific bit described above is determined by the display ON control program processing S3. For example, only when the state is determined to be “1”, the display ON signal is turned ON. Is output to the display 6 and if it is determined to be "0", the second main program processing S4 is immediately executed. After the second main program processing, a display off control program processing S5 is executed. After this execution, the first main program processing S2 is executed again. Thus, the main program is configured such that the first main program processing S2, the display-on control program processing S3, the second main program processing S4, and the display-off control program processing S5 are periodically executed. Here, in the display-off control program processing S5, the display-off signal is output to the display 6 only when the state of the specific bit is “0”.
When the state is determined to be “1”, the first main program processing S2 is immediately executed without performing any processing. Therefore, when the display ON / OFF control program is executed in the main program execution cycle in a state where the inversion cycle of the specific bit is longer than the execution cycle of the main program, the display by the display 6 is synchronized with the inversion cycle of the specific bit. And then turned on and off. However, when the processing sequence of the main program becomes abnormal for some reason, for example, assuming that an abnormal loop occurs in the first main program processing S2, after the occurrence of the abnormal loop, the control program processing of display ON and OFF is no longer performed. Is not performed, and the display 6 maintains the display state before the occurrence of the abnormality. The maintenance of the display state is also caused by the failure of the display 6 itself or the output buffer 5, but in any case, when the display by the display 6 is turned on and off in a predetermined manner, at least the processing sequence normally operates. It can be judged that there is. As described above, according to the present invention, the processing sequence operates normally without depending on the processing result and without having to periodically start the timer of the program whose operation is to be monitored. There is an effect that it is easy to know whether or not there is.

【図面の簡単な説明】 第1図は、本発明に係るメインプログラムの一例での概
要フローを示す図、第2図は、本発明に係る処理装置の
一例での概要構成を示す図である。 1……処理装置、2……タイマ割込処理部、3……レジ
スタ、4……メインプログラム処理部、5……出力バッ
ファ、6……表示器。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing a schematic flow of an example of a main program according to the present invention, and FIG. 2 is a diagram showing a schematic configuration of an example of a processing device according to the present invention. . 1 ... processing device, 2 ... timer interrupt processing unit, 3 ... register, 4 ... main program processing unit, 5 ... output buffer, 6 ... display unit.

Claims (1)

(57)【特許請求の範囲】 1.特定ビットの状態を設定したレジスタ(3)と、メ
インプログラムに割り込んで実行される割込処理プログ
ラムを含み、メインプログラム実行処理周期よりも大き
く設定された一定周期毎に、前記レジスタの特定ビット
の状態を反転するタイマ割込処理部(2)と、メインプ
ログラム中に挿入された表示オン制御プログラム処理と
表示オフ制御プログラム処理により、前記レジスタの特
定ビットの状態を判定し、この結果に応じて表示オン又
は表示オフの信号を表示器(6)に出力するメインプロ
グラム処理部(4)とを備えた処理装置(1)の動作状
態表示方法であって、 前記メインプログラムの第1メインプログラム処理を実
行する第1のステップと、 前記第1メインプログラム処理実行後、表示オン制御プ
ログラム処理を実行することによって、前記レジスタの
特定ビットの状態を判定し、この結果特定ビットの状態
が“1"のとき前記表示器に表示オン信号を出力する第2
のステップと、 前記表示オン制御プログラム処理実行後、前記メインプ
ログラムの第2メインプログラム処理を実行する第3の
ステップと、 前記第2メインプログラム処理後、表示オフ制御プログ
ラム処理を実行することによって、前記レジスタの特定
ビットの状態を判定し、この結果特定ビットの状態が
“0"のとき、前記表示器に表示オフ信号を出力する第4
のステップと、 からなる処理装置の動作状態表示方法。
(57) [Claims] A register (3) in which the state of a specific bit is set, and an interrupt processing program which is executed by interrupting the main program, wherein the specific bit of the register is set at regular intervals set to be longer than the main program execution processing cycle. The state of a specific bit of the register is determined by a timer interrupt processing unit (2) for inverting the state, a display on control program processing and a display off control program processing inserted in the main program, and according to the result, A main program processing unit (4) for outputting a display on or display off signal to a display (6), the method comprising: displaying an operation state of a processing device (1); Performing a display-on control program process after executing the first main program process. By determining the state of a particular bit of the register, the outputs a display-on signal to the display unit when a result particular bit state "1" 2
And a third step of executing a second main program process of the main program after executing the display-on control program process; and executing a display-off control program process after the second main program process, The state of the specific bit of the register is determined, and as a result, when the state of the specific bit is “0”, a fourth display output signal is output to the display.
And a method for displaying an operation state of the processing device, the method comprising:
JP62128144A 1987-05-27 1987-05-27 Processing state display method of processing unit Expired - Lifetime JP2695785B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62128144A JP2695785B2 (en) 1987-05-27 1987-05-27 Processing state display method of processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62128144A JP2695785B2 (en) 1987-05-27 1987-05-27 Processing state display method of processing unit

Publications (2)

Publication Number Publication Date
JPS63293649A JPS63293649A (en) 1988-11-30
JP2695785B2 true JP2695785B2 (en) 1998-01-14

Family

ID=14977478

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62128144A Expired - Lifetime JP2695785B2 (en) 1987-05-27 1987-05-27 Processing state display method of processing unit

Country Status (1)

Country Link
JP (1) JP2695785B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS594338Y2 (en) * 1979-03-27 1984-02-08 日本電子機器株式会社 Abnormal status display device for central control equipment

Also Published As

Publication number Publication date
JPS63293649A (en) 1988-11-30

Similar Documents

Publication Publication Date Title
JP2695785B2 (en) Processing state display method of processing unit
JP4178210B2 (en) Game machine
JPS63163932A (en) System monitoring system for control computer
JPH02272947A (en) Fault monitoring system
JPH07235831A (en) Frequency abnormality detection circuit
JPH064318A (en) Error detecting system
JPH0635756A (en) Operating state monitor system for program
JPH0683652A (en) Microcomputer system
JPH04148246A (en) Watchdog timer
JP2000122900A (en) Method for monitoring runaway for microcontroller
JPS61194539A (en) Self-runaway processor of microcomputer
JP2010033475A (en) Electronic controller
JPH03208137A (en) Abnormality detection system for control microcomputer
JPS61193236A (en) Self-runaway handling device of microcomputer
JPH05108415A (en) Abnormality processor for micro computer
JPH06259221A (en) Information processor with screen display
JPH1069417A (en) Resident type file monitoring method
JP2001092505A (en) Programmable controller
JPH08314750A (en) Information processor and self-diagnostic method for the same
JPH11327959A (en) Method and device for monitoring abnormality of processor
JP2000181583A (en) Hit detecting device
JPS6210718A (en) Device ready synchronous processing system
JPS60117339A (en) Monitor system for software routine
JPH01156839A (en) Data processor
JPH06325002A (en) Synchronizing method for plural computers

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070912

Year of fee payment: 10