JPS62235635A - Printing device - Google Patents

Printing device

Info

Publication number
JPS62235635A
JPS62235635A JP61078668A JP7866886A JPS62235635A JP S62235635 A JPS62235635 A JP S62235635A JP 61078668 A JP61078668 A JP 61078668A JP 7866886 A JP7866886 A JP 7866886A JP S62235635 A JPS62235635 A JP S62235635A
Authority
JP
Japan
Prior art keywords
program
printing
self
printing device
received data
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
JP61078668A
Other languages
Japanese (ja)
Inventor
Mitsutoshi Izawa
伊沢 三敏
Tsutomu Fujiwara
勉 藤原
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.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP61078668A priority Critical patent/JPS62235635A/en
Publication of JPS62235635A publication Critical patent/JPS62235635A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To quickly execute an analyzing work for the cause of an abnormal operation by providing a self-diagnostic means which can print a state of a program which is being operated and a received data at the time of an interruption. CONSTITUTION:A printing device is constituted of a microprocessor provided with a printing circuit 1, a data receiving circuit 2 from an external device, an abnormal state display circuit 3, a RAM 4 for storing a received data, a RAM 5 for storing a program executing state, a printing means 6, etc. In this case, an interrupting means 10 for applying an interrupting signal to the microprocessor which is being operated, and a self-diagnostic means 11 which is started by said means are provided. In this state, when an interruption occurs in the course of an operation, a program which is being operated is discontinued and the self-diagnostic means 11 is started, and a diagnostic program is executed. In this regard, the self-diagnostic means 11 has a function for saving a program executing state, an initializing function of the printing device, and a function for printing the saved program executing state and the contents of a received data storage, and it is executed.

Description

【発明の詳細な説明】 し産業上の利用分野〕 本発明に印字装置に関し、特に、その動作異常時におけ
る自己診断を可能としt印字装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printing device, and more particularly to a printing device that enables self-diagnosis in the event of abnormal operation.

[従来の技術] 従来、印字装置の動作異常時における装置自身の診断方
法としては、装置設計段階で予想された異常に対しての
みアラームランプの点灯やブザーの鳴動、7セグメント
表示器による異常内容の表示などの方法があった。
[Prior Art] Conventionally, as a method of diagnosing the printing device itself when an abnormality occurs in its operation, only when an abnormality is predicted at the device design stage, an alarm lamp is lit, a buzzer sounds, and a 7-segment display indicates the abnormality details. There were methods such as displaying.

第3図は従来の印字装置の構成?示したものである。こ
の図において、1に実際に印字を行なう為の印字回路で
あり、2は外部装置からのデータを受信する為の受信回
路である。3に印字装置に異常が発生した場合そf′L
ヲオペレータに知らせる為の異常状態表示回路であり、
9は異常状態表示回路3に表示内容を指示する異常状態
処理手段である。4は受信したデータを蓄えておく為の
受信データ記憶であり、5はデータ処理を行なっている
プログラムの実行状態を記憶する為のプログラム実行状
態記憶であり、ここでにどちらもRAMを使用している
Is Figure 3 the configuration of a conventional printing device? This is what is shown. In this figure, 1 is a printing circuit for actually printing, and 2 is a receiving circuit for receiving data from an external device. If an abnormality occurs in the printing device in 3.
This is an abnormal status display circuit to notify the operator.
Reference numeral 9 denotes abnormal state processing means for instructing the abnormal state display circuit 3 to display contents. 4 is a reception data storage for storing received data, and 5 is a program execution state storage for storing the execution state of a program that is processing data, both of which use RAM. ing.

データ受信回路2によって受信し几データは、データ受
信手段8のプログラムにょシ受信データ記憶4に書き込
まれる6次にデータ処理手段7のプログラムによって書
き込まれたデータの解析処理を行ない、印字データであ
れば印字手段6のプログラムに制御を渡す。その後、印
字回路1が起動されて印字動作を行なう。
The data received by the data receiving circuit 2 is written into the received data storage 4 by the program of the data receiving means 8.Next, the data written by the program of the data processing means 7 is analyzed, and whether it is print data or not. If so, control is passed to the program of the printing means 6. Thereafter, the printing circuit 1 is activated and performs a printing operation.

