JP2000353068A - Printer and print control method - Google Patents

Printer and print control method

Info

Publication number
JP2000353068A
JP2000353068A JP11163912A JP16391299A JP2000353068A JP 2000353068 A JP2000353068 A JP 2000353068A JP 11163912 A JP11163912 A JP 11163912A JP 16391299 A JP16391299 A JP 16391299A JP 2000353068 A JP2000353068 A JP 2000353068A
Authority
JP
Japan
Prior art keywords
print job
interrupt
print
printing
data amount
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
JP11163912A
Other languages
Japanese (ja)
Inventor
Hiroko Yoneda
浩子 米田
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP11163912A priority Critical patent/JP2000353068A/en
Publication of JP2000353068A publication Critical patent/JP2000353068A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To efficiently control printing processing of plural printing data received from computer equipment or the like. SOLUTION: This device is a printer equipped with a printing means 14 for executing printing processing and a control means 11 for receiving plural printing jobs and controlling the printing means 14 so that the received printing job is successively executed. In this case, an amount of interference allowable data is set on the basis of an amount of data of the printing job currently being executed and it is controlled so that the amount of data of the printing job of the printing plan, the amount of the set interference allowable data are compared and decided when the printing job which is going to be printed next is generated or changed, and the printing job currently being executed is interrupted and interference printing of the printing job going to be printed next is started when the printing job that is going to be printed next is not more than the amount of interference allowable data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数のコンピュー
タ機器から受信した印刷データをスプールして逐次印刷
する印刷装置および印刷制御方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a printing apparatus and a printing control method for spooling print data received from a plurality of computer devices and sequentially printing the spooled print data.

【0002】[0002]

【従来の技術】ホスト装置等から受信した複数の印刷デ
ータを一旦スプールして逐次印刷する場合の印刷順序を
制御する技術に関して各種の提案がなされている。例え
ば、特開平10−283134号公報には、データ量の
少ない印刷データ、待ち時間の長い印刷データ、あるい
は抜かされた回数の多い印刷データを優先させることが
提案されている。
2. Description of the Related Art Various proposals have been made with respect to a technique for controlling a printing order in a case where a plurality of print data received from a host device or the like is temporarily spooled and sequentially printed. For example, Japanese Patent Laying-Open No. 10-283134 proposes giving priority to print data with a small data amount, print data with a long waiting time, or print data with a large number of skips.

【0003】また、特開平5−162415号公報に
は、印刷処理中のジョブに対して優先順位の高いものを
割り込ませるようにし、印刷中の処理の優先順位を印刷
の進行に応じて変化させることが提案されている。この
提案技術の場合、印刷が所定数に達する毎に優先順位を
低くしている。
In Japanese Patent Application Laid-Open No. 5-162415, a job having a higher priority is interrupted for a job being printed, and the priority of the process being printed is changed in accordance with the progress of printing. It has been proposed. In the case of this proposed technique, the priority is lowered every time the number of prints reaches a predetermined number.

【0004】さらに、特開平6−139031号公報お
よび特開平9−190317号公報においては、割込み
のタイミングに言及しており、印刷中の処理を直ちに中
断するか、印刷中のページを完了して中断するか、ある
いは通信中のページの印刷を完了させて中断するかを、
それぞれ特徴としている。また、割込み印刷が完了した
後に、中断されていた印刷を再開させるようにしてい
る。
Further, Japanese Patent Application Laid-Open Nos. Hei 6-139031 and Hei 9-190317 refer to the timing of interruption, and immediately interrupt the processing during printing or complete the page being printed. Whether to interrupt or complete printing of the page being communicated,
Each is characterized. Further, after the interrupt printing is completed, the interrupted printing is resumed.

【0005】[0005]

【発明が解決しようとする課題】ところで、ホスト装置
等から受信した印刷データを一旦スプールして逐次印刷
する処理において、大きな印刷データがプリンタを占有
して小さなデータが長時間待たされることを解消し、全
体としての待ち時間を調整するためには、キュー待機中
または印刷処理中のいずれか一方の制御だけでは不十分
であり、これら双方で一貫した処理順序の制御が必要で
ある。
By the way, in a process of temporarily spooling print data received from a host device or the like and sequentially printing the print data, it is possible to solve the problem that large print data occupies the printer and small data waits for a long time. In order to adjust the waiting time as a whole, it is not sufficient to control only one of the queue standby and the print processing, and it is necessary to control the processing order consistently in both of them.

【0006】また、印刷中の処理に割り込ませる場合
に、割り込ませるか否かの判断を、現在印刷中のデータ
量の全体や、これまでにどれだけ印刷したかを優先度に
反映して決めるのは不適切になる。
In the case of interrupting processing during printing, a determination as to whether or not to interrupt is determined by reflecting the entire amount of data currently being printed and how much data has been printed to the priority. Becomes inappropriate.

【0007】さらに、キューで待機中の追い越しについ
ても、単にデータ量の少ないものを優先するとか、追い
越される回数に制限を設けるというような処理だけで
は、待ち時間を調整するには十分とは言えない。また、
1ページでも非常に容量の大きいデータもあるので、割
込みを効果的なものにするには、現在印刷中のページの
残り処理量を考慮して割込みのタイミングを決定する必
要がある。
[0007] Furthermore, as for passing while waiting in a queue, simply giving priority to a small data amount or setting a limit on the number of times of passing is not enough to adjust the waiting time. Absent. Also,
Since even one page has very large data, in order to make the interruption effective, it is necessary to determine the interruption timing in consideration of the remaining processing amount of the currently printed page.

【0008】本発明はそのような実情に鑑みてなされた
もので、コンピュータ機器等から受信した複数の印刷デ
ータの印刷処理を効率よく制御することのできる印刷装
置および印刷制御方法の提供を目的とする。
The present invention has been made in view of such circumstances, and has as its object to provide a printing apparatus and a printing control method capable of efficiently controlling the printing processing of a plurality of print data received from a computer device or the like. I do.

【0009】[0009]

【課題を解決するための手段】本発明の印刷装置は、印
刷処理を実行する印刷手段と、複数の印刷ジョブを受け
付け、その受け付けた印刷ジョブを逐次実行するように
上記印刷手段を制御する制御手段とを備えており、その
制御手段は、現在実行中の印刷ジョブのデータ量に基づ
いて割込み許容データ量を設定しておき、次に印刷する
予定の印刷ジョブが発生または変更されたときに、その
印刷予定の印刷ジョブのデータ量と上記設定の割込み許
容データ量とを比較判定し、次に印刷する予定の印刷ジ
ョブが割込み許容データ量以下であるときに、現在実行
中の印刷ジョブを中断して、次に印刷予定の印刷ジョブ
の割込み印刷を開始することを特徴としている。
According to the present invention, there is provided a printing apparatus for executing a printing process, and a control for receiving the plurality of print jobs and controlling the printing unit to sequentially execute the received print jobs. The control means sets an interrupt allowable data amount based on the data amount of the currently executing print job, and sets the interrupt allowable data amount when the next print job to be printed is generated or changed. The data amount of the print job scheduled to be printed is compared with the interrupt allowable data amount set above, and when the print job to be printed next is equal to or smaller than the interrupt allowable data amount, the print job that is currently being executed is determined. The present invention is characterized in that interrupt printing is started for a print job to be printed next after interruption.

【0010】本発明では、例えば特開平10−0587
98号公報や特開平10−232746号公報に開示さ
れている処理時間予測によって、印刷に要する時間を予
測し、これをデータ量として利用することで待ち時間調
整に適したものとしている。また、印刷中の印刷ジョブ
に割り込ませるか否かは、残りの印刷データ量によって
決めるようにし、キューで待機中の期間も含めて既に割
り込まれたデータ量も考慮するようにしている。さら
に、現在印刷中のページが大容量である場合、残りのデ
ータ量がわずかである場合は、ページの印刷完了を待っ
て割込み、残りのデータ量が大きい場合は直ちに割込む
ようにしている。
In the present invention, for example, JP-A-10-0587
No. 98 and Japanese Patent Application Laid-Open No. Hei 10-232746 predict the time required for printing based on the processing time prediction, and use this as the amount of data to make it suitable for waiting time adjustment. Whether or not to interrupt the print job being printed is determined based on the remaining print data amount, and the already interrupted data amount is also taken into consideration, including the period of waiting in the queue. Further, when the page currently being printed has a large capacity and the amount of remaining data is small, an interruption is made after the printing of the page is completed, and when the amount of remaining data is large, an interruption is immediately made.

【0011】次に、本発明のより具体的な構成を以下に
説明する。本発明の印刷装置において、現在実行中の印
刷ジョブの残りのデータ量(未処理のデータ量)に対応
して、割込み許容データ量を動的に設定し、その割込み
許容データ量を用いて、割込みの可否を判定するように
構成すれば、現在実行中の印刷ジョブの残りのデータ量
が小さくなったときには割込み印刷処理が行われないの
で、現在実行中の処理の中断、割込み印刷、あるいは中
断された印刷ジョブの再開におけるオーバーヘッドによ
る処理効率の低下を防ぐことができる。
Next, a more specific configuration of the present invention will be described below. In the printing apparatus of the present invention, the interrupt allowable data amount is dynamically set in accordance with the remaining data amount (unprocessed data amount) of the currently executed print job, and the interrupt allowable data amount is used by using the interrupt allowable data amount. If the system is configured to determine whether or not an interrupt is possible, the interrupt printing process is not performed when the remaining data amount of the currently executed print job becomes small, so that the currently executing process is interrupted, interrupted, or interrupted. It is possible to prevent a reduction in processing efficiency due to overhead in resuming the performed print job.

