JPH047174A - Printing controlling apparatus - Google Patents

Printing controlling apparatus

Info

Publication number
JPH047174A
JPH047174A JP2109339A JP10933990A JPH047174A JP H047174 A JPH047174 A JP H047174A JP 2109339 A JP2109339 A JP 2109339A JP 10933990 A JP10933990 A JP 10933990A JP H047174 A JPH047174 A JP H047174A
Authority
JP
Japan
Prior art keywords
page
printing
print
intermediate tray
back side
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.)
Granted
Application number
JP2109339A
Other languages
Japanese (ja)
Other versions
JP2879933B2 (en
Inventor
Saiji Kageyama
斎司 蔭山
Tadahiko Aso
麻生 忠彦
Toshiyuki Nakajima
俊幸 中嶋
Keiichi Nakane
啓一 中根
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.)
Hitachi Ltd
Hitachi Micro Software Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Micro Software Systems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=14507723&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JPH047174(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Hitachi Ltd, Hitachi Micro Software Systems Inc filed Critical Hitachi Ltd
Priority to JP2109339A priority Critical patent/JP2879933B2/en
Publication of JPH047174A publication Critical patent/JPH047174A/en
Application granted granted Critical
Publication of JP2879933B2 publication Critical patent/JP2879933B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Printers Characterized By Their Purpose (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To prevent papers of different size from being mixed and discharged to an intermediate tray by detecting when a drawing/processing part is actuated whether the subject page is a front page or a rear page, and printing the page if it is a front page while the intermediate tray is made a paper discharging part, whereas connecting the current printing process to a waiting queue if it is a rear page by turning the intermediate tray to a paper feeding part and an external tray to a paper discharging part. CONSTITUTION:A drawing/processing part draws a figure in a page buffer. After the figure is drawn, a printing/processing part is activated sequentially for the first page, second page,... If the subject page is found to be an odd number with reference to a printing page consecutive numbering 116c, the page is printed and discharged to an intermediate tray. If the page is an even number, it is turned into the waiting state for printing on the rear surface and connected to a waiting area 116m for printing on the rear face. In the case where the subject page is of different size, similar to the case of printing of the page of an even number, it is turned into the waiting state for printing on the rear face, and connected to the area 116m. All the printing processes connected to the area 116m are released, so that the printing process for the page of the even number is started. After the previous page is completely discharged outside, the paper size or the like is changed to move to printing on the front page. Therefore, even when a printing command array of a text in which pages of different paper size are mixed is fed, the text can be printed on both faces without an error.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、パーソナルコンピュータやワークステーショ
ン等のホストコンピュータから転送された印刷コマンド
列を受け、中間トレイを用いて両面印刷を行うようにし
た印刷制御装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a printing system that receives a print command sequence transferred from a host computer such as a personal computer or a workstation, and performs double-sided printing using an intermediate tray. Regarding a control device.

[従来の技術] 従来、片面印刷済みの用紙を一旦蓄積し、再給紙を行う
中間トレイを有した印刷装置における両面印刷は、例え
ば次のように行われた。すなわち、上位装置であるホス
トコンピュータが、先頭ページから最終ページへ向う順
序の印刷コマンド列の転送と、最終ページから先頭ペー
ジへ向う順序の印刷コマンド列の転送との2回の印刷コ
マンド列の転送を行う。そのうち、1回を奇数ページの
印刷とし、前記中間トレイに排出し、蓄積する。そして
、他の1回は、前記中間トレイ内の印刷済み用紙の裏面
に偶数ページを印刷することで両面印刷を完了する。
[Prior Art] Conventionally, double-sided printing in a printing apparatus having an intermediate tray that temporarily stores sheets that have been printed on one side and then refeeds the sheets has been performed as follows, for example. In other words, the host computer, which is a higher-level device, transfers the print command string twice: one transfers the print command string from the first page to the last page, and the other transfers the print command string from the last page to the first page. I do. Of these, one printing is an odd numbered page, which is ejected to the intermediate tray and stored. Then, at another time, double-sided printing is completed by printing even-numbered pages on the back side of the printed paper in the intermediate tray.

あるいは、ページスキップモードと表面ページプリント
モード/裏面ページプリントモードを指定する手段を有
して、ホストコンピュータが同一印刷コマンド列を2回
転送する。そのうち、1回目の転送で、ページスキップ
モードと表面ページプリントモードが指定された時、印
刷対象の印刷コマンド列のうち、偶数ページの印刷コマ
ンド列を捨てて、奇数ページの印刷コマンド列について
の印刷を行い、前記中間トレイに排出し、蓄積する。そ
して、他の1回の転送で、ページスキップモードと裏面
ページプリントモードが指定された時、印刷対象の印刷
コマンド列のうち、奇数ページの印刷コマンド列を捨て
て、前記中間トレイ内の印刷済み用紙の裏面に、偶数ペ
ージの印刷コマンド列を印刷することで両面印刷を行っ
ていた。
Alternatively, the host computer transfers the same print command sequence twice by having means for specifying page skip mode and front page print mode/back page print mode. Among them, when page skip mode and front page print mode are specified in the first transfer, among the print command strings to be printed, the print command strings for even-numbered pages are discarded, and the print command strings for odd-numbered pages are printed. is carried out, and is discharged and accumulated on the intermediate tray. Then, in another transfer, when page skip mode and back page print mode are specified, among the print command strings to be printed, the print command strings for odd pages are discarded, and the printed commands in the intermediate tray are Double-sided printing was performed by printing the print command sequence for even-numbered pages on the back side of the paper.

ここで、印刷コマンド列とは、ホストコンピュータが文
書の印刷内容を印刷装置へ指示するためのコマンド列で
あり、文字コード、テキスト出力用コマンド、図形8力
用コマンド、イメージ出力用コマンド等からなる。
Here, the print command string is a command string used by the host computer to instruct the printing device to print the document, and includes character codes, text output commands, graphics output commands, image output commands, etc. .

なお、この種の装置として関連するものには、特開昭6
0−5333号、同63−247041号、同63−2
47042号、同63−84954号の各公報に記載の
ものが挙げられる。
In addition, related devices of this type include Japanese Patent Application Laid-open No. 6
No. 0-5333, No. 63-247041, No. 63-2
Examples include those described in each publication of No. 47042 and No. 63-84954.

[発明が解決しようとする課題] 上記従来技術では、両面印刷の片面の印刷すなわち表面
印刷において、表面印刷の枚数が中間トレイへの格納許
容枚数より多い文書の印刷を行つた場合、中間トレイが
満杯となってしまうが、その場合の対処方法が考慮され
ていない。また、ホストコンピュータから、異なる紙サ
イズのページが混在した文書の印刷コマンド列が送られ
てきた場合、表面印刷において、その異なる紙サイズの
用紙が中間トレイに混在して排出されてしまう。
[Problems to be Solved by the Invention] In the above-mentioned conventional technology, when printing a document on one side of double-sided printing, that is, front-side printing, when printing a document in which the number of front-side printed sheets is greater than the number of sheets allowed to be stored in the intermediate tray, the intermediate tray is However, no consideration has been given to how to deal with this situation. Furthermore, when a host computer sends a print command sequence for a document containing a mixture of pages of different paper sizes, the sheets of different paper sizes are mixed and ejected to the intermediate tray during front-side printing.

従って、プリンタエンジン部に異常が発生して、プリン
タエンジンを停止させてしまうため、稼動性、信頼性、
利用効率を低下させるという問題点があった。
Therefore, an abnormality may occur in the printer engine and cause the printer engine to stop, reducing operability and reliability.
There was a problem that usage efficiency was reduced.

さらに、ホストコンピュータから送られてきた文書の最
終ページが奇数ページすなわち表面のみの場合、表面印
刷によりその奇数ページは中間トレイに排出されてしま
い、排出されたページに対応する裏面のページすなわち
偶数ページの印刷コマンド列が無いため、最終ページの
用紙を中間トレイから排出させることができないという
問題点がある。また、排出させるためには、新たな処置
が必要となる。
Furthermore, if the last page of the document sent from the host computer is an odd number page, i.e. only the front page, the odd page will be ejected to the intermediate tray due to front side printing, and the back page corresponding to the ejected page, i.e. the even number page. Since there is no print command string, there is a problem that the final page of paper cannot be ejected from the intermediate tray. In addition, new treatment is required to discharge it.

さらに、描画処理でページバッファ満杯が発生した場合
、ページバッファが空くまで処理が待たされるので、稼
動性、利用効率が低下する。ここで、ページバッファ満
杯とは、すべてのページバッファが描画あるいは印刷の
ために使用されていて、空き状態でないことである。
Furthermore, when the page buffer becomes full during drawing processing, the processing is forced to wait until the page buffer becomes free, resulting in lower operability and usage efficiency. Here, page buffer full means that all page buffers are used for drawing or printing and are not empty.

さらに、ホストコンピュータが印刷コマンド列を2回転
送する技術では、多量の印刷コマンド列が送られる場合
、転送時間に多大な時間を要し、ホストコンピュータに
負担をかけるという問題もあった。
Furthermore, with the technology in which the host computer transfers the print command sequence twice, there is a problem in that when a large number of print command sequences are sent, a large amount of time is required for the transfer, which places a burden on the host computer.

本発明の第1の目的は、片面印刷の枚数が中間トレイ格
納許容枚数より多い文書でも、支障なく両面印刷を続行
できる印刷制御装置を提供することにある。
A first object of the present invention is to provide a print control device that can continue double-sided printing without any problem even if the number of single-sided printed documents is greater than the allowable number of sheets stored in the intermediate tray.

本発明の第2の目的は、上位装置から、異なる紙サイズ
のページが混在した文書の印刷コマンド列が送られてき
た場合、異なるサイズの用紙が中間トレイに混在して排
出されることを防止できる印刷制御装置を提供すること
にある。
The second object of the present invention is to prevent paper of different sizes from being mixedly ejected to the intermediate tray when a print command sequence for a document containing pages of different paper sizes is sent from a host device. Our goal is to provide a printing control device that can.

本発明の第3の目的は、上位装置から送られてきた文書
の最終ページが奇数ページすなわち表面のみの場合、中
間トレイに混在して排出されることなく、また特別な処
理を必要とせずに最終ページの印刷を完了することがで
きる印刷制御装置を提供することにある。
A third object of the present invention is that when the last page of a document sent from a host device is an odd number, that is, only the front page, the document is not ejected mixedly into the intermediate tray and does not require special processing. An object of the present invention is to provide a print control device that can complete printing of the final page.

本発明の第4の目的は、ページバッファ満杯になった場
合、印刷処理が待たされることなく効率よく印刷を続行
することができる印刷制御装置を提供することにある。
A fourth object of the present invention is to provide a print control device that can efficiently continue printing without having to wait for print processing when the page buffer becomes full.

本発明の第5の目的は、ホストコンピュータからの印刷
コマンド列の転送を1回にすることで、転送時間を短縮
し、ホストコンピュータの負担を軽減することができる
印刷制御装置を提供することにある。
A fifth object of the present invention is to provide a print control device that can shorten the transfer time and reduce the burden on the host computer by transferring a print command sequence from the host computer only once. be.

[課題を解決するための手段] 上記目的を達成するために、本発明による印刷制御装置
は、上位装置が送信する印刷コマンド列を受信し、該印
刷コマンド列を解釈・実行した結果に基づいてプリンタ
エンジン部を制御し、中間トレイを用いて両面印刷を行
う印刷制御装置において、複数ページ分のページバッフ
ァと、該ページバッファに前記印刷コマンド列に応じて
描画処理を行う描画処理部と、該描画処理部により描画
されたページバッファの内容に基づいて印刷処理を行う
印刷処理部とを備え、前記描画処理部は、ページ順に描
画処理を行い、描画を終えたページについて順次印刷処
理部を起動し、前記印刷処理部は、前記描画処理部から
の起動に応じて、当該ページが表面ページか裏面ページ
かを判別し、表面ページならば直ちに前記中間トレイを
排紙部として印刷を行い、裏面ページならば当該印刷処
理を待ち行列に接続し、予め定めた印刷待ち解除条件の
検出に応じて、前記中間トレイを給紙部、外部トレイを
排紙部として、前記待ち行列につながれた印刷処理を実
行するようにしたものである。
[Means for Solving the Problems] In order to achieve the above object, a print control device according to the present invention receives a print command string transmitted from a host device, and interprets and executes the print command string based on the result. A print control device that controls a printer engine unit and performs double-sided printing using an intermediate tray includes a page buffer for a plurality of pages, a drawing processing unit that performs drawing processing on the page buffer according to the print command string, and and a print processing section that performs printing processing based on the contents of the page buffer drawn by the drawing processing section, the drawing processing section performs drawing processing in page order, and sequentially starts the printing processing section for the pages that have been drawn. In response to the activation from the drawing processing unit, the print processing unit determines whether the page is a front page or a back page, and if it is a front page, immediately prints using the intermediate tray as a paper ejection unit, and prints the back page. If it is a page, the print process is connected to a queue, and in response to detection of a predetermined print wait cancellation condition, the print process connected to the queue uses the intermediate tray as a paper feed section and the external tray as a paper output section. It is designed to execute the following.

前記中間トレイの満杯を前記印刷待ち解除条件として利
用することができる。
The fullness of the intermediate tray can be used as the print waiting release condition.

この場合、例えば、表面印刷した用紙を前記中間トレイ
に格納すると1加算し、該中間トレイに格納した用紙を
給紙して裏面印刷すると1減算する中間トレイ格納枚数
カウンタを用い、該カウンタの値が一定値に達したとき
、当該印刷処理を待ち行列に接続した後、印刷待ちを解
除する。
In this case, for example, use an intermediate tray storage sheet counter that increments by 1 when a front-side printed sheet is stored in the intermediate tray, and subtracts 1 when the reverse side is printed by feeding a sheet stored in the intermediate tray, and the value of the counter is When reaches a certain value, the print process is connected to the queue, and then the print queue is released.

また、文書の最終ページの検出を前記印刷待ち解除条件
として利用することもできる。
Furthermore, detection of the last page of a document can also be used as the condition for canceling the print wait.

この場合、例えば、前記印刷処理部は、両面印刷におい
て文書の最終ページが表面ページであった場合、当該最
終ページの印刷処理を待ち行列に接続した後、印刷待ち
を解除して印刷待ち状態にあった裏面印刷処理を行い、
該裏面印刷処理の終了後、前記最終ページを片面印刷と
して印刷する。
In this case, for example, if the last page of the document is the front page in double-sided printing, the print processing unit connects the print processing of the last page to the queue, cancels the print queue, and returns to the print queue state. Perform the back printing process,
After the back side printing process is completed, the final page is printed as one side printing.

さらに、紙サイズ変更の検出を前記印刷待ち解除条件と
して利用することもできる。
Furthermore, detection of a change in paper size can also be used as the condition for canceling the print wait.

この場合、例えば、前記上位装置からの印刷コマンド列
に含まれる紙サイズ指定に応じて紙サイズ変更の有無を
設定する制御テーブルを設け、前記印刷処理部は、該制
御テーブルの内容を参照して紙サイズ変更があれば、当
該紙サイズが変更されたページの印刷処理を待ち行列に
接続した後、印刷待ちを解除して印刷待ち状態にあった
裏面印刷処理を行い、該裏面印刷処理により前記中間ト
レイ内のすべての用紙排出後、前記紙サイズの変更され
た新たな紙サイズの印刷処理に移行する。
In this case, for example, a control table is provided that sets whether or not to change the paper size according to the paper size specification included in the print command string from the host device, and the print processing unit refers to the contents of the control table. If there is a paper size change, the print process for the page whose paper size has been changed is connected to the queue, the print queue is released, and the back side print process that was in the print wait state is performed. After all the sheets in the intermediate tray are ejected, the printing process shifts to the new paper size in which the paper size has been changed.

さらにまた、前記描画処理部が次に描画すべきページの
紙サイズに相当するページバッファの確保ができないこ
との検出を、前記印刷待ち解除条件として利用すること
もできる。
Furthermore, the detection that the drawing processing unit is unable to secure a page buffer corresponding to the paper size of the next page to be drawn can be used as the printing wait cancellation condition.

この場合には1例えば、前記描画処理部が描画すべきペ
ージの紙サイズに相当するページバッファの確保の可/
不可を設定する制御テーブルを設け、前記印刷処理部は
該制御テーブルを参照して、ページバッファの確保が不
可の場合、当該ページに対応する印刷処理を待ち行列に
接続した後、印刷待ちを解除する。
In this case, 1. For example, whether or not the drawing processing section can secure a page buffer corresponding to the paper size of the page to be drawn.
A control table is provided that sets the page to be disabled, and the print processing unit refers to the control table and, if the page buffer cannot be secured, connects the print process corresponding to the page to a queue, and then releases the print queue. do.

前記各種の印刷待ち解除条件は、併用することができる
The various printing wait release conditions described above can be used together.

[作 用] 本発明は、表面印刷の枚数が中間トレイへの格納許容枚
数より多い文書の印刷で、表面印刷途中で中間トレイの
格納枚数が満杯になった場合、その時印刷処理を行おう
としていたページについての印刷処理を待たせ、中間ト
レイへ排出されたページに対応する裏面のページすなわ
ち裏面印刷に移る。そして、裏面印刷途中で中間トレイ
への格納枚数が空き(すなわち0)になった場合、表面
印刷に戻り、印刷処理を待たされていたページの印刷処
理から再開する6従って、中間トレイへの格納許容枚数
より多い文書でも、また、同一ページを複数部数印刷す
るマルチページコピーでも。
[Function] The present invention is capable of printing a document in which the number of pages to be printed on the front side is larger than the allowable number of sheets to be stored in the intermediate tray, and when the number of sheets stored in the intermediate tray becomes full during front side printing, when printing is attempted at that time. The printing process for the page that was previously loaded is made to wait, and the process moves to the back side page corresponding to the page ejected to the intermediate tray, that is, the back side printing. If the number of sheets stored in the intermediate tray becomes empty (that is, 0) during back-side printing, the process returns to front-side printing and restarts from the printing process of the page that was waiting for printing 6 Therefore, the number of sheets stored in the intermediate tray For documents with more pages than the allowable number of pages, and for multi-page copies that print multiple copies of the same page.

中間トレイの格納枚数が満杯/空きで異常とならずに両
面印刷を続行することができる。
Double-sided printing can be continued without any abnormality caused by the number of sheets stored in the intermediate tray being full or empty.

異なる紙サイズのページが混在した文書の場合。For documents with mixed pages of different paper sizes.

紙サイズの変更のあったページについての印刷処理を待
行列に接続した後、裏面印刷待ちを解除することにより
裏面印刷に移る。そして1紙サイズの変更のあったペー
ジの裏面印刷処理が排紙まで完全に終ってから、待たさ
れていた異なる紙サイズのページの印刷処理に移る。従
って、その異なる紙サイズのページが中間トレイへ混在
して排出されることによる、プリンタエンジン部の異常
発生を防止することができる。
After connecting the printing process for the page whose paper size has been changed to the queue, the process moves to back side printing by canceling the back side printing wait. Then, after the back side printing process of the page whose paper size has been changed is completely completed until the paper is ejected, the print processing of the page of the different paper size that has been awaited is started. Therefore, it is possible to prevent abnormalities in the printer engine unit from occurring due to pages of different paper sizes being mixedly ejected to the intermediate tray.

文書の最終ページが表面印刷の場合、そのページの印刷
処理を待たせ、裏面印刷に移り、裏面印刷処理が排紙ま
で完全に終ってから、待たされていた最終ページが表面
のみの印刷処理を片面印刷として行う。従って、中間ト
レイに排出されることが回避され、更に、排出させるた
めの特別な処理を必要としない。
If the last page of the document is to be printed on the front side, the printing process for that page is made to wait, and then printing is started on the back side, and after the printing process on the back side is completely completed until the paper is ejected, the last page that was waiting is printed on the front side only. Perform as one-sided printing. Therefore, it is avoided that the paper is discharged to the intermediate tray, and furthermore, no special processing is required to discharge the paper.

また、印刷途中においてページバッファ満杯を検出した
場合、裏面印刷待ちを解除して裏面印刷に移る。従って
、ページバッファが空くまで印刷処理が待たされること
がないので、稼動性、利用効率の低下を防止でき、効率
よく両面印刷することができる。
Furthermore, if a full page buffer is detected during printing, the wait state for back side printing is canceled and the process moves to back side printing. Therefore, printing processing does not have to wait until the page buffer becomes empty, so it is possible to prevent a decrease in operability and utilization efficiency, and to perform double-sided printing efficiently.

さらに、ホストコンピュータは、片面印刷の場合と同様
、印刷コマンド列の転送が1回で済むため、転送時間の
短縮、処理負担の軽減ができる。
Furthermore, as in the case of single-sided printing, the host computer only needs to transfer the print command sequence once, so the transfer time and processing load can be reduced.

(以下、余白) [実施例] 以下、本発明の第1実施例を説明する。(Hereafter, margin) [Example] A first embodiment of the present invention will be described below.

第1図(a)に、本装置の全体システム構成を示す。本
装置は、ホストコンピュータ100、印刷制御装置11
0、及び中間トレイによる両面印刷機構を有したプリン
タエンジン部120から構成されている。
FIG. 1(a) shows the overall system configuration of this device. This device includes a host computer 100, a print control device 11
0, and a printer engine section 120 having a double-sided printing mechanism using an intermediate tray.

ホストコンピュータ100は1通信制御部101、コマ
ンド制御部102からなる。通信制御部101は、印刷
制御装置110との通信を制御し、印刷コマンド列の送
信及び印刷制御装置110内部の制御情報等の受信を行
う。コマンド制御部102は、印刷制御装置110へ送
信する印刷コマンド列の作成及び印刷制御装置110か
ら受信した印刷制御情報等の解析を行う。
The host computer 100 consists of a communication control section 101 and a command control section 102. The communication control unit 101 controls communication with the print control device 110, and transmits print command sequences and receives control information inside the print control device 110. The command control unit 102 creates a print command string to be sent to the print control device 110 and analyzes print control information received from the print control device 110.

印刷制御装置110は、通信制御部111、コマンドバ
ッファ112.コマンド処理部113、ページバッファ
117.プリンタ制御部118からなる。通信制御部1
11は、ホストコンピュータ100との通信を制御し、
印刷コマンド列の受信及び印刷制御装置110内部の制
御情報等の送信を行う。コマンドバッファ112は、通
信制御部111で受信した印刷コマンド列を格納する。
The print control device 110 includes a communication control section 111, a command buffer 112 . Command processing unit 113, page buffer 117. It consists of a printer control section 118. Communication control unit 1
11 controls communication with the host computer 100;
It receives print command sequences and transmits control information and the like inside the print control device 110. The command buffer 112 stores the print command string received by the communication control unit 111.

コマンド処理部113は、描画処理部114、印刷処理
部115、描画処理部114、および印刷処理部115
で使用する印刷制御テーブル116からなる。描画処理
部114は、コマンドバッファ112内の印刷コマンド
列を解析し、印刷制御テーブル116に従って、文字、
図形等をドツトイメージとしてページバッファ117へ
書き込む。
The command processing unit 113 includes a drawing processing unit 114, a printing processing unit 115, a drawing processing unit 114, and a printing processing unit 115.
It consists of a print control table 116 used in The drawing processing unit 114 analyzes the print command string in the command buffer 112 and draws characters, characters, etc. according to the print control table 116.
Graphics and the like are written to the page buffer 117 as dot images.

印刷処理部115は、中間トレイ格納枚数チエツク部1
15a、中間トレイ格納枚数更新部115b、紙サイズ
変更有無フラグチエツク部115c、文書最終ページ番
号確認部115d。
The print processing section 115 includes a number checking section 1 for checking the number of sheets stored in the intermediate tray.
15a, an intermediate tray storage number update section 115b, a paper size change flag check section 115c, and a document final page number confirmation section 115d.

表面・裏面モード設定部115e、片面・両面印刷指定
変更部115f、裏面印刷待ち行列接続/解MA 部1
15 g、ページバッファリザーブ可/不可チエツク部
115h、印刷部1151からなる。
Front side/back side mode setting section 115e, single side/double side printing specification changing section 115f, back side printing queue connection/solution MA section 1
15g, a page buffer reserve enable/disable check section 115h, and a print section 1151.

印刷処理部115は、描画処理部114でページバッフ
ァ117へのドツトイメージの展開が終了した後、起動
され、印刷制御テーブル116を参照してプリンタ制御
部118に印刷を指示する。
The print processing unit 115 is activated after the drawing processing unit 114 finishes rendering the dot image in the page buffer 117, and refers to the print control table 116 to instruct the printer control unit 118 to print.

ページバッファ117上に生成されたドツトイメージデ
ータは、プリンタ制御部118が読み出し、プリンタエ
ンジン部120が受信できる形式の信号に変換して、プ
リンタエンジン部120へ出力する。プリンタエンジン
部120は、入力された信号に従って、紙面上への印刷
を電子写真印刷メカニズムやワイヤドツト印刷メカニズ
ムを用いて行う。
The dot image data generated on the page buffer 117 is read by the printer control section 118, converted into a signal in a format that can be received by the printer engine section 120, and outputted to the printer engine section 120. The printer engine section 120 prints on paper according to the input signal using an electrophotographic printing mechanism or a wire dot printing mechanism.

次に、本装置のコマンド処理部113のシステム構成を
示した第1図(b)と描画処理部114の処理を示した
描画処理フローチャートである第2図を用いて説明する
Next, a description will be given with reference to FIG. 1(b) showing the system configuration of the command processing section 113 of this apparatus and FIG. 2 which is a drawing processing flowchart showing the processing of the drawing processing section 114.

コマンド処理部113は、前述のように描画処理部11
4、印刷処理部115.及び印刷制御テーブル116か
らなる。その中の描画処理部114は、片面・両面印刷
指定コマンド処理部114a、改頁処理部114b、紙
サイズ指定処理部114c、文書最終ページ検出部11
4d、描画部114eからなる。
The command processing unit 113 includes the drawing processing unit 11 as described above.
4. Print processing section 115. and a print control table 116. The drawing processing unit 114 includes a single-sided/double-sided printing command processing unit 114a, a page break processing unit 114b, a paper size specification processing unit 114c, and a document last page detection unit 11.
4d, and a drawing section 114e.

印刷制御テーブル116は、片面・両面印刷指定エリア
116a、表面・裏面印刷指定エリア116b、印刷ペ
ージ通し番号エリア116C1紙サイズエリア116d
、紙サイズ変更有無フラグエリア116e、表面・裏面
モードエリア116f、中間トレイ格納枚数エリア11
6g、文書最終ページ番号エリア116h、裏面印刷待
ち有無フラグエリア1161、中間トレイ格納許容枚数
エリア116j、ページバッファリザーブ可/不可フラ
グエリア116k、総印刷部数エリア116Q、裏面印
刷待ち行列エリア116m等からなる。ここで、システ
ムの初期化時に、中間トレイ格納枚数エリア116gは
01表面・裏面モードエリア116fは表面モードに設
定される。
The print control table 116 includes a single-sided/double-sided printing specification area 116a, a front/back side printing specification area 116b, a print page serial number area 116C1, and a paper size area 116d.
, paper size change flag area 116e, front/back mode area 116f, intermediate tray storage number area 11
6g, document final page number area 116h, backside printing waiting flag area 1161, intermediate tray storage allowable number of sheets area 116j, page buffer reserve enable/disable flag area 116k, total number of copies area 116Q, backside printing queue area 116m, etc. . Here, when the system is initialized, the intermediate tray storage number area 116g is set to 01, and the front/back mode area 116f is set to front mode.

なお、この表面・裏面モードエリア116fは印刷処理
が表面印刷を行っているのか裏面印刷を行っているのか
を示す。ページバッファ117は複数ページからなり、
描画処理部114が順に描画し、印刷処理部115が順
に印刷を行う。また、印刷制御テーブル116(各項目
116a〜116mを含む)は、ページバッファ117
の各ページに対応して、複数ページ分用意する。印刷処
理部115も複数個用意し、ページバッファ117上の
各ページに対応して別々に起動する。
Note that this front/back side mode area 116f indicates whether the printing process is performing front side printing or back side printing. The page buffer 117 consists of multiple pages,
The drawing processing unit 114 sequentially performs drawing, and the printing processing unit 115 sequentially performs printing. The print control table 116 (including each item 116a to 116m) also includes a page buffer 117
Prepare multiple pages corresponding to each page. A plurality of print processing units 115 are also prepared and activated separately for each page on the page buffer 117.

描画処理部114と複数個の印刷処理部115が並行処
理できるので、印刷制御装置及びプリンタエンジン部の
スループットを向上させることができる。詳しくは、本
出願人が先に提案した特願昭63−158481号及び
特願平1−164637号に開示されている。
Since the drawing processing unit 114 and the plurality of print processing units 115 can perform parallel processing, the throughput of the print control device and printer engine unit can be improved. The details are disclosed in Japanese Patent Application No. 158481/1981 and Japanese Patent Application No. 164637/1999, both of which were previously proposed by the present applicant.

第2図のフローチャートにより、このシステムの動作例
を説明する。
An example of the operation of this system will be explained with reference to the flowchart in FIG.

ホストコンピュータ100が、文書の第1ページの先頭
にて、片面・両面印刷指定コマンド発行手段103を用
いて両面印刷を指定し、印刷コマンド列を送信したとす
る。
Assume that the host computer 100 specifies double-sided printing at the beginning of the first page of the document using the single-sided/double-sided printing designation command issuing unit 103, and transmits a print command string.

第2図(a)の描画処理フロー200に示すように、描
画処理部114は、まずコマンドバッファ112内の印
刷コマンドを読み出すため、コマンドバッファリード処
理をコールする(201)。コマンドバッファリード処
理201では、第2図(b)に示すように、コマンドバ
ッファ112内の印刷コマンドの有無を調べる(201
a)。印刷コマンドがなければ、ホストコンピュータ1
00から印刷コマンド列が送られてコマンドバッファ1
12に格納されるまで待つ(201b)。印刷コマンド
があれば、コマンドバッファ112から読み出す(20
1c)、次に、第2図(a)に戻り、読み出した印刷コ
マンドは解析され(202)、制御コマンドであるか否
かを調べる(203)。
As shown in the drawing processing flow 200 of FIG. 2(a), the drawing processing unit 114 first calls command buffer read processing in order to read the print command in the command buffer 112 (201). In the command buffer read process 201, as shown in FIG. 2(b), the presence or absence of a print command in the command buffer 112 is checked (201).
a). If there is no print command, host computer 1
A print command string is sent from 00 to command buffer 1.
12 (201b). If there is a print command, it is read from the command buffer 112 (20
1c) Next, returning to FIG. 2(a), the read print command is analyzed (202) and it is determined whether it is a control command (203).

ここで、印刷コマンドは1片面・両面印刷指定コマンド
、紙サイズ指定コマンド、改頁コマンド等の制御コマン
ドと文字描画、円描画、折れ線描画等の描画コマンドか
らなる。
Here, the print commands include control commands such as single-sided/double-sided printing designation commands, paper size designation commands, and page break commands, and drawing commands such as character drawing, circle drawing, and polyline drawing.

描画コマンドであれば、描画部114eによりページバ
ッファ117へ文字、図形等のドツトイメージの展開を
行う(204)。制御コマンドであれば、その内容が片
面・両面印刷指定コマンドであるか(205)、改頁コ
マンドであるか(207)、紙サイズ指定コマンドであ
るか(209)、文書終了指定コマンドであるか(21
1)を調べ、片面・両面印刷指定コマンドであれば片面
・両面印刷指定処理をコールする(206)。第2図(
c)に示す片面・両面印刷指定処理206では、ホスト
コンピュータ100がら指定された片面印刷指定/両面
印刷指定を印刷制御テーブル116内の片面・両面印刷
指定エリア116aに設定する(206a)。
If it is a drawing command, the drawing unit 114e develops dot images such as characters and figures into the page buffer 117 (204). If it is a control command, whether the content is a one-sided/double-sided print designation command (205), a page break command (207), a paper size designation command (209), or a document end designation command. (21
1) is checked, and if it is a one-sided/double-sided printing designation command, a one-sided/double-sided printing designation process is called (206). Figure 2 (
In the single-sided/double-sided print designation process 206 shown in c), the single-sided/double-sided print designation specified by the host computer 100 is set in the single-sided/double-sided print designation area 116a in the print control table 116 (206a).

第2図(a)に戻り、制御コマンドが改頁コマンドであ
れば改頁処理をコールする(208)。第2図(d)の
改頁処理208では、初めに、印刷制御テーブル116
内の印刷ページ通し番号エリア116cの奇数/偶数を
調べる(208a)。印刷ページ通し番号エリア116
cが、奇数ならば表面印刷を、偶数ならば裏面印刷を印
刷制御テーブル116内の表面・裏面印刷指定エリア1
16bに設定して(208b、 208c)、印刷処理
部115を起動する(208d)、すなわち、表面・裏
面印刷指定エリア116bは、印刷ページ通し番号エリ
ア116cに格納されているページが表面・裏面のいず
れの面の印刷を行わなければならないかを示すもので、
印刷処理部115は、起動されると表面・裏面印刷エリ
ア116cを参照して表面印刷あるいは裏面印刷を行う
Returning to FIG. 2(a), if the control command is a page break command, a page break process is called (208). In the page break process 208 in FIG. 2(d), first, the print control table 116
The odd/even numbers in the print page serial number area 116c are checked (208a). Print page serial number area 116
If c is an odd number, print on the front side; if c is an even number, print on the back side. Front/back side printing designation area 1 in print control table 116
16b (208b, 208c), and starts the print processing unit 115 (208d).In other words, the front/back side printing specification area 116b is used to specify whether the page stored in the print page serial number area 116c is the front side or the back side. This indicates whether or not the side must be printed.
When activated, the print processing unit 115 performs front side printing or back side printing with reference to the front/back side printing area 116c.

第2図(a)に戻り、制御コマンドが紙サイズ指定コマ
ンドならば紙サイズ指定処理をコールする(210)。
Returning to FIG. 2(a), if the control command is a paper size designation command, a paper size designation process is called (210).

第2図(e)に示す紙サイズ指定処理210では、印刷
制御テーブル116内の紙サイズエリア116dに紙サ
イズを設定する(210a)。次に、前ページについて
の紙サイズエリア116dと比較を行い(210b)、
同じであれば紙サイズ変更なしを、異なれば紙サイズ変
更有りを印刷制御テーブル116内の紙サイズ変更有無
フラグエリア116eに設定する(210c、210d
)。
In the paper size designation process 210 shown in FIG. 2(e), a paper size is set in the paper size area 116d in the print control table 116 (210a). Next, a comparison is made with the paper size area 116d for the previous page (210b),
If they are the same, no paper size change is set; if they are different, paper size change is set in the paper size change flag area 116e in the print control table 116 (210c, 210d).
).

