JPH03277578A - Printer - Google Patents

Printer

Info

Publication number
JPH03277578A
JPH03277578A JP2079094A JP7909490A JPH03277578A JP H03277578 A JPH03277578 A JP H03277578A JP 2079094 A JP2079094 A JP 2079094A JP 7909490 A JP7909490 A JP 7909490A JP H03277578 A JPH03277578 A JP H03277578A
Authority
JP
Japan
Prior art keywords
printer
print
cover
printing
print 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
JP2079094A
Other languages
Japanese (ja)
Inventor
Akihiko 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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2079094A priority Critical patent/JPH03277578A/en
Publication of JPH03277578A publication Critical patent/JPH03277578A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the erroneous operation or printing due to the discharge of static electricity generated at the time of the cover open state of a printer by receiving printing data from a printing request part only during a period when the cover of the printer is in a closed state to output all of them and resetting the printer to an initial state unconditionally when the cover of the printer further becomes an open state after output and subsequently receiving the next printing data from the printing request part to output the same. CONSTITUTION:On the side of a printer 100, printing data are received during a period when a printer cover 180 is closed and the output of all of the received printer data is completed. Thereafter, when the printer cover 180 is opened, the printer 100 is reset to an initial state unconditionally. The erroneous operation (reckless driving) and erroneous printing of the printer 100 due to the static electricity discharged when the printer cover 180 is opened are prevented. Even when the internal data of a CPU 110 is destructed by any factor other than the discharge of static electricity at the time of the opening and closing operation of the printer cover 180, the CPU 110 has the inferiority self-detection function due to a watch dog circuit 140.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はプリンタに関し、特に、プリンタカバーを開け
たときに放電される静電気が引起こす誤動作を防止する
機能を備えるプリンタに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer, and more particularly to a printer having a function of preventing malfunctions caused by static electricity discharged when a printer cover is opened.

