JPH06314178A - Sense information transfer control method - Google Patents

Sense information transfer control method

Info

Publication number
JPH06314178A
JPH06314178A JP5102638A JP10263893A JPH06314178A JP H06314178 A JPH06314178 A JP H06314178A JP 5102638 A JP5102638 A JP 5102638A JP 10263893 A JP10263893 A JP 10263893A JP H06314178 A JPH06314178 A JP H06314178A
Authority
JP
Japan
Prior art keywords
sense information
data
printer
test command
information
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
JP5102638A
Other languages
Japanese (ja)
Inventor
Ichiro Fujioka
一朗 藤岡
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP5102638A priority Critical patent/JPH06314178A/en
Publication of JPH06314178A publication Critical patent/JPH06314178A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 プリンタ装置の設定情報や固有情報,エラー
情報などから構成される多数のセンス情報の中から、必
要とする1個または複数個のセンス情報を1回のテスト
・コマンドの発行によって上位装置が吸い上げることが
出来るようにすること。 【構成】 図1(b) に示すように、テスト・コマンドの
パラメータ・データはnビット構成であり、各ビットは
センス情報に1対1に対応している。テスト・コマンド
を受信したプリンタ装置は、パラメータ・データのオン
のビットに対応するセンス情報を上位装置に送る。図1
(c) に示すように、テスト・コマンドのパラメータ・デ
ータでセンス情報の種類を指定するようにしても良い。
この場合には、テスト・コマンドを受信すると、プリン
タ装置はパラメータ・データで指定された種類に属する
全てのセンス情報を上位装置に送る。
(57) [Abstract] [Purpose] One or more necessary sense information is tested once from a large number of sense information composed of printer device setting information, unique information and error information. To allow a higher-level device to download by issuing a command. [Structure] As shown in FIG. 1 (b), the parameter data of the test command has an n-bit structure, and each bit has a one-to-one correspondence with sense information. Upon receiving the test command, the printer device sends sense information corresponding to the ON bit of the parameter data to the host device. Figure 1
As shown in (c), the type of sense information may be designated by the parameter data of the test command.
In this case, when the test command is received, the printer device sends all the sense information belonging to the type designated by the parameter data to the host device.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、上位装置が送出したテ
スト・コマンドをプリンタ装置が受信し、プリンタ装置
がテスト・コマンドのパラメータで指定されたセンス情
報を上位装置に送出するセンス情報転送制御方法の改良
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sense information transfer control in which a printer device receives a test command sent by a host device and the printer device sends the sense information designated by a parameter of the test command to the host device. It concerns the improvement of the method.

【0002】[0002]

【従来の技術】図6はプリンタ・システムの例を示す図
である。同図において、1はプリンタ機構部、2はプリ
ンタ・コントローラ、3はインタフェース・コントロー
ラ、4と5はホスト・コンピュータをそれぞれ示してい
る。インタフェース・コントローラ3は、ホスト・コン
ピュータ4とシリアル・インタフェースで接続されてお
り、ページ単位でデータを受信/編集/プリンタに合わ
せての1ライン分のデータ送信等を行う。
2. Description of the Related Art FIG. 6 is a diagram showing an example of a printer system. In the figure, 1 is a printer mechanism, 2 is a printer controller, 3 is an interface controller, and 4 and 5 are host computers, respectively. The interface controller 3 is connected to the host computer 4 via a serial interface and receives / edits data page by page / transmits data for one line in line with the printer.

【0003】プリンタ・コントローラ2は、プリンタ機
構部1を動作させるためのコントローラである。図示し
ないが、プリンタ・コントローラ2は、1個のプロセッ
サ,ROM,RAM等を有している。プリンタ・コント
ローラ2はインタフェース制御部を有している。このイ
ンタフェース制御部は、二つの口を有しており、上側の
口は双方向インタフェースを介してホスト・コンピュー
タ5と接続され、下側の口は双方向インタフェースを介
してインタフェース・コントローラ3と接続されてい
る。プリンタ・コントローラ2は、ホスト・コンピュー
タ5と通信を行うことも出来るし、インタフェース・コ
ントーラ3と通信を行うことも出来る。双方向インタフ
ェースは、1バイトのデータ線と、方向信号線DIR
(ディレクション信号線)と、データ・ストローブ信号
線DSTBと、応答信号線ACKと、変更方向信号線C
GDIR(チェンジ・ディレクション信号線)とから構
成されている。
The printer controller 2 is a controller for operating the printer mechanism section 1. Although not shown, the printer controller 2 has one processor, ROM, RAM and the like. The printer controller 2 has an interface control unit. This interface control unit has two ports, the upper port is connected to the host computer 5 via the bidirectional interface, and the lower port is connected to the interface controller 3 via the bidirectional interface. Has been done. The printer controller 2 can communicate with the host computer 5 and can communicate with the interface controller 3. The bidirectional interface has a 1-byte data line and a direction signal line DIR.
(Direction signal line), data strobe signal line DSTB, response signal line ACK, change direction signal line C
It is composed of GDIR (change direction signal line).