第2図(、)に戻り、制御コマンドが文書終了指定コマ
ンドであれば、その最終ページの印刷ページ通し番号1
16cを印刷制御テーブル116の文書最終ページ番号
エリア116hに設定する(212)、片面・両面印刷
指定コマンド、改頁コマンド、紙サイズ指定コマンド、
文書終了指定コマンドのいずれでもなければ、その他の
制御コマンドの処理を行う(213)。次に、描画処理
部114は、先コマンドの処理の後、エラーの有無を調
べ(211)、エラーがなければ、コマンドバッファリ
ード処理(201)に戻り、以下同様の処理を繰り返す
Returning to Figure 2 (,), if the control command is a document end designation command, the print page serial number 1 of the last page
16c in the document last page number area 116h of the print control table 116 (212), single-sided/double-sided print designation command, page break command, paper size designation command,
If it is not a document end designation command, other control commands are processed (213). Next, after processing the previous command, the drawing processing unit 114 checks whether there is an error (211), and if there is no error, returns to the command buffer read process (201) and repeats the same process.

次に、印刷処理部115を、第1図(b)と印刷処理の
フローチャートを示す第3図を用いて説明する。
Next, the print processing unit 115 will be explained using FIG. 1(b) and FIG. 3 showing a flowchart of print processing.

