JPH09226209A - Method for controlling print of host base printer system and the host base printer system - Google Patents

Method for controlling print of host base printer system and the host base printer system

Info

Publication number
JPH09226209A
JPH09226209A JP8038369A JP3836996A JPH09226209A JP H09226209 A JPH09226209 A JP H09226209A JP 8038369 A JP8038369 A JP 8038369A JP 3836996 A JP3836996 A JP 3836996A JP H09226209 A JPH09226209 A JP H09226209A
Authority
JP
Japan
Prior art keywords
printing
host
printer
image data
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8038369A
Other languages
Japanese (ja)
Inventor
Masatoshi Kadota
政敏 門田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP8038369A priority Critical patent/JPH09226209A/en
Priority to US08/807,811 priority patent/US6388760B2/en
Publication of JPH09226209A publication Critical patent/JPH09226209A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To smoothly reset from the state when printing is failed. SOLUTION: In the case of print overrun in which the printing speed is faster than a data transfer speed to fail printing by monitoring an error state, 'busy' signal is output for sufficiently long time, resetting process is executed, and then the data fed from a host computer is read and discarded up to a form feed FF (S10 to S30). In the case of print failure of paper jam without print overrun, the jam is removed, and then if error is recovered, it is reset to S10 after resetting (S40 to S70). On the other hand, if error recovery is OFF, it is divided to the progress to S20 or the progress to S70 according to whether it is during printer-on-the-fly or not so that the data writing and reading of reception buffer are simultaneously proceeded since the data amount of the corresponding page is large.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ホストベースプリ
ンタシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a host-based printer system.

【0002】[0002]

【従来の技術】近年、ホストコンピュータ側でビットマ
ップデータあるいはビットマップデータを圧縮したデー
タ等の印刷用の画像データを形成し、該画像データをプ
リンタに出力して印刷を行う様にしたホストベースプリ
ンタシステムが提案されるようになってきている。
2. Description of the Related Art In recent years, a host base in which image data for printing such as bit map data or data obtained by compressing bit map data is formed on a host computer side and the image data is output to a printer for printing. Printer systems have been proposed.

【0003】こうしたホストベースプリンタシステムに
おいては、プリンタ側のバッファにホスト側から入力さ
れる画像データを一時格納するようになっている。そし
て、ページプリンタの場合、1ページ分の画像データが
少ないときはページエンドまでデータを格納したところ
で印刷部を起動して当該ページの印刷を行うが、バッフ
ァの容量に対して1ページ分の画像データの量が大きい
ときは、バッファが一杯になったところで印刷部を起動
するようになっている。以下、ページエンドの転送を受
ける前に印刷を開始する場合を「プリンタ・オン・ザ・
フライ」と呼ぶ。
In such a host-based printer system, image data input from the host side is temporarily stored in a buffer on the printer side. In the case of a page printer, when the image data for one page is small, the printing unit is activated to print the page when the data is stored up to the page end. When the amount of data is large, the printing section is activated when the buffer is full. Below, if you want to start printing before receiving the page end transfer, refer to "Printer on the
Call it "Fly".

【0004】ページプリンタにおいて、プリンタ・オン
・ザ・フライにより印刷を行っているとき、ホスト側か
らの画像データの転送速度が遅いとページ途中でバッフ
ァが空になってしまう場合がある。この様な状態になる
と、プリンタ側では印刷ができなくなる。この様な印刷
不能状態を、以下の説明では、「プリント・オーバーラ
ン」と呼ぶ。
In the page printer, when printing is performed by printer-on-the-fly, the buffer may become empty in the middle of the page if the transfer speed of the image data from the host side is slow. In such a state, printing cannot be performed on the printer side. Such an unprintable state is referred to as "print overrun" in the following description.

【0005】[0005]

【発明が解決しようとする課題】こうした事情におい
て、例えば、プリンタ・オン・ザ・フライ中にペーパー
ジャム等によって印刷に失敗した場合、ホストはページ
途中で画像データの出力を停止することとなる。そし
て、プリンタから詰まった紙を除去してリセットしたと
き、ホストは画像データの続きを出力するのに対して、
プリンタ側はその前半のデータをリセットしてしまって
いるので、後半だけを送られてきても、例えばデータ長
の指定なしにいきなり画像データが受信される状態のよ
うに、データ処理が不可能となってイリーガル・コマン
ド・エラーとなってしまう。
Under these circumstances, for example, when printing fails due to a paper jam or the like during printer-on-the-fly, the host stops outputting image data in the middle of a page. Then, when the jammed paper is removed from the printer and reset, the host outputs the continuation of the image data.
Since the printer has reset the first half of the data, even if only the second half is sent, it is impossible to process the data, for example, in the state where image data is received suddenly without specifying the data length. I get an illegal command error.

【0006】また、こうした印刷失敗に対して、印刷に
失敗したページの画像データをホスト側から再度送り直
すようにしたエラーリカバリ機能を備える場合もある
が、プリント・オーバーランの場合、プリンタのバッフ
ァ容量と、1ページ分のデータの大きさと、ホストから
の転送速度との関係で再び印刷失敗となる。このため、
従来のホストベースシステムでは、エラーリカバリ機能
をセットした場合に、プリント・オーバーランを起こす
とそこから印刷失敗を繰り返して実質的に機能が停止し
てしまうという問題がある。
In response to such a print failure, an error recovery function may be provided so that the image data of the page for which printing failed can be sent again from the host side. However, in the case of print overrun, the printer buffer is used. Printing fails again due to the relationship between the capacity, the size of data for one page, and the transfer rate from the host. For this reason,
In the conventional host-based system, when the error recovery function is set, if a print overrun occurs, printing fails repeatedly from there and the function is substantially stopped.

【0007】そこで、本発明は、ホストベースプリンタ
システムにおいて、印刷を失敗した場合に、その状態か
らスムーズに復帰できるようにすることを目的とする。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to enable a host-based printer system to smoothly return from the state when printing fails.

【0008】[0008]

【課題を解決するための手段、発明の実施の形態及び発
明の効果】かかる目的を達成するため、本発明は、ホス
トコンピュータ側で印刷用の画像データを形成し、該画
像データをプリンタに出力して印刷を行う様にしたホス
トベースプリンタシステムの印刷制御方法において、プ
リンタ側で印刷失敗が生じた場合に、該印刷失敗が生じ
たページを印刷するための画像データをホスト側から出
力完了していない場合には、プリンタが印刷失敗から復
帰した後にホスト側から入力される画像データの内、当
該ページの画像データの末尾までをプリンタ側において
読み捨てるようにしたことを特徴とする。
Means for Solving the Problems, Embodiments of the Invention and Effects of the Invention In order to achieve the above object, the present invention forms image data for printing on the host computer side and outputs the image data to a printer. In the print control method of the host-based printer system configured to perform the printing by the above, when the printing failure occurs on the printer side, the output of the image data for printing the page where the printing failure occurs is completed from the host side. If not, the printer is configured to read and discard up to the end of the image data of the page among the image data input from the host after the printer recovers from the printing failure.

【0009】この印刷制御方法によれば、例えばプリン
ト・オーバーランによって印刷に失敗した場合、プリン
タが印刷失敗から復帰した後にホスト側から入力される
画像データの内、当該ページの画像データの末尾までを
プリンタ側において読み捨てるので、仮にエラーリカバ
リ機能がセットされていたとしても、再び同じページを
印刷することがなく、プリント・オーバー・ランを繰り
返すことがない。また、ペーパージャムがプリンタ・オ
ン・ザ・フライ中に生じた場合であって、エラーリカバ
リ機能がオフにされているとき、ホスト側は当該ページ
の続きを出力してくるが、これもページエンドまで読み
捨てるので、イリーガル・コマンド・エラーとならな
い。従って、本発明によれば、印刷失敗によってそのま
まシステムが停止してしまうことがない。
According to this print control method, when printing fails due to print overrun, for example, up to the end of the image data of the page among the image data input from the host side after the printer recovers from the printing failure. Is discarded on the printer side, even if the error recovery function is set, the same page is not printed again and print over run is not repeated. Also, if a paper jam occurs during printer on the fly, and the error recovery function is turned off, the host side outputs the continuation of the page, but this is also the page end. It will not be an illegal command error because it will be discarded. Therefore, according to the present invention, the system does not stop as it is due to printing failure.