【0004】図7はテスト・コマンドの従来例を説明す
る図である。同図において、1B+59+P(1B,5
9は16進表示)は、コマンド・データを示しており、
1Bはコマンドであることを示すエスケープ・コード、
59はテスト・コマンドであることを示すコード、Pは
パラメータを示す。
FIG. 7 is a diagram for explaining a conventional example of a test command. In the figure, 1B + 59 + P (1B, 5
9 indicates hexadecimal) indicates command data,
1B is an escape code indicating that it is a command,
Reference numeral 59 indicates a code indicating a test command, and P indicates a parameter.

【0005】ホスト側はプリンタ側のセンス情報を収集
する場合、先ず方向信号DIRを1にする。センス情報
としては、プリンタ装置の設定情報や固有情報,エラー
情報,メカ状態情報などがある。固有情報とは、装置側
でサポートする機能に関する情報であり、例えばカラー
・リボン搭載状態,読取り機能の有無などがある。設定
情報とは、装置単体のオフライン機能で設定れる情報で
あり、例えば高複写モード,ANK書体の切替などがあ
る。なお、ホスト側とは、ホスト・コンピュータやイン
タフェース・コントローラを含む概念である。次に、ホ
スト側は、コマンド・データの最初の1バイトをデータ
線に乗せ、データ・ストローブ信号DSTBをオンす
る。プリンタ側は、データ・ストローブ信号DSTBが
オンすると、データ線上のデータを取り込み、応答信号
ACKをオンする。以下、同様な動作が繰り返される。
全てのコマンド・データの送出が終了すると、ホスト側
は方向信号DIRを0にする。
When collecting sense information on the printer side, the host side first sets the direction signal DIR to 1. The sense information includes printer device setting information, unique information, error information, and mechanical status information. The unique information is information on the functions supported by the apparatus, such as the mounted state of the color ribbon and the presence / absence of the reading function. The setting information is information that is set by the offline function of the device itself, and includes, for example, a high copy mode and ANK typeface switching. The host side is a concept including a host computer and an interface controller. Next, the host side puts the first 1 byte of command data on the data line and turns on the data strobe signal DSTB. When the data strobe signal DSTB is turned on, the printer takes in the data on the data line and turns on the response signal ACK. Hereinafter, the same operation is repeated.
When the transmission of all command data is completed, the host sets the direction signal DIR to 0.

【0006】プリンタ側は、コマンド・データを受け取
ると、コマンド・データを解析し、テスト・コマンドで
あることが判ると、そのパラメータで指定されたセンス
情報(1個のセンス情報は1バイト)を作成する。セン
ス情報の作成が終了すると、プリンタ側は変更方向信号
CGDIRを1にする。図示の例では、テスト・コマン
ドのパラメータPは、3番目のセンス情報を指定してい
る。ホスト側は、変更方向信号CGDIRが1になる
と、データ・ストローブ信号DSTBをオンにする。プ
リンタ側は、データ・ストローブ信号DSTBがオンす
ると、テスト・コマンドのパラメータPで指定されたセ
ンス情報をデータ線に乗せ、応答信号ACKをオンし、
その後に変更方向信号CGDIRを0にする。ホスト側
は、応答信号ACKがオンすると、データ線上のデータ
を取り込む。
When the printer receives the command data, it analyzes the command data, and when it is found that the command is a test command, it senses the sense information (one sense information is 1 byte) designated by the parameter. create. When the creation of the sense information is completed, the printer sets the change direction signal CGDIR to 1. In the illustrated example, the parameter P of the test command specifies the third sense information. When the change direction signal CGDIR becomes 1, the host side turns on the data strobe signal DSTB. When the data strobe signal DSTB is turned on, the printer side puts the sense information specified by the parameter P of the test command on the data line and turns on the response signal ACK,
After that, the change direction signal CGDIR is set to 0. When the response signal ACK turns on, the host side takes in the data on the data line.