ここで、前記裏面印刷待ち解除条件の1つとして、紙サ
イズの変更の検出を用いる。
Here, detection of a change in paper size is used as one of the conditions for canceling the wait for printing on the back side.

例えば、ホストコンピュータ100が、第3ページ以降
から紙サイズの異なっている文書の印刷コマンド列を送
信した場合について説明する。第1ページについては、
描画処理部114が、対応する順番の印刷制御テーブル
116に制御情報を設定し、対応する順番のページバッ
ファ117に描画を行い、対応する順番の印刷処理部を
起動する。該印刷処理は、印刷制御テーブル116内の
対応する順番のページ用のエリアを参照しながら、以下
のように処理する。初めに、片面・両面印刷指定エリア
116aを参照して両面印刷指定か調べ(301)、両
面印刷指定なので表面・裏面印刷指定エリア116bを
参照して表面印刷指定か調べる(302)。表面印刷指
定なので1文書最終ページ番号エリア116hと印刷ペ
ージ通し番号エリア116cが同じか調べる(320)
。同じでないので、紙サイズ変更有無フラグエリア11
6eがON(紙サイズ変更有り)か調べる(304)。
For example, a case will be described in which the host computer 100 transmits a print command sequence for a document with different paper sizes starting from the third page. For the first page,
The drawing processing section 114 sets control information in the print control table 116 of the corresponding order, performs drawing on the page buffer 117 of the corresponding order, and starts the print processing section of the corresponding order. The printing process is performed as follows while referring to the areas for pages in the corresponding order in the print control table 116. First, it is checked whether double-sided printing is designated by referring to the single-sided/double-sided printing designation area 116a (301), and since double-sided printing is designated, it is checked whether front-side printing is designated by referring to the front/back-side printing designation area 116b (302). Since front side printing is specified, check whether the last page number area 116h of one document and the print page serial number area 116c are the same (320).
. Since they are not the same, the paper size change flag area 11
Check whether 6e is ON (paper size changed) (304).