【0010】なお、このホストベースプリンタシステム
の印刷制御方法において、前記印刷失敗が繰り返し生じ
ないタイプのものであり、かつ、印刷失敗の際には印刷
失敗ページを再度印刷するエラーリカバリ機能がセット
されているときは、プリンタが印刷失敗から復帰した
後、ホスト側は当該印刷失敗ページの先頭から画像デー
タを送り直すようにし、プリンタは該送り直された画像
データに基づいて印刷を実行する様にしておくとよい。
In the print control method for this host-based printer system, the print failure is of a type that does not occur repeatedly, and an error recovery function for printing the print failure page again when the print failure occurs is set. In this case, after the printer recovers from the print failure, the host side retransmits the image data from the top of the print failure page, and the printer executes printing based on the retransmitted image data. You should keep it.

【0011】これは、エラーリカバリ機能をセットした
場合、ホストは画像データを途中からではなくページの
先頭から送り直すので、これをそのまま印刷することが
できるからである。そして、次に説明する様なプリント
・オーバー・ランではなく、ペーパージャムの様な場合
には、再度同じ失敗を繰り返さないので、エラーリカバ
リによって印刷に失敗したページを補うことができるか
らである。
This is because when the error recovery function is set, the host re-sends the image data not from the middle but from the beginning of the page, so that the image data can be printed as it is. Then, in the case of a paper jam instead of the print overrun as described below, the same failure is not repeated again, so that the page failed in printing can be compensated by the error recovery.

【0012】また、本発明においては、ホストコンピュ
ータ側で印刷用の画像データを形成し、該画像データを
プリンタに出力して印刷を行う様にしたホストベースプ
リンタシステムの印刷制御方法において、プリンタで印
刷失敗が生じた場合に、該印刷失敗が繰り返し生じるタ
イプのものか否かを判別し、繰り返し生じるタイプのも
のである場合には、プリンタが印刷失敗から復帰した後
にホスト側から入力される画像データの内、当該ページ
の画像データの末尾までをプリンタ側において読み捨て
るようにしたことを特徴とするホストベースプリンタシ
ステムの印刷制御方法も完成している。
Further, in the present invention, in the print control method of the host-based printer system, the image data for printing is formed on the host computer side, and the image data is output to the printer for printing. When a print failure occurs, it is determined whether the print failure is of a type that repeatedly occurs. If the print failure is of a type that repeatedly occurs, an image input from the host side after the printer recovers from the print failure. A print control method for a host-based printer system, which is characterized in that the printer reads and discards up to the end of the image data of the page among the data, has been completed.

【0013】この印刷制御方法によれば、プリンタでプ
リント・オーバー・ラン・エラーが生じた場合には、プ
リンタがリセットされた後にホスト側から続けて入力さ
れる画像データの内、当該ページの画像データの末尾ま
でをプリンタ側において読み捨てる。従って、ホストか
ら当該ページの残りのデータが送られてきてもこれを無
視するのでイリーガル・コマンド・エラーを起こすこと
がない。また、仮にエラーリカバリ機能がセットされて
いてホストが再度同じページのデータを送り直してきて
も、これは無視されるので同じ失敗を繰り返さない。従
って、エラーリカバリ機能がセットされていようといま
いと、いずれの場合も、システムが止まってしまうこと
がない。
According to this print control method, when a print overrun error occurs in the printer, the image of the page in the image data continuously input from the host side after the printer is reset. The end of the data is read and discarded on the printer side. Therefore, even if the rest of the data on the page is sent from the host, it is ignored and no illegal command error occurs. Further, even if the error recovery function is set and the host sends the same page data again, this is ignored and the same failure is not repeated. Therefore, the system does not stop in any case, whether the error recovery function is set or not.

【0014】また、本発明は、ホストコンピュータ側で
印刷用の画像データを形成し、該画像データをプリンタ
に出力して印刷を行う様にしたホストベースプリンタシ
ステムの印刷制御方法において、プリンタで印刷失敗が
生じた場合に、該印刷失敗が生じたページを印刷するた
めの画像データをホスト側から出力完了していない場合
には、ホストコンピュータは、プリンタに対してリセッ
ト処理を指令した後に当該ページの先頭から画像データ
を出力するようにしたことを特徴とするホストベースプ
リンタシステムの印刷制御方法も完成している。
Further, according to the present invention, in the print control method of the host-based printer system, the host computer side forms image data for printing and outputs the image data to the printer for printing. If a failure occurs and the image data for printing the page for which the printing failure has occurred has not been output from the host side, the host computer instructs the printer to perform a reset process and then the page concerned. A print control method for a host-based printer system, which is characterized in that image data is output from the beginning of the printer, has been completed.

【0015】この印刷制御方法によれば、例えばプリン
タ・オン・ザ・フライ中にプリンタで印刷失敗が生じた
場合、プリンタ復帰によるデータ出力再開時には、続き
のデータではなく、ページの先頭からのデータを出力す
る。従って、例えば、エラーリカバリ機能がオンなら、
当該ページを先頭から再度送り直す。また、エラーリカ
バリ機能がオフなら、出力し残しているページの残りの
データは捨ててしまい、次のページの先頭からデータを
出力する。そして、プリンタに対してはリセットを指示
しているので、イリーガル・コマンド・エラーを生じる
ことはない。
According to this print control method, for example, when a printer fails to print during printer-on-the-fly, when the data output is restarted by returning to the printer, the data from the beginning of the page, not the continuous data, is resumed. Is output. So, for example, if the error recovery feature is on,
Resend the page from the beginning. If the error recovery function is turned off, the remaining data of the page that has been left unprinted is discarded, and the data is output from the beginning of the next page. Since the printer is instructed to reset, an illegal command error does not occur.

【0016】また、本発明は、ホストコンピュータ側で
印刷用の画像データを形成し、該画像データをプリンタ
に出力して印刷を行う様にしたホストベースプリンタシ
ステムの印刷制御方法において、プリンタで印刷失敗が
生じた場合に、該印刷失敗が繰り返し生じるタイプのも
のか否かを判別し、繰り返し生じるタイプのものである
場合には、プリンタに対してリセット処理を指令した後
に次のページの先頭から画像データを出力するようにし
たことを特徴とするホストベースプリンタシステムの印
刷制御方法をも完成している。
Further, according to the present invention, in the print control method of the host-based printer system, the host computer side forms image data for printing and outputs the image data to the printer for printing. When a failure occurs, it is determined whether or not the printing failure is of the type that repeatedly occurs. If the printing failure is of the type that repeatedly occurs, the printer is instructed to perform reset processing and then the next page starts from the beginning. A print control method for a host-based printer system characterized by outputting image data has also been completed.

【0017】この印刷制御方法によれば、プリント・オ
ーバーラン・エラーが生じた場合は、プリンタをリセッ
トすると共に、次のページの先頭から画像データを出力
する。この結果、エラーリカバリ機能がセットされてい
ても、プリント・オーバーラン・エラーの様な原因の場
合には、当該機能が無視されることとなり、同じ失敗を
繰り返してシステムを停止させてしまうということがな
い。
According to this print control method, when a print overrun error occurs, the printer is reset and the image data is output from the beginning of the next page. As a result, even if the error recovery function is set, if the cause is a print overrun error, the function will be ignored, and the system will stop after repeating the same failure. There is no.

【0018】この様に、本発明の各方法によれば、いず
れも、ホストベースプリンタシステムにおいて印刷失敗
からの復帰をスムーズにすることができる。これら本発
明の方法は、次の様な構成のホストベースプリンタシス
テムによって実現することができる。
As described above, according to each of the methods of the present invention, it is possible to smoothly recover from the printing failure in the host-based printer system. These methods of the present invention can be realized by a host-based printer system having the following configuration.

【0019】即ち、一つは、ホストコンピュータ側で印
刷用の画像データを形成し、該画像データをプリンタに
出力して印刷を行う様にしたホストベースプリンタシス
テムにおいて、印刷失敗が生じた場合に、該印刷失敗が
生じたページを印刷するための画像データをホスト側か
ら出力完了しているか否かを判別する出力完了判別手段
と、該出力完了判別手段によって出力未完了と判別され
た場合には、プリンタが印刷失敗から復帰した後にホス
ト側から入力される画像データの内、当該ページの画像
データの末尾までを読み捨てさせる読み捨て手段とを備
えさせたことを特徴とするホストベースプリンタシステ
ムである。ここで、このホストベースプリンタシステム
において、印刷を失敗した後、プリンタが復帰したら再
度同一ページの画像データをホストコンピュータから出
力させるエラーリカバリ機能をセットするエラーリカバ
リ手段と、印刷失敗の原因が、当該印刷失敗を繰り返し
生じるタイプのものか否かを判別する印刷失敗原因判別
手段と、該印刷失敗原因判別手段によって印刷失敗が繰
り返し生じるタイプのものであると判別された場合に
は、前記エラーリカバリ手段によりエラーリカバリ機能
がセットされているときであっても、同一ページについ
ての印刷動作を実行しないようにするエラーリカバリ無
視手段とを備えさせるとよい。
That is, one is that in a host-based printer system in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, when a print failure occurs. An output completion determining means for determining whether or not the image data for printing the page for which the printing failure has occurred is completed from the host side, and when the output completion determining means determines that the output is incomplete. Is a host-based printer system characterized by including a read-and-discard unit for reading and discarding up to the end of the image data of the page out of the image data input from the host side after the printer recovers from printing failure. . Here, in this host-based printer system, the error recovery means for setting the error recovery function for outputting the image data of the same page from the host computer again when the printer returns after printing has failed, and the cause of the print failure is A print failure cause determining means for determining whether or not the print failure type is repeatedly generated, and the error recovery means if the print failure cause determining means determines that the print failure type is repeatedly generated. Therefore, even if the error recovery function is set, it is preferable to provide an error recovery ignoring unit that does not execute the printing operation for the same page.

