JP2000187577A - Printer - Google Patents

Printer

Info

Publication number
JP2000187577A
JP2000187577A JP10363230A JP36323098A JP2000187577A JP 2000187577 A JP2000187577 A JP 2000187577A JP 10363230 A JP10363230 A JP 10363230A JP 36323098 A JP36323098 A JP 36323098A JP 2000187577 A JP2000187577 A JP 2000187577A
Authority
JP
Japan
Prior art keywords
error
signal
host device
notifying
output
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
JP10363230A
Other languages
Japanese (ja)
Inventor
Shinji Nureki
伸二 濡木
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.)
Seiko Instruments Inc
Original Assignee
Seiko Instruments 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 Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP10363230A priority Critical patent/JP2000187577A/en
Publication of JP2000187577A publication Critical patent/JP2000187577A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a printer capable of separately notifying the error contents with a simple configuration. SOLUTION: When data DATA0 to DATA7 are inputted from a host device through a data signal line, a CPU 105 decides whether or not an error occurs, and when the inputted data are an error status selection command '05H', the CPU 105 makes a busy signal BUSY LOW and enables command receiving from the host device. After that, the CPU 105 notifies the host device of the existence/absence of plural errors in a printer in a preliminarily defined and prescribed sequence in response to plural sequentially inputted error output commands 'FFH' from the host device through the data signal line.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、印刷データに応答
して文字等をプリント用紙に印刷すると共に、エラー発
生時にエラーを通知する機能を備えたプリント装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus which prints characters and the like on print paper in response to print data and has a function of notifying an error when an error occurs.

【0002】[0002]

【従来の技術】従来から、ホスト装置から受信した印刷
データに対応する文字等をプリント用紙に印刷すると共
に、エラー発生時にエラーを通知する機能を備えたプリ
ント装置が使用されている。前記ホスト装置から前記プ
リント装置に印刷データを入力する方法として、セント
ロニクス仕様のインタフェースを使用したり、セントロ
ニクス仕様の信号から必要な信号線だけを使用したパラ
レル通信方式等が採用されている。
2. Description of the Related Art Conventionally, a printing apparatus has been used which has a function of printing characters and the like corresponding to print data received from a host apparatus on a print sheet and notifying an error when an error occurs. As a method of inputting print data from the host device to the printing device, an interface of a Centronics specification, a parallel communication method using only necessary signal lines from signals of the Centronics specification, and the like are adopted.

【0003】図5は、セントロニクス仕様のインタフェ
ースを使用した従来のプリント装置のタイミング図であ
る。図5において、印刷データD1の印刷処理を行った
後、プリント装置側でエラーが発生すると、プリント装
置側で、エラーが発生したことを示すエラー信号ERR
ORを低レベル(LOW)に又、印刷データ入力の禁止
を示すビジー信号BUSYを高レベル(HIGH)にす
る。これにより、プリント装置からホスト装置に対し
て、エラーが発生したこと及び印刷データ入力の禁止が
通知される。その後は、ホスト装置側で、ストローブ信
号STROBEをLOWにすると共にプリント装置に印
刷データD2を入力しても、プリント装置側では印刷デ
ータD2は無視される。
FIG. 5 is a timing chart of a conventional printing apparatus using an interface conforming to the Centronics specification. In FIG. 5, when an error occurs in the printing apparatus after performing the printing process of the print data D1, an error signal ERR indicating that the error has occurred in the printing apparatus.
OR is set to a low level (LOW), and a busy signal BUSY indicating inhibition of print data input is set to a high level (HIGH). As a result, the printing apparatus notifies the host apparatus that an error has occurred and prohibition of print data input. After that, even if the host device sets the strobe signal STROBE to LOW and inputs the print data D2 to the printing device, the printing device ignores the print data D2.

【0004】[0004]

【発明が解決しようとする課題】前述したセントロニク
ス仕様のインタフェース信号には、プリント装置の異常
状態を示す信号としては、エラーを示すエラー信号と、
プリント用紙切れ(紙なし)を示すペーパエンプティ信
号しかない。このため、プリント用紙の残りが少なくな
った場合のニアエンド、電圧エラー、温度エラー、プリ
ント用紙を切断するためのカッターの異常を示すカッタ
ーエラー等の各種エラーは、全てエラーとしかホスト装
置側では認識することができず、エラーが発生したこと
自体は認識できても、エラーの内容までもホスト装置で
認識することは不可能であった。前記以外の方式でも、
ホスト装置に対して、エラーの内容を通知する機能を有
さず、単にエラーの発生を通知する機能しか有しないプ
リント装置においては、前記同様の問題があった。
The above-mentioned interface signals of the Centronics specification include an error signal indicating an error as a signal indicating an abnormal state of the printing apparatus,
There is only a paper empty signal indicating print paper out (no paper). For this reason, the host device recognizes only various errors, such as near-end, voltage error, temperature error, and cutter error indicating a cutter error for cutting the print paper when the remaining print paper is low. It is not possible to recognize that an error has occurred, but it is impossible for the host device to recognize the details of the error. In other methods,
A printing apparatus which does not have a function of notifying the host apparatus of the content of the error but merely has a function of simply notifying the occurrence of the error has the same problem as described above.