本フラグは0FF(紙サイズ変更無し)なので、第3図
(その2)に移り、片面・両面印刷指定エリア116a
を参照して両面印刷指定か(330)、表面・裏面印刷
指定エリア116bを参照して表面印刷指定か(331
)を調べた後、中間トレイ格納枚数エリア116gから
中間トレイフル(満杯)か調べる(340)。中間トレ
イフルでないので、中間トレイ格納枚数エリア116g
を1加算する(349)。次に、印刷を行い(350)
、排紙終了待ちになる(351)。ここで、印刷とは、
プリンタエンジン部120の給排紙部についての確認と
指示を行い、プリンタ制御部118を起動することであ
る。また、排紙終了待ちとは、印刷の終った用紙が排紙
部へ出力されるまで、印刷処理が待機している状態のこ
とである。次に、第2ページの描画が第1ページと同様
に処理され、対応する順番の印刷処理部が起動される。
Since this flag is 0FF (no paper size change), move on to Figure 3 (Part 2), and move to the single-sided/double-sided printing designated area 116a.
to specify double-sided printing (330), or specify front-side printing by referring to the front/back printing specification area 116b (331).
), then it is checked whether the intermediate tray is full from the intermediate tray storage number area 116g (340). Since the intermediate tray is not full, the intermediate tray storage area is 116g.
is added by 1 (349). Next, print (350)
, the machine waits for paper ejection to finish (351). Here, printing means
This involves checking and instructing the paper feed/discharge section of the printer engine section 120 and starting the printer control section 118. Waiting for completion of paper ejection is a state in which printing processing is on standby until the printed paper is output to the paper ejection unit. Next, the drawing of the second page is processed in the same manner as the first page, and the print processing units in the corresponding order are activated.

該印刷処理は、片面・両面印刷指定エリア116aを参
照して1両面印刷指定が調べ(301)、両面印刷指定
なので、表面・裏面印刷指定エリア116bを参照して
表面印刷指定かを調べる(302)。今度は裏面印刷指
定なので、表面・裏面モードエリア116fを参照して
表面モードか調べる(303)。表面モードなので1文
書最終ページ番号エリア116hと印刷ページ通し番号
エリア116Cが同じであるか否かを調べる(311)
。ここでは同じでないので、裏面印刷待ち有無フラグエ
リア1161をON(裏面印刷待ち有り)にして(31
2)、本印刷処理を裏面印刷待ち行列エリア116mに
接続すル(313)、次に、第3ページの描画が前ペー
ジごと同様に処理され、対応する順番、の印刷処理部が
起動される。該印刷処理は、第1ページと同様に処理さ
れていき、紙サイズ変更有無フラグエリア116eを調
べる(304)、この例では、本フラグはON(紙サイ
ズ変更有り)なので、裏面印刷待ち有無フラグエリア1
161を調べる(305)。
The printing process refers to the single-sided/double-sided printing specification area 116a to check whether one-sided printing is specified (301), and since it is a double-sided printing specification, it refers to the front/back side printing specification area 116b to check whether front-side printing is specified (302). ). This time, since back side printing is specified, the front side/back side mode area 116f is referred to check whether front side mode is selected (303). Since it is the front mode, it is checked whether the last page number area 116h of one document and the print page serial number area 116C are the same (311).
. Since they are not the same here, set the back side printing waiting flag area 1161 to ON (back side printing waiting) (31
2) Connect the main printing process to the back side printing queue area 116m (313).Next, the drawing of the third page is processed in the same way as for the previous page, and the print processing units in the corresponding order are activated. . The printing process is performed in the same way as for the first page, and the paper size change flag area 116e is checked (304). In this example, this flag is ON (paper size has been changed), so the back side printing waiting flag is checked. Area 1
Check 161 (305).

第2ページが裏面印刷待ちであり、裏面印刷待ち有無フ
ラグエリア1161がON(裏面印刷待ち有り)となっ
ているので、表面・裏面モードエリア116fを裏面モ
ードに変更しく306)、裏面印刷待ち有無フラグエリ
ア1161をOFFにして(307)、本印刷処理を裏
面印刷待ち行列エリア116mに接続する(308)。
Since the second page is waiting to be printed on the back side and the flag area 1161 is ON (waiting for printing on the back side), the front/back mode area 116f should be changed to the back mode (306), and whether or not there is a waiting time for printing on the back side. The flag area 1161 is turned off (307), and the main printing process is connected to the back side printing queue area 116m (308).

次に、裏面印刷待ち行列エリア116mにつながってい
る印刷処理(第2ページと第3ページ)をすべて解除す
る(309)。すると、裏面印刷待ち状態になっていた
第2ページの印刷処理が、本第2ページの印刷処理を先
に裏面印刷待ち行列エリア116mに接続した裏面印刷
待ち行列接続処理(313)の次から再開され、裏面の
印刷に移る。まず、紙サイズ変更有無フラグエリア11
6eがON(紙サイズ変更有り)か調べる(304)、
紙サイズ変更有無フラグエリアは0FF(紙サイズ変更
無し)なので、片面・両面印刷指定エリア116aを参
照して両面印刷指定か調べ(330)、表面・裏面印刷
指定116bを参照して表面印刷指定か調べる(331
)。本ページの印刷処理は裏面印刷指定なので、中間ト
レイ格納枚数エリア116gから中間トレイが空きか調
べる(332)。ここでは中間トレイは空きでないので
、中間トレイ格納枚数エリア116gを1減算する(3
39)。次に、印刷を行い(350)、排紙終了待ちに
なる(351)。
Next, all printing processes (second and third pages) connected to the back print queue area 116m are canceled (309). Then, the printing process for the second page, which was in the back side print waiting state, resumes after the back print queue connection process (313) that previously connected the print process for the second page to the back side print queue area 116m. and then move on to printing on the back side. First, paper size change flag area 11
Check whether 6e is ON (paper size changed) (304),
Since the paper size change flag area is 0FF (no paper size change), check whether double-sided printing is specified by referring to the single-sided/double-sided printing specification area 116a (330), and check whether front-side printing is specified by referring to the front/back side printing specification 116b. Check (331
). Since the printing process for this page specifies back side printing, it is checked whether the intermediate tray is empty from the intermediate tray storage number area 116g (332). Here, the intermediate tray is not empty, so 1 is subtracted from the intermediate tray storage number area 116g (3
39). Next, printing is performed (350), and the process waits for completion of paper ejection (351).

すると、第3ページの印刷処理が、先に裏面印刷待ち行
列エリア116mにつながっている印刷処理をすべて解
除した処理(309)の次から再開される。まず、表面
・裏面モードエリア116fを表面モードに変更する(
310)。そして、前ページ(第2ページ)が完全に排
出されたかを調べ(329)、排出されていなければ、
排出されるまで待つ、完全に排出されると、片面・両面
印刷指定エリア116aを参照して両面印刷指定か(3
30)、表面・裏面印刷指定エリア116bを参照して
表面印刷指定か(331)を調べ、中間トレイ格納枚数
エリア116gから中間トレイフルか調べる(340)
。中間トレイフルでないので、中間トレイ格納枚数エリ
ア116gを1加算する(349)。次に、印刷を行い
(350)、排紙終了待ちになる(351)。以下、第
4ページ、第5ページ・・・と第1ページ、第2ページ
と同様に処理されていく。
Then, the printing process for the third page is restarted from the process (309) in which all printing processes connected to the back side printing queue area 116m were canceled first. First, change the front/back mode area 116f to front mode (
310). Then, it is checked whether the previous page (second page) has been completely ejected (329), and if it has not been ejected,
Wait until it is completely ejected. When it is completely ejected, refer to the single-sided/double-sided printing designation area 116a and select whether to specify double-sided printing (3
30), Check whether front side printing is specified (331) with reference to the front/back side print designation area 116b, and check whether the intermediate tray is full from the intermediate tray storage number area 116g (340).
. Since the intermediate tray is not full, 1 is added to the intermediate tray storage number area 116g (349). Next, printing is performed (350), and the process waits for completion of paper ejection (351). Thereafter, the fourth page, the fifth page, and so on are processed in the same way as the first and second pages.

以上のように、描画処理部は、ページの表面/表面に関
係なく次々と対応する順番のページバッファに描画を行
い、描画が終了すると第1ページ、第2ページ・・・と
順に印刷処理部を起動する。そして、印刷ページ通し番
号116Cを参照して奇数ならば、印刷して中間トレイ
へ排出し、偶数ならば、裏面印刷待ち状態にして、裏面
印刷待ち行列エリア116mにつなぐ。異なる紙サイズ
のページの場合は、偶数ページと同様、裏面印刷待ち状
態にして、裏面印刷待ち行列エリア116mにつなぎ、
裏面印刷待ち行列エリア116mにつながれているすべ
ての印刷処理を解除して偶数ページの印刷処理に移る。
As described above, the drawing processing section draws on the page buffers in the corresponding order one after another regardless of the front/front surface of the page, and when the drawing is completed, the printing processing section Start. Then, referring to the print page serial number 116C, if it is an odd number, it is printed and discharged to the intermediate tray, and if it is an even number, it is placed in a back side print waiting state and connected to the back side print queue area 116m. In the case of pages of different paper sizes, as with even-numbered pages, they are placed in a back-side print waiting state and connected to the back-side print queue area 116m.
All printing processes connected to the back side print queue area 116m are canceled and the printing process of even-numbered pages is started.

そして、前ページが完全に排出されるまで待ってから紙
サイズ等を変更し、表面印刷に移る。従って、異なった
紙サイズのページが混在した文書の印刷コマンド列が送
られても、エラーとならずに両面印刷を行うことができ
る。
Then, wait until the previous page is completely ejected, change the paper size, etc., and proceed to front side printing. Therefore, even if a print command sequence for a document containing pages of different paper sizes is sent, double-sided printing can be performed without causing an error.

なお、以上の異なる紙サイズの混在した文書に対する処
理は1次のように処理してもよい。すなわち、異なる紙
サイズのページを検出すると裏面印刷待ち行列エリア1
16mにつながっている印刷処理を解除し、異なる紙サ
イズのページの印刷処理を「裏面印刷終了持ち」にする
。そして、裏面印刷待ち行列エリア116mにつながっ
ていた最後の印刷処理で「裏面印刷待ち解除」を行うよ
うにしてもよい。
Note that the above-described processing for documents containing a mixture of different paper sizes may be performed as follows. In other words, when a page of a different paper size is detected, the back print queue area 1
Cancel the printing process connected to 16m, and set the printing process for pages of different paper sizes to ``hold printing on the back side''. Then, the "back side printing queue release" may be performed in the last printing process connected to the back side printing queue area 116m.

