JP2839246B2 - Printer control method - Google Patents

Printer control method

Info

Publication number
JP2839246B2
JP2839246B2 JP61215652A JP21565286A JP2839246B2 JP 2839246 B2 JP2839246 B2 JP 2839246B2 JP 61215652 A JP61215652 A JP 61215652A JP 21565286 A JP21565286 A JP 21565286A JP 2839246 B2 JP2839246 B2 JP 2839246B2
Authority
JP
Japan
Prior art keywords
page
document
information
printing
control unit
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.)
Expired - Lifetime
Application number
JP61215652A
Other languages
Japanese (ja)
Other versions
JPS6371722A (en
Inventor
信久 中村
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61215652A priority Critical patent/JP2839246B2/en
Publication of JPS6371722A publication Critical patent/JPS6371722A/en
Application granted granted Critical
Publication of JP2839246B2 publication Critical patent/JP2839246B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Description

【発明の詳細な説明】 〔概要〕 ページ単位の印刷を行うプリンタ装置のプリンタ制御
方式であって、ドキュメントの印刷要求に応じた印刷要
求制御ブロックを作成し、そのドキュメントのページ毎
のドキュメント情報およびページ情報をスプール制御部
から出力し、該スプール制御部から受け取ったドキュメ
ント情報およびページ情報を前記ドキュメントの印刷中
情報としてメモリにプリンタ制御部がページ毎に書き込
み、プリンタ装置への送出順序となったページの前記ド
キュメント情報およびページ情報と前記スプール制御部
から受け取った当該ページ対応の印刷データをプリンタ
制御部からプリンタ装置へ送出し、プリンタ装置からペ
ージの印刷完了の通知を受け取って前記印刷要求対応の
ドキュメントの印刷中ページ情報のうちの前記ページの
印刷完了に対応するドキュメント情報およびページ情報
を削除し、ドキュメントの印刷完了時にスプール制御部
にドキュメントの印刷完了を通知するように構成した。 〔産業上の利用分野〕 本発明は、ページ単位の印刷を行なうプリンタ装置の
プリンタ制御方式に関する。特に、印刷速度および信頼
性を向上させることができるプリンタ制御方式に関す
る。 〔従来の技術〕 従来のページ単位の印刷を行なうプリンタ装置は、伝
送制御手順上の応答で印刷データの受信完了あるいは印
刷完了の通知を行なっている。 すなわち、従来のプリンタ制御方式では、1ページの
印刷が完了した時点でプリンタ装置から印刷完了通知を
受けるか、あるいはプリンタ装置からの印刷データの受
信応答をもって印刷完了とすることにより、印刷要求お
よび印刷データの送出を制御している。 〔発明が解決しようとする問題点〕 ところが、このような従来の方式ではそれぞれ次のよ
うな問題点があった。 まず、印刷完了で応答を返す方式では、印刷完了まで
次の印刷データを送出することができず、印刷速度が遅
くなる問題点があった。 また、受信完了で即時応答を返す方式では、印刷状況
が正確に把握できず、特にプリンタ装置のハードエラー
などのときには、そのリカバリー処理が複雑になる問題
点があった。 本発明は、このような従来の問題点を解決するもの
で、プリンタ装置の印刷速度および印刷の信頼性を向上
させることができるプリンタ制御方式を提供することを
目的とする。 〔問題点を解決するための手段〕 第1図は本発明のプリンタ制御方式の原理ブロック図
である。 同図において、アプリケーション手段11は、ドキュメ
ントの印刷データを外部記憶手段30に作成して印刷要求
を出力する。 スプール制御部12は、前記アプリケーション手段11か
ら発生した印刷要求を受けて印刷要求制御ブロックを作
成した後、ドキュメントのページ毎のドキュメント情報
およびページ情報を作成して出力すると共に、該ドキュ
メント情報およびページ情報と前記外部記憶手段30から
読み込んだページ毎の印刷データとを出力し、ドキュメ
ントの印刷完了を通知する情報を受けたとき前記印刷要
求制御ブロックを削除する。 プリンタ制御部13は、前記スプール制御部12から受け
取った前記印刷要求対応のドキュメントのドキュメント
情報およびページ情報を印刷中情報としてメモリ20にペ
ージ毎に書き込むと共に、プリンタ装置40への送出順序
となったページの前記ドキュメント情報およびページ情
報ならびに前記スプール制御部12から受け取った当該ペ
ージ対応の印刷データを前記プリンタ装置40に対してプ
ロトコル制御しながら引き渡し、前記プリンタ装置40か
らページの印刷完了を通知する情報が前記プリンタ装置
40から入力したときに前記印刷要求対応のドキュメント
の印刷中ページ情報のうちの前記ページの印刷完了に対
応するドキュメント情報およびページ情報を削除し、ド
キュメントの印刷完了時にスプール制御部12にドキュメ
ントの印刷完了を通知する。 本発明は、前記アプリケーション手段11、前記スプー
ル制御部12、および前記プリンタ制御部13により構成さ
れている。 〔作用〕 アプリケーション手段11がドキュメントの印刷データ
を外部記憶手段30に作成して印刷要求を出力すると、ス
プール制御部12は、前記印刷要求に応答して印刷要求制
御ブロックを作成した後に、そのドキュメントのページ
毎のドキュメント情報およびページ情報と前記外部記憶
手段30から読み込んだページ毎の印刷データとをプリン
タ制御部13に出力する。 前記スプール制御部12から受け取ったドキュメント情
報およびページ情報を前記ドキュメントの印刷中情報と
してメモリにプリンタ制御部13がページ毎に書き込み、
前記プリンタ装置40への送出順序となったページの前記
ドキュメント情報およびページ情報と前記スプール制御
部12から受け取った当該ページ対応の印刷データとをプ
リンタ制御部13からプリンタ装置40へ送出して印刷を生
じさせる。 前記プリンタ制御部13は、前記プリンタ装置40からペ
ージの印刷完了の通知をほ受け取ると、前記印刷要求対
応のドキュメントの印刷中ページ情報のうちの前記ペー
ジの印刷完了に対応するドキュメント情報およびページ
情報を削除し、ドキュメントの印刷完了時にスプール制
御部12にドキュメントの印刷完了を通知する。 スプール制御部12は、前記ドキュメントの印刷完了通
知を受け取ると、当該ドキュメントの印刷要求制御ブロ
ックを削除する。 プリンタ装置40がその印刷中に障害が発生し、その復
旧後にプリンタ装置40に印刷を行わせようとするとき、
スプール制御部12は、印刷中にあったドキュメントの最
初のページから印刷を開始するのではなく、前記印刷中
情報にあるページ情報で指定されるページから印刷すれ
ば良い。 印刷速度および信頼性の向上に役立つ。この効果は、
プリンタ装置自身の電源断等の異常にも対応でき、本発
明の威力を発揮する。 〔実施例〕 以下、図面に基づいて本発明の実施例について詳細に
説明する。 第2図は、本発明のプリンタ制御方式の一構成例を示
す実施例ブロック図である。 同図において、中央制御装置(CPU)10は、アプリケ
ーション手段11、スプール制御部12およびプリンタ制御
部13を含む。アプリケーション手段11には、メモリ20お
よび外部記憶手段(直接アクセス記憶装置、以下、「DA
SD」という。)30が接続される。プリンタ制御部13には
プリンタ装置40が接続される。 メモリ20およびDASD30は、それぞれ印刷中ページ情報
21、31がスプールキュー22、32によりキュー制御される
構成である。また、DASD30には印刷データ33が格納され
る。 第3図は、本発明実施例の処理方式を説明する図であ
る。 以下、第2図および第3図を参照して本発明実施例の
処理方式について説明する。 CPU10内のアプリケーション手段11からページプリン
タ用の印刷データをドキュメント単位でスプール用のDA
SD30に出力する。ドキュメントは1又は複数のページか
ら成る。 アプリケーション手段11がこの印刷データの作成終了
後に、スプール制御部12に対して印刷要求を出す。 スプール制御部12は、非同期に発生する印刷要求(複
数のアプリケーションから依頼される)を印刷要求制御
ブロックにしてキュー管理(メモリ20およびDASD30)す
る。印刷要求制御ブロックは、ドキュメント毎に作成さ
れる。その内容は第4図に示され、ドキュメントの印刷
管理に用いられる。 そして、スプール制御部12は、キュー管理されている
印刷要求制御ブロックの出力スケジュールを行う。 又、スプール制御部12は、キューのうちの先頭、又は
次の印刷順序となる印刷要求制御ブロックについてDASD
30から読み込んだ当該ドキュメントのページ毎の印刷デ
ータ(第3図参照)をプリンタ制御部13に渡す。第3図
中のデータ1、データ2、…データnは、ページ単位の
データを示す。この印刷データは、従来と同様に、ペー
ジ単位、又はページを小分けした単位で渡される。印刷
データのプリンタ制御部13への転送と共に、ページ毎の
ドキュメント情報およびページ情報を渡す。ドキュメン
ト情報およびページ情報は、従来方式と同様にして印刷
要求制御ブロックから作成される。ドキュメント情報の
具体的な内容は、第6図に示されるように、印刷される
ドキュメントの特定、印刷部数、印刷要求制御ブロック
がキュー管理される場合の次の印刷要求制御ブロックの
指定等に用いられるほか、後述する印刷完了のページの
通知を受けたときそのページがどのドキュメントのペー
ジであるかを同定するのに用いられる。ページ情報の具
体的な内容は、第6図に示されるように、印刷中にある
ページがドキュメントのうちのどのページかの特定、当
該ページの印刷部数、ドキュメント終了ページの指定等
に用いられるほか、後述する印刷が完了したページにつ
いての通知を受けたときのその同定に用いられる。 プリンタ制御部13は、プリンタ装置40とのプロトコル
制御を行いながら、即ち従来と同様にプリンタ装置40の
交互に印刷データを受信する受信バッファが受信可能で
あることを条件に、印刷データをプリンタ40の受信バッ
ファの容量単位で渡す。第3図中のデータ1、データ
2、…データnは、ページ単位のデータを示す。この印
刷データのプリンタ装置40への転送と共に、プリンタ装
置40へ渡されたページに対応するドキュメント情報およ
びページ情報をプリンタ装置40へ渡す。さらに、プリン
タ装置40へ渡したドキュメント情報およびページ情報を
印刷中ページ情報としてメモリ20に書き込む。この書き
込みは、キュー制御せずN個分のワークエリアを設け、
1ページ分の印刷データ、ならびに当該ページのドキュ
メント情報およびページ情報がプリンタ制御40へ渡され
る都度、ワークエリアの中の空きエリアに書き込むよう
にして行われる。 プリンタ制御部13は、プリンタ装置40からの印刷完了
情報の入力が印刷データの送信より遅れるので、印刷が
開始されているドキュメントのページについての印刷完
了情報の入力を待つ。 プリンタ装置40においてその受信バッファに受信した
印刷データを、従来方式に従って展開バッファにページ
単位の印刷形式に展開し、そのページの印刷が完了した
ときプリンタ装置40は印刷完了のページについてのドキ
ュメント情報およびページ情報をプリンタ制御部13へ通
知する。これらドキュメント情報およびページ情報を通
知するのは、どのドキュメントの何ページ目が印刷の完
了となったかをプリンタ制御部13に知らせるためであ
る。プリンタ制御部13は、通知されたドキュメント情報
およびページ情報に対応する印刷中ページ情報を削除し
て空きエリアにする。 この印刷中ページ情報の消込みは、印刷が完了したペ
ージ毎に行われる。こうして、1又は複数のページから
成るドキュメントの印刷が完了した後に、プリンタ制御
部13からスプール制御部12にドキュメントの印刷完了を
通知する。 スプール制御部12は、ドキュメントの印刷完了を受け
取ったらキュー管理されている当該ドキュメントの印刷
要求制御ブロックを削除する。 ここで、印刷完了を受け取る前にプリンタエラーが発
生したときには、従来のように印刷を開始したページか
らではなく、プリンタエラーが発生して印刷が完了して
いないものから再出力その他の処理を実行することによ
り、容易に再印刷処理を行なうことができる。また、印
刷対象のキューをメモリ20の他にDASD30にも格納するの
は、システムダウン時のキューの再作成を可能にするた
めである。 第4図は、印刷要求制御ブロックの内容(キューの内
容)を示す図である。ファイル位置にはファイル名と通
番が収容される。ファイル名は、外部記憶手段30に記憶
されるドキュメントの管理情報であり、通番は、外部記
憶手段30が複数ある場合の管理情報である。印刷要求内
容には開始ページ,終了ページ,印刷後削除,コピー部
数,その他用紙の縦使いあるいは横使い、ドキュメント
内印刷制御情報に従うか否か、フォームオーバレイ情報
などが含まれる。管理用位置にはドキュメントを内部的
に管理するための管理コード、キューのチェーン管理す
るためのアドレスが含まれる。状態位置には受付済印刷
中を示す情報が含まれる。 第5図は、印刷中の状態管理の概念図である。 ワークエリアはプリンタ装置ごとにN個保有される。
ドキュメント情報およびページ情報の書き込みは、この
N個のワークエリアの空きエリアに書き込まれ、印刷完
了ページの読み込みポインタは印刷完了をするごとに消
し込み、印刷要求ページの書き込みポインタは印刷要求
を行なうごとに書き込まれる。 第6図は、ワークエリアの内容を示す図である。 ドキュメント情報として、ドキュメントコード,キュ
ーアドレス,コピー部数,フォームオーバレイ情報が含
まれ、ページ情報として、ページコード,コピー部数,
フォームオーバレイ情報,ドキュメント終了ページなど
が含まれる。ドキュメントコードは、外部記憶手段30で
のドキュメントの管理に用いられるファイル名をプリン
タ装置40での印刷管理のためにファイル名を変換したも
のである。ページコードも、外部記憶手段30でのドキュ
メント内のページ管理に用いられる情報(開始ページ
等)をプリンタ装置40でのページ印刷管理用に変換した
ものである。 なお、ここでページ単位の印刷を行なうプリンタ装置
とは、たとえばレーザプリンタである。このレーザプリ
ンタは、レーザにより印刷を行なう印字部と、文字やグ
ラフなど様々な印刷パターンを電気信号に変換するコン
トローラ部から構成されている。したがって、印刷完了
情報は印字部、たとえば用紙がトナーの転写部(用紙の
裏側に正の静電気を与え感光ドラム上のトナーを用紙の
方へ引きつける部分)をへて、圧力定着部(用紙上のト
ナーが落ちないようにローラで圧力をかけて用紙に押し
込む部分)を通過した時点で発生する構成とすることに
より実現できる。 〔発明の効果〕 以上説明したように本発明によれば、アプリケーショ
ン手段によるドキュメントの印刷データの外部記憶手段
への作成、および印刷要求の出力を為し、前記印刷要求
に応答したスプール制御部が印刷要求制御ブロックを作
成した後に、そのドキュメントのページ毎のドキュメン
ト情報およびページ情報と前記外部記憶手段から読み込
んだページ毎の印刷データとをプリンタ制御部に出力す
ると共に、前記ドキュメント情報およびページ情報を前
記ドキュメントの印刷中情報としてメモリにプリンタ制
御部がページ毎に書き込み、プリンタ装置への送出順序
となったページの前記ドキュメント情報およびページ情
報と前記スプール制御部から受け取った当該ページ対応
の印刷データとをプリンタ制御部からプリンタ装置へ送
出して印刷を生じさせる。 アプリケーション手段からのドキュメントの印刷に際
して、アプリケーション手段で印刷データを外部記憶手
段に作成し、印刷要求をスプール制御部へ出す。 スプール制御部は、印刷要求制御ブロックを作成した
後に、そのドキュメントのページ毎のドキュメント情報
およびページ情報と前記外部記憶手段から読み込んだペ
ージ毎の印刷データとをプリンタ制御部に出力する。 プリンタ制御部は、前記ドキュメント情報およびペー
ジ情報を前記ドキュメントの印刷中情報としてメモリに
プリンタ制御部がページ毎に書き込み、プリンタ装置へ
の送出順序となったページの前記ドキュメント情および
ページ情報と前記スプール制御部から受け取った当該ペ
ージ対応の印刷データとをプリンタ制御部からプリンタ
装置へ送出して印刷を生じさせる。 プリンタ制御部は、プリンタ装置からページの印刷完
了の通知を受け取ると、前記印刷要求対応のドキュメン
トの印刷中ページ情報のうちの前記ページの印刷完了に
対応するドキュメント情報およびページ情報を削除し、
ドキュメントの印刷完了時にスプール制御部にドキュメ
ントの印刷完了を通知する。 スプール制御部は、前記ドキュメントの印刷完了通知
を受け取ると、当該ドキュメントの印刷要求制御ブロッ
クを削除する。 このように構成したので、プリンタ装置がその印刷中
に障害が発生し、その復旧後にプリンタ装置に印刷を行
わせようとするとき、スプール制御部は、印刷中にあっ
たドキュメントの最初のページから印刷を開始させるの
ではなく、前記印刷中情報にあるページ情報で指定され
るページから印刷すれば良くなり、印刷速度および信頼
性の向上に役立つ。また、この効果は、プリンタ装置自
身の電源断等の異常にも対応でき、本発明の威力を発揮
する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] This is a printer control method of a printer apparatus that performs printing in page units. The printer control method creates a print request control block corresponding to a document print request, and outputs document information and page information of each page of the document. The page information is output from the spool control unit, and the document information and the page information received from the spool control unit are written by the printer control unit in the memory as the printing information of the document for each page, and the sending order to the printer device is determined. The document information and the page information of the page and the print data corresponding to the page received from the spool control unit are transmitted from the printer control unit to the printer device, and a notification of the completion of printing the page is received from the printer device to receive the print request corresponding to the print request. Of the page information of the document being printed Remove the document information and the page information corresponding to the print completion of serial page was configured to notify the completion of printing of a document to the spool control unit upon completion of printing the document. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer control method for a printer that performs page-by-page printing. In particular, it relates to a printer control method capable of improving printing speed and reliability. 2. Description of the Related Art A conventional printer apparatus that performs printing in units of a page notifies completion of reception of print data or completion of printing in response to a transmission control procedure. That is, in the conventional printer control method, a print completion notification is received from the printer device when printing of one page is completed, or printing is completed by receiving a print data reception response from the printer device. Controls data transmission. [Problems to be Solved by the Invention] However, such conventional methods have the following problems. First, the method of returning a response upon completion of printing has a problem in that the next print data cannot be transmitted until the printing is completed, and the printing speed is reduced. Further, in the method of returning an immediate response upon completion of reception, the printing status cannot be accurately grasped, and especially in the case of a hardware error of the printer, the recovery process becomes complicated. SUMMARY OF THE INVENTION An object of the present invention is to solve such a conventional problem, and an object of the present invention is to provide a printer control method capable of improving the printing speed and printing reliability of a printer device. [Means for Solving the Problems] FIG. 1 is a block diagram showing the principle of the printer control system of the present invention. In the figure, an application unit 11 creates print data of a document in an external storage unit 30 and outputs a print request. The spool control unit 12 creates a print request control block in response to a print request generated from the application unit 11, and then creates and outputs document information and page information for each page of the document. It outputs the information and the print data for each page read from the external storage means 30, and deletes the print request control block when receiving the information notifying the completion of printing the document. The printer control unit 13 writes the document information and page information of the document corresponding to the print request received from the spool control unit 12 into the memory 20 as printing information for each page, and the transmission order to the printer device 40 is established. The document information and page information of the page and the print data corresponding to the page received from the spool control unit 12 are transferred to the printer device 40 under protocol control, and the printer device 40 notifies the printer device 40 of the completion of page printing. Is the printer device
When input from 40, the document information and the page information corresponding to the completion of printing of the page in the printing page information of the document corresponding to the print request are deleted, and when the printing of the document is completed, the document is printed on the spool control unit 12. Notify completion. The present invention includes the application unit 11, the spool control unit 12, and the printer control unit 13. [Operation] When the application unit 11 creates print data of a document in the external storage unit 30 and outputs a print request, the spool control unit 12 creates a print request control block in response to the print request, The document information and page information for each page and the print data for each page read from the external storage unit 30 are output to the printer control unit 13. The printer control unit 13 writes the document information and page information received from the spool control unit 12 to the memory as printing information of the document for each page,
The document information and page information of the page in the order of transmission to the printer device 40 and the print data corresponding to the page received from the spool control unit 12 are transmitted from the printer control unit 13 to the printer device 40 to perform printing. Cause. When receiving the notification of the completion of printing the page from the printer device 40, the printer control unit 13 receives the document information and the page information corresponding to the completion of printing of the page among the printing page information of the document corresponding to the print request. Is deleted, and when the printing of the document is completed, the spool control unit 12 is notified of the completion of the printing of the document. Upon receiving the print completion notification of the document, the spool control unit 12 deletes the print request control block of the document. When a failure occurs during the printing of the printer device 40 and the printer device 40 attempts to perform printing after recovery,
The spool control unit 12 may start printing from the page specified by the page information in the printing information, instead of starting printing from the first page of the document being printed. Helps improve printing speed and reliability. This effect
It is possible to cope with abnormalities such as a power failure of the printer device itself, and the power of the present invention is exhibited. Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. FIG. 2 is a block diagram of an embodiment showing one configuration example of the printer control system of the present invention. In FIG. 1, a central control unit (CPU) 10 includes an application unit 11, a spool control unit 12, and a printer control unit 13. The application means 11 includes a memory 20 and an external storage means (a direct access storage device, hereinafter referred to as a “DA
SD ”. ) 30 is connected. A printer device 40 is connected to the printer control unit 13. The memory 20 and the DASD 30 store page information during printing, respectively.
21 and 31 are configured to be queue-controlled by spool queues 22 and 32. The DASD 30 stores print data 33. FIG. 3 is a diagram for explaining a processing method according to the embodiment of the present invention. Hereinafter, the processing method according to the embodiment of the present invention will be described with reference to FIGS. The print data for the page printer is spooled in document units from the application means 11 in the CPU 10.
Output to SD30. A document consists of one or more pages. After completing the creation of the print data, the application unit 11 issues a print request to the spool control unit 12. The spool control unit 12 manages queues (the memory 20 and the DASD 30) by using a print request (a request from a plurality of applications) generated asynchronously as a print request control block. The print request control block is created for each document. The contents are shown in FIG. 4 and are used for document print management. Then, the spool control unit 12 performs an output schedule of the print request control block managed in the queue. In addition, the spool control unit 12 sends a DASD to the head of the queue or a print request control block in the next print order.
The print data (see FIG. 3) for each page of the document read from the document 30 is transferred to the printer control unit 13. Data 1, data 2,..., Data n in FIG. This print data is delivered in page units or in subdivided pages as in the conventional case. The document information and the page information for each page are transferred together with the transfer of the print data to the printer control unit 13. Document information and page information are created from the print request control block in the same manner as in the conventional method. As shown in FIG. 6, the specific contents of the document information are used to specify the document to be printed, the number of copies to be printed, and to specify the next print request control block when the print request control block is queue-managed. In addition, when a notification of a print completion page, which will be described later, is received, it is used to identify which document page the page belongs to. As shown in FIG. 6, specific contents of the page information are used to specify which page of the document the page being printed is, the number of copies of the page, designation of the end page of the document, and the like. This is used for identification when a notification about a page for which printing is completed, which will be described later, is received. The printer control unit 13 transmits the print data to the printer 40 while performing protocol control with the printer device 40, that is, on condition that the reception buffer for alternately receiving the print data of the printer device 40 can receive data as in the related art. Pass in the unit of the capacity of the receive buffer. Data 1, data 2,..., Data n in FIG. Along with transferring the print data to the printer device 40, the document information and page information corresponding to the page passed to the printer device 40 are passed to the printer device 40. Further, the document information and page information passed to the printer device 40 are written in the memory 20 as page information during printing. In this writing, N work areas are provided without performing queue control.
Each time one page of print data and document information and page information of the page are transferred to the printer control 40, the print data is written in an empty area in the work area. Since the input of the print completion information from the printer device 40 is delayed from the transmission of the print data, the printer control unit 13 waits for the input of the print completion information for the page of the document whose printing is started. In the printer device 40, the print data received in the reception buffer is developed in a development buffer in a page-by-page print format according to the conventional method, and when the printing of the page is completed, the printer device 40 outputs the document information and The page information is notified to the printer control unit 13. The purpose of notifying the document information and the page information is to inform the printer control unit 13 of which page of which document has been printed. The printer control unit 13 deletes the currently printing page information corresponding to the notified document information and page information to make it an empty area. The clearing of the page information during printing is performed for each page for which printing is completed. After the printing of the document including one or a plurality of pages is completed, the printer control unit 13 notifies the spool control unit 12 of the completion of the printing of the document. Upon receiving the print completion of the document, the spool control unit 12 deletes the print request control block of the document managed in the queue. Here, if a printer error occurs before receiving the print completion, re-output or other processing is executed not from the page where printing started as in the past, but from the one where printing was not completed due to the printer error By doing so, reprint processing can be easily performed. The reason why the queue to be printed is stored in the DASD 30 in addition to the memory 20 is to enable the queue to be recreated when the system goes down. FIG. 4 is a diagram showing the contents of the print request control block (the contents of the queue). The file position contains a file name and a serial number. The file name is management information of a document stored in the external storage means 30, and the serial number is management information when there are a plurality of external storage means 30. The contents of the print request include a start page, an end page, deletion after printing, the number of copies, other vertical or horizontal use of paper, whether or not to comply with print control information in a document, and form overlay information. The management position includes a management code for internally managing a document and an address for managing a chain of queues. The status position includes information indicating that printing has been accepted. FIG. 5 is a conceptual diagram of state management during printing. There are N work areas for each printer device.
The writing of document information and page information is written in the empty areas of the N work areas, the read pointer of the print completed page is erased every time printing is completed, and the write pointer of the print request page is written every time a print request is made. Is written to. FIG. 6 is a diagram showing the contents of the work area. The document information includes a document code, a queue address, the number of copies, and form overlay information, and the page information includes a page code, a number of copies,
It includes form overlay information, document end page, and the like. The document code is obtained by converting a file name used for managing a document in the external storage unit 30 into a file name for printing management in the printer device 40. The page code is also obtained by converting information (start page and the like) used for managing pages in a document in the external storage unit 30 for managing page printing in the printer device 40. Note that the printer device that performs printing in page units is, for example, a laser printer. This laser printer includes a printing unit that performs printing by laser, and a controller unit that converts various printing patterns such as characters and graphs into electric signals. Therefore, the print completion information is transferred to a printing unit, for example, a paper transfer portion (a portion that applies positive static electricity to the back side of the paper and attracts the toner on the photosensitive drum toward the paper) to a pressure fixing portion (a paper on the paper). This can be realized by a configuration in which the toner is generated at the time when the toner passes through a portion where the toner is pressed against the paper by applying pressure to prevent the toner from dropping. [Effects of the Invention] As described above, according to the present invention, the spool control unit responds to the print request by generating the print data of the document in the external storage unit by the application unit and outputting the print request. After creating the print request control block, the document information and page information for each page of the document and the print data for each page read from the external storage unit are output to the printer control unit, and the document information and page information are output. The printer control unit writes to the memory page by page as the document printing information, and the document information and the page information of the page in the order of transmission to the printer device and the print data corresponding to the page received from the spool control unit. From the printer control unit to the printer To cause printing. When printing a document from the application unit, the application unit creates print data in the external storage unit and issues a print request to the spool control unit. After creating the print request control block, the spool control unit outputs, to the printer control unit, document information and page information for each page of the document and print data for each page read from the external storage unit. The printer control unit writes the document information and the page information as printing information of the document into the memory for each page by the printer control unit, and outputs the document information and the page information of the pages in the sending order to the printer device and the spool. The print data corresponding to the page received from the control unit is sent from the printer control unit to the printer device to cause printing. The printer control unit, upon receiving the notification of the completion of printing the page from the printer device, deletes the document information and the page information corresponding to the completion of the printing of the page among the printing page information of the document corresponding to the print request,
When the printing of the document is completed, the spool control unit is notified of the completion of the printing of the document. Upon receiving the print completion notification of the document, the spool control unit deletes the print request control block of the document. With this configuration, when a failure occurs during printing of the printer device and the printer device attempts to perform printing after recovery, the spool control unit starts from the first page of the document being printed. Instead of starting printing, it is sufficient to print from the page specified by the page information in the printing information, which is useful for improving printing speed and reliability. Further, this effect can cope with an abnormality such as a power failure of the printer device itself, and the power of the present invention is exerted.