【0012】本発明の印刷装置において、次に印刷する
予定の印刷ジョブのデータ量に、現在実行中の印刷ジョ
ブに対して既に割り込んだ印刷ジョブのデータ量の累計
を加算して、割込みの可否を判定するように構成しても
よく、この場合、現在実行中の処理に対してトータルな
割込み量が規制されるので、データ量の少ない印刷ジョ
ブが際限なく割り込むことを防止できる。なお、このよ
うな構成を採る場合、印刷ジョブがキューで待機中のと
きに、前の印刷ジョブの割込み許容データ量に基づいて
順序を変更し、現在実行中の印刷ジョブがキューで待機
中に追い越された印刷ジョブのデータ量の累計も加算し
て、割込みの可否を判定するようにしてもよい。
In the printing apparatus according to the present invention, the total of the data amount of the print job already interrupted with respect to the currently executed print job is added to the data amount of the print job to be printed next, and whether or not an interrupt is possible. May be determined. In this case, the total interrupt amount for the currently executing process is restricted, so that a print job with a small data amount can be prevented from interrupting endlessly. In such a configuration, when a print job is waiting in the queue, the order is changed based on the interruptable data amount of the previous print job, and the print job currently being executed is queued in the queue. The total of the data amount of the overtaken print job may be added to determine whether or not the interruption is possible.

【0013】本発明の印刷装置において、実行中の印刷
ジョブを退避する記憶部を設けておき、印刷ジョブ中断
時に処理状況を記憶部に退避し、割込み印刷終了時に退
避した内容に基づいて、中断した印刷ジョブを再開する
ように構成すれば、中断された印刷ジョブの再開が簡単
になる。また、この場合、割込を許容するデータ量や既
に割り込まれたデータ量の累計を記憶部に退避しておけ
ば、処理再開時にこれらを再計算する必要がなくなる。
In the printing apparatus according to the present invention, a storage unit for saving the print job being executed is provided, and the processing status is saved in the storage unit when the print job is interrupted, and the interruption is performed based on the saved content when the interrupt printing is completed. If the print job is configured to be restarted, it is easy to restart the interrupted print job. Further, in this case, if the total amount of the data amount that allows the interrupt or the total amount of the already interrupted data is saved in the storage unit, it is not necessary to recalculate the data amount when the process is restarted.

【0014】本発明の印刷装置において、割込み印刷終
了時に、中断中の印刷ジョブの割込み許容データ量と、
次に印刷予定の印刷ジョブのデータ量に基づいて割込み
の可否の判定を行い、割込み可であれば、中断した印刷
ジョブを再開せず、次に印刷予定の印刷ジョブの割込み
印刷を続けて開始するように構成すれば、無駄な再開中
断によるオーバーヘッドを防ぐことができる。なお、こ
の構成を採用する場合、既に割り込んだ印刷ジョブのデ
ータの累計も退避した値を利用してもよい。
In the printing apparatus according to the present invention, at the end of interrupt printing, the interruptable data amount of the interrupted print job and
Next, a determination is made as to whether or not an interrupt is possible based on the data amount of the print job to be printed. If the interrupt is possible, the interrupted print job is not restarted, and interrupted printing of the next print job to be started is continued. With such a configuration, it is possible to prevent overhead caused by useless restart interruption. When this configuration is adopted, the total of the data of the print job that has already been interrupted may also use the saved value.

【0015】本発明の印刷装置において、データ量の下
限値を設定する設定手段を設け、現在実行中の処理のデ
ータ量が下限値よりも小さいときには、割込み許容デー
タ量による割込みの判定に係わらず、次に印刷予定の印
刷ジョブを割り込ませないようにしておけば、現在実行
中の処理のデータ量が非常に小さい場合に、割込み印刷
した時の現在実行中の処理の中断、割込み印刷、あるい
は中断された印刷ジョブの再開におけるオーバーヘッド
による処理効率の低下を防ぐことができる。
In the printing apparatus of the present invention, setting means for setting a lower limit value of the data amount is provided, and when the data amount of the process currently being executed is smaller than the lower limit value, regardless of the judgment of the interruption based on the interruption allowable data amount. If the print job to be printed next is not interrupted, if the amount of data of the currently executing process is very small, the interruption of the currently executing process when interrupt printing is performed, interrupt printing, or It is possible to prevent a reduction in processing efficiency due to an overhead in restarting the interrupted print job.

【0016】本発明の印刷装置において、印刷処理時間
を予測する予測手段を設け、その予測処理時間を印刷ジ
ョブのデータ量として用いるようにすれば、割込み可否
の判定を、処理時間が小さい印刷データなら割り込ませ
ても良い、という感覚にあった印刷制御を行うことが可
能になる。
In the printing apparatus according to the present invention, a predicting means for predicting the print processing time is provided, and if the predicted processing time is used as the data amount of the print job, it is possible to determine whether the interruption is possible or not by using the print data having a short processing time. Then, it is possible to perform print control that feels like an interruption may be made.

【0017】本発明の印刷装置において、印刷ページ数
を測定する測定手段を設け、その測定ページ数を印刷ジ
ョブのデータ量として用いるようにすれば、割込み可否
の判定を、印刷ページ数の比較つまり処理機能面での比
較により行うことができるので、データ量の予測が簡単
になる。
In the printing apparatus of the present invention, if a measuring means for measuring the number of printed pages is provided and the measured number of pages is used as the data amount of the print job, the determination of the interruption possibility is made by comparing the number of printed pages. Since the comparison can be performed in terms of processing functions, the data amount can be easily predicted.

【0018】本発明の印刷装置において、印刷ジョブに
割込みレベルデータを設定する設定手段を設け、次に印
刷予定の印刷ジョブのデータ量および割り込まれる側の
印刷ジョブの割込み許容データ量を、それぞれの割込み
レベルデータで補正して割込みの可否を判定するように
構成すれば、割込み印刷をどの程度まで受容するのか
を、ユーザの要望に応じて設定することが可能になる。
In the printing apparatus of the present invention, setting means for setting interrupt level data in a print job is provided, and the data amount of a print job to be printed and the interruptable data amount of a print job to be interrupted are respectively determined. If the system is configured to determine whether interruption is possible by correcting the interruption level data, the extent to which interruption printing is accepted can be set according to the user's request.

【0019】本発明の印刷装置において、現在展開中の
ページの残り処理時間を予測する予測手段を設け、現在
実行中の処理を中断するときに、上記予測手段により現
在展開中のページの残り処理時間を予測し、その残り処
理時間が所定の基準値以上であれば、現在展開中のペー
ジの画像データ処理を直ちに中断させ、かつ、その残り
処理時間が所定の基準値よりも小さいときには、現在展
開中のページの画像データ処理が終了するまで待って、
印刷処理を中断するようにしておけば、割り込ませるこ
とになった印刷ジョブの待ち時間を短くすることができ
る。
In the printing apparatus according to the present invention, there is provided a predicting means for predicting a remaining processing time of the page currently being developed, and when the processing being currently executed is interrupted, the remaining processing of the page currently being developed by the predicting means is provided. The time is predicted, and if the remaining processing time is equal to or more than a predetermined reference value, the image data processing of the currently developed page is immediately interrupted, and if the remaining processing time is smaller than the predetermined reference value, the current processing is performed. Wait until the image data processing of the developing page is completed,
If the printing process is interrupted, the waiting time of the interrupted print job can be shortened.

【0020】また、この場合、現在展開中のページの処
理時間を計測する計測手段を設け、現在実行中の処理を
中断するときに、予測手段によって予測された残り処理
時間と計測手段によって計測された展開済み処理時間と
の割合を算出し、その割合算出値が基準割合よりも小さ
いときには、残り処理時間が所定の基準値以上であって
も、割合算出値が現在展開中のページの画像データ処理
が終了するまで待って、印刷処理を中断するようにして
おけば、印刷効率を高めることができる。すなわち、残
りの処理時間だけを判定基準に用いて中断すると、既に
長い時間かけて展開処理をしていた場合にも中断してし
まい、効率が悪くなるが、上記した処理時間の割合を用
いることによって、展開済み処理時間が非常に大きい場
合には、展開処理を続行し、そのページの印刷を終えた
後に印刷処理を中断させることができるので、印刷効率
を高めることができる。
In this case, a measuring means for measuring the processing time of the page currently being developed is provided, and when the currently executing processing is interrupted, the remaining processing time predicted by the predicting means and the remaining processing time are measured by the measuring means. When the calculated ratio is smaller than the reference ratio, even if the remaining processing time is equal to or greater than the predetermined reference value, the calculated ratio is the image data of the page currently being developed. If the printing process is interrupted after the process is completed, the printing efficiency can be improved. In other words, if only the remaining processing time is used as a criterion and the processing is interrupted, the processing will be interrupted even if the expansion processing has already been performed for a long time, resulting in poor efficiency. Accordingly, when the developed processing time is very long, the developing process can be continued and the printing process can be interrupted after printing the page, so that the printing efficiency can be improved.