【0020】また、この他、ホストコンピュータ側で印
刷用の画像データを形成し、該画像データをプリンタに
出力して印刷を行う様にしたホストベースプリンタシス
テムにおいて、印刷失敗が生じた場合に、該印刷失敗が
繰り返し生じるタイプのものか否かを判別する失敗原因
判別手段と、該印刷失敗原因判別手段によって印刷失敗
が繰り返し生じるタイプのものであると判別された場合
には、プリンタが印刷失敗から復帰した後にホスト側か
ら入力される画像データの内、当該ページの画像データ
の末尾までを読み捨てさせる読み捨て手段とを備えさせ
たことを特徴とするホストベースプリンタシステムも有
効である。
In addition, in a host-based printer system in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, if a printing failure occurs, A failure cause determining unit that determines whether or not the print failure is of a type that repeatedly occurs, and if the print failure cause determining unit determines that the print failure is of a type that causes repeated print failure, the printer fails to print. The host-based printer system is also effective, which is provided with a read-and-discard means for discarding the image data of the page up to the end of the image data input from the host side after returning from the above.

【0021】さらに、ホストコンピュータ側で印刷用の
画像データを形成し、該画像データをプリンタに出力し
て印刷を行う様にしたホストベースプリンタシステムに
おいて、印刷失敗が生じた場合に、該印刷失敗が生じた
ページを印刷するための画像データをホスト側から出力
完了しているか否かを判別する出力完了判別手段と、該
出力完了判別手段によって出力未完了と判別された場合
には、プリンタをリセットした後、当該ページの画像デ
ータを先頭から再出力させる再出力手段とを備えること
を特徴とするホストベースプリンタシステムも有効であ
る。
Further, in a host-based printer system in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, if printing fails, the printing fails. Output completion determining means for determining whether the output of the image data for printing the generated page from the host side is completed, and if the output completion determining means determines that the output is not completed, the printer is A host-based printer system is also effective, which is provided with a re-output unit that re-outputs the image data of the page from the beginning after resetting.

【0022】加えて、ホストコンピュータ側で印刷用の
画像データを形成し、該画像データをプリンタに出力し
て印刷を行う様にしたホストベースプリンタシステムに
おいて、印刷失敗が生じた場合に、該印刷失敗が繰り返
し生じるタイプのものか否かを判別する失敗原因判別手
段と、該印刷失敗原因判別手段によって印刷失敗が繰り
返し生じるタイプのものであると判別された場合には、
プリンタをリセットした後、当該ページの次のページの
画像データを先頭から出力するページ飛ばし手段とを備
えることを特徴とするホストベースプリンタシステムも
有効である。
In addition, in a host-based printer system in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, when printing failure occurs, the printing is performed. Failure cause determination means for determining whether or not the type of failure repeatedly occurs, and when the printing failure cause determination means determines that the type of printing failure is repeated,
A host-based printer system is also effective, which is provided with a page skipping unit that outputs the image data of the next page of the page from the beginning after the printer is reset.

【0023】[0023]

【実施例】以下、本発明の実施の形態を一層分かりやす
くするため、いくつかの実施例を図面と共に説明する。
実施例のホストベースプリンタシステム10は、図1に
示す様に、印刷ホスト20と、レーザプリンタ30とで
構成されている。印刷ホスト20とレーザプリンタ30
とはパラレルデータ送受信用ケーブルを介して電気的に
接続されており、印刷ホスト20側でドットイメージの
画像データを形成し、これをプリンタ30で受信して印
刷を行うように構成されている。印刷ホスト20から送
信されてくる画像データは圧縮されており、プリンタ3
0はこれを伸張しつつ印刷を実行することになる。な
お、パラレルデータ送受信用ケーブルは、IEEE12
84規格に適合するものであり、プリンタ30側からホ
スト20へとデータを送信できるようになっている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Some embodiments will be described below with reference to the drawings in order to make the embodiments of the present invention easier to understand.
As shown in FIG. 1, the host-based printer system 10 of the embodiment includes a print host 20 and a laser printer 30. Print host 20 and laser printer 30
Are electrically connected via a parallel data transmission / reception cable, and are configured so that the print host 20 side forms image data of a dot image, and the printer 30 receives the image data to perform printing. The image data transmitted from the print host 20 is compressed, and the printer 3
When 0 is set, this is expanded and printing is executed. The parallel data transmission / reception cable is IEEE12
It complies with the 84 standard, and data can be transmitted from the printer 30 side to the host 20.

【0024】印刷ホスト20は、CPU,RAM,RO
M,ハードディスク,入出力インタフェース等を備える
パーソナルコンピュータで構成され、出力データを作成
するための機能的構成要素として、アプリケーション2
1と、プリンタドライバ22とを備えている。アプリケ
ーション21は、例えば、印刷機能を有するワープロソ
フトやCADソフト等である。プリンタドライバ22
は、印刷データをプリンタ30に見合った画像データに
展開し、圧縮する処理を行う。この圧縮された画像デー
タが出力データとなる。
The print host 20 includes a CPU, a RAM, and a RO.
The application 2 is composed of a personal computer including an M, a hard disk, an input / output interface, etc., and is a functional component for creating output data.
1 and a printer driver 22. The application 21 is, for example, word processing software or CAD software having a printing function. Printer driver 22
Performs a process of expanding the print data into image data suitable for the printer 30 and compressing the image data. This compressed image data becomes output data.

【0025】印刷ホスト20はまた、出力データリスト
26に出力データを蓄えたり、出力データリスト26の
出力データをプリンタ30へ転送する役目をするスプー
ラ23を備えている。スプーラ23はプリンタドライバ
22の機能の一つと考えてもよいし、独立した機能と考
えてもよい。出力データリスト26は、具体的にはハー
ドディスク等の記憶装置により構成される。
The print host 20 also includes a spooler 23 that stores output data in the output data list 26 and transfers the output data in the output data list 26 to the printer 30. The spooler 23 may be considered as one of the functions of the printer driver 22, or may be considered as an independent function. The output data list 26 is specifically configured by a storage device such as a hard disk.

【0026】そして、印刷ホスト20は、出力データリ
スト26を管理するため、格納スタートページ管理カウ
ンタ27、格納エンドページ管理カウンタ28及び出力
完了ページ管理カウンタ29を備えている。格納スター
トページ管理カウンタ27及び格納エンドページ管理カ
ウンタ28は、出力データリスト26に格納されている
データにおいて、それぞれ最初のページと最後のページ
を示す。ただし、格納エンドページ管理カウンタ28
は、ページ単位として完成されている最後のページを示
す。出力完了ページ管理カウンタ29は、プリンタ30
に既に出力した最後のページを示す。各カウンタ27,
28,29は、具体的にはRAMにより構成される。
The print host 20 is provided with a storage start page management counter 27, a storage end page management counter 28, and an output completion page management counter 29 for managing the output data list 26. The storage start page management counter 27 and the storage end page management counter 28 indicate the first page and the last page of the data stored in the output data list 26, respectively. However, the storage end page management counter 28
Indicates the last page completed as a page unit. The output completion page management counter 29 is the printer 30.
Shows the last page already output. Each counter 27,
28 and 29 are specifically configured by RAM.