【0005】本発明は、前記問題点に鑑み成されたもの
で、簡単な構成で、そのエラー内容を個別に通知するこ
とが可能なプリント装置を提供することを課題としてい
る。また、本発明は、セントロニクス仕様等のエラー内
容を個別に通知する機能を有しないインタフェースを利
用して、エラー内容を個別にホスト装置に通知すること
が可能なプリント装置を提供することを課題としてい
る。
The present invention has been made in view of the above problems, and has as its object to provide a printing apparatus capable of individually notifying the contents of an error with a simple configuration. Another object of the present invention is to provide a printing apparatus capable of individually notifying error contents to a host device by using an interface having no function of individually notifying error contents such as Centronics specifications. I have.

【0006】[0006]

【課題を解決するための手段】本発明のプリント装置
は、データ信号線を介してホスト装置から入力される印
刷データに応答してプリント用紙に印刷を行うと共に、
前記ホスト装置に対して、ビジー信号により前記印刷デ
ータ受付の可否を通知し、エラーの発生を検出してエラ
ー信号によりエラーの通知を行うプリント装置におい
て、前記ホスト装置からのエラー情報要求コマンドに応
答して、予め定められた所定の順序で、複数種のエラー
の有無を通知するエラー情報出力手段を備えて成ること
を特徴としている。エラー情報出力手段は、ホスト装置
からのエラー情報要求コマンドに応答して、予め定めら
れた所定の順序で、エラー発生の有無を通知する。
A printing apparatus according to the present invention performs printing on print paper in response to print data input from a host apparatus via a data signal line, and
In response to an error information request command from the host device, the printing device notifies the host device of the acceptability of the print data using a busy signal, detects an error, and notifies the host device of the error using an error signal. In addition, an error information output means for notifying the presence or absence of a plurality of types of errors in a predetermined order is provided. The error information output means responds to the error information request command from the host device, and notifies whether or not an error has occurred in a predetermined order.

【0007】前記エラー情報要求コマンドは、エラー情
報の要求開始を通知するエラーステータス選択コマンド
及び前記エラーステータス選択コマンドに続いて入力さ
れエラーの有無の出力を要求する複数のエラー出力コマ
ンドにより構成され、前記エラー情報出力手段は、前記
エラーステータス選択コマンドに続く複数のエラー出力
コマンドに応答して、前記所定の順序で、エラーの有無
を順次通知するように構成することができる。
The error information request command includes an error status selection command for notifying the start of a request for error information, and a plurality of error output commands which are input following the error status selection command and request output of presence or absence of an error. The error information output means may be configured to sequentially notify the presence or absence of an error in the predetermined order in response to a plurality of error output commands following the error status selection command.

【0008】また、前記エラー情報出力手段は、前記デ
ータ信号線を介して入力される前記エラーステータス選
択コマンドに応答して、ビジー信号を制御してコマンド
受付可能であることを通知するコマンド受付通知手段
と、前記データ信号線を介して入力される複数の前記エ
ラー出力コマンドに応答して対応するエラーの有無を前
記所定の順序で通知するエラー通知手段とを備えるよう
に構成することができる。さらに、前記エラー通知手段
は、前記エラー出力コマンドに応答してエラー信号を制
御することにより、対応するエラーを通知するように構
成することができる。
The error information output means controls a busy signal in response to the error status selection command input via the data signal line to notify that a command can be received. Means, and error notifying means for notifying the presence or absence of a corresponding error in the predetermined order in response to the plurality of error output commands input via the data signal line. Further, the error notifying unit may be configured to notify a corresponding error by controlling an error signal in response to the error output command.

【0009】[0009]