【0021】本発明の印刷制御方法は、複数の印刷ジョ
ブを受け付け、その受け付けた印刷ジョブを逐次実行す
る印刷制御方法において、現在実行中の印刷ジョブのデ
ータ量に基づいて割込み許容データ量を設定しておき、
次に印刷する予定の印刷ジョブが発生または変更された
ときに、次に印刷する予定の印刷ジョブのデータ量を予
測し、その予測したデータ量と上記設定の割込み許容デ
ータ量とを比較判定し、次に印刷する予定の印刷ジョブ
のデータ量が上記設定の割込み許容データ量以下である
ときに、現在実行中の印刷ジョブを中断して、次に印刷
予定の印刷ジョブの割込み印刷を開始することを特徴と
している。
According to a print control method of the present invention, in a print control method for receiving a plurality of print jobs and sequentially executing the received print jobs, an interrupt allowable data amount is set based on a data amount of a currently executed print job. Aside
When a print job to be printed next is generated or changed, the data amount of the print job to be printed next is predicted, and the predicted data amount is compared with the interrupt allowable data amount of the above setting. When the data amount of the next print job to be printed is equal to or less than the interrupt allowable data amount set above, the currently executed print job is interrupted, and the interrupt print of the next print job to be printed is started. It is characterized by:

【0022】本発明の印刷制御方法において、現在実行
中の処理を中断するときに、現在展開中のページの残り
処理時間を予測し、その残り処理時間が基準値以上であ
れば、現在展開中のページの画像データ処理を直ちに中
断させ、かつ、上記残り処理時間が基準値よりも小さい
ときに、現在展開中のページの画像データ処理の終了を
待ち、そのページの印刷処理が終了した後に印刷処理を
中断するようにしておけば、割り込ませることになった
印刷ジョブを、長時間待たせないように設定できる。
In the printing control method according to the present invention, when the currently executing process is interrupted, the remaining processing time of the currently developed page is predicted, and if the remaining processing time is equal to or longer than the reference value, the currently developed page is being developed. Immediately interrupts the image data processing of the current page and, when the remaining processing time is smaller than the reference value, waits for the end of the image data processing of the currently developed page, and prints after the printing processing of the page ends. If the processing is interrupted, a setting can be made so that a print job that is to be interrupted is not kept waiting for a long time.

【0023】[0023]

【発明の実施の形態】本発明の実施形態を、以下、図面
に基づいて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0024】図1は本発明の実施形態の構成を示すブロ
ック図である。本実施形態の印刷装置1は、ネットワー
ク4を介して、パソコン等の複数のホストA装置2、ホ
ストB装置3・・に接続されており、それらホスト装置か
らの印刷データをスプールして逐次印刷処理を行うとと
もに、印刷するデータの量に応じて処理順序を制御する
ように構成されている。なお、印刷データ量としては、
処理が容易なページ数などを用いてもよいが、待ち時間
を調節するには印刷処理に要する時間が適しているの
で、本実施形態では処理時間を用いている。
FIG. 1 is a block diagram showing the configuration of the embodiment of the present invention. The printing apparatus 1 according to the present embodiment is connected to a plurality of host A apparatuses 2 such as personal computers and host B apparatuses 3 via a network 4 and spools print data from the host apparatuses to sequentially print the data. The processing is performed, and the processing order is controlled according to the amount of data to be printed. In addition, as the print data amount,
Although the number of pages that can be easily processed may be used, the processing time is used in this embodiment because the time required for the printing process is suitable for adjusting the waiting time.

【0025】印刷装置1は、制御部11と、その周辺機
器として接続される、ネットワークI/F部12、プリ
ンタI/F部13、プリンタエンジン14、処理状態記
憶部15、中断状態記憶部16、時計17、記憶部1
8、および印刷キュー19などを主体として構成されて
いる。
The printing apparatus 1 includes a control unit 11 and a network I / F unit 12, a printer I / F unit 13, a printer engine 14, a processing state storage unit 15, and a suspension state storage unit 16 connected as peripheral devices. , Clock 17, storage unit 1
8 and the print queue 19.

【0026】制御部11は、印刷装置1の動作の制御や
データの処理を行う機能部で、CPUに所定動作をさせ
るためのプログラムを格納するフラッシュメモリ等の不
揮発性メモリ(あるいは後述の記憶部18からプログラ
ムを読み込むRAM) 、動作状態や処理対象のデータを
格納するRAMなどから構成されている。
The control section 11 is a functional section for controlling the operation of the printing apparatus 1 and processing data. The control section 11 is a non-volatile memory such as a flash memory for storing a program for causing the CPU to perform a predetermined operation (or a storage section to be described later). And a RAM for storing the operating state and data to be processed.

【0027】また、制御部11は、データ量予測部11
1、印刷データ処理部112、割込み処理部113およ
びキュー管理部114を備えている。その各部111〜
114はプログラムによって実行される機能部である。
なお、図1には本実施形態の説明に必要な機能部のみを
図示してあるが、これ以外にもエラー処理部、表示制御
部など、この種の印刷装置において必要な機能部を備え
ている。
The control unit 11 includes a data amount prediction unit 11
1, a print data processing unit 112, an interrupt processing unit 113, and a queue management unit 114. Each part 111-
Reference numeral 114 denotes a functional unit executed by a program.
Although FIG. 1 shows only functional units necessary for the description of the present embodiment, other functional units necessary for this type of printing apparatus such as an error processing unit and a display control unit are provided. I have.

【0028】データ量予測部111は、印刷データの内
容によって処理に要する時間を予測する。印刷データ処
理部112は、ホストA装置2、ホストB装置3・・から
受けた印刷データをビットマップに展開する。割込み処
理部113は、後述する割込み可否の判断と、印刷処理
の中断、および復帰等の制御を行う。キュー管理部11
4は、待機中の印刷ジョブの処理順序等の制御を行う。
The data amount prediction unit 111 predicts the time required for processing based on the contents of the print data. The print data processing unit 112 develops the print data received from the host A device 2, the host B device 3,... Into a bitmap. The interrupt processing unit 113 determines whether or not an interrupt will be described later, and controls the interruption and return of the printing process. Queue management unit 11
Reference numeral 4 controls the processing order of the waiting print jobs.

【0029】なお、データ量予測部111において実行
する処理時間の予測方法は、特に限定されるものではな
く、例えば特開平10−058798号公報や特開平1
0−232746号公報などに開示されている方法を利
用することができる。
The method of estimating the processing time executed by the data amount estimating unit 111 is not particularly limited. For example, Japanese Patent Laid-Open No.
A method disclosed in, for example, Japanese Patent Application Laid-Open No. 0-232746 can be used.

【0030】一方、制御部11に接続されるネットワー
クI/F部12は、所定のプロトコルに基づいて、ネッ
トワーク4を介して、ホストA装置2、ホストB装置3
・・とのデータのやり取りを行う。
On the other hand, the network I / F unit 12 connected to the control unit 11 communicates with the host A device 2 and the host B device 3 via the network 4 based on a predetermined protocol.
・ ・ Exchange data with.

【0031】プリンタI/F部13は、印刷データ処理
部112で展開された印刷データをプリンタエンジン1
4に供給する。プリンタエンジン14はトナーやインク
によって印刷媒体に画像を形成する。
The printer I / F unit 13 converts the print data developed by the print data processing unit 112 into the printer engine 1.
4 The printer engine 14 forms an image on a print medium using toner or ink.

【0032】処理状態記憶部15と中断状態記憶部16
は、それぞれ対象となる印刷ジョブの処理の進行状況と
割込み可否の基準を格納するRAMである。
Processing status storage unit 15 and interruption status storage unit 16
Are RAMs for storing the progress status of the processing of the target print job and the criterion for determining whether or not the interruption is possible.

【0033】処理状態記憶部15は処理中の印刷ジョブ
の現時点での状態、中断状態記憶部16は現在中断中の
印刷ジョブの中断時点での状態を格納する。なお、これ
ら処理状態記憶部15および中断状態記憶部16は、説
明を判り易くするために図1では制御部11と分けて記
載しているが、制御部11に含まれるRAMと一体化し
てもよい。
The processing state storage unit 15 stores the current state of the print job being processed, and the interruption state storage unit 16 stores the state of the currently suspended print job at the time of interruption. Although the processing state storage unit 15 and the interruption state storage unit 16 are described separately from the control unit 11 in FIG. 1 for ease of explanation, they may be integrated with the RAM included in the control unit 11. Good.

【0034】処理状態記憶部15に格納するデータは、
全ページ数151、処理中ページ152、完了フラグ1
53、残りデータ量154、下限データ量155、割込
み許容率156、割込み許容量157および既割込み量
158等であり、これらの各データの内容は次のとおり
である。
The data stored in the processing state storage unit 15 is
Total page number 151, processing page 152, completion flag 1
53, a remaining data amount 154, a lower limit data amount 155, an interrupt allowance rate 156, an interrupt allowance amount 157, an already interrupted amount 158, and the like. The contents of these data are as follows.

【0035】全ページ数151:印刷中の印刷データの
全ページ数を示す。 処理中ページ152:印刷中の印刷データの処理中ペー
ジのページ番号。
The total number of pages 151 indicates the total number of pages of print data being printed. Processing page 152: The page number of the processing page of the print data being printed.