具体的には、第3ページに対応する順番の印刷処理を起
動するまでは、前述した処理と同じである。該印刷処理
は、裏面印刷待ち行列エリア116mにつながれている
印刷処理(第2ページ)の印刷待ちを解除するとともに
、当該印刷処理を「裏面印刷終了持ち」にする。すると
、裏面印刷待ち行列エリア116mにつながれていた第
2ページの処理に移り、そのページの印刷が行われる。
Specifically, the process is the same as that described above until the printing process in the order corresponding to the third page is started. The print process releases the print process (second page) connected to the back print queue area 116m from the print queue, and sets the print process to "end print on the back side". Then, the process moves to the second page connected to the back print queue area 116m, and that page is printed.

そして、本印刷処理を終了前に、r裏面印刷終了持ち解
除」を行い、第3ページの処理に移り、第4ページ、第
5ページ・・・と処理する。
Then, before finishing the main printing process, "r" is performed, and the process moves to the third page, and then the fourth page, the fifth page, and so on.

更に、次のように処理してもよい。すなわち、異なる紙
サイズのページを検出すると、裏面印刷待ち行列エリア
116mにつながれている印刷処理の印刷待ちを解除す
る。次に、異なる紙サイズのページの印刷処理を「裏面
印刷終了待ち」にし、裏面印刷処理に移る。そして、裏
面印刷処理で異なる紙サイズのページを検出したら、本
印刷処理を裏面印刷待ち行列エリア116mにつなぎ、
「裏面印刷終了待ち解除」を行うようにしてもよい。
Furthermore, the following processing may be performed. That is, when a page of a different paper size is detected, the print queue of the print process connected to the back side print queue area 116m is released. Next, print processing for pages of different paper sizes is set to "wait for completion of back side printing" and the process moves to back side printing processing. Then, when a page with a different paper size is detected during the back side printing process, the main printing process is connected to the back side print queue area 116m,
It is also possible to perform "cancellation of wait for completion of back side printing".

この方法では、異なる紙サイズのページの印刷処理を裏
面印刷終了待ちにし、裏面印刷待ち行列エリア116m
につながれていた第2ページの印刷処理に移るまでは前
述した処理と同じである。
In this method, the printing process for pages of different paper sizes is made to wait for the back side printing to be completed, and the back side printing queue area 116m
The process is the same as that described above until the process moves to printing the second page connected to the page.

つまり、第2ページの印刷処理では、本ページに対応す
る印刷制御テーブル116内の紙サイズ変更有無フラグ
エリア116eを調べる。そして、紙サイズ変更無しな
ので印刷を行い、排紙終了待ちとなる。次に、第4ペー
ジに対応する印刷処理が起動される。該印刷処理は、第
2ページの場合と同様に対応する印刷制御テーブル11
6内の紙サイズ変更有無フラグエリア116eを調べる
That is, in the printing process for the second page, the paper size change flag area 116e in the print control table 116 corresponding to this page is checked. Then, since the paper size is not changed, printing is performed and the process waits for the paper to be ejected. Next, print processing corresponding to the fourth page is started. The printing process is performed using the corresponding print control table 11 as in the case of the second page.
Check the paper size change flag area 116e in 6.

そして、第4ページは、第3ページの裏面ページなので
紙サイズ変更有無フラグエリア116eは紙サイズ変更
有りであり、本印刷処理を裏面印刷待ち行列エリア11
6mにつなぎ、「裏面印刷終了待ち解除」を行う。そし
て第3ページの印刷処理に移り、第5ページ、第6ペー
ジ、・・・と処理していく。
Since the fourth page is the back page of the third page, the paper size change flag area 116e indicates that the paper size has been changed, and the main printing process is carried out in the back print queue area 116e.
Connect to 6m and perform "Cancel wait for back side printing to finish". Then, the printing process moves on to the third page, and then the fifth page, the sixth page, and so on.

(以下、余白) 次に、本発明の第2実施例を説明する。ここで。(Hereafter, margin) Next, a second embodiment of the present invention will be described. here.

前記裏面印刷待ち解除条件の1つとして1文書の最終ペ
ージの検出を用いる0本実施例では初めに文書の最終ペ
ージの印刷ページ通し番号116cが偶数の場合の処理
手順を説明する。この場合の処理を、文書の最終ページ
を第4ページとして説明する。なお、本実施例以降の実
施例は、好ましい態様として、第1の実施例と結合して
第3図に示している。
In this embodiment, the detection of the last page of one document is used as one of the conditions for canceling the back-side printing wait state. First, the processing procedure when the print page serial number 116c of the last page of the document is an even number will be explained. The processing in this case will be explained assuming that the last page of the document is the fourth page. The embodiments after this embodiment are shown in FIG. 3 in combination with the first embodiment as a preferred embodiment.

第3ページに対応する順番の印刷処理部を起動するまで
は、前記具なる紙サイズの混在した文書の処理手順と同
様である。第3ページの印刷処理は、第1ページと同様
に処理を行う。次に、第4ページの描画処理に移り、対
応する順番のページバッファ117に描画を行い、対応
する順番の印刷処理部が起動される。該印刷処理は、片
面・両面印刷指定エリア116aを参照し、両面印刷指
定か調べ(301)、両面印刷指定なので表面・裏面印
刷指定エリア116bを参照し1表面印刷指定か調べる
(302)。第4ページは裏面印刷指定なので、表面・
裏面モードエリア116fを参照し、表面モードか調べ
る(303)。表面モードなので、文書最終ページ番号
エリア116hと印刷ページ通し番号エリア116cが
同じであるか調べる(311)、この例では同じなので
、裏面印刷待ち有無フラグエリア1161がON(裏面
印刷待ち有り)か調べる(314)。裏面印刷待ち有無
フラグエリア1161がON(裏面印刷待ち有り)なの
で、表面・裏面モードエリア116fを裏面モードに変
更しく315)、裏面印刷待ち有無フラグエリア116
1をOFFにして(316)、本印刷処理を一旦裏面印
刷待ち行列エリア116mに接続する(317)。次に
、裏面印刷待ち行列エリア116mにつながっている印
刷処理(第2ページと第4ページ)をすべて解除しく3
18)、裏面印刷処理に移る。裏面印刷処理では、第2
ページの印刷処理が動作し、紙サイズ変更有無フラグエ
リア116eがONか調べる(304)。紙サイズ変更
有無フラグエリアはOFFなので、片面・両面印刷指定
エリア116aを参照し、両面印刷指定か調べ(330
)、表面・裏面印刷指定エリア116bを参照し、表面
印刷指定か調べる(331)、裏面印刷指定なので、中
間トレイ格納枚数エリア116gから中間トレイ空きか
調べ(332)、中間トレイは空きでないので、中間ト
レイ格納枚数エリア116gを1減算する(339)。
The procedure until the print processing units in the order corresponding to the third page are activated is the same as the processing procedure for a document with mixed paper sizes. The printing process for the third page is performed in the same way as for the first page. Next, the drawing process for the fourth page is started, drawing is performed in the page buffer 117 in the corresponding order, and the print processing units in the corresponding order are activated. The printing process refers to the single-sided/double-sided printing designation area 116a to check whether double-sided printing is specified (301), and since double-sided printing is specified, it refers to the front/back-side printing designation area 116b to check if one-sided printing is specified (302). The fourth page is specified to be printed on the back side, so the front side
Referring to the back mode area 116f, it is determined whether the front mode is present (303). Since it is the front side mode, it is checked whether the document final page number area 116h and the print page serial number area 116c are the same (311).In this example, since they are the same, it is checked whether the back side printing waiting flag area 1161 is ON (back side printing waiting). 314). Since the back side printing waiting flag area 1161 is ON (back side printing waiting), the front/back mode area 116f should be changed to the back mode (315), and the back side printing waiting flag area 116
1 is turned off (316), and the main printing process is temporarily connected to the back side printing queue area 116m (317). Next, cancel all printing processes (2nd and 4th pages) connected to the back print queue area 116m.
18) Move on to the back side printing process. In the back printing process, the second
The page printing process operates, and it is checked whether the paper size change flag area 116e is ON (304). Since the paper size change flag area is OFF, refer to the single-sided/double-sided printing specification area 116a and check whether duplex printing is specified (330
), refers to the front/back side printing specification area 116b and checks whether front side printing is specified (331).Since back side printing is specified, check whether the intermediate tray is empty from the intermediate tray storage number area 116g (332); since the intermediate tray is not empty, Subtract 1 from the intermediate tray storage number area 116g (339).

次に、印刷を行い(350)、排紙終了待ちになる(3
51)。次に、第4ページの印刷処理が動作し、表面・
裏面モード116fを表面モードに変更しく319)、
第2ページと同様に処理する。以上のように処理するこ
とにより、文書の最終ページが偶数ページの場合、支障
なく両面印刷を行うことができる。
Next, it prints (350) and waits for paper ejection to finish (3
51). Next, the printing process for the fourth page starts, and the front and
Change back mode 116f to front mode 319),
Process in the same way as the second page. By processing as described above, if the last page of the document is an even numbered page, double-sided printing can be performed without any problem.

次に、文書の最終ページが奇数ページの場合の処理手順
を説明する。この場合の処理を、文書の最終ページを第
5ページとして説明する。
Next, the processing procedure when the last page of the document is an odd numbered page will be explained. The processing in this case will be explained assuming that the final page of the document is the fifth page.

第4ページの印刷処理部が起動されるまでは、文書最終
ページが偶数ページの場合と同様に処理される。該印刷
処理は9片面・両面印刷指定エリア116aを参照し両
面印刷指定か調べ(301)、表面・裏面印刷指定エリ
ア116bを参照し、表面印刷指定か調べる(302)
。そして1表面・裏面モードエリア116fを参照し表
面モードであるか調べ(303)、文書最終ページ番号
エリア116hと印刷ページ通し番号エリア116cが
同じであるか調べる(311)。ここでは異なるので、
裏面印刷待ち有無フラグエリア1161をON(裏面印
刷待ち有り)にし、本印刷処理が裏面印刷待ち行列エリ
ア116mへ接続される。次に、文書の最終ページであ
る第5ページの描画処理に移り、対応する順番のページ
バッファ117に描画を行い、対応する順番の印刷処理
部が起動される。該印刷処理は、片面・両面印刷指定エ
リア116aを参照し、両面印刷指定か調べ(301)
、表面・裏面印刷指定エリア116bを参照し、表面印
刷指定か調べる。そして、文書最終ページ番号エリア1
16hと印刷ページ通し番号エリア116cが同じであ
るか調べる(320)。ここでは同じなので、裏面印刷
有無フラグエリア1161がON(裏面印刷待ち有り)
か調べる(321)。裏面印刷待ち有りなので、表面・
裏面モード116fを裏面モードに変更しく322)、
裏面印刷有無フラグエリア1161をOFFにして(3
23)、本印刷処理を一旦裏面印刷待ち行列エリア11
6mに接続する(324)。次に、裏面印刷待ち行列エ
リア116mにつながっている印刷処理(第2ページ、
第4ページ、第5ページ)をすべて解除しく325)、
裏面印刷処理に移る。裏面印刷処理では、第2ページ、
第4ページと印刷される。次に、第5ページの印刷処理
が動作し、印刷制御テーブル116内の片面・両面印刷
指定エリア116aを片面印刷指定に変更する(326
)。そして、表面・裏面モードエリア116fを表面モ
ードに変更する(327)、次に。
Until the print processing unit for the fourth page is started, the process is performed in the same way as when the last page of the document is an even page. The printing process refers to the 9 single-sided/double-sided printing specification area 116a to check whether duplex printing is specified (301), and refers to the front/back side printing specification area 116b to check whether front-side printing is specified (302).
. Then, it is checked whether the front side mode area 116f is the front side mode (303), and it is checked whether the document last page number area 116h and the print page serial number area 116c are the same (311). It's different here, so
The back side printing waiting flag area 1161 is turned on (back side printing waiting), and the main printing process is connected to the back side printing queue area 116m. Next, the drawing process for the fifth page, which is the final page of the document, is performed, drawing is performed in the page buffer 117 in the corresponding order, and the print processing units in the corresponding order are activated. The printing process refers to the single-sided/double-sided printing designation area 116a and checks whether double-sided printing is designated (301).
, refers to the front/back side printing designation area 116b and checks whether front side printing is designated. And document last page number area 1
It is checked whether 16h and print page serial number area 116c are the same (320). Since it is the same here, the back side printing presence/absence flag area 1161 is ON (back side printing waiting)
(321). The back side is waiting for printing, so the front side
Change the back mode 116f to the back mode 322),
Turn off the back side printing flag area 1161 (3
23), the main printing process is temporarily performed in the back side printing queue area 11.
Connect to 6m (324). Next, print processing (second page,
325),
Move on to the back side printing process. In the back printing process, the second page,
The fourth page is printed. Next, the printing process for the fifth page operates, and the single-sided/double-sided printing designation area 116a in the print control table 116 is changed to single-sided printing (326
). Then, the front/back mode area 116f is changed to the front mode (327), and then.