【発明の実施の形態】図1は、本発明の実施の形態に係
るプリント装置のインタフェース部分を示すブロック図
である。図1において、中央処理装置(CPU)105
の印刷データ入力端子D0〜D7には、ホスト装置(図
示せず)から、8ビットの印刷データDATA0〜DA
TA7がストローブ信号STROBEに同期して、抵抗
及び8ビットのフリップフロップ104を介して入力さ
れる。ここで、CPU105は、プリント装置全体の動
作を制御すると共にエラー情報を出力するエラー情報出
力手段を構成している。また、CPU105は、プリン
ト用紙の用紙切れ(紙なし)等のエラー状態を検出する
複数のセンサ(図示せず)とともに、エラー内容を検出
するエラー検出手段を構成している。尚、図示していな
いが、CPU105は、ホスト装置からの印刷データD
ATA0〜DATA7に応答してプリント用紙に印刷す
るプリントヘッドに接続されると共に、プリント用紙の
紙送り等を行うモータ駆動回路を介してモータに接続さ
れている。
FIG. 1 is a block diagram showing an interface portion of a printing apparatus according to an embodiment of the present invention. In FIG. 1, a central processing unit (CPU) 105
Are input from a host device (not shown) to the print data input terminals D0 to D7.
TA7 is input via a resistor and an 8-bit flip-flop 104 in synchronization with the strobe signal STROBE. Here, the CPU 105 constitutes error information output means for controlling the operation of the entire printing apparatus and outputting error information. Further, the CPU 105 constitutes an error detecting means for detecting an error content together with a plurality of sensors (not shown) for detecting an error state such as out of print paper (out of paper). Although not shown, the CPU 105 transmits print data D from the host device.
It is connected to a print head that prints on print paper in response to ATA0 to DATA7, and is also connected to a motor via a motor drive circuit that feeds the print paper.

【0010】ホスト装置から入力されるストローブ信号
STROBEは、インバータ102を介して、フリップ
フロップ103のクロック入力端子CK、フリップフロ
ップ104のクロック入力端子CK及びCPU105の
割込入力端子INTに入力される。CPU105のクリ
ア信号出力端子BCLRはフリップフロップ103のリ
セット端子Rに接続されている。フリップフロップ10
3のセット端子S及びデータ入力端子Dはプルアップ抵
抗を介して電源Vccに接続され、出力端子QはORゲ
ート101の一方の入力端子に接続されている。ORゲ
ート101の他方の入力端子には、CPU105のビジ
ー信号出力端子BSYが接続されている。ORゲート1
01の出力端子は、バッファ107を介して、ホスト装
置に接続されており、バッファ107からはビジー信号
BUSYが出力される。
The strobe signal STROBE input from the host device is input to the clock input terminal CK of the flip-flop 103, the clock input terminal CK of the flip-flop 104, and the interrupt input terminal INT of the CPU 105 via the inverter 102. The clear signal output terminal BCLR of the CPU 105 is connected to the reset terminal R of the flip-flop 103. Flip-flop 10
3, the set terminal S and the data input terminal D are connected to a power supply Vcc via a pull-up resistor, and the output terminal Q is connected to one input terminal of the OR gate 101. The other input terminal of the OR gate 101 is connected to the busy signal output terminal BSY of the CPU 105. OR gate 1
The output terminal 01 is connected to a host device via a buffer 107, and the buffer 107 outputs a busy signal BUSY.

【0011】CPU105のエラー信号出力端子ERR
は、バッファ106を介して、ホスト装置に接続されて
おり、バッファ106からはエラー信号ERRORが出
力される。エラー信号ERRORは、プリント装置にエ
ラーが発生しているか否かを示す信号で、LOWのとき
にエラーが発生していることを示し、HIGHのときに
は正常であることを示す。バッファ106、107の出
力部及びインバータ102の入力部は、各々、プルアッ
プ抵抗を介して電源Vccに接続されている。
An error signal output terminal ERR of the CPU 105
Are connected to a host device via a buffer 106, and the buffer 106 outputs an error signal ERROR. The error signal ERROR is a signal indicating whether or not an error has occurred in the printing apparatus. When LOW, it indicates that an error has occurred, and when HIGH, it indicates that it is normal. The outputs of the buffers 106 and 107 and the input of the inverter 102 are each connected to a power supply Vcc via a pull-up resistor.

【0012】CPU105は、初期化時に、クリア信号
出力端子BCLRからLOWパルスを出力してフリップ
フロップ103をリセットすることによりQ出力をLO
Wにし、且つビジー信号出力端子BSYをLOWにす
る。フリップフロップ103のQ出力とCPU105の
ビジー信号出力端子BSYの出力は、ORゲート101
を介してビジー信号BUSYとしてホスト装置に出力さ
れる。ビジー信号BUSYは印刷データ入力の可否を示
す信号で、LOWのときに入力可能、HIGHのときに
は入力禁止を示す。
At the time of initialization, the CPU 105 outputs a LOW pulse from the clear signal output terminal BCLR to reset the flip-flop 103, thereby turning the Q output low.
W, and the busy signal output terminal BSY is set to LOW. The Q output of the flip-flop 103 and the output of the busy signal output terminal BSY of the CPU 105
Is output to the host device as a busy signal BUSY. The busy signal BUSY is a signal indicating whether or not print data can be input. When the signal is LOW, the signal can be input. When the signal is HIGH, input is prohibited.