【0036】完了フラグ153:処理中ページ152の
処理が完了したか否かを示す。 残りデータ量154:印刷中の印刷データの残りの印刷
処理に要する予測処理時間。
Completion flag 153: Indicates whether or not the processing of the processing page 152 has been completed. Remaining data amount 154: Estimated processing time required for the remaining print processing of the print data being printed.

【0037】下限データ量155:印刷中の処理を中断
させる残りデータ量154の下限。 割込み許容率156:残りデータ量154に対して割込
みを許容する割合(印刷装置に対して予め定めた割合に
後述の割込みレベルをかけた値)を示す。
Lower limit data amount 155: Lower limit of remaining data amount 154 at which processing during printing is interrupted. Interruption allowance ratio 156: Indicates a ratio of allowing an interruption to the remaining data amount 154 (a value obtained by multiplying a predetermined ratio for the printing apparatus by an interruption level described later).

【0038】割込み許容量157:印刷中の処理に対し
て割込みを許容する時間の限度(残りデータ量154×
割込み許容率156)。
Interruption allowance 157: The limit of the time during which an interruption is allowed for the printing process (remaining data amount 154 ×
Interrupt permission rate 156).

【0039】既割込み量158:印刷中の処理に対して
既に割込みが行われた時間。 中断状態記憶部16は、中断時に処理状態記憶部15に
格納されていた処理状態を、中断時点の情報として記憶
する記憶部であり、処理状態記憶部15と同様に、全ペ
ージ数161、処理中ページ162、完了フラグ16
3、残りデータ量164、下限データ量165、割込み
許容率166、割込み許容量167および既割込み量1
68等のデータを格納する。
Interrupted amount 158: The time during which an interrupt has already been made to the printing process. The interruption state storage unit 16 is a storage unit that stores the processing state stored in the processing state storage unit 15 at the time of interruption as information at the time of interruption, and like the processing state storage unit 15, the total number of pages 161 Middle page 162, completion flag 16
3, remaining data amount 164, lower limit data amount 165, interrupt allowance 166, interrupt allowance 167, and interrupted amount 1
68 and the like are stored.

【0040】時計17は、時間経過を計測するICであ
る。記憶部18は、主に、ホスト(A)装置2、ホスト
(B)装置3・・から受信した印刷データD1 、D2 、D
3 ・・を格納するハードディスクである。また、記憶部1
8は、制御部11で用いるプログラムを格納したり、印
刷データ以外のデータのバックアップにも利用されるこ
ともあるが、その具体的な説明はここでは省略する。
The clock 17 is an IC for measuring the passage of time. The storage unit 18 mainly stores the print data D1, D2, D received from the host (A) device 2, the host (B) device 3,.
3 This is a hard disk for storing. Also, the storage unit 1
Reference numeral 8 may be used to store a program used by the control unit 11 or to back up data other than print data, but a specific description thereof is omitted here.

【0041】印刷キュー19は、待機中の印刷ジョブの
処理順序、各印刷ジョブの印刷データ、各印刷ジョブの
割込み状況を示すRAMである。この印刷キュー19に
おいて、待機中の印刷ジョブは、早く処理するものから
順番に待機行列191、192・・に格納されて管理され
る。また、現在印刷中の印刷ジョブは実行枠193に格
納され、印刷中に割り込まれて中断している印刷ジョブ
は中断枠194に格納されて管理される。なお、この印
刷キュー19についても、説明の簡単化のために図1で
は制御部11と分けて記載しているが、制御部11に含
まれるRAMと一体化してもよい。
The print queue 19 is a RAM that indicates the processing order of waiting print jobs, print data of each print job, and the interrupt status of each print job. In the print queue 19, the waiting print jobs are stored and managed in the waiting queues 191, 192,. The print job that is currently printing is stored in the execution frame 193, and the print job that is interrupted and interrupted during printing is stored and managed in the interrupt frame 194. Although the print queue 19 is also shown separately from the control unit 11 in FIG. 1 for simplification of description, it may be integrated with a RAM included in the control unit 11.

【0042】印刷キュー19の各部191、192、1
93、194・・に格納する印刷ジョブは図2に示す通り
である。
Each part 191, 192, 1 of the print queue 19
The print jobs stored in 93, 194,... Are as shown in FIG.

【0043】印刷ジョブID:印刷ジョブを識別するた
めのデータ。 印刷データID:印刷ジョブに対応する記憶部18の印
刷データを示す。
Print job ID: data for identifying a print job. Print data ID: indicates print data in the storage unit 18 corresponding to the print job.

【0044】ホスト:印刷を要求したホスト装置を示
す。 ユーザ:印刷を要求したユーザを示す。
Host: Indicates the host device that has requested printing. User: Indicates a user who has requested printing.

【0045】割込みレベル:予めユーザ(ホスト)毎に
設定された割込みに対する態度(0:消極〜1:積極)
を示す。
Interrupt level: attitude to interrupt set in advance for each user (host) (0: passive to 1: active)
Is shown.

【0046】割込み許容率:予め印刷装置に定めた割合
に割込みレベルを乗算した割合。 予測印刷データ量:印刷データの予測印刷処理時間(印
刷処理全体および各ページ毎)。
Interruption allowable ratio: A ratio obtained by multiplying a ratio determined in advance by the printing apparatus by an interrupt level. Estimated print data amount: Estimated print processing time of print data (entire print processing and each page).

【0047】割込み許容量:印刷ジョブが割込み(追い
越し)を許容する時間の限度(予測印刷データ量(印刷
処理全体)×割込み許容率)。
Interruption allowance: The limit of the time during which the print job allows interruption (overtaking) (predicted print data amount (entire print processing) × interruption allowance).

【0048】既割込み量:印刷ジョブが既に割込み(追
い越し)された時間の累計。 次に、本実施形態の処理の概略流れを以下に説明する。
Interrupted amount: The total time during which the print job has already been interrupted (overtaken). Next, a schematic flow of the process of the present embodiment will be described below.

【0049】まず、ホスト(A)装置2、ホスト装置
(B)3・・から印刷要求を受け付けると、印刷データを
受信して記憶部18に蓄えるとともに、印刷キュー19
の待機行列191、192・・の末尾に追加する。順番が
来れば印刷処理が始まり、記憶部18に蓄えられた印刷
データが印刷データ処理部112で逐次処理されプリン
タエンジン14で印刷される。
First, when a print request is received from the host (A) device 2, the host device (B) 3,..., The print data is received and stored in the storage unit 18, and the print queue 19 is received.
Are added to the end of the queues 191, 192,. When the turn comes, the printing process starts, and the print data stored in the storage unit 18 is sequentially processed by the print data processing unit 112 and printed by the printer engine 14.

【0050】その印刷実行中において、図3(a)に示
すように、実行枠193内にある実行中の印刷ジョブJ
1 の残り処理量が大きくて、印刷装置1を長時間占有し
ており、かつ、待機行列191、192・・の先頭の印刷
ジョブJ2 の印刷処理は短時間で終わる場合には、図3
(b)に示すように、印刷ジョブJ1 を中断し、印刷ジ
ョブJ2 を先に処理するという制御を行い、印刷ジョブ
J2 の処理が完了すれば、図3(c)に示すように、中
断した印刷ジョブJ1 を実行枠193に復帰する。ま
た、次の印刷ジョブJ3 も短時間で終わるならば、図3
(d)に示すように、待機行列191、192・・の先頭
の印刷ジョブJ3 を更に割り込ませるという処理を行
う。
During the print execution, as shown in FIG. 3A, the print job J being executed in the execution frame 193 is executed.
1 is large, occupies the printing apparatus 1 for a long time, and the print processing of the first print job J2 in the queues 191, 192...
As shown in FIG. 3B, the control is performed such that the print job J1 is interrupted and the print job J2 is processed first, and when the processing of the print job J2 is completed, the interrupt is performed as shown in FIG. The print job J1 is returned to the execution frame 193. Also, if the next print job J3 is completed in a short time, FIG.
As shown in (d), a process of further interrupting the first print job J3 of the queues 191, 192,... Is performed.

【0051】なお、割込みを許容するか否かは、処理状
態記憶部15を参照して割込み処理部113が判定して
いる。
The interrupt processing unit 113 determines whether or not to permit the interruption with reference to the processing state storage unit 15.

【0052】次に、処理中のページの処理が完了する
と、完了フラグ153がセットされ、処理中ページ15
2が更新されて、次のページの処理が始まるまでに完了
フラグ153がリセットされる。処理中ページ152が
全ページ151と等しくなって完了フラグがセットされ
れば、印刷ジョブが完了したことになる。
Next, when the processing of the page being processed is completed, the completion flag 153 is set and the page 15 being processed is set.
2 is updated, and the completion flag 153 is reset before the processing of the next page starts. When the processing page 152 is equal to all the pages 151 and the completion flag is set, the print job has been completed.

【0053】完了フラグ153がセットされ、処理中ペ
ージ152が更新された時点で、残りデータ量154を
更新する。残りデータ量には、印刷キュー19の実行枠
193にある印刷ジョブの予測印刷データ量のうち、未
処理ページ分を累計した処理時間を格納する。
When the completion flag 153 is set and the processing page 152 is updated, the remaining data amount 154 is updated. The remaining data amount stores the processing time obtained by accumulating the unprocessed pages in the estimated print data amount of the print job in the execution frame 193 of the print queue 19.