この構成における異常状態処理手段9は、プログラム設
計時にあらかじめ予想される異常動作に対してのみ有効
に働き、異常動作の種類を表示するようにできている。
The abnormal state processing means 9 in this configuration operates effectively only for abnormal operations that are predicted in advance at the time of program design, and is configured to display the type of abnormal operation.

しかし予想されたもの以外の異常、例えばプログラムの
バグによる暴走とか、受信し友データが正常なものでは
なかったとかの異常に対しては、印字装置自身での診断
は不可能であった。従来このような異常動作が起こった
場合には、一旦印字装置を停止させ、プログラム解析用
のインサーキットエミエレータやロジックアナライザな
どの外部装置16を接続し、その後異常動作を再現させ
てプログラムの実行状態や受信データの内容などをその
外部V7cli1.に表示させて、異常動作の原因割り
出しを行なりていた。
However, it has been impossible for the printing device itself to diagnose abnormalities other than those expected, such as a program running out of control due to a bug or the received data being incorrect. Conventionally, when such an abnormal operation occurs, the printing device is temporarily stopped, an external device 16 such as an in-circuit emulator or logic analyzer for program analysis is connected, and then the abnormal operation is reproduced to analyze the program. Execution status and contents of received data are stored in the external V7cli1. This was used to determine the cause of abnormal operation.

〔発明が解決し二つとする間呟点〕 しかしながら、従来の装置では予想しなかったプログラ
ムのバグや、受信データの異常による印字装置の異常動
作が発生した場合には、その診断を行なうためにプログ
ラム解析用の外部装置?必要とし、これ金接続するのに
一度印字装置のt源を切断しなければならず、この時、
異常発生時の情報が全て消滅してしまりため、解析用装
置を接続した後で異常動作を再び発生させるという作業
が必要であった。このため発生頻度が少ない異常現象の
場合は、再現するまでに長時間を要するという問題があ
っt。
[Two points that the invention solved] However, in the event that an unexpected program bug or abnormal operation of the printing device occurs due to an abnormality in the received data, it is necessary to diagnose the problem. External device for program analysis? The power supply of the printing device must be disconnected once to connect the wire, and at this time,
Since all information at the time of the occurrence of the abnormality is lost, it is necessary to connect the analysis device and then restart the abnormal operation. Therefore, in the case of an abnormal phenomenon that occurs infrequently, there is a problem that it takes a long time to reproduce it.

また、異常動作が発生した現場に解析用装置が設置され
ていることは少なく、その場合には印字装置か解析用装
置かのいすnか?輸送しなければならず、解析作業が大
幅に遅れるということもあった。
Furthermore, it is rare that an analysis device is installed at the site where an abnormal operation occurs, and in that case, is it a printing device or an analysis device? The data had to be transported, which sometimes caused significant delays in analysis work.

このように従来に、異常動作が発生した時点での迅速な
原因解析作業ができず、異常動作が印字装置自体の原因
によるものか、あるいは受信データの原因によるものか
の判断を早急につけられな−いという問題点がありt。
In this way, in the past, it was not possible to quickly analyze the cause of an abnormal operation when it occurred, and it was not possible to quickly determine whether the abnormal operation was caused by the printing device itself or by the received data. -There is a problem with this.

し問題点を解決するための手段〕 マイクロプロセッサによる制御手段と、上位装置から受
信したデータを記憶する受信データ記憶手段と、プログ
ラムの実行状態を記憶するプログラム実行状態記憶手段
とを有する印字装置におφで、割シ込み信号によシ動作
中のプログラムをいかなる場合でも中断し別処理1に実
行できる割9込み手段と、その割シ込み手段によって起
動される、少なくとも動作中であったプログラムの状態
と。
[Means for Solving the Problems] A printing device having a control means using a microprocessor, a received data storage means for storing data received from a host device, and a program execution state storage means for storing the execution state of the program. An interrupt means that can interrupt a running program in any case and execute it in another process 1 using an interrupt signal, and at least a program that was running that is started by the interrupt means. with the state of.

受信したデータとを印字できる自己診断手段とを具備す
ることを特徴とするものである。
The apparatus is characterized by comprising a self-diagnosis means capable of printing received data.

〔実施例〕〔Example〕

