JPH09314929A - Printing device, printing method, printing system, information processing device, and storage medium - Google Patents
Printing device, printing method, printing system, information processing device, and storage mediumInfo
- Publication number
- JPH09314929A JPH09314929A JP8160940A JP16094096A JPH09314929A JP H09314929 A JPH09314929 A JP H09314929A JP 8160940 A JP8160940 A JP 8160940A JP 16094096 A JP16094096 A JP 16094096A JP H09314929 A JPH09314929 A JP H09314929A
- Authority
- JP
- Japan
- Prior art keywords
- data
- print data
- information processing
- response
- printing
- 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
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Abstract
(57)【要約】 (修正有)
【課題】 解析するデータ量に比べて処理時間が多くか
かると予測される処理を行っている場合、停止させるこ
となく印刷処理を継続できる印刷装置。
【解決手段】 ホストコンピュータ102に接続された
印刷装置101に対して、操作者はセットアップメニュ
ーの「コピー枚数」を値1に設定し、セットアップメニ
ューの「ACK遅延」を「する」に設定する。ホストコ
ンピュータ102からセントロニクスI/F103を介
して印刷装置101に印刷データが送られてくるイベン
トが発生した場合、印刷装置101ではその印刷データ
をデータ入力手段104で受信する。データ入力手段1
04はホストコンピュータ102から送られてくる印刷
データをSTROBE信号の立ち下がりで取り込み、B
USY信号を立ち上げる。受信バッファ105に次の印
刷データを受信する空き容量があるかどうか調べる。
(57) [Summary] (Correction) [PROBLEMS] A printing apparatus capable of continuing printing processing without stopping when processing which is predicted to take a longer processing time than the amount of data to be analyzed. SOLUTION: For a printing apparatus 101 connected to a host computer 102, an operator sets "copy number" of the setup menu to a value of 1 and "ACK delay" of the setup menu to "execute". When an event occurs in which print data is sent from the host computer 102 to the printing apparatus 101 via the Centronics I / F 103, the printing apparatus 101 receives the print data at the data input unit 104. Data input means 1
Reference numeral 04 represents the print data sent from the host computer 102 at the trailing edge of the STROBE signal, and B
Raise USY signal. It is checked whether or not the receiving buffer 105 has a free space for receiving the next print data.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、情報処理装置から
送られてくる複数の制御命令から構成される印刷用のデ
ータ(以下、印刷データという)を解析して印刷する印
刷装置、印刷方法および印刷システムに関する。また、
印刷データを送信する情報処理装置および印刷装置を制
御するプログラムが格納された記憶媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing device, a printing method and a printing method for analyzing and printing printing data (hereinafter referred to as printing data) composed of a plurality of control commands sent from an information processing device. Regarding printing system. Also,
The present invention relates to an information processing apparatus that transmits print data and a storage medium that stores a program that controls the printing apparatus.
【0002】[0002]
【従来の技術】図14は従来の印刷装置の構成を示すブ
ロック図である。図において、1001は印刷装置であ
る。1002は印刷装置1001に印刷データを送るホ
ストコンピュータである。1003はホストコンピュー
タ1002と印刷装置1001を接続するセントロニク
スインタフェース(I/F)である。2. Description of the Related Art FIG. 14 is a block diagram showing the structure of a conventional printing apparatus. In the figure, 1001 is a printing apparatus. A host computer 1002 sends print data to the printing apparatus 1001. A Centronics interface (I / F) 1003 connects the host computer 1002 and the printing apparatus 1001.
【0003】1004はセントロニクスI/F1003
を介してホストコンピュータ1002から送られてきた
データを受信するためのハンドシェイクを行うデータ入
力手段である。データ入力手段1004はセントロニク
スI/F1003からデータを1バイト受信する毎にデ
ータ受信の応答を表すACK信号をホストコンピュータ
1002に返す。1004 is Centronics I / F 1003
It is a data input means for performing a handshake for receiving the data sent from the host computer 1002 via the. The data input unit 1004 returns an ACK signal indicating a data reception response to the host computer 1002 every time one byte of data is received from the Centronics I / F 1003.
【0004】1005はデータ入力手段1004で受信
したデータを蓄積する受信バッファである。1006は
受信バッファ1005に蓄積されている印刷データ解析
して印刷用紙に描画する描画データを作成する翻訳手段
である。1007は翻訳手段1006から送られてきた
描画データをページ単位でバッファリングし、ページ毎
の描画データをビデオ信号に変換し、そのビデオ信号を
エンジン部1010に送るページ制御部である。Reference numeral 1005 is a reception buffer for accumulating the data received by the data input means 1004. Reference numeral 1006 is a translation unit that analyzes the print data accumulated in the reception buffer 1005 and creates drawing data to be drawn on a print sheet. A page control unit 1007 buffers the drawing data sent from the translating unit 1006 in page units, converts the drawing data for each page into a video signal, and sends the video signal to the engine unit 1010.
【0005】1008は翻訳手段1006から送られて
きた描画データを複数ページ分キューイングすることが
可能なページ制御部1007内にあるページバッファで
ある。1009は印刷用紙を蓄積する用紙カセットであ
る。1010はページ制御部1007から送られてきた
ビデオ信号の画像を印刷用紙に転写して出力するエンジ
ン部である。Reference numeral 1008 denotes a page buffer in the page control unit 1007 capable of queuing a plurality of pages of drawing data sent from the translating means 1006. A paper cassette 1009 stores print paper. An engine unit 1010 transfers the image of the video signal sent from the page control unit 1007 onto a printing sheet and outputs the image.
【0006】1111はデータ入力手段1004からホ
ストコンピュータ1002に返されるACK信号を制御
する制御手段であり、CPU1111aおよびメモリ1
111bを有する。ROMからなるメモリ1111bに
は、CPU1111aによって実行される後述する図1
5のフローチャートに示すプログラムが格納されてい
る。Reference numeral 1111 is a control means for controlling the ACK signal returned from the data input means 1004 to the host computer 1002, and includes a CPU 1111a and a memory 1.
111b. The memory 1111b, which is a ROM, has a configuration shown in FIG.
The program shown in the flowchart of FIG.
【0007】ここでは、印刷装置1001から所定時間
(例えば、3秒)ACK信号が返って来ない場合、ホス
トコンピュータ1002のCRTにデータの再送表示を
指示するアプリケーションが使用されている。また、操
作者は印刷装置1001のセットアップメニューの「コ
ピー枚数」を値1に設定する。図15は従来の印刷装置
の印刷データ取り込み処理手順を示すフローチャートで
ある。同図(A)に示すように、ホストコンピュータ1
002からセントロニクスI/F1003を介して印刷
装置1001に印刷データが送られてくるイベントが発
生したか否かを判別し(ステップS1101)、イベン
トが発生すると印刷装置1001では印刷データをデー
タ入力手段1004で受信する。Here, an application for instructing the CRT of the host computer 1002 to retransmit the data when the ACK signal is not returned from the printing apparatus 1001 for a predetermined time (for example, 3 seconds) is used. Further, the operator sets “1” for the “number of copies” in the setup menu of the printing apparatus 1001. FIG. 15 is a flowchart showing a print data fetching processing procedure of a conventional printing apparatus. As shown in FIG.
It is determined whether or not an event has occurred in which print data is sent from 002 to the printing apparatus 1001 via the Centronics I / F 1003 (step S1101). When the event occurs, the printing apparatus 1001 outputs the print data to the data input unit 1004. To receive.
【0008】データ入力手段1004はホストコンピュ
ータ1002から送られてくる印刷データをSTROB
E信号の立ち下がりで取り込み(ステップS110
2)、BUSY信号を立ち上げ(ステップS110
3)、受信バッファ1005に次の印刷データを受信す
る空き容量があるか否かを調べる(ステップS110
4)。The data input unit 1004 uses the STROB to print the print data sent from the host computer 1002.
Captured at the falling edge of the E signal (step S110
2), the BUSY signal is activated (step S110)
3) It is checked whether or not the reception buffer 1005 has a free space for receiving the next print data (step S110).
4).
【0009】受信バッファ1005に空き容量がある場
合、ACK応答タイミング20μSでホストコンピュー
タ1002にACK信号を返し(ステップS110
5)、BUSY信号を立ち下げて(ステップS110
7)処理を終了する。When the receiving buffer 1005 has a free space, an ACK signal is returned to the host computer 1002 at an ACK response timing of 20 μS (step S110).
5) The BUSY signal is lowered (step S110).
7) End the processing.
【0010】一方、ステップS1104で受信バッファ
1005に空き容量がない場合、受信バッファ1005
に空きができるまで待つ(ステップS1106)。同図
(B)に示すように、受信バッファ1005に空きがで
きたことを示すイベントが発生したか否かを判別し(ス
テップS1108)、受信バッファ1005に空きがで
きた段階で、ホストコンピュータ1002にACK信号
を返し(ステップS1109)、BUSY信号を立ち下
げる(ステップS1110)。On the other hand, if there is no free space in the reception buffer 1005 in step S1104, the reception buffer 1005
Wait until there is a free space (step S1106). As shown in FIG. 9B, it is determined whether or not an event indicating that the receiving buffer 1005 has a free space has occurred (step S1108), and when the receiving buffer 1005 has a free space, the host computer 1002 The ACK signal is returned to (step S1109), and the BUSY signal is lowered (step S1110).
【0011】データ入力手段1004は受信した印刷デ
ータを受信バッファ1005に蓄積していく。受信バッ
ファ1005に蓄積された印刷データは受信した順に翻
訳手段1006で1制御命令づつ解析される。翻訳手段
1006で解析された印刷データは受信バッファ100
5から削除され、その分、受信バッファ1005に空き
ができる。印刷データは複数の制御命令の集まりであ
り、1つの制御命令は1バイトあるいは複数バイトで構
成されている。The data input means 1004 accumulates the received print data in the reception buffer 1005. The print data stored in the reception buffer 1005 is analyzed by the translation means 1006 in the order of reception, one control command at a time. The print data analyzed by the translating means 1006 is received buffer 100.
5, the reception buffer 1005 has a free space correspondingly. The print data is a set of a plurality of control commands, and one control command is composed of 1 byte or a plurality of bytes.
【0012】翻訳手段1006は受信バッファ1005
内の印刷データを解析すると、印刷用紙に描画する描画
データを作成していく。翻訳手段1006は1ページ分
の描画データが完成すると、ページ制御部1007内の
ページバッファ1008に描画データ分の空きがあるか
否かを判別し、空きがある場合、1ページ分の描画デー
タをページバッファ1008に転送し、空きがない場
合、ページバッファ1008にその描画データ分の空き
ができるまで次のデータの解析処理を行わない。The translating means 1006 has a receiving buffer 1005.
When the print data inside is analyzed, drawing data for drawing on the printing paper is created. When one page of drawing data is completed, the translating means 1006 determines whether or not there is a space for drawing data in the page buffer 1008 in the page control unit 1007. When the data is transferred to the page buffer 1008 and there is no free space, the next data analysis process is not performed until a free space for the drawing data is created in the page buffer 1008.
【0013】ページ制御部1007内のページバッファ
1008には複数ページ分の描画データを蓄積すること
が可能である。ページ制御部1007は先に蓄積された
ページの描画データから処理する。ページ制御部100
7はページバッファ1008に印刷すべきページの描画
データがあると、そのページの描画データをビデオ信号
に変換しそのビデオ信号をエンジン部1010に送る。The page buffer 1008 in the page controller 1007 can store drawing data for a plurality of pages. The page control unit 1007 processes from the previously stored drawing data of the page. Page control unit 100
When there is drawing data of a page to be printed in the page buffer 1008, the drawing data 7 converts the drawing data of the page into a video signal and sends the video signal to the engine unit 1010.
【0014】エンジン部1010はページ制御部100
7からビデオ信号が送られてくると、用紙カセット10
09から印刷用紙を取り込み、そのビデオ信号の画像を
転写して出力する。ページ制御部1007はエンジン部
1010にビデオ信号を送る前にセットアップメニュー
の「コピー枚数」を参照し、その値の回数分そのページ
のビデオ信号をエンジン部1010に送り、同じページ
をその「コピー枚数」分印刷する。The engine unit 1010 is a page control unit 100.
When a video signal is sent from 7, the paper cassette 10
The printing paper is taken in from 09, and the image of the video signal is transferred and output. The page control unit 1007 refers to “the number of copies” of the setup menu before sending the video signal to the engine unit 1010, sends the video signal of the page for the number of times of the value to the engine unit 1010, and the same page is changed to the “number of copies”. Print minutes.
【0015】現在、「コピー枚数」は値1に設定されて
いるので、1ページ分のビデオ信号は1回だけエンジン
部1010に送られる。ページ制御部1007はそのペ
ージの「コピー枚数」分のビデオ信号を送り終えると、
ページバッファ1008からそのページの描画データを
削除し、ページバッファ1008に空きが生じる。Since the "number of copies" is currently set to 1, the video signal for one page is sent to the engine unit 1010 only once. When the page control unit 1007 finishes sending the video signals for "the number of copies" of the page,
The drawing data of the page is deleted from the page buffer 1008, and the page buffer 1008 becomes empty.
【0016】このように、データ入力から印刷までの一
連の動作を説明したが、データ入力手段1004でのデ
ータ受信処理、受信バッファ1005へのデータ蓄積処
理、翻訳手段1006でのデータ解析処理、ページ制御
部1007での印刷出力処理は、マルチタスク処理や割
り込み処理で並列に行われている。ここでは、受信バッ
ファ1005の容量、ページバッファ1008の容量、
エンジン部1010の印刷スピードなどにもよるが、概
ね「コピー枚数」が値4以下である場合、受信バッファ
1005が一杯になることはない。As described above, the series of operations from data input to printing has been described. The data receiving process in the data input unit 1004, the data storing process in the receiving buffer 1005, the data analyzing process in the translating unit 1006, the page The print output processing in the control unit 1007 is performed in parallel by multitask processing and interrupt processing. Here, the capacity of the reception buffer 1005, the capacity of the page buffer 1008,
Although depending on the printing speed of the engine unit 1010 and the like, when the “number of copies” is 4 or less, the reception buffer 1005 will not be full.
【0017】つぎに、操作者は印刷装置1001の「コ
ピー枚数」を値10に設定し、ホストコンピュータ10
02からセントロニクスI/F1003を介して印刷装
置1001に印刷データが送られてくる場合について説
明する。印刷装置1001は、データ入力手段1004
でのデータ受信処理、受信バッファ1005へのデータ
蓄積処理、翻訳手段1006でのデータ解析処理、ペー
ジ制御部1007での印刷出力処理を先程と同様に行
う。但し、「コピー枚数」が値10であるので、ページ
制御部1007は1ページ分の描画データを10回エン
ジン部1010に送る。Next, the operator sets the "number of copies" of the printer 1001 to a value of 10, and the host computer 10
A case where print data is sent from 02 to the printing apparatus 1001 via the Centronics I / F 1003 will be described. The printing apparatus 1001 has a data input unit 1004.
The data receiving process in step 1, the data storing process in the receiving buffer 1005, the data analyzing process in the translating means 1006, and the print output process in the page control unit 1007 are performed in the same manner as above. However, since the “number of copies” is the value 10, the page control unit 1007 sends drawing data for one page to the engine unit 1010 ten times.
【0018】その間に翻訳手段1006からたくさんの
ページの描画データが送られてくると、ページ制御部1
007内のページバッファ1008が一杯になり、翻訳
手段1006のデータ解析処理がストップしてしまう。
データ解析処理がストップすると、受信バッファ100
5に蓄えられてる印刷データが掃けず空き容量がどんど
ん少なくなり、やがて受信バッファ1005が一杯にな
ってしまう。In the meantime, when drawing data of many pages is sent from the translation means 1006, the page control unit 1
The page buffer 1008 in 007 becomes full, and the data analysis processing of the translation means 1006 stops.
When the data analysis process is stopped, the reception buffer 100
The print data stored in No. 5 cannot be swept and the free space becomes smaller, and eventually the receiving buffer 1005 becomes full.
【0019】受信バッファ1005が一杯になると、ホ
ストコンピュータ1002から印刷データが送られてき
ても(ステップS1101)、ACK信号を返さずに受
信バッファ1004に空きができるまで待ち(ステップ
S1106)、空きができると(ステップS110
8)、ホストコンピュータ1102にACK信号を返し
(ステップS1109)、BUSY信号を立ち下げる
(ステップS1110)。When the receiving buffer 1005 is full, even if the print data is sent from the host computer 1002 (step S1101), it waits until the receiving buffer 1004 has a space without returning an ACK signal (step S1106). If you can (step S110
8) The ACK signal is returned to the host computer 1102 (step S1109), and the BUSY signal falls (step S1110).
【0020】しかし、ホストコンピュータ1002は印
刷装置1001に1バイトデータを送った後、所定時間
(例えば、3秒)ACK信号が返って来ない場合、一
時、印刷データの送信を中断し、ホストコンピュータ1
002のCRTに印刷データの再送表示を行う。これに
より、操作者がホストコンピュータ1002を操作する
まで印刷装置1001への印刷データの送信は再開され
ない。However, when the host computer 1002 does not receive an ACK signal for a predetermined time (for example, 3 seconds) after sending 1-byte data to the printer 1001, the host computer 1002 temporarily suspends the print data transmission, and the host computer 1002 1
The print data is retransmitted and displayed on the CRT 002. As a result, transmission of print data to the printing apparatus 1001 is not resumed until the operator operates the host computer 1002.
【0021】[0021]
【発明が解決しようとする課題】しかしながら、上記従
来の印刷装置では、コピー枚数が多い場合など、翻訳手
段1006が解析するデータ量に比べて印刷装置100
1内の処理時間が長くかかると予測される処理を行って
いる場合には、受信バッファ1005の印刷データが掃
けずに空き容量がどんどん少なくなり、やがて受信バッ
ファ1005が一杯になってしまうと、ホストコンピュ
ータ1002から印刷データが送られてきてもすぐにそ
のデータ受信に対する応答を返すことができなくなる。However, in the above-mentioned conventional printing apparatus, when the number of copies is large, the printing apparatus 100 is compared with the data amount analyzed by the translation unit 1006.
When the processing in 1 is expected to take a long time, the print data in the reception buffer 1005 cannot be swept and the free space becomes smaller, and eventually the reception buffer 1005 becomes full. Even if print data is sent from the host computer 1002, it becomes impossible to immediately return a response to the data reception.
【0022】ホストコンピュータ1002のアプリケー
ションの中には、前述した通り、印刷装置1001から
所定時間応答が返って来ない場合、CRTに印刷データ
の再送表示を行ったり、ハングアップしてしまうものが
ある。ホストコンピュータ1002のCRTに再送表示
された場合には操作者の介在が必要になって面倒であ
る。また、印刷結果を得るために余計な時間がかかって
しまう。As described above, some applications of the host computer 1002 may cause print data to be retransmitted on the CRT or hang up if no response is returned from the printing apparatus 1001 for a predetermined time. . If it is re-displayed on the CRT of the host computer 1002, the intervention of the operator is required, which is troublesome. In addition, it takes extra time to obtain the print result.
【0023】一方、ホストコンピュータ1002がハン
グアップした場合、もう一度、同じ印刷データを送信し
なければならず、途中まで同じ出力結果が出て無駄にな
ってしまう。On the other hand, when the host computer 1002 hangs up, the same print data must be transmitted again, and the same output result is output halfway, which is a waste.
【0024】そこで、本発明は、解析するデータ量に比
べて処理時間が多くかかると予測される処理を行ってい
る場合、停止させることなく印刷処理を継続できる印刷
装置を提供することを目的とする。Therefore, it is an object of the present invention to provide a printing apparatus capable of continuing printing processing without stopping it when processing which is predicted to take a longer processing time than the amount of data to be analyzed. To do.
【0025】[0025]
【課題を解決するための手段】上記目的を達成するため
に、本発明の請求項1に係る印刷装置は、情報処理装置
から送られてくる複数の制御命令から構成される印刷デ
ータを解析して印刷する印刷装置において、前記印刷デ
ータを所定量受信する毎に前記情報処理装置に応答を返
して前記情報処理装置とハンドシェイクを行うデータ入
力手段と、前記情報処理装置から送られてきた前記印刷
データを解析して所定ページ単位の描画データを作成す
る翻訳手段と、該翻訳手段によって解析される印刷デー
タの量に比べて処理時間が長くかかると予測される処理
を行っている場合、前記データ入力手段が通常の応答タ
イミングよりも遅い応答タイミングで前記情報処理装置
に応答を返すように制御する制御手段とを備えたことを
特徴とする。In order to achieve the above object, a printing apparatus according to claim 1 of the present invention analyzes print data composed of a plurality of control commands sent from an information processing apparatus. In a printing apparatus that prints by printing, a data input unit that returns a response to the information processing apparatus and performs a handshake with the information processing apparatus each time a predetermined amount of the print data is received; In the case where a translation unit that analyzes the print data to create drawing data in a predetermined page and a process that is predicted to take a long processing time compared to the amount of print data analyzed by the translation unit are performed, The data input means is provided with a control means for controlling so as to return a response to the information processing device at a response timing later than a normal response timing.
【0026】請求項2に係る印刷装置は、請求項1に係
る印刷装置において前記翻訳手段が解析する印刷データ
の量に比べて処理時間が長くかかると予測される処理を
行っている場合、前記通常の応答タイミングよりも遅い
応答タイミングに設定することが可能な遅延設定手段を
備えたことを特徴とする。According to a second aspect of the present invention, there is provided the printing apparatus according to the first aspect, in which the processing is predicted to take a longer processing time than the amount of print data analyzed by the translation means. The present invention is characterized by including a delay setting means capable of setting a response timing that is later than a normal response timing.
【0027】請求項3に係る印刷装置は、請求項1に係
る印刷装置において前記翻訳手段が解析する印刷データ
の量に比べて処理時間が長くかかると予測される処理を
行っている場合、複数のタイミング値の中から1つを選
択して前記遅い応答タイミングに設定するタイミング値
設定手段を備えたことを特徴とする。According to a third aspect of the present invention, there is provided a plurality of printing apparatuses in the case where the printing apparatus according to the first aspect performs a process that is expected to take a longer processing time than the amount of print data analyzed by the translation unit. The timing value setting means for selecting one of the timing values and setting the late response timing.
【0028】請求項4に係る印刷装置は、請求項2に係
る印刷装置において操作パネルを有し、該操作パネルに
前記遅延設定手段を設けたことを特徴とする。A printing apparatus according to a fourth aspect is the printing apparatus according to the second aspect, further comprising an operation panel, and the operation panel is provided with the delay setting means.
【0029】請求項5に係る印刷装置では、請求項2に
係る印刷装置において前記遅延設定手段は、前記情報処
理装置から送られてきた印刷データによって設定される
ことを特徴とする。According to a fifth aspect of the present invention, in the printing apparatus according to the second aspect, the delay setting means is set by the print data sent from the information processing apparatus.
【0030】請求項6に係る印刷装置では、請求項1に
係る印刷装置において前記制御手段は長くかかると予測
される処理の内容に応じて前記応答タイミングを決定す
ることを特徴とする。According to a sixth aspect of the present invention, in the printing apparatus according to the first aspect, the control means determines the response timing in accordance with the content of the process that is predicted to take a long time.
【0031】請求項7に係る印刷装置では、請求項6に
係る印刷装置において前記処理の内容はマクロの実行で
あり、該マクロのデータ量に応じて前記応答タイミング
を決定することを特徴とする。According to a seventh aspect of the present invention, in the printing apparatus according to the sixth aspect, the content of the processing is execution of a macro, and the response timing is determined according to the data amount of the macro. .
【0032】請求項8に係る印刷装置では、請求項6に
係る印刷装置において前記処理の内容はコピー枚数であ
ることを特徴とする。According to an eighth aspect of the present invention, in the printing apparatus according to the sixth aspect, the content of the processing is the number of copies.
【0033】請求項9に係る印刷装置は、請求項1に係
る印刷装置においてマクロを登録する登録手段を備え、
前記制御手段は、該登録されたマクロを実行する際、前
記遅い応答タイミングで前記情報処理装置に応答を返す
ように制御することを特徴とする。A printing apparatus according to a ninth aspect comprises a registration means for registering a macro in the printing apparatus according to the first aspect,
When the registered macro is executed, the control means controls to return a response to the information processing device at the late response timing.
【0034】請求項10に係る印刷装置では、請求項1
に係る印刷装置において前記制御手段は、コピー枚数が
所定値以上である場合、遅い応答タイミングで前記情報
処理装置に応答を返すように制御することを特徴とす
る。According to a tenth aspect of the present invention, there is provided a printer according to the first aspect.
In the printing apparatus according to the first aspect, the control unit controls to return a response to the information processing apparatus at a late response timing when the number of copies is equal to or larger than a predetermined value.
【0035】請求項11に係る印刷装置は、請求項2に
係る印刷装置において前記情報処理装置が所定時間応答
を受けないときにハングアップする場合、前記遅延設定
手段は遅い応答タイミングに設定されることを特徴とす
る。According to the eleventh aspect of the present invention, in the printing apparatus according to the second aspect, when the information processing apparatus hangs up for a predetermined time, the delay setting means is set to a late response timing. It is characterized by
【0036】請求項12に係る印刷装置は、請求項2に
係る印刷装置において前記情報処理装置が応答を受けな
いときでもハングアップしない場合、前記遅延設定手段
は遅い応答タイミングに設定されないことを特徴とす
る。According to a twelfth aspect of the present invention, in the printing apparatus according to the second aspect, if the information processing apparatus does not hang up even when the information processing apparatus does not receive a response, the delay setting means is not set to a late response timing. And
【0037】請求項13に係る印刷方法は、情報処理装
置から送られてくる複数の制御命令から構成される印刷
データを解析して印刷する印刷方法において、前記印刷
データを所定量受信する毎に前記情報処理装置に応答を
返して前記情報処理装置とハンドシェイクを行う際、前
記情報処理装置から送られてきた前記印刷データを解析
して所定ページ単位の描画データを作成し、前記解析さ
れる印刷データの量に比べて処理時間が長くかかると予
測される処理を行っている場合、通常の応答タイミング
よりも遅い応答タイミングで前記情報処理装置に応答を
返すように制御することを特徴とする。A printing method according to a thirteenth aspect is a printing method for analyzing and printing print data composed of a plurality of control commands sent from an information processing apparatus, each time a predetermined amount of the print data is received. When returning a response to the information processing device and performing a handshake with the information processing device, the print data sent from the information processing device is analyzed to create drawing data in a predetermined page unit, and the drawing data is analyzed. When a process that is expected to take a longer processing time than the amount of print data is being performed, control is performed so that a response is returned to the information processing device at a response timing that is later than the normal response timing. .
【0038】請求項14に係る印刷システムは、複数の
制御命令から構成される印刷データを送信する情報処理
装置と、該情報処理装置から送られてくる印刷データを
解析して印刷する印刷装置と備えた印刷システムにおい
て、前記印刷装置は、前記印刷データを所定量受信する
毎に前記情報処理装置に応答を返して前記情報処理装置
とハンドシェイクを行うデータ入力手段と、前記情報処
理装置から送られてきた前記印刷データを解析して所定
ページ単位の描画データを作成する翻訳手段と、該翻訳
手段によって解析される印刷データの量に比べて処理時
間が長くかかると予測される処理を行っている場合、前
記データ入力手段が通常の応答タイミングよりも遅い応
答タイミングで前記情報処理装置に応答を返すように制
御する制御手段とを備えたことを特徴とする。According to a fourteenth aspect of the present invention, there is provided a printing system comprising: an information processing device for transmitting print data composed of a plurality of control commands; and a printing device for analyzing and printing the print data sent from the information processing device. In the provided printing system, the printing device sends data from the information processing device, a data input unit that returns a response to the information processing device and performs a handshake with the information processing device each time a predetermined amount of the print data is received. A translation unit that analyzes the received print data to create drawing data in a predetermined page unit, and a process that is expected to take a long processing time compared to the amount of print data analyzed by the translation unit is performed. And a control means for controlling the data input means to return a response to the information processing device at a response timing later than the normal response timing. Characterized by comprising.
【0039】請求項15に係る情報処理装置は、複数の
制御命令から構成される印刷データを印刷装置に送信
し、該印刷装置に前記印刷データを解析させて印刷を行
わせる情報処理装置において、前記印刷データを所定量
受信する毎に前記印刷装置から送られる応答を受け取っ
て前記印刷装置とハンドシェイクを行うデータ出力手段
を備え、前記印刷装置は、解析する印刷データの量に比
べて処理時間が長くかかると予測される処理を行ってい
る場合、前記データ出力手段に対して通常の応答タイミ
ングよりも遅い応答タイミングで応答を返し、前記デー
タ出力手段は、通常の応答タイミングよりも遅い応答タ
イミングで応答を受ける毎に前記印刷データを送信する
ことを特徴とする。An information processing apparatus according to a fifteenth aspect is an information processing apparatus that transmits print data composed of a plurality of control commands to a printing apparatus and causes the printing apparatus to analyze the print data and perform printing. Each time a predetermined amount of the print data is received, the print device includes a data output unit that receives a response sent from the print device and performs a handshake with the print device. When a process that is predicted to take a long time is being performed, a response is returned to the data output unit at a response timing that is later than the normal response timing, and the data output unit returns a response timing that is later than the normal response timing. The print data is transmitted each time a response is received.
【0040】請求項16に係る記憶媒体は、情報処理装
置から送られてくる複数の制御命令から構成される印刷
データを解析して印刷するプログラムを格納した印刷装
置に使用される記憶媒体であって、前記印刷データを所
定量受信する毎に前記情報処理装置に応答を返して前記
情報処理装置とハンドシェイクを行う通信モジュール
と、前記情報処理装置から送られてきた前記印刷データ
を解析して所定ページ単位の描画データを作成する作成
モジュールと、前記解析される印刷データの量に比べて
処理時間が長くかかると予測される処理を行っている場
合、通常の応答タイミングよりも遅い応答タイミングで
前記情報処理装置に応答を返すように制御する制御モジ
ュールとを含むプログラムを格納したことを特徴とす
る。A storage medium according to a sixteenth aspect is a storage medium used in a printing apparatus which stores a program for analyzing and printing print data composed of a plurality of control commands sent from an information processing apparatus. A communication module that returns a response to the information processing device each time a predetermined amount of the print data is received and performs a handshake with the information processing device, and analyzes the print data sent from the information processing device. When a creation module that creates drawing data in units of a predetermined page and a process that is predicted to take a longer processing time than the amount of print data to be analyzed are performed, the response timing is slower than the normal response timing. A program including a control module for controlling the information processing apparatus to return a response is stored.
【0041】[0041]
【発明の実施の形態】本発明の印刷装置の実施の形態に
ついて説明する。BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of a printing apparatus of the present invention will be described.
【0042】[第1の実施の形態]図1は第1の実施の
形態における印刷装置の構成を示すブロック図である。
図において、101は印刷装置である。102は印刷装
置101に印刷データを送るホストコンピュータであ
る。103はホストコンピュータ102と印刷装置10
1とを接続するセントロニクスI/Fである。104は
セントロニクスI/F103を介してホストコンピュー
タ102から送られてきた印刷データを受信するための
ハンドシェイクを行なうデータ入力手段である。[First Embodiment] FIG. 1 is a block diagram showing the arrangement of a printing apparatus according to the first embodiment.
In the figure, 101 is a printing apparatus. A host computer 102 sends print data to the printing apparatus 101. Reference numeral 103 denotes the host computer 102 and the printing device 10.
It is a Centronics I / F that connects 1 and 1. A data input unit 104 performs a handshake for receiving print data sent from the host computer 102 via the Centronics I / F 103.
【0043】データ入力手段104は、セントロニクス
I/F103からデータを1バイト受信する毎にデータ
受信の応答を表すACK信号をホストコンピュータ10
2に返す。105はデータ入力手段104で受信したデ
ータを蓄積する受信バッファである。106は受信バッ
ファ105に蓄積されている印刷データを解析して印刷
用紙に描画する描画データを作成する翻訳手段である。
107は翻訳手段106から送られてきた描画データを
ページ単位でバッファリングし、ページ毎の描画データ
をビデオ信号に変換し、そのビデオ信号をエンジン部1
10に送るページ制御部である。The data input means 104 sends an ACK signal indicating a response of data reception every time one byte of data is received from the Centronics I / F 103.
Return to 2. Reference numeral 105 is a reception buffer for accumulating the data received by the data input means 104. Reference numeral 106 denotes a translation unit that analyzes print data accumulated in the reception buffer 105 and creates drawing data to be drawn on a printing paper.
Reference numeral 107 buffers the drawing data sent from the translating means 106 on a page-by-page basis, converts the drawing data for each page into a video signal, and converts the video signal into the engine unit 1.
This is a page control unit for sending to 10.
【0044】108は翻訳手段106から送られてきた
描画データを複数ページ分キューイングすることが可能
なページ制御部107内にあるページバッファである。
109は印刷用紙を蓄積する用紙カセットである。11
0はページ制御部107から送られてきたピデオ信号の
画像を印刷用紙に転写して出力するエンジン部である。
111は翻訳手段106が解析するデータ量に比べて印
刷装置101内の処理時間が長くかかると予測される特
定の処理を行なっている場合、データ入力手段104が
通常のACK応答タイミングよりも遅いタイミングでホ
ストコンピュータ102にACK信号を返すように制御
する制御手段である。制御手段111はCPU111a
およびメモリ111bを有しており、ROMからなるメ
モリ111bにはCPU111aによって実行される後
述する図5および図6のフローチャートに示すプログラ
ムが格納されている。制御手段111は、通常時、印刷
データを受信してから20μSでACK信号を返すよう
にデータ入力手段104を制御するが、特定の処理を行
なっている場合には印刷データを受信してから100m
SでACK信号を返すようにデータ入力手段104を制
御する。Reference numeral 108 denotes a page buffer in the page controller 107 capable of queuing a plurality of pages of drawing data sent from the translating means 106.
A paper cassette 109 stores print paper. 11
Reference numeral 0 denotes an engine unit that transfers the image of the video signal sent from the page control unit 107 onto a printing sheet and outputs the image.
111 is a timing when the data input means 104 is later than the normal ACK response timing when performing a specific process in which the processing time in the printing apparatus 101 is expected to take longer than the amount of data analyzed by the translation means 106. Is a control means for controlling the host computer 102 to return an ACK signal. The control means 111 is a CPU 111a
And a memory 111b, and the memory 111b, which is a ROM, stores the programs executed by the CPU 111a and shown in the flowcharts of FIGS. Normally, the control unit 111 controls the data input unit 104 so as to return the ACK signal at 20 μS after receiving the print data, but 100 m after receiving the print data when performing a specific process.
The data input means 104 is controlled so that S returns an ACK signal.
【0045】112は翻訳手段106が解析する印刷デ
ータの量に比べて印刷装置101内の処理時間が長くか
かると予測される特定の処理を行なっている場合にホス
トコンピュータ102に返す応答タイミングを通常の応
答タイミングよりも遅くするか否かを設定することがで
きる操作パネルである。113は操作パネル112で設
定されるセットアップメューの設定値を記憶するメモリ
である。Reference numeral 112 generally indicates the response timing to be returned to the host computer 102 when performing a specific process that is expected to take a longer processing time within the printing apparatus 101 than the amount of print data analyzed by the translation unit 106. It is an operation panel that can be set whether to make it later than the response timing of. Reference numeral 113 is a memory for storing set values of a setup menu set on the operation panel 112.
【0046】図2は印刷装置の操作パネルの外観を示す
正面図である。操作パネル112は複数のキーおよびラ
ンプを有し、それぞれ図示の機能を有する。図3は印刷
装置のセットアップメニューの構成を示す説明図であ
る。図4は印刷装置のデータ受信シーケンスを表すセン
トロニクスI/F上の信号を示すタイミングチャートで
ある。FIG. 2 is a front view showing the appearance of the operation panel of the printing apparatus. The operation panel 112 has a plurality of keys and lamps, each having the illustrated function. FIG. 3 is an explanatory diagram showing the configuration of the setup menu of the printing apparatus. FIG. 4 is a timing chart showing signals on the Centronics I / F representing the data reception sequence of the printing apparatus.
【0047】(a) 印刷装置101から所定時間(本
実施の形態では3秒)ACK信号が返ってこない場合、
ハングアップするようなアプリケーションをホストコン
ピュータ102に使用する場合について説明する。(A) When the ACK signal is not returned from the printing apparatus 101 for a predetermined time (3 seconds in this embodiment),
A case where an application that causes a hangup is used for the host computer 102 will be described.
【0048】図6は印刷装置の印刷データ取り込み処理
手順を示すフローチャートである。予め、操作者は、印
刷装置101のセットアップメニューの「コピー枚数」
を値1に設定し、セットアップメニューの「ACK遅
延」を「する」に設定する(図3参照)。FIG. 6 is a flow chart showing the print data fetch processing procedure of the printing apparatus. In advance, the operator selects “number of copies” on the setup menu of the printing apparatus 101.
Is set to the value 1, and "ACK delay" in the setup menu is set to "Yes" (see FIG. 3).
【0049】始めに、図6の(A)に示すようにホスト
コンピュータ102からセントロニクスI/F103を
介して印刷装置101に印刷データが送られてくるイベ
ントが発生したか否かを判別する(ステップS51
1)。そのイベントが発生した場合、印刷装置101で
はその印刷データをデータ入力手段104で受信する。
データ入力手段104はホストコンピュータ102から
送られてくる印刷データをSTROBE信号の立ち下が
りで取り込み(ステップS512、図4参照)、BUS
Y信号を立ち上げる(ステップS513)。受信バッフ
ァ105に次のデータを受信する空き容量があるかどう
か調べる(ステップS514)。受信バッファ105に
次のデータを受信する空き容量がない場合、ホストコン
ピュータ102にすぐにはACK信号を返さず空きがで
きるまで待つ(ステップS515)。First, as shown in FIG. 6A, it is determined whether or not an event has occurred in which print data is sent from the host computer 102 to the printing apparatus 101 via the Centronics I / F 103 (step). S51
1). When the event occurs, in the printing apparatus 101, the print data is received by the data input unit 104.
The data input unit 104 takes in the print data sent from the host computer 102 at the trailing edge of the STROBE signal (step S512, see FIG. 4), and BUS.
The Y signal is activated (step S513). It is checked whether or not the receiving buffer 105 has a free space for receiving the next data (step S514). If there is no free space in the reception buffer 105 for receiving the next data, the host computer 102 does not immediately return the ACK signal and waits until there is free space (step S515).
【0050】同図(B)に示すように、受信バッファ1
05に空きができたことを示すイベントが発生したか否
かを判別し(ステップS520)、受信バッファ105
に空きができた段階でホストコンピュータ102にAC
K信号を返し(ステップS521)、BUSY信号を立
ち下げる(ステップS522)。一方、ステップS51
4で受信バッファ105に空きがある場合、現在の受信
モードがACK遅延モードであるか否かを判別する(ス
テップS516)。As shown in FIG. 1B, the reception buffer 1
It is determined whether or not an event indicating that there is a space in 05 has occurred (step S520), and the reception buffer 105
AC to the host computer 102 when there is a free space
The K signal is returned (step S521) and the BUSY signal is lowered (step S522). On the other hand, step S51
If there is a vacancy in the reception buffer 105 in step 4, it is determined whether or not the current reception mode is the ACK delay mode (step S516).
【0051】現在の受信モードがACK遅延モードであ
る場合、ACK応答タイミング100mSでホストコン
ピュータ102にACK信号を返し(ステップS51
8)、受信モードがACK遅延解除モードである場合、
ACK応答タイミング20μSでホストコンピュータ1
02にACK信号を返す(ステップS517)。この
後、BUSY信号を立ち下げて(ステップS519)処
理を終了する。If the current reception mode is the ACK delay mode, an ACK signal is returned to the host computer 102 at an ACK response timing of 100 mS (step S51).
8) If the reception mode is the ACK delay release mode,
Host computer 1 with ACK response timing of 20 μS
An ACK signal is returned to 02 (step S517). After that, the BUSY signal is lowered (step S519), and the process ends.
【0052】また、同図(C)に示すように、データ入
力手段104は、制御手段111からACK遅延の指示
であるイベントが発生したか否かを判別し(ステップS
507)、イベントが発生した場合、受信モードをAC
K遅延モードに設定する(ステップS508)。Further, as shown in FIG. 6C, the data input means 104 determines whether or not an event, which is an instruction of ACK delay, has occurred from the control means 111 (step S).
507), if an event occurs, set the reception mode to AC
The K delay mode is set (step S508).
【0053】また一方、同図(D)に示すように、制御
手段111からACK遅延解除の指示であるイベントが
発生したか否かを判別し(ステップS509)、イベン
トが発生した場合、受信モードをACK遅延解除モード
に設定する(ステップS510)。この段階では、翻訳
手段106が解析するデータ量に比べて処理時間が長く
かかる処理が発生していないので、データ入力手段10
4の受信モードはACK遅延解除モードである。On the other hand, as shown in FIG. 5D, it is judged from the control means 111 whether or not an event, which is an instruction for canceling the ACK delay, has occurred (step S509). If an event has occurred, the reception mode is set. Is set to the ACK delay cancel mode (step S510). At this stage, since the processing that takes a longer processing time than the amount of data analyzed by the translation means 106 has not occurred, the data input means 10
The reception mode of No. 4 is the ACK delay cancellation mode.
【0054】データ入力手段104はACK信号を返す
と、前述したようにBUSY信号を立ち下げ(ステップ
S519)、受信した印刷データを受信バッファ105
に蓄積する。When the data input means 104 returns the ACK signal, it causes the BUSY signal to fall as described above (step S519), and the received print data is received by the reception buffer 105.
To accumulate.
【0055】受信バッファ105に蓄積された印刷デー
タは受信した順に翻訳手段106で1制御命令づつ解析
される。翻訳手段106で解析された印刷データは受信
バッファ105から削除され、その分、受信バッファ1
05に空きができる。印刷データは複数の制御命令の集
まりであり、1つの制御命令は1バイトあるいは複数バ
イトで構成されている。翻訳手段106は受信バッファ
105内の印刷データを解析すると印刷用紙に描画する
描画データを作成していく。The print data stored in the reception buffer 105 is analyzed by the translating means 106 one control command at a time in the order of reception. The print data analyzed by the translation unit 106 is deleted from the reception buffer 105, and the reception buffer 1 is deleted by that amount.
There is a vacancy in 05. The print data is a set of a plurality of control commands, and one control command is composed of 1 byte or a plurality of bytes. When the translating means 106 analyzes the print data in the reception buffer 105, it creates drawing data to be drawn on the printing paper.
【0056】翻訳手段106は、1ページ分の描画デー
タが完成すると、ページ制御部107内のページバッフ
ァ108に1ページ分の描画データの空きがあるかどう
か調べ、空きがある場合、1ページ分の描画データをペ
ージバッファ108に転送し、空きがない場合、ページ
バッファ108にその描画データ分の空きができるまで
次の印刷データの解析処理を行わない。When the drawing data for one page is completed, the translating means 106 checks whether or not there is a space for drawing data for one page in the page buffer 108 in the page control unit 107, and if there is a space for one page. When the drawing data is transferred to the page buffer 108 and there is no space, the next print data is not analyzed until the page buffer 108 has a space for the drawing data.
【0057】ページ制御部107内のページバッファ1
08には複数ページ分の描画データを蓄積することが可
能である。ページ制御部107は先に蓄積されたページ
の描画データから処理を行う。ページ制御部107はペ
ージバッファ108に印刷すべきページの描画データが
あると、そのページの描画データをビデオ信号に変換
し、そのビデオ信号をエンジン部110に送る。エンジ
ン部110はページ制御部107からビデオ信号が送ら
れてくると、用紙カセット109から印刷用紙を取り込
み、そのビデオ信号の画像を転写して出力する。Page buffer 1 in page control unit 107
It is possible to store drawing data for a plurality of pages in 08. The page control unit 107 performs processing from the previously stored page drawing data. When there is drawing data of a page to be printed in the page buffer 108, the page control unit 107 converts the drawing data of the page into a video signal and sends the video signal to the engine unit 110. When the video signal is sent from the page control unit 107, the engine unit 110 takes in printing paper from the paper cassette 109, transfers the image of the video signal, and outputs it.
【0058】ページ制御部107はエンジン部110に
ビデオ信号を送信する前に制御手段111内のメモリ1
13に記憶された「コピー枚数」を参照し、その値の回
数分そのページのビデオ信号をエンジン部110に送
り、同じページをその「コピー枚数」分印刷する。この
場合、「コピー枚数」は値1に設定されているので、1
ページ分のビデオ信号は1回だけエンジン部110に送
信される。ページ制御部107はそのページのビデオ信
号を「コピー枚数」分送り終えると、ページバッファ1
08からそのページの描画データを削除し、ページバッ
ファ108に空きが生ずる。The page control unit 107 has the memory 1 in the control unit 111 before transmitting the video signal to the engine unit 110.
With reference to the "copy number" stored in 13, the video signal of the page is sent to the engine unit 110 for the number of times of the value, and the same page is printed for the "copy number". In this case, the "number of copies" is set to the value 1, so 1
The video signal for a page is transmitted to the engine unit 110 only once. When the page control unit 107 finishes sending the video signal of the page by "the number of copies", the page buffer 1
The drawing data of the page is deleted from 08, and the page buffer 108 becomes empty.
【0059】このようにデータ入力から印刷までの一連
の動作を説明したが、データ入力手段104でのデータ
受信処理、受信バッファ105へのデータ蓄積処理、翻
訳手段106でのデータ解析処理、ページ制御部107
での印刷出力処理は、マルチタスク処理や割り込み処理
で並列に行われている。ここでは、受信バッファ105
の容量、ページバッファの容量、エンジン部110の印
刷スピード等にもよるが、概ね「コピー枚数」が値4以
下である場合、受信バッファ105が一杯になることは
ない。Although a series of operations from data input to printing have been described above, data receiving processing by the data input means 104, data accumulating processing in the receiving buffer 105, data analysis processing by the translating means 106, page control. Part 107
The print output processing in (1) is performed in parallel by multitask processing and interrupt processing. Here, the reception buffer 105
, The page buffer capacity, the printing speed of the engine unit 110, etc., but when the “number of copies” is 4 or less, the reception buffer 105 will not be full.
【0060】(b) つぎに、操作者が印刷装置101
の操作パネル112を操作し、値1に設定されている
「コピー枚数」を値10に変更した場合について説明す
る。図5は印刷装置のセットアップメニュー変更処理手
順を示すフローチャートである。「コピー枚数」が値5
以上に設定されると、同図(A)に示すように、制御手
段111は翻訳手段106が解析するデータ量に比べて
長い時間のかかる処理であるイベントが発生したと判別
し(ステップSS501)、セットアップメニューの
「ACK遅延」が「する」に設定されているか否かを判
別する(ステップS502)。「ACK遅延」が「す
る」に設定されている場合、データ入力手段104に対
してACK遅延指示を出力して(ステップS503)受
信モードをACK遅延モードに設定する。一方、セット
アップメニューの「ACK遅延」が「しない」に設定さ
れている場合、データ入力手段104に対してACK遅
延指示を出力しないので、受信モードは変わらない。(B) Next, the operator operates the printing apparatus 101.
A case will be described in which the “number of copies” set to the value 1 is changed to the value 10 by operating the operation panel 112 of FIG. FIG. 5 is a flow chart showing the procedure for changing the setup menu of the printing apparatus. "Number of copies" is 5
When the above settings are made, as shown in FIG. 7A, the control unit 111 determines that an event has occurred that is a process that takes a longer time than the amount of data analyzed by the translation unit 106 (step SS501). It is determined whether or not "ACK delay" in the setup menu is set to "Yes" (step S502). When "ACK delay" is set to "Yes", an ACK delay instruction is output to the data input unit 104 (step S503) and the reception mode is set to the ACK delay mode. On the other hand, when “ACK delay” in the setup menu is set to “not”, the ACK delay instruction is not output to the data input means 104, so the reception mode does not change.
【0061】この後、オンラインキーを押下してオンラ
インにセットする。セットアッブメニューの設定値は制
御手段111内のメモリ113に記憶される。After this, the online key is pressed to set online. The set value of the setup menu is stored in the memory 113 in the control means 111.
【0062】また、図6の(A)に示すようにホストコ
ンピュータ102からセントロニクスI/F103を介
して印刷装置101に印刷データが送られてくるイベン
トが発生したか否かを判別する(ステップS511)。
データ入力手段104はホストコンピュータ102から
送られてくる印刷データをSTROBE信号の立ち下が
りで取り込み(ステップS512)、BUSY信号を立
ち上げる(ステップS513)。受信バッファ105に
空きがあるかどうか判別し(ステップS514)、空き
がある場合、現在の受信モードがACK遅延モードであ
るので、ACK応答タイミング100msでACK信号
を返し(ステップS518)、BUSY信号を立ち下げ
る(ステップS519)。Further, as shown in FIG. 6A, it is determined whether or not an event has occurred in which print data is sent from the host computer 102 to the printing apparatus 101 via the Centronics I / F 103 (step S511). ).
The data input unit 104 takes in the print data sent from the host computer 102 at the trailing edge of the STROBE signal (step S512), and raises the BUSY signal (step S513). It is determined whether or not the reception buffer 105 has a space (step S514). If there is a space, the current reception mode is the ACK delay mode. Therefore, an ACK signal is returned at an ACK response timing of 100 ms (step S518), and a BUSY signal is output. It is stopped (step S519).
【0063】次の印刷データの受信準備をする。ACK
遅延モード中は、ACK応答タイミングが100mSで
あるので、通常時のACK遅延解除モードのACK応答
タイミング20μSよリも5000倍遅れてACK信号
をホストコンピュータ102に返すことになる。このこ
とは、受信バッファ105に印刷データが蓄積されるス
ビードがACK遅延モードのほうがACK遅延解除モー
ドに比べおよそ5000倍遅いことを意味している。デ
ータ入力手段104でのデータ受信処理、受信バッファ
105へのデータ蓄積処理、翻訳手段106でのデータ
解析処理、ページ制御部107での印刷出力処理は前述
と同様に行われる。但し、「コピー枚数」が値10であ
るので、ページ制御部107は1ページ分の描画データ
を10回エンジン部110に送信する。その間に翻訳手
段106からたくさんのページの描画データが送られて
くると、ページ制御手段107内のページバッファ10
8が一杯になり、翻訳手段106のデータ解析処理がス
トップしてしまう。翻訳手段106のデータ解析処理が
ストップしてしまうと、受信バッファ105の印刷デー
タが掃けず空き容量がどんどん少なくなっていく。しか
し、実際にはデータ入力手段104でのデータ受信処理
が通常のACK遅延解除モードよりも数千倍遅くなって
おり、受信バッファ105が一杯になるためには多くの
時間が必要になる。その間にページ制御部107で「コ
ピー枚数」分の印刷出力処理が終り、ページバッファ1
08に空きができ、翻訳手段106のデータ解析処理が
再開され、受信バッファ105に空きができるので、受
信バッファ105が一杯になることはない。Prepare to receive the next print data. ACK
Since the ACK response timing is 100 mS in the delay mode, the ACK signal is returned to the host computer 102 5000 times later than the ACK response timing of 20 μS in the normal ACK delay canceling mode. This means that the speed at which the print data is accumulated in the reception buffer 105 is about 5000 times slower in the ACK delay mode than in the ACK delay cancel mode. The data reception process in the data input unit 104, the data accumulation process in the reception buffer 105, the data analysis process in the translation unit 106, and the print output process in the page control unit 107 are performed in the same manner as described above. However, since the “number of copies” is 10, the page control unit 107 transmits the drawing data for one page to the engine unit 110 ten times. In the meantime, when a lot of page drawing data is sent from the translation means 106, the page buffer 10 in the page control means 107 is sent.
8 becomes full and the data analysis processing of the translation means 106 stops. If the data analysis process of the translation unit 106 is stopped, the print data in the reception buffer 105 cannot be swept and the free space becomes smaller and smaller. However, in reality, the data reception processing in the data input means 104 is several thousand times slower than in the normal ACK delay cancel mode, and a lot of time is required to fill the reception buffer 105. In the meantime, the page control unit 107 finishes the print output processing for the "number of copies", and the page buffer 1
Since there is a space in 08, the data analysis processing of the translation means 106 is restarted, and there is a space in the reception buffer 105, the reception buffer 105 will not be full.
【0064】(c) つぎに、操作者が印刷装置101
の操作パネル112を操作し、値10に設定されている
「コピー枚数」を値1に戻した場合について説明する。
この「コピー枚数」の設定方法は前述と同様である。
「コピー枚数」が値4以下に設定されると、制御手段1
11は翻訳手段106が解析するデータ量に比べて印刷
装置101内の処理時間が短いと判断し、図5の(B)
に示すようにデータ入力手段104に対してACK遅延
解除指示を出力してACK遅延解除モードに設定する。
以後、ホストコンピュータ102から印刷データが送ら
れてきた場合の印刷装置101内の動作は最初の「コピ
ー枚数」が値1の場合の動作と同じである。(C) Next, the operator operates the printing apparatus 101.
A case will be described in which the operation panel 112 is operated to return the “number of copies” set to the value 10 to the value 1.
The method of setting the "number of copies" is the same as described above.
When the "number of copies" is set to 4 or less, the control means 1
No. 11 judges that the processing time in the printing apparatus 101 is shorter than the amount of data analyzed by the translation unit 106, and FIG.
As shown in, the ACK delay cancel instruction is output to the data input means 104 to set the ACK delay cancel mode.
After that, the operation in the printing apparatus 101 when the print data is sent from the host computer 102 is the same as the operation when the first “number of copies” is “1”.
【0065】(d) つぎに、印刷装置101からAC
K信号が返ってこなくても、ハングアップしないような
ホストコンピュータ102のアプリケーションを使用す
る場合について説明する。このようなアプリケーション
を使用する場合、データ送信に対するACK信号待ちが
長くてもハングアップしないので、データ量に比べて処
理時間が長くかかっても、受信バッファ104に空きが
ある間は常に速くACK信号を返したほうがホストコン
ピュータ102のデータ転送時間が短くて済む。(D) Next, from the printing apparatus 101 to the AC
A case will be described in which an application of the host computer 102 that does not hang up even if the K signal is not returned is used. When such an application is used, the ACK signal does not hang up even if the wait for the ACK signal for data transmission is long. Therefore, even if the processing time is longer than the data amount, the ACK signal is always fast while the receiving buffer 104 has a space. Is returned, the data transfer time of the host computer 102 can be shortened.
【0066】操作者は、印刷装置101のセットアップ
メニューの「ACK遅延」を「しない」に設定し、「コ
ピー枚数」を値10に設定する。このセットアップメニ
ユーの設定方法は前述と同じである。制御手段111は
「コピー枚数」が値5以上に設定されると、この処理が
翻訳手段106が解析するデータ量に比べて処理時間が
長くかかる場合であると判断するが、ステップS501
でセットアップメニューの「ACK遅延」が「しない」
に設定されているので、データ入力手段104に対して
ACK遅延指示を出さず、受信モードをACK遅延解除
モードのまま変更しない。印刷装置101はホストコン
ピュータ102から印刷データが送られてくると、デー
タ入力手段104でのデータ受信処理、受信バッファ1
05へのデータ蓄積処理、翻訳手段106でのデータ解
析処理、ページ制御部107での印刷出力処理は前述と
同様に行なう。但し、「コピー枚数」が値10であるの
で、ページ制御部107は1ページ分の描画データを1
0回エンジン部110に送信する。その間に翻訳手段1
06からたくさんのページの描画データが送られてくる
と、ページ制御手段107内のページバッファ108が
一杯になり、翻訳手段106のデータ解析処理がストッ
プしてしまう。データ解析処理がストップしてしまう
と、受信バッファ105のデータが掃けず空き容量がど
んどん少なくなり、やがて受信バッファ105が一杯に
なってしまう。受信バッファ105が一杯になると、ホ
ストコンピュータ102から印刷データが送られてきて
も、ACK信号を返さずに受信バッファ104に空きが
できるまで待ち、空きができるとホストコンピュータ1
02にACK信号を返し、BUSY信号を立ち下げる。The operator sets "ACK delay" in the setup menu of the printing apparatus 101 to "no" and sets "number of copies" to the value 10. The setting method of this setup menu is the same as described above. When the “number of copies” is set to 5 or more, the control unit 111 determines that this process takes a longer processing time than the data amount analyzed by the translation unit 106, but step S501.
In the setup menu, "ACK delay" is "not"
Therefore, the ACK delay instruction is not issued to the data input means 104, and the reception mode remains unchanged as the ACK delay cancel mode. When the printing data is sent from the host computer 102 to the printing apparatus 101, the data receiving process in the data input unit 104 and the receiving buffer 1 are performed.
The data storage process in 05, the data analysis process in the translation unit 106, and the print output process in the page control unit 107 are performed in the same manner as described above. However, since the “number of copies” is 10, the page control unit 107 sets the drawing data for one page to 1
It is transmitted to the engine unit 110 zero times. In the meantime, translation means 1
When drawing data of many pages is sent from 06, the page buffer 108 in the page control means 107 becomes full, and the data analysis processing of the translation means 106 stops. If the data analysis process is stopped, the data in the reception buffer 105 cannot be swept and the free space becomes smaller, and eventually the reception buffer 105 becomes full. When the reception buffer 105 is full, even if print data is sent from the host computer 102, the host computer 1 waits until the reception buffer 104 has a space without returning an ACK signal, and when there is space, the host computer 1
The ACK signal is returned to 02 and the BUSY signal falls.
【0067】しかし、ホストコンピュータ102のアプ
リケーションは、印刷データの送信後ACK信号が暫く
返らなくてもハングアップしないので、印刷装置101
はそのままデータ受信処理を続けることができる。However, the application of the host computer 102 does not hang up even if the ACK signal is not returned for a while after the print data is transmitted.
Can continue the data reception process.
【0068】[第2の実施の形態]本発明の印刷装置の
第2の実施の形態について説明する。前記第1の実施の
形態と同一の構成要素については同一の符号を付してそ
の詳細な説明を省略する。制御手段111は、前記第1
の実施の形態と同様に、翻訳手段106が解析するデー
タ量に比べて印刷装置101内の処理時間が長くかかる
と予測される特定の処理を行っている場合、データ入力
手段104が通常のACK応答タイミングよりも遅いタ
イミングでホストコンピュータ102にACK信号を返
すように制御する。[Second Embodiment] A second embodiment of the printing apparatus of the present invention will be described. The same components as those in the first embodiment are designated by the same reference numerals, and detailed description thereof will be omitted. The control means 111 includes the first
In the same manner as in the above embodiment, when performing a specific process in which it is predicted that the processing time in the printing apparatus 101 will take longer than the amount of data analyzed by the translation unit 106, the data input unit 104 causes a normal ACK. The ACK signal is controlled to be returned to the host computer 102 at a timing later than the response timing.
【0069】また、制御手段111は通常時にデータを
受信してから20μSでACK信号を返すようにデータ
入力手段104を制御するが、特定の処理を行なってい
る場合、セットアップメニューの「ACK応答タイミン
グ」で設定されたタイミング値でホストコンピュータ1
02にACK信号を返すようにデータ入力手段104を
制御する。制御手段111のメモリ111bには、CP
U111aよって実行される後述する図8および図9の
フローチャートに示すプログラムが格納されている。Further, the control means 111 controls the data input means 104 so as to return the ACK signal at 20 μS after receiving the data at the normal time. However, when the specific processing is performed, the “ACK response timing of the setup menu is displayed. Host computer 1 with the timing value set in
The data input means 104 is controlled to return the ACK signal to 02. In the memory 111b of the control means 111, the CP
The programs shown in the flowcharts of FIGS. 8 and 9 which will be described later and are executed by the U111a are stored.
【0070】操作パネル112は、翻訳手段106が解
析する印刷データの量に比べて印刷装置101内の処理
時間が長くかかると予測される特定の処理を行なってい
る場合にホストコンピュータ102に返す応答タイミン
グを通常の応答タイミングよりも遅くするか否かを設定
することができ、かつ長く時間がかかると予測される特
定の処理を行っている場合の応答タイミングを複数のタ
イミング値の中から1つを選択して設定することができ
る。図7はセットアップメニューの構成を示す説明図で
ある。The operation panel 112 returns a response to the host computer 102 when performing a specific process which is expected to take a long processing time in the printing apparatus 101 as compared with the amount of print data analyzed by the translating means 106. Whether to set the timing later than the normal response timing, and the response timing when performing a specific process that is expected to take a long time from one of multiple timing values Can be selected and set. FIG. 7 is an explanatory diagram showing the configuration of the setup menu.
【0071】(e) 始めに、印刷装置101から15
0mSの間にACK信号が返ってこない場合、ハングア
ップするようなホストコンピュータ102のアブリケー
ションを使用する場合について説明する。操作者は、印
刷装置101のセットアップメニューの「ACK遅延」
を「する」に設定し、「ACK応答タイミング」を10
0mSに設定する。(E) First, the printers 101 to 15
A case will be described in which an application of the host computer 102 is used that causes a hang-up when an ACK signal is not returned within 0 ms. The operator selects "ACK delay" in the setup menu of the printing apparatus 101.
Is set to “Yes” and “ACK response timing” is set to 10
Set to 0 mS.
【0072】図9は印刷装置の印刷データ取り込み処理
手順を示すフローチャートである。同図(A)に示すよ
うに、まず、ホストコンピュータ102からセントロニ
クスI/F103を介して印刷装置101に印刷データ
が送られてくるイベントが発生したか否かを判別する
(ステップS709)。印刷装置101ではその印刷デ
ータをデータ入力手段104で受信する。データ入力手
段104はホストコンピュータ102から送られてくる
印刷データをSTROBE信号の立ち下がりで取り込み
(ステップS710)、BUSY信号を立ち上げる(ス
テップS711)。FIG. 9 is a flow chart showing the print data fetch processing procedure of the printing apparatus. As shown in FIG. 9A, first, it is determined whether or not an event has occurred in which print data is sent from the host computer 102 to the printing apparatus 101 via the Centronics I / F 103 (step S709). In the printing apparatus 101, the print data is received by the data input unit 104. The data input unit 104 takes in the print data sent from the host computer 102 at the trailing edge of the STROBE signal (step S710), and raises the BUSY signal (step S711).
【0073】つづいて、受信バッファ105に次のデー
タを受信する空き容量があるかどうか調べる(ステップ
S712)。受信バッファ105に空きがない場合、ホ
ストコンピュータ102にすぐにはACK信号を返さず
空きができるまで待つ(ステップS713)。Subsequently, it is checked whether or not the receiving buffer 105 has a free space for receiving the next data (step S712). If there is no free space in the reception buffer 105, the ACK signal is not immediately returned to the host computer 102 and the host computer 102 waits until there is free space (step S713).
【0074】同図(B)に示すように、受信バッファ1
05に空きができたことを示すイベントが発生したか否
かを判別する(ステップS716)。受信バッファ10
5に空きができた段階でホストコンピュータ102にA
CK信号を返し(ステップS717)、BUSY信号を
立ち下げる(ステップS718)。As shown in FIG. 7B, the reception buffer 1
It is determined whether or not an event indicating that there is a space in 05 has occurred (step S716). Receive buffer 10
A becomes available on the host computer 102 when there is a vacancy in 5.
The CK signal is returned (step S717) and the BUSY signal is lowered (step S718).
【0075】一方、ステップS712で受信バッファ1
05に空きがある場合、現在のACK応答のタイミング
値は20mSでホストコンピュータ102にACK信号
を返し(ステップS714)、BUSY信号を立ち下げ
る(S715)。この時点では、制御手段111は翻訳
手段106が解析するデータ量に比べて処理時間が長く
かかる処理が発生していないので、データ入力手段10
4のACK応答のタイミング値を通常のデータ受信時の
20mSに設定する。On the other hand, in step S712, the reception buffer 1
If there is a space in 05, the current ACK response timing value is 20 mS, the ACK signal is returned to the host computer 102 (step S714), and the BUSY signal is lowered (S715). At this point in time, the control unit 111 does not perform a process that requires a longer processing time than the amount of data analyzed by the translation unit 106. Therefore, the data input unit 10
The timing value of the ACK response of No. 4 is set to 20 mS at the time of normal data reception.
【0076】データ入力手段104は受信したデータを
受信バッファ105に蓄積していく。受信バッファ10
5に蓄積された印刷データは受信した順に翻訳手段10
6で1制御命令づつ解析される。翻訳手段106で解析
されたデータは受信バッファ105から削除され、その
分受信バッファ105に空きが生ずる。印刷データは複
数の制御命令の集まりであり、1つの制御命令は1バイ
トあるいは複数バイトで構成されている。翻訳手段10
6は受信バッファ105内の印刷データを解析すると、
印刷用紙に描画する描画データを作成していく。The data input means 104 accumulates the received data in the reception buffer 105. Receive buffer 10
The print data stored in 5 is translated in the order received.
In step 6, each control instruction is analyzed. The data analyzed by the translating means 106 is deleted from the reception buffer 105, and the reception buffer 105 becomes empty accordingly. The print data is a set of a plurality of control commands, and one control command is composed of 1 byte or a plurality of bytes. Translation means 10
6 analyzes the print data in the reception buffer 105,
Create drawing data for drawing on printing paper.
【0077】翻訳手段106は1ページ分の描画データ
が完成すると、ページ制御部107内のページバッファ
108に前記描画データ分の空きがあるかどうか調べ、
空きがある場合、前記1ページ分の描画データをページ
バッファ108に転送し、空きがない場合、ページバッ
ファ108にその描画データ分の空きができるまで次の
データの解析処理を行わない。ページ制御部107内の
ページバッファ108には複数ページ分の描画データを
蓄積することが可能である。ページ制御部107は先に
蓄積されたページの描画データから処理する。When the drawing data for one page is completed, the translating means 106 checks whether or not there is a space for the drawing data in the page buffer 108 in the page control unit 107,
If there is a space, the drawing data for one page is transferred to the page buffer 108, and if there is no space, the analysis process of the next data is not performed until there is a space for the drawing data in the page buffer 108. Drawing data for a plurality of pages can be stored in the page buffer 108 in the page control unit 107. The page control unit 107 processes from the previously stored drawing data of the page.
【0078】ページ制御部107はページバッファ10
8に印刷すべきページの描画データがあると、そのペー
ジの描画データをビデオ信号に変換し、そのビデオ信号
をエンジン部110に送る。エンジン部110はページ
制御部107からビデオ信号が送られてくると、用紙カ
セット109から印刷用紙を取り込み、そのビデオ信号
の画像を転写して出力する。ページ制御部107はその
ページのビデオ信号を送り終えると、ページバッファ1
08からそのページの描画デー夕を削除し、ページバッ
ファ108に空きが生ずる。The page controller 107 uses the page buffer 10
If there is drawing data of a page to be printed in 8, the drawing data of the page is converted into a video signal, and the video signal is sent to the engine unit 110. When the video signal is sent from the page control unit 107, the engine unit 110 takes in printing paper from the paper cassette 109, transfers the image of the video signal, and outputs it. When the page control unit 107 finishes sending the video signal of the page, the page buffer 1
The drawing data of the page is deleted from 08, and the page buffer 108 becomes empty.
【0079】このようにデータ入力から印刷までの一連
の動作を説明したが、データ入力手段104でのデータ
受信処理、受信バッファ105へのデータ蓄積処理、翻
訳手段106でのデータ解析処理、ページ制御部107
での印刷出力処理は、マルチタスク処理や割り込み処理
で並列に行われている。Although a series of operations from data input to printing have been described above, the data receiving process in the data input unit 104, the data storing process in the receiving buffer 105, the data analyzing process in the translating unit 106, and the page control. Part 107
The print output processing in (1) is performed in parallel by multitask processing and interrupt processing.
【0080】(f) 翻訳手段106がデータ解析処理
を行っている最中にマクロ実行命令を検出した場合につ
いて説明する。マクロ実行命令とは、予め印刷装置10
1に登録されているマクロを実行する命令であり、その
マクロを実行している間、受信バッファ104のデータ
解析を行わない。マクロはいくつかの制御命令の集まり
であり、ホストコンピュータ102からマクロ登録命令
を送ることによって印刷装置101に登録することがで
きる。ここでは事前にマクロが登録されているものとす
る。(F) A case where the translating means 106 detects a macro execution instruction during the data analysis process will be described. The macro execution instruction means the printing device 10 in advance.
This is an instruction to execute the macro registered in 1, and the data analysis of the reception buffer 104 is not performed while the macro is being executed. A macro is a set of some control commands, and can be registered in the printing apparatus 101 by sending a macro registration command from the host computer 102. Here, it is assumed that the macro is registered in advance.
【0081】翻訳手段106は、マクロ実行命令を検出
すると、制御手段111に対してマクロ実行通知を行な
い、そのマクロを実行する。図8は印刷装置のセットア
ップメニュー変更処理手順を示すフローチャートであ
る。同図(A)に示すように、制御手段111はマクロ
実行通知を受けると、その処理がデータ解析量に対して
長く処理時間のかかる処理であると判断するイベントが
発生したと判別し(ステップS701)、セットアップ
メニューの「ACK遅延」を参照し、その値が「する」
に設定されているので(ステップS702)、現在のセ
ットアップメニューの「ACK応答タイミング」の設定
値100mSを読み取り、デー夕入力手段104に対し
てACK応答タイミングを100mSに変更する指示を
出力する。図9の(C)に示すように、データ入力手段
104はそのACK応答タイミングの変更指示を示すイ
ベントを受けると(ステップS707)、内部で記憶し
ているACK応答のタイミング値を100mSに変更す
る(ステップS708)。When the translating means 106 detects a macro execution instruction, it sends a macro execution notice to the control means 111 and executes the macro. FIG. 8 is a flowchart showing the procedure for changing the setup menu of the printing apparatus. As shown in FIG. 7A, when the control unit 111 receives the macro execution notification, it determines that an event has occurred that determines that the process is a process that requires a long processing time with respect to the data analysis amount (step S701), referring to "ACK delay" in the setup menu, and the value is "Yes"
Is set (step S702), the setting value 100 mS of "ACK response timing" of the current setup menu is read, and an instruction to change the ACK response timing to 100 mS is output to the data input means 104. As shown in FIG. 9C, when the data input unit 104 receives the event indicating the change instruction of the ACK response timing (step S707), the data input unit 104 changes the internally stored ACK response timing value to 100 mS. (Step S708).
【0082】これにより、次の印刷データの受信からA
CK応答タイミングを100mSに設定してACK信号
をホストコンピュータ102に返す。そして、翻訳手段
106はそのマクロの実行を終えると制御手段111に
対してマクロ実行終了通知を行い、そのマクロを終了す
る。As a result, from the reception of the next print data to A
The CK response timing is set to 100 mS and the ACK signal is returned to the host computer 102. Then, when the translation unit 106 finishes the execution of the macro, the translation unit 106 notifies the control unit 111 of the macro execution end, and ends the macro.
【0083】図8の(B)に示すように、制御手段11
1はマクロ実行終了通知であることを示すイベントを受
けると(ステップS704)、セットアップメニューの
「ACK遅延」を参照し、その値が「する」に設定され
ているので(ステップS705)、データ入力手段10
4に対してACK応答タイミングを通常のデータ受信時
の20μSの値に変更する指示を出力する(ステップS
706)。As shown in FIG. 8B, the control means 11
When the event indicating that 1 is a macro execution end notification is received (step S704), "ACK delay" in the setup menu is referred to and the value is set to "YES" (step S705), so data input Means 10
4, the instruction to change the ACK response timing to the value of 20 μS at the time of normal data reception is output (step S
706).
【0084】図9の(C)に示すようにデータ入力手段
104はそのACK応答タイミングの変更指示であるこ
とを示すイベントを受けると(ステップS707)、内
部で記憶している通常時のデータ受信時のACK応答の
タイミング値を20μSに変更する(ステップS70
8)。次の印刷データの受信からACK応答タイミング
を20μSでACK信号をホストコンピュータ102に
返す。As shown in FIG. 9C, when the data input means 104 receives an event indicating that it is an instruction to change the ACK response timing (step S707), it receives the internally stored normal data. The ACK response timing value at that time is changed to 20 μS (step S70).
8). An ACK signal is returned to the host computer 102 with an ACK response timing of 20 μS from the reception of the next print data.
【0085】翻訳手段106がマクロ実行中、データ入
力手段104のACK応答タイミングは100mSであ
る。したがって、通常のデータ受信時のACK応答タイ
ミング20μSよりも5000倍遅くACK信号をホス
トコンピュータ102に返すことになる。このことは、
受信バッファ105に印刷データが蓄積されるスピード
がおよそ5000倍遅くなることを意味している。翻訳
手段106がマクロ実行中、データ入力手段104での
データ受信処理、受信バッファ105へのデータ蓄積処
理、ページ制御部107での印刷出力処理は前述と同様
に通常に行われるが、翻訳手段106では受信バッファ
105のデータ解析処理を行わずマクロを実行するの
で、受信バッファ105の印刷データが掃けず空き容量
がどんどん少なくなっていく。During the macro execution of the translating means 106, the ACK response timing of the data input means 104 is 100 mS. Therefore, the ACK signal is returned to the host computer 102 5000 times later than the ACK response timing of 20 μS at the time of normal data reception. This means
This means that the speed at which print data is stored in the reception buffer 105 is about 5000 times slower. While the translating unit 106 is executing the macro, the data receiving process in the data input unit 104, the data accumulating process in the receiving buffer 105, and the print output process in the page control unit 107 are normally performed as described above. In this case, since the macro is executed without performing the data analysis processing of the reception buffer 105, the print data of the reception buffer 105 cannot be swept and the free space becomes smaller and smaller.
【0086】ホストコンピュータ102は受信バッファ
105に空きがある間、データ送信後150mS以内に
ACK信号が返ってくるので、ハングアップすることは
ないが、受信バッファ104に空きがなくなると、デー
タ送信後150mS以内にACK信号が返ってこないの
で、ハングアップする。そのため、制御手段111はマ
クロ実行中、ゆっくりとデータを受信し、マクロ実行時
間を稼ぐように制御する。The host computer 102 does not hang up because the ACK signal is returned within 150 mS after data transmission while the reception buffer 105 has a free space, but does not hang up. Since the ACK signal is not returned within 150 mS, it hangs up. Therefore, the control unit 111 slowly receives the data during the macro execution and controls so as to gain the macro execution time.
【0087】(g) つぎに、印刷装置101から1S
の間にACK信号が返ってこない場合、ハングアップす
るようなホストコンピュータ102のアプリケーション
を使用する場合について説明する。(G) Next, from the printing apparatus 101 to 1S
A case of using an application of the host computer 102 that causes a hang-up when an ACK signal is not returned during the period will be described.
【0088】操作者は、印刷装置101のセットアップ
メニューの「ACK遅延」を「する」に設定し、「AC
K応答タイミング」を500mSに設定する。この状態
でホストコンピュータ102から印刷データを受信し、
翻訳手段106がマクロ実行命令を検出し、制御手段1
11に対してマクロ実行通知を行うと、制御手段111
はデータ入力手段104に対してACK応答タイミング
を500mSに変更する指示を出力する。The operator sets "ACK delay" in the setup menu of the printing apparatus 101 to "Yes" and then clicks "AC".
"K response timing" to 500 mS. In this state, print data is received from the host computer 102,
The translation means 106 detects the macro execution instruction, and the control means 1
When the macro execution notification is issued to 11, the control means 111
Outputs to the data input means 104 an instruction to change the ACK response timing to 500 mS.
【0089】図9の(C)に示すように、データ入力手
段104はそのACK応答タイミングの変更指示を示す
イベントを受けると(ステップS707)、内部で記憶
しているACK応答のタイミング値を500mSに変更
し(ステップS708)、次のデータ受信からACK応
答タイミングを500mSでACK信号をホストコンピ
ュータ102に返す。As shown in FIG. 9C, when the data input means 104 receives an event indicating an instruction to change the ACK response timing (step S707), the internally stored ACK response timing value is set to 500 mS. (Step S708), the ACK response timing is 500 mS from the next data reception, and the ACK signal is returned to the host computer 102.
【0090】こうしてACK応答タイミング100mS
の時よりも5倍遅くしているので、マクロ実行時間を先
ほどよりも約5倍稼ぐことができる。Thus, the ACK response timing 100 ms
Since it is 5 times slower than when, the macro execution time can be earned about 5 times faster than before.
【0091】(h) さらに、印刷装置101からAC
K信号が返ってこなくてもハングアップしないようなホ
ストコンピュータ102のアプリケーションを使用する
場合について説明する。このようなアプリケーションを
使用する場合、データ送信に対するACK信号待ちをし
てもハングアップしないので、データ量に比べて長く処
理時間のかかる処理を行うとしても、受信バッファ10
4に空きがある間、常に速くACK信号を返したほうが
ホストコンピュータ102のデータ転送時間が短くて済
む。(H) Further, from the printing apparatus 101 to the AC
A case will be described in which an application of the host computer 102 that does not hang up even if the K signal is not returned is used. When such an application is used, the reception buffer 10 does not hang up even if it waits for an ACK signal for data transmission. Therefore, even if a process that requires a longer processing time than the data amount is performed, the reception buffer 10
It is possible to shorten the data transfer time of the host computer 102 by always returning the ACK signal quickly while there is a space in 4.
【0092】操作者は、印刷装置101のセットアップ
メニューの「ACK遅延」を「しない」に設定する。こ
の状態でホストコンピュータ102から印刷データを受
信し、翻訳手段106がマクロ実行命令を検出すると、
制御手段111に対してマクロ実行通知を行い、そのマ
クロを実行する。図8の(A)に示すように、制御手段
111はマクロ実行通知であることを示すイベントを受
けると、その処理がデータ解析量に対して長く処理時間
のかかる処理であると判別し(ステップS701)、セ
ットアップメニューの「ACK遅延」を参照するが、そ
の値が「しない」に設定されているので、データ入力手
段104に対してACK応答タイミングを変更しない。
従って、翻訳手段106がマクロ実行中もデータ入力手
段104ば通常のデータ受信時のACK応答タイミング
20μSでACK信号をホストコンピュータ102に返
す。The operator sets "ACK delay" in the setup menu of the printing apparatus 101 to "not". In this state, when print data is received from the host computer 102 and the translating means 106 detects a macro execution command,
A macro execution notice is sent to the control means 111 and the macro is executed. As shown in FIG. 8A, when the control unit 111 receives an event indicating that it is a macro execution notification, the control unit 111 determines that the process requires a long processing time with respect to the data analysis amount (step In step S701, “ACK delay” in the setup menu is referred to, but since the value is set to “not”, the ACK response timing with respect to the data input unit 104 is not changed.
Therefore, even when the translating means 106 is executing the macro, the data inputting means 104 returns an ACK signal to the host computer 102 at an ACK response timing of 20 μS during normal data reception.
【0093】図9の(A)に示すように、マクロ実行
中、受信バッファ105が一杯になると、ホストコンピ
ュータ102から印刷データが送られてきてもACK信
号を返さずに受信バッファ104に空きができるまで待
つ(ステップS713)。As shown in FIG. 9A, when the receive buffer 105 becomes full during the macro execution, even if print data is sent from the host computer 102, the ACK signal is not returned and the receive buffer 104 becomes empty. Wait until it is possible (step S713).
【0094】同図(B)に示すように、空きができたこ
とを示すイベントが発生すると(ステップS716)、
ホストコンピュータ102にACK信号を返し(ステッ
プS717)、BUSY信号を立ち下げる(ステップS
718)。しかし、ホストコンピュータ102のアプリ
ケーションはデータ送信後、ACK信号が暫く返らなく
てもハングアップしないので、印刷装置101はそのま
まデータ受信処理を続けることができる。As shown in FIG. 9B, when an event indicating that a space is available occurs (step S716),
The ACK signal is returned to the host computer 102 (step S717), and the BUSY signal falls (step S).
718). However, since the application of the host computer 102 does not hang up after the data transmission, even if the ACK signal is not returned for a while, the printing apparatus 101 can continue the data reception processing as it is.
【0095】[第3の実施の形態]本発明の印刷装置の
第3の実施の形態について説明する。前記第1および第
2の実施の形態と同一の構成要素については同一の番号
を付してその詳細な説明を省略する。[Third Embodiment] A third embodiment of the printing apparatus of the present invention will be described. The same components as those in the first and second embodiments are designated by the same reference numerals, and detailed description thereof will be omitted.
【0096】制御手段111は、前述したように、翻訳
手段106が解析するデータ量に比べて印刷装置101
内の処理時間が長くかかると予測される特定の処理を行
っている場合、データ入力手段104が通常のACK応
答タイミングよりも遅いタイミングでホストコンピュー
タ102にACK信号を返すように制御する。制御手段
111は、通常時にデータを受信してから20μSでA
CK信号を返すようにデータ入力手段104を制御する
が、特定の処理を行なっている場合にはその特定処理の
内容によってACK応答タイミングを決定し、そのタイ
ミングでホストコンピュータ102にACK信号を返す
ようにデータ入力手段104を制御する。制御手段11
1のメモリ111bには、CPU111aによって実行
される後述する図11および図12のフローチャートに
示すプログラムが格納されている。As described above, the control unit 111 compares the data amount analyzed by the translation unit 106 with the printing apparatus 101.
In the case where a specific process that is expected to take a long time is performed, the data input unit 104 controls the host computer 102 to return the ACK signal at a timing later than the normal ACK response timing. The control means 111 receives A at 20 μS after receiving the data at the normal time.
The data input means 104 is controlled so as to return the CK signal. However, when the specific processing is being performed, the ACK response timing is determined according to the content of the specific processing, and the ACK signal is returned to the host computer 102 at the timing. Then, the data input means 104 is controlled. Control means 11
The memory 111b of No. 1 stores the programs executed by the CPU 111a and shown in the flowcharts of FIGS. 11 and 12 described later.
【0097】操作パネル112は、翻訳手段106が解
析する印刷データの量に比べて印刷装置101内の処理
時間が長くかかると予測される特定の処理を行なってい
る場合にホストコンピュータ102に返す応答タイミン
グを通常の応答タイミングよりも遅くするか否かを設定
することができる。The operation panel 112 returns a response to the host computer 102 when performing a specific process which is expected to take a long processing time in the printing apparatus 101 as compared with the amount of print data analyzed by the translating means 106. It can be set whether or not the timing is delayed from the normal response timing.
【0098】(i) ホストコンピュータ102は、印
刷装置101から500mSの間にACK信号が返って
こない場合、ハングアップするようなホストコンピュー
タ102のアプリケーションを使用する場合について説
明する。操作者は印刷装置101のセットアップメニュ
ーの「ACK遅延」を「する」に設定し、「コピー枚
数」を値1に設定する。図10はセットアップメニュー
の構成を示す説明図である。(I) The case where the host computer 102 uses an application of the host computer 102 that causes a hang-up when the ACK signal is not returned from the printing apparatus 101 within 500 mS will be described. The operator sets “ACK delay” in the setup menu of the printing apparatus 101 to “yes” and sets the “number of copies” to the value 1. FIG. 10 is an explanatory diagram showing the configuration of the setup menu.
【0099】図12は印刷装置の印刷データ取り込み処
理手順を示すフローチャートである。まず、同図(A)
に示すように、ホストコンピュータ102からセントロ
ニクスI/F103を介して印刷装置101に印刷デー
タが送られてくることを示すイベントが発生したか否か
を判別する(ステップS911)。印刷装置101では
その印刷データをデータ入力手段104で受信する。デ
ータ入力手段104はホストコンピュータ102から送
られてくるデータをSTROBE信号の立ち下がりで取
り込み(ステップS912)、BUSY信号を立ち上げ
る(ステップS913)。FIG. 12 is a flow chart showing the print data fetching processing procedure of the printing apparatus. First, FIG.
As shown in, it is determined whether or not an event indicating that print data is sent from the host computer 102 to the printing apparatus 101 via the Centronics I / F 103 has occurred (step S911). In the printing apparatus 101, the print data is received by the data input unit 104. The data input means 104 takes in the data sent from the host computer 102 at the falling edge of the STROBE signal (step S912), and raises the BUSY signal (step S913).
【0100】受信バッファ105に次の印刷データを受
信する空き容量があるかどうか調べる(ステップS91
4)。受信バッファ105に空きがない場合、ホストコ
ンピュータ102にすぐにはACK信号を返さず空きが
できるまで待つ(ステップS915)。同図(B)に示
すように、受信バッファ105に空きができたことを示
すイベントが発生したか否かを判別する(ステップS9
18)。受信バッファ105に空きができた段階でホス
トコンピュータ102にACK信号を返し(ステップS
919)、BUSY信号を立ち下げる(ステップS92
0)。受信バッファ105に空きがある場合、現在のA
CK応答のタイミング値20μSでACK信号をホスト
コンピュータ102に返し(ステップS916)、BU
SY信号を立ち下げる(ステップS917)。It is checked whether or not the receiving buffer 105 has a free space for receiving the next print data (step S91).
4). If there is no free space in the reception buffer 105, the ACK signal is not immediately returned to the host computer 102 and the system waits until there is free space (step S915). As shown in FIG. 9B, it is determined whether or not an event indicating that the receiving buffer 105 has a free space has occurred (step S9).
18). An ACK signal is returned to the host computer 102 when the receiving buffer 105 has a free space (step S
919) and the BUSY signal falls (step S92).
0). If there is free space in the receive buffer 105, the current A
An ACK signal is returned to the host computer 102 with a CK response timing value of 20 μS (step S916), and BU
The SY signal is lowered (step S917).
【0101】この時点では、制御手段111は、翻訳手
段106が解析するデータ量に比べて処理時間が長くか
かる処理が発生していないので、データ入力手段104
のACK応答のタイミング値を通常のデータ受信時の2
0μSに設定する。At this point in time, the control means 111 does not perform any processing that requires a longer processing time than the amount of data analyzed by the translation means 106. Therefore, the data input means 104
ACK response timing value of 2 when receiving normal data
Set to 0 μS.
【0102】データ入力手段104は受信したデータを
受信バッファ105に蓄積していく。受信バッファ10
5に蓄積された印刷データは受信した順に翻訳手段10
6で1制御命令づつ解析される。翻訳手段106で解析
されたデータは受信バッファ105から削除され、その
分、受信バッファ105に空きが生ずる。印刷データは
複数の制御命令の集まりであり、1つの制御命令は1バ
イトあるいば複数バイトで構成されている。翻訳手段1
06は受信バッファ105内の印刷データを解析する
と、印刷用紙に描画する描画データを作成していく。The data input means 104 accumulates the received data in the reception buffer 105. Receive buffer 10
The print data stored in 5 is translated in the order received.
In step 6, each control instruction is analyzed. The data analyzed by the translating means 106 is deleted from the reception buffer 105, and the reception buffer 105 becomes empty accordingly. The print data is a set of a plurality of control commands, and one control command is composed of one byte or a plurality of bytes. Translation means 1
When 06 analyzes the print data in the reception buffer 105, it creates drawing data to be drawn on the printing paper.
【0103】翻訳手段106は1ページ分の描画データ
が完成すると、ページ制御部107内のページバッファ
108に前記描画データ分の空きがあるかどうか調ベ、
空きがある場合、前記1ページ分の描画データをページ
バッファ108に転送し、空きがない場合、ページバッ
ファ108にその描画データ分の空きができるまで次の
データの解析処理を行わない。ページ制御部107内の
ページバッファ108には、複数ページ分の描画データ
を蓄積することが可能である。ページ制御部107は先
に蓄積されたページの描画データから処理する。When the rendering data for one page is completed, the translating means 106 checks whether or not the page buffer 108 in the page control unit 107 has a space for the rendering data.
If there is a space, the drawing data for one page is transferred to the page buffer 108, and if there is no space, the analysis process of the next data is not performed until there is a space for the drawing data in the page buffer 108. The page buffer 108 in the page control unit 107 can store drawing data for a plurality of pages. The page control unit 107 processes from the previously stored drawing data of the page.
【0104】ページ制御部107はページバッファ10
8に印刷すべきページの描画データがあると、そのペー
ジの描画データをビデオ信号に変換しそのビデオ信号を
エンジン部110に送る。エンジン部110はページ制
御部107からビデオ信号が送られてくると用紙カセッ
ト109から印刷用紙を取り込み、そのビデオ信号の画
像を転写して出力する。ページ制御部107はそのペー
ジのビデオ信号を送り終えると、ページバッファ108
からそのページの描画データを削除し、ページバッファ
108に空きが生ずる。The page controller 107 controls the page buffer 10
If there is drawing data of the page to be printed in 8, the drawing data of the page is converted into a video signal and the video signal is sent to the engine unit 110. When the video signal is sent from the page control unit 107, the engine unit 110 takes in the printing paper from the paper cassette 109, transfers the image of the video signal, and outputs it. When the page control unit 107 finishes sending the video signal of the page, the page buffer 108
, The drawing data of the page is deleted, and the page buffer 108 becomes empty.
【0105】このように、データ入力から印刷までの一
連の動作を説明したが、データ入力手段104でのデー
タ受信処理、受信バッファ105へのデータ蓄積処理、
翻訳手段106でのデータ解析処理、ページ制御部10
7での印刷出力処理は、マルチタスク処理や割り込み処
理で並列に行われている。The series of operations from data input to printing have been described above. The data receiving process in the data input means 104, the data storing process in the receiving buffer 105,
Data analysis processing in the translation means 106, page control unit 10
The print output processing in 7 is performed in parallel by multitask processing and interrupt processing.
【0106】(j) 翻訳手段106がデータ解析処理
を行なっている最中にマクロ番号「1」のマクロ実行命
令を検出した場合について説明する。マクロ実行命令と
は、予め印刷装置101に登録されているマクロを実行
する命令でそのマクロを実行している間、受信バッファ
104のデータ解析を行わない。マクロはいくつかの制
御命令の集まりでホストコンピュータ102からマクロ
登録命令を送ることによって印刷装置101に登録する
ことができる。印刷装置101には複数のマクロを登録
することができ、それぞれのマクロにはマクロ番号がつ
いている。(J) A case will be described in which the translating means 106 detects the macro execution instruction of the macro number "1" during the data analysis process. The macro execution instruction is an instruction for executing a macro registered in the printing apparatus 101 in advance, and data analysis of the reception buffer 104 is not performed while the macro is being executed. A macro can be registered in the printing apparatus 101 by sending a macro registration command from the host computer 102 as a set of some control commands. A plurality of macros can be registered in the printing apparatus 101, and each macro has a macro number.
【0107】ここでは事前にマクロ番号「1」、「2」
のマクロが登録されているものとする。翻訳手段106
はマクロ実行命令を検出すると、制御手段111に対し
てマクロ実行通知を行い、マクロ番号「1」のマクロを
実行する。翻訳手段106は制御手段111に対してマ
クロ実行通知を行う場合、マクロ番号とそのマクロのデ
ータ量を通知する。ここでは、マクロ番号「1」のマク
ロが10kバイト、マクロ番号「2」のマクロが30k
バイトとする。Here, the macro numbers "1" and "2" are set in advance.
It is assumed that the macro of is registered. Translation means 106
When it detects a macro execution instruction, sends a macro execution notification to the control means 111 and executes the macro of macro number "1". When the translating means 106 issues a macro execution notice to the control means 111, it informs the macro number and the data amount of the macro. Here, the macro with the macro number “1” is 10 kbytes, and the macro with the macro number “2” is 30 kbytes.
Byte.
【0108】図11は印刷装置のセットアップメニュー
変更処理手順を示すフローチャートである。同図11の
(A)に示すように、制御手段111は、そのマクロの
データ量が10kバイトであることを知ると(ステップ
S901)、ACK応答タイミングを100mSにする
処理と判断し(ステップS902)、セットアップメニ
ューの「ACK遅延」を参照し、その値が「する」に設
定されているので、データ入力手段104に対してAC
K応答タイミングを100mSに変更する指示を出力す
る(ステップS904)。FIG. 11 is a flow chart showing the procedure for changing the setup menu of the printing apparatus. As shown in (A) of FIG. 11, when the control unit 111 knows that the data amount of the macro is 10 kbytes (step S901), it determines that the processing is to set the ACK response timing to 100 mS (step S902). ), Referring to “ACK delay” in the setup menu and setting the value to “Yes”, the data input means 104 receives an AC
An instruction to change the K response timing to 100 mS is output (step S904).
【0109】図12の(C)に示すように、データ入力
手段104はそのACK応答タイミングの変更指示を示
すイベントを受けると(ステップS909)、内部で記
憶しているACK応答のタイミング値を100mSに変
更し(ステップS910)、次のデータ受信からACK
応答タイミングを100mSでACK信号をホスト10
2に返す。As shown in FIG. 12C, when the data input means 104 receives an event indicating an instruction to change the ACK response timing (step S909), the internally stored timing value of the ACK response is 100 mS. (Step S910), and ACK from the next data reception
Host 10 with ACK signal with response timing of 100 mS
Return to 2.
【0110】そして、翻訳手段106はそのマクロの実
行を終えると制御手段111に対してマクロ実行終了通
知を行い、そのマクロを終了する。図11の(B)に示
すように、制御命令111はマクロ実行終了通知を受け
ると(ステップS906)、セットアッブメニューの
「ACK遅延」を参照し、その値が「する」に設定され
ているので、データ入力手段104に対してACK応答
タイミングを通常データ受信時の値20μSに変更する
指示を出力する(ステップS908)。When the translating means 106 finishes the execution of the macro, it notifies the control means 111 of the end of macro execution and terminates the macro. As shown in FIG. 11B, when the control instruction 111 receives the macro execution end notification (step S906), it refers to “ACK delay” in the setup menu and sets the value to “execute”. Therefore, an instruction to change the ACK response timing to the value of 20 μS for receiving the normal data is output to the data input means 104 (step S908).
【0111】図12の(C)に示すように、データ入力
手段104はそのACK応答タイミングの変更指示を示
すイベントを受けると(ステップS909)、内部で記
憶している通常のデータ受信時のACK応答のタイミン
グ値を20μSに変更し(ステップS910)、次のデ
ータ受信からACK応答タイミングを20μSでACK
信号をホストコンピュータ102に返す。データ入力手
段104のACK応答タイミングが100mSの場合、
通常のデータ受信時のACK応答タイミング20μSよ
りも5000倍遅くACK信号をホストコンピュータ1
02に返すことになる。このことは、受信バッファ10
5にデータが蓄積されるスピードがおよそ5000倍遅
くなることを意味している。As shown in FIG. 12C, when the data input means 104 receives an event indicating an instruction to change the ACK response timing (step S909), the internally stored ACK at the time of normal data reception is received. The response timing value is changed to 20 μS (step S910), and the ACK response timing is ACK at 20 μS from the next data reception.
The signal is returned to the host computer 102. When the ACK response timing of the data input means 104 is 100 mS,
The ACK signal is sent 5000 times later than the ACK response timing of 20 μS at the time of normal data reception.
It will be returned to 02. This means that the receive buffer 10
5 means that the speed at which data is accumulated is about 5000 times slower.
【0112】翻訳手段106がマクロ実行中、データ入
力手段104でのデータ受信処理、受信バッファ105
へのデータ蓄積処理、ページ制御部107での印刷出力
処理は前述と同様に通常に行われるが、翻訳手段106
では受信バッファ105のデータ解析処理を行わずマク
ロを実行するので、受信バッファ105の印刷データが
掃けず空き容量がどんどん少なくなっていく。ホストコ
ンピュータ102は受信バッファ104に空きがある
間、データ送信後500mS以内にACK信号が返って
くるので、ハングアツプすることはないが、受信バッフ
ァ104に空きがなくなると、データ送信後500mS
以内にACK信号が返ってこないので、ハングアップす
る。そのため、制御手段111はマクロ実行中、ゆっく
りとデータを受信し、マクロ実行時間を稼ぐように制御
する。During the macro execution of the translating means 106, the data receiving process in the data input means 104 and the receiving buffer 105
The data storage process for the print data and the print output process by the page control unit 107 are normally performed as described above.
In this case, since the macro is executed without performing the data analysis processing of the reception buffer 105, the print data of the reception buffer 105 cannot be swept and the free space becomes smaller and smaller. The host computer 102 does not hang up because the ACK signal is returned within 500 mS after data transmission while the receive buffer 104 has a free space. However, when the receive buffer 104 is full, 500 mS after data transmission.
Since the ACK signal is not returned within this, it hangs up. Therefore, the control unit 111 slowly receives the data during the macro execution and controls so as to gain the macro execution time.
【0113】(k) つぎに、マクロ番号「2」のマク
ロ実行命令を検出する。図11の(A)に示すように、
制御手段111はそのマクロのデータ量が30kバイト
であることを知ると(ステップS901)、ACK応答
タイミングを300mSにする処理であると判断し(ス
テップS902)、セットアップメニューの「ACK遅
延」を参照し、その値が「する」に設定されているの
で、データ入力手段104に対してACK応答タイミン
グを300mSに変更する指示を出力する(ステップS
904)。(K) Next, the macro execution instruction with the macro number "2" is detected. As shown in FIG. 11 (A),
When the control unit 111 knows that the data amount of the macro is 30 kbytes (step S901), it determines that the process is to set the ACK response timing to 300 mS (step S902), and refers to "ACK delay" in the setup menu. However, since the value is set to "Yes", an instruction to change the ACK response timing to 300 mS is output to the data input means 104 (step S).
904).
【0114】図12の(C)に示すように、データ入力
手段104はそのACK応答タイミングの変更指示を受
けると(ステップS909)、内部で記憶しているAC
K応答の夕イミング値を300mSに変更し(ステップ
S910)、次のデータ受信からACK応答タイミング
を300mSでACK信号をホストコンピュータ102
に返す。As shown in FIG. 12C, when the data input means 104 receives an instruction to change the ACK response timing (step S909), the AC stored internally is stored.
The evening value of the K response is changed to 300 mS (step S910), the ACK response timing is 300 mS from the next data reception, and the ACK signal is sent to the host computer 102.
To return.
【0115】翻訳手段106はそのマクロの実行を終え
ると、制御手段111に対してマクロ実行終了通知を行
い、そのマクロを終了する。図11の(B)に示すよう
に、制御手段111はマクロ終了通知を受けると(ステ
ップS906)、セットアップメニューの「ACK遅
延」を参照し、その値が「する」に設定されているの
で、データ入力手段104に対してACK応答タイミン
グを通常のデータ受信時の値20μSに変更する指示を
出力する(ステップS908)。図12の(C)に示す
ように、デー夕入力手段104はそのACK応答タイミ
ングの変更指示を受けると(ステップS909)、内部
で記憶している通常データ受信時のACK応答のタイミ
ング値を20μSに変更し(ステップS910)、次の
データ受信からACK応答タイミングを20μSでAC
K信号をホストコンピュータ102に返す。データ入力
手段104のACK応答タイミングが300mSの場
合、ACK応答タイミング100mSよりも3倍遅くA
CK信号をホスト102に返すことになるので、マクロ
実行時間を先ほどよりも約3倍稼ぐことができる。When the translating means 106 finishes the execution of the macro, it notifies the control means 111 of the end of macro execution, and terminates the macro. As shown in FIG. 11B, when the control unit 111 receives the macro end notification (step S906), it refers to “ACK delay” in the setup menu and sets the value to “Yes”. An instruction to change the ACK response timing to the normal data reception value of 20 μS is output to the data input unit 104 (step S908). As shown in (C) of FIG. 12, when the data input unit 104 receives the instruction to change the ACK response timing (step S909), the timing value of the ACK response at the time of receiving the normal data stored therein is 20 μS. (Step S910), the ACK response timing from the next data reception is 20 μS and AC
The K signal is returned to the host computer 102. When the ACK response timing of the data input means 104 is 300 mS, it is three times later than the ACK response timing of 100 mS.
Since the CK signal is returned to the host 102, the macro execution time can be earned about three times as long as before.
【0116】(l) つぎに、操作者が印刷装置101
の操作パネル111を操作し、現在、値1となっている
「コピー枚数」を値5に設定する。図11の(A)に示
すように、制御手段111は「コピー枚数」が値5に設
定されると(ステップS901)、ACK応答タイミン
グを200mSにする処理と判断し(ステップS90
2)、セットアップメニューの「ACK遅延」を参照
し、その値が「する」に設定されているので、データ入
力手段104に対してACK応答タイミングを200m
Sに変更する指示を出力する(ステップS904)。(L) Next, the operator operates the printing apparatus 101.
The operation panel 111 is operated to set the value "1" to "5". As shown in FIG. 11A, when the "copy number" is set to the value 5 (step S901), the control unit 111 determines that the ACK response timing is 200 mS (step S90).
2), referring to “ACK delay” in the setup menu and setting the value to “Yes”, the ACK response timing to the data input means 104 is 200 m.
An instruction to change to S is output (step S904).
【0117】図12の(C)に示すように、データ入力
手段104はそのACK応答タイミングの変更指示を受
けると(ステップS909)、内部で記憶しているAC
K応答のタイミング値を200mSに変更し(ステップ
S910)、次のデータ受信からACK応答タイミング
を200mSでACK信号をホストコンピュータ102
に返す。As shown in FIG. 12C, when the data input means 104 receives the instruction to change the ACK response timing (step S909), the AC stored internally is stored.
The K response timing value is changed to 200 mS (step S910), the ACK response timing is set to 200 mS from the next data reception, and the ACK signal is transmitted to the host computer 102.
To return.
【0118】データ入力手段104のACK応答タイミ
ングが200mSの場合、通常のデータ受信時のACK
応答タイミング20μSよりも10000倍遅くACK
信号をホストコンピュータ102に返すことになる。こ
のことは、受信バッファ105にデータが蓄積されるス
ピードがおよそ10000倍遅くなることを意味してい
る。「コピー枚数」が値5の場合、データ入力手段10
4でのデータ受信処理、受信バッファ105へのデータ
蓄積処理、翻訳手段106でのデータ解析処理は「コピ
ー枚数」が値1の場合と同様に行われるが、ページ制御
部107は1ページ分の描画データを5回エンジン部1
10に送る。その間に翻訳手段106からたくさんのペ
ージの描画データが送られてくるとページ制御手段1
07内のページバッファ108が一杯になり、翻訳手段
106のデータ解析処理がストップしてしまう。そうな
ると受信バツファ105のデータが掃けず空き容量がど
んどん少なくなっていく。しかし、実際にはデータ入力
手段104でのデータ受信処理が通常よりも約1000
0倍遅くなっており、受信バッファ105が一杯になる
ためには多くの時間が必要になる。その間にページ制御
部107で「コピー枚数」分の印刷出力処理が終わり、
ページバッファ108に空きができ、翻訳手段106の
データ解析処理が再開され、受信バッファ105に空き
が生ずるので、一杯になることがない。When the ACK response timing of the data input means 104 is 200 mS, an ACK upon normal data reception
ACK 10000 times slower than response timing 20μS
The signal will be returned to the host computer 102. This means that the speed at which the data is accumulated in the reception buffer 105 is about 10,000 times slower. When the “number of copies” is 5, the data input means 10
The data receiving process in 4, the data storing process in the receiving buffer 105, and the data analyzing process in the translating means 106 are performed in the same manner as when the "number of copies" has a value of 1, but the page control unit 107 corresponds to one page. Drawing data 5 times Engine part 1
Send to 10. In the meantime, when a lot of page drawing data is sent from the translation means 106, the page control means 1
The page buffer 108 in 07 becomes full, and the data analysis processing of the translation means 106 stops. If this happens, the data in the reception buffer 105 cannot be swept and the free space becomes smaller and smaller. However, in actuality, the data receiving process in the data input means 104 is about 1000 times higher than usual.
It is 0 times slower, and it takes a lot of time to fill the reception buffer 105. In the meantime, the page control unit 107 finishes the print output processing for the "number of copies",
The page buffer 108 has an empty space, the data analysis process of the translating means 106 is restarted, and the receiving buffer 105 has an empty space.
【0119】(m) つぎに、操作者が印刷装置101
の操作パネル112を操作し、現在、値1となっている
「コピー枚数」を値10に設定する。図11の(A)に
示すように、制御手段111は「コピー枚数」が値10
に設定されると(ステップS901)、ACK応答タイ
ミングを400mSに設定する処理と判断し(ステップ
S902)、セットアップメニューの「ACK遅延」を
参照し、その値が「する」に設定されているので、デー
タ入力手段104に対してACK応答タイミングを40
0mSに変更する指示を出力する(ステップS90
4)。(M) Next, the operator operates the printing apparatus 101.
The operation panel 112 is operated to set the value "1" to "10". As shown in FIG. 11A, the control unit 111 determines that the “number of copies” is 10
If it is set to (step S901), it is determined that the process is to set the ACK response timing to 400 mS (step S902), and the value is set to “yes” with reference to “ACK delay” in the setup menu. , The ACK response timing to the data input means 104 is 40
An instruction to change to 0 mS is output (step S90).
4).
【0120】図12の(C)に示すように、データ入力
手段104はそのACK応答タイミングの変更指示を受
けると(ステップS909)、内部で記憶しているAC
K応答のタイミング値を400mSに変更し(ステップ
S910)、次のデータ受信からACK応答タイミング
を400mSでACK信号をホストコンピュータ102
に返す。データ入力手段104のACK応答タイミング
が400mSの場合、ACK応答タイミング200mS
よりも2倍遅くACK信号をホストコンピュータ102
に返すことになるので、マクロ実行時間を先ほどよりも
約3倍稼ぐことができる。As shown in FIG. 12C, when the data input means 104 receives an instruction to change the ACK response timing (step S909), the AC stored internally is stored.
The K response timing value is changed to 400 mS (step S910), the ACK response timing is 400 mS from the next data reception, and the ACK signal is sent to the host computer 102.
To return. When the ACK response timing of the data input means 104 is 400 mS, the ACK response timing is 200 mS
2 times slower than ACK signal to host computer 102
Since it will be returned to, the macro execution time can be earned about 3 times as much as before.
【0121】(n) また、印刷装置101からACK
が返ってこなくてもハングアップしないようなホストコ
ンピュータ102のアプリケーションを使用する場合に
ついて説明する。このようなアプリケーションを使用す
る場合、データ送信に対するACK信号待ちしてもハン
グアップしないので、データ量に比べて長く処理時間の
かかる処理を行うとしても、受信バッファ104に空き
がある間、常に速くACK信号を返したほうがホストコ
ンピュータ102のデータ転送時間が短くて済む。その
ため、操作者は、印刷装置101のセットアップメニュ
ーの「コピー枚数によるACK遅延」を「しない」に設
定する。(N) In addition, ACK is sent from the printing apparatus 101.
A case where an application of the host computer 102 that does not hang up even if is not returned is used will be described. When such an application is used, it does not hang up even if it waits for an ACK signal for data transmission. Therefore, even if a process that requires a longer processing time than the data amount is performed, it is always faster while the reception buffer 104 has a free space. The data transfer time of the host computer 102 can be shortened by returning the ACK signal. Therefore, the operator sets “ACK delay depending on the number of copies” in the setup menu of the printing apparatus 101 to “not”.
【0122】図11の(A)に示すように、制御手段1
11は「コピー枚数」が値10である場合(ステップS
901)、この処理がACK応答タイミングを400m
Sにする処理であると判別するが(ステップS90
2)、「コピー枚数によるACK遅延」が「しない」に
設定されているので、データ入力手段104に対して通
常のデータ受信時のACK応答タイミングを20μSに
変更する指示を出力する(ステップS905)。As shown in FIG. 11A, the control means 1
11 indicates that the “number of copies” is 10 (step S
901), this process sets the ACK response timing to 400 m.
Although it is determined that the process is S (step S90)
2) Since "ACK delay depending on the number of copies" is set to "not", an instruction to change the ACK response timing at the time of normal data reception to 20 μS is output to the data input means 104 (step S905). .
【0123】図12の(C)に示すように、データ入力
手段104はそのACK応答タイミングの変更指示であ
るイベントを受けると(ステップS909)、内部で記
憶しているACK応答のタイミング値を20μSに変更
し(ステップS910)、次のデータ受信からACK応
答タイミングを20μSでACK信号をホストコンピュ
ータ102に返す。この状態でホストコンピュータ10
2から印刷デー夕が送られてくると、印刷装置101内
でのデータ入力手段104でのデータ受信処理、受信バ
ッファ105へのデータ蓄積処理、翻訳手段106での
データ解析処理、ページ制御部107での印刷出力処理
は先ほどと同様に行なう。但し、「コビ一枚数」が値1
0であるので、ページ制御部107は1ページ分の描画
データを10回エンジン部110に送る。その間に翻訳
手段106からたくさんのページの描画データが送られ
てくると、ページ制御手段107内のページバッファ1
08が一杯になり、翻訳手段106のデータ解析処理が
ストップしてしまう。そうなると受信バツファ105の
データが掃けず空き容量がどんどん少なくなり、やがて
受信バッファ105が一杯になってしまう。その場合、
ホストコンピュータ102から印刷データが送られてき
てもACK信号を返さずに受信バッファ104に空きが
できるまで待つ(ステップS915)。As shown in FIG. 12C, when the data input means 104 receives an event which is an instruction to change the ACK response timing (step S909), the timing value of the ACK response stored internally is 20 μS. (Step S910), the ACK response timing from the next data reception is 20 μS and the ACK signal is returned to the host computer 102. In this state, the host computer 10
When the print data is sent from 2, the data input process in the data input unit 104 in the printing apparatus 101, the data accumulation process in the reception buffer 105, the data analysis process in the translation unit 106, the page control unit 107. The print output process is performed in the same manner as above. However, the value of "one piece of frame" is 1.
Since it is 0, the page control unit 107 sends the drawing data for one page to the engine unit 110 ten times. In the meantime, when a lot of page drawing data is sent from the translation means 106, the page buffer 1 in the page control means 107
08 becomes full, and the data analysis processing of the translation means 106 stops. If this happens, the data in the reception buffer 105 cannot be swept and the free space becomes smaller and smaller, and the reception buffer 105 will eventually become full. In that case,
Even if the print data is sent from the host computer 102, the ACK signal is not returned and the reception buffer 104 waits until there is space (step S915).
【0124】図12の(B)に示すように、空きが生じ
たことを示すイベントが発生すると(ステップS91
8)、ホストコンピュータ102にACK信号を返し
(ステップS919)、BUSY信号を立ち下げる(ス
テップS920)。しかし、ホストコンピュータ102
のアプリケーションはデータ送信後、ACK信号が暫く
返らなくてもハングアップしないので、印刷装置101
はそのままデータ受信処理を続けることができる。As shown in FIG. 12B, when an event indicating that a space is available occurs (step S91).
8) The ACK signal is returned to the host computer 102 (step S919), and the BUSY signal falls (step S920). However, the host computer 102
Application does not hang up after sending the data even if the ACK signal is not returned for a while, the printing device 101
Can continue the data reception process.
【0125】尚、前記実施の形態では、ホストコンピュ
ータから送られてきた印刷データを解析して各ページの
描画データを作成する翻訳手段と、翻訳手段が解析する
印刷データの量に比べて印刷装置内の処理時間が長くか
かると予測される特定の処理を行なっている場合、デー
タ入力手段が通常の応答タイミングよりも遅いタイミン
グでホストコンピュータに応答を返すように制御する制
御手段とが別々である場合を示したが、翻訳手段と制御
手段とが一体型であっても良い。In the above embodiment, the translation means for analyzing the print data sent from the host computer to create the drawing data of each page, and the printing device compared with the amount of the print data analyzed by the translation means. When performing a specific process that is expected to take a long time, the data input unit is separate from the control unit that controls the response to the host computer at a timing later than the normal response timing. Although the case is shown, the translation means and the control means may be integrated.
【0126】また、前記実施の形態では、「ACK遅
延」、「ACK応答時間」の設定を操作パネルから行な
う場合を示したが、それらの値はホストコンピュータか
らの制御データで設定できるものでも良い。In the above embodiment, the case where the "ACK delay" and the "ACK response time" are set from the operation panel has been described, but those values may be set by the control data from the host computer. .
【0127】さらに、前記実施の形態では、「ACK遅
延」を「する」あるいは「しない」の設定が行える場合
を示したが、常に「ACK遅延」が「する」のままの設
定にされていて変更できないようにしてもよい。Further, in the above-described embodiment, the case where the "ACK delay" can be set to "Yes" or "No" has been shown, but the "ACK delay" is always set to "Yes". You may not be able to change it.
【0128】また、前記実施の形態では、受信バッファ
が1つの大きなバッファで翻訳手段が解析した描画デー
タはバッファから削除されるような場合を示したが、受
信バッファはいくつかの小さなブロツクに分かれてお
り、それぞれのブロックはチェーン構造で繋がってお
り、翻訳手段がそのブロック単位で取り込んだり、解放
したりするものであってもよい。Further, in the above embodiment, the case where the receiving buffer is one large buffer and the drawing data analyzed by the translating means is deleted from the buffer has been described, but the receiving buffer is divided into several small blocks. The blocks may be connected in a chain structure, and the translation means may take in or release the blocks in units.
【0129】またさらに、本発明は複数の機器から構成
されるシステムに適用してもよいし、1つの機器からな
る装置に適用してもよい。また、本発明はシステムある
いは装置の記憶媒体にプログラムを供給することによっ
て達成される場合にも適用できることはいうまでもな
い。この場合、本発明を達成するためのソフトウェアに
よって表されるプログラムを格納した記憶媒体をシステ
ムあるいは装置が読み出すことによってそのシステムあ
るいは装置が本発明の効果を享受することが可能とな
る。Furthermore, the present invention may be applied to a system composed of a plurality of devices or may be applied to an apparatus composed of one device. Further, it goes without saying that the present invention can also be applied to the case where it is achieved by supplying a program to a storage medium of a system or an apparatus. In this case, the system or the device can enjoy the effects of the present invention by the system or the device reading the storage medium storing the program represented by the software for achieving the present invention.
【0130】上記実施の形態では、記憶媒体としてRO
Mからなるメモリ111bが用いられ、メモリ111b
には、通信モジュール、作成モジュールおよび制御モジ
ュールを有するプログラムが格納されている。図13は
記憶媒体のメモリマップを示す説明図である。通信モジ
ュールは、印刷データを1バイト受信する毎にホストコ
ンピュータに応答を返してホストコンピュータとハンド
シェイクを行うプログラムモジュールである。作成モジ
ュールは、ホストコンピュータから送られてきた印刷デ
ータを解析してページ単位の描画データを作成するプロ
グラムモジュールである。制御モジュールは、解析され
る印刷データの量に比べて処理時間が長くかかると予測
される処理を行っている場合、通常の応答タイミングよ
りも遅い応答タイミングでホストコンピュータに応答を
返すように制御するプログラムモジュールである。In the above embodiment, the RO is used as the storage medium.
The memory 111b composed of M is used, and the memory 111b
Stores a program having a communication module, a creation module, and a control module. FIG. 13 is an explanatory diagram showing a memory map of a storage medium. The communication module is a program module that returns a response to the host computer every time one byte of print data is received and performs a handshake with the host computer. The creation module is a program module that analyzes print data sent from a host computer and creates drawing data in page units. The control module controls to return a response to the host computer at a response timing that is later than the normal response timing when performing processing that is expected to take longer than the amount of print data to be analyzed. It is a program module.
【0131】この記憶媒体から読み出されたプログラム
モジュール自体が前述した実施の形態の機能を実現する
ことになり、そのプログラムモジュールを記憶した記憶
媒体は本発明を構成することになる。プログラムモジュ
ールを供給する記憶媒体としては、例えばフロッピーデ
ィスク、ハードディスク、光ディスク、光磁気ディス
ク、CD−ROM、CD−R、磁気テープ、不揮発性の
メモリカード、ROMなどを用いることができる。The program module itself read from this storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program module constitutes the present invention. As a storage medium for supplying the program module, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, or the like can be used.
【0132】[0132]
【発明の効果】本発明の請求項1に係る印刷装置によれ
ば、情報処理装置から送られてくる複数の制御命令から
構成される印刷データを解析して印刷する際、データ入
力手段により前記印刷データを所定量受信する毎に前記
情報処理装置に応答を返して前記情報処理装置とハンド
シェイクを行い、翻訳手段により前記情報処理装置から
送られてきた前記印刷データを解析して所定ページ単位
の描画データを作成し、該翻訳手段によって解析される
印刷データの量に比べて処理時間が長くかかると予測さ
れる処理を行っている場合、制御手段により前記データ
入力手段が通常の応答タイミングよりも遅い応答タイミ
ングで前記情報処理装置に応答を返すように制御するの
で、解析するデータ量に比べて処理時間が多くかかると
予測される処理を行っている場合、停止させることなく
印刷処理を継続できる。According to the printing device of the first aspect of the present invention, when the print data composed of a plurality of control commands sent from the information processing device is analyzed and printed, the data input means is used to Every time a predetermined amount of print data is received, a response is returned to the information processing device to perform a handshake with the information processing device, and the print data transmitted from the information processing device is analyzed by the translation unit to determine a predetermined page unit. When the drawing data is created and the processing is expected to take a longer processing time than the amount of print data analyzed by the translating means, the data input means is controlled by the control means to have a normal response timing. Control is performed so that a response is returned to the information processing device at a later response timing, so processing that is expected to take a longer processing time than the amount of data to be analyzed can be performed. If you are Tsu, it can continue the printing process without stopping.
【0133】請求項2に係る印刷装置によれば、前記翻
訳手段が解析する印刷データの量に比べて処理時間が長
くかかると予測される処理を行っている場合、前記通常
の応答タイミングよりも遅い応答タイミングに設定する
ことが可能な遅延設定手段を備えたので、利用者が任意
に設定できる。According to the printing apparatus of the second aspect, when the processing which is expected to take a longer processing time than the amount of print data analyzed by the translating means is executed, the response timing is shorter than the normal response timing. Since the delay setting means capable of setting the late response timing is provided, the user can arbitrarily set.
【0134】請求項3に係る印刷装置によれば、前記翻
訳手段が解析する印刷データの量に比べて処理時間が長
くかかると予測される処理を行っている場合、複数のタ
イミング値の中から1つを選択して前記遅い応答タイミ
ングに設定するタイミング値設定手段を備えたので、最
適な応答タイミングを設定できる。According to the printing apparatus of the third aspect, in the case where the processing that is expected to take a longer processing time than the amount of print data analyzed by the translating means is being performed, among the plurality of timing values Since the timing value setting means for selecting one and setting the late response timing is provided, the optimum response timing can be set.
【0135】請求項4に係る印刷装置によれば、操作パ
ネルを有し、該操作パネルに前記遅延設定手段を設けた
ので、利用者は操作パネルを使って簡単に設定できる。According to the printing apparatus of the fourth aspect, since the operation panel is provided and the delay setting means is provided on the operation panel, the user can easily set the operation panel.
【0136】請求項5に係る印刷装置によれば、前記遅
延設定手段は、前記情報処理装置から送られてきた印刷
データによって設定されるので、印刷データに応答タイ
ミングを含ませることができ、印刷データ毎にわざわざ
設定し直さなくても済む。また、遠隔操作により設定で
きる。According to the printing apparatus of the fifth aspect, since the delay setting means is set by the print data sent from the information processing apparatus, it is possible to include the response timing in the print data. There is no need to reconfigure each data. It can also be set by remote control.
【0137】請求項6に係る印刷装置によれば、前記制
御手段は長くかかると予測される処理の内容に応じて前
記応答タイミングを決定するので、最適な応答タイミン
グを設定できる。According to the printing apparatus of the sixth aspect, the control means determines the response timing in accordance with the content of the process predicted to take a long time, so that the optimum response timing can be set.
【0138】請求項7に係る印刷装置によれば、前記処
理の内容はマクロの実行であり、該マクロのデータ量に
応じて前記応答タイミングを決定するので、マクロの実
行によって印刷処理が停止してしまうことを防止でき
る。According to the printing apparatus of the seventh aspect, the content of the processing is the execution of the macro, and the response timing is determined according to the data amount of the macro. Therefore, the printing processing is stopped by the execution of the macro. It is possible to prevent it.
【0139】請求項8に係る印刷装置によれば、前記処
理の内容はコピー枚数であるので、コピー枚数が多くて
も印刷処理が停止してしまうことを防止できる。According to the printing apparatus of the eighth aspect, since the content of the processing is the number of copies, it is possible to prevent the printing processing from stopping even if the number of copies is large.
【0140】請求項9に係る印刷装置によれば、マクロ
を登録する登録手段を備え、前記制御手段は、該登録さ
れたマクロを実行する際、前記遅い応答タイミングで前
記情報処理装置に応答を返すように制御するので、マク
ロの実行によって印刷処理が停止してしまうことを防止
できる。According to the ninth aspect of the present invention, there is provided a registration means for registering a macro, and the control means, when executing the registered macro, sends a response to the information processing apparatus at the slow response timing. Since the control is performed so as to return it, it is possible to prevent the print processing from being stopped by the execution of the macro.
【0141】請求項10に係る印刷装置によれば、前記
制御手段はコピー枚数が所定値以上である場合、遅い応
答タイミングで前記情報処理装置に応答を返すように制
御するので、コピー枚数が多い場合にだけ遅い応答タイ
ミングに設定し、少ない場合には通常の応答タイミング
に設定することにより印刷処理時間をいたずらに長くし
なくて済む。According to the printing apparatus of the tenth aspect, when the number of copies is equal to or larger than a predetermined value, the control means controls the response to the information processing apparatus at a late response timing, so that the number of copies is large. Only in some cases, the response timing is set to be late, and when the response timing is small, the response timing is set to be normal, so that the print processing time is not unnecessarily lengthened.
【0142】請求項11に係る印刷装置によれば、前記
情報処理装置が所定時間応答を受けないときにハングア
ップする場合、前記遅延設定手段は遅い応答タイミング
に設定されるので、情報処理装置がハングアップしてし
まうことを防止できる。According to the printing apparatus of the eleventh aspect, when the information processing apparatus hangs up when no response is received for a predetermined time, the delay setting means is set to a late response timing. You can prevent it from hanging up.
【0143】請求項12に係る印刷装置によれば、前記
情報処理装置が応答を受けないときでもハングアップし
ない場合、前記遅延設定手段は遅い応答タイミングに設
定されないので、印刷処理時間をいたずらに長くしなく
て済む。According to the printing apparatus of the twelfth aspect, when the information processing apparatus does not hang up even when the information processing apparatus does not receive a response, the delay setting means is not set to a late response timing, so that the print processing time is unnecessarily lengthened. You don't have to.
【0144】請求項13に係る印刷方法によれば、情報
処理装置から送られてくる複数の制御命令から構成され
る印刷データを解析して印刷する印刷方法において、前
記印刷データを所定量受信する毎に前記情報処理装置に
応答を返して前記情報処理装置とハンドシェイクを行う
際、前記情報処理装置から送られてきた前記印刷データ
を解析して所定ページ単位の描画データを作成し、前記
解析される印刷データの量に比べて処理時間が長くかか
ると予測される処理を行っている場合、通常の応答タイ
ミングよりも遅い応答タイミングで前記情報処理装置に
応答を返すように制御するので、解析するデータ量に比
べて処理時間が多くかかると予測される処理を行ってい
る場合、停止させることなく印刷処理を継続できる。According to the printing method of the thirteenth aspect, in the printing method of analyzing and printing the print data composed of a plurality of control commands sent from the information processing apparatus, the print data is received by a predetermined amount. Each time a response is returned to the information processing device to perform a handshake with the information processing device, the print data sent from the information processing device is analyzed to create drawing data in a predetermined page unit, and the analysis is performed. When processing that is expected to take a longer processing time than the amount of print data to be processed is controlled so that a response is returned to the information processing device at a response timing that is later than the normal response timing. When the processing that is expected to take a longer processing time than the amount of data to be processed is being performed, the printing processing can be continued without stopping.
【0145】請求項14に係る印刷システムによれば、
複数の制御命令から構成される印刷データを送信する情
報処理装置と、該情報処理装置から送られてくる印刷デ
ータを解析して印刷する印刷装置と備えた印刷システム
において、前記印刷装置は、前記印刷データを所定量受
信する毎に前記情報処理装置に応答を返して前記情報処
理装置とハンドシェイクを行うデータ入力手段と、前記
情報処理装置から送られてきた前記印刷データを解析し
て所定ページ単位の描画データを作成する翻訳手段と、
該翻訳手段によって解析される印刷データの量に比べて
処理時間が長くかかると予測される処理を行っている場
合、前記データ入力手段が通常の応答タイミングよりも
遅い応答タイミングで前記情報処理装置に応答を返すよ
うに制御する制御手段とを備えたので、解析するデータ
量に比べて処理時間が多くかかると予測される処理を行
っている場合、停止させることなく印刷処理を継続でき
る。According to the printing system of claim 14,
In a printing system including an information processing device that transmits print data composed of a plurality of control commands, and a printing device that analyzes and prints the print data sent from the information processing device, the printing device comprises: A data input unit that returns a response to the information processing apparatus each time a predetermined amount of print data is received to perform a handshake with the information processing apparatus; and analyzes the print data sent from the information processing apparatus to analyze a predetermined page. A translation means for creating unit drawing data,
When performing processing that is expected to take a longer processing time than the amount of print data analyzed by the translation means, the data input means causes the information processing apparatus to respond to the information processing device at a response timing slower than the normal response timing. Since the control means for controlling so as to return the response is provided, the printing process can be continued without stopping when performing the process which is expected to take a longer processing time than the analyzed data amount.
【0146】請求項15に係る情報処理装置によれば、
複数の制御命令から構成される印刷データを印刷装置に
送信し、該印刷装置に前記印刷データを解析させて印刷
を行わせる情報処理装置において、前記印刷データを所
定量受信する毎に前記印刷装置から送られる応答を受け
取って前記印刷装置とハンドシェイクを行うデータ出力
手段を備え、前記印刷装置は、解析する印刷データの量
に比べて処理時間が長くかかると予測される処理を行っ
ている場合、前記データ出力手段に対して通常の応答タ
イミングよりも遅い応答タイミングで応答を返し、前記
データ出力手段は、通常の応答タイミングよりも遅い応
答タイミングで応答を受ける毎に前記印刷データを送信
するので、印刷装置が解析するデータ量に比べて処理時
間が多くかかると予測される処理を行っている場合、停
止させることなく印刷処理を継続させることができる。According to the information processing apparatus of claim 15,
An information processing apparatus that transmits print data including a plurality of control commands to a printing apparatus and causes the printing apparatus to analyze the print data and perform printing, the printing apparatus each time a predetermined amount of the print data is received. A data output unit for performing a handshake with the printing apparatus by receiving a response sent from the printing apparatus, and the printing apparatus performs a process that is expected to take a long processing time compared to the amount of print data to be analyzed. Since the response is returned to the data output unit at a later response timing than the normal response timing, and the data output unit transmits the print data every time the response is received at a later response timing than the normal response timing. If you are performing a process that is expected to take more processing time than the amount of data analyzed by the printing device, do not stop It can be continued printing process.
【0147】請求項16に係る記憶媒体によれば、情報
処理装置から送られてくる複数の制御命令から構成され
る印刷データを解析して印刷するプログラムを格納した
印刷装置に使用される記憶媒体であって、前記印刷デー
タを所定量受信する毎に前記情報処理装置に応答を返し
て前記情報処理装置とハンドシェイクを行う通信モジュ
ールと、前記情報処理装置から送られてきた前記印刷デ
ータを解析して所定ページ単位の描画データを作成する
作成モジュールと、前記解析される印刷データの量に比
べて処理時間が長くかかると予測される処理を行ってい
る場合、通常の応答タイミングよりも遅い応答タイミン
グで前記情報処理装置に応答を返すように制御する制御
モジュールとを含むプログラムを格納したので、汎用性
のある印刷装置に適用できる。According to the storage medium of the sixteenth aspect, the storage medium used in the printing apparatus that stores a program for analyzing and printing print data composed of a plurality of control commands sent from the information processing apparatus. A communication module that returns a response to the information processing apparatus and performs a handshake with the information processing apparatus each time a predetermined amount of the print data is received, and analyzes the print data sent from the information processing apparatus. If a processing is performed that creates a drawing data in predetermined page units and processing that is expected to take a longer processing time than the amount of print data to be analyzed, a response that is slower than the normal response timing Since a program including a control module that controls to return a response to the information processing device at a timing is stored, You can use.
【図1】第1の実施の形態における印刷装置の構成を示
すブロック図である。FIG. 1 is a block diagram illustrating a configuration of a printing device according to a first embodiment.
【図2】印刷装置の操作パネルの外観を示す正面図であ
る。FIG. 2 is a front view illustrating an appearance of an operation panel of the printing apparatus.
【図3】印刷装置のセットアップメニューの構成を示す
説明図である。FIG. 3 is an explanatory diagram showing a configuration of a setup menu of the printing apparatus.
【図4】印刷装置のデータ受信シーケンスを表すセント
ロニクスI/F上の信号を示すタイミングチャートであ
る。FIG. 4 is a timing chart showing signals on a Centronics I / F representing a data reception sequence of the printing apparatus.
【図5】印刷装置のセットアップメニュー変更処理手順
を示すフローチャートである。FIG. 5 is a flowchart illustrating a setup menu change processing procedure of the printing apparatus.
【図6】印刷装置の印刷データ取り込み処理手順を示す
フローチャートである。FIG. 6 is a flowchart illustrating a print data import processing procedure of the printing apparatus.
【図7】セットアップメニューの構成を示す説明図であ
る。FIG. 7 is an explanatory diagram showing a configuration of a setup menu.
【図8】印刷装置のセットアップメニュー変更処理手順
を示すフローチャートである。FIG. 8 is a flowchart showing a setup menu change processing procedure of the printing apparatus.
【図9】印刷装置の印刷データ取り込み処理手順を示す
フローチャートである。FIG. 9 is a flowchart illustrating a print data acquisition processing procedure of the printing apparatus.
【図10】セットアップメニューの構成を示す説明図で
ある。FIG. 10 is an explanatory diagram showing a configuration of a setup menu.
【図11】印刷装置のセットアップメニュー変更処理手
順を示すフローチャートである。FIG. 11 is a flowchart illustrating a setup menu change processing procedure of the printing apparatus.
【図12】印刷装置の印刷データ取り込み処理手順を示
すフローチャートである。FIG. 12 is a flowchart illustrating a print data acquisition processing procedure of the printing apparatus.
【図13】記憶媒体のメモリマップを示す説明図であ
る。FIG. 13 is an explanatory diagram showing a memory map of a storage medium.
【図14】従来の印刷装置の構成を示すブロック図であ
る。FIG. 14 is a block diagram showing a configuration of a conventional printing apparatus.
【図15】従来の印刷装置の印刷データ取り込み処理手
順を示すフローチャートである。FIG. 15 is a flowchart illustrating a print data import processing procedure of a conventional printing apparatus.
101 印刷装置 102 ホストコンピュータ 104 データ入力手段 105 受信バッファ 106 翻訳手段 107 ページ制御部 111 制御手段 112 操作パネル 101 printing device 102 host computer 104 data input means 105 reception buffer 106 translation means 107 page control section 111 control means 112 operation panel
Claims (16)
御命令から構成される印刷データを解析して印刷する印
刷装置において、 前記印刷データを所定量受信する毎に前記情報処理装置
に応答を返して前記情報処理装置とハンドシェイクを行
うデータ入力手段と、 前記情報処理装置から送られてきた前記印刷データを解
析して所定ページ単位の描画データを作成する翻訳手段
と、 該翻訳手段によって解析される印刷データの量に比べて
処理時間が長くかかると予測される処理を行っている場
合、前記データ入力手段が通常の応答タイミングよりも
遅い応答タイミングで前記情報処理装置に応答を返すよ
うに制御する制御手段とを備えたことを特徴とする印刷
装置。1. A printing apparatus that analyzes and prints print data composed of a plurality of control commands sent from an information processing apparatus, and sends a response to the information processing apparatus each time a predetermined amount of the print data is received. Data input means for returning and handshaking with the information processing apparatus, translation means for analyzing the print data sent from the information processing apparatus to create drawing data in a predetermined page unit, and analysis by the translation means When performing a process that is expected to take a longer processing time than the amount of print data to be printed, the data input unit returns a response to the information processing device at a response timing later than the normal response timing. A printing apparatus comprising: a control unit that controls the printing apparatus.
に比べて処理時間が長くかかると予測される処理を行っ
ている場合、前記通常の応答タイミングよりも遅い応答
タイミングに設定することが可能な遅延設定手段を備え
たことを特徴とする請求項1記載の印刷装置。2. When performing processing that is expected to take a longer processing time than the amount of print data analyzed by the translation unit, it is possible to set a response timing that is later than the normal response timing. 2. The printing apparatus according to claim 1, further comprising different delay setting means.
に比べて処理時間が長くかかると予測される処理を行っ
ている場合、複数のタイミング値の中から1つを選択し
て前記遅い応答タイミングに設定するタイミング値設定
手段を備えたことを特徴とする請求項1記載の印刷装
置。3. When performing processing that is expected to take a longer processing time than the amount of print data analyzed by the translation means, one of a plurality of timing values is selected and the slow response is selected. The printing apparatus according to claim 1, further comprising a timing value setting unit that sets the timing.
遅延設定手段を設けたことを特徴とする請求項2記載の
印刷装置。4. The printing apparatus according to claim 2, further comprising an operation panel, wherein the delay setting unit is provided on the operation panel.
から送られてきた印刷データによって設定されることを
特徴とする請求項2記載の印刷装置。5. The printing apparatus according to claim 2, wherein the delay setting unit is set by print data sent from the information processing apparatus.
る処理の内容に応じて前記応答タイミングを決定するこ
とを特徴とする請求項1記載の印刷装置。6. The printing apparatus according to claim 1, wherein the control unit determines the response timing according to the content of a process predicted to take a long time.
該マクロのデータ量に応じて前記応答タイミングを決定
することを特徴とする請求項6記載の印刷装置。7. The content of the processing is execution of a macro,
7. The printing apparatus according to claim 6, wherein the response timing is determined according to the data amount of the macro.
を特徴とする請求項6記載の印刷装置。8. The printing apparatus according to claim 6, wherein the content of the processing is the number of copies.
記遅い応答タイミングで前記情報処理装置に応答を返す
ように制御することを特徴とする請求項1記載の印刷装
置。9. A registration means for registering a macro is provided, and the control means controls to return a response to the information processing device at the late response timing when executing the registered macro. The printing device according to claim 1.
以上である場合、遅い応答タイミングで前記情報処理装
置に応答を返すように制御することを特徴とする請求項
1記載の印刷装置。10. The printing apparatus according to claim 1, wherein the control unit controls to return a response to the information processing apparatus at a slow response timing when the number of copies is equal to or larger than a predetermined value.
けないときにハングアップする場合、前記遅延設定手段
は遅い応答タイミングに設定されることを特徴とする請
求項2記載の印刷装置。11. The printing apparatus according to claim 2, wherein when the information processing apparatus hangs up when no response is received for a predetermined time, the delay setting unit is set to a late response timing.
きでもハングアップしない場合、前記遅延設定手段は遅
い応答タイミングに設定されないことを特徴とする請求
項2記載の印刷装置。12. The printing apparatus according to claim 2, wherein when the information processing apparatus does not hang up even when no response is received, the delay setting unit is not set to a late response timing.
制御命令から構成される印刷データを解析して印刷する
印刷方法において、 前記印刷データを所定量受信する毎に前記情報処理装置
に応答を返して前記情報処理装置とハンドシェイクを行
う際、 前記情報処理装置から送られてきた前記印刷データを解
析して所定ページ単位の描画データを作成し、 前記解析される印刷データの量に比べて処理時間が長く
かかると予測される処理を行っている場合、通常の応答
タイミングよりも遅い応答タイミングで前記情報処理装
置に応答を返すように制御することを特徴とする印刷方
法。13. A printing method for analyzing and printing print data composed of a plurality of control commands sent from an information processing device, wherein a response is sent to the information processing device every time a predetermined amount of the print data is received. When returning and performing a handshake with the information processing device, the print data sent from the information processing device is analyzed to create drawing data in a predetermined page unit, and compared with the amount of the analyzed print data. A printing method, wherein when a process that is expected to take a long processing time is being performed, control is performed so that a response is returned to the information processing device at a response timing that is later than a normal response timing.
ータを送信する情報処理装置と、該情報処理装置から送
られてくる印刷データを解析して印刷する印刷装置と備
えた印刷システムにおいて、 前記印刷装置は、 前記印刷データを所定量受信する毎に前記情報処理装置
に応答を返して前記情報処理装置とハンドシェイクを行
うデータ入力手段と、 前記情報処理装置から送られてきた前記印刷データを解
析して所定ページ単位の描画データを作成する翻訳手段
と、 該翻訳手段によって解析される印刷データの量に比べて
処理時間が長くかかると予測される処理を行っている場
合、前記データ入力手段が通常の応答タイミングよりも
遅い応答タイミングで前記情報処理装置に応答を返すよ
うに制御する制御手段とを備えたことを特徴とする印刷
システム。14. A printing system comprising: an information processing device that transmits print data composed of a plurality of control commands; and a printing device that analyzes and prints the print data sent from the information processing device, The printing device sends back a response to the information processing device each time it receives a predetermined amount of the print data, and performs a handshake with the information processing device, and the print data sent from the information processing device. In the case where a translation unit that analyzes and creates drawing data in a predetermined page unit and a process that is expected to take a longer processing time than the amount of print data analyzed by the translation unit are performed, the data input unit Control means for controlling the information processing device to return a response at a later response timing than a normal response timing. System.
ータを印刷装置に送信し、該印刷装置に前記印刷データ
を解析させて印刷を行わせる情報処理装置において、 前記印刷データを所定量受信する毎に前記印刷装置から
送られる応答を受け取って前記印刷装置とハンドシェイ
クを行うデータ出力手段を備え、 前記印刷装置は、解析する印刷データの量に比べて処理
時間が長くかかると予測される処理を行っている場合、
前記データ出力手段に対して通常の応答タイミングより
も遅い応答タイミングで応答を返し、 前記データ出力手段は、通常の応答タイミングよりも遅
い応答タイミングで応答を受ける毎に前記印刷データを
送信することを特徴とする情報処理装置。15. An information processing apparatus for transmitting print data composed of a plurality of control commands to a printing apparatus, causing the printing apparatus to analyze the print data to perform printing, and receive a predetermined amount of the print data. A process for receiving a response sent from the printing device for each and performing a handshake with the printing device, wherein the printing device is expected to take a longer processing time than the amount of print data to be analyzed If you are doing
A response is returned to the data output unit at a response timing that is later than a normal response timing, and the data output unit transmits the print data each time a response is received at a response timing that is later than the normal response timing. A characteristic information processing device.
制御命令から構成される印刷データを解析して印刷する
プログラムを格納した印刷装置に使用される記憶媒体で
あって、 前記印刷データを所定量受信する毎に前記情報処理装置
に応答を返して前記情報処理装置とハンドシェイクを行
う通信モジュールと、 前記情報処理装置から送られてきた前記印刷データを解
析して所定ページ単位の描画データを作成する作成モジ
ュールと、 前記解析される印刷データの量に比べて処理時間が長く
かかると予測される処理を行っている場合、通常の応答
タイミングよりも遅い応答タイミングで前記情報処理装
置に応答を返すように制御する制御モジュールとを含む
プログラムを格納したことを特徴とする記憶媒体。16. A storage medium used in a printing device, which stores a program for analyzing and printing print data composed of a plurality of control commands sent from an information processing device, wherein the print data is stored in the storage medium. A communication module that returns a response to the information processing device each time a fixed amount is received and performs a handshake with the information processing device, and analyzes the print data sent from the information processing device to generate drawing data in predetermined page units. When performing a process that is expected to take longer than the amount of print data to be analyzed with the creating module to create, a response is sent to the information processing device at a response timing that is later than the normal response timing. A storage medium storing a program including a control module for controlling to return.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8160940A JPH09314929A (en) | 1996-05-31 | 1996-05-31 | Printing device, printing method, printing system, information processing device, and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8160940A JPH09314929A (en) | 1996-05-31 | 1996-05-31 | Printing device, printing method, printing system, information processing device, and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH09314929A true JPH09314929A (en) | 1997-12-09 |
Family
ID=15725523
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8160940A Pending JPH09314929A (en) | 1996-05-31 | 1996-05-31 | Printing device, printing method, printing system, information processing device, and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH09314929A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7256904B1 (en) | 1999-03-10 | 2007-08-14 | Seiko Epson Corporation | Device for dynamically varying the priority of various processing in a printer |
| WO2017037800A1 (en) * | 2015-08-28 | 2017-03-09 | 株式会社日立製作所 | Storage system and control method for same |
-
1996
- 1996-05-31 JP JP8160940A patent/JPH09314929A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7256904B1 (en) | 1999-03-10 | 2007-08-14 | Seiko Epson Corporation | Device for dynamically varying the priority of various processing in a printer |
| WO2017037800A1 (en) * | 2015-08-28 | 2017-03-09 | 株式会社日立製作所 | Storage system and control method for same |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4817474B2 (en) | Data processing apparatus, data processing method, and storage medium storing computer-readable program | |
| JP3529206B2 (en) | Printing device job processing method | |
| US7969600B2 (en) | Printing of linked data in a network | |
| CN101739572B (en) | Terminal apparatus to control a printing operation and method thereof | |
| US5617518A (en) | Output control method and system of servers | |
| JPH1070626A (en) | Digital copying machine with improved operation characteristic | |
| JP2011062979A (en) | Printing device, print processing method, and program | |
| JPH09314929A (en) | Printing device, printing method, printing system, information processing device, and storage medium | |
| JP4072286B2 (en) | Output control device, control method, storage medium | |
| US7973956B2 (en) | High speed printing method and apparatus | |
| JPH1127448A (en) | Digital MFP | |
| JP4400097B2 (en) | Printing apparatus, printing control method, program, and recording medium | |
| JP3583879B2 (en) | Printer control device | |
| JPH10173897A (en) | Image processing apparatus, image processing system, and image processing method | |
| JP2003058387A (en) | Image processor, program and management unit | |
| JP2000263873A (en) | Printing method and apparatus, and storage medium | |
| JPH1049319A (en) | Printer | |
| JPH11205379A (en) | Data transmission system | |
| JP4086380B2 (en) | Image forming apparatus, data processing method for image forming apparatus, and storage medium storing computer-readable program | |
| JPH04319467A (en) | Printing device | |
| JP2003087476A (en) | Information processing system, method and apparatus, program, and storage medium | |
| JP3604885B2 (en) | Image processing apparatus, data processing method for image processing apparatus, and storage medium storing computer-readable program | |
| JPH09212320A (en) | Information processing apparatus, printing apparatus, information processing system, and data processing method of information processing system | |
| JP2000156760A (en) | Image processing apparatus, image processing system, and storage medium | |
| JP2002370409A (en) | Printing system, printing control method, program, and storage medium |