【0027】また、この印刷ホスト20は、プリンタ3
0において印刷失敗を引き起こした場合、当該印刷失敗
ページのデータを再度送り直すエラーリカバリ機能をセ
ットすることができるようになっている。このエラーリ
カバリ機能は、ユーザーの希望により、オン/オフいず
れかをセットしておくことができる。なお、エラーリカ
バリ機能のオン/オフはホスト20のRAMに格納され
る。そして、このエラーリカバリ機能のオン/オフ情報
は、プリンタ30へコマンドと共に送られる様になって
いる。
The print host 20 is the printer 3
When a print failure is caused at 0, the error recovery function for resending the data of the print failure page can be set. This error recovery function can be set to either ON or OFF according to the user's request. The on / off state of the error recovery function is stored in the RAM of the host 20. Then, the ON / OFF information of the error recovery function is sent to the printer 30 together with the command.

【0028】印刷ホスト20は、上述の管理カウンタ2
7〜29に基づいて、出力データリスト26内のデータ
の管理と、出力ページの管理とを行っている。具体的に
は、出力完了ページ管理カウンタ29は、1ページ分の
データを出力するとインクリメントされ、次に出力すべ
きページを特定する。従って、前述のエラーリカバリ機
能がオンの場合に印刷失敗が起こった場合には、出力完
了ページ管理カウンタ29を一つ前に戻し、同一ページ
を再度出力するようにするのである。
The print host 20 uses the above-mentioned management counter 2
The data in the output data list 26 and the output pages are managed based on 7 to 29. Specifically, the output completion page management counter 29 is incremented when one page of data is output, and specifies the page to be output next. Therefore, if a printing failure occurs when the error recovery function is turned on, the output completion page management counter 29 is returned to the previous one and the same page is output again.

【0029】また、格納エンドページ管理カウンタ28
は、出力データリスト26にデータを1ページ分格納す
る毎にインクリメントされる。この格納エンドページ管
理カウンタ28が出力完了ページ管理カウンタ29より
も大きい値の場合にだけデータ出力が実行される。
Further, the storage end page management counter 28
Is incremented every time one page of data is stored in the output data list 26. Data output is executed only when the storage end page management counter 28 has a value larger than the output completion page management counter 29.

【0030】さらに、格納スタートページ管理カウンタ
27は、後述するプリンタ30側の不揮発性メモリ53
の記憶内容に基づいて印刷完了ページを特定し、印刷完
了ページ+1となるようにセットされる。印刷ホスト2
0は、この格納スタートページ管理カウンタ27により
特定されるページ以前のデータについては出力データリ
スト26から削除し、格納領域の効率利用を図ってい
る。
Further, the storage start page management counter 27 has a nonvolatile memory 53 on the printer 30 side which will be described later.
The print completion page is specified based on the stored contents of the print completion page and set to be the print completion page + 1. Print host 2
0 deletes the data before the page specified by the storage start page management counter 27 from the output data list 26 so as to efficiently use the storage area.

【0031】プリンタ30は、レーザ光方式で印刷する
印刷機構や用紙送り機構等の諸機構を含むプリンタエン
ジン31と、このプリンタエンジン31の諸機構を制御
するコントロールユニット32を有するものであるが、
この種のプリンタエンジン31自体は既存のレーザプリ
ンタと同様であるので、その詳しい説明は省略する。
The printer 30 has a printer engine 31 including various mechanisms such as a printing mechanism and a paper feeding mechanism for printing by a laser light system, and a control unit 32 for controlling the various mechanisms of the printer engine 31.
This type of printer engine 31 itself is the same as an existing laser printer, and therefore its detailed description is omitted.

【0032】次に、コントロールユニット32は、図2
に示す様に、CPU40、このCPU40にクロックパ
ルスを供給する水晶発振器41、印刷制御プログラム等
を内蔵したROM42、種々のワークメモリ等が設けら
れるRAM43、タイマ割り込みのためのタイマ44、
印刷ホスト20との送受信のための送受信回路45、受
信バッファ46、受信バッファ46から圧縮された画像
データを受けて復号する復号化回路47、この復号化回
路47で復号化された画像データを受けて一時的に格納
してシリアル画像データとして出力するラインバッファ
48、受信バッファ46とラインバッファ48とを直接
アクセス可能なDMAコントローラ49、プリンタ駆動
用I/O50、プリンタ駆動回路51及び操作パネル5
2等が設けられている。また、コントロールユニット3
2には、印刷枚数の累積値を記憶する不揮発性メモリ5
3も備えられている。
Next, the control unit 32 is shown in FIG.
1, a CPU 40, a crystal oscillator 41 for supplying clock pulses to the CPU 40, a ROM 42 containing a print control program and the like, a RAM 43 provided with various work memories and the like, a timer 44 for timer interruption,
A transmission / reception circuit 45 for transmission / reception to / from the print host 20, a reception buffer 46, a decoding circuit 47 for receiving and decoding compressed image data from the reception buffer 46, and receiving image data decoded by this decoding circuit 47. Line buffer 48 for temporarily storing and outputting as serial image data, a DMA controller 49 capable of directly accessing the reception buffer 46 and the line buffer 48, a printer driving I / O 50, a printer driving circuit 51, and an operation panel 5.
2 etc. are provided. Also, the control unit 3
A non-volatile memory 5 stores a cumulative value of the number of printed sheets.
3 is also provided.

【0033】ROM42、RAM43、送受信回路4
5、DMAコントローラ49、プリンタ駆動回路51及
び不揮発性メモリ53は、バス54を介してCPU40
に接続され、また、タイマ44、送受信回路45、プリ
ンタ駆動用I/O50及び復号化回路47は割り込み信
号ライン55を介してCPU40に接続されている。
ROM 42, RAM 43, transmitting / receiving circuit 4
5, the DMA controller 49, the printer drive circuit 51, and the non-volatile memory 53 are connected to the CPU 40 via the bus 54.
Further, the timer 44, the transmission / reception circuit 45, the printer driving I / O 50 and the decoding circuit 47 are connected to the CPU 40 via the interrupt signal line 55.

【0034】DMAコントローラ49は、受信バッファ
46とラインバッファ48とに夫々接続されると共に、
復号化回路47にも接続されている。印刷ホスト20か
ら送受信回路45を介して受信されたパラレルの圧縮さ
れた画像データは、DMAコントローラ49により受信
バッファ46に書き込まれ、DMAコントローラ49に
より受信バッファ46から読み出され、DMAコントロ
ーラ49により復号化回路47へ供給されて復号化さ
れ、その復号化されたドットイメージの画像データは、
復号化回路47からラインバッファ48へ供給され、ラ
インバッファ48からシリアルの画像データとしてプリ
ンタ駆動回路51へ供給され、そのドットイメージの画
像データに対応する駆動信号でプリンタエンジン31が
駆動されることになる。
The DMA controller 49 is connected to the reception buffer 46 and the line buffer 48, respectively, and
It is also connected to the decoding circuit 47. The parallel compressed image data received from the print host 20 via the transmission / reception circuit 45 is written in the reception buffer 46 by the DMA controller 49, read from the reception buffer 46 by the DMA controller 49, and decoded by the DMA controller 49. The image data of the decoded dot image supplied to the decoding circuit 47 is
It is supplied from the decoding circuit 47 to the line buffer 48, is supplied from the line buffer 48 as serial image data to the printer drive circuit 51, and the printer engine 31 is driven by a drive signal corresponding to the image data of the dot image. Become.

【0035】そして、1ページの印刷が完了すると、C
PU40により不揮発性メモリ53の累積値が1インク
リメントされる。また、プリンタエンジン31には、ジ
ャムの発生を検知するための紙詰まりセンサをはじめと
する各種のセンサ類35が備えられており、このセンサ
類の検知した情報はCPU40によって監視されてい
る。
When the printing of one page is completed, C
The PU 40 increments the cumulative value of the nonvolatile memory 53 by 1. Further, the printer engine 31 is provided with various sensors 35 such as a paper jam sensor for detecting the occurrence of a jam, and the information detected by the sensors is monitored by the CPU 40.

【0036】なお、受信バッファ46は、いわゆるリン
グバッファとして構成され、DMAコントローラ49
は、受信バッファ46内のリードポインタRPとライト
ポインタWPとを操作することでデータの書き込みと読
み出しとを制御している。ここで、模式図を用いてデー
タの読み出しアドレスを示すリードポインタRPとデー
タの書き込みアドレスを示すライトポインタWPとの関
係を説明しておく。
The receive buffer 46 is configured as a so-called ring buffer, and the DMA controller 49
Controls the writing and reading of data by operating the read pointer RP and the write pointer WP in the reception buffer 46. Here, the relationship between the read pointer RP indicating the data read address and the write pointer WP indicating the data write address will be described using a schematic diagram.