第1図は本発明による印字装置の実施例の構成を示した
ものである。10に動作中のマイクロプロセッサに割シ
込み信号を与える為の割り込み手段であり、スイッチに
よって動作する。11に割シ込み手段10によって起動
される自己診断手段である。印字装置のプログラムが動
作中であれば割9込み手段10はいつでも受は付可能で
あり、それによって動作中の印字装置のプログラムに中
断され、自己診断手段11が起動し診断用のプログラム
が実行開始する。自己診断手段11ぽ、割シ込み手段1
0が作動しt時点での印字装置のプログラム実行状態を
退避する機能と、印字装置の初期化を行なう機能と、退
避させた印字装置のプログラム実行状態と受信データ記
憶の内容とを印字する機能を有し、異常動作の原因究明
の為の資料を得る事を目的としtものである。
FIG. 1 shows the configuration of an embodiment of a printing device according to the present invention. 10 is an interrupt means for giving an interrupt signal to the microprocessor in operation, and is operated by a switch. 11 is a self-diagnosis means activated by the interrupt means 10. If the program of the printing device is in operation, the interrupt means 10 can accept the interrupt at any time, thereby interrupting the program of the printing device in operation, and the self-diagnosis means 11 is activated to execute the diagnostic program. Start. Self-diagnosis means 11, interrupt means 1
A function to save the program execution state of the printing device at time t when 0 is activated, a function to initialize the printing device, and a function to print the saved program execution state of the printing device and the contents of the received data storage. The purpose is to obtain materials for investigating the cause of abnormal operation.

次に自己診断手段11の動作を説明する。第2図はこの
プログラムのフローチャートを示したものであり、起動
がかかったならプログラム実行状態記憶5の内容を退避
12する。これに、自己診断手段により印字を行なう際
、既存のデータ処理手段7と、印字手段6とを使用する
ので記憶の内容が書き換えられてしまわないようにする
ために必要な処理である。その後、印字装置の初期化1
3を行ない印字可能な状態にする。なお、受信デー夕記
憶に消さずに残す。次に退避させてい友プログラム実行
状態記憶5の内容をデータ処理手段7へ渡して印字14
を行ない、最後に受信データ記憶4の内容tデータ処理
手段7へ渡して印字15を行ない処理を終了する。
Next, the operation of the self-diagnosis means 11 will be explained. FIG. 2 shows a flowchart of this program, and when the program is started, the contents of the program execution state memory 5 are saved 12. In addition, since the existing data processing means 7 and printing means 6 are used when printing by the self-diagnosis means, this processing is necessary to prevent the stored contents from being overwritten. After that, initialize the printing device 1
Perform step 3 to make it printable. The received data will remain in your memory without being erased. Next, the contents of the saved friend program execution state memory 5 are passed to the data processing means 7 and printed 14.
Finally, the contents of the received data storage 4 are passed to the data processing means 7, and printing 15 is performed to complete the process.

[発明の効果] 以上説明し7′cように本発明は、原因不明の、異常動
作発生時において、解析用の外部装置の使用と、異常動
作の再現をする事なく、印字装置単体で原因の究明を行
なう為の情報を得る事ができるものである。
[Effects of the Invention] As explained above and described in section 7'c, when an abnormal operation occurs for which the cause is unknown, the present invention eliminates the cause by the printing device itself, without using an external device for analysis or reproducing the abnormal operation. It is possible to obtain information for conducting investigations.

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

第1図に本発明の一実施例のブロック図、第2図に第1
図中の自己診断手段を示すフローチャート、第3図は従
来例のブロック図である。 1・・・・・・印字回路、2・・・・・・データ受信回
路、3・・・・・・異常状態表示回路、4・・・・・・
受信データ記憶、5・・・・・・プログラム実行状態記
憶、6・・・・・・印字手段、7・・・・・・データ処
理手段、8・・・・・・データ受信手段、9・・・・・
・異常状態処理手段、10・・・・・・割り込み手段、
11・・・・・・自己診断手段。
Fig. 1 is a block diagram of an embodiment of the present invention, and Fig. 2 is a block diagram of an embodiment of the present invention.
A flowchart showing the self-diagnosis means in the figure, and FIG. 3 is a block diagram of a conventional example. 1... Printing circuit, 2... Data receiving circuit, 3... Abnormal state display circuit, 4...
Received data storage, 5...Program execution state storage, 6...Printing means, 7...Data processing means, 8...Data receiving means, 9.・・・・・・
- Abnormal state processing means, 10... interrupt means,
11...Self-diagnosis means.

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサによる制御手段と、上位装置から受
信したデータを記憶する受信データ記憶手段と、プログ
ラムの実行状態を記憶するプログラム実行状態記憶手段
とを有する印字装置において、割り込み信号により動作
中のプログラムをいかなる場合でも中断し別処理を実行
できる割り込み手段と、その割り込み手段によって起動
される、少なくとも動作中であったプログラムの状態と
、受信したデータとを印字できる自己診断手段とを具備
することを特徴とする印字装置。
In a printing device having a microprocessor-based control means, a received data storage means for storing data received from a host device, and a program execution state storage means for storing the execution state of the program, an interrupt signal can be used to interrupt the currently running program. The present invention is characterized in that it is equipped with an interrupt means that can be interrupted and execute another process even if the program is interrupted, and a self-diagnosis means that is activated by the interrupt means and can print out at least the state of the program that was running and the received data. printing device.
JP61078668A 1986-04-04 1986-04-04 Printing device Pending JPS62235635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61078668A JPS62235635A (en) 1986-04-04 1986-04-04 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61078668A JPS62235635A (en) 1986-04-04 1986-04-04 Printing device