【0054】この残りデータ量154に割込み許容率1
56を乗算して割込み許容量157とする。そして、割
り込ませるか否かの判定は、印刷キュー19の待機行列
191、192・・の先頭にある印刷ジョブの予測印刷処
理時間(印刷処理全体)が、割込み許容量157よりも
小さいか否かで行う。小さければ実行枠193にある印
刷を中断して、待機行列191、192・・の先頭にある
印刷ジョブを割り込ませる。
This remaining data amount 154 has an interrupt allowance of 1
The product is multiplied by 56 to obtain an interrupt allowance 157. The determination as to whether or not to cause an interrupt is made based on whether or not the predicted print processing time (entire print processing) of the print job at the head of the queue 191, 192. Do with. If it is smaller, the printing in the execution frame 193 is interrupted, and the print job at the head of the queues 191, 192,... Is interrupted.

【0055】こうすることにより、処理が進行して残り
処理時間が減少するとともに割込みを許容する時間も減
少し、印刷中の印刷ジョブの残り時間に見合った処理時
間の印刷ジョブの割込みだけを許容することができるよ
うになる。
By doing so, the processing proceeds and the remaining processing time is reduced, and at the same time, the time during which interruption is permitted is also reduced. Only interruption of a print job having a processing time corresponding to the remaining time of the print job being printed is permitted. Will be able to

【0056】既割込み量158には、割込み印刷処理が
発生する毎に割り込まれた時間を累計していく。印刷処
理が始まる際に、印刷キュー19の実行枠193にある
印刷ジョブの既割込み量のデータをコピーしておくこと
で、待機中に割り込まれた(追い越された)時間も累計
することができるようになる。そして、上記した割込み
の可否の判定において既割込み量158を考慮すること
により、小さな処理が多数割り込んで総計として割込み
によって遅延する時間が、割込み許容量を上回るような
ことを回避することができる。
The interrupted amount 158 is obtained by accumulating the time interrupted each time an interrupt printing process occurs. By copying the data of the interrupted amount of the print job in the execution frame 193 of the print queue 19 when the print processing starts, the time interrupted (passed) during the standby can be accumulated. Become like By considering the interrupted amount 158 in the above-described determination of the possibility of interrupt, it is possible to avoid a case where a large number of small processes are interrupted and the total delay time due to the interrupt exceeds the allowable interrupt amount.

【0057】割込み許容率156も印刷処理が始まる際
に、印刷キュー19の実行枠193にある印刷ジョブの
割込み許容率のデータをコピーしておく。この割込み許
容率は、印刷装置1で設定された割合に割込みレベルを
かけた値にしてある。また、割り込ませるか否かの判定
の際には、印刷キュー19の待機行列191、192・・
の先頭にある印刷ジョブ(割り込む側)の予測印刷処理
時間を割込みレベルで割った値を判定に用いるようにす
る。つまり、割込みレベルの値が大きいと割込みに対し
て積極的(自分も割り込む代わりに人にも割り込ませ
る)となり、小さいと割込みに対して消極的(自分が割
り込まない代わりに人にも割り込ませない)ということ
になる。なお、このような複数段階の書込レベルの代わ
りに、印刷装置で設定された割合を割込み許容率として
割込みを行う(1)か、行わないか(0)の割込みフラ
グでユーザ(ホスト)の態度を設定してもよい。
When the printing process is started, the data of the interrupt allowance 156 of the print job in the execution frame 193 of the print queue 19 is copied. The interrupt allowance is a value obtained by multiplying the ratio set in the printing apparatus 1 by the interrupt level. When determining whether or not to cause an interrupt, the queues 191, 192,.
The value obtained by dividing the estimated print processing time of the print job (interrupting side) at the head of the job by the interrupt level is used for the determination. In other words, if the value of the interrupt level is large, it becomes aggressive to the interrupt (it can be interrupted by a person instead of itself), and if it is small, it is reluctant to the interrupt (it does not interrupt the person instead of not being interrupted) )It turns out that. Instead of such multiple levels of write levels, a user (host) can determine whether or not to perform an interrupt using a rate set by the printing apparatus as an interrupt allowable rate (1) or not (0). Attitude may be set.

【0058】そして、中断中の印刷ジョブが複数になる
と処理が煩雑になるので、他の印刷ジョブに割り込んだ
印刷ジョブの割込み許容率156は強制的に0にしてお
く。これにより2重割込みを防止して、中断する印刷ジ
ョブを1つに限定できる。
If the number of interrupted print jobs becomes plural, the processing becomes complicated. Therefore, the interrupt allowance 156 of the print job interrupted by another print job is forcibly set to zero. As a result, double interruption can be prevented, and the number of interrupted print jobs can be limited to one.

【0059】また、割込み許容率が比較的大きい場合
は、残りデータ量が小さくなっても割込みの発生する可
能性があるが、中断、退避、復帰に伴うオーバヘッドに
よる処理効率の低下が、割込みによる効果より大きくな
るおそれがある。これを回避するため、本実施形態で
は、下限データ量155を予め設定しておき、残りデー
タ量154がこれを下回った場合には、割込み許容量1
57による判定によらずに割り込ませないようにしてい
る。
When the interrupt tolerance is relatively large, an interrupt may occur even if the remaining data amount becomes small. However, the processing efficiency is reduced due to the overhead due to the interruption, saving, and returning. The effect may be larger than the effect. In order to avoid this, in the present embodiment, the lower limit data amount 155 is set in advance, and if the remaining data amount 154 falls below this, the interrupt allowable amount 1
No interruption is made regardless of the determination by 57.

【0060】割込みが起こって実行中の処理が中断され
ると、処理状態記憶部15の内容は中断状態記憶部16
に退避され、この処理が復帰する際には、逆に中断状態
記憶部16の内容が処理状態記憶部15に戻されて、中
断時点から印刷処理が再開される。なお、印刷キュー1
9の状態が、図3(b)から、復帰して図3(c)の状
態になるか、連続割込みで図3(d)の状態になるかの
判定の際には、処理状態記憶部15の代わりに中断状態
記憶部16の内容を参照することになる。
When an interrupt occurs and the processing being executed is interrupted, the contents of the processing state storage section 15 are stored in the interrupted state storage section 16.
When the processing is restored, the contents of the interrupted state storage unit 16 are returned to the processing state storage unit 15 and the print processing is resumed from the point of interruption. The print queue 1
When it is determined whether the state of FIG. 9 returns from the state of FIG. 3B to the state of FIG. 3C or changes to the state of FIG. The content of the interrupted state storage unit 16 is referred to instead of 15.

【0061】そして、以上説明した割込み判定処理の流
れをまとめると、図4に示すフロー図のようになる。
The flow of the above-described interrupt determination processing is summarized as shown in the flowchart of FIG.

【0062】この割込み判定の処理は、割り込む候補で
ある印刷キュー19の待機行列191にある印刷ジョブ
が変化した場合に呼ばれる。例えば、待機行列191が
空の場合に新たな印刷ジョブが発生したり、待機中先頭
の印刷ジョブが取り消されたり、あるいは後で発生した
印刷ジョブが待機中先頭の印刷ジョブを追い越したよう
な場合に割込み判定処理が呼ばれる。また、中断中の印
刷ジョブが複数になることを防ぐために、割込み許容率
を強制的に0にする代わりに、中断中の印刷ジョブがあ
れば、この割込み判定処理を呼ばないようにしてもよ
い。
This interrupt determination process is called when a print job in the queue 191 of the print queue 19 which is a candidate to be interrupted changes. For example, when a new print job occurs when the queue 191 is empty, the first print job in the waiting state is canceled, or a print job generated later overtakes the first print job in the waiting state. Is called an interrupt determination process. Also, in order to prevent the number of interrupted print jobs from being increased, instead of forcibly setting the interrupt allowance to 0, if there is an interrupted print job, this interrupt determination process may not be called. .