【0037】図3(A)〜(C)に示す様に、受信バッ
ファ46には矢印方向に図の下端からデータが書き込ま
れていくとする。そして、上端に達したら再び下端に戻
って上方へと書き込んでいくとする。データの読み出し
もこれと同様に下端から上端へと読み出し、再び下端へ
戻るようになっている。従って、ライトポインタWP及
びリードポインタRPも図の矢印方向に移動していくこ
とになる。そして、ライトポインタWPはリードポイン
タRPを追い抜くことができない関係にある。これは、
ライトポインタWPがリードポインタRPを追い抜くと
読み出されていないデータに新しいデータが上書きされ
ることとなるからである。また、リードポインタRPも
また、ライトポインタWPを追い抜くことができない関
係にある。これは、リードポインタRPがライトポイン
タWPを追い抜くと、データが書き込まれていない領域
からデータを読み出そうとすることになってしまうから
である。
As shown in FIGS. 3A to 3C, it is assumed that data is written in the receiving buffer 46 in the arrow direction from the lower end of the drawing. Then, when it reaches the upper end, it returns to the lower end and writes upward. Similarly to this, data is read from the lower end to the upper end, and then returns to the lower end again. Therefore, the write pointer WP and the read pointer RP also move in the arrow direction in the figure. Then, the write pointer WP is in a relationship that it cannot overtake the read pointer RP. this is,
This is because if the write pointer WP overtakes the read pointer RP, new data will be overwritten on unread data. In addition, the read pointer RP is also in a relationship in which it cannot pass the write pointer WP. This is because if the read pointer RP overtakes the write pointer WP, the data will be read out from the area where the data is not written.

【0038】このため、ライトポインタWPとリードポ
インタRPは、図3(A)〜(C)のいずれかの関係に
しかならない。なお、これらの図において、ハッチング
部分が読み出しを完了していないデータの格納されてい
る領域を意味する。(A)は、1ページ分のデータが受
信バッファ46の容量に比べて小さい場合に相当する。
このような場合には、データエンドに相当するフォーム
フィードコマンドFFまで書き込んでライトポインタW
Pが停止してからリードポインタRPが動き始め、デー
タの読み出しが行われる。
For this reason, the write pointer WP and the read pointer RP have only one of the relationships shown in FIGS. In these figures, the hatched portion means an area in which data that has not been read is stored. (A) corresponds to the case where the data for one page is smaller than the capacity of the reception buffer 46.
In such a case, write to the form feed command FF corresponding to the data end and write pointer W
After P stops, the read pointer RP starts to move and data is read.

【0039】また、(B)の場合は、1ページ分のデー
タが受信バッファ46の容量に比べて大きく、全部を格
納できないため、受信バッファ46が一杯になったとこ
ろでリードポインタRPを移動させながら読み出しを開
始し、読み出した後に書き込む状態となっているもの
で、プリンタ・オン・ザ・フライと呼ばれる状態に相当
する。この場合は、フォームフィードコマンドFFまで
データを書き込む前に読み出しが開始されるので、リー
ドポインタRPだけでなくライトポインタWPも移動し
続ける状態にある。リードポインタRPとライトポイン
タWPの関係においては、RP−1=WPとなったとき
に「BUSY」にしてデータが来ないようにされている
ので、ライトポインタWPがリードポインタRPを追い
越すことはない。
In the case of (B), since one page of data is larger than the capacity of the receiving buffer 46 and cannot be stored entirely, the read pointer RP is moved while the receiving buffer 46 is full. This is a state in which reading is started and writing is performed after reading, which corresponds to a state called printer-on-the-fly. In this case, since reading is started before writing data up to the form feed command FF, not only the read pointer RP but also the write pointer WP is in a state of continuously moving. In the relationship between the read pointer RP and the write pointer WP, when RP-1 = WP is set to "BUSY" so that data does not come, the write pointer WP does not pass the read pointer RP. .

【0040】これら(A),(B)は正常に印刷を行う
ことができる場合であるが、(C)の状態になると正常
な印刷ができなくなる。即ち、プリンタ・オン・ザ・フ
ライにおいてリードポインタRPがライトポインタWP
に追いついてしまった場合、両ポインタの移動速度の関
係から印刷不能状態になってしまうのである。これがプ
リント・オーバーランと呼ばれる状態である。この状態
になると、当該ページのデータが大き過ぎ、受信バッフ
ァ46の容量及びポインタWP,RPの移動速度の関係
から、再度印刷を行おうとしても再び印刷失敗を来すこ
ととなる。
In these cases (A) and (B), normal printing can be performed, but in the state (C), normal printing cannot be performed. That is, in the printer-on-the-fly, the read pointer RP is the write pointer WP.
If it catches up with, the printing cannot be performed due to the moving speed of both pointers. This is a state called print overrun. In this state, the data of the page is too large, and due to the relationship between the capacity of the receiving buffer 46 and the moving speed of the pointers WP and RP, even if an attempt is made to print again, printing will fail again.

【0041】以上より、リードポインタRPとライトポ
インタWPの位置関係から、次のことが判明する。 印刷開始時にライトポインタWPがリードポインタ
RPの直後にあるときは、プリンタ・オン・ザ・フライ
の状態にある。
From the above, the following is found from the positional relationship between the read pointer RP and the write pointer WP. When the write pointer WP is immediately after the read pointer RP at the start of printing, the printer is on the fly.

【0042】 印刷実行中にリードポインタRPがラ
イトポインタWPの直後にあるときは、プリント・オー
バーランの状態にある。 従って、印刷開始時の両ポインタの位置関係と、印刷実
行中の両ポインタの位置関係をチェックすることで、上
記,を検知することができることとなる。なお、
は、印刷実行中に両ポインタが共に動いているか否かで
チェックしてもよい。
When the read pointer RP is immediately after the write pointer WP during printing, the print overrun state is set. Therefore, the above can be detected by checking the positional relationship between the two pointers at the start of printing and the positional relationship between the two pointers during printing. In addition,
May check whether or not both pointers are moving during printing.

【0043】次に、実施例のホストベースプリンタシス
テム10におけるエラー監視制御の内容について説明す
る。本実施例では、プリンタ30側で、このエラー監視
制御処理を行っており、その詳細は図4の様に構成され
ている。以下、この図4の処理を第1実施例と呼ぶ。
Next, the contents of error monitoring control in the host-based printer system 10 of the embodiment will be described. In this embodiment, the error monitoring control processing is performed on the printer 30 side, and the details are configured as shown in FIG. Hereinafter, the processing of FIG. 4 will be referred to as the first embodiment.

【0044】第1実施例のエラー監視ルーチンでは、D
MAコントローラ49によるライトポインタWPとリー
ドポインタRPの移動状態をチェックし、の関係にあ
るか否か、即ち、プリント・オーバーランを起こしてい
るか否かを判定する(S10)。プリント・オーバーラ
ンを起こしていると判断された場合は、十分に長い時間
(例えば10秒程度)に渡って「BUSY」信号をホス
ト20側へ出力すると共にリセット処理を行う(S2
0)。そして、「BUSY」信号を停止した後でホスト
から送られて来るデータをフォームフィードFFまで読
み捨てる(S30)。
In the error monitoring routine of the first embodiment, D
The movement state of the write pointer WP and the read pointer RP by the MA controller 49 is checked, and it is determined whether or not there is a relationship, that is, whether or not print overrun has occurred (S10). When it is determined that the print overrun has occurred, the "BUSY" signal is output to the host 20 side and the reset process is performed for a sufficiently long time (for example, about 10 seconds) (S2).
0). Then, after stopping the "BUSY" signal, the data sent from the host is read to the form feed FF and discarded (S30).

【0045】S20により、ホスト20はデータの送信
を一旦停止することとなる。そして、「BUSY」信号
が消えることによってホスト20は再びデータの送信を
再開する。このとき、エラーリカバリ機能がオフにされ
ていると、エラーを起こしたページの途中から送信が再
開される。これは不完全なデータであるため、当該ペー
ジの末尾までを読み捨ててやり、イリーガル・コマンド
・エラーを起こさない様にするのである。
By S20, the host 20 temporarily stops the data transmission. Then, when the "BUSY" signal disappears, the host 20 resumes data transmission again. At this time, if the error recovery function is turned off, the transmission is restarted from the middle of the page in which the error occurred. Since this is incomplete data, the data up to the end of the page is discarded so that an illegal command error does not occur.

【0046】また、エラーリカバリ機能がオンの場合、
この送信再開において、プリント・オーバーランを起こ
したページのデータが再び送信されることとなる。この
場合はデータは完全なものが送られて来るのであるが、
上述の様に、プリント・オーバー・ランは繰り返し生じ
るエラーである。このため、S30にて最初に受信する
フォームフィードFFまでを読み捨て、プリント・オー
バーランを繰り返さない様にするのである。
When the error recovery function is on,
When the transmission is restarted, the data of the page that caused the print overrun is transmitted again. In this case, the complete data is sent,
As mentioned above, print overruns are recurring errors. For this reason, the form feed FF received first in S30 is discarded, and the print overrun is not repeated.