[従来の技術] プリンタは上位に接続される装置から伝送されてくるプ
リント出力すべき印字データを所定のフォーマットで印
字出力する。この場合、前記上位装置のCPU ((C
PU :中央処理装置の略)以下、メインCPUと称す
)により制御されて生成された印字データは、データバ
スを介してプリンタ側に高速に伝送される。しかし、こ
のデータ伝送速度に比較し、プリンタの印字出力動作速
度は低速であるためにプリンタ側には印字バッファが設
けられて伝送されてくる印字データを一時蓄えた後に、
プリンタのCPU制御によりこの蓄えられた印字データ
を順次印字出力するようにしている。つまり、プリンタ
側に設けられる印字バッファは、前記メインCPUから
の印字データ伝送速度とプリンタの印字圧力速度差の緩
衝用メモリとして設けられる。
[Prior Art] A printer prints out print data to be printed out, which is transmitted from a device connected to an upper level, in a predetermined format. In this case, the CPU ((C
Print data generated under the control of the PU (abbreviation for central processing unit) (hereinafter referred to as main CPU) is transmitted at high speed to the printer via a data bus. However, compared to this data transmission speed, the print output operation speed of a printer is slow, so a print buffer is installed on the printer side to temporarily store the transmitted print data.
The stored print data is sequentially printed out under the control of the printer's CPU. That is, the print buffer provided on the printer side is provided as a memory for buffering the difference between the print data transmission speed from the main CPU and the print pressure speed of the printer.

ところで、従来のプリンタの印字データ制御方式は上述
のように上位装置のメインCPUから伝送されてきた印
字データを前記印字バッファに一時記憶して、先に受信
したデータから順番に印字出力するが、プリンタの中に
は印字出力中に該プリンタの印字出力部を覆うプリンタ
カバーが開けられたとしても印字出力を続行するように
動作するものがある。
By the way, as mentioned above, in the print data control method of a conventional printer, the print data transmitted from the main CPU of the host device is temporarily stored in the print buffer, and the data is printed out in order from the data received first. Some printers operate to continue printing even if a printer cover that covers the print output section of the printer is opened during print output.

一方、上述のようにしてメインCPUから伝送された印
字データを印字バッファを介して順番に印字出力するが
、印字動作中に前記プリンタカバーが開けられると、直
ちに実行中の印字出力動作を中断し、その後プリンタカ
バーが閉められたことに応じて中断していた印字8力動
作を再開するようなプリンタもある。なお、前記印字出
力動作中断時に記憶された印字バッファ内の印字データ
は印字aカ動作再開時まで印字バッファ内に記憶されて
保護される。
On the other hand, the print data transmitted from the main CPU as described above is sequentially printed out via the print buffer, but if the printer cover is opened during the printing operation, the printout operation in progress is immediately interrupted. Some printers resume the interrupted printing operation in response to the printer cover being closed. The print data stored in the print buffer when the print output operation is interrupted is stored and protected in the print buffer until the print operation is resumed.

[発明が解決しようとする課題] しかしながら、上述したような従来のプリンタにおいて
は、印字出力動作中にプリンタカバーが開けられるとプ
リンタユニットの金属部に身体からの静電気が放電され
ることがある。この場合には、その放電された静電気エ
ネルギによりプリンタに備え付けられるCPUの誤動作
が引起こされたり、印字バッファ中に蓄えていた印字デ
ータが破壊されてしまうなどし、またこれらが原因とな
って該プリンタが誤った印字出力および印字動作をして
しまうという問題があった。
[Problems to be Solved by the Invention] However, in the conventional printer as described above, when the printer cover is opened during printout operation, static electricity from the body may be discharged to the metal part of the printer unit. In this case, the discharged electrostatic energy may cause the CPU installed in the printer to malfunction, or the print data stored in the print buffer may be destroyed. There has been a problem in that the printer produces incorrect print output and print operations.

それゆえに本発明の目的は、印字出力動作中にプリンタ
を覆うカバーが開けられた際に放電する静電気によって
誘発される誤動作および誤印字を防止できるプリンタを
提供することである。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a printer that can prevent malfunctions and printing errors caused by static electricity discharged when a cover covering the printer is opened during a printout operation.

[課題を解決するための手段] 本発明に係るプリンタは、印字要求に応答して、前記印
字要求に続いて送信される印字データを印字出力するプ
リンタであり、詳細には、前記印字データを出力する印
字手段と、前記印字手段を覆うカバーの開閉状態を検出
する検出手段と、前記検出手段により前記プリンタカバ
ー閉状態と検出されたことに応じて前記印字データを受
信し、印字手段にすべて印字出力するように制御する印
字制御手段と、さらに、前記印字制御手段によって前記
受信された印字データを印字しているときに前記検出手
段により前記プリンタカバー開状態と検出されたことに
応じて、前記印字制御手段を初期状態に設定する手段と
を備えて構成される。
[Means for Solving the Problems] A printer according to the present invention is a printer that prints out print data transmitted following the print request in response to a print request, and in detail, prints out print data that is transmitted following the print request. a printing means for outputting; a detection means for detecting an open/closed state of a cover covering the printing means; a print control means for controlling the printing output; and further, in response to the detection means detecting that the printer cover is open while the print control means is printing the received print data, and means for setting the printing control means to an initial state.

[作用] 本発明に係るプリンタは上述のように構成されるので、
プリンタが印字動作中にプリンタカバーが開けられた場
合、印字要求ならびに印字すべきデータを受取らないよ
うにし、さらに、プリンタの初期状態設定は受信した印
字データをすべて印字し終えた後に行なっている。した
がって、プリンタカバー開状態のときに人体から静電気
が放電されても印字出力すべき印字データは存在しない
ため誤印字するようなことはなく、さらに、該プリンク
自体が初期状態にリセットされるので、プリンタカバー
を閉じた後の印字動作も正常に行なわれる。
[Operation] Since the printer according to the present invention is configured as described above,
If the printer cover is opened during the printing operation of the printer, the printer is prevented from receiving a print request and the data to be printed, and furthermore, the initial state setting of the printer is performed after printing all the received print data. Therefore, even if static electricity is discharged from the human body when the printer cover is open, there will be no print data to be printed out, so there will be no erroneous printing.Furthermore, the printer itself will be reset to its initial state. Printing operations are also performed normally after the printer cover is closed.

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

本実施例中のプリンタは、バス(図示せず)を介して上
位に接続される装置のメインCPU (図示せず)を印
字要求元と見なしており、前記メインCPUから印字デ
ータの送信要求(以下、送信REQと略す)信号を受信
したことに応答して、印字出力動作を開始すると想定す
る。
The printer in this embodiment regards the main CPU (not shown) of a device connected to an upper level via a bus (not shown) as the print request source, and sends a print data transmission request ( It is assumed that a printout operation is started in response to receiving a signal (hereinafter abbreviated as transmission REQ).

第1図は、本発明の一実施例のプリンタ100の内部機
能構成を示す概略図である。
FIG. 1 is a schematic diagram showing the internal functional configuration of a printer 100 according to an embodiment of the present invention.

図においてプリンタ100は上位装置である印字要求元
装置200に接続される。またその内部の各回路は図示
されるようにハウジングカバーで一体的に覆われて保護
される。
In the figure, a printer 100 is connected to a print request source device 200, which is a host device. Further, each of the internal circuits is integrally covered and protected by a housing cover as shown in the figure.

前記ハウジングカバーの印字部160(後述する)付近
には外部から開閉可能なプリンタカバー180が設けら
れる。
A printer cover 180 that can be opened and closed from the outside is provided near the printing section 160 (described later) of the housing cover.

前記プリンタカバー180は、該プリンタの印字部16
0の印字用紙差替え時などに外部から開閉される。
The printer cover 180 covers the printing section 16 of the printer.
It is opened and closed from the outside, such as when replacing 0 printing paper.

プリンタ100の内部機能は、プリンタ100自体の動
作を制御および監視するCPUll01該プリンタ10
0自体の処理動作に必要とされるデータ(プログラムを
含む)が予め記憶されるROM(Read  0nly
  Memoryの略)120、印字データを一時記憶
する印字バッファ130、ウォッチドッグ回路140、
印字部インターフェイス回路150、印字部160なら
びにスイッチ170を含む。
The internal functions of the printer 100 are controlled by a CPUll01 that controls and monitors the operation of the printer 100 itself.
ROM (Read 0nly) stores data (including programs) required for the processing operation of 0nly itself in advance.
Memory) 120, a print buffer 130 for temporarily storing print data, a watchdog circuit 140,
It includes a printing section interface circuit 150, a printing section 160, and a switch 170.

前記ウォッチドッグ回路140は一種のタイマであり、
CPUI 10の不良検出のために設けられる。つまり
、ウォッチドッグ回路140のタイマは、CPUll0
が正常動作している場合は一定時間に一度は必ずリセッ
トされ、タイマがタイムアツプすることを防止するよう
なプログラムがCPUll0により実行されている。し
たがって、CPUll0により一定時間以上タイマのリ
セットプログラムが実行されない場合は、タイムアツプ
し警報が出力されるようにしである。つまり、ウォッチ
ドッグ回路140はCPUI 10により定期的にその
状態がリセットされなければCPU110に警報信号を
与えて自己が不良状態であることを認識させるような回
路である。
The watchdog circuit 140 is a type of timer,
It is provided to detect a defect in the CPUI 10. In other words, the timer of the watchdog circuit 140 is
When the timer is operating normally, the CPU 110 executes a program that is always reset once every certain period of time and prevents the timer from timing up. Therefore, if the timer reset program is not executed by CPUll0 for a certain period of time or more, a time-up alarm is output. In other words, the watchdog circuit 140 is a circuit that, unless its state is periodically reset by the CPU 10, gives an alarm signal to the CPU 110 to make it recognize that it is in a defective state.

CPUI 10はウォッチドッグ回路140から与えら
れる前記警報信号を割込信号として受付けるので、前記
警報信号受信時に実行されていた一連の処理は中断され
て無条件に初期状態に戻るよう制御される。
Since the CPU 10 accepts the alarm signal given from the watchdog circuit 140 as an interrupt signal, the series of processes being executed at the time of receiving the alarm signal is interrupted and controlled to unconditionally return to the initial state.

また、前記印字部160は印字用紙に機械的に印字デー
タを出力する機能を有し、前記印字部インターフェイス
回路150はCPUll0の制御に基づいて印字バッフ
ァ130から読出される印字データを出力可能なように
電気信号に変換して印字部160に与える機能を有する
Further, the printing unit 160 has a function of mechanically outputting print data on printing paper, and the printing unit interface circuit 150 is capable of outputting print data read from the print buffer 130 based on the control of CPUll0. It has a function of converting into an electrical signal and providing it to the printing section 160.

前記スイッチ170はプリンタカバー180の開閉状態
を検知して信号S1としてCPUI 10に与える。詳
細には、スイッチ170はプリンタカバー180が閉状
態にあることを検知する期間は、信号S1をレベル″L
OW”に設定して出力するが、開状態であることを検知
すると信号S1をレベル“LOW″から“HIGH”に
設定して出力する。
The switch 170 detects the open/closed state of the printer cover 180 and provides it to the CPU 10 as a signal S1. Specifically, during the period in which the switch 170 detects that the printer cover 180 is in the closed state, the switch 170 sets the signal S1 to the level "L".
When the open state is detected, the signal S1 is set from the level "LOW" to "HIGH" and output.

プリンタ100は以上のように構成されて、上位システ
ムである印字要求元装置200から印字データの送信R
EQ信号に続いて送信される印字データを受信し、応じ
て受信印字データを印字部160に印字出力可能なよう
にデータ変換して出力する。しかし、CPUll0は前
記送信REQ信号受信時に、信号S1の信号レベルが“
LOW”であることを検知すれば送信REQ信号肯定応
答(以下、送信ACK信号と称す)を印字要求元装置2
00に送信するが、反対に信号S1の信号レベルが“H
IGH”で検知される間は、送信ACK信号を前記印字
要求元装置200に送信しないように動作する。
The printer 100 is configured as described above, and print data is sent from the print request source device 200 which is a host system.
It receives the print data transmitted following the EQ signal, and accordingly converts the received print data so that it can be printed out to the printing section 160 and outputs the data. However, when CPUll0 receives the transmission REQ signal, the signal level of signal S1 is “
LOW”, the print request source device 2 sends a transmission REQ signal acknowledgment (hereinafter referred to as a transmission ACK signal).
00, but on the contrary, the signal level of signal S1 is “H”.
IGH”, the printer operates so as not to transmit the transmission ACK signal to the print request source device 200.

つまり、プリンタ100は印字要求元装置20Oから送
信REQ信号を受信しても、そのプリンタカバー180
が開かれている間は送信ACK信号を出力しないように
して前記印字要求元装置200の印字データ出力要求を
待ち状態に設定する。
In other words, even if the printer 100 receives the transmission REQ signal from the print request source device 20O, the printer cover 180
While the is open, the transmission ACK signal is not outputted, and the print data output request from the print request source device 200 is set in a waiting state.

第2図は、本発明の一実施例の印字要求元装置200お
よびプリンタ100の印字動作時の概略処理フロー図で
ある。
FIG. 2 is a schematic processing flow diagram during printing operations of the print requesting device 200 and the printer 100 according to an embodiment of the present invention.

図示される印字要求元装置200側の処理フローは、予
めプログラムとして該装ff1200内のメモリ(図示
せず)に記憶され、メインCPUの制御に基づいて実行
される。同様にして、図示されるプリンタ100側の処
理フローは予めプログラムとしてROMI 20に記憶
され、CPUll0の制御に基づいて実行される。
The illustrated processing flow on the printing request source device 200 side is stored in advance as a program in a memory (not shown) in the device ff 1200, and is executed under the control of the main CPU. Similarly, the illustrated processing flow on the printer 100 side is stored in advance in the ROMI 20 as a program, and is executed under the control of the CPUll0.

まず、印字要求元装置200側の印字データ送信処理に
ついて説明する。
First, the print data transmission process on the print requesting device 200 side will be explained.

印字要求元装置200のメインCPUは、まずステップ
5100 (図中では5100と略す)の処理を、該装
置200の実行する各種処理によってプリンタ100に
印字出力すべき印字データが生成されるまで繰返す。つ
まりメインCPUは該印字要求元装置200に登録され
るアプリケーションプログラムの処理を受けて、印字デ
ータのプリント出力が指定されていることを判別すると
次のステップ5200の処理に移行する。
The main CPU of the print request source device 200 first repeats the process of step 5100 (abbreviated as 5100 in the figure) until print data to be printed out to the printer 100 is generated by various processes executed by the device 200. That is, the main CPU processes the application program registered in the print request source device 200, and when it determines that the printout of the print data is specified, it moves to the next step 5200.

ステップ200の処理においては、前述のステップ51
00の印字データ有りの判別に応じて、印字データプリ
ント出力開始のためにプリンタ100に送信REQ信号
を送信する。
In the process of step 200, the above-mentioned step 51
In response to the determination that print data 00 is present, a transmission REQ signal is sent to the printer 100 to start printing out the print data.

その後、次のステップ5300の処理がプリンタ100
から送信ACK信号を受信するまで繰返される。つまり
、プリンタ100側では前記送信REQ信号を受信した
ことに応じて送信ACK信号を印字要求元装置200に
送信する(詳細は後述する)ので、メインCPUはこの
送信ACK信号受信の有無をステップ5300の処理で
判別する。
After that, the next step 5300 is performed by the printer 100.
The process is repeated until a transmission ACK signal is received. In other words, in response to receiving the transmission REQ signal, the printer 100 side transmits a transmission ACK signal to the print requesting device 200 (details will be described later), so the main CPU checks whether or not this transmission ACK signal has been received in step 5300. It is determined by the process.

ステップ5300の処理において前記プリンタ100側
からの送信ACK信号を受信すると、次のステップ54
00の処理に移行し、前述したアプリケーションプログ
ラム処理により出力指定される印字データをバスを介し
てプリンタ100側に高速伝送する。
Upon receiving the transmission ACK signal from the printer 100 in the process of step 5300, the next step 54 is performed.
00 processing, and print data designated for output by the above-described application program processing is transmitted at high speed to the printer 100 via the bus.

ステップ5400の処理において印字データ送信後は、
再度ステップ5100の処理に戻り、次に発生するプリ
ント出力指定される印字データに対する処理を以下同様
にして繰返す。
After sending the print data in the process of step 5400,
The process returns to step 5100 again, and the process for the next generated print data designated for print output is repeated in the same manner.

以上のように、印字要求元装置200側のメインCPU
は、ステップ5100ないしステップ5400で構成さ
れるループ処理をプリント出力すべき印字データが生成
されるごとに繰返すので、この印字データ送信ごとに送
信REQ信号と送信ACK信号の送受信処理がプリンタ
100側との間で行なわれる。
As described above, the main CPU on the print request source device 200 side
Since the loop process consisting of steps 5100 to 5400 is repeated every time print data to be printed is generated, the transmission and reception process of the send REQ signal and the send ACK signal is performed on the printer 100 side each time this print data is transmitted. It is held between.

また、印字要求元装置200側は、送信REQ信号を発
信した後も、プリンタ100側から送信ACK信号を受
信するまでは印字データの送信許可が与えられていない
と認識して、プリンタ100側への印字データの送信を
待機状態に設定する。
Furthermore, even after sending the transmission REQ signal, the printing requesting device 200 side recognizes that it has not been given permission to send print data until it receives a transmission ACK signal from the printer 100 side, and sends the print data to the printer 100 side. Set the print data transmission to standby mode.

次に、前述した印字要求元装置200側の処理に並行し
て実行されるプリンタ100側の印字データ受信および
受信印字データのプリント出力処理について説明する。
Next, a description will be given of print data reception on the printer 100 side and print output processing of the received print data, which is executed in parallel with the process on the print request source device 200 described above.

まず、CPUll0はステップ5250の処理において
前述の印字要求元装置200側の処理ステップ5200
において発信された送信REQ信号を受信するか否か判
別する。この判別処理は、送信REQ信号を受信するま
で繰返されるが、旦送信REQ信号が受信されると次の
ステップ5270に移行し、以降の処理が実行開始され
る。
First, in the process of step 5250, CPUll0 performs the process step 5200 on the print requesting device 200 side.
It is determined whether or not to receive the transmission REQ signal transmitted at. This determination process is repeated until the transmission REQ signal is received, but once the transmission REQ signal is received, the process moves to the next step 5270, and the subsequent processes are started.

ステップ5270の処理では、前述のステップ5250
の送信REQ信号受信に応じて、現在プリンタカバー1
80が閉じられているか否かを判別する。つまり、プリ
ンタカバー180の開閉状態はスイッチ170により検
知されて、その検知結果が信号S1としてCPUll0
に与えられるので、CPU110は信号S1の信号レベ
ルが“HIGH″であるか”LOW”であるかを判別し
てプリンタカバー180が現在量いているか閉じている
かを判別する。たとえば、信号S1が信号レベル“HI
GH″ (プリンタカバー180は開状態)で検知され
る期間はステ・ツブ5270の処理が繰返されるが、信
号S1か信号レベル“LOW” (プリンタカバー18
0は閉状態)と検知されれば、処理は次のステップ52
90に移行する。
In the process of step 5270, the above-mentioned step 5250
In response to receiving the REQ signal sent by
80 is closed. That is, the open/close state of the printer cover 180 is detected by the switch 170, and the detection result is sent as the signal S1 to the CPUll0.
Therefore, the CPU 110 determines whether the signal level of the signal S1 is "HIGH" or "LOW" and determines whether the printer cover 180 is currently closed or closed. For example, if the signal S1 is at the signal level “HI”
GH'' (printer cover 180 is in the open state), the process of step 5270 is repeated, but the signal S1 or the signal level is “LOW” (printer cover 180 is in the open state).
0 is the closed state), the process proceeds to the next step 52
90.

ステップ5290においては、前述のステップ5250
およびステップ5270の処理において送信REQ信号
を受信し、かつプリンタカバー180が閉状態であるこ
とが判別されたことに応じて、印字要求元装置200側
に送信ACK信号を発信して印字データの送信を促すよ
うに処理する。
In step 5290, step 5250 described above
In response to receiving the transmission REQ signal in the process of step 5270 and determining that the printer cover 180 is in the closed state, a transmission ACK signal is transmitted to the print request source device 200 to transmit the print data. Process to encourage.

このようにして、プリンタ100側から送信される送信
ACK信号は、前述した印字要求元装置200側の処理
ステップ5300およびステップ5400において受信
されて印字データがプリンタ100側に送信される。し
たがってCPUI 10はステップ5410およびステ
・ノブ5450の処理において前記印字データを受信し
、印字バツファ130に一時記憶することができる。
In this way, the transmission ACK signal transmitted from the printer 100 side is received in processing steps 5300 and 5400 on the print requesting device 200 side described above, and the print data is transmitted to the printer 100 side. Therefore, the CPU 10 can receive the print data in the processing of step 5410 and the step knob 5450 and temporarily store it in the print buffer 130.

なお、印字バッファ130は前述したようにデータ伝送
速度と印字速度との速度差緩衝用に設けられるメモリな
ので、その記憶容量は印字部160において2〜3行程
度の印字データ量をストアできるだけの大きさでよい。
Note that, as described above, the print buffer 130 is a memory provided to buffer the speed difference between the data transmission speed and the printing speed, so its storage capacity is large enough to store the amount of print data of about 2 to 3 lines in the print section 160. It's good.

次のステップ5500の処理においては、前述のステッ
プ5450の処理において印字バッファ130に蓄えら
れた印字データを印字部インターフェイス回路150を
介して電気信号に変換し印字部160に与えてプリント
出力するように処理する。このとき、印字バッファ13
0に蓄えられた印字データはすべてプリント出力される
In the process of the next step 5500, the print data stored in the print buffer 130 in the process of step 5450 described above is converted into an electrical signal via the print unit interface circuit 150, and is applied to the print unit 160 to be printed out. Process. At this time, the print buffer 13
All print data stored in 0 is printed out.

その後、次のステップ5550の処理においてプリンタ
カバー180が閉状態にあるか否かが前述したステップ
5270の処理と同様にして判別される。この判別結果
、プリンタカバー180が閉状態であれば、処理は再度
ステップ5250に戻り以下同様にして次の印字データ
の送受信処理と受信印字データの出力処理が実行される
Thereafter, in the process of the next step 5550, it is determined whether the printer cover 180 is in the closed state in the same manner as the process of step 5270 described above. As a result of this determination, if the printer cover 180 is in the closed state, the process returns to step 5250 again, and thereafter, the next print data transmission/reception process and the output process of the received print data are executed in the same manner.

一方、前述のステップ5550の判別処理においてプリ
ンタカバー180が開かれていると判別されれば、処理
は次のステップ5600に移行する。
On the other hand, if it is determined in the determination process of step 5550 that the printer cover 180 is open, the process moves to the next step 5600.

ステップ5600の処理においては、前述のステップ5
550の判別結果を受けてプリンタ100を初期状態に
リセットする。つまり、前述のステップ5550におい
てプリンタカバー180が開状態にあると判別されたの
で、プリンタカバー180開状態における体内からの静
電気放電により、CPU110の内部バッファ、レジス
タおよびスタックなどに一時的に記憶されるデータが破
壊(ロジック破壊)されている恐れがある。そのために
、CPUll0は前述のステップ5500の印字出力後
プリンタカバー180が開かれたことを検知すれば、該
プリンタ100を無条件に初期状態にリセットする。
In the process of step 5600, the above-mentioned step 5
Upon receiving the determination result of step 550, the printer 100 is reset to the initial state. That is, since it was determined in step 5550 that the printer cover 180 is in the open state, electrostatic discharge from within the body when the printer cover 180 is in the open state causes temporary storage in the internal buffer, register, stack, etc. of the CPU 110. There is a possibility that the data may be destroyed (logic destruction). To this end, when CPUll0 detects that printer cover 180 has been opened after printing in step 5500, it unconditionally resets printer 100 to its initial state.

つまり、CPUll0はプリンタカバー180が一旦開
かれると、印字バッファ130およびCPUI 10の
内部バッファ、レジスタならびにスタックなどに初期値
を設定し直して、前述したデータ破壊(ロジック破壊)
によるCPUll01すなわちプリンタ100自体の誤
動作(暴走)を防止する。
In other words, once the printer cover 180 is opened, CPUll0 resets the initial values to the print buffer 130 and the internal buffers, registers, and stacks of the CPU 10, resulting in the aforementioned data destruction (logic destruction).
This prevents malfunction (runaway) of the CPUll01, that is, the printer 100 itself.

その後、ステップ5650の処理において、前述のステ
ップ5270と同様にしてプリンタカッく−180の開
閉状態が判別される。
Thereafter, in the process of step 5650, the open/closed state of the printer cup-180 is determined in the same manner as in step 5270 described above.

このときプリンタカバー180が開状態にある期間はス
テップ5650の処理が繰返し実行されるが、−旦閉状
態となれば再度ステップ5250の処理に戻り以下同様
にして次の印字データについての送受信処理および印字
出力処理が繰返される。
At this time, the process of step 5650 is repeatedly executed while the printer cover 180 is in the open state, but once the printer cover 180 is in the closed state, the process returns to step 5250 again. The printout process is repeated.

ステップ5550ないしステップ5650の処理に示さ
れるように、プリンタカバー180が開けられその後閉
じられたことに応じて再度ステ・ンプ5250の処理に
移行するが、CPUll0内に記憶される各種データは
すべて初期状態にリセットされているので、ステップ5
250以降に示される次の印字データ処理も正常に実行
(誤動作しない)できる。
As shown in the processing from step 5550 to step 5650, in response to the printer cover 180 being opened and then closed, the process returns to step 5250, but all the various data stored in CPUll0 are initialized. Since the state has been reset, step 5
The next print data processing shown after 250 can also be executed normally (without malfunction).

また、受信して印字バッファ130に記憶される印字デ
ータは、前述のステップ5500の印字出力処理におい
てすべて出力完了をするようにしているので、その後の
ステップ5550の処理においてプリンタカバー180
が開かれて静電気エネルギが放出されても、印字バッフ
ァ130中には出力すべき印字データは残っていない(
初期状態にリセットされている)ので印字データが破壊
されることはない。
Furthermore, since the print data received and stored in the print buffer 130 is completely output in the print output process of step 5500 described above, the printer cover 180 is
Even if the print buffer 130 is opened and electrostatic energy is released, there is no print data left in the print buffer 130 to be output (
(reset to the initial state), the print data will not be destroyed.

以上のように、プリンタ100側では、プリンタカバー
180が閉じられている期間に印字データを受信し、受
信印字データのすべてを出力完了するようにし、その後
プリンタカバー180が開けられると無条件に該プリン
タ100を初期状態にリセットするようにして、プリン
タカバー180が開けられた際に放電される静電気によ
るプリンタ100の誤動作(暴走)および誤印字を防止
している。
As described above, on the printer 100 side, print data is received while the printer cover 180 is closed, all of the received print data is outputted, and when the printer cover 180 is opened thereafter, the print data is unconditionally applied. By resetting the printer 100 to its initial state, malfunction (runaway) of the printer 100 and erroneous printing due to static electricity discharged when the printer cover 180 is opened are prevented.

また、プリンタカバー180の開閉動作時の静電気放電
の他に、何らかの要因でCPUll0の内部データが破
壊されたとしても、前述したようにCPUI 10はウ
ォッチドッグ回路140による自己不良検出機能を有し
ているので、ウォッチドッグ回路140から与えられる
警報信号を割込信号として受付けて、ステップ5600
の処理で説明したような初期状態へのリセット動作を実
行する。したがって、CPUI 10は万一内部データ
が破壊されて暴走したとしても、前記ウォッチドッグ回
路140による自己診断を行なって自己回復することが
できるので、プリンタ100の異常状態からの回復も同
時に図ることができる。
In addition, even if the internal data of CPU110 is destroyed due to some reason other than electrostatic discharge when the printer cover 180 is opened/closed, the CPU10 has a self-failure detection function by the watchdog circuit 140 as described above. Therefore, the alarm signal given from the watchdog circuit 140 is accepted as an interrupt signal, and the process proceeds to step 5600.
Execute the reset operation to the initial state as described in the process. Therefore, even if the CPU 10 goes out of control due to internal data being destroyed, the watchdog circuit 140 can perform self-diagnosis and self-recovery, making it possible to recover the printer 100 from an abnormal state at the same time. can.

なお、上述したウォッチドッグ回路140が動作してC
PUll0が自己回復しても、すべての回路は動作可能
状態にあるのでプリンタカバー180を開けた状態での
給紙動作は可能である。
Note that the above-mentioned watchdog circuit 140 operates to
Even if PUll0 recovers by itself, all the circuits remain in an operable state, so paper feeding operation is possible with the printer cover 180 open.

[発明の効果] 本発明によればプリンタカバー閉状態である期間にのみ
印字要求元から印字データを受信してすべて出力するよ
うにし、さらに前記8力後にプリンタカバー開状態とな
れば無条件に初期状態にリセットした後に、印字要求元
から次の印字データを受信し出力するようにしているの
で、プリンタカバー開状態時に静電気が放電されたこと
による誤動作および誤印字を防止することができるとい
う効果がある。
[Effects of the Invention] According to the present invention, print data is received from the print request source only during the period when the printer cover is in the closed state, and all print data is output. After resetting to the initial state, the next print data is received from the print request source and output, which has the effect of preventing malfunctions and incorrect printing caused by static electricity being discharged when the printer cover is open. There is.

また、プリンタは誤動作してもその初期の段階において
自己回復機能により該プリンタ自体を前記初期状態にリ
セットして回復することができるという効果もある。
Further, even if the printer malfunctions, there is an effect that the self-recovery function allows the printer itself to be reset to the initial state and recovered at the initial stage.

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

第1図は、本発明の一実施例のプリンタの内部機能構成
を示す概略図である。第2図は、本発明の一実施例の印
字要求元装置およびプリンタの印字動作時の概略処理フ
ロー図である。 図において、100はプリンタ、110はCPU、13
0は印字バッファ、140はウォッチドッグ回路、16
0は印字部、170はスイッチ、180はプリンタカバ
ー、200は印字要求元装置およびSlは信号である。
FIG. 1 is a schematic diagram showing the internal functional configuration of a printer according to an embodiment of the present invention. FIG. 2 is a schematic processing flow diagram of the printing operation of the printing requesting device and the printer according to an embodiment of the present invention. In the figure, 100 is a printer, 110 is a CPU, 13
0 is the print buffer, 140 is the watchdog circuit, 16
0 is a printing unit, 170 is a switch, 180 is a printer cover, 200 is a print request source device, and Sl is a signal.

Claims (1)

【特許請求の範囲】[Claims]  印字要求に応答して、前記印字要求に続いて送信され
る印字データを印字出力するプリンタにおいて、前記印
字データを出力する印字手段と、前記印字手段を覆うカ
バーの開閉状態を検出する検出手段と、前記検出手段に
より前記プリンタカバー閉状態と検出されたことに応じ
て、前記印字データを受信し前記印字手段にすべて印字
出力するように制御する印字制御手段と、前記印字制御
手段によって前記受信された印字データを印字している
ときに、前記検出手段により前記プリンタカバー開状態
と検出されたことに応じて、前記印字制御手段を初期状
態に設定する手段とを備えた、プリンタ。
In a printer that prints out print data transmitted following the print request in response to a print request, the printer includes: a print means for outputting the print data; and a detection means for detecting an open/closed state of a cover covering the print means. , a print control means for receiving the print data and controlling the print data to be output entirely to the print means in response to the detection means detecting that the printer cover is in the closed state; and means for setting the printing control means to an initial state in response to the detection means detecting that the printer cover is in an open state while printing the print data.
JP2079094A 1990-03-28 1990-03-28 Printer Pending JPH03277578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2079094A JPH03277578A (en) 1990-03-28 1990-03-28 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2079094A JPH03277578A (en) 1990-03-28 1990-03-28 Printer

Publications (1)

Publication Number Publication Date
JPH03277578A true JPH03277578A (en) 1991-12-09

Family

ID=13680295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2079094A Pending JPH03277578A (en) 1990-03-28 1990-03-28 Printer

Country Status (1)

Country Link
JP (1) JPH03277578A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010078799A (en) * 2008-09-25 2010-04-08 Brother Ind Ltd Image forming device
US20100119273A1 (en) * 2008-11-13 2010-05-13 Kunihiro Komai Image forming apparatus and method of correcting color image misalignment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010078799A (en) * 2008-09-25 2010-04-08 Brother Ind Ltd Image forming device
US8405844B2 (en) 2008-09-25 2013-03-26 Brother Kogyo Kabushiki Kaisha Image forming device
US20100119273A1 (en) * 2008-11-13 2010-05-13 Kunihiro Komai Image forming apparatus and method of correcting color image misalignment

Similar Documents

Publication Publication Date Title
JPH07181842A (en) Management system for copying device
JP3626741B2 (en) Data transfer system
JPH03277578A (en) Printer
US4996562A (en) Control device in image forming apparatus
US5835706A (en) Method of controlling data writing into on-board microcomputer
JPS59129182A (en) Printing apparatus
JP2005333450A (en) Image forming apparatus
JPH0683719A (en) Memory evaporation preventing system
JP3123426B2 (en) Printer device
JPH03262677A (en) Printer
US5982509A (en) Video interfacing technique for transmitting reset signals in an image forming device having video and engine controllers
JPS6290667A (en) Copying machine
JP2706027B2 (en) Programmable controller
JPS6271685A (en) Printer
JP2002347306A (en) Imaging apparatus
JPH11115283A (en) Printer and method for controlling it
JPH01269581A (en) Printer
JPH04175838A (en) Dumping system at the time of autorebooting
JPH09114606A (en) Peripheral device and system using the device
JPH06250864A (en) Method for preventing generation of error output from programmable controller
JP2504928Y2 (en) Facsimile reception system
JPH11175303A (en) Printer device
JP2825464B2 (en) Communication device
JPH07295896A (en) Peripheral equipment and information processing system using same
JPH07319588A (en) Runaway prevention control system