【0013】ストローブ信号STROBEとしてLOW
パルスが入力されると、ストローブ信号STROBEの
立ち下がりがインバータ102によって反転され、フリ
ップフロップ103のクロック入力端子CK、フリップ
フロップ104のクロック入力端子CK及びCPU10
5の割込入力端子INTに、立ち上がり信号として入力
される。CPU105の割込入力端子INTに立ち上が
り信号が入力されると、データ入力の割込処理が起動す
る。
As the strobe signal STROBE, LOW
When the pulse is input, the falling edge of the strobe signal STROBE is inverted by the inverter 102, and the clock input terminal CK of the flip-flop 103, the clock input terminal CK of the flip-flop 104, and the CPU 10
5 is input as a rising signal to the interrupt input terminal INT. When a rising signal is input to the interrupt input terminal INT of the CPU 105, an interrupt process for data input is started.

【0014】この結果、ストローブ信号STROBEの
立ち下がりに同期してビジー信号BUSYがHIGHに
なり、印刷データDATA0〜DATA7はフリップフ
ロップ104に格納される。同時に、CPU105に割
込が行われ、CPU105のデータ入力処理が起動され
る。CPU105は、割込処理で、ビジー信号出力端子
BSYをHIGHにした後、クリア信号出力端子BCL
RからLOWパルスを出力し、フリップフロップ104
から印刷データを読み取り、次の印刷データの入力を許
可する場合には、ビジー信号出力端子BSYをLOWに
してビジー信号BUSYをLOWにする。
As a result, the busy signal BUSY becomes HIGH in synchronization with the fall of the strobe signal STROBE, and the print data DATA0 to DATA7 are stored in the flip-flop 104. At the same time, the CPU 105 is interrupted, and the data input process of the CPU 105 is started. The CPU 105 sets the busy signal output terminal BSY to HIGH in the interrupt processing, and then sets the clear signal output terminal BCL
R outputs a LOW pulse, and the flip-flop 104
, The busy signal output terminal BSY is set to LOW and the busy signal BUSY is set to LOW when the input of the next print data is permitted.

【0015】プリント装置にエラーが発生した場合に
は、CPU105はエラー信号出力端子ERRをLOW
にしてホスト装置にエラーが発生したことを通知すると
同時に、ビジー信号出力端子BSYをHIGHにして印
刷データDATA0〜DATA7の入力の禁止を通知す
る。ホスト装置は、これに応答して、印刷データDAT
A0〜DATA7の出力を停止するように動作する。ま
た、プリント装置側では、エラー時にデータ信号線を介
してデータDATA0〜DATA7を受信した場合、前
記受信した信号が、エラー要求の開始を通知するエラー
ステータス選択コマンド「05H」及びエラーステータ
ス選択コマンド「05H」に続いて入力されエラー情報
の出力を要求するエラー出力コマンド「FFH」以外の
信号であれば無視するように動作する。尚、前記エラー
ステータス選択コマンド「05H」及びエラー出力コマ
ンド「FFH」は、ホスト装置からプリント装置に対し
てエラー情報の出力を要求するエラー情報要求コマンド
を構成している。
When an error occurs in the printing apparatus, the CPU 105 sets the error signal output terminal ERR to LOW.
At the same time, the host device is notified of the occurrence of the error, and at the same time, the busy signal output terminal BSY is set to HIGH to notify the prohibition of the input of the print data DATA0 to DATA7. In response, the host device responds to the print data DAT.
It operates to stop the output of A0 to DATA7. On the printing apparatus side, when data DATA0 to DATA7 are received via a data signal line at the time of an error, the received signal indicates an error status selection command “05H” and an error status selection command “05H” for notifying the start of an error request. If the signal is other than the error output command “FFH” which is input after “05H” and requests the output of the error information, it operates so as to be ignored. The error status selection command “05H” and the error output command “FFH” constitute an error information request command for requesting the printing device to output error information from the host device.

【0016】図2はCPU105の処理を示すフローチ
ャートで、図3は図2における各エラー信号出力処理
(ステップS206〜S211)の詳細を示すフローチ
ャートである。また、図4は、本実施の形態にかかるプ
リント装置の動作を説明するためのタイミング図であ
る。
FIG. 2 is a flowchart showing the processing of the CPU 105, and FIG. 3 is a flowchart showing details of each error signal output processing (steps S206 to S211) in FIG. FIG. 4 is a timing chart for explaining the operation of the printing apparatus according to the present embodiment.