【図面の簡単な説明】 第1図は本発明のプリンタ制御方式の原理ブロック図、 第2図は本発明のプリンタ制御方式の一構成例を示す実
施例ブロック図、 第3図は本発明実施例の処理方式を説明する図、 第4図は印刷制御ブロックの内容を示す図、 第5図は印刷中の状態管理の概念図、 第6図はワークエリアの内容を示す図である。 図において、 10は中央制御装置(CPU)、11はアプリケーション手
段、12はスプール制御部、13はプリンタ制御部、20はメ
モリ、21は印刷中ページ情報、22はスプールキュー、30
は外部記憶手段(DASD)、31は印刷中ページ情報、32は
スプールキュー、33は印刷データ、40はプリンタ装置で
ある。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing the principle of a printer control method according to the present invention, FIG. 2 is a block diagram showing an example of a configuration of a printer control method according to the present invention, and FIG. FIG. 4 is a diagram for explaining an example processing method, FIG. 4 is a diagram showing the contents of a print control block, FIG. 5 is a conceptual diagram of state management during printing, and FIG. 6 is a diagram showing the contents of a work area. In the figure, 10 is a central control unit (CPU), 11 is application means, 12 is a spool control unit, 13 is a printer control unit, 20 is a memory, 21 is page information during printing, 22 is a spool queue, 30
Is an external storage means (DASD), 31 is page information during printing, 32 is a spool queue, 33 is print data, and 40 is a printer device.

