JPS63138434A - Self-diagnosing circuit for peripheral equipment - Google Patents

Self-diagnosing circuit for peripheral equipment

Info

Publication number
JPS63138434A
JPS63138434A JP61285286A JP28528686A JPS63138434A JP S63138434 A JPS63138434 A JP S63138434A JP 61285286 A JP61285286 A JP 61285286A JP 28528686 A JP28528686 A JP 28528686A JP S63138434 A JPS63138434 A JP S63138434A
Authority
JP
Japan
Prior art keywords
program
diagnosis
self
control
circuit
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
JP61285286A
Other languages
Japanese (ja)
Inventor
Yoko Nakazawa
中沢 洋子
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
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP61285286A priority Critical patent/JPS63138434A/en
Publication of JPS63138434A publication Critical patent/JPS63138434A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the time limit caused when the capacity of a diagnosis program is limited or the diagnosis contents are increased, by providing a self- diagnosing function in addition to a control program. CONSTITUTION:When the data received from a host device is not coincident with the print data but related to a diagnosis program, a switch circuit 5 recognizes a loading end state of the program to a memory circuit 4 and switches the control of a control part 6 to a mode related to the diagnosis program stored in the circuit 4 from the mode related to a control program stored in a program memory 3. Then, the diagnosis program loaded from the host device is driven. Thus, it is possible to diagnose the program independently of the control program stored in a printer. Then, the limit is eliminated for the capacity of the diagnosis program together with no time limit caused by execution of the self-diagnosis.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はオンラインで使用する周辺装置の自己診断を行
う回路に係り、特に上位装置からロードされたプログラ
ムによって動作する周辺装置の自己診断回路に関するも
のである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a circuit that performs self-diagnosis of a peripheral device used online, and particularly relates to a self-diagnosis circuit of a peripheral device that operates according to a program loaded from a host device. It is something.

〔従来の技術〕[Conventional technology]

従来は、オンラインで使用する周辺装置において自己診
断を行うための診断プログラムは、その装置に対する制
御を行うプログラムの一部として装置内の制御用プログ
ラムに組み込まれていて、装置の電源を立ち上げるごと
に制御用プログラムによって装置の自己診断を行う方式
が用いられていた。
Conventionally, a diagnostic program for self-diagnosis of a peripheral device used online has been built into the control program within the device as part of the program that controls the device, and is executed every time the device is turned on. A method was used in which self-diagnosis of the device was performed using a control program.

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

従来のオンライン周辺装置において自己診断を行うため
の診断プログラムは、装置を制御する制御用プログラム
の一部になっているため、装置を立ち上げるたびに自動
的に自己診断が行われる。
A diagnostic program for performing self-diagnosis in a conventional online peripheral device is part of a control program that controls the device, so self-diagnosis is automatically performed every time the device is started up.

そのためオンライン周辺装置を使用する大の意志のいか
んに拘らず、装置立ち上げごとに自己診断のために時間
が割かれるという問題がある。
Therefore, regardless of whether the user intends to use the online peripheral device or not, there is a problem in that time is taken up for self-diagnosis each time the device is started up.

また従来の方式では、制御用プログラムの一部となって
いる自己診断プログラムの規模が大きい場合には、自己
診断のために時間がかかりすぎるという不満が生じたり
、また逆に診断用プログラムとして利用できる容量の不
足から、自己診断の内容が制限されてしまうという問題
もある。
In addition, with conventional methods, if the scale of the self-diagnosis program that is part of the control program is large, there may be complaints that it takes too much time for self-diagnosis, or conversely, if the self-diagnosis program that is part of the control program is large, it may cause complaints that it takes too much time. There is also the problem that the content of self-diagnosis is limited due to the lack of available capacity.