【0047】一方、S10にてプリント・オーバーラン
は起こしていないと判定された場合には、センサ類35
の内の紙詰まりセンサを確認し、ペーパージャムを起こ
していないかどうか判定する(S40)。ペーパージャ
ムを起こしている場合には、本体カバーを開いて詰まっ
た紙を除去し、ペーパージャム解除が行われるのを待つ
(S50)。
On the other hand, if it is determined in S10 that the print overrun has not occurred, the sensors 35
The paper jam sensor in the box is checked to determine whether or not a paper jam has occurred (S40). If a paper jam has occurred, the main body cover is opened to remove the jammed paper, and the paper jam is released (S50).

【0048】そして、ペーパージャムが解除したら、エ
ラーリカバリ機能がオンになっている場合は、リセット
後にS10へ戻る(S60,S70)。エラーリカバリ
機能がオンになっているか否かは、ホスト20からコマ
ンドと共に送られて来る情報により判断される。一方、
エラーリカバリ機能がオフの場合には、印刷開始時のポ
インタWP,RPの位置関係チェック結果等から、プリ
ンタ・オン・ザ・フライによる印刷実行中であったか否
かを判定する(S80)。プリンタ・オン・ザ・フライ
中であるならS20へ移行する。これは、エラーリカバ
リオフでかつプリンタ・オン・ザ・フライ中である場合
には、ホスト20はペーパージャムを起こしたページの
残りのデータを送信して来るので、これを読み捨てるた
めである。
After the paper jam is cleared, if the error recovery function is turned on, the process returns to S10 after resetting (S60, S70). Whether or not the error recovery function is turned on is determined by the information sent from the host 20 together with the command. on the other hand,
If the error recovery function is off, it is determined whether or not printing by the printer on the fly is being executed based on the result of checking the positional relationship between the pointers WP and RP at the start of printing (S80). If the printer is on the fly, the process proceeds to S20. This is because, when the error recovery is off and the printer is on the fly, the host 20 sends the remaining data of the paper jammed page and discards it.

【0049】一方、プリンタ・オン・ザ・フライ中でな
ければS70を経てS10へ戻る。プリンタ・オン・ザ
・フライ中でないので、ホスト20はペーパージャムを
起こしたページの次のページの先頭データから送信して
来るから、これは読み捨てなくてもよいからである。
On the other hand, if the printer is not on the fly, the process returns to S10 via S70. This is because the host 20 transmits from the head data of the page next to the page in which the paper jam has occurred because it is not in the printer-on-the-fly, and this need not be discarded.

【0050】なお、ペーパージャムの場合にはエラーリ
カバリオンのときに読み捨てを行わないようにしたの
は、ペーパージャムはデータ自体に基づくエラーではな
く、繰り返し発生するタイプのエラーでないから、エラ
ーリカバリオンの場合は、再度印刷を行う様にするため
である。
In the case of the paper jam, the reading and discarding is not performed when the error recovery is on because the paper jam is not an error based on the data itself and is not a type of error that occurs repeatedly. In the case of, it is for printing again.

【0051】この様に、本実施例においては、プリント
・オーバーラン及びペーパージャムにより印刷を失敗し
た場合、イリーガル・コマンド・エラーを引き起こした
りせず、また、印刷失敗を繰り返すこともなく、その状
態からスムーズに復帰することができる。
As described above, in this embodiment, when the printing fails due to the print overrun and the paper jam, the illegal command error is not caused, and the printing failure is not repeated and the status is kept. Can be smoothly returned from.

【0052】次に、第2実施例について説明する。第2
実施例は、ホスト20側でエラー監視制御を行う場合で
ある。このため、ホスト20側の印刷制御ルーチンにお
いては、図5に示す様に、プリンタ30からのステータ
ス情報の有無をチェックしている(S110)。
Next, the second embodiment will be described. Second
The embodiment is a case where error monitoring control is performed on the host 20 side. Therefore, in the print control routine on the host 20 side, as shown in FIG. 5, the presence or absence of status information from the printer 30 is checked (S110).

【0053】本実施例では、プリンタ30からは、少な
くとも「ペーパージャム」、「プリント・オーバーラ
ン」及び「プリンタ・オン・ザ・フライ」を判別するこ
とのできる情報がステータス情報としてホスト20へ送
信されるように構成してある。プリンタ30は、ペーパ
ージャム、プリントオーバーラン等の状態を、第1実施
例と同様に、センサ類35の内の紙詰まりセンサの信号
チェックや、ライトポインタWPとリードポインタRP
の関係により検知している。
In this embodiment, the printer 30 sends at least information capable of discriminating "paper jam", "print overrun" and "printer on the fly" to the host 20 as status information. It is configured to be performed. The printer 30 checks the state of paper jam, print overrun, etc., as in the first embodiment, for the signal check of the paper jam sensor in the sensors 35, the write pointer WP and the read pointer RP.
It is detected by the relationship.

【0054】プリンタ30からのステータス情報がなけ
れば、出力データリスト26に展開した出力データを送
信する(S120)。しかし、プリンタ30からのステ
ータス情報がある場合には、これがペーパージャムを意
味するものか否かを判別する(S130)。
If there is no status information from the printer 30, the output data expanded in the output data list 26 is transmitted (S120). However, if there is status information from the printer 30, it is determined whether this means a paper jam (S130).

【0055】ペーパージャムを意味するものである場合
には、さらに、プリンタ・オン・ザ・フライ中であるか
否かを判別する(S140)。プリンタ・オン・ザ・フ
ライ中であるなら、さらに、エラーリカバリオンとなっ
ているか否かを確認し(S150)、エラーリカバリオ
ンの場合には、プリンタ20に対してリセットを指令す
るため、インプット・プライム信号(Input Pr
ime;IP)をLowにする(S160)。そして、
ペーパージャムを起こしたページの先頭からデータを再
送する(S170)。これに対し、エラーリカバリオン
でない場合には、IP=0を出力した後(S180)、
現在送信中のデータのページエンドまでのデータを捨て
る(S190)。
If it means a paper jam, it is further determined whether or not the printer is on the fly (S140). If the printer is on-the-fly, it is further confirmed whether or not the error recovery is on (S150), and if the error recovery is on, the printer 20 is instructed to reset and the input is performed.・ Prime signal (Input Pr
ime; IP) is set to Low (S160). And
Data is retransmitted from the top of the page where the paper jam has occurred (S170). On the other hand, if the error recovery is not ON, after outputting IP = 0 (S180),
The data up to the page end of the data currently being transmitted is discarded (S190).

【0056】一方、ペーパージャムを起こしているがプ
リンタ・オン・ザ・フライ中でない場合には(S140
=NO)、エラーリカバリオンの場合はプリンタ・オン
・ザ・フライ中と同様にS160,S170を実行する
が、エラーリカバリオンでない場合には、IP=0の出
力のみを行う(S200,S210)。これは、プリン
タ・オン・ザ・フライでないなら、ペーパージャムを起
こしたページのデータは出力し終っているので、ページ
エンドまでを捨てるという処理が不要だからである。
On the other hand, if the paper is jammed but the printer is not on the fly (S140)
= NO), if error recovery is on, S160 and S170 are executed in the same manner as during printer-on-the-fly, but if error recovery is not on, only IP = 0 is output (S200, S210). . This is because if the printer is not the printer on the fly, the data of the page that has caused the paper jam has already been output, and therefore the process of discarding up to the page end is unnecessary.

【0057】ステータス情報がペーパージャムでない場
合は、プリント・オーバー・ランか否かを確認する(S
130→S220)。そして、プリント・オーバー・ラ
ンである場合には、エラーリカバリ機能のオン/オフに
関係なく、IP=0を出力した後、ページエンドまでの
データを削除する処理を実行する(S220→S180
→S190)。これは、プリント・オーバー・ランは再
発するエラーであるため、エラーリカバリオンであって
もこれを無視するためである。
If the status information is not the paper jam, it is confirmed whether or not the print is overrun (S).
130 → S220). Then, in the case of print over run, regardless of whether the error recovery function is turned on or off, the process of deleting the data up to the page end is executed after outputting IP = 0 (S220 → S180).
→ S190). This is because the print over run is a recurring error and is ignored even when the error recovery is on.