Publications (1)

Publication Number Publication Date
JPS62235635A true JPS62235635A (en) 1987-10-15

Family

ID=13668239

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61078668A Pending JPS62235635A (en) 1986-04-04 1986-04-04 Printing device

Country Status (1)

Country Link
JP (1) JPS62235635A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63220318A (en) * 1987-03-09 1988-09-13 Ricoh Co Ltd Interface for printer
JPH02266423A (en) * 1989-01-27 1990-10-31 Internatl Business Mach Corp <Ibm> Diagnosis of trouble online

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5564778U (en) * 1978-10-26 1980-05-02
JPS5770124U (en) * 1980-10-17 1982-04-27
JPS57147731U (en) * 1981-03-12 1982-09-17
JPS58224516A (en) * 1982-06-24 1983-12-26 株式会社富士電機総合研究所 Malfunction monitoring device
JPS59135439U (en) * 1983-02-28 1984-09-10 財団法人関西電気保安協会 Overheating point detector for electrical equipment
JPS62245977A (en) * 1986-04-18 1987-10-27 Mitsubishi Electric Corp Monitoring device for electric power equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5564778U (en) * 1978-10-26 1980-05-02
JPS5770124U (en) * 1980-10-17 1982-04-27
JPS57147731U (en) * 1981-03-12 1982-09-17
JPS58224516A (en) * 1982-06-24 1983-12-26 株式会社富士電機総合研究所 Malfunction monitoring device
JPS59135439U (en) * 1983-02-28 1984-09-10 財団法人関西電気保安協会 Overheating point detector for electrical equipment
JPS62245977A (en) * 1986-04-18 1987-10-27 Mitsubishi Electric Corp Monitoring device for electric power equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63220318A (en) * 1987-03-09 1988-09-13 Ricoh Co Ltd Interface for printer
JPH02266423A (en) * 1989-01-27 1990-10-31 Internatl Business Mach Corp <Ibm> Diagnosis of trouble online

Similar Documents

Publication Publication Date Title
JPS62235635A (en) Printing device
JP2808985B2 (en) Information processing device and debug device
JPH0887426A (en) Self-diagnosis state display system
JP2684966B2 (en) I / O processor debug device
JPH0233178B2 (en)
JPH03152636A (en) Program debugging device
JP3098437B2 (en) Collection method of IPL program execution information
JP3028836B2 (en) Arithmetic processing system
JPH0652508B2 (en) Automatic diagnosis method
JPH05120063A (en) Debugging system for microprocessor and debugging panel for the same
JP2006172004A (en) Debug supporting device and incircuit emulator
JPH1185559A (en) Emulator
JPH04284543A (en) Microcomputer program tracing device
JPH05165671A (en) Program debugging device
JPH05143395A (en) Diagnostic program execution system and log information display system to be used for the execution system
JPH01161544A (en) Program tracing system
JPH0834508B2 (en) Button telephone device
JPH02307135A (en) Monitoring method for instruction executing action
JPH02244232A (en) Information processor
JPH02176834A (en) Self-monitor system for program logic
JPH03166630A (en) Job monitoring system in high load test
JPH0413728B2 (en)
JPS59202550A (en) Debugging device
JPH01253045A (en) Logical analyzing circuit
JPH02205916A (en) Printing program testing system