【0017】以下、図1〜図4を用いて、本実施の形態
の動作を詳細に説明する。先ず、図2において、ホスト
装置からデータ信号線を介してデータDATA0〜DA
TA7が入力されると(ステップS201)、エラー出
力端子ERRがLOWか否か、即ちエラー信号ERRO
RがLOWか否かを判断する(ステップS202)。エ
ラー信号ERRORがHIGHの場合はエラーが発生し
ていないため、通常のデータ入力処理である印刷処理を
行う(ステップS204)。エラー信号ERRORがL
OWのときは、入力された前記信号がエラーステータス
選択コマンドである「05H」か否かを判断する(ステ
ップS203)。このとき、前記データが「05H」で
なければ、前記データを無視し、エラー信号ERROR
をLOWにした状態で処理を終了する(ステップS21
3)。
Hereinafter, the operation of the present embodiment will be described in detail with reference to FIGS. First, in FIG. 2, data DATA0-DA are transmitted from a host device via a data signal line.
When TA7 is input (step S201), it is determined whether or not the error output terminal ERR is LOW, that is, the error signal ERRO.
It is determined whether R is LOW (step S202). If the error signal ERROR is HIGH, no error has occurred, and a printing process, which is a normal data input process, is performed (step S204). Error signal ERROR is L
If it is OW, it is determined whether the input signal is "05H" which is an error status selection command (step S203). At this time, if the data is not "05H", the data is ignored and the error signal ERROR
Is ended in a state where is set to LOW (step S21).
3).

【0018】ステップS203において、入力されたデ
ータが「05H」の場合には、ビジー信号BUSYをL
OWにしてホスト装置に対してコマンド受付可能である
ことを通知する(ステップS205)。尚、ステップS
203、S205は、コマンド受付通知手段を構成して
いる。次に、予め決められた所定の順序で、以下のエラ
ー状態通知処理を行う。即ち、紙なしのエラーであるこ
とを通知するエラー信号出力処理(ステップS20
6)、ヘッドアップ状態であることを示すヘッドアップ
エラーを通知するエラー信号出力処理(ステップS20
7)、ヘッド温度エラー状態を通知するエラー信号出力
処理(ステップS208)、電圧エラー状態を通知する
エラー信号出力処理(ステップS209)、プリント用
紙切断用カッターのエラー状態を通知するエラー信号出
力処理(ステップS210)、プリント用紙の終了が近
いことを示すペーパニアエンドエラーを通知するエラー
信号出力処理(ステップS211)の順に、エラー信号
出力処理を行う。前記順序は予め定められており、ホス
ト装置も前記順序でエラー要因を認識する。ここで、ス
テップS206〜S211はエラー通知手段を構成して
いる。その後、ストローブ信号STROBEの入力を待
って(ステップS212)、エラー信号をLOWにして
(ステップS213)、処理を終了する。
In step S203, when the input data is "05H", the busy signal BUSY is
The status is set to OW and the host device is notified that the command can be received (step S205). Step S
Steps 203 and S205 constitute a command reception notifying unit. Next, the following error state notification processing is performed in a predetermined order. That is, an error signal output process for notifying that there is no paper error (step S20)
6), an error signal output process for notifying a head-up error indicating that the head is up (Step S20)
7), an error signal output processing for notifying a head temperature error state (step S208), an error signal output processing for notifying a voltage error state (step S209), and an error signal output processing for notifying an error state of the print paper cutting cutter (step S209). An error signal output process is performed in the order of step S210) and an error signal output process of notifying a paper near end error indicating that the end of the print sheet is near (step S211). The order is predetermined, and the host device also recognizes the error factor in the order. Here, steps S206 to S211 constitute an error notification unit. Then, after inputting the strobe signal STROBE (step S212), the error signal is set to LOW (step S213), and the process is terminated.

【0019】図3はステップS206〜S211の各処
理の詳細を示すフローチャートであり、図3に示すよう
に、ステップS206〜S211においては、ストロー
ブ信号STROBEの入力を待って(ステップS30
1)、入力されたデータが「FFH」か否かを判断し、
入力されたデータがエラー出力コマンド「FFH」でな
い場合には、図2のステップ213へ移行する(ステッ
プS302)。
FIG. 3 is a flowchart showing the details of the processing in steps S206 to S211. As shown in FIG. 3, in steps S206 to S211 the input of the strobe signal STROBE is awaited (step S30).
1), determine whether the input data is "FFH",
If the input data is not the error output command “FFH”, the flow shifts to step 213 in FIG. 2 (step S302).

【0020】入力されたデータが「FFH」の場合に
は、紙なし等の対象のエラーが発生しているか否かを判
断し(ステップS303)、対象のエラーが発生してい
る場合にはエラー信号ERRORをLOWにして、対象
のエラーが発生していることをホスト装置に通知する
(ステップS304)。対象のエラーが発生していない
場合には、エラー信号ERRORをHIGHにして、対
象のエラーが発生していないことをホスト装置に通知す
る(ステップS305)。その後、ビジー信号BUSY
をLOWにして処理を終了する。以後、前記処理を図2
のステップS206〜S211の各々について行う。
If the input data is "FFH", it is determined whether or not a target error such as out of paper has occurred (step S303). The signal ERROR is set to LOW to notify the host device that the target error has occurred (step S304). If the target error has not occurred, the error signal ERROR is set to HIGH to notify the host device that the target error has not occurred (step S305). After that, the busy signal BUSY
Is set to LOW, and the process ends. Hereinafter, the above-described processing will be described with reference to FIG.
Is performed for each of steps S206 to S211.