【0058】プリンタ20側では、IP=0を受信する
とリセット処理を行い、受信バッファ46及びラインバ
ッファ48がクリアされる。そして、ペーパージャムの
場合であってエラーリカバリオンなら、ペーパージャム
を起こしたページのデータを再び受信してこれを再印刷
する。エラーリカバリオフの場合には、次のページの先
頭から受信開始する。一方、プリント・オーバーランで
ある場合には、エラーリカバリのオン/オフに関係な
く、次のページの先頭からデータを受信し始め、1ペー
ジ飛ばして印刷を行うことになる。
On the printer 20 side, when IP = 0 is received, reset processing is performed and the reception buffer 46 and the line buffer 48 are cleared. In the case of paper jam and error recovery is on, the data of the page in which the paper jam has occurred is received again and reprinted. When the error recovery is off, the reception starts from the top of the next page. On the other hand, in the case of print overrun, regardless of whether the error recovery is on or off, data reception starts from the beginning of the next page and printing is skipped by one page.

【0059】この様に、本実施例においても、プリント
・オーバーラン及びペーパージャムにより印刷を失敗し
た場合、イリーガル・コマンド・エラーを引き起こした
りせず、また、印刷失敗を繰り返すこともなく、その状
態からスムーズに復帰することができる。
As described above, also in the present embodiment, when the printing fails due to the print overrun and the paper jam, the illegal command error is not caused, and the printing failure is not repeated and the state is kept. Can be smoothly returned from.

【0060】以上本発明の一実施例について説明してき
たが、本発明は何らこの実施例に限定されるものではな
く、その要旨を逸脱しない範囲内で種々なる態様にて実
施できることはもちろんである。
Although one embodiment of the present invention has been described above, the present invention is not limited to this embodiment, and it is needless to say that the present invention can be implemented in various modes without departing from the scope of the invention. .

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

【図1】 実施例のホストベースプリンタシステムの概
略構成図である。
FIG. 1 is a schematic configuration diagram of a host-based printer system according to an embodiment.

【図2】 実施例のホストベースプリンタシステムの概
略構成図である。
FIG. 2 is a schematic configuration diagram of a host-based printer system according to an embodiment.

【図3】 実施例のホストベースプリンタシステムにお
ける受信バッファとライトポインタ、リードポインタと
の関係を示す模式図である。
FIG. 3 is a schematic diagram showing a relationship between a reception buffer, a write pointer, and a read pointer in the host-based printer system of the embodiment.

【図4】 第1実施例におけるプリンタ側の制御処理内
容を示すフローチャートである。
FIG. 4 is a flowchart showing the control processing contents on the printer side in the first embodiment.

【図5】 第2実施例におけるホスト側の制御処理内容
を示すフローチャートである。
FIG. 5 is a flowchart showing the contents of control processing on the host side in the second embodiment.

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