【0063】図4に示す割込み判定処理の詳細を各ステ
ップ毎に以下に説明する。 <ステップS1>まず、残りデータ量154が下限デー
タ量155よりも小さいか否かを判定し、小さいときに
は、この割込み判定処理を終了する。一方、残りデータ
量154が下限データ量155以上であればステップS
2へ進む。 <ステップS2>割込み要求量すなわち印刷キュー19
の待機行列191、192・・の先頭にある印刷ジョブの
予測印刷処理時間と既割込み量158を加えた時間(割
込み要求量+既割込み量)が、割込み許容量157を超
えているか否かを判定し、超えていれば、この割込み判
定処理を終了し、割込み要求量+既割込み量が割込み許
容量157以下であるときにはステップS3へ進む。 <ステップS3>印刷データ処理部112とプリンタエ
ンジン14での処理を止め、既割込み量158を更新し
た後、処理状態記憶部15の内容を中断状態記憶部16
へ退避する。 <ステップS4>印刷キュー19が図3(a)の状態か
ら図3(b)に示す状態となるように、印刷キュー19
を操作する。 <ステップS5>印刷キュー19の実行枠193に新た
に入った印刷ジョブの印刷処理を開始させ、印刷処理が
終わるのを待つ。割込み印刷が終わったら、次の印刷ジ
ョブを連続して割り込ませるか否かを判定する。割り込
まれる処理は既に中断しているので、ステップS1のよ
うな下限判定は行わない。 <ステップS6>割込み要求量すなわち印刷キュー19
の待機行列191、192・・の先頭にある印刷ジョブの
予測印刷処理時間と中断状態記憶部16の方の既割込み
量168とを加えた時間(割込み要求量+既割込み量)
が、割込み許容量167を超えているか否かを判定し、
超えていればステップS8へ進み、割込み要求量+既割
込み量が割込み許容量167以下であればステップS7
へ進む。 <ステップS7>印刷キュー19を、図3(d)に示す
状態となるように操作した後、ステップS5へ進む。 <ステップS8>印刷キュー19を、図3(c)に示す
状態となるように操作した後、ステップS9へ進む。 <ステップS9>中断状態記憶部16の内容を処理状態
記憶部15に戻すとともに、印刷キュー19の実行枠1
93に戻った印刷ジョブの印刷処理を、処理状態記憶部
15に戻った内容に基づいて中断時点から再開し、この
割込み判定処理を終了する。
The details of the interrupt determination process shown in FIG. 4 will be described below for each step. <Step S1> First, it is determined whether or not the remaining data amount 154 is smaller than the lower limit data amount 155. If the remaining data amount 154 is smaller, the interrupt determination process ends. On the other hand, if the remaining data amount 154 is equal to or larger than the lower limit data amount 155, step S
Proceed to 2. <Step S2> Interrupt request amount, that is, print queue 19
.. Of the print job at the head of the waiting queues 191, 192... And the interrupted amount 158 (interrupt request amount + interrupted amount) exceed the interrupt allowable amount 157. It is determined, and if it exceeds, the interrupt determination processing is terminated, and if the interrupt request amount + the interrupted amount is equal to or less than the interrupt allowable amount 157, the process proceeds to step S3. <Step S3> After the processing in the print data processing unit 112 and the printer engine 14 is stopped and the interrupted amount 158 is updated, the contents of the processing state storage unit 15 are
Evacuate to <Step S4> The print queue 19 is changed from the state shown in FIG. 3A to the state shown in FIG.
Operate. <Step S5> The print process of the print job newly entered in the execution frame 193 of the print queue 19 is started, and the process waits until the print process ends. When the interrupt printing is completed, it is determined whether or not to interrupt the next print job continuously. Since the interrupting process has already been interrupted, the lower limit determination as in step S1 is not performed. <Step S6> Interrupt request amount, that is, print queue 19
Of the print job at the head of the waiting queues 191, 192... And the interrupted amount 168 of the interrupted state storage unit 16 (interrupt request amount + interrupted amount)
Determines whether or not exceeds the allowable interrupt amount 167,
If it exceeds, the process proceeds to step S8, and if the interrupt request amount + the interrupted amount is equal to or less than the interrupt allowance 167, the process proceeds to step S7.
Proceed to. <Step S7> After the print queue 19 is operated so as to be in the state shown in FIG. 3D, the process proceeds to step S5. <Step S8> After the print queue 19 is operated so as to be in the state shown in FIG. 3C, the process proceeds to step S9. <Step S9> Return the contents of the interruption state storage unit 16 to the processing state storage unit 15 and execute the execution frame 1 of the print queue 19.
The print processing of the print job returned to 93 is restarted from the point of interruption based on the contents returned to the processing state storage unit 15, and the interrupt determination processing ends.

【0064】ここで、以上の図4に示す割込み判定処理
において、ステップS3で処理中のページの処理時間が
短ければ、処理中のページの終了を待って中断しても、
直ちに中断して、再開後に処理中だったページを最初か
ら処理しても大差はない。しかし、処理中のページの残
り処理時間が長い場合に、そのページの処理の終了を待
っていては、割り込んで直ちに印刷できるはずの印刷ジ
ョブが長時間待つことになる。また、処理中のページの
残りの処理時間が長くても、やはり長い時間を既にその
ページの処理に費やしている場合には、そのページの処
理の終了を待たずに中断することは大きな無駄になる。
Here, in the above-described interrupt determination processing shown in FIG. 4, if the processing time of the page being processed is short in step S3, even if the processing is interrupted after waiting for the end of the page being processed,
There is no big difference if you stop immediately and process the page that was being processed after resuming from the beginning. However, if the remaining processing time of the page being processed is long, and if the processing of the page is completed, a print job that can be interrupted and immediately printable will wait for a long time. Also, even if the remaining processing time of the page being processed is long, if a long time has already been spent processing the page, it is very wasteful to interrupt without waiting for the processing of the page to end. Become.

【0065】そこで、図4のステップS3において、印
刷中のページの残り処理量に基づいて中断のタイミング
を変更することによって、割り込む印刷ジョブが待たさ
れる時間と、割り込まれる印刷ジョブが再処理で遅延す
る時間とを調停できるようにしたのが、図5に示すフロ
ー図である。この図5の処理流れを各ステップ毎に説明
する。 <ステップS21>印刷キュー19の実行枠193にあ
る印刷ジョブの予測印刷データ量のうち、処理中ページ
の処理時間と、時計17によって実測した処理中ページ
に費やした処理時間との差から残りの処理時間を推定す
る。この残り処理時間の推定値が所定値よりも小さけれ
ばステップS23へ進み、そうでなければステップS2
2へ進む。 <ステップS22>前記した残り処理時間の推定値と実
測した既に処理を行った時間との割合が、所定割合より
も小さければステップS23へ進み、そうでなければス
テップS24へ進む。 <ステップS23>印刷処理中のページの終了を待つ。 <ステップS24>印刷データ処理部112とプリンタ
エンジン14での処理を止める。 <ステップS25>既割込み量158を更新して、処理
状態記憶部15の内容を中断状態記憶部16へ退避す
る。
Therefore, in step S3 of FIG. 4, by changing the interruption timing based on the remaining processing amount of the page being printed, the time during which the interrupted print job waits and the interrupted print job are delayed by reprocessing. FIG. 5 is a flow chart showing that the arbitration can be performed at the same time. The processing flow of FIG. 5 will be described for each step. <Step S21> Of the estimated print data amount of the print job in the execution frame 193 of the print queue 19, the remaining time is obtained from the difference between the processing time of the processing page and the processing time actually measured by the clock 17 for the processing page. Estimate processing time. If the estimated value of the remaining processing time is smaller than the predetermined value, the process proceeds to step S23; otherwise, the process proceeds to step S2.
Proceed to 2. <Step S22> If the ratio between the above-mentioned estimated value of the remaining processing time and the actually measured processing time is smaller than the predetermined ratio, the process proceeds to step S23. Otherwise, the process proceeds to step S24. <Step S23> Wait for the end of the page being printed. <Step S24> Processing in print data processing section 112 and printer engine 14 is stopped. <Step S25> The already interrupted amount 158 is updated, and the contents of the processing state storage unit 15 are saved to the interruption state storage unit 16.

【0066】ここで、以上の処理において、印刷処理が
始まる際に、印刷キュー19の実行枠193内の印刷ジ
ョブにある既割込み量のデータを、処理状態記憶部15
の既割込み量158にコピーしておくと、待機中に割り
込まれた(追い越された)時間も累計して割込みを許容
するか否かを判断できるようになる。この待機中に割り
込まれた処理時間を、印刷キュー19の印刷ジョブの既
割込み量に累計していく処理(印刷キューの順序変更処
理)が、図6に示すフロー図である。
In the above process, when the printing process starts, the data of the interrupted amount in the print job in the execution frame 193 of the print queue 19 is stored in the processing state storage unit 15.
If it is copied to the already-interrupted amount 158, it is possible to determine whether or not to permit the interrupt by accumulating the time interrupted (passed) during the standby. FIG. 6 is a flowchart illustrating a process of accumulating the interrupted processing time of the print job in the print queue 19 during the standby time (print queue order change process).

【0067】この待機中の印刷キューの順序変更処理
は、新規の印刷要求があった場合、印刷ジョブが取り消
された場合、あるいは印刷部数変更など印刷ジョブのデ
ータ量が変動した場合などに呼ばれる。
The process of changing the order of the waiting print queue is called when there is a new print request, when the print job is canceled, or when the data amount of the print job changes such as a change in the number of print copies.