【0021】前記エラー信号出力処理の一例をさらに詳
細に説明すると、ホスト装置から、エラーステータス選
択コマンド「05H」が入力された後、エラー出力コマ
ンド「FFH」が順次入力されると、即ち、データ信号
線全てをHIGHにした状態でストローブ信号STRO
BEをLOWにすると、フリップフロップ103のQ出
力がHIGHになり、したがって、ビジー信号BUSY
がHIGHになる。CPU105は、ステップS206
のエラー信号出力処理において、データ信号線の信号が
「FFH」であると判断した場合(ステップS30
2)、エラー要因が「紙なし」であれば、エラー信号E
RRORをLOWに維持し、紙なしでなければエラー信
号ERRORをHIGHにした後、ビジー信号BUSY
をLOWにする。ホスト装置は、ビジー信号BUSYが
LOWになったことを確認して、エラー信号ERROR
がHIGHかLOWかを判定することで、紙なしか否か
を判断する。以後、他のエラー要因についても同様の処
理を行う。尚、データが「FFH」でないと判断した場
合には、ビジー信号BUSYをHIGHにして受付を禁
止し、エラー信号ERRORをLOWにしてその時点で
エラー出力動作を終了する。
An example of the error signal output processing will be described in further detail. When an error status selection command "05H" is input from the host device and then an error output command "FFH" is input sequentially, With all signal lines at HIGH, strobe signal STRO
When BE is set to LOW, the Q output of the flip-flop 103 becomes HIGH, so that the busy signal BUSY
Becomes HIGH. The CPU 105 determines in step S206
When the signal of the data signal line is determined to be “FFH” in the error signal output process (step S30)
2) If the error factor is “paper out”, the error signal E
If RROR is kept LOW, and if there is no paper, the error signal ERROR is set to HIGH and then the busy signal BUSY
To LOW. The host device confirms that the busy signal BUSY has become LOW and outputs the error signal ERROR.
Is high or low to determine whether there is no paper. Thereafter, similar processing is performed for other error factors. If it is determined that the data is not "FFH", the busy signal BUSY is set to HIGH to inhibit the reception, the error signal ERROR is set to LOW, and the error output operation is terminated at that time.

【0022】次に、前記したエラー信号出力処理を図4
のタイミング図を用いて説明する。図4において、DA
TAはホスト装置から入力される8ビットの入力データ
で、図1における8ビットのデータDATA0〜DAT
A7に対応している。データ「05H」、「FFH」
は、各々、エラーステータス選択コマンド、エラー出力
コマンドであり、データ信号線上に載せたデータを示し
ており、空白部分はどの様なデータであってもよいこと
を示している。図4においては、プリント装置がエラー
状態のときにビジー信号BUSYがHIGHであるにも
拘わらず、エラーステータス選択コマンド「05H」を
入力してエラーステータスを出力させており、エラーの
原因がヘッドアップ及びカッターエラーの双方が発生し
ていることをホスト装置で確認することができる。尚、
本実施の形態においては、前記エラーステータス選択コ
マンドとして「05H」を又、エラー出力コマンド「F
FH」を使用しているが、これに限られるものではな
く、種々に変更可能である。
Next, the above-described error signal output processing is shown in FIG.
This will be described with reference to the timing chart of FIG. In FIG.
TA is 8-bit input data input from the host device, and is 8-bit data DATA0 to DAT in FIG.
A7 is supported. Data "05H", "FFH"
Indicates an error status selection command and an error output command, respectively, indicating data carried on the data signal line, and a blank portion indicates that any data may be used. In FIG. 4, when the printing apparatus is in the error state, the error status is output by inputting the error status selection command “05H” despite the busy signal BUSY being HIGH. It can be confirmed by the host device that both the cutter error and the cutter error have occurred. still,
In the present embodiment, “05H” is used as the error status selection command and the error output command “F
Although “FH” is used, the present invention is not limited to this, and various changes can be made.

【0023】以上述べたように本実施の形態によれば、
データ信号線を介してホスト装置から入力される印刷デ
ータに応答してプリント用紙に印刷を行うと共に、前記
ホスト装置に対して、ビジー信号BUSYにより前記印
刷データ受付の可否を通知し、エラーの発生を検出して
エラー信号ERRORによりエラーを通知するプリント
装置において、前記ホスト装置からのエラー情報要求コ
マンドに応答して、予め定められた所定の順序で、複数
種のエラーの有無を通知するエラー情報出力手段を備え
て成ることを特徴としているので、エラー通知専用の信
号線を増やす必要がないため、簡単な構成で、そのエラ
ー内容を個別に通知することが可能になる。
As described above, according to the present embodiment,
In response to print data input from a host device via a data signal line, printing is performed on print paper, and the host device is notified of the acceptability of the print data by a busy signal BUSY, and an error occurs. In a printing apparatus which detects an error and notifies an error by an error signal ERROR, an error information for notifying presence or absence of a plurality of types of errors in a predetermined order in response to an error information request command from the host apparatus. Since it is characterized by comprising output means, it is not necessary to increase the number of signal lines dedicated to error notification, so that it is possible to individually notify the contents of the error with a simple configuration.