10・・・ホストベースプリンタシステム、20・・・
印刷ホスト、21・・・アプリケーション、22・・・
プリンタドライバ、23・・・スプーラ、26・・・出
力データリスト、27・・・格納スタートページ管理カ
ウンタ、28・・・格納エンドページ管理カウンタ、2
9・・・出力完了ページ管理カウンタ、30・・・レー
ザプリンタ、31・・・プリンタ本体、32・・・コン
トロールユニット、35・・・センサ類、40・・・C
PU、41・・・水晶発振器、42・・・ROM、43
・・・RAM、44・・・タイマ、45・・・送受信回
路、46・・・受信バッファ、47・・・復号化回路、
48・・・ラインバッファ、49・・・DMAコントロ
ーラ、50・・・プリンタ駆動用I/O、51・・・プ
リンタ駆動回路、52・・・操作パネル、53・・・不
揮発性メモリ、54・・・バス、55・・・信号ライ
ン。
10 ... Host-based printer system, 20 ...
Print host, 21 ... Application, 22 ...
Printer driver, 23 ... Spooler, 26 ... Output data list, 27 ... Storage start page management counter, 28 ... Storage end page management counter, 2
9 ... Output completion page management counter, 30 ... Laser printer, 31 ... Printer body, 32 ... Control unit, 35 ... Sensors, 40 ... C
PU, 41 ... Crystal oscillator, 42 ... ROM, 43
... RAM, 44 ... Timer, 45 ... Transceiver circuit, 46 ... Receive buffer, 47 ... Decoding circuit,
48 ... Line buffer, 49 ... DMA controller, 50 ... Printer driving I / O, 51 ... Printer driving circuit, 52 ... Operation panel, 53 ... Non-volatile memory, 54 ... ..Bus, 55 ... signal lines.

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータ側で印刷用の画像デ
ータを形成し、該画像データをプリンタに出力して印刷
を行う様にしたホストベースプリンタシステムの印刷制
御方法において、 プリンタ側で印刷失敗が生じた場合に、該印刷失敗が生
じたページを印刷するための画像データをホスト側から
出力完了していない場合には、プリンタが印刷失敗から
復帰した後にホスト側から入力される画像データの内、
当該ページの画像データの末尾までをプリンタ側におい
て読み捨てるようにしたことを特徴とするホストベース
プリンタシステムの印刷制御方法。
1. In a print control method of a host-based printer system, in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, a printing failure occurs on the printer side. In the case where the image data for printing the page in which the printing failure has occurred has not been output from the host side, the image data input from the host side after the printer returns from the printing failure,
A print control method for a host-based printer system, wherein the printer reads and discards up to the end of the image data of the page.
【請求項2】 請求項1記載のホストベースプリンタシ
ステムの印刷制御方法において、前記印刷失敗が繰り返
し生じないタイプのものであり、かつ、印刷失敗の際に
は印刷失敗ページを再度印刷するエラーリカバリ機能が
セットされているときは、プリンタが印刷失敗から復帰
した後、ホスト側は当該印刷失敗ページの先頭から画像
データを送り直すようにし、プリンタは該送り直された
画像データに基づいて印刷を実行する様にしたことを特
徴とするホストベースプリンタシステムの印刷制御方
法。
2. A print control method for a host-based printer system according to claim 1, wherein the print failure is of a type that does not occur repeatedly, and when a print failure occurs, an error recovery is performed to print a print failure page again. When the function is set, after the printer recovers from the printing failure, the host side resends the image data from the beginning of the printing failure page, and the printer prints based on the resent image data. A print control method for a host-based printer system characterized by being executed.
【請求項3】 ホストコンピュータ側で印刷用の画像デ
ータを形成し、該画像データをプリンタに出力して印刷
を行う様にしたホストベースプリンタシステムの印刷制
御方法において、 プリンタで印刷失敗が生じた場合に、該印刷失敗が繰り
返し生じるタイプのものか否かを判別し、繰り返し生じ
るタイプのものである場合には、プリンタが印刷失敗か
ら復帰した後にホスト側から入力される画像データの
内、当該ページの画像データの末尾までをプリンタ側に
おいて読み捨てるようにしたことを特徴とするホストベ
ースプリンタシステムの印刷制御方法。
3. In a print control method of a host-based printer system, in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, a printing failure occurs in the printer. In this case, it is determined whether or not the print failure is of the type that repeatedly occurs, and if the print failure is of the type that repeatedly occurs, the image data input from the host side after the printer recovers from the print failure, A print control method for a host-based printer system, wherein the printer reads and discards up to the end of the image data of the page.
【請求項4】 ホストコンピュータ側で印刷用の画像デ
ータを形成し、該画像データをプリンタに出力して印刷
を行う様にしたホストベースプリンタシステムの印刷制
御方法において、 プリンタで印刷失敗が生じた場合に、該印刷失敗が生じ
たページを印刷するための画像データをホスト側から出
力完了していない場合には、ホストコンピュータは、プ
リンタに対してリセット処理を指令した後に当該ページ
の先頭から画像データを出力するようにしたことを特徴
とするホストベースプリンタシステムの印刷制御方法。
4. In a print control method of a host-based printer system, in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, a printing failure occurs in the printer. In this case, if the output of the image data for printing the page in which the printing failure has occurred is not completed from the host side, the host computer instructs the printer to perform the reset process and then the image is printed from the top of the page. A print control method for a host-based printer system, which is characterized by outputting data.
【請求項5】 ホストコンピュータ側で印刷用の画像デ
ータを形成し、該画像データをプリンタに出力して印刷
を行う様にしたホストベースプリンタシステムの印刷制
御方法において、 プリンタで印刷失敗が生じた場合に、該印刷失敗が繰り
返し生じるタイプのものか否かを判別し、繰り返し生じ
るタイプのものである場合には、プリンタに対してリセ
ット処理を指令した後に次のページの先頭から画像デー
タを出力するようにしたことを特徴とするホストベース
プリンタシステムの印刷制御方法。
5. In a print control method of a host-based printer system in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, a print failure occurs in the printer. In this case, it is determined whether or not the printing failure is of the type that repeatedly occurs, and if it is of the type of repeated printing, image data is output from the beginning of the next page after instructing the printer to perform reset processing. A print control method for a host-based printer system, which is characterized in that
【請求項6】 ホストコンピュータ側で印刷用の画像デ
ータを形成し、該画像データをプリンタに出力して印刷
を行う様にしたホストベースプリンタシステムにおい
て、 印刷失敗が生じた場合に、該印刷失敗が生じたページを
印刷するための画像データをホスト側から出力完了して
いるか否かを判別する出力完了判別手段と、 該出力完了判別手段によって出力未完了と判別された場
合には、プリンタが印刷失敗から復帰した後にホスト側
から入力される画像データの内、当該ページの画像デー
タの末尾までを読み捨てさせる読み捨て手段とを備えさ
せたことを特徴とするホストベースプリンタシステム。
6. In a host-based printer system in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, when the printing failure occurs, the printing failure occurs. Output completion determining means for determining whether the output of the image data for printing the page in which the error occurs from the host side is complete, and when the output completion determining means determines that the output is incomplete, the printer A host-based printer system comprising: a read-and-discard unit for reading and discarding up to the end of the image data of the page out of the image data input from the host side after recovering from a printing failure.
【請求項7】 請求項6記載のホストベースプリンタシ
ステムにおいて、 印刷を失敗した後、プリンタが復帰したら再度同一ペー
ジの画像データをホストコンピュータから出力させるエ
ラーリカバリ機能をセットするエラーリカバリ手段と、 印刷失敗の原因が、当該印刷失敗を繰り返し生じるタイ
プのものか否かを判別する印刷失敗原因判別手段と、 該印刷失敗原因判別手段によって印刷失敗が繰り返し生
じるタイプのものであると判別された場合には、前記エ
ラーリカバリ手段によりエラーリカバリ機能がセットさ
れているときであっても、同一ページについての印刷動
作を実行しないようにするエラーリカバリ無視手段とを
備えることを特徴とするホストベースプリンタシステ
ム。
7. The host-based printer system according to claim 6, further comprising an error recovery means for setting an error recovery function for outputting the image data of the same page from the host computer again when the printer returns after the printing has failed. When the cause of the failure is a type of print failure cause determining unit that determines whether the type of print failure occurs repeatedly, and when the print failure cause determining unit determines that the type of print failure occurs repeatedly The host-based printer system further comprises: an error recovery ignoring unit that does not execute the printing operation for the same page even when the error recovery function is set by the error recovery unit.
【請求項8】 ホストコンピュータ側で印刷用の画像デ
ータを形成し、該画像データをプリンタに出力して印刷
を行う様にしたホストベースプリンタシステムにおい
て、 印刷失敗が生じた場合に、該印刷失敗が繰り返し生じる
タイプのものか否かを判別する失敗原因判別手段と、 該印刷失敗原因判別手段によって印刷失敗が繰り返し生
じるタイプのものであると判別された場合には、プリン
タが印刷失敗から復帰した後にホスト側から入力される
画像データの内、当該ページの画像データの末尾までを
読み捨てさせる読み捨て手段とを備えさせたことを特徴
とするホストベースプリンタシステム。
8. In a host-based printer system in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, when the printing failure occurs, the printing failure occurs. Cause for determining whether or not is a type that repeatedly occurs, and when the print failure cause determining means determines that the type is a type in which print failure occurs repeatedly, the printer has recovered from the print failure. A host-based printer system, comprising: a read-and-discard unit for reading and discarding up to the end of the image data of the page among image data input later from the host side.
【請求項9】 ホストコンピュータ側で印刷用の画像デ
ータを形成し、該画像データをプリンタに出力して印刷
を行う様にしたホストベースプリンタシステムにおい
て、 印刷失敗が生じた場合に、該印刷失敗が生じたページを
印刷するための画像データをホスト側から出力完了して
いるか否かを判別する出力完了判別手段と、 該出力完了判別手段によって出力未完了と判別された場
合には、プリンタをリセットした後、当該ページの画像
データを先頭から再出力させる再出力手段とを備えるこ
とを特徴とするホストベースプリンタシステム。
9. In a host-based printer system in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, when the printing failure occurs, the printing failure occurs. Output completion determining means for determining whether the output of the image data for printing the generated page from the host side has been completed, and if the output completion determining means determines that the output is not completed, the printer is A host-based printer system, comprising: a re-output unit that re-outputs the image data of the page from the beginning after resetting.
【請求項10】 ホストコンピュータ側で印刷用の画像
データを形成し、該画像データをプリンタに出力して印
刷を行う様にしたホストベースプリンタシステムにおい
て、 印刷失敗が生じた場合に、該印刷失敗が繰り返し生じる
タイプのものか否かを判別する失敗原因判別手段と、 該印刷失敗原因判別手段によって印刷失敗が繰り返し生
じるタイプのものであると判別された場合には、プリン
タをリセットした後、当該ページの次のページの画像デ
ータを先頭から出力するページ飛ばし手段とを備えるこ
とを特徴とするホストベースプリンタシステム。
10. In a host-based printer system in which image data for printing is formed on the host computer side and the image data is output to a printer for printing, when the printing failure occurs, the printing failure occurs. Is a type that repeatedly occurs, and if the printing failure cause determination unit determines that the type of printing failure repeatedly occurs, after resetting the printer, A host-based printer system, comprising: a page skipping unit that outputs image data of a page next to the page from the beginning.
JP8038369A 1996-02-26 1996-02-26 Method for controlling print of host base printer system and the host base printer system Pending JPH09226209A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP8038369A JPH09226209A (en) 1996-02-26 1996-02-26 Method for controlling print of host base printer system and the host base printer system
US08/807,811 US6388760B2 (en) 1996-02-26 1997-02-26 Host-based printing system and printing control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8038369A JPH09226209A (en) 1996-02-26 1996-02-26 Method for controlling print of host base printer system and the host base printer system

Publications (1)

Publication Number Publication Date
JPH09226209A true JPH09226209A (en) 1997-09-02

Family

ID=12523375

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8038369A Pending JPH09226209A (en) 1996-02-26 1996-02-26 Method for controlling print of host base printer system and the host base printer system

Country Status (1)

Country Link
JP (1) JPH09226209A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100322567B1 (en) * 1998-04-02 2002-04-17 윤종용 Method for controlling printing of printer
US7869063B2 (en) 2005-06-08 2011-01-11 Seiko Epson Corporation Printing apparatus, printer control method, printer control program, and printing system
JP2016115147A (en) * 2014-12-15 2016-06-23 富士ゼロックス株式会社 Print control apparatus, printing system, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100322567B1 (en) * 1998-04-02 2002-04-17 윤종용 Method for controlling printing of printer
US7869063B2 (en) 2005-06-08 2011-01-11 Seiko Epson Corporation Printing apparatus, printer control method, printer control program, and printing system
JP2016115147A (en) * 2014-12-15 2016-06-23 富士ゼロックス株式会社 Print control apparatus, printing system, and program

Similar Documents

Publication Publication Date Title
US6388760B2 (en) Host-based printing system and printing control method thereof
JP2577553B2 (en) Terminal device
JP3546935B2 (en) Printing system and host device of the system
JP2820220B2 (en) Printer / processor control method
US7515286B2 (en) Printer, control method for the same, and control device
US6304335B1 (en) Printing system for dividing a page into blocks
JPH07323643A (en) Error control device of printer
JPH03224778A (en) Printing apparatus
JP4532993B2 (en) Printing system and control method thereof, printing method, host device, and printer
JPH09226209A (en) Method for controlling print of host base printer system and the host base printer system
US6052204A (en) Output apparatus and output method
US7880917B2 (en) Image forming apparatus and print system
JPH03155974A (en) Printing system and error recovery method thereof
JPH09237168A (en) Printing control method in host base printer system, host base printer system and printing host
JP4306973B2 (en) Printing control apparatus and data processing method
JP3400672B2 (en) PRINTING APPARATUS, PRINTING SYSTEM, AND DUPLEX MANAGEMENT METHOD
JP4364475B2 (en) Printing device
JP3083251B2 (en) Page printer
JPS63187766A (en) Terminal equipment
JP2006035533A (en) Image forming apparatus
JP3080310B2 (en) Document processing device
JPH0262267A (en) Printer
JP3204850B2 (en) Printing apparatus and printing control method
JP2745514B2 (en) Printer control device
JP2007011819A (en) Printing control device