【0068】図6に示す印刷キューの順序変更処理の詳
細を、各ステップ毎に以下に説明する。 <ステップS31>新たな印刷ジョブがあればステップ
S32へ進む。無ければステップS34へ進む。 <ステップS32>新たな印刷ジョブの印刷データ量を
予測する。 <ステップS33>新たな印刷ジョブを印刷キュー19
の待機行列191、192・・の末尾に加え、上記した印
刷データ量とこれを基に算出した割込み許容量などを格
納する。 <ステップS34>印刷キュー19の待機行列191、
192・・の先頭から末尾までの印刷ジョブを1ずつ取り
上げてステップS39までループする。 <ステップS35>対象となる印刷ジョブの前の印刷ジ
ョブが取り消されていたら、印刷ジョブを逐次前へ詰め
る。 <ステップS36>対象印刷ジョブの印刷データ量(全
体)と、前の印刷ジョブの割込み許容量+既割込み量と
を、図4のステップS2と同様の方法で比較する。この
判定結果により、前の印刷ジョブに割込み可能ならばス
テップS37へ進む。そうでなければステップS39へ
進む。 <ステップS37>前の印刷ジョブの既割込み量に、対
象印刷ジョブの印刷データ量(全体)を追加する。 <ステップS38>対象印刷ジョブを前の印刷ジョブと
入れ替える。 <ステップS39>ステップS34のループの終端のス
テップで、対象印刷ジョブが末尾なら処理を終了する。
それ以外なら、次の印刷ジョブを対象にしてS34へ戻
る。
The details of the print queue order changing process shown in FIG. 6 will be described below for each step. <Step S31> If there is a new print job, the process proceeds to step S32. If not, the process proceeds to step S34. <Step S32> The print data amount of the new print job is predicted. <Step S33> Place new print job in print queue 19
, The end of the queues 191, 192..., And the above-described print data amount and the allowable interrupt amount calculated based on the print data amount. <Step S34> The queue 191 of the print queue 19,
The print jobs from the beginning to the end of 192... Are picked up one by one, and the process loops to step S39. <Step S35> If the print job before the target print job has been canceled, the print jobs are sequentially moved forward. <Step S36> The print data amount (entire) of the target print job is compared with the interruption allowance amount of the previous print job + the already interrupted amount in the same manner as in step S2 of FIG. As a result of this determination, if the previous print job can be interrupted, the process proceeds to step S37. Otherwise, the process proceeds to step S39. <Step S37> The print data amount (entire) of the target print job is added to the interrupted amount of the previous print job. <Step S38> The target print job is replaced with the previous print job. <Step S39> At the end of the loop of step S34, if the target print job is at the end, the process ends.
Otherwise, the process returns to S34 for the next print job.

【0069】[0069]

【発明の効果】以上説明したように、本発明によれば、
複数のコンピュータ機器から受信した印刷データを一旦
スプールして逐次印刷するにあたり、現在実行中の印刷
ジョブのデータ量に基づいて割込み許容データ量を設定
し、その割込み許容データ量の範囲内で、後の印刷ジョ
ブを優先させているので、印刷順序を効率よく制御する
ことができ、例えば大きなデータの印刷ジョブが印刷装
置を占有し、小さなデータの印刷ジョブが長時間待たさ
れるという不都合を確実に防ぐことができる。
As described above, according to the present invention,
When spooling print data received from a plurality of computer devices and sequentially printing the print data, an interrupt allowable data amount is set based on the data amount of the print job currently being executed, and the subsequent data is set within the range of the interrupt allowable data amount. Print jobs are prioritized, so that the printing order can be efficiently controlled, for example, reliably preventing the inconvenience that large data print jobs occupy the printing apparatus and small data print jobs wait for a long time. be able to.

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

【図1】本発明の印刷装置構成を示すブロック図であ
る。
FIG. 1 is a block diagram illustrating a configuration of a printing apparatus according to the present invention.

【図2】印刷キューの印刷ジョブに格納するデータを説
明する模式図である。
FIG. 2 is a schematic diagram illustrating data stored in a print job in a print queue.

【図3】印刷キューの印刷ジョブの移動状態を模式的に
表現する図である。
FIG. 3 is a diagram schematically illustrating a moving state of a print job in a print queue.

【図4】印刷処理中の印刷ジョブへの割込処理の手順を
示すフロー図である。
FIG. 4 is a flowchart illustrating a procedure for interrupting a print job during print processing;

【図5】印刷処理中断の際の手順を示すフロー図であ
る。
FIG. 5 is a flowchart showing a procedure when printing processing is interrupted.

【図6】印刷キューで待機中の印刷ジョブの割込処理の
手順を示すフロー図である。
FIG. 6 is a flowchart illustrating a procedure for interrupting a print job waiting in a print queue.

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