【0007】図8はテスト・コマンドの他の従来例を示
す図である。同図において、1B+59+00(1B,
59,00は16進表示)は、コマンド・データを示し
ており、1Bはコマンドであることを示すコード、59
はテスト・コマンドであることを示すコード、00は全
てのセンス情報を指定するパラメータ値を示す。
FIG. 8 is a diagram showing another conventional example of the test command. In the figure, 1B + 59 + 00 (1B,
(59,00 is a hexadecimal display) indicates command data, 1B is a code indicating a command, 59
Indicates a code indicating a test command, and 00 indicates a parameter value designating all sense information.

【0008】ホスト側はプリンタ側のセンス情報を収集
する場合、先ず方向信号DIRを1にする。次に、ホス
ト側は、コマンド・データの最初の1バイトをデータ線
に乗せ、データ・ストローブ信号DSTBをオンする。
プリンタ側は、データ・ストローブ信号DSTBがオン
すると、データ線上のデータを取り込み、応答信号AC
Kをホスト側へ送出する。以下、同様な動作が繰り返さ
れ、全てのコマンド・データを送出し終わると、ホスト
側は方向信号DIRを0にする。
When collecting sense information from the printer, the host first sets the direction signal DIR to 1. Next, the host side puts the first 1 byte of command data on the data line and turns on the data strobe signal DSTB.
When the data strobe signal DSTB is turned on, the printer takes in the data on the data line and outputs the response signal AC.
K is sent to the host side. After that, the same operation is repeated, and when the transmission of all command data is completed, the host sets the direction signal DIR to 0.

【0009】プリンタ側は、コマンド・データを受け取
ると、コマンド・データを解析し、テスト・コマンドで
あることが判ると、そのパラメータで指定されたセンス
情報を作成する。センス情報の作成が終了すると、プリ
ンタ側は変更方向信号CGDIRを1にする。ホスト側
は、変更方向信号CGDIRが1になると、データ・ス
トローブ信号DSTBをオンにする。
Upon receiving the command data, the printer side analyzes the command data, and when it is found that the command is a test command, creates the sense information designated by the parameter. When the creation of the sense information is completed, the printer sets the change direction signal CGDIR to 1. When the change direction signal CGDIR becomes 1, the host side turns on the data strobe signal DSTB.

【0010】プリンタ側は、データ・ストローブ信号D
STBがオンすると、ホスト側に送るべきセンス情報の
うちの最初のセンス情報をデータ線に乗せ、応答信号A
CKをオンする。ホスト側はACK信号がオンすると、
データ線上のデータを取り込み、データ・ストローブ信
号DSTBをオンする。以下、同様な動作が繰り返され
る。プリンタ側は、最後のセンス情報をデータ線にの
せ、応答信号ACKをオンした後、変更方向信号CGD
IRを0にする。
On the printer side, the data strobe signal D
When the STB is turned on, the first sense information of the sense information to be sent to the host side is placed on the data line, and the response signal A
Turn on CK. When the ACK signal turns on on the host side,
The data on the data line is taken in and the data strobe signal DSTB is turned on. Hereinafter, the same operation is repeated. The printer puts the last sense information on the data line, turns on the response signal ACK, and then changes direction signal CGD.
Set IR to 0.

【0011】[0011]

【発明が解決しようとする課題】図7の従来例において
は、ホスト側がテスト・コマンドを発行すると、プリン
タ側が1個のセンス情報を送り返しており、ホスト側が
N個のセンス情報を得ようとすると、ホスト側からテス
ト・コマンドをN回発行する必要があり、必要なN個の
センス情報をプリンタ側から吸い上げるのに時間がかか
り、その結果、高速で動作させるプリンタ装置ではイン
タフェース処理時間が長いため、装置(メカ)性能を実
現できなくなってしまうと言う問題点が発生していた。
In the conventional example of FIG. 7, when the host side issues a test command, the printer side sends back one piece of sense information, and the host side tries to obtain N pieces of sense information. , It is necessary to issue the test command N times from the host side, and it takes time to absorb the necessary N pieces of sense information from the printer side. As a result, the interface processing time is long in the printer device operating at high speed. However, there is a problem that the device (mechanical) performance cannot be realized.

【0012】図8の従来例においては、ホスト側がテス
ト・コマンドを発行すると、プリンタ側がM個のセンス
情報を返している。M個のセンス情報の中にはホスト側
が必要としないセンス情報も含まれており、インタフェ
ース上の転送バイト数が多いため処理時間が長くなり、
その結果、図7の従来例と同様に、高速で動作させるプ
リンタ装置ではインタフェース処理時間が長いため、装
置性能を実現できなくなってしまうと言う問題点が発生
していた。
In the conventional example of FIG. 8, when the host side issues a test command, the printer side returns M pieces of sense information. The M pieces of sense information also include sense information that the host side does not need, and the number of transfer bytes on the interface is large, resulting in a long processing time.
As a result, similarly to the conventional example shown in FIG. 7, a printer device operated at high speed has a long interface processing time, which causes a problem that the device performance cannot be realized.

【0013】上述の問題点が生ずる理由について説明す
る。ホスト側からデータを受信/送信する場合のインタ
フェース制御処理として、プリンタ側では一般的にコン
トローラをシンプル且つ高速に受信を行うために、1個
のCPUに1バイト毎に割込み(DSTB割込み)を入
れて受信/送信処理を行う。しかし、受信/送信するデ
ータ量が増えると、メイン処理である1ライン文の文字
編集,メカ制御(割込み起動処理)及びオペパネ制御な
どを実行する処理時間がのびるため、その結果、メカ性
能を維持できなくなる。すなわち、1ライン文を印刷す
る時間内に、次のラインの文字編集が終了しなくなる。
The reason why the above problems occur will be described. As an interface control process when receiving / transmitting data from the host side, the printer side generally inserts an interrupt (DSTB interrupt) for each byte into one CPU in order to simply and quickly receive the controller. Reception / transmission processing. However, if the amount of data to be received / transmitted increases, the processing time for executing the main processing such as character editing of 1-line sentence, mechanical control (interrupt activation processing) and operation panel control will increase, and as a result, mechanical performance will be maintained become unable. That is, the character editing of the next line is not completed within the time for printing one line sentence.

【0014】本発明は、この点に鑑みて創作されたもの
であって、プリンタ装置の設定情報や固有情報,エラー
情報,メカ状態情報などから構成される多数のセンス情
報の中から、必要とする1個または複数個のセンス情報
を1回のテスト・コマンドの発行によって上位装置が吸
い上げることが出来るセンス情報転送制御方法を提供す
ることを目的としている。
The present invention was created in view of this point, and is required from among a large number of sense information including setting information of printer, unique information, error information, mechanical state information and the like. An object of the present invention is to provide a sense information transfer control method in which a higher-level device can absorb one or more pieces of sense information to be executed by issuing a test command once.

【0015】[0015]

【課題を解決するための手段】図1は本発明の原理説明
図である。本発明の請求項1のセンス情報転送制御方法
は、上位装置が、センス情報を示すnビットのパラメー
タ・データを含むテスト・コマンドをプリンタ装置に送
出し、プリンタ装置が、テスト・コマンドを受信し、テ
スト・コマンドのnビットのパラメータ・データの各ビ
ットをセンス情報に対応させ、オンのビットに対応する
センス情報を上位装置に送出することを特徴とするもの
である。
FIG. 1 is a diagram for explaining the principle of the present invention. In the sense information transfer control method according to claim 1 of the present invention, the host device sends a test command including n-bit parameter data indicating the sense information to the printer device, and the printer device receives the test command. , Each bit of the n-bit parameter data of the test command is made to correspond to the sense information, and the sense information corresponding to the ON bit is sent to the host device.

【0016】請求項2のセンス情報転送制御方法は、上
位装置が、センス情報の種類を示すパラメータ・データ
を含むテスト・コマンドをプリンタ装置に送出し、プリ
ンタ装置が、テスト・コマンドを受信し、テスト・コマ
ンドのパラメータ・データの値によって特定される種類
のセンス情報を上位装置に送出することを特徴とするも
のである。
According to another aspect of the sense information transfer control method of the present invention, the host device sends a test command including parameter data indicating the type of sense information to the printer device, and the printer device receives the test command. It is characterized in that the sense information of the type specified by the value of the parameter data of the test command is sent to the host device.

【0017】[0017]

【作用】請求項1のセンス情報転送制御方法の作用につ
いて説明する。図1(b) に示すように、テスト・コマン
ドのパラメータ・データが8ビット構成であり、その内
のビット1,ビット2,ビット8がオンであると仮定す
る。このようなパラメータ・データを持つテスト・コマ
ンドを受信すると、プリンタ装置は第1番目のセンス情
報,第2番目のセンス情報および第8番目のセンス情報
を上位装置へ転送する。
The operation of the sense information transfer control method according to claim 1 will be described. As shown in FIG. 1 (b), it is assumed that the parameter data of the test command has an 8-bit structure, of which bit 1, bit 2, and bit 8 are on. Upon receiving the test command having such parameter data, the printer device transfers the first sense information, the second sense information and the eighth sense information to the host device.

【0018】請求項2のセンス情報転送制御方法の作用
について説明する。図1(c) に示すように、センス情報
の種類としてはエラー情報,設定情報,メカ状態情報な
どがあり、テスト・コマンドのパラメータ・データの値
が2であると仮定する。このようなテスト・コマンドを
受信すると、プリンタ装置は設定情報に属する全てのセ
ンス情報を上位装置へ転送する。
The operation of the sense information transfer control method of claim 2 will be described. As shown in FIG. 1 (c), it is assumed that the types of sense information include error information, setting information, mechanical state information, etc., and the parameter data value of the test command is 2. Upon receiving such a test command, the printer device transfers all the sense information belonging to the setting information to the host device.

【0019】[0019]

【実施例】図2および図3は本発明の第1実施例を説明
する図である。同図において、1B+59+P1 +P2
〜Pm (1B,59は16進表示)は、コマンド・デー
タを示しており、1Bはコマンドであることを示すコー
ド、59はテスト・コマンドであることを示すコード、
1 +P2 〜Pm はパラメータを示す。
2 and 3 are diagrams for explaining a first embodiment of the present invention. In the figure, 1B + 59 + P 1 + P 2
˜P m (1B, 59 is hexadecimal notation) indicates command data, 1B is a code indicating a command, 59 is a code indicating a test command,
P 1 + P 2 to P m indicate parameters.

【0020】図3を参照してテスト・コマンドのパラメ
ータ・データについて説明する。パラメータ・データは
nビット構成である。但し、nは8のm倍(mは整数)
である。パラメータ・データの第1番目のビットは第1
番目のセンス情報に対応しており、第2番目のビットは
第2番目のセンス情報に対応しており、第i番目のビッ
トは第i番目のセンス情報に対応しており、第n番目の
ビットは第n番目のセンス情報に対応している。1のビ
ットは、対応するセンス情報をホスト側に転送すべきこ
とを示している。
Parameter data of the test command will be described with reference to FIG. The parameter data has an n-bit structure. However, n is m times 8 (m is an integer)
Is. The first bit of the parameter data is the first
Corresponds to the second sense information, the second bit corresponds to the second sense information, the i-th bit corresponds to the i-th sense information, and the n-th sense information. The bit corresponds to the nth sense information. The 1 bit indicates that the corresponding sense information should be transferred to the host side.

【0021】ホスト側とプリンタ側を結ぶ双方向インタ
フェースのデータ線は1バイトであるので、nビットの
パラメータ・データは1バイト毎に分割され、1バイト
ずつホスト側に送られる。nビットのパラメータ・デー
タを1バイト毎に分割した場合における第1番目のバイ
ト単位がP1 とされ、第2番目のバイト単位がP2 とさ
れ、第m番目のバイト単位はPm とされている。
Since the data line of the bidirectional interface connecting the host side and the printer side is 1 byte, the n-bit parameter data is divided into 1 byte and sent 1 byte to the host side. When the n-bit parameter data is divided into 1-byte units, the first byte unit is P 1 , the second byte unit is P 2, and the m-th byte unit is P m. ing.

【0022】図3のパラメータ・データは、第1番目の
センス情報,第3番目のセンス情報,第9番目のセンス
情報,第10番目のセンス情報,…,第n−8番目のセ
ンス情報,第n−6番目のセンス情報,第n番目のセン
ス情報をホスト側に送るべきことを示している。図3の
例では、パラメータ・データの第1バイトP1 は$A0
($は16進数であることを示す)なる値を持ち、第m
バイトPm は$41なる値を持つ。
The parameter data of FIG. 3 includes the first sense information, the third sense information, the ninth sense information, the tenth sense information, ..., The n-8th sense information, It indicates that the n-6th sense information and the nth sense information should be sent to the host side. In the example of FIG. 3, the first byte P 1 of the parameter data is $ A0
($ Indicates a hexadecimal number), and the m-th
The byte P m has a value of $ 41.

【0023】図2を参照して本発明のセンス情報転送処
理の第1実施例を説明する。ホスト側はプリンタ側のセ
ンス情報を収集する場合、先ず方向信号DIRを1に
し、データ送信モードに切り替える。次に、ホスト側
は、コマンド・データの最初の1バイトをデータ線に乗
せ、データ・ストローブ信号DSTBをオンする。応答
信号ACKがオンになると、ホスト側は次の1バイトを
データ線に乗せ、データ・ストローブ信号DSTBをオ
ンする。以下、同様な動作を繰り返し、コマンド・デー
タの送信が終了すると、方向信号DIRを0にする。
A first embodiment of the sense information transfer processing of the present invention will be described with reference to FIG. When collecting sense information on the printer side, the host side first sets the direction signal DIR to 1 and switches to the data transmission mode. Next, the host side puts the first 1 byte of command data on the data line and turns on the data strobe signal DSTB. When the response signal ACK is turned on, the host side puts the next 1 byte on the data line and turns on the data strobe signal DSTB. Thereafter, the same operation is repeated, and when the transmission of the command data is completed, the direction signal DIR is set to 0.

【0024】変更方向信号CGDIRが1になると、ホ
スト側はデータ受信モードになり、データ・ストローブ
信号DSTBをオンし、応答信号ACKがオンすると、
データ線上のデータを取り込む。データを取り込んだ
後、データ・ストローブ信号DSTBをオンし、応答信
号ACKがオンになると、データ線上のデータを取り込
む。以下、同様な動作を繰り返す。
When the change direction signal CGDIR becomes 1, the host side enters the data receiving mode, the data strobe signal DSTB is turned on, and the response signal ACK is turned on.
Capture the data on the data line. After capturing the data, when the data strobe signal DSTB is turned on and the response signal ACK is turned on, the data on the data line is captured. Hereinafter, the same operation is repeated.

【0025】プリンタ側は、方向信号DIRが1になる
とデータ受信モードになり、データ・ストローブ信号D
STBがオンすると、データ線上のデータを取り込み、
応答信号ACKをオンする。以下、同様な動作を繰り返
す。方向信号DIRが0になると、プリンタ側は取り込
んだデータを解析し、データがテスト・コマンドである
ことを認識すると、テスト・コマンドのパラメータ・デ
ータで指定されるセンス情報を作成する。
When the direction signal DIR becomes 1, the printer side enters the data reception mode, and the data strobe signal D
When STB is turned on, the data on the data line is taken in,
The response signal ACK is turned on. Hereinafter, the same operation is repeated. When the direction signal DIR becomes 0, the printer side analyzes the fetched data, and when it recognizes that the data is a test command, it creates the sense information designated by the parameter data of the test command.

【0026】プリンタ側は、ホスト側に送るべきセンス
情報を作成した後、変更方向信号CGDIRを1にし、
データ送信モードに切り替わる。方向変更信号CGDI
Rを1にした後の最初のデータ・ストローブ信号DST
Bを受信すると、プリンタ側は作成したセンス情報の中
の最初の1バイトをデータ線に乗せ、応答信号ACKを
オンする。以下、同様な動作を繰り返す。作成したセン
ス情報の全てを送出し終わると、プリンタ側は変更方向
信号CGDIRを0にする。
The printer side sets the change direction signal CGDIR to 1 after creating the sense information to be sent to the host side,
Switch to data transmission mode. Direction change signal CGDI
First data strobe signal DST after R is set to 1.
Upon receiving B, the printer puts the first 1 byte in the created sense information on the data line and turns on the response signal ACK. Hereinafter, the same operation is repeated. When all the generated sense information has been transmitted, the printer sets the change direction signal CGDIR to 0.

【0027】図4および図5は本発明の第2実施例を説
明する図である。同図において、1B+59+P(1
B,59は16進表示)は、コマンド・データを示して
おり、1Bはコマンドであることを示すコード、59は
テスト・コマンドであることを示すコード、Pはセンス
情報の種類を指定するパラメータ・データである。
4 and 5 are views for explaining the second embodiment of the present invention. In the figure, 1B + 59 + P (1
(B and 59 are hexadecimal notations) indicate command data, 1B is a code indicating a command, 59 is a code indicating a test command, and P is a parameter for specifying the type of sense information. -It is data.

【0028】プリンタ装置のセンス情報を吸い上げたい
場合、ホスト側は方向信号DIRを1にし、コマンド・
データの最初の1バイトをデータ線に乗せ、データ・ス
トローブ信号DSTBをオンする。データ・ストローブ
信号DSTBがオンすると、プリンタ側はデータ線上の
データを取り込み、応答信号ACKをオンする。以下、
同様な動作が行われる。ホスト側は、全てのデータを送
出し終わると、方向信号DIRを0にする。
When it is desired to absorb the sense information of the printer device, the host side sets the direction signal DIR to 1 and
The first 1 byte of data is placed on the data line and the data strobe signal DSTB is turned on. When the data strobe signal DSTB is turned on, the printer side takes in the data on the data line and turns on the response signal ACK. Less than,
Similar operations are performed. The host side sets the direction signal DIR to 0 after sending all the data.

【0029】プリンタ側は、方向信号DIRが0になる
と、取り込んだデータを解析し、テスト・コマンドであ
ることを認識すると、パラメータ・データPで指定され
る種類のセンス情報を作成する。図4の例では、パラメ
ータ・データPの値は2となっている。図5はセンス情
報の種類の例を示しており、センス情報の種類としては
エラー情報,設定情報,メカ状態情報などがある。P=
2は設定情報を示す。したがって、P=2の場合には、
プリンタ側は設定情報に属する第1番目ないし第16番
目のセンス情報を作成する。
When the direction signal DIR becomes 0, the printer side analyzes the fetched data, and when it recognizes that it is a test command, it creates sense information of the type designated by the parameter data P. In the example of FIG. 4, the value of the parameter data P is 2. FIG. 5 shows an example of the types of sense information. The types of sense information include error information, setting information, mechanical state information, and the like. P =
2 indicates setting information. Therefore, when P = 2,
The printer side creates the 1st to 16th sense information belonging to the setting information.

【0030】ホスト側に送るべきセンス情報を作成した
後、プリンタ側は変更方向信号CGDIRを1にし、デ
ータ・ストローブ信号DSTBがオンすると、作成した
センス情報の中の先頭のセンス情報をデータ線に乗せ、
応答信号ACKをオンする。データ・ストローブ信号D
STBが再びオンすると、プリンタ側は第2番目のセン
ス情報をデータ線に乗せ、応答信号ACKをオンする。
以下、同様な動作が繰り返される。全てのセンス情報を
送出し終わると、プリンタ側は変更方向信号CGDIR
を0にする。
After the sense information to be sent to the host side is created, the printer side sets the change direction signal CGDIR to 1 and the data strobe signal DSTB is turned on. Ride
The response signal ACK is turned on. Data strobe signal D
When the STB is turned on again, the printer puts the second sense information on the data line and turns on the response signal ACK.
Hereinafter, the same operation is repeated. After sending all sense information, the printer side changes direction signal CGDIR
To 0.

【0031】[0031]

【発明の効果】以上の説明から明らかなように、本発明
によれば、必要とする1個または複数個のセンス情報を
1回のテスト・コマンドの送出によって上位装置が吸い
上げることが出来るので、センス情報の取得に要するイ
ンタフェース処理時間を短くすることが出来る。本発明
によれば、センス情報の取得に要するインタフェース処
理時間を短くできるので、高速動作可能なプリンタ装置
の性能を十分に発揮させることが可能になる。
As is apparent from the above description, according to the present invention, one or a plurality of necessary sense information can be taken up by the host device by sending the test command once. The interface processing time required to acquire the sense information can be shortened. According to the present invention, the interface processing time required to acquire the sense information can be shortened, so that the performance of the printer device capable of high-speed operation can be sufficiently exhibited.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の第1実施例を説明する図である。FIG. 2 is a diagram illustrating a first embodiment of the present invention.

【図3】本発明の第1実施例(続き)を説明する図であ
る。
FIG. 3 is a diagram illustrating a first embodiment (continued) of the present invention.

【図4】本発明の第2実施例を説明する図である。FIG. 4 is a diagram illustrating a second embodiment of the present invention.

【図5】本発明の第2実施例(続き)を説明する図であ
る。
FIG. 5 is a diagram illustrating a second embodiment (continuation) of the present invention.

【図6】プリンタ・システムの例を示す図である。FIG. 6 is a diagram illustrating an example of a printer system.

【図7】テスト・コマンドの従来例を説明する図であ
る。
FIG. 7 is a diagram illustrating a conventional example of a test command.

【図8】テスト・コマンドの他の従来例を説明する図で
ある。
FIG. 8 is a diagram illustrating another conventional example of a test command.

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

1 プリンタ機構部 2 プリンタ・コントローラ 3 インタフェース・コントローラ 4 ホスト・コンピュータ 5 ホスト・コンピュータ 1 Printer Mechanism 2 Printer Controller 3 Interface Controller 4 Host Computer 5 Host Computer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 上位装置が、センス情報を示すnビット
のパラメータ・データを含むテスト・コマンドをプリン
タ装置に送出し、 プリンタ装置が、テスト・コマンドを受信し、テスト・
コマンドのnビットのパラメータ・データの各ビットを
センス情報に対応させ、オンのビットに対応するセンス
情報を上位装置に送出することを特徴とするセンス情報
転送制御方法。
1. A host device sends a test command including n-bit parameter data indicating sense information to a printer device, and the printer device receives the test command and performs a test command.
A sense information transfer control method, wherein each bit of n-bit parameter data of a command is associated with sense information, and sense information corresponding to an ON bit is sent to a higher-level device.
【請求項2】 上位装置が、センス情報の種類を示すパ
ラメータ・データを含むテスト・コマンドをプリンタ装
置に送出し、 プリンタ装置が、テスト・コマンドを受信し、テスト・
コマンドのパラメータ・データの値によって特定される
種類のセンス情報を上位装置に送出することを特徴とす
るセンス情報転送制御方法。
2. The host device sends a test command including parameter data indicating the type of sense information to the printer device, and the printer device receives the test command and executes the test command.
A sense information transfer control method characterized in that sense information of a type specified by a value of parameter data of a command is sent to a host device.
JP5102638A 1993-04-28 1993-04-28 Sense information transfer control method Pending JPH06314178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5102638A JPH06314178A (en) 1993-04-28 1993-04-28 Sense information transfer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5102638A JPH06314178A (en) 1993-04-28 1993-04-28 Sense information transfer control method

Publications (1)

Publication Number Publication Date
JPH06314178A true JPH06314178A (en) 1994-11-08

Family

ID=14332789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5102638A Pending JPH06314178A (en) 1993-04-28 1993-04-28 Sense information transfer control method

Country Status (1)

Country Link
JP (1) JPH06314178A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02166511A (en) * 1988-12-21 1990-06-27 Hitachi Ltd Printing system
JPH02236615A (en) * 1988-11-08 1990-09-19 Ricoh Co Ltd Image forming system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02236615A (en) * 1988-11-08 1990-09-19 Ricoh Co Ltd Image forming system
JPH02166511A (en) * 1988-12-21 1990-06-27 Hitachi Ltd Printing system

Similar Documents

Publication Publication Date Title
JPS6150328B2 (en)
JPH0145656B2 (en)
EP0077892B1 (en) Word processing system having a formatting bidirectional printer
JPH06314178A (en) Sense information transfer control method
JPS63145048A (en) Printing apparatus
JPS6238930A (en) Printing controller
KR0125481B1 (en) The method of reprinting the final page data in image shaping apparatus
EP0577410B1 (en) Output apparatus and method with adjustable connection feature
JPH01150568A (en) Printer device
JPS59201870A (en) Printer
JP2756269B2 (en) Printer device
JP2758832B2 (en) Printing control device
JP2565163B2 (en) Peripheral equipment
JP3150396B2 (en) Printer control method
JPH01103466A (en) Control in page-type printer device
JP3332432B2 (en) Data communication method and print control device
JP2565477B2 (en) Display system
JPS5926440Y2 (en) Print head movement control device
JPS62221546A (en) Printing speed control system
JPH03180378A (en) printer controller
JPH0361562A (en) Printer
JPH04268910A (en) Keyboard control device
JPH04271474A (en) System for forming image
JPH04125177A (en) Printer setting apparatus
JPH0720969A (en) On-line data input and output switching device utilizing personal computer