紙サイズ変更有無フラグエリア116Cを調尺(304
)、紙サイズ変更なしなので、片面・両面印刷指定エリ
ア116aを参照し、両面印刷指定か調べる(330)
。片面印刷指定なので、印刷(片面印刷)を行い(35
0)、排紙終了待ちになる(351)。総印刷部数完了
したならば、第3図(その3)に移り、片面・両面印刷
指定エリア116aを調べる(353)。片面印刷指定
ならば本印刷処理を終了する。両面印刷指定あるいは文
書最終ページが奇数ページのとき両面印刷指定から片面
印刷指定に変更した片面印刷指定変更ならば文書最終ペ
ージ番号エリア116hと印刷ページ通し番号エリア1
16Cが等しいか調べる(354)。等しければ片面両
面印刷指定エリア116aに両面印刷指定を指定する(
355)。
Adjust the paper size change flag area 116C (304
), the paper size has not changed, so refer to the single-sided/double-sided printing specification area 116a and check whether duplex printing is specified (330).
. Since one-sided printing is specified, print (single-sided printing) (35
0), the printer waits for paper ejection to finish (351). When the total number of copies has been printed, the process moves to FIG. 3 (part 3) and examines the single-sided/double-sided print designation area 116a (353). If one-sided printing is specified, the main printing process ends. When double-sided printing is specified or the last page of the document is an odd numbered page, the double-sided printing specification is changed to single-sided printing.If the single-sided printing specification is changed, the document last page number area 116h and the print page serial number area 1 are displayed.
Check whether 16C is equal (354). If they are equal, designate double-sided printing in the single-sided and double-sided printing designation area 116a (
355).

以上のように、文書の最終ページが奇数の場合、そのペ
ージに対応する印刷処理は裏面印刷待ち状態にし、裏面
印刷待ち行列エリア116mへ接続する。そして、裏面
印刷待ち行列エリア116mを解除して裏面印刷に移り
、偶数ページを印刷する。次に、最終ページの奇数ペー
ジは、片面印刷指定に変更して、片面印刷するようにし
た。従って、文書の最終ページが奇数の場合、この最終
ページを中間トレイに排出しないで済むので、その全印
刷時間を速くすることができる。
As described above, when the last page of a document is an odd number, the printing process corresponding to that page is placed in a back side print waiting state and connected to the back side print queue area 116m. Then, the back side printing queue area 116m is released, the back side printing is started, and even numbered pages are printed. Next, the last odd-numbered page was changed to single-sided printing so that it would be printed on one side. Therefore, if the last page of the document is an odd number, this last page does not need to be ejected to the intermediate tray, thereby speeding up the overall printing time.

次に、本発明の第3実施例を説明する。Next, a third embodiment of the present invention will be described.

本実施例は、表面印刷の枚数が中間トレイ格納許容枚数
1161より多い文書の両面印刷を行って、中間トレイ
ンル(満杯)という状態になった場合に関するものであ
り、この場合の処理手順を、中間トレイ格納許容枚数1
165を3と仮定して説明する。ここで、前記裏面印刷
待ち解除条件の1つとして、中間トレイフルの検出を用
いる。本許容枚数が他の場合についても同様に処理する
ことができる。
This embodiment relates to a case where double-sided printing is performed on a document in which the number of sheets to be printed on the front side is greater than the allowable number of sheets stored in the intermediate tray (1161), resulting in an intermediate train (full). Tray storage capacity 1
The explanation will be given assuming that 165 is 3. Here, detection of an intermediate tray full is used as one of the conditions for canceling the wait for printing on the back side. The same process can be performed for other cases where the actual allowable number of sheets is different.

第3ページに対応する順番の印刷処理部を起動するまで
は、前記、異なる紙サイズの混在した文書に対する処理
と同様である。該印刷処理は、第1ページと同様に処理
される。次に、第4ページの描画処理に移り、対応する
順番のページバッファ117に描画を行い、対応する順
番の印刷処理部が起動される。該印刷処理は、第2ペー
ジと同様に処理される。そして、第5ページの描画処理
に移り、対応する順番のページバッファ117に描画を
行い、対応する順番の印刷処理部が起動される。該印刷
処理は、第1ページや第3ページの場合と同様に処理を
行い、中間トレイ格納枚数エリア116gを1加算して
(309)、印刷を行い(350)、排紙終了待ちとな
る(351)、この時、中間トレイ格納枚数116gは
3(満杯)となる。
The process until the print processing units in the order corresponding to the third page are activated is the same as the process for the document containing a mixture of different paper sizes. The printing process is performed in the same manner as the first page. Next, the drawing process for the fourth page is started, drawing is performed in the page buffer 117 in the corresponding order, and the print processing units in the corresponding order are activated. The printing process is performed in the same manner as the second page. Then, the process moves to the drawing process for the fifth page, drawing is performed in the page buffer 117 in the corresponding order, and the print processing unit in the corresponding order is activated. The printing process is performed in the same way as for the first and third pages, adding 1 to the intermediate tray storage number area 116g (309), printing (350), and waiting for the end of paper ejection (309). 351), at this time, the number of sheets stored in the intermediate tray, 116g, is 3 (full).

次に、第6ページの描画処理に係り、対応する順番のペ
ージバッファ117に描画を行い、対応する順番の印刷
処理部が起動される。該印刷処理は、裏面印刷指定なの
で、第2ページ、第4ページと同様に処理される。次に
、第7ページの描画処理に移り、対応する順番のページ
バッファ117に描画を行い、対応する順番の印刷処理
部が起動される。該印刷処理は、第1ページや第3ペー
ジの場合と同様に処理される。そして、中間トレイ格納
許容枚数エリア116jと中間トレイ格納枚数エリア1
16gから中間トレイフル(満杯)であるか調べる(3
40)。中間トレイがフルなので1表面・裏面モードエ
リア116fを表面モードに変更しく341)、裏面印
刷待ち有無フラグエリア1161がONか調べる(34
2)。裏面印刷待ち有りなので、表面印刷待ち有無フラ
グエリア1161をOFFにしく345)、本印刷処理
を裏面印刷待ち状態にして、裏面印刷待ち行列エリア1
16mへ接続する(346)。そして、裏面印刷待ち行
列エリア116mにつながれている印刷処理(第2ペー
ジ、第4ページ、第6ページ)をすべて解除しく347
)、裏面印刷処理に移る。裏面印刷処理では、第2ペー
ジ、第4ページ、第6ページと、中間トレイ格納枚数エ
リア116gを1減算して(339)、印刷を行い(3
50)、排紙終了待ちとなる(351)。次に、第7ペ
ージの印刷処理が動作し、表面・裏面モードエリア11
6fを表面モードに変更しく348)、中間トレイ格納
枚数エリア116gを1加算して(349)、印刷を行
い(350)、排紙終了待ちとなる(351)。次に、
第8ページ、第9ページ・・・と同様に処理される。
Next, regarding the drawing process for the sixth page, drawing is performed in the page buffer 117 in the corresponding order, and the print processing units in the corresponding order are activated. Since this printing process specifies printing on the back side, it is processed in the same way as the second and fourth pages. Next, the drawing process for the seventh page is started, drawing is performed in the page buffer 117 in the corresponding order, and the print processing units in the corresponding order are activated. The printing process is performed in the same way as for the first page and the third page. Then, the intermediate tray storage permissible sheet number area 116j and the intermediate tray storage sheet number area 1
Check if the intermediate tray is full from 16g (3
40). Since the intermediate tray is full, change the 1 front/back mode area 116f to front mode (341), and check whether the back side printing wait status flag area 1161 is ON (34).
2). Since the back side is waiting for printing, turn off the front side print waiting status flag area 1161 (345), put the main printing process in the back side print waiting state, and return to the back side print queue area 1.
Connect to 16m (346). Then, 347
), move on to the back side printing process. In the back side printing process, the second, fourth, and sixth pages and the intermediate tray storage number area 116g are subtracted by 1 (339), and printing is performed (3
50), and waits for paper ejection to be completed (351). Next, the printing process for the seventh page starts, and the front/back mode area 11
6f to the front side mode (348), adds 1 to the intermediate tray stored sheet number area 116g (349), prints (350), and waits for the end of paper ejection (351). next,
It is processed in the same way as the 8th page, 9th page, and so on.

以上のように、中間トレイフル(満杯)になった場合、
中間トレイフルを検出した印刷処理を裏面印刷待ち状態
にし、裏面印刷待ち行列エリア116mへ接続する。そ
して、裏面印刷待ち行列エリア116mにつながれてい
る印刷処理をすべて解除し、裏面印刷に移る。従って、
中間トレイ格納許容枚数1165より多い文書の印刷で
も中間トレイ格納許容枚数オーバーでエラーを発生する
しことなく両面印刷を行うことができる。
As mentioned above, when the intermediate tray becomes full (full),
The printing process that detected the intermediate tray full is placed in a back side print waiting state and connected to the back side print queue area 116m. Then, all printing processes connected to the back side print queue area 116m are canceled and the process moves to back side printing. Therefore,
Even when printing more documents than the allowable number of sheets stored in the intermediate tray (1165), double-sided printing can be performed without causing an error due to exceeding the allowable number of sheets stored in the intermediate tray.

次に、1つのページを複数部数印刷するマルチページコ
ピーの場合について説明する。
Next, a case of multi-page copying in which multiple copies of one page are printed will be described.