Claims (1)

(57)【特許請求の範囲】 1.ドキュメントの印刷データを外部記憶手段に作成し
て印刷要求を出力するアプリケーション手段と、 アプリケーション手段から発生した印刷要求を受けて印
刷要求制御ブロックを作成した後、ドキュメントのペー
ジ毎のドキュメント情報およびページ情報を作成して出
力すると共に、該ドキュメント情報およびページ情報と
前記外部記憶手段から読み込んだページ毎の印刷データ
とを出力し、ドキュメントの印刷完了を通知する情報を
受けたとき前記印刷要求制御ブロックを削除するスプー
ル制御部と、 該スプール制御部から受け取った前記ドキュメント情報
およびページ情報を前記印刷要求対応のドキュメントの
印刷中情報としてメモリにページ毎に書き込むと共に、
プリンタ装置への送出順序となったページの前記ドキュ
メント情報およびページ情報ならびに前記スプール制御
部から受け取った当該ページ対応の印刷データを前記プ
リンタ装置に対してプロトコル制御しながら引き渡し、
プリンタ装置からページの印刷完了を通知する情報が前
記プリンタ装置から入力したときに前記印刷要求対応の
ドキュメントの印刷中ページ情報のうちの前記ページの
印刷完了に対応するドキュメント情報およびページ情報
を削除し、ドキュメントの印刷完了時にスプール制御部
にドキュメントの印刷完了を通知するプリンタ制御部
と、 を備えたことを特徴とするプリンタ制御方式。
(57) [Claims] Application means for creating print data of a document in an external storage means and outputting a print request; and receiving a print request generated from the application means to create a print request control block, and then providing document information and page information for each page of the document. And outputs the document information and page information and the print data for each page read from the external storage means, and upon receiving information notifying the completion of printing the document, the print request control block A spool control unit to be deleted, and the document information and the page information received from the spool control unit are written into a memory for each page as printing information of the document corresponding to the print request, and
Delivering the document information and the page information of the page that has become the sending order to the printer device and the print data corresponding to the page received from the spool control unit while performing protocol control to the printer device,
When information notifying the completion of page printing from the printer device is input from the printer device, the document information and page information corresponding to the printing completion of the page among the printing page information of the document corresponding to the print request are deleted. A printer control unit for notifying the spool control unit of the completion of printing of the document when printing of the document is completed.
JP61215652A 1986-09-12 1986-09-12 Printer control method Expired - Lifetime JP2839246B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61215652A JP2839246B2 (en) 1986-09-12 1986-09-12 Printer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61215652A JP2839246B2 (en) 1986-09-12 1986-09-12 Printer control method