【0024】前記エラー情報要求コマンドは、エラー情
報の要求開始を通知するエラーステータス選択コマンド
及び前記エラーステータス選択コマンドに続いて入力さ
れエラーの有無の出力を要求する複数のエラー出力コマ
ンドにより構成され、CPU105は、前記エラーステ
ータス選択コマンドに続く複数のエラー出力コマンドに
応答して、前記所定の順序で、エラーの有無を順次通知
するように構成することができる。また、CPU105
は、前記データ信号線を介して入力される前記エラース
テータス選択コマンド「05H」に応答して、ビジー信
号BUSYを制御してコマンド受付可能であることを通
知するコマンド受付通知手段(ステップS203、S2
05)と、前記データ信号線を介して入力される複数の
前記エラー出力コマンド「FFH」に応答して対応する
エラーの有無を前記所定の順序で通知するエラー通知手
段(ステップS206〜S211)とを備えるように構
成することができる。
The error information request command comprises an error status selection command for notifying the start of a request for error information, and a plurality of error output commands which are input following the error status selection command and request output of presence / absence of an error. The CPU 105 may be configured to sequentially notify the presence or absence of an error in the predetermined order in response to a plurality of error output commands following the error status selection command. Also, the CPU 105
Responds to the error status selection command “05H” input via the data signal line, by controlling a busy signal BUSY to notify that a command can be received (steps S203 and S2).
05) and error notifying means (steps S206 to S211) for notifying the presence or absence of a corresponding error in the predetermined order in response to the plurality of error output commands "FFH" input via the data signal line. Can be provided.

【0025】さらに、エラー通知手段(ステップS20
6〜S211)は、エラー出力コマンド「FFH」に応
答してエラー信号を制御することにより、対応するエラ
ーを通知するように構成することができる。以上述べた
ように本実施の形態によれば、エラー内容の通知等を行
うためのインタフェース線を新たに設ける必要が無く、
簡単な構成でエラー内容を個別に通知することが可能に
なる。また、セントロニクス仕様等のエラー内容を個別
に通知する機能を有しないインタフェースを利用して、
エラー内容を個別にホスト装置に通知することが可能に
なる。
Further, error notifying means (step S20)
6 to S211) can be configured to notify the corresponding error by controlling the error signal in response to the error output command “FFH”. As described above, according to the present embodiment, there is no need to newly provide an interface line for notifying error contents and the like.
Error contents can be individually notified with a simple configuration. In addition, using an interface that does not have the function of individually notifying error details such as Centronics specifications,
Error contents can be individually notified to the host device.

【0026】[0026]

【発明の効果】本発明によれば、簡単な構成でエラー内
容を個別に通知することが可能なプリント装置を提供す
ることが可能になる。また、セントロニクス仕様等のエ
ラー内容を個別に通知する機能を有しないインタフェー
スを利用して、エラー内容を個別にホスト装置に通知す
ることが可能になる。
According to the present invention, it is possible to provide a printing apparatus capable of individually notifying error contents with a simple configuration. Further, it is possible to individually notify the host device of the error contents using an interface having no function of individually notifying the error contents such as the Centronics specification.

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

【図1】本発明の実施の形態に係るプリント装置のブロ
ック図である。
FIG. 1 is a block diagram of a printing apparatus according to an embodiment of the present invention.

【図2】本発明の実施の形態に係るプリント装置の処理
を示すフローチャートである。
FIG. 2 is a flowchart illustrating processing of the printing apparatus according to the embodiment of the present invention.

【図3】本発明の実施の形態に係るプリント装置の処理
を示すフローチャートである。
FIG. 3 is a flowchart illustrating a process of the printing apparatus according to the embodiment of the present invention.

【図4】本発明の実施の形態にかかるプリント装置のタ
イミング図である。
FIG. 4 is a timing chart of the printing apparatus according to the embodiment of the present invention.

【図5】従来のプリント装置のタイミング図である。FIG. 5 is a timing chart of a conventional printing apparatus.

【符号の説明】[Explanation of symbols]