この場合の処理手順を、印刷部数を5部と仮定して説明
する。第1ページは、中間トレイ格納枚数エリア116
gを1加算して(348)、印刷を行い(350)、排
紙終了待ちになる(351)。そして、排紙終了待ちが
解除され、総印刷部数完了であるか調べ(352)、総
印刷部数完了でないので、総印刷部数完了になるまで印
刷が繰り返される。そして、3部目が印刷され、4部目
に入って、中間トレイ格納枚数エリア116gと中間ト
レイ格納許容枚数エリア116jとから中間トレイフル
かを調べる処理(340)で、中間トレイフルとなり、
表面・裏面モードエリア116fを裏面モードに変更す
る(341)、そして、裏面印刷待ち有無フラグエリア
1161がON(裏面印刷待ち有り)か調べ(342)
、裏面印刷待ち無しなので、裏面印刷待ち有無フラグエ
リア1161をONにしく343)、本印刷処理を裏面
印刷待ち行列エリア116mへ接続する(344)。次
に、第2ページの印刷処理が起動され、表面・裏面印刷
指定エリア116bを参照し表面印刷指定か調べる処理
(331)で裏面印刷指定なので、中間トレイ格納枚数
エリア116gから中間トレイが空きか調べる(332
)。中間トレイは空きでないので、中間トレイ格納枚数
エリア116gを1減算して(339)、印刷を行い(
350)、排紙終了待ちとなる(351)。そして、排
紙終了待ちが解除され、総印刷部数完了であるか調べ(
352)、総印刷部数完了でないので、総印刷部数完了
になるまで印刷が繰り返される。そして、3部具面印刷
され、4部目で中間トレイ格納枚数エリア116gから
中間トレイが空きかを調べる処理(332)で、中間ト
レイ格納枚数エリア116gが0(中間トレイ空)なの
で、裏面印刷待ち有無フラグエリア1161がON(裏
面印刷待ち有り)か調べる(333)。裏面印刷待ち有
りなので、裏面印刷待ち有無フラグエリア1161をO
FFにしく336)、本印刷処理を裏面印刷待ち状態に
して、裏面印刷待ち行列エリア116mへ接続する(3
37)。そして、裏面印刷待ち行列エリア116mにつ
ながれている印刷処理(第1ページの4部目印刷)を解
除し−(33B)、第1ページの4部目の印刷から処理
を続行する。
The processing procedure in this case will be explained assuming that the number of copies to be printed is five. The first page is the intermediate tray storage number area 116
g is incremented by 1 (348), printing is performed (350), and the process waits for paper ejection to be completed (351). Then, the waiting state for the completion of paper ejection is released, and it is checked whether the total number of printed copies has been completed (352). Since the total number of printed copies has not been completed, printing is repeated until the total number of printed copies has been completed. Then, when the third copy is printed and the fourth copy is printed, it is checked whether the intermediate tray is full from the intermediate tray storage number area 116g and the intermediate tray storage permissible number area 116j (340), and the intermediate tray becomes full.
Change the front/back side mode area 116f to the back side mode (341), and check whether the back side printing waiting status flag area 1161 is ON (back side printing waiting) (342)
Since there is no waiting for back side printing, the back side printing waiting flag area 1161 is turned ON (343), and the main printing process is connected to the back side printing queue area 116m (344). Next, the printing process for the second page is started, and the process (331) to check whether front side printing is specified or not by referring to the front/back side printing specification area 116b indicates that back side printing is specified, so check whether the intermediate tray is empty or not from the intermediate tray storage number area 116g. Check (332
). Since the intermediate tray is not empty, subtract 1 from the intermediate tray storage number area 116g (339) and print (
350) and waits for paper ejection to end (351). Then, check to see if the wait for paper ejection to finish is canceled and the total number of copies printed has been completed (
352), the total number of printed copies is not completed, so printing is repeated until the total number of printed copies is completed. Then, three copies are printed on both sides, and when the fourth copy is checked from the intermediate tray storage number area 116g to see if the intermediate tray is empty (332), the intermediate tray storage number area 116g is 0 (intermediate tray empty), so the back side is printed. It is checked whether the waiting flag area 1161 is ON (back side printing waiting) (333). Since the back side is waiting to be printed, set the back side printing wait status flag area 1161 to O.
FF Nishiku 336), puts the main printing process into the back side print waiting state, and connects to the back side print queue area 116m (3
37). Then, the printing process (printing the fourth copy of the first page) connected to the back print queue area 116m is canceled (33B), and the process continues from printing the fourth copy of the first page.

以上のように、マルチページコピーについても支障なく
両面印刷を行うことができる。
As described above, double-sided printing can be performed without any problem even in multi-page copying.

次に、本発明の第4実施例を説明する。本発明は、いず
れのページバッファ117も空き状態でない、つまり、
すべてのページバッファ117が描画や印刷のために使
用されている場合に関するものであり、この場合の処理
手順をページバッファ面数を4と仮定して説明する。こ
こで、前記裏面印刷待ち解除条件の1つとして、ページ
バッファ満杯の検出を用いる。
Next, a fourth embodiment of the present invention will be described. In the present invention, none of the page buffers 117 is in an empty state, that is,
This relates to a case where all page buffers 117 are used for drawing or printing, and the processing procedure in this case will be described assuming that the number of page buffers is four. Here, detection of page buffer fullness is used as one of the conditions for canceling the wait for printing on the back side.

第3ページに対する印刷処理を起動するまでは、前記、
異なる紙サイズの混在した文書についての処理手順と同
様である。該印刷処理は、第1ページと同様に処理され
る。次に、第4ページの描画処理に移り、対応する順番
のページバッファ117に描画を行い、対応する順番の
印刷処理部が起動される。該印刷処理は、第2ページと
同様に処理される。そして、第5ページの描画処理に移
り、第1ページで使用したページバッファ117に描画
を行い、対応する順番の印刷処理部を起動する。該印刷
処理は、第1ページ、第3ページと同様に処理される。
Until the printing process for the third page is started, the above
The processing procedure is similar to the processing procedure for documents containing a mixture of different paper sizes. The printing process is performed in the same manner as the first page. Next, the drawing process for the fourth page is started, drawing is performed in the page buffer 117 in the corresponding order, and the print processing units in the corresponding order are activated. The printing process is performed in the same manner as the second page. Then, the process moves to the drawing process for the fifth page, drawing is performed in the page buffer 117 used for the first page, and the print processing units in the corresponding order are activated. The printing process is performed in the same way as for the first page and the third page.

次に、第6ページの描画処理に移る。該描画処理は、対
応する順番のページバッファ117(第2番目のページ
バッファ)が裏面印刷のため印刷されず、描画されたま
まとなっているので、本描画処理は、ページバッファ空
き待ちとなり、そのページバッファ117についてペー
ジバッファリザーブ不可を、ページバッファリザーブ可
/不可フラグエリア116kに設定する。ここで、第5
ページの印刷処理に対する排紙終了待ちが解除され、待
ちになっていた第5ページの印刷処理が動作を再開する
。そして、該印刷処理で使用したページバッファ117
の次のページバッファに対応する順番の印刷制御テーブ
ル116内のページバッファリザーブ可/不可フラグエ
リア116kを参照する(356)。リザーブ不可なら
ば、裏面印刷待ち有無フラグエリア1161を0FF(
裏面印刷待ち無し)にしく357)、裏面印刷待ち行列
エリア116mにつながれている印刷処理(第2ページ
、第4ページ)をすべて解除しく358)、裏面印刷に
移り、第2ページ、第4ページと印刷処理が行われる。
Next, the process moves to the drawing process for the sixth page. In this drawing process, the page buffer 117 (second page buffer) in the corresponding order is not printed because it is printed on the back side and remains drawn, so the main drawing process waits for the page buffer to become available. For that page buffer 117, page buffer reservation not possible is set in the page buffer reservation possible/impossible flag area 116k. Here, the fifth
The waiting state for the page printing process to finish discharging is released, and the waiting printing process for the fifth page resumes. The page buffer 117 used in the printing process
The page buffer reservation enable/disable flag area 116k in the print control table 116 in the order corresponding to the next page buffer is referred to (356). If the reservation is not possible, set the back side printing wait status flag area 1161 to 0FF (
357), cancel all printing processes (2nd page, 4th page) connected to the back side printing queue area 116m (358), move on to back side printing, and print the 2nd and 4th pages. and print processing is performed.

以上のように、印刷処理の終了前に、該制御テーブル1
16内のページバッファリザーブ可/不可フラグエリア
116kを参照し、ページバッファが満杯で、ページバ
ッファリザーブ不可であれば裏面印刷に移るようにした
As described above, before the printing process ends, the control table 1
16, and if the page buffer is full and page buffer reservation is not possible, printing is performed on the back side.

従って、ページバッファがすべて使用されていても、ペ
ージバッファが空くまで印刷処理が待たされず、裏面印
刷に移るので、稼動性、利用効率を低下させることなく
、効率のよい両面印刷を行うことができる。
Therefore, even if all the page buffers are used, the printing process does not have to wait until the page buffers become free, and the printing process moves to the back side, so it is possible to perform double-sided printing efficiently without reducing operability or usage efficiency. .

なお、本発明では両面印刷制御の主要部分を印刷処理部
が行ったが、描画処理部が行うようにすることもできる
。ただし、描画処理部は複数種類の印刷コマンドの体系
や祝数種類のフォントをサポートするために複雑な構造
を有する。従って、描画処理部が両面印刷制御の主要部
分を実行する場合、描画処理部が一層複雑になるという
問題が生じる。そこで、本実施例では、印刷制御部が両
面印刷制御の主要部分を実行するようにしている。
In the present invention, the main part of double-sided printing control is performed by the print processing section, but it can also be performed by the drawing processing section. However, the drawing processing section has a complicated structure in order to support multiple types of print command systems and several types of fonts. Therefore, when the drawing processing section executes the main part of double-sided printing control, a problem arises in that the drawing processing section becomes even more complex. Therefore, in this embodiment, the print control section executes the main part of the double-sided printing control.

なお、印刷コマンドの体系とは各プリンタメーカがI 
S O(International Organiz
ation forStandardization)
が提供するプリンタ制御のための制御コマンドや制御言
語の体系のことである。
Note that the print command system is determined by each printer manufacturer.
S.O.(International Organiz)
standardization)
It is a system of control commands and control language for printer control provided by .