Publications (2)

Publication Number Publication Date
JPS6371722A JPS6371722A (en) 1988-04-01
JP2839246B2 true JP2839246B2 (en) 1998-12-16

Family

ID=16675944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61215652A Expired - Lifetime JP2839246B2 (en) 1986-09-12 1986-09-12 Printer control method

Country Status (1)

Country Link
JP (1) JP2839246B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054018B1 (en) 1994-07-22 2006-05-30 Fuji Xerox Co., Ltd. Printing apparatus and printing control method and character font pattern control method in printing apparatus
JP4125044B2 (en) * 2002-05-31 2008-07-23 キヤノン株式会社 Information processing apparatus, information processing apparatus control method, program, and storage medium
JP4659531B2 (en) * 2005-06-28 2011-03-30 キヤノン株式会社 Job status monitoring system, job status monitoring method, program, and storage medium
JP5324257B2 (en) * 2009-02-27 2013-10-23 キヤノン株式会社 Information processing apparatus, control method therefor, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59124157U (en) * 1983-02-10 1984-08-21 日立工機株式会社 Cut paper page printer control circuit
JPS60257262A (en) * 1984-06-04 1985-12-19 Oki Electric Ind Co Ltd Printing system of page printer
JPS6356472A (en) * 1986-08-26 1988-03-11 Nec Corp Printer with reprinting function