101・・・エラー情報出力手段としてのCPU 103、104・・・フリップフロップ 101: CPU as error information output means 103, 104: flip-flop

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 データ信号線を介してホスト装置から入
力される印刷データに応答してプリント用紙に印刷を行
うと共に、前記ホスト装置に対して、ビジー信号により
前記印刷データ受付の可否を通知し、エラーの発生を検
出してエラー信号によりエラーの通知を行うプリント装
置において、 前記ホスト装置からのエラー情報要求コマンドに応答し
て、予め定められた所定の順序で、複数種のエラーの有
無を通知するエラー情報出力手段を備えて成ることを特
徴とするプリント装置。
1. A method for printing on print paper in response to print data input from a host device via a data signal line, and notifying the host device whether or not the print data can be accepted by a busy signal. In a printing apparatus that detects the occurrence of an error and notifies an error using an error signal, in response to an error information request command from the host apparatus, the presence or absence of a plurality of types of errors is determined in a predetermined order. A printing apparatus comprising error information output means for notifying.
【請求項2】 前記エラー情報要求コマンドは、エラー
情報の要求開始を通知するエラーステータス選択コマン
ド及び前記エラーステータス選択コマンドに続いて入力
されエラーの有無の出力を要求する複数のエラー出力コ
マンドにより構成され、前記エラー情報出力手段は、前
記エラーステータス選択コマンドに続く複数のエラー出
力コマンドに応答して、前記所定の順序で、エラーの有
無を順次通知することを特徴とする請求項1記載のプリ
ント装置。
2. The error information request command includes an error status selection command for notifying the start of a request for error information, and a plurality of error output commands that are input following the error status selection command and request output of presence / absence of an error. 2. The printing method according to claim 1, wherein the error information output unit sequentially notifies the presence or absence of an error in the predetermined order in response to a plurality of error output commands following the error status selection command. apparatus.
【請求項3】 前記エラー情報出力手段は、前記データ
信号線を介して入力される前記エラーステータス選択コ
マンドに応答して、ビジー信号を制御してコマンド受付
可能であることを通知するコマンド受付通知手段と、前
記データ信号線を介して入力される複数の前記エラー出
力コマンドに応答して対応するエラーの有無を前記所定
の順序で通知するエラー通知手段とを備えて成ることを
特徴とする請求項2記載のプリント装置。
3. An error information output means, in response to the error status selection command input via the data signal line, controls a busy signal to notify that a command can be received. Means for notifying the presence or absence of a corresponding error in the predetermined order in response to the plurality of error output commands input via the data signal line. Item 3. The printing apparatus according to Item 2.
【請求項4】 前記エラー通知手段は、前記エラー出力
コマンドに応答してエラー信号を制御することにより、
対応するエラーを通知することを特徴とする請求項3記
載のプリント装置。
4. The error notification means controls an error signal in response to the error output command,
4. The printing apparatus according to claim 3, wherein a corresponding error is notified.
JP10363230A 1998-12-21 1998-12-21 Printer Pending JP2000187577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10363230A JP2000187577A (en) 1998-12-21 1998-12-21 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10363230A JP2000187577A (en) 1998-12-21 1998-12-21 Printer

Publications (1)

Publication Number Publication Date
JP2000187577A true JP2000187577A (en) 2000-07-04

Family

ID=18478824

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10363230A Pending JP2000187577A (en) 1998-12-21 1998-12-21 Printer

Country Status (1)

Country Link
JP (1) JP2000187577A (en)

Similar Documents

Publication Publication Date Title
KR100456180B1 (en) A peripheral device and control method thereof
US5461701A (en) System and method for peripheral data transfer
EP1901177B1 (en) Data processing apparatus, external storage apparatus, data processing system and data transmitting method
EP0612007A2 (en) Parallel interface and data transfer system for printer using said interface
JP2001184177A (en) Option discrimination system
JP2007036424A (en) Electronic apparatus having electronic device for serial communication, and serial communication method
JPH1021176A (en) Method for recognizing two-way communication its device and storage medium
EP1096745B1 (en) Serial data transfer method in synchronism with a clock signal
JP2000187577A (en) Printer
JP5041527B2 (en) Data transfer apparatus, request generation apparatus, and request generation method
JPS60534A (en) Print controlling system
JP3846089B2 (en) Interface device, control method thereof, and information recording medium
JPH0973373A (en) Parallel interface
JP2002140140A (en) Device provided with interface
JPS62128643A (en) Data transmission system
JP2000155738A (en) Data processor
JP3250118B2 (en) Printing device data management method
JP3844024B2 (en) Printing device
JPH064229A (en) Information transmitting method by parallel interface
JP2000339118A (en) Print controller method and printer and recording medium recording print control program
JP2002073539A (en) Peripheral equipment for computer, and communication control method for the same
JP2002082843A (en) Circuit and method for controlling burst transfer
JPS62251826A (en) Recording device
JP2002014913A (en) Interface circuit and printer device
JPS63220345A (en) Input/output device

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040302