[発明の効果コ 以上のように、本発明によれば、中間トレイへの中間ト
レイ格納許容枚数以上の用紙の排出と、異なる紙サイズ
の用紙の混在した排出が防止できるので、プリンタエン
ジン部の異常も防止でき、中間トレイ格納許容枚数より
多い文書の印刷や異なる紙サイズのページが混在した文
書の印刷でも、支障なく両面印刷を行うことができる。
[Effects of the Invention] As described above, according to the present invention, it is possible to prevent the ejection of more sheets of paper into the intermediate tray than the allowable number of sheets stored in the intermediate tray and the mixed ejection of sheets of different paper sizes, so that the printer engine section can be Abnormalities can also be prevented, and double-sided printing can be performed without problems even when printing documents that exceed the allowable number of sheets stored in the intermediate tray or when printing documents that contain pages of different paper sizes.

また、最終ページが奇数ページ、すなわち表面のみの文
書の印刷の場合、最終ページは片面印刷として印刷を行
うので、中間トレイへの排出が防止でき、速く処理する
ことができる。
Further, when the final page is an odd number, that is, when printing a document with only the front side, the final page is printed as one-sided printing, which prevents the document from being ejected to the intermediate tray and speeds up processing.

さらに、ページバッファが、描画や印刷で使用されてす
べて満杯の場合、ページバッファが空くまで印刷処理が
待たされず裏面印刷に移るので、効率よく両面印刷を行
うことができる。
Furthermore, if the page buffer is used for drawing or printing and is completely full, the printing process is not made to wait until the page buffer becomes free, and the print process moves to the back side, so that double-sided printing can be performed efficiently.

さらに、ホストコンピュータは、両面印刷でも片面印刷
の場合と同様、印刷コマンド列の転送が1回で済むため
、転送時間が短縮でき、ホストコンピュータの負担を軽
減できる。
Furthermore, since the host computer only needs to transfer the print command sequence once in double-sided printing as in the case of single-sided printing, the transfer time can be shortened and the burden on the host computer can be reduced.

さらに、同一ページを複数部数印刷するマルチページコ
ピーでも、中間トレイへ中間トレイ格納許容枚数以上の
用紙の排出が防止できるので、支障なく両面印刷を行う
ことができる。
Furthermore, even in multi-page copying in which multiple copies of the same page are printed, it is possible to prevent more sheets than the allowable number of sheets stored in the intermediate tray from being ejected to the intermediate tray, so double-sided printing can be performed without any problem.

従って、システムの信頼性、稼動性が向上するとともに
、効率のよい両面印刷ができるという効果がある。
Therefore, the reliability and operability of the system are improved, and efficient double-sided printing is possible.

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

第1図(a)は本発明の実施例の装置構成を示すシステ
ム構成図、第1図(b)は上記実施例におけるコマンド
処理部の構成を示すコマンド処理部システム構成図、第
2図(a)は上記実施例における描画処理部の処理手順
を示す描画処理部フローチャート、第2図(b)は上記
実施例における描画処理部内のコマンドバッファリード
処理手順を示すコマンドバッファリード処理フローチャ
ート、第2図(c)は上記実施例における描画処理部内
の片面・両面印刷指定処理手順を示す片面・両面印刷指
定処理フローチャート、第2図(d)は上記実施例にお
ける描画処理部内の改頁処理手順を示す改頁処理フロー
チャート、第2図(e)は上記実施例における描画処理
部内の紙サイズ指定処理手順を示す紙サイズ指定処理フ
ローチャート、第3図は、上記実施例における印刷処理
部の処理手順を示す印刷処理部フローチャートである。 100・・・ホストコンピュータ、101・・・通信制
御部、102・・・コマンド制御部、103・・・片面
・両面印刷コマンド発行手段、110・・・印刷制御装
置、111・・通信制御部、112・・・コマンドバッ
ファ、113・・コマンド制御部、114・・・コマン
ド処理部、115・・・描画処理部、116・・・印刷
処理部、117・・・印刷制御テーブル、118・・・
ページバッファ、119・・・プリンタ制御部、120
プリンタ工ンジン部。 出願人 株式会社 日 立 製 作 所(ほか1名)
FIG. 1(a) is a system configuration diagram showing the device configuration of the embodiment of the present invention, FIG. 1(b) is a system configuration diagram of the command processing section showing the configuration of the command processing section in the above embodiment, and FIG. 2(a) is a drawing processing unit flowchart showing the processing procedure of the drawing processing unit in the above embodiment, and FIG. 2(b) is a command buffer read processing flowchart showing the command buffer read processing procedure in the drawing processing unit in the above embodiment. Figure 2(c) is a flowchart showing the single-sided/double-sided printing designation processing procedure in the drawing processing unit in the above embodiment, and Figure 2(d) shows the page break processing procedure in the drawing processing unit in the above embodiment. FIG. 2(e) is a paper size specification processing flowchart showing the paper size specification processing procedure in the drawing processing section in the above embodiment, and FIG. 3 is a flowchart of a print processing unit shown in FIG. DESCRIPTION OF SYMBOLS 100... Host computer, 101... Communication control unit, 102... Command control unit, 103... Single-sided/double-sided printing command issuing means, 110... Printing control device, 111... Communication control unit, 112... Command buffer, 113... Command control unit, 114... Command processing unit, 115... Drawing processing unit, 116... Print processing unit, 117... Print control table, 118...
Page buffer, 119...Printer control unit, 120
Printer engine department. Applicant: Hitachi, Ltd. (and 1 other person)

Claims (1)

【特許請求の範囲】 1、上位装置が送信する印刷コマンド列を受信し、該印
刷コマンド列を解釈・実行した結果に基づいてプリンタ
エンジン部を制御し、中間トレイを用いて両面印刷を行
う印刷制御装置において、複数ページ分のページバッフ
ァと、 該ページバッファに前記印刷コマンド列に応じて描画処
理を行う描画処理部と、 該描画処理部により描画されたページバッファの内容に
基づいて印刷処理を行う印刷処理部とを備え、 前記描画処理部は、ページ順に描画処理を行い、描画を
終えたページについて順次印刷処理部を起動し、 前記印刷処理部は、前記描画処理部からの起動に応じて
、当該ページが表面ページか裏面ページかを判別し、表
面ページならば直ちに前記中間トレイを排紙部として印
刷を行い、裏面ページならば当該印刷処理を待ち行列に
接続し、予め定めた印刷待ち解除条件の検出に応じて、
前記中間トレイを給紙部、外部トレイを排紙部として、
前記待ち行列につながれた印刷処理を実行することを特
徴とする印刷制御装置。 2、前記中間トレイの満杯を前記印刷待ち解除条件とし
て利用することを特徴とする請求項1記載の印刷制御装
置。 3、表面印刷した用紙を前記中間トレイに格納すると1
加算し、該中間トレイに格納した用紙を給紙して裏面印
刷すると1減算する中間トレイ格納枚数カウンタを用い
、該カウンタの値が一定値に達したとき、当該印刷処理
を待ち行列に接続した後、印刷待ちを解除することを特
徴とする請求項2記載の印刷制御装置。 4、文書の最終ページの検出を前記印刷待ち解除条件と
して利用することを特徴とする請求項1記載の印刷制御
装置。 5、前記印刷処理部は、両面印刷において文書の最終ペ
ージが表面ページであった場合、当該最終ページの印刷
処理を待ち行列に接続した後、印刷待ちを解除して印刷
待ち状態にあった裏面印刷処理を行い、該裏面印刷処理
の終了後、前記最終ページを片面印刷として印刷するこ
とを特徴とする請求項4記載の印刷制御装置。 6、紙サイズ変更の検出を前記印刷待ち解除条件として
利用することを特徴とする請求項1記載の印刷制御装置
。 7、前記上位装置からの印刷コマンド列に含まれる紙サ
イズ指定に応じて紙サイズ変更の有無を設定する制御テ
ーブルを設け、前記印刷処理部は、該制御テーブルの内
容を参照して紙サイズ変更があれば、当該紙サイズが変
更されたページの印刷処理を待ち行列に接続した後、印
刷待ちを解除して印刷待ち状態にあった裏面印刷処理を
行い、該裏面印刷処理により前記中間トレイ内のすべて
の用紙排出後、前記紙サイズの変更された新たな紙サイ
ズの印刷処理に移行することを特徴とする請求項6記載
の印刷制御装置。 8、前記描画処理部が次に描画すべきページの紙サイズ
に相当するページバッファの確保ができないことの検出
を、前記印刷待ち解除条件として利用することを特徴と
する請求項1記載の印刷制御装置。 9、前記描画処理部が描画すべきページの紙サイズに相
当するページバッファの確保の可/不可を設定する制御
テーブルを設け、前記印刷処理部は該制御テーブルを参
照して、ページバッファの確保が不可の場合、当該ペー
ジに対応する印刷処理を待ち行列に接続した後、印刷待
ちを解除することを特徴とする請求項8記載の印刷制御
装置。
[Claims] 1. Printing that receives a print command string sent by a host device, controls a printer engine section based on the result of interpreting and executing the print command string, and performs double-sided printing using an intermediate tray. The control device includes a page buffer for a plurality of pages, a drawing processing unit that performs drawing processing on the page buffer according to the print command string, and a printing processing unit that performs printing processing based on the contents of the page buffer drawn by the drawing processing unit. The drawing processing section performs drawing processing in page order, and sequentially activates the printing processing section for the pages for which drawing has been completed, and the printing processing section performs drawing processing in response to activation from the drawing processing section. If the page is a front page or a back page, it is immediately printed using the intermediate tray as a paper output unit, and if it is a back page, the printing process is connected to a queue and a predetermined printing process is performed. Depending on the detection of the wait release condition,
The intermediate tray is used as a paper feed section, and the external tray is used as a paper ejection section,
A print control device that executes print processing queued in the queue. 2. The print control device according to claim 1, wherein the intermediate tray being full is used as the print waiting release condition. 3. When the front side printed paper is stored in the intermediate tray, 1
The number of sheets stored in the intermediate tray is increased, and when the paper stored in the intermediate tray is fed and printed on the back side, the number of sheets stored in the intermediate tray is decremented by 1. When the value of the counter reaches a certain value, the printing process is connected to the queue. 3. The printing control device according to claim 2, wherein the printing control device cancels the print waiting state after the printing is finished. 4. The print control device according to claim 1, wherein detection of the last page of the document is used as the print wait release condition. 5. If the last page of the document is the front page in double-sided printing, the print processing unit connects the print process of the last page to the queue, cancels the print queue, and prints the back page that was in the print queue. 5. The print control device according to claim 4, wherein the printing control device performs a printing process, and after completing the backside printing process, prints the last page as one-sided printing. 6. The printing control device according to claim 1, wherein detection of a change in paper size is used as the printing wait cancellation condition. 7. A control table is provided for setting whether or not to change the paper size according to the paper size specification included in the print command string from the host device, and the print processing unit changes the paper size by referring to the contents of the control table. If there is, the print process for the page whose paper size has been changed is connected to the queue, the print queue is released, the back side print process that was in the print wait state is performed, and the back side print process prints the page in the intermediate tray. 7. The print control apparatus according to claim 6, wherein after all of the sheets have been ejected, the print control apparatus moves to print processing for a new paper size in which the paper size has been changed. 8. The print control according to claim 1, wherein detection that the drawing processing unit is unable to secure a page buffer corresponding to the paper size of the next page to be drawn is used as the print wait release condition. Device. 9. A control table is provided for setting whether or not the drawing processing section can secure a page buffer corresponding to the paper size of the page to be drawn, and the print processing section refers to the control table to secure the page buffer. 9. The print control device according to claim 8, wherein if the page is not available, the printing process corresponding to the page is connected to the queue and then the print queue is released.
JP2109339A 1990-04-25 1990-04-25 Printing control device Expired - Fee Related JP2879933B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2109339A JP2879933B2 (en) 1990-04-25 1990-04-25 Printing control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2109339A JP2879933B2 (en) 1990-04-25 1990-04-25 Printing control device

Publications (2)

Publication Number Publication Date
JPH047174A true JPH047174A (en) 1992-01-10
JP2879933B2 JP2879933B2 (en) 1999-04-05

Family

ID=14507723

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2109339A Expired - Fee Related JP2879933B2 (en) 1990-04-25 1990-04-25 Printing control device

Country Status (1)

Country Link
JP (1) JP2879933B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774638A (en) * 1991-08-06 1998-06-30 Hitachi, Ltd. Print controlling method and apparatus using a plurality of processors
US5954436A (en) * 1990-10-30 1999-09-21 Hitachi, Ltd. Printing apparatus and double-side printing control method
WO2001068965A1 (en) * 2000-03-17 2001-09-20 Walk Off Mats Limited Mat, and method of manufacturing a mat
US6770581B1 (en) 2000-03-17 2004-08-03 Milliken & Company Absorbent fabrics, products, and methods
JP2006293990A (en) * 2005-03-14 2006-10-26 Canon Inc Print control unit and method, and program
US9719038B2 (en) 2013-02-13 2017-08-01 Mitsubishi Hitachi Power Systems, Ltd. Gasifier start-up method, gasifier, and integrated gasification combined cycle facility

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5954436A (en) * 1990-10-30 1999-09-21 Hitachi, Ltd. Printing apparatus and double-side printing control method
US5774638A (en) * 1991-08-06 1998-06-30 Hitachi, Ltd. Print controlling method and apparatus using a plurality of processors
US6025923A (en) * 1991-08-06 2000-02-15 Hitachi, Ltd. Print controlling method and apparatus using a plurality of processors
WO2001068965A1 (en) * 2000-03-17 2001-09-20 Walk Off Mats Limited Mat, and method of manufacturing a mat
US6770581B1 (en) 2000-03-17 2004-08-03 Milliken & Company Absorbent fabrics, products, and methods
US6774067B2 (en) 2000-03-17 2004-08-10 Milliken & Company Mat and method of manufacturing a mat
JP2006293990A (en) * 2005-03-14 2006-10-26 Canon Inc Print control unit and method, and program
US9719038B2 (en) 2013-02-13 2017-08-01 Mitsubishi Hitachi Power Systems, Ltd. Gasifier start-up method, gasifier, and integrated gasification combined cycle facility

Also Published As

Publication number Publication date
JP2879933B2 (en) 1999-04-05

Similar Documents

Publication Publication Date Title
US20150147073A1 (en) Printing system, printing apparatus, control method therefor, and storage medium storing program
US9729743B2 (en) Image forming apparatus, control method of image forming apparatus, and storage medium
JP2009226706A (en) Printing apparatus
JPH02213932A (en) Both-side printer
JPH047174A (en) Printing controlling apparatus
JPH08262814A (en) Printer
JP3010559B2 (en) Printing system and printing control method and apparatus
JPH01160661A (en) Control of perfecting printer
JPH11151837A (en) Printer
JPH01209235A (en) System printer
JPH11133678A (en) Image forming device
JP3474184B2 (en) Double-sided printing control method and printing control device
JPS62116440A (en) Recording device
US20230359405A1 (en) Recording apparatus, control method, and storage medium
JP2005329623A (en) Image forming system
JP2008081284A (en) Printed matter processing device and printed matter processing method
JP4067733B2 (en) Image forming apparatus
JP3535611B2 (en) Control method of image forming apparatus
JP3740196B2 (en) Image forming apparatus
JPH0410963A (en) Controlling method for sheet feeding
JP3716778B2 (en) Duplex printing device
JPH0284371A (en) Double-side printer
JPH11291590A (en) Printer
JP4323582B2 (en) Image forming system, image forming system control method, image forming apparatus, and storage medium
JP2001202226A (en) Image forming device

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350