Also Published As

Publication number Publication date
JPS6371722A (en) 1988-04-01

Similar Documents

Publication Publication Date Title
US4979132A (en) Control device for use with an image recording system
JPH0934670A (en) Image formation device
JP2839246B2 (en) Printer control method
JPH1131054A (en) Print system
JP3489846B2 (en) Remote printing system
JPH0822640B2 (en) Image recording device control device
JPS60176138A (en) Printer
JP3110905B2 (en) Data transfer device and method
JPH11194914A (en) Print control unit
JP3174624B2 (en) Print information management method in printer device and printer device
KR100313869B1 (en) Apparatus for generating printing data efficiently and method thereof
JPH01283160A (en) Control device for image recording apparatus
JP3639653B2 (en) Printer control system
JPH0326561A (en) Printing device
JP3248796B2 (en) Network printer system
JP2002248814A (en) Imaging apparatus, its data processing method, and storage medium
JPH05265668A (en) Image printing system
JP2000298571A (en) Printing system and control method of printing
JP2000181638A (en) Printing system
JPH04130919A (en) Printing processing system
JP2003030125A (en) Serial interface control device and control method
JPH0312734B2 (en)
JPH09245098A (en) Slip preparation system and slip printing control method therefor
JP2006236204A (en) Image processor and image formation program
JPH06195180A (en) Control system for printer for server/client system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term