1 印刷装置 11 制御部(制御手段) 111 データ量予測部 112 印刷データ処理部 113 割込み処理部 114 キュー管理部 12 ネットワークI/F部 13 プリンタI/F部 14 プリンタエンジン(印刷手段) 15 処理状態記憶部 16 中断状態記憶部 17 時計 18 記憶部 19 印刷キュー 191、192・・ 待機行列 193 実行枠 194 中断枠 2 ホストA装置 3 ホストB装置 4 ネットワーク Reference Signs List 1 printing apparatus 11 control unit (control means) 111 data amount prediction unit 112 print data processing unit 113 interrupt processing unit 114 queue management unit 12 network I / F unit 13 printer I / F unit 14 printer engine (printing unit) 15 processing state Storage unit 16 Suspended state storage unit 17 Clock 18 Storage unit 19 Print queue 191, 192... Queue 193 Execution frame 194 Interruption frame 2 Host A device 3 Host B device 4 Network

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 印刷処理を実行する印刷手段と、複数の
印刷ジョブを受け付け、その受け付けた印刷ジョブを逐
次実行するように上記印刷手段を制御する制御手段とを
備えた印刷装置において、 上記制御手段は、現在実行中の印刷ジョブのデータ量に
基づいて割込み許容データ量を設定しておき、次に印刷
する予定の印刷ジョブが発生または変更されたときに、
その印刷予定の印刷ジョブのデータ量と上記設定の割込
み許容データ量とを比較判定し、次に印刷する予定の印
刷ジョブが割込み許容データ量以下であるときに、現在
実行中の印刷ジョブを中断して、次に印刷予定の印刷ジ
ョブの割込み印刷を開始することを特徴とする印刷装
置。
1. A printing apparatus comprising: a printing unit that executes a printing process; and a control unit that receives a plurality of print jobs and controls the printing unit to sequentially execute the received print jobs. The means sets an interrupt allowable data amount based on the data amount of the currently executed print job, and when a print job to be printed next is generated or changed,
The data amount of the print job scheduled to be printed is compared with the interrupt allowable data amount of the above setting, and when the next print job to be printed is equal to or smaller than the interrupt allowable data amount, the currently executed print job is interrupted. A printing apparatus which starts interrupt printing of a print job to be printed next.
【請求項2】 現在実行中の印刷ジョブの残りのデータ
量に対応して、割込み許容データ量を動的に設定し、そ
の割込み許容データ量を用いて割込みの可否を判定する
ことを特徴とする請求項1記載の印刷装置。
2. The method according to claim 1, further comprising the step of dynamically setting an allowable interrupt data amount in accordance with the remaining data amount of the currently executed print job, and determining whether or not an interrupt is possible using the interrupt allowable data amount. The printing device according to claim 1, wherein
【請求項3】 次に印刷する予定の印刷ジョブのデータ
量に、現在実行中の印刷ジョブに対して既に割り込んだ
印刷ジョブのデータ量の累計を加算して、割込みの可否
を判定することを特徴とする請求項1記載の印刷装置。
3. The method according to claim 1, further comprising adding a cumulative total of the data amount of the print job which has already been interrupted with respect to the currently executed print job to the data amount of the print job to be printed, and determining whether or not the interruption is possible. The printing device according to claim 1, wherein
【請求項4】 印刷ジョブがキューで待機中のときに、
前の印刷ジョブの割込み許容データ量に基づいて順序を
変更し、現在実行中の印刷ジョブがキューで待機中に追
い越された印刷ジョブのデータ量の累計も加算して、割
込みの可否を判定することを特徴とする請求項3記載の
印刷装置。
4. When a print job is waiting in a queue,
The order is changed based on the interruptable data amount of the previous print job, and the total amount of the data amount of the print job that has been overtaken while the currently executing print job is waiting in the queue is also added to determine whether the interrupt is possible. 4. The printing apparatus according to claim 3, wherein:
【請求項5】 実行中の印刷ジョブを退避する記憶部を
設け、上記制御手段は、印刷ジョブ中断時に処理状況を
記憶部に退避し、上記割込み印刷終了時に退避した内容
に基づいて、中断した印刷ジョブを再開することを特徴
とする請求項1記載の印刷装置。
5. A storage unit for saving a print job that is being executed, wherein the control unit saves the processing status in the storage unit when the print job is interrupted, and interrupts the processing status based on the saved content when the interrupt printing is completed. The printing apparatus according to claim 1, wherein the printing job is restarted.
【請求項6】 上記割込み印刷終了時に、中断中の印刷
ジョブの割込み許容データ量と、次に印刷予定の印刷ジ
ョブのデータ量に基づいて割込みの可否の判定を行い、
割込み可であれば、中断した印刷ジョブを再開せず、次
に印刷予定の印刷ジョブの割込み印刷を続けて開始する
ことを特徴とする請求項1記載の印刷装置。
6. At the end of the interrupt printing, a determination is made as to whether or not an interrupt is possible based on the amount of interruptable data of the interrupted print job and the amount of data of the next print job to be printed.
2. The printing apparatus according to claim 1, wherein if the interruption is possible, the interrupted print job is not restarted, and the interruption print of the next print job to be printed is continuously started.
【請求項7】 データ量の下限値を設定する設定手段を
設け、現在実行中の処理のデータ量が上記下限値よりも
小さいときには、上記割込み許容データ量による割込み
の判定に係わらず、次に印刷予定の印刷ジョブを割り込
ませないようにすることを特徴とする請求項1記載の印
刷装置。
7. A setting means for setting a lower limit value of the data amount, wherein when the data amount of the process currently being executed is smaller than the lower limit value, regardless of the determination of the interrupt based on the interrupt allowable data amount, 2. The printing apparatus according to claim 1, wherein a print job to be printed is not interrupted.
【請求項8】 印刷処理時間を予測する予測手段を設
け、その予測処理時間を印刷ジョブのデータ量として用
いることを特徴とする請求項1記載の印刷装置。
8. The printing apparatus according to claim 1, further comprising prediction means for predicting a print processing time, and using the predicted processing time as a data amount of the print job.
【請求項9】 印刷ページ数を測定する測定手段を設
け、その測定ページ数を印刷ジョブのデータ量として用
いることを特徴とする請求項1記載の印刷装置。
9. The printing apparatus according to claim 1, further comprising measuring means for measuring the number of printed pages, and using the measured number of pages as a data amount of a print job.
【請求項10】 印刷ジョブに割込みレベルデータを設
定する設定手段を設け、次に印刷予定の印刷ジョブのデ
ータ量および割り込まれる側の印刷ジョブの割込み許容
データ量を、それぞれの割込みレベルデータで補正して
割込みの可否を判定することを特徴とする請求項1記載
の印刷装置。
10. A setting means for setting interrupt level data in a print job, and the data amount of a print job scheduled to be printed and the interrupt allowable data amount of a print job to be interrupted are corrected by the respective interrupt level data. 2. The printing apparatus according to claim 1, wherein whether or not the interruption is possible is determined.
【請求項11】 現在展開中のページの残り処理時間を
予測する予測手段を設け、現在実行中の処理を中断する
ときに、上記予測手段により現在展開中のページの残り
処理時間を予測し、その残り処理時間が所定の基準値以
上であれば、現在展開中のページの画像データ処理を直
ちに中断させ、かつ、その残り処理時間が所定の基準値
よりも小さいときには、現在展開中のページの画像デー
タ処理が終了するまで待って、印刷処理を中断すること
を特徴とする請求項1記載の印刷装置。
11. A predicting means for predicting a remaining processing time of a currently developed page, wherein when the currently executing processing is interrupted, the predicting means predicts a remaining processing time of a currently developed page, If the remaining processing time is equal to or greater than a predetermined reference value, the image data processing of the currently developed page is immediately interrupted, and if the remaining processing time is smaller than the predetermined reference value, the image data of the currently developed page is 2. The printing apparatus according to claim 1, wherein the printing process is suspended after the image data processing is completed.
【請求項12】 現在展開中のページの処理時間を計測
する計測手段を設け、現在実行中の処理を中断するとき
に、上記予測手段によって予測された残り処理時間と上
記計測手段によって計測された展開済み処理時間との割
合を算出し、その割合算出値が基準割合よりも小さいと
きには、残り処理時間が所定の基準値以上であっても、
割合算出値が現在展開中のページの画像データ処理が終
了するまで待って、印刷処理を中断することを特徴とす
る請求項11記載の印刷装置。
12. A measuring means for measuring a processing time of a page currently being developed, and when the currently executing processing is interrupted, the remaining processing time predicted by the predicting means and the remaining processing time measured by the measuring means. Calculate the ratio with the expanded processing time, and when the calculated ratio is smaller than the reference ratio, even if the remaining processing time is equal to or greater than the predetermined reference value,
12. The printing apparatus according to claim 11, wherein the printing process is interrupted until the image data processing of the page whose ratio calculation value is currently expanded is completed.
【請求項13】 複数の印刷ジョブを受け付け、その受
け付けた印刷ジョブを逐次実行する印刷制御方法におい
て、 現在実行中の印刷ジョブのデータ量に基づいて割込み許
容データ量を設定しておき、次に印刷する予定の印刷ジ
ョブが発生または変更されたときに、次に印刷する予定
の印刷ジョブデータ量を予測し、その予測したデータ量
と上記設定の割込み許容データ量とを比較判定し、次に
印刷する予定の印刷ジョブのデータ量が上記設定の割込
み許容データ量以下であるときに、現在実行中の印刷ジ
ョブを中断して、次に印刷予定の印刷ジョブの割込み印
刷を開始することを特徴とする印刷制御方法。
13. A print control method for receiving a plurality of print jobs and sequentially executing the received print jobs, wherein an interrupt allowable data amount is set based on a data amount of a currently executed print job. When a print job to be printed is generated or changed, the amount of print job data to be printed next is predicted, the predicted data amount is compared with the above-mentioned interrupt allowable data amount, and then determined. When the data amount of the print job to be printed is equal to or less than the interrupt allowable data amount of the above setting, the currently executed print job is interrupted, and interrupt printing of the next print job to be printed is started. Printing control method.
【請求項14】 現在実行中の処理を中断するときに、
現在展開中のページの残り処理時間を予測し、その残り
処理時間が基準値以上であれば、現在展開中のページの
画像データ処理を直ちに中断させ、かつ、上記残り処理
時間が基準値よりも小さいときに、現在展開中のページ
の画像データ処理の終了を待ち、そのページの印刷処理
が終了した後に印刷処理を中断することを特徴とする請
求項13記載の印刷制御方法。
14. When interrupting a process currently being executed,
Predict the remaining processing time of the page currently being developed, and if the remaining processing time is equal to or greater than the reference value, immediately suspend the image data processing of the page currently being developed, and 14. The print control method according to claim 13, wherein when the size is smaller, the image data processing of the currently developed page is waited for, and the print processing is interrupted after the print processing of the page is completed.
JP11163912A 1999-06-10 1999-06-10 Printer and print control method Pending JP2000353068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11163912A JP2000353068A (en) 1999-06-10 1999-06-10 Printer and print control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11163912A JP2000353068A (en) 1999-06-10 1999-06-10 Printer and print control method

Publications (1)

Publication Number Publication Date
JP2000353068A true JP2000353068A (en) 2000-12-19

Family

ID=15783198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11163912A Pending JP2000353068A (en) 1999-06-10 1999-06-10 Printer and print control method

Country Status (1)

Country Link
JP (1) JP2000353068A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011198211A (en) * 2010-03-23 2011-10-06 Seiko Epson Corp Printing control device and printing system
JP2011201057A (en) * 2010-03-24 2011-10-13 Canon Inc Print controlling apparatus, method, and program
US9138984B2 (en) 2010-03-24 2015-09-22 Canon Kabushiki Kaisha Apparatus capable of executing printing on both surfaces of a continuous sheet and printing control method for executing printing on both surfaces of a continuous sheet
JP2016137664A (en) * 2015-01-28 2016-08-04 キヤノン株式会社 Image processing device, image processing method and program thereof for calculating prediction value of time required for printing
JP2016190457A (en) * 2015-03-31 2016-11-10 京セラドキュメントソリューションズ株式会社 Image formation system and image formation program
JP2019012212A (en) * 2017-06-30 2019-01-24 ブラザー工業株式会社 Image forming apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011198211A (en) * 2010-03-23 2011-10-06 Seiko Epson Corp Printing control device and printing system
JP2011201057A (en) * 2010-03-24 2011-10-13 Canon Inc Print controlling apparatus, method, and program
US9056497B2 (en) 2010-03-24 2015-06-16 Canon Kabushiki Kaisha Printing control apparatus and printing control method for interruption printing
US9138984B2 (en) 2010-03-24 2015-09-22 Canon Kabushiki Kaisha Apparatus capable of executing printing on both surfaces of a continuous sheet and printing control method for executing printing on both surfaces of a continuous sheet
JP2016137664A (en) * 2015-01-28 2016-08-04 キヤノン株式会社 Image processing device, image processing method and program thereof for calculating prediction value of time required for printing
JP2016190457A (en) * 2015-03-31 2016-11-10 京セラドキュメントソリューションズ株式会社 Image formation system and image formation program
JP2019012212A (en) * 2017-06-30 2019-01-24 ブラザー工業株式会社 Image forming apparatus

Similar Documents

Publication Publication Date Title
US8423999B2 (en) Computer system, virtual machine monitor and scheduling method for virtual machine monitor
EP1122635A2 (en) Printing apparatus
US20050028159A1 (en) Memory managing system and task controller in multitask system
JP3495893B2 (en) Print control device and print control method
JP5017387B2 (en) Print processing device
JP2000353068A (en) Printer and print control method
EP1026579B1 (en) Network-connectable printer, controller therefor, and method for controlling this controller
JP2001100959A (en) Print system
JP3724536B2 (en) Image output control device and process execution control method thereof
JP3438710B2 (en) Printer and recording medium recording program for controlling the printer
JP3239753B2 (en) Network control method and control server device
JP2006079393A (en) Printing system and job control method therefor
JP2006212918A (en) Image forming apparatus and image processing program
JP2006123421A (en) Printer and print job management device
JP3134539B2 (en) Printer control device
JP3173721B2 (en) Printer and operation method thereof
JP2004252829A (en) Backup controller
JP5263612B2 (en) Printing device
JP3592575B2 (en) Printing control method and printing system
US20120236362A1 (en) Printing system, method for controlling power of printing system, and program
JPH07271538A (en) Output device and its control method, information processing method and device therefor and network system
JP2001236195A (en) Printing controller and its program recording medium
JP2000001022A (en) Image formation system
JP5764973B2 (en) Image forming apparatus
US6618164B1 (en) Network printer and network printing method