(発明の目的〕 本発明は、かかる従来例の有する不都合を改善し、比較
的短時間に、しかも充分な診断を行うことのできる周辺
装置の自己診断回路を提供することを、その目的とする
(Object of the Invention) An object of the present invention is to provide a self-diagnosis circuit for a peripheral device that can improve the disadvantages of the conventional example and perform a sufficient diagnosis in a relatively short time. .

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

本発明の周辺装置の自己診断回路では、制御用プログラ
ムを格納するプログラムメモリと、上位装置から受信し
たデータを保存する記憶回路とを備えている。上位装置
から受信した診断用プログラムのデータを記憶回路にロ
ードする手段と、装置の制御を、プログラムメモリの制
御用プログラムと記憶回路にロードされた診断用プログ
ラムとで切り替える手段と、記憶回路にロードされた診
断用プログラムによって自己診断を行う手段とを備えて
いる。上位装置から受信した診断用プローグラムの記憶
回路へのロード終了時には制御用プログラムから診断用
プログラムに制御を移し、自己診断終了時には診断用プ
ログラムから制御用プログラムに制御を戻すようにして
いる。
A self-diagnosis circuit for a peripheral device according to the present invention includes a program memory that stores a control program and a storage circuit that stores data received from a host device. means for loading data of a diagnostic program received from a host device into a storage circuit; means for switching control of the device between a control program in the program memory and a diagnostic program loaded in the storage circuit; and a means for loading data into the storage circuit. and a means for performing self-diagnosis using a diagnostic program. When the loading of the diagnostic program received from the host device into the storage circuit is completed, control is transferred from the control program to the diagnostic program, and when the self-diagnosis is completed, control is returned from the diagnostic program to the control program.

〔作  用〕[For production]

本発明の周辺装置の自己診断回路においては、上位装置
から診断用プログラムを与えられたときこれをRAMか
らなる記憶回路に保存し、ROMに格納されている制御
用プログラムに代えて診断用プログラムによって制御を
行って自己診断を行い、異常検出時その表示を行うよう
にするので、制御用プログラムの一部となっている診断
用プログラムを用いて自己診断を行う従来の装置と比べ
て、診断用プログラムの容量の制限や、自己診断の実行
に伴う時間的制約を少なくすることができるとともに、
診断用プログラムの選択、内容の取捨増減が自由に行え
るようになる。
In the self-diagnosis circuit for a peripheral device of the present invention, when a diagnostic program is given from a host device, it is stored in a memory circuit consisting of a RAM, and the diagnostic program is used in place of the control program stored in the ROM. Since it performs self-diagnosis through control, and displays the information when an abnormality is detected, compared to conventional equipment that performs self-diagnosis using a diagnostic program that is part of the control program, In addition to reducing program capacity limitations and time constraints associated with self-diagnosis execution,
It becomes possible to freely select diagnostic programs and increase or decrease the contents.

〔発明の実施例〕[Embodiments of the invention]

第1図は本発明の一実施例を示すブロック図であって、
上位装置から送られて来るデータによって印字を行うプ
リンタ装置を例示している。
FIG. 1 is a block diagram showing an embodiment of the present invention,
This example shows a printer device that performs printing based on data sent from a host device.

この第1図において受信部lは、図示されない上位装置
から伝送路を経て送られて来るデータを受信する。印字
部2は、通常のオンラインプリンタにおける印字部分と
同じ機構を有し、オンラインプリンタの場合と同様の印
字動作を行う。プログラムメモリ3は、読み出し専用メ
モリ (RO、M)からなり、オンラインプリンタと同
様の制御用プログラムを格納する。記憶回路4は、書き
込み読み出しメモリ (RAM)からなり、図示されな
い上位装置から入力部1を経て受信したデータを一時的
に保存する。スイッチ回路5は、プログラムメモリ3に
格納されている制御用プログラムと、記憶回路4にロー
ドされた診断用プログラムとの切り替えを行う。制御部
6は、プリンタ全体の制御を行う。表示部7は、自己診
断によって検出された診断結果を表示する機能を行う。
In FIG. 1, a receiving unit 1 receives data sent via a transmission path from a higher-level device (not shown). The printing section 2 has the same mechanism as the printing section in a normal online printer, and performs the same printing operation as in the case of an online printer. The program memory 3 consists of read-only memories (RO, M) and stores a control program similar to that of an online printer. The storage circuit 4 is composed of a read/write memory (RAM), and temporarily stores data received via the input unit 1 from a host device (not shown). The switch circuit 5 switches between the control program stored in the program memory 3 and the diagnostic program loaded in the storage circuit 4. The control unit 6 controls the entire printer. The display unit 7 performs a function of displaying diagnosis results detected by self-diagnosis.

第2図は第1図の実施例に示された装置における動作の
流れを示すフローチャートである。
FIG. 2 is a flowchart showing the flow of operations in the apparatus shown in the embodiment of FIG.

以下、第1図および第2図に基づいて本実施例の動作を
説明する。
The operation of this embodiment will be explained below based on FIGS. 1 and 2.

入力部1は、図示されない上位装置から常時は印字デー
タを受信する。この入力部1は、自己診断時には診断用
プログラムを構成する命令群を、この診断用プログラム
をロードすべき記憶回路4のアドレスや、診断用プログ
ラムの容量等のデータとともに受信する。記憶回路4は
入力部1が受信したデータを順次保存する。
The input unit 1 normally receives print data from a host device (not shown). During self-diagnosis, the input unit 1 receives a group of instructions constituting a diagnostic program together with data such as the address of the storage circuit 4 into which the diagnostic program is to be loaded and the capacity of the diagnostic program. The storage circuit 4 sequentially stores the data received by the input section 1.

制御部6は、受信したデータに診断用プログラムに関す
るデータがあるか否かをみて、このようなデiりがない
とき、すなわち印字データのみであったときは、記憶回
路4に保存しているデータを印字部2へ渡す。印字部2
は受は取ったデータを編集してプリンタ外部への出力動
作を実行し、これによって印字が行われる。
The control section 6 checks whether or not the received data includes data related to the diagnostic program, and if there is no such data, that is, only print data, the control section 6 stores the data in the storage circuit 4. Pass the data to the printing section 2. Printing section 2
The receiver edits the received data and outputs it to the outside of the printer, thereby printing.

一方、上位装置から受信したデータが印字デー夕でなく
診断用プログラムに関するものであったときは、スイッ
チ回路5は記憶回路4へのプログラムのロード終了を認
知して、制御部6の制御を、プログラムメモリ3に格納
されている制御用プログラムに関するものから記憶回路
4に保存されている診断用プログラムに関するものに切
り替える。
On the other hand, when the data received from the host device is related to a diagnostic program rather than print data, the switch circuit 5 recognizes that the program has been loaded into the memory circuit 4, and controls the control unit 6. The control program stored in the program memory 3 is switched to the diagnostic program stored in the storage circuit 4.

これによって上位装置からロードされた診断用プログラ
ムが駆動される。さらに診断用プログラムを実行中に何
らかの異常が検出された場合には、制御部6は表示部7
に異常情報を出力し、これによって表示部7は外部に対
してエラーを表示する。
This drives the diagnostic program loaded from the host device. Furthermore, if any abnormality is detected while running the diagnostic program, the control unit 6
The abnormality information is outputted to the display section 7, thereby causing the display section 7 to display the error to the outside.

スイッチ回路5は診断用プログラムの終了を認知したと
き、制御部6の制御を記憶回路4に保存されている診断
用プログラムから、プログラムメモリ3に格納されてい
る制御用プログラムに戻すように切り替えを行う。
When the switch circuit 5 recognizes the termination of the diagnostic program, it switches the control of the control unit 6 from the diagnostic program stored in the storage circuit 4 back to the control program stored in the program memory 3. conduct.

本実施例によれば、このようにしてプリンタ内の制御用
プログラムとは独立にプログラム診断を行うことができ
る。
According to this embodiment, program diagnosis can be performed independently of the control program in the printer in this way.

また本発明を用いたプリンタにおいては、使用者はこれ
を使用する時と場合に応じて、記憶回路4に保存する診
断用プログラムを変更することによって、診断内容の変
更、増減あるいは省略を行うことが可能となる。
Furthermore, in the printer using the present invention, the user can change, increase/decrease, or omit the diagnostic content by changing the diagnostic program stored in the memory circuit 4 depending on the time and occasion of use. becomes possible.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、制御用プログラム
とは別に自己診断機能を持つので、制御用プログラムに
よって自己診断を行うときのような、診断用プログラム
の容量の制限や診断内容を増加した場合に生じる時間的
制約を少なくすることができる。またオンラインの周辺
装置を使用する人の要求に合わせて、自由に診断用プロ
グラムの選択、内容の取捨増減を行うことができるよう
になる。
As explained above, according to the present invention, since the self-diagnosis function is provided separately from the control program, it is possible to limit the capacity of the diagnostic program and increase the diagnostic content, such as when self-diagnosis is performed by the control program. It is possible to reduce the time constraints that may occur in some cases. In addition, it becomes possible to freely select a diagnostic program and add or subtract the contents according to the needs of the person using the online peripheral device.

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

第1図は本発明の一実施例を示す図、第2図は第1図の
実施例における動作の流れを示すフローチャート図であ
る。 l・・・・・・入力部、2・・・・・・印字部、3・・
・・・・プログラムメモリ、4・・・・・・記憶回路、
5・・・・・・スイッチ回路、6・・・・・・制御部、
7・旧・・表示部。 特許出願人  日 本 電 気 株式会社第1図
FIG. 1 is a diagram showing an embodiment of the present invention, and FIG. 2 is a flowchart showing the flow of operations in the embodiment of FIG. l...Input section, 2...Printing section, 3...
...Program memory, 4...Memory circuit,
5... Switch circuit, 6... Control section,
7. Old...Display section. Patent applicant: Japan Electric Co., Ltd. Figure 1

Claims (1)

【特許請求の範囲】[Claims] (1)、制御用プログラムを格納するプログラムメモリ
と、上位装置から受信したデータを保存する記憶回路と
を備えオンラインで使用される周辺装置において、 上位装置から受信した診断用プログラムのデータを前記
記憶回路にロードする手段と、 装置の制御を前記制御用プログラムと診断用プログラム
とで切り替える手段と、 前記診断用プログラムによって自己診断を行う手段とを
備え、 上位装置から受信した診断用プログラムのロード終了時
に制御用プログラムから診断用プログラムに制御を移し
、自己診断終了時に診断用プログラムから制御用プログ
ラムに制御を戻すことを特徴とする周辺装置の自己診断
回路。
(1) In a peripheral device used online that includes a program memory for storing a control program and a storage circuit for storing data received from a host device, the data of the diagnostic program received from the host device is stored in the memory. a means for loading the diagnostic program into a circuit; a means for switching control of the device between the control program and the diagnostic program; and a means for performing self-diagnosis using the diagnostic program. A self-diagnosis circuit for a peripheral device, characterized in that control is transferred from a control program to a diagnostic program at times, and control is returned from the diagnostic program to the control program when the self-diagnosis is completed.
JP61285286A 1986-11-30 1986-11-30 Self-diagnosing circuit for peripheral equipment Pending JPS63138434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61285286A JPS63138434A (en) 1986-11-30 1986-11-30 Self-diagnosing circuit for peripheral equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61285286A JPS63138434A (en) 1986-11-30 1986-11-30 Self-diagnosing circuit for peripheral equipment

Publications (1)

Publication Number Publication Date
JPS63138434A true JPS63138434A (en) 1988-06-10

Family

ID=17689548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61285286A Pending JPS63138434A (en) 1986-11-30 1986-11-30 Self-diagnosing circuit for peripheral equipment

Country Status (1)

Country Link
JP (1) JPS63138434A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010144731A (en) * 2008-12-18 2010-07-01 Dr Ing Hcf Porsche Ag Internal combustion engine with exhaust turbocharger

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010144731A (en) * 2008-12-18 2010-07-01 Dr Ing Hcf Porsche Ag Internal combustion engine with exhaust turbocharger
US8555636B2 (en) 2008-12-18 2013-10-15 Dr. Ing. H.C.F. Porsche Aktiengesellschaft Internal combustion engine with exhaust gas turbocharger

Similar Documents

Publication Publication Date Title
US4789985A (en) Document processing apparatus having fauet detection capabilities
JPS63138434A (en) Self-diagnosing circuit for peripheral equipment
JP2918019B2 (en) Test circuit for single-chip microprocessor
JPS61114345A (en) Diagnosis system of information processor
JPS58121459A (en) Service processor of electronic computer
JP2760027B2 (en) I / O device
JP2910038B2 (en) Multi-board equipment
JPH01303549A (en) Memory
JPS628829B2 (en)
JPH10170406A (en) Car diagnostic system
JPS5840422Y2 (en) General purpose control device
JPS5931800B2 (en) Control memory diagnostic method
JP2727717B2 (en) Programmable controller system
JPH01233641A (en) Memory diagnostic system
JPS58221405A (en) Programmable controller
JPS63209969A (en) Self-diagnostic apparatus of printer
JPS62111330A (en) Program transfer device
JPS6122461A (en) Magnetic tape device
JPS62290943A (en) Information processor
JPS5850046A (en) Information processing device
JPH06161832A (en) Trace controller
JPS59167764A (en) Memory access system
JPH0588929A (en) Picture processor
JPS60142741A (en) Microprogram diagnostic device
JPS6073765A (en) Program loader