JPH04126272A - Printer controller - Google Patents

Printer controller

Info

Publication number
JPH04126272A
JPH04126272A JP2340493A JP34049390A JPH04126272A JP H04126272 A JPH04126272 A JP H04126272A JP 2340493 A JP2340493 A JP 2340493A JP 34049390 A JP34049390 A JP 34049390A JP H04126272 A JPH04126272 A JP H04126272A
Authority
JP
Japan
Prior art keywords
printing
print
partial page
control unit
frame memory
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
JP2340493A
Other languages
Japanese (ja)
Other versions
JP2965686B2 (en
Inventor
Saiji Kageyama
斎司 蔭山
Toshiyuki Nakajima
俊幸 中嶋
Tadahiko Aso
麻生 忠彦
Keiichi Nakane
啓一 中根
Tatsuki Kanazawa
龍樹 金澤
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
Application filed by Hitachi Ltd, Hitachi Micro Software Systems Inc filed Critical Hitachi Ltd
Priority to JP2340493A priority Critical patent/JP2965686B2/en
Publication of JPH04126272A publication Critical patent/JPH04126272A/en
Application granted granted Critical
Publication of JP2965686B2 publication Critical patent/JP2965686B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To accomplish a high effective printing speed by a method wherein a printer control part reads drawing data where an effective flag of a control information area is set to ON and issues the read data to a printer engine part, the effective flag of the control information area corresponding to a partial page for which the issuance of the drawing data is completed is set to OFF, and the partial page of a frame memory is released. CONSTITUTION:When a printer engine control part 115 instructs a data read part 114 to read a frame memory 104, the data read part 114 monitors a control information area 120 on the frame memory 104. If drawing data is set to an 'effective' state, the data read part 114 reads the drawing data from an appropriate drawing area 121 and issues the read drawing data to a printer engine part 102 for printing the data. After the drawing data for one line is all transmitted to the printer engine part 102, an 'invalid' is set on the control information area 120 corresponding to the drawing area 121 for one line. After that, a printing data control part 103 is informed of the presence of a capacity for one line in the frame memory 104. The control part 115 instructs the data read part 114 to read next drawing data.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、シャトルプリンタ、レーザプリンタ等のプリ
ンタエンジン部を制御する印刷制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printing control device that controls a printer engine section of a shuttle printer, a laser printer, or the like.

[従来の技術] 従来の印刷制御方式においては、特開昭63−1137
8号に記載されているように、プリンタコントローラが
印刷データの受信・展開等の印刷データ処理に時間を栗
していた。そのため、プリンタエンジン部が最高速度で
印刷を行うことのできる時間内に印刷データをプリンタ
コントローラからプリンタエンジン部に対して送信する
ことが出来なかった。このためプリンタコントローラが
印刷データ処理を完了し、プリンタエンジン部に対して
送出可能となるまで、プリンタエンジン部を待たせるた
めのプリンタエンジン部制御を行う必要があった。
[Prior art] In the conventional printing control system,
As described in No. 8, the printer controller was wasting its time processing print data, such as receiving and developing print data. Therefore, print data could not be transmitted from the printer controller to the printer engine within the time period during which the printer engine could print at maximum speed. Therefore, it is necessary to control the printer engine section to make the printer engine wait until the printer controller completes print data processing and can send the print data to the printer engine section.

[発゛明が解決しようとする課題] 上記従来技術において、プリンタエンジン部の印刷速度
が向上しても、プリンタエンジン部の制御を行うための
プリンタコントローラのデータ処理が遅いため、プリン
タコントローラ込みでの実効印刷速度が速くならないと
いう問題があった。
[Problems to be Solved by the Invention] In the above-mentioned conventional technology, even if the printing speed of the printer engine section improves, the data processing of the printer controller for controlling the printer engine section is slow. There was a problem that the effective printing speed of the printer did not increase.

一方、特開昭63−49824号公報および特開昭63
−75827号公報には、用紙1ページ単位に連続印刷
を行うために従来少なくとも2ページ分相当の印刷デー
タを格納する画情報メモリが必要であったところ、1ペ
ージ分の画情報メモリを複数の領域に分割して用いるこ
とにより、1ページ分の画情報メモリで連続印刷を行え
るようにする技術が開示されている。
On the other hand, JP-A-63-49824 and JP-A-63
Publication No. 75827 discloses that in order to perform continuous printing on a page-by-page basis, an image information memory that stores print data equivalent to at least two pages is conventionally required, but the image information memory for one page can be stored in multiple A technique has been disclosed that allows continuous printing to be performed using one page's worth of image information memory by dividing the information into areas.

この従来技術によれば、実効印刷速度の向上が望めるが
、なお、1ページ分のフレームメモリを必要とする。ま
た、描画処理と印刷処理との間の良好なインタフェース
には改良の余地がある。
According to this conventional technique, an improvement in the effective printing speed can be expected, but it still requires a frame memory for one page. There is also room for improvement in a better interface between drawing and printing processes.

本発明の目的は、上記従来技術の問題を解消し。An object of the present invention is to solve the problems of the prior art described above.

プリンタエンジン部の印刷性能の向上に伴いそれに対応
する高速の実効印刷速度を達成することができる印刷制
御装置を提供することにある。
An object of the present invention is to provide a print control device that can achieve a high effective printing speed corresponding to the improvement in printing performance of a printer engine section.

本発明の他の目的はフレームメモリのメモリ容量を最低
限に抑えることができる印刷制御装置を提供することに
ある。
Another object of the present invention is to provide a print control device that can minimize the memory capacity of a frame memory.

本発明のさらに他の目的は、印刷時間を短縮することが
できる、印刷スループットの高い印刷制御装置を提供す
ることにある。
Still another object of the present invention is to provide a print control device that can shorten printing time and has high print throughput.

[課題を解決するための手段] 上記目的を達成するために1本発明による印刷制御装置
は、描画データを格納するフレームメモリと、印刷コマ
ンド列を解釈して前記フレームメモリ上に描画を行う印
刷データ制御部と、前記フレームメモリに描画された描
画データを読みだしてプリンタエンジン部へ送信するプ
リンタ制御部とを備えた印刷制御装置において、前記フ
レームメモリを一定数のラスタからなる部分ページ単位
に分割し、前記印刷データ制御部によるフレームメモリ
の獲得・解放を部分ページ単位に行わせるフレームメモ
リ管理手段を設けるとともに、前記フレームメモリ上に
、描画データの他に描画データの有効性を示す有効フラ
グを格納する制御情報エリアを少なくとも前記部分ペー
ジ単位に設け、前記印刷データ制御部は、印刷コマンド
列を受信するとともに、前記フレームメモリ管理手段を
用いて描画エリアを部分ページ単位で獲得し、該獲得し
た描画エリア上に前記印刷コマンドに基づく描画を行い
、該描画した部分ページ分の描画エリアに対応する前記
制御情報エリアの有効フラグをオンに設定した後、次の
描画処理に移り、前記プリンタ制御部は、前記制御情報
エリアの有効フラグがオンである描画データを読出して
前記プリンタエンジン部に送出し、描画データの送出が
終了した部分ページに対応する前記制御情報エリアの有
効フラグをオフに設定して当該フレームメモリの部分ペ
ージを解放し、前記フレームメモリ上の制御情報エリア
の有効フラグがオンの描画データがなくなるまで当該処
理を繰り返して行うようにしたものである。
[Means for Solving the Problems] In order to achieve the above object, a print control device according to the present invention includes a frame memory that stores drawing data, and a print controller that interprets a print command string and draws on the frame memory. In a printing control device comprising a data control unit and a printer control unit that reads drawing data drawn in the frame memory and sends it to a printer engine unit, the frame memory is divided into partial pages each consisting of a certain number of rasters. A frame memory management means for dividing the frame memory and causing the print data control unit to acquire and release the frame memory in units of partial pages is provided, and a valid flag indicating the validity of the drawing data in addition to the drawing data is provided on the frame memory. A control information area for storing a drawing area is provided at least in units of partial pages, and the print data control unit receives a print command string and acquires a drawing area in units of partial pages using the frame memory management means, After performing drawing based on the print command on the drawn drawing area and setting on the valid flag of the control information area corresponding to the drawing area for the drawn partial page, the process moves to the next drawing process, and the printer control The unit reads the drawing data for which the valid flag of the control information area is on and sends it to the printer engine unit, and sets the valid flag of the control information area corresponding to the partial page for which sending of the drawing data has been completed to OFF. Then, the partial page of the frame memory is released, and the process is repeated until there is no more drawing data whose valid flag is on in the control information area on the frame memory.

前記フレームメモリの容量は1ページ分に満たない場合
であってもよく、その場合、前記部分ページ単位のフレ
ームメモリをリング形式に用いることができる。
The capacity of the frame memory may be less than one page, and in that case, the frame memory in units of partial pages can be used in a ring format.

前記部分ページは、例えば、テキストの1行に相当する
大きさである。
The partial page has a size corresponding to, for example, one line of text.

前記制御情報エリアは、例えば、ラスタ単位に設ける。The control information area is provided for each raster, for example.

前記制御情報エリアに、部分ページ内の最後のラスタに
ついてその旨を表わす情報を記載する領域を設けてもよ
い。
The control information area may include an area in which information indicating the last raster in the partial page is written.

また、前記制御情報エリアに、当該部分ページ内の最後
のラスタについて、当該部分ページが現ページ内の何番
目の部分ページに該当するかの情報を表わす情報を格納
する領域を設けてもよい。
Further, the control information area may include an area for storing information representing the number of partial pages in the current page to which the partial page corresponds, regarding the last raster in the partial page.

前記制御情報エリアに、印刷中断時に中断を許容する旨
の情報を格納する領域をラスタ単位に設けてもよく、こ
の場合、前記プリンタ制御部は該情報の格納されたラス
タまで印刷を続行した後、印刷を中断する。
In the control information area, an area may be provided for each raster to store information indicating that an interruption is permitted when printing is interrupted, and in this case, the printer control section continues printing up to the raster where the information is stored, , interrupt printing.

前記制御情報エリアに、部分ページの使用状態を記述す
る使用状態フラグを格納する領域を設け、前記フレーム
メモリ管理手段は前記部分ページ単位のフレームメモリ
の獲得および解放を、前記使用状態フラグを参照、更新
しながら行うようにすることもできる。
The control information area is provided with an area for storing a usage state flag that describes the usage state of the partial page, and the frame memory management means acquires and releases the frame memory in units of the partial page by referring to the usage state flag. It is also possible to do this while updating.

さらに、改行および改頁等の印刷制御情報を格納する印
刷制御情報エリアをラスク単位に前記フレームメモリ上
に設け、前記プリンタ制御部は前記描画データとともに
前記印刷制御情報を読みだして印刷制御を行うようにし
てもよい、この場合。
Further, a print control information area for storing print control information such as line breaks and page breaks is provided on the frame memory for each rask, and the printer control unit reads out the print control information together with the drawing data to perform print control. In this case, you may do as follows.

前記印刷データ制御部は、一つの部分ページの描画に伴
い当該印刷制御情報エリアに書込みを行い、前記プリン
タ制御部は前記印刷制御情報エリアの内容に対応する制
御コードと描画データの組み合わせとしての1ラスクの
データを生成して前記プリンクエンジン部へ送出する。
The print data control unit writes in the print control information area in accordance with the drawing of one partial page, and the printer control unit writes 1 as a combination of a control code and drawing data corresponding to the contents of the print control information area. Rask data is generated and sent to the plink engine section.

印刷を中断する際に、行の途中での中断を抑止する中断
制御手段を設けてもよい。
When interrupting printing, an interruption control means may be provided to suppress interruption in the middle of a line.

印刷中断状態におけるテスト印刷を行うためのテスト印
刷用フレームメモリを設け、テスト印刷を行うときに、
中断している印刷の各種情報を退避することなしにテス
ト印刷が行えるようにすることも可能である。
A frame memory for test printing is provided to perform test printing when printing is interrupted, and when performing test printing,
It is also possible to perform test printing without saving various information about the interrupted printing.

好ましくは、前記印刷データ制御部は、前記第1の部分
ページへの描画に伴い、該部分ページの直前の第2の部
分ページへの描画が生じた場合、該第2の部分ページの
前記有効フラグをオンにするが、前記第1の部分ページ
の有効フラグは未だオンにしないようにする。
Preferably, when drawing on a second partial page immediately before the first partial page occurs in conjunction with drawing on the first partial page, the print data control unit controls the valid print data of the second partial page. The flag is turned on, but the valid flag of the first partial page is not turned on yet.

[作用] ホストコンピュータは、印刷を行うため、プリンタコン
トローラに対し印刷内裏を指示するためのコマンドの集
まりである印刷コマンド列を送信する。
[Operation] In order to perform printing, the host computer transmits a print command string, which is a collection of commands for instructing the inside and outside of printing, to the printer controller.

プリンタコントローラ内の印刷データ制御部は。The print data control section in the printer controller.

印刷コマンド列の受信を行なった後、印刷データを描画
するためのフレームメモリをフレームメモリ管理手段を
用いて獲得する。該フレームメモリ管理手段は1部分ペ
ージ分の描画の対象となるメモリ量を一単位としてフレ
ームメモリの獲得・解放を行なう、印刷データ制御部は
、印刷コマンド列に従って、獲得した部分ページ分のフ
レームメモリ(以下1部分ページバッファともいう)に
描画を行なう、印刷データ制御部は1部分ページバッフ
ァを獲得できない場合、部分ページバッファの獲得が行
なえるまで待つ0部分ページバッファの獲得と描画が完
了した時点で、描画が完了したエリアに対応する部分ペ
ージバッファ上の制御情報エリアに当該描画データが有
効であることを設定(有効フラグをオンに)シ、プリン
タ制御部に対して、読出し開始を指示する。印刷データ
制御部は、有効な印刷コマンドがなくなるまで上記処理
を繰返す。
After receiving the print command sequence, a frame memory for drawing print data is acquired using a frame memory management means. The frame memory management means acquires and releases the frame memory in units of the amount of memory to be drawn for one partial page.The print data control unit acquires and releases the frame memory for the acquired partial page in accordance with the print command string. (hereinafter also referred to as 1 partial page buffer). If the print data control unit cannot acquire a 1 partial page buffer, it waits until the partial page buffer can be acquired. 0 When the partial page buffer acquisition and drawing are completed. Then, set that the drawing data is valid (turn on the valid flag) in the control information area on the partial page buffer corresponding to the area where drawing has been completed, and instruct the printer control unit to start reading. . The print data control unit repeats the above process until there are no more valid print commands.

読出し開始の指示を受けたプリンタ制御部は、部分ペー
ジバッファ上の前記制御情報エリアを監視し、描画デー
タが有効に設定されていた場合は、有効に設定されてい
る制御情報エリアに対応する部分ページバッファから描
画データを読出し、プリンタエンジン部に送出する。プ
リンタエンジン部は、受信した描画データを印刷する。
The printer control unit that receives the instruction to start reading monitors the control information area on the partial page buffer, and if the drawing data is set to be valid, prints the part corresponding to the control information area that is set to be valid. Reads the drawing data from the page buffer and sends it to the printer engine section. The printer engine unit prints the received drawing data.

部分ページ分の描画データのプリンタエンジン部への送
信が終了した時点で制御情報エリアのデータの有効設定
を無効に再設定(有効フラグをオフに)した後、部分ペ
ージバッファ管理手段を用いて、獲得していた前記フレ
ームメモリのうち前記描画データに対応する部分ページ
バッファを解放する。
When the sending of the drawing data for the partial page to the printer engine section is completed, the valid setting of the data in the control information area is reset to invalid (the valid flag is turned off), and then using the partial page buffer management means, A partial page buffer corresponding to the drawing data in the acquired frame memory is released.

部分ページバッファの獲得と、獲得した部分ページバッ
ファ解放は、−巡したらまた最初に戻るリング形式で行
う。
Acquisition of a partial page buffer and release of the acquired partial page buffer are performed in a ring format that returns to the beginning after one cycle.

プリンタ制御部は、部分ページバッファ上の描画データ
の有効設定がなされている全ての描画データのプリンタ
エンジン部への送出が終了した時点で印刷データ制御部
に対し、送出すべき描画データがないことを示すための
アイドル状態の通知を行なう、その後、制御情報エリア
の監視状態となり、描画データが有効に設定された時点
で、プリンタエンジン部に対する描画データの送出処理
を再び行なう。
The printer control unit determines that there is no drawing data to be sent to the print data control unit when all drawing data for which the drawing data on the partial page buffer is enabled has been sent to the printer engine unit. After that, the control information area is monitored, and when the drawing data is set to be valid, the process of sending the drawing data to the printer engine section is performed again.

印刷データ制御部は、前記アイドル状態の通知を受けた
時点で、受信済みのすべての印刷コマンド列についての
描画処理を完了していたならば、プリンタ制御部に対し
て読出し終了を通知し、印刷コマンドの受信待ちとなる
。プリンタ制御部は読出し終了を受信した時点で処理を
終了する。
If the print data control unit has completed the drawing process for all received print command sequences at the time of receiving the notification of the idle state, the print data control unit notifies the printer control unit of the completion of reading and starts printing. Waiting for command reception. The printer control unit ends the process upon receiving the read end notification.

また、改行、改頁等の印刷制御情報は、印刷データ制御
部からコマンドとしてプリンタ制御部へ送出するのでは
なく、部分ページバッファ上に当該印刷制御情報を格納
する印刷制御情報格納エリアをラスタ単位に設けてプリ
ンタ制御部がこのエリアを参照することにより印刷制御
を行う。
In addition, instead of sending print control information such as line breaks and page breaks from the print data control unit to the printer control unit as commands, the print control information storage area that stores the print control information on the partial page buffer is stored in raster units. The printer control unit performs printing control by referring to this area.

以上の手順により一連の印刷処理を終了する。The series of print processing is completed by the above steps.

従って、メモリの使用量と使用コストを下げ。Therefore, reducing memory usage and usage costs.

使用効率を高めることができる。また、平行処理の実現
により、プリンタエンジン部を空き時間なく動作させ、
実効印刷速度および印刷スループットを向上させること
が可能になる (以下、余白) [実施例] まず、本発明の第1実施例を第1図の構成例を用いて説
明する。
Usage efficiency can be increased. In addition, by realizing parallel processing, the printer engine section can operate without idle time.
It becomes possible to improve the effective printing speed and printing throughput (hereinafter referred to as margin) [Example] First, a first example of the present invention will be described using the configuration example shown in FIG. 1.

本印刷装置は、プリンタコントローラ100とプリンタ
エンジン部102からなる。
This printing apparatus includes a printer controller 100 and a printer engine section 102.

プリンタコントローラ100は、印刷データ制御部10
3、フレームメモリ104、プリンタ制御部105から
なる。
The printer controller 100 includes a print data control section 10
3, a frame memory 104, and a printer control section 105.

印刷データ制御部103は、ホスト通信制御部106、
コマンド制御部112、描画制御部108、フレームメ
モリ管理部118、通信コマンド制御部109、中断制
御部130、テスト印刷制御部131、及びコマンドバ
ッファ107からなる。
The print data control unit 103 includes a host communication control unit 106,
It consists of a command control section 112, a drawing control section 108, a frame memory management section 118, a communication command control section 109, an interruption control section 130, a test printing control section 131, and a command buffer 107.

本印刷データ制御部103は、ホストコンピュータ10
1との通信及び印刷内容を指示する印刷コマンドの解釈
と実行(解釈した結果に基づく描画等)を行なう。
The main print data control unit 103 controls the host computer 10
1 and interprets and executes print commands that instruct print content (drawing, etc. based on the interpreted results).

ホスト通信制御部106は、印刷コマンド受信等のホス
トコンピュータ101との通信M#を行なう。
The host communication control unit 106 performs communication M# with the host computer 101, such as receiving print commands.

コマンド制御部112は、ホスト通信制御部106によ
り受信したコマンドの解析と印刷コマンドのコマンドバ
ッファ107への格納、及びコマンドの解析結果にした
がった各種制御を行なう。
The command control unit 112 analyzes commands received by the host communication control unit 106, stores print commands in the command buffer 107, and performs various controls according to the command analysis results.

描画制御部108は、■コマンドバッファ107に格納
されている印刷コマンドの読出し。
The drawing control unit 108 reads print commands stored in the command buffer 107;

■読呂した印刷コマンドの解釈、■解釈した結果に従っ
て文字・図形等のドツトイメージデータとしてのフレー
ムメモリ104上への生成、及び■プリンタ制御部10
5に対する印刷開始の指示とプリンタ制御部105がら
の通知に対する処理等を行なう。
■Interpreting the read print command, ■Generating characters, figures, etc. on the frame memory 104 as dot image data according to the interpreted results, and ■Printer control unit 10
5 to start printing and processes for notifications from the printer control unit 105.

フレームメモリ管理部118は、フレームメモリ104
をプリンタエンジン部102の印字最小単位であるラス
タ単位に区切り、さらに印字単位である行単位(24ド
ツトサイズのフォントで印刷を行なう場合、24ラスタ
が1行となる。)で、描画制御部108やプリンタ制御
部105がらのフレームメモリ104の獲得や解放の要
求に従って、フレームメモリ104の使用状態の割当等
の管理を行なう。
The frame memory management unit 118 controls the frame memory 104
is divided into raster units, which are the minimum printing units of the printer engine unit 102, and further divided into line units, which are printing units (when printing with a 24-dot size font, 24 rasters constitute one line), and the drawing control unit 108 and In accordance with a request from the printer control unit 105 to acquire or release the frame memory 104, the allocation of the usage status of the frame memory 104, etc. is managed.

通信コマンド制御部109は、プリンタ制御部105へ
の印刷開始の送信やプリンタ制御部105からの印刷終
了の受信等の通信制御を行なう。
The communication command control unit 109 performs communication control such as sending a print start command to the printer control unit 105 and receiving a print end command from the printer control unit 105.

中断制御部130は、印刷の中断を行なうための制御を
行ない、テスト印刷制御部131は、テスト印刷を行な
うための制御を行なう。これらの中断制御部130とテ
スト印刷制御部131については、第2実施例と第3実
施例において、詳述する。
The interruption control section 130 performs control for suspending printing, and the test printing control section 131 performs control for performing test printing. These interruption control section 130 and test print control section 131 will be described in detail in the second embodiment and the third embodiment.

プリンタ制御部105は、データリード部114、プリ
ンタエンジン制御部115、プリンタコマンド制御部1
16、及び通信制御部117からなる。
The printer control unit 105 includes a data read unit 114, a printer engine control unit 115, and a printer command control unit 1.
16, and a communication control unit 117.

データリード部114は、描画制御部108が描画した
フレームメモリ104上の描画データを印刷データ制御
部103の印刷開始等の指示に従って読出す。
The data read unit 114 reads the drawing data drawn by the drawing control unit 108 on the frame memory 104 in accordance with instructions such as starting printing from the print data control unit 103.

プリンタエンジン制御部115は、データリード部11
4が、フレームメモリ上から読出したネ画データのプリ
ンタエンジン部102に対する完出、及び改頁・改行等
の印刷を行なうための用扇制御等の印刷制御を行なう。
The printer engine control section 115 includes the data read section 11
4 performs print control such as outputting the negative picture data read from the frame memory to the printer engine unit 102, and printing control for printing page breaks, line breaks, etc.

プリンタコマンド制御部116は、印刷デー6制御部1
03からの印刷開始等の指示を解析し。
The printer command control unit 116 includes the print data 6 control unit 1
Analyze instructions such as starting printing from 03.

実行する。Execute.

通信制御部117は、印刷データ制御部103との通信
制御を行なう。
The communication control unit 117 controls communication with the print data control unit 103.

プリンタエンジン部102は、入力された信号に従って
、連続用紙上にシャトルプリンタ印刷メカニズム、ワイ
ヤドツト印刷メカニズムや、電子写真印刷メカニズム等
を用いて、印刷を行なう。
The printer engine unit 102 prints on continuous paper using a shuttle printer printing mechanism, a wire dot printing mechanism, an electrophotographic printing mechanism, etc. in accordance with input signals.

フレームメモリ104は、第101i1i11に示すよ
うに、描画制御部108が、印刷コマンドに従って描画
したデータである描画データを格納する描画エリア12
1と、この描画エリア121上に描画された描画データ
がプリンタエンジン部102に送出可能か否かを「有効
」または「無効」状態で表わす描画データ有効設定14
1.フレームメモリ104が獲得可能か否かを「使用」
または「未使用」状態で表わす使用状態設定140等の
制御情報を格納する制御情報エリア120、及びプリン
タエンジン1$102による印刷の1#JIiを行なう
ための情報を格納する印刷制御エリア122からなる。
As shown in 101i1i11, the frame memory 104 includes a drawing area 12 in which drawing data, which is data drawn by the drawing control unit 108 in accordance with a print command, is stored.
1, and a drawing data enable setting 14 that indicates whether the drawing data drawn on this drawing area 121 can be sent to the printer engine unit 102 in a “valid” or “invalid” state.
1. "Use" whether frame memory 104 can be acquired or not
It also consists of a control information area 120 that stores control information such as a usage status setting 140 that is expressed as an "unused" state, and a print control area 122 that stores information for performing 1#JIi of printing by the printer engine 1$ 102. .

前記フレームメモリ104は、プリンタエンジン部10
2の印字最小単位であるラスタ単位(1ドツト単位)に
区切られ、さらに印字単位である行単位で、フレームメ
モリ管理部118により管理されている。
The frame memory 104 is connected to the printer engine section 10.
The data is divided into raster units (one dot units), which are the minimum printing unit of No. 2, and is further managed by the frame memory management unit 118 in line units, which are printing units.

前記描画データ有効設定141が「有効」とは対応する
1ラスタ分のフレームメモリへの描画が完了しているが
まだプリンタ部102への読出しが終わっていないこと
を示す。一方、前記設定141が「無効」とは、対応す
るlラス5分のフレームメモリへの描画が未完了である
ことを示す。
When the drawing data valid setting 141 is "valid", it means that drawing of one raster corresponding to the frame memory has been completed, but reading to the printer unit 102 has not yet been completed. On the other hand, the setting 141 being "invalid" indicates that drawing of the corresponding 5 minutes into the frame memory has not been completed.

文字を行単位にフレームメモリ上に描画する場合、前記
設定141への有効設定は1行分の描画が完了した時点
で1行を構成する全ラスタにつぃて行い、前記設定14
1への無効設定は、プリンタ制御部105が1行分の描
画データのフレームメモリからの読出しを完了した時点
で1行を構成する全ラスタについて行う。
When drawing characters on the frame memory line by line, the effective setting for the setting 141 is made for all rasters constituting one line when drawing for one line is completed, and the setting 14
The invalid setting to 1 is performed for all rasters constituting one line at the time when the printer control unit 105 completes reading one line of drawing data from the frame memory.

また、前記使用状態設定140が「使用」状態とは、対
応するlラス5分のフレームメモリが描画制御部108
により使用中(獲得してから解放するまで)であること
を示し、前記設定140がr未使用」状態とは、対応す
る1ラスタ分のフレームメモリが使用されておらず、獲
得すれば描画できることを示す。
In addition, when the usage state setting 140 is in the "used" state, it means that the frame memory for 5 minutes of the corresponding lth is in the drawing control unit 108.
indicates that it is in use (from acquisition to release), and the setting 140 indicates that it is "unused" means that the corresponding frame memory for one raster is not in use and can be drawn once it is acquired. shows.

文字を行単位にフレームメモリ上に描画する場合、前記
設定140への使用状態の設定は、1行分の描画を行う
ための前処理として、描画制御部108がフレームメモ
リ管理部118を用いて。
When characters are drawn on the frame memory line by line, the usage state of the setting 140 is set by the drawing control unit 108 using the frame memory management unit 118 as preprocessing for drawing one line. .

1行を構成する全ラスタについて行う、また、前記設定
140への未使用状態の設定は、1行分の描画データの
フレームメモリからの読出しが完了したことを、印IR
1j11御部103がプリンタ制御部105から受信し
たとき、印刷制御部103がフレームメモリ管理部11
8を用いて行う。
This is done for all the rasters constituting one row, and setting the setting 140 to an unused state indicates that the reading of one row of drawing data from the frame memory is completed with the IR mark.
1j11 When the control unit 103 receives the data from the printer control unit 105, the print control unit 103 sends the frame memory management unit 11
8.

フレームメモリ管理部118は、描画制御部108から
の獲得/解放要求に従い、フレームメモリ104内の1
行分の未使用エリアをシーケンシャルに、行単位で獲得
または解放する。
The frame memory management unit 118, in accordance with the acquisition/release request from the drawing control unit 108,
Acquire or release unused areas for rows sequentially, row by row.

以下、本発明の動作手順を、全体の動作シーケンスを示
す第2[i21、印刷データ制御部103の動作フロー
を示す第3pi!l、及びプリンタ制御部105の動作
フローを示す第4WIを用いて説明する。なお、参照番
号の吉の位の数字を図番に対応させである。
Hereinafter, the operating procedure of the present invention will be described with reference to the second [i21] which shows the overall operation sequence, and the third [pi!] which shows the operation flow of the print data control unit 103. 1 and the fourth WI showing the operation flow of the printer control unit 105. In addition, the lucky digit of the reference number corresponds to the figure number.

ホストコンピュータ101は、印刷を行なう泥め、プリ
ンタコントローラ1ooに印刷コマンド列を送出する(
204)。
The host computer 101 sends a print command sequence to the printer controller 1oo for printing (
204).

印刷データ制御部103は、ホスト通信制御部106に
より印刷コマンド列を受信しく301)、コマンド制御
部112に印刷コマンド列を受信したことを通知する0
通知を受けたコマンド制御部112は、印刷コマンド列
をコマンドバッ゛ファ107に格納しく3i0)、描画
制御部108に印刷コマンド列を受信したことを通知す
る。通知を受けた描画制御部108は、フレームメモリ
管理部118に対し、フレームメモリ104を使用する
ためフレームメモリ104の獲得要求を行なう(205
,302)。フレームメモリ管理部118は、連続した
1行分のフレームメモリ104にある描画エリア120
上の使用状態設定140が「未使用」状態に設定されて
いるフレームメモリ104があるならば、1行分の使用
状態設定140を「使用」状態に設定して確保した後、
描画制御部104に対しフレームメモリ104が獲得で
きたことを描画制御部108に報告する(303)。1
行分の使用状態設定のいずれかに「使用」状態が設定さ
れているフレームメモリ104があるならば、フレーム
メモリ獲得待ち状態となる。フレームメモリ104の獲
得は、フレームメモリ104の先頭から順次行なわれ、
フレームメモリ104の最後まで獲得したならば、先頭
に戻って獲得を行なう。
The print data control unit 103 receives the print command sequence from the host communication control unit 106 (301), and notifies the command control unit 112 that the print command sequence has been received.
The command control unit 112 that has received the notification stores the print command string in the command buffer 107 (3i0) and notifies the drawing control unit 108 that the print command string has been received. The drawing control unit 108 that has received the notification requests the frame memory management unit 118 to acquire the frame memory 104 in order to use the frame memory 104 (205).
, 302). The frame memory management unit 118 stores a drawing area 120 in the frame memory 104 for one continuous row.
If there is a frame memory 104 whose usage state setting 140 above is set to "unused" state, after setting one line of usage state setting 140 to "used" state and securing it,
The drawing control unit 104 is informed that the frame memory 104 has been acquired to the drawing control unit 108 (303). 1
If there is a frame memory 104 for which the "use" status is set in any of the usage status settings for the rows, the frame memory acquisition wait state is entered. Acquisition of the frame memory 104 is performed sequentially from the beginning of the frame memory 104,
Once the end of the frame memory 104 has been acquired, the acquisition returns to the beginning.

描画制御部108は、コマンドバッファ107から印刷
コマンドを読出し、解析を行なった後、解析結果に従っ
て、獲得したフレームメモリ104上の描画エリア12
1に描画を行なう(206,304)。1行分の描画が
完了した時点で(305)、描画の終了した1行分の該
当描画エリア121に対応する制御情報エリア120上
の描画データ有効設定141に該描画データが有効であ
る旨設定を行なう(306)。プリンタ制御部105が
動作中でない場合(307)、通信コマンド制御部10
9に対して、読出し開始をプリンタ制御部105に指示
するように指示する(2o7.308)。動作中である
場合は、プリンタ制御部105がフレームメモリ104
上の制御情報エリア120にある該描画データ有効設定
141を監視しているため、描画データ有効設定141
に描画データが有効である設定を行なうのみで良い。プ
リンタ制御部105は、動作中であり、「有効」と設定
された該当描画エリア121から描画データを読出し、
プリンタエンジン部に送信する等の処理を行なうので、
前記読出し開始の要求は行なわない。描画制御部108
は、以上の描画処理をコマンドバッファ107上に印刷
コマンドが無くなるまで行なう(309)。
The drawing control unit 108 reads out the print command from the command buffer 107, analyzes it, and then adjusts the drawing area 12 on the acquired frame memory 104 according to the analysis result.
1 (206, 304). When the drawing for one line is completed (305), a setting is made to indicate that the drawing data is valid in the drawing data validity setting 141 on the control information area 120 corresponding to the corresponding drawing area 121 for the one line where drawing has been completed. (306). If the printer control unit 105 is not in operation (307), the communication command control unit 10
9 to instruct the printer control unit 105 to start reading (2o7.308). If it is in operation, the printer control unit 105 stores the frame memory 104.
Since the drawing data valid setting 141 in the upper control information area 120 is monitored, the drawing data valid setting 141
All you need to do is set the drawing data to be valid. The printer control unit 105 reads the drawing data from the corresponding drawing area 121 which is in operation and is set as "valid".
Since it performs processing such as sending it to the printer engine,
The request to start reading is not made. Drawing control unit 108
The above drawing process is performed until there are no more print commands on the command buffer 107 (309).

印刷データ制御部103からの読出し開始の指示をプリ
ンタ制御部105は1通信制御部117で受付け、プリ
ンタコマンド制御部116に指示の内容を報告する(4
00)。プリンタコマンド制御部116は、「動作中」
であることを印刷データ制御部103に通知して(40
1)、プリンタエンジン制御部115に印刷開始を示す
読出し開始を指示し、指示を受けたプリンタエンジン制
御部115は、データリード部114にフレームメモリ
104の読出し指示を行なう。
The printer control unit 105 receives an instruction to start reading from the print data control unit 103 through the 1 communication control unit 117, and reports the content of the instruction to the printer command control unit 116 (4)
00). The printer command control unit 116 is “in operation”
Notify the print data control unit 103 that the
1) The printer engine control unit 115 is instructed to start reading indicating the start of printing, and upon receiving the instruction, the printer engine control unit 115 instructs the data read unit 114 to read the frame memory 104 .

プリンタ制御部105の「動作中」通知を受けた印刷デ
ータ制御部103は(324,325)、読出し開始の
指示をプリンタ制御部105に対して行なわないように
する(307)。
The print data control unit 103, which has received the "in operation" notification from the printer control unit 105 (324, 325), does not instruct the printer control unit 105 to start reading (307).

フレームメモリ104の読出し指示を受けたデータリー
ド部114は、フレームメモリ104上の制御情報エリ
ア120を監視し、描画データが「有効」状態に設定さ
れているならば、該当する描画エリア121から描画デ
ータを読出す(21O1402,403)。プリンタエ
ンジン制御部115は、プリンタエンジン部102に対
して、読出した描画データを送出する(214,405
)。プリンタエンジン部102は、受信が正常に行なわ
れた場合、「受信完了」を送信しく215)、印刷を行
なう(216)。
The data read unit 114 that receives the instruction to read the frame memory 104 monitors the control information area 120 on the frame memory 104, and if the drawing data is set to the "valid" state, draws data from the corresponding drawing area 121. Read data (21O1402, 403). The printer engine control unit 115 sends the read drawing data to the printer engine unit 102 (214, 405).
). When the printer engine unit 102 receives the data normally, it sends "reception complete" (215) and performs printing (216).

プリンタエンジン制御部115は、前記「受信完了」を
受けた後(406)、1行分(24ドツトサイズのフォ
ントについての印刷の場合、24ドツトライン分)の描
画データの転送が終了したならば(407)、転送が終
了した1行分の描画エリア121に対応する制御情報エ
リア120上の描画データ有効設定141に「無効」を
設定する(411)。本「無効」の設定は、1行を構成
する全てのラスタついて行なう、その後、1行分のフレ
ームメモリ104が空いたことを印刷データ制御部10
3に通知し1次の描画データの読出しをデータリード部
114に対して指示する0通信コマンド制御部109は
、フレームメモリ104が空いたことを、フレームメモ
リ管理部118−に通知する(211.408)、フレ
ームメモリ管理部118は本通知に従って、該当フレー
ムメモリ104の制御情報エリア120にある1行分の
使用状態設定140をr未使用」状態に設定することに
より該当フレームメモリ104の解放を行なう(320
,321)、データリード部114は、制御情報エリア
120に描画データが「有効」である設定がなく、印刷
終了を示す読出し終了の指示が印刷データ制御部103
から通知されていないならば(217,404)、プリ
ンタエンジン制御部115に対して、描画データが無い
ことを通知し、制御情報エリア120の監視を行なう状
態となる0通知を受けたプリンタエンジン制御部115
は、本制御部が、読出すべき描画データが無いことを示
すアイドル状態を印刷データ制御部103へ通知するよ
うにプリンタコマンド制御部116へ指示する。プリン
タエンジン制御部115は、■データリード部114か
らの描画データの読出し、又は■印刷データ制御部10
3からの読出し終了指示の待ち状態となる。
After receiving the "reception complete" (406), the printer engine control unit 115 sends a message (407) when the transfer of drawing data for one line (24 dot lines in the case of printing for a 24 dot size font) is completed. ), the drawing data valid setting 141 on the control information area 120 corresponding to the drawing area 121 for one line that has been transferred is set to "invalid" (411). This "invalid" setting is made for all rasters constituting one line. After that, the print data control unit 1
The communication command control unit 109 notifies the frame memory management unit 118- that the frame memory 104 is empty (211.3) and instructs the data read unit 114 to read the primary drawing data. 408), the frame memory management unit 118 releases the frame memory 104 in accordance with this notification by setting the usage status setting 140 for one line in the control information area 120 of the frame memory 104 in the "r unused" state. Do (320
, 321), the data read unit 114 does not have a setting indicating that the drawing data is “valid” in the control information area 120, and the print data control unit 103 receives an instruction to finish reading indicating the end of printing.
If the printer engine control unit 115 is not notified (217, 404) that there is no drawing data, the printer engine control unit 115 that receives the 0 notification will be in a state of monitoring the control information area 120. Part 115
This control unit instructs the printer command control unit 116 to notify the print data control unit 103 of an idle state indicating that there is no drawing data to be read. The printer engine control unit 115 performs two functions: (1) reading drawing data from the data reading unit 114, or (2) reading the drawing data from the data reading unit 114;
It enters a waiting state for an instruction to finish reading from No. 3.

アイドル状態送信の指示を受けたプリンタコマンド制御
部116は、通信制御部117を通して印刷データ制御
部103に通知する(218゜413)、制御情報エリ
ア120上の描画データ有効設定141に「有効」が設
定されている描画データがあるならば、プリンタ制御部
105は、以上の処理を繰り返す。
The printer command control unit 116 that received the instruction to send the idle state notifies the print data control unit 103 through the communication control unit 117 (218° 413) that “valid” is set in the drawing data valid setting 141 on the control information area 120. If there is drawing data that has been set, the printer control unit 105 repeats the above process.

“描画制御部108は、プリンタ制御部105からのア
イドル状態の通知を通信コマンド制御部109を通して
受信する(322)、受信時、コマンドバッファ107
に印刷コマンドがなく、印刷コマンド列全ての描画が完
了しているならば(212,326)、印刷を終了する
ために読出し終了を通信コマンド制御部109を用いて
、プリンタ制御部105内の通信制御部117へ送信す
る(219,323)、プリンタ制御部105は、通信
制御部117を介して読出し終了を受信すると(404
)、プリンタコマンド制御部116により、プリンタエ
ンジン制御部115に対して、印刷処理の停止を指示す
る。指示を受けたプリンタエンジン制御部115は、デ
ータリード部114に対しフレームバッファ104の制
御情報エリア120にある描画データ有効設定141の
監視を終了させることにより、プリンタ制御部105の
処理自体を停止し、印刷処理を終了する(410)。
“The drawing control unit 108 receives the notification of the idle state from the printer control unit 105 through the communication command control unit 109 (322), and upon reception, the command buffer 107
If there is no print command and the drawing of the entire print command string has been completed (212, 326), the communication command control unit 109 is used to request the end of reading to finish printing, and the communication within the printer control unit 105 is executed. When the printer control unit 105 receives the completion of reading via the communication control unit 117 (219, 323), the printer control unit 105 sends the notification to the control unit 117 (404)
), the printer command control unit 116 instructs the printer engine control unit 115 to stop printing processing. Upon receiving the instruction, the printer engine control unit 115 stops the processing itself of the printer control unit 105 by having the data read unit 114 finish monitoring the drawing data valid setting 141 in the control information area 120 of the frame buffer 104. , the print process ends (410).

以上の手順により印刷が完了する。Printing is completed by the above steps.

本実施例によれば、描画制御部とプリンタ制御部が同期
をとりながら並行処理を行なうことができるのでプリン
タエンジン部の性能をフルに活かし、実効印刷速度を高
速にできるという効果がある。
According to this embodiment, since the drawing control section and the printer control section can perform parallel processing while being synchronized, the performance of the printer engine section can be fully utilized and the effective printing speed can be increased.

次↓こ本発明の第2実施例を説明する。Next, a second embodiment of the present invention will be explained.

本実施例は、第1実施例で示した制御情報エリア、描画
エリアの他にフレームメモリ104上にプリンタエンジ
ン部102による印刷を制御するための印刷制御情報を
格納する印刷制御エリア122を設け、プリンタ制御部
105は、前記情報のみで、プリンタエンジン部102
の制御が行なえるようにしたものである。前記印刷制御
エリア122には、改行、改頁、印刷ヘッド移動等を指
示するための印刷制御情報(制御コード)を各ラスク毎
に格納する。具体的な印−制御情報の例を第1表に示す
In this embodiment, in addition to the control information area and the drawing area shown in the first embodiment, a print control area 122 is provided on the frame memory 104 to store print control information for controlling printing by the printer engine unit 102. The printer control unit 105 uses only the above information to control the printer engine unit 102.
It is designed so that it can be controlled. In the print control area 122, print control information (control code) for instructing line feed, page break, print head movement, etc. is stored for each rask. Table 1 shows specific examples of mark-control information.

印刷データ制御部103は、描画制御部108によりフ
レームメモリ104に対し描画を行なった時点で、前記
印刷制御情報を描画の対象である前記描画エリア121
に対応する印刷制御エリア122に設定する。プリンタ
エンジン制御部105は、データリード部114におい
て、描画データに加えて印刷制御情報もフレームメモリ
104から読出し、プリンタエンジン制御部115に送
信する。プリンタエンジン制御部115は描画データを
プリンタエンジン部102に送出後、印刷情報エリア1
22に設定されていた情報を用いてプリンタエンジン部
102の印刷関係の制御を行なう。つまり、プリンタエ
ンジン部102が、各ラスタについて描画データの印刷
をした後、そのラスタ用の印刷制御エリア122内の制
御コードに従って、改行・改頁、ヘッドの移動等を行な
う。
When the drawing control unit 108 performs drawing on the frame memory 104, the print data control unit 103 transfers the print control information to the drawing area 121 that is the drawing target.
is set in the print control area 122 corresponding to . In the printer engine control unit 105 , the data read unit 114 reads print control information in addition to the drawing data from the frame memory 104 and transmits it to the printer engine control unit 115 . After sending the drawing data to the printer engine unit 102, the printer engine control unit 115 sends the drawing data to the print information area 1.
The information set in 22 is used to control printing of the printer engine unit 102. That is, after the printer engine unit 102 prints drawing data for each raster, it performs line feed/page feed, head movement, etc. in accordance with the control code in the print control area 122 for that raster.

本実施例によれば、描画データと印刷制御データを同時
にプリンタ制御部105に渡せるため、描画データと印
刷制御データの同期をとる必要がないので印刷速度を低
下させることなく、細かい印刷制御を行なうことができ
るという効果がある。
According to this embodiment, since drawing data and print control data can be passed to the printer control unit 105 at the same time, there is no need to synchronize the drawing data and print control data, so fine print control can be performed without reducing printing speed. It has the effect of being able to

次に本発明の第3実施例を全体の動作シーケンスを示す
第5図、印刷データ制御部103の動作フローを示す第
6図、及びプリンタ制御部105の動作フローを示す第
7図を用いて説明する。本実施例は、印刷を中断または
停止した場合に、印刷状態との同期をとることができる
中断制御部130を設けることにより、行の途中で印字
が途切れないようにしたものである。なお、第5〜第7
図中、先に説明した図と同一の要素には同一の参照番号
を付し、新たに追加した要素には図番と同じ数を百の位
に持つ参照番号を付しである。
Next, the third embodiment of the present invention will be described using FIG. 5 showing the overall operation sequence, FIG. 6 showing the operation flow of the print data control section 103, and FIG. 7 showing the operation flow of the printer control section 105. explain. This embodiment prevents printing from being interrupted in the middle of a line by providing an interruption control section 130 that can synchronize with the printing state when printing is interrupted or stopped. In addition, 5th to 7th
In the figure, elements that are the same as those in the previously described figures are given the same reference numbers, and newly added elements are given reference numbers that have the same number in the hundreds digit as the figure number.

ホストコンピュータ101から印刷中断の指示が送信さ
れる(501)、印刷データ制御部103は、通信制御
部106により、前記指示を受信する(610)、通信
制御部106は、コマンド制御部112に通知する。コ
マンド制御部112は、前記中断制御部130に中断処
理を指示する。中断制御部130は、描画制御部108
に対して、処理の中断を指示しく611)、通信コマン
ド制御部109を通じて、プリンタ制御部105に印刷
中断を通知する(503.612)描画制御部108で
は、中断の指示を受信後(601)、描画処理を中断L
(504,602)、再開の指示待ちとなる(504)
。プリンタ制御部105では、中断通知を通信制御部1
17により受信し、プリンタコマンド制御部116によ
り中断処理を行なう(713,714)。
An instruction to suspend printing is sent from the host computer 101 (501), the print data control unit 103 receives the instruction via the communication control unit 106 (610), and the communication control unit 106 notifies the command control unit 112. do. The command control unit 112 instructs the interruption control unit 130 to perform interruption processing. The interruption control unit 130 controls the drawing control unit 108
611) and notifies the printer control unit 105 of the interruption of printing through the communication command control unit 109 (503.612).The drawing control unit 108 receives the interruption instruction (601). , interrupt the drawing process L
(504, 602), waiting for restart instruction (504)
. The printer control unit 105 sends the interruption notification to the communication control unit 1.
17, and the printer command control unit 116 performs an interruption process (713, 714).

中断処理は、次のように行なう。The interruption process is performed as follows.

(i)プリンタコマンド制御部116が、プリンタエン
ジン制御部115に印字の中断を指示する。
(i) The printer command control unit 116 instructs the printer engine control unit 115 to interrupt printing.

(ii)プリンタエンジン制御部115が、中断の指示
を受けた時点で、プリンタエンジン部102に1行の描
画データを送出中、及びフレームメモリからデータ読出
し中なら、処理中の描画データがプリンタエンジン部1
02に送出終了するまで処理を続行する。
(ii) If the printer engine control unit 115 is sending one line of drawing data to the printer engine unit 102 and reading data from the frame memory at the time when the printer engine control unit 115 receives the interruption instruction, the drawing data being processed will be transferred to the printer engine. Part 1
The process continues until the sending is completed at 02.

(iii )前記フレームメモリ104からのデータ読
出しが終了したならば、印字を中断し、その旨プリンタ
コマンド制御部116に通知する。
(iii) When data reading from the frame memory 104 is completed, printing is interrupted and the printer command control unit 116 is notified to that effect.

(iv)通知を受けたプリンタコマンド制御部116は
、印刷データ制御部103からの印刷再開の指示待ちと
なり、印刷が中断される(506゜701)。
(iv) Upon receiving the notification, the printer command control unit 116 waits for an instruction to resume printing from the print data control unit 103, and printing is interrupted (506°701).

ホストコンピュータ101からの印刷再開の指示は(5
02)、印刷データ制御部103のホスト通信制御部1
06、及びコマンド制御部112を通じて中断制御部1
30に通知される(613)。
The instruction to resume printing from the host computer 101 is (5)
02), host communication control unit 1 of print data control unit 103
06, and the interruption control unit 1 through the command control unit 112.
30 is notified (613).

中断制御部130は、プリンタコントローラ100が、
前記中断状態であるならば(614)、印刷を再開する
ため、描画制御部に描画の再開を指示する(615)。
The interruption control unit 130 allows the printer controller 100 to
If it is in the suspended state (614), in order to resume printing, the drawing control unit is instructed to resume drawing (615).

続いて、通信コマンド制御部109を通して、プリンタ
制御部105に印刷再開を通知する(505,616)
、中断状態でないならば、印刷再開の処理はしない、描
画制御部108は、再開指示により描画を開始する。プ
リンタ制御部105は、通信制御部117からプリンタ
コマンド制御部116に印刷再開が通知される(710
)、プリンタコマンド制御部116は、プリンタエンジ
ン制御部115に印刷再開を指示する(712)、プリ
ンタエンジン制御部115が指示に従って印刷を開始す
ることで、印刷が再開される。
Next, the printer control unit 105 is notified of the restart of printing through the communication command control unit 109 (505, 616).
If the printing is not in an interrupted state, the drawing control unit 108 does not perform printing restart processing, and starts drawing in response to a restart instruction. In the printer control unit 105, the communication control unit 117 notifies the printer command control unit 116 that printing has resumed (710).
), the printer command control unit 116 instructs the printer engine control unit 115 to resume printing (712), and the printer engine control unit 115 starts printing according to the instruction, thereby restarting printing.

以上の処理手順により行単位の印刷中断と再開を行なう
ことができる。
The above processing procedure allows printing to be interrupted and restarted line by line.

印刷のキャンセルにおいても、初めに印刷を中断するた
め前記処理を行ない、中断後キャンセル処理(フレーム
メモリや各種制御テーブルの初期化とプリンタエンジン
部の初期化)を実行することで行単位に印刷を止めるこ
とができる。
Even when canceling printing, the process described above is first performed to interrupt printing, and after the interruption, the cancel processing (initialization of the frame memory and various control tables and initialization of the printer engine section) is executed to print line by line. It can be stopped.

次に本発明の第4実施例を全体の動作シーケンスを示す
第8v!IIを用いて説明する。本実施例は、第1実施
例、第2実施例、及び第3実施例で示したフレームメモ
リ104以外にテスト印刷用のフレームメモリ123と
、テスト印刷を行なうためのテスト印刷制御部131を
設け、テスト印刷時にテスト印刷制御部131が、テス
ト印刷用フレームメモリ123を用いることにより中断
状態の描画データを退避することなしにテスト印刷が行
なえるようにしたものである。
Next, the fourth embodiment of the present invention will be described in Section 8, which shows the entire operation sequence. This will be explained using II. In this embodiment, in addition to the frame memory 104 shown in the first, second, and third embodiments, a frame memory 123 for test printing and a test print control section 131 for performing test printing are provided. During test printing, the test printing control unit 131 uses the test printing frame memory 123 so that the test printing can be performed without saving drawing data in an interrupted state.

印刷中断状態においてテスト印刷が指示さ九た場合(8
01)、コマンド制御部112がテスト印刷制御部1き
1にテスト印刷指示を行なう、指示を受は九テスト印刷
制御部131は、テスト印刷用フレームメモリ123に
描画を行なう(8o2.803)。描画するデータは、
テスト印刷制御部131に予め用意しておく8通信コマ
ンド制御部10′9により描画の出来ヒがっているテス
ト印刷用フレームメモリ123についてのテスト印刷開
始指示をプリンタ制御部105に対して行なう(804
)、プリンタ制御部105においては、通信制御部11
7からプリンタコマンド制御部116に対しテスト印刷
が指示される。プリンタコマンド制御部116は、プリ
ンタエンジン制御部115にテスト印刷を指示する。プ
リンタエンジン制御部115は、データリード部114
にテスト印刷用フレームメモリ123からデータを読出
すように指示を行なう0本データリード部114が、読
出した描画データは(807)、プリンタエンジン部1
02に送出される。プリンタエンジン部102は、受信
した描画データに従って、印刷を行なう、全ての描画デ
ータの送出を完了した時点で、プリンタ制御部105は
、アイドル状態となったことをテスト印刷制御部131
に通知す’6 (805)。通知を受けたテスト印刷制
御部131は、テストデータを全てテスト用フレームメ
モリ123に描画完了していた場合、テスト印刷を終了
するためプリンタ制御部105に印刷終了を通知しく8
06)、印刷を終了する。以上のように処理することに
より中断中の描画データを退避することなしにテスト印
刷を行なうことができる。
If test printing is instructed while printing is interrupted (8
01), the command control unit 112 issues a test print instruction to the test print control unit 1, and upon receiving the instruction, the test print control unit 131 draws in the test print frame memory 123 (8o2.803). The data to be drawn is
The 8 communication command control unit 10'9 prepared in advance in the test print control unit 131 issues an instruction to the printer control unit 105 to start test printing for the test print frame memory 123 in which drawing has been completed ( 804
), in the printer control unit 105, the communication control unit 11
7 instructs the printer command control unit 116 to perform test printing. The printer command control unit 116 instructs the printer engine control unit 115 to perform test printing. The printer engine control section 115 is connected to the data read section 114.
The drawing data read out by the data read section 114, which instructs the printer engine section 1 to read data from the test printing frame memory 123 (807), is sent to the printer engine section 1.
Sent on 02. The printer engine unit 102 performs printing according to the received drawing data. When the sending of all the drawing data is completed, the printer control unit 105 informs the test print control unit 131 that the printer is in an idle state.
'6 (805). When the test print control unit 131 that has received the notification has completed drawing all the test data in the test frame memory 123, it notifies the printer control unit 105 of the end of printing to end the test print.
06), Finish printing. By performing the processing as described above, test printing can be performed without saving the drawing data that is currently being interrupted.

テスト印刷時のための前記描画データはテスト印刷制御
部131の内部に持たせたが、テスト印刷用のコマンド
バッファやコマンドを用意して。
Although the drawing data for test printing is stored inside the test printing control section 131, a command buffer and commands for test printing are prepared.

ホストコンピュータから与えてもよい。It may also be given from the host computer.

上記説明では、テスト印刷の指示をホストコンピュータ
から行なっているが、プリンタのユーザ操作パネル等か
らの指示でも同様に実現することが出来る。また中断状
態でのテスト印刷を説明したが、印刷実行状態でも、テ
スト印刷指示を受けた時点で印刷を中断し、上記処理を
行なってもよい。
In the above description, the test printing instruction is given from the host computer, but it can be similarly achieved by giving the instruction from the printer's user operation panel or the like. Furthermore, although test printing in an interrupted state has been described, even in a printing execution state, printing may be interrupted when a test printing instruction is received, and the above process may be performed.

上記各実施例は、連続用紙を用いて印刷するプリンタに
ついて説明したが、カットシート用紙についてページ単
位で印刷を行なうプリンタにおいてもフレームメモリの
管理を行単位からページ単位とすることにより同様に実
現することが出来る。
Although each of the above embodiments has been described with respect to a printer that prints using continuous paper, the same can be realized in a printer that prints on cut sheet paper page by page by changing frame memory management from line by line to page by page. I can do it.

プリンタコントローラ100は、RAM、ROM、LS
1.−環IC等を用いて実施し、プリンタエンジン部1
02は、シャトルプリンタ印刷メカニズム、ワイヤドツ
トプリンタ印刷メカニズム、電子写真印刷メカニズム等
で構成する。
The printer controller 100 includes RAM, ROM, LS
1. - Implemented using ring IC etc., printer engine section 1
02 is composed of a shuttle printer printing mechanism, a wire dot printer printing mechanism, an electrophotographic printing mechanism, etc.

第91!Iを用いてプリンタコントローラ100のハー
ドウェア構成を説明する。
91st! The hardware configuration of the printer controller 100 will be explained using I.

プリンタコントローラ100は、CPUバス904、ホ
スト通信コントローラ902゜CPU903、ROM9
06、イメージ回転用LSI905.RAM908.サ
ブCPU918゜ユーザ操作パネル917、サブCPU
用ROM916、及びプリンタエンジンコントローラ9
09からなる。
The printer controller 100 includes a CPU bus 904, a host communication controller 902, a CPU 903, and a ROM 9.
06, Image rotation LSI905. RAM908. Sub CPU918゜User operation panel 917, sub CPU
ROM916, and printer engine controller 9
Consists of 09.

(以下、 余白) CPUバス904は、CPU904の各種入出カイ6号
(アドレス信号、データ信号、その他の制御信号)から
なる。
(Hereinafter, blank) The CPU bus 904 consists of various input/output signals (address signals, data signals, and other control signals) of the CPU 904.

CPU903は本CPUバス904を介して、902.
905.906.908.909等の周辺コントローラ
や906.908等のメモリと入出力を行なう。
The CPU 903 communicates with 902.
It performs input/output with peripheral controllers such as 905, 906, 908, and 909 and memories such as 906.908.

ホスト通信コントローラ902は、プリンタコントロー
ラ100がホストコンピュータ901と通信を行なうた
めのコントローラである。本通信(ホストI/Fと呼ぶ
)の物理I/Fとしては、S CS I (Small
 computer System Interfac
e)、R5232C,R5422,GP−IB(Gen
eral Pupose InterfaceBus)
 、セントロニクス、HDLC(High−Level
 DataLink Control)等を用い、使用
する物理I/Fの種類に応じて適切なものを実装する。
The host communication controller 902 is a controller for the printer controller 100 to communicate with the host computer 901. The physical I/F for this communication (referred to as host I/F) is SCS I (Small
computer system interface
e), R5232C, R5422, GP-IB (Gen
eral Pupose Interface Bus)
, Centronics, HDLC (High-Level
DataLink Control) etc. to implement an appropriate one depending on the type of physical I/F to be used.

ROM906には、プリンタコントローラの初期化立上
げプログラム(I P L (Inter Progr
amLoading )プログラムとも呼ぶ)を格納す
る。
The ROM 906 contains a printer controller initialization start-up program (IPL (Inter Progr.
amLoading (also called program).

RAM908には、(i)本プリンタコントローラの制
御プログラム、(ii)文字フォント、(iii)コマ
ンドバッファ部メモリ、(iv)フレームメモリ部メモ
リ、(v)タスク管理テーブル、フレームメモリ管理テ
ーブル、プリンタ管理テーブル等の各種管理テーブル、
その他を格納する。
The RAM 908 contains (i) the control program for this printer controller, (ii) character fonts, (iii) command buffer section memory, (iv) frame memory section memory, (v) task management table, frame memory management table, and printer management. Various management tables such as tables,
Store other things.

これらのうち(i)と(ii)は前記IPLプログラム
にてホストコンピュータ901からダウンロードするこ
とにより、格納する。また(i)と(ii) ハRAM
908ニ格納せず、ROM906に予め格納しておいて
も良い。
Of these, (i) and (ii) are stored by being downloaded from the host computer 901 using the IPL program. Also (i) and (ii) ha RAM
It may be stored in advance in the ROM 906 instead of being stored in the ROM 908 .

イメージ同転用LSI905はCP U 903 L、
−よる前記フレームメモリ部メモリへの文字やイメージ
の描画処理において、CPU903の指示に従い描画出
力の回転処理を行なう。
The LSI 905 for image conversion is CPU 903 L,
- In the process of drawing characters and images to the frame memory unit memory, the drawing output is rotated according to instructions from the CPU 903.

なお、描画処理を高速にするため、浮動小数点演算を行
なう浮動小数点演算プロセッサを搭載しても良いし、イ
メージ回転用LSI905を省略して、CPU903に
より処理を行なわせることもできる。
Note that in order to speed up the drawing process, a floating point arithmetic processor that performs floating point arithmetic may be installed, or the image rotation LSI 905 may be omitted and the processing may be performed by the CPU 903.

サブCPU918は、CPU903の指示に従い、ユー
ザ操作パネル917やプリンタエンジン部102にある
LED表示の制御等を行なう。
The sub CPU 918 controls the user operation panel 917 and the LED display on the printer engine unit 102 according to instructions from the CPU 903 .

サブCPU用ROM9164.−は、サブCPUが前記
処理を行なうための制御プログラムを格納する。プリン
タエンジンコントローラ909は、RAM908の内容
(通常フレームメモリ部の内容)のプリンタエンジン部
102への読出し処理や制御(印刷が可能になったこと
の検出、問い合わせ、印刷指示等)とRAM908の制
御(リフレッシュ等)を行なう。
ROM9164 for sub CPU. - stores a control program for the sub CPU to perform the above processing. The printer engine controller 909 performs read processing and control of the contents of the RAM 908 (the contents of the normal frame memory section) to the printer engine section 102 (detection that printing is possible, inquiries, print instructions, etc.), and control of the RAM 908 ( refresh, etc.).

プリンタコントローラ100は、プリンタエンジン部1
02との間で、プリンタエンジンコントローラ909が
信号線915を介し、サブCPU912は信号線914
を介し、プリンタエンジンI/Fにより通信を行なう、
プリンタエンジン部102に対して、RAM908のフ
レームメモリ部から読出した内容の送信、及びプリンタ
エンジン部102に対する問い合わせや印刷を行なうた
めの指示、プリンタエンジン部102からの状態受信等
の送受信は、前記信号線915を介して行なう、信号線
914は、サブCPU912からプリンタエンジン部1
02に対してのLED表示指示等の送受信を行なう。
The printer controller 100 includes a printer engine unit 1
02 via a signal line 915, and the sub CPU 912 via a signal line 914.
Communication is performed via the printer engine I/F,
Transmission of contents read from the frame memory section of the RAM 908 to the printer engine section 102, inquiries to the printer engine section 102, instructions for printing, reception of status from the printer engine section 102, etc. are performed using the above-mentioned signals. A signal line 914 is connected from the sub CPU 912 to the printer engine unit 1 via a line 915.
Sends and receives LED display instructions, etc. to and from 02.

次に第1図の構成例と前記ハードウェア構成の対応とし
て、CPU903は印刷データ制御部103の機能を実
行し、プリンタエンジンコントローラ909とサブCP
U91Bはプリンタ制御部105の機能を実行する。
Next, as a correspondence between the configuration example of FIG. 1 and the hardware configuration described above, the CPU 903 executes the function of the print data control unit 103, and the CPU 903 executes the functions of the print data control unit 103 and
The U91B executes the functions of the printer control unit 105.

以上のハードウェアを用いることにより、プリンタコン
トローラ100を実現することが出来る。
By using the above hardware, the printer controller 100 can be realized.

以上説明した各実施例においては、紙面1面分に相当す
るフルページバッファを想定して印刷制御を行った。
In each of the embodiments described above, print control was performed assuming a full page buffer corresponding to one page of paper.

しかし、ラインモード印刷(行、桁単位の座標系を用い
て、文字、図形、イメージを紙面の上から下の方向へ描
画、印刷するモード)において。
However, in line mode printing (a mode in which characters, figures, and images are drawn and printed from the top to the bottom of the paper using a coordinate system in units of lines and columns).

ページバッファへの文字等の描画書込みよりページバッ
ファからプリンタエンジンへの読出しが十分速いため、
フルページバッファのうち数行分以外は空きとなってい
る。従って、メモリコストが高いのに、フルページバッ
ファメモリの使用効率歯必ずしも高くなかった。
Reading from the page buffer to the printer engine is much faster than writing drawings such as characters to the page buffer.
All but a few lines of the full page buffer are empty. Therefore, although the memory cost is high, the utilization efficiency of full page buffer memory has not necessarily been high.

また1倍角印字の場合、第12図に示すように印刷制御
情報エリア(各行の描画データエリアの内容を反映した
プリンタヘッドスキップ命令等のプリンタエンジンの制
御コードを記入)への書込み方法について十分考慮して
いないため、誤った印刷結果が得られるおそれがあった
。つまり、第12図において、第0行への倍角描画(2
1)の結果、第n−1行用の印刷制御情報エリア22を
更新すべきなのにしていないため、第12図の第n−1
行の部分には何も印刷されないという問題が生じていた
In addition, in the case of single-width printing, as shown in Figure 12, give due consideration to the writing method to the print control information area (enter printer engine control codes such as printer head skip commands that reflect the contents of the drawing data area of each line). As a result, there was a risk of incorrect printing results being obtained. In other words, in Figure 12, double-angle drawing (2
As a result of 1), the print control information area 22 for the n-1th line should not be updated, so the n-1st line in FIG.
The problem was that nothing was printed on the lines.

第13図を参照しながら、本実施例による印刷制御装置
の動作の概栗を説明する。印刷#御装置は以下のように
動作する。
An overview of the operation of the print control device according to this embodiment will be explained with reference to FIG. The print control device operates as follows.

(1)描画処理部から部分ページバッファ制御部内の獲
得/開放手段に対し、部分ページバッファを獲得要求。
(1) The drawing processing unit requests the acquisition/release means in the partial page buffer control unit to acquire a partial page buffer.

(2)部分ページバッファ制御内の獲得/解放手段によ
る、空いているある一つの部分ページバッファの獲得。
(2) Acquisition of one vacant partial page buffer by the acquisition/release means within the partial page buffer control.

(3)描画処理部による、獲得した該部分ページバッフ
ァへの書込み0本書込みでは、前記描画データエリアと
ともに、前記制御情報エリア及び前記印刷制御情報エリ
アへの書込みも行う。
(3) When the drawing processing unit writes 0 to the acquired partial page buffer, it also writes to the control information area and the printing control information area in addition to the drawing data area.

(4)前記部分プリンタ制御部内の部分ページバッファ
読出し手段による1部分ページバッファ内データの読出
し。
(4) Reading data in one partial page buffer by the partial page buffer reading means in the partial printer control section.

(5)前記プリンタ制御部による部分ページバッファの
読出し終了検出、続いて、部分ページバッファ内の獲得
/解放手段に対し、部分ページバッファを解放要求。
(5) The printer control unit detects the end of reading the partial page buffer, and then requests the acquisition/release means in the partial page buffer to release the partial page buffer.

(6)部分ページバッファ制御部内の獲得/解放手段に
よる、読出しの終了した該部分ページバッファの解放。
(6) Release of the partial page buffer that has been read by the acquisition/release means in the partial page buffer control unit.

以十の動作により、小容量の部分ページバッファを用い
て、前記部分ページバッファ部に対する、描画処理部に
よる描画書込み処理とプリンタ制御部による印刷読出し
処理を並行処理することができる。
By the above-mentioned operations, it is possible to perform drawing writing processing by the drawing processing section and print reading processing by the printer control section in parallel with respect to the partial page buffer section using a small-capacity partial page buffer.

従って、メモリの使用量と使用コストを下げ、使用効率
を高めることができる。また前記並行処理の実現により
、印刷スループットを高めることができる。
Therefore, memory usage and usage cost can be reduced and usage efficiency can be increased. Furthermore, by realizing the parallel processing, printing throughput can be increased.

また、部分ページバッファ内の前記制御情報エリアに、
前述のa画データ有効フラグを設けた場合、描画処理部
とプリンタ゛制御部は次のように動作させる。
In addition, in the control information area in the partial page buffer,
When the above-mentioned a-image data valid flag is provided, the drawing processing section and the printer control section operate as follows.

(3)″ [描画処理部の動作] 前記部分ページバッファ内描画データエリアへの描画書
込みの後、該部分ページバッファを構成する全タスクに
ついて前記描画データ有°効フラグを有効(ON)に設
定する。
(3)'' [Operation of the drawing processing unit] After writing the drawing to the drawing data area in the partial page buffer, set the drawing data valid flag to valid (ON) for all the tasks that make up the partial page buffer. do.

続いて、前記プリンタ制御部によるプリンタエンジン部
への読出しが停止状態であれば、本読出しを起吻する。
Subsequently, if the readout to the printer engine section by the printer control section is in a stopped state, the main readout is started.

なお1本読出しは実施例にて後述するプリンタエンジン
コントローラと呼ぶ周辺コントローラにより実行する。
Note that reading one line is executed by a peripheral controller called a printer engine controller, which will be described later in the embodiment.

(4)’rプリンタ制御部の動作] プリンタ制御部は読出し対象の部分ページバッファを構
成する各ラスタについて、前記描画データ有効フラグが
ONか判定する。ONであれば、該ラスク内の描画デー
タをプリンタエンジン部へ読出した後、該描画データ有
効フラグを無効(OFF)に設定する。
(4) Operation of Printer Control Unit] The printer control unit determines whether the drawing data valid flag is ON for each raster forming the partial page buffer to be read. If ON, the drawing data valid flag is set to invalid (OFF) after reading the drawing data in the rask to the printer engine section.

また、前記描画データ有効フラグがOFFであれば本プ
リンタ制御部によるプリンタエンジン部への読出しくプ
リンタエンジンコントローラにより実行)を停止状態に
する。
Further, if the drawing data valid flag is OFF, reading to the printer engine section by the printer control section (executed by the printer engine controller) is stopped.

以上のように描画データ有効フラグを用いることにより
、部分ページバッファについての描画書込みと印刷読出
しを、同期をとりながら並行処理することができる。
By using the drawing data valid flag as described above, drawing writing and printing reading for the partial page buffer can be processed in parallel while being synchronized.

また前述のように、前記第1の部分ページバッファへの
倍角描画に伴ない、前記第2の部分ページバッファ上の
印刷制御情報エリアを再生成するようにした。なお、元
の印刷制御情報においては、描画データがない旨記述さ
れているので、印刷が行われていなかった部分(空白エ
リア、第12図の22)について、印刷制御情報エリア
を再生成するようにした。従って、再生成した印刷制御
情報エリアには描画データがある旨記述されているので
、23の部分を印刷可能となる。つまり、倍角印字を支
障なく行える。
Furthermore, as described above, the print control information area on the second partial page buffer is regenerated in conjunction with double-angle drawing on the first partial page buffer. Note that the original print control information states that there is no drawing data, so it is necessary to regenerate the print control information area for the part where printing was not performed (blank area, 22 in Figure 12). I made it. Therefore, since the regenerated print control information area describes that there is drawing data, the portion 23 can be printed. In other words, double-width printing can be performed without any problem.

以下、具体的に本発明の第5実施例を説明する。A fifth embodiment of the present invention will be specifically described below.

初めに第14図を用いて、印刷制御装置!100のハー
ドウェア構成を説明する。この構成は、前述した第9図
の構成と同様である。
First, using Figure 14, print control device! The hardware configuration of 100 will be explained. This configuration is similar to the configuration shown in FIG. 9 described above.

印刷制御装置100は、CPUバス904.ホXト通f
fi:Iントo−ラ902.CPU903゜ROM90
6.サブCPU918.ユーザ操作パネル917.プリ
ンタエンジンコントローラ909、及びRAM908か
らなる。
The print control device 100 has a CPU bus 904. Hot X Totsu f
fi:Intoler902. CPU903゜ROM90
6. Sub CPU918. User operation panel 917. It consists of a printer engine controller 909 and a RAM 908.

CPUバス904は、CPU903の各種入出力信号(
アドレス信号、データ信号、その他の制御信号)からな
る。
The CPU bus 904 carries various input/output signals (
address signals, data signals, and other control signals).

CPU903は本CPUバス101を介して、902.
918,909等の周辺コントローラや906.908
等のメモリと入出力を行う。
The CPU 903 uses the CPU 902 .
Peripheral controllers such as 918 and 909 and 906 and 908
Performs memory and input/output.

ホスト通信コントローラ902は、印刷制御装置100
がホストコンピュータ101と通信を行うためのコント
ローラである。本通信(ホストI/Fと呼ぶ)の物理I
/Fとしてはscsr(Small Con+pute
r System Interface)、R5232
C。
The host communication controller 902 is the print control device 100
is a controller for communicating with the host computer 101. Physical I/F for this communication (referred to as host I/F)
/F is scsr (Small Con+pute
r System Interface), R5232
C.

R5422,G P −I B (General P
urpose InterfaceBus) 、セント
ロニクス、)(D L C(High LevelDa
ta Link Control)等を用い、使用する
物理工/Fの種類に応じて本コントローラ902のハー
ドウェア論理として適切なものを実装する。
R5422, G P -I B (General P
urpose InterfaceBus), Centronics, )(DLC(High LevelDa)
ta Link Control), etc., to implement appropriate hardware logic for the controller 902 depending on the type of physics/F used.

ROM906には印刷制御装置100の初期化立十げプ
ログラム(I P L (Initial Progr
amLoading)プログラムとも呼ぶ)と文字フォ
ントの一部を格納する。
The ROM 906 stores an initialization program (IPL) for the printing control device 100.
amLoading (also called program) and part of the character font.

RAM908には(i)本印刷制御装!!1o。RAM908 contains (i) main printing control device! ! 1 o.

の制御プログラム、(ii)文字フォントの残り、(i
ii)コマンドバッファ部メモリ、(iv)ページバッ
ファ部メモリ、及び(V)ページバッファ管理テーブル
、タスク管理テーブル等の各種管理テーブル、その他を
格納する。これらのうち(i)と(ii)は前記IPL
プログラムにてホストコンピュータ101からダウンロ
ードすることにより、格納する。また、(i)と(ii
)はRAM908に格納せず、ROM906に予め格納
しておいてもよい。
control program, (ii) the rest of the character font, (i
ii) command buffer unit memory, (iv) page buffer unit memory, and (V) various management tables such as a page buffer management table and a task management table, and others. Of these, (i) and (ii) are the IPL
It is stored by downloading it from the host computer 101 using a program. Also, (i) and (ii)
) may not be stored in the RAM 908 but may be stored in the ROM 906 in advance.

また逆にROM906には文字フォントを一切格納せず
、すべてRAM908に格納してもよい。
Conversely, all character fonts may be stored in the RAM 908 without storing any character fonts in the ROM 906.

サブCPU918は、CPU903の指示に従い、ユー
ザ操作パネル917やプリンタエンジン部102との間
で入出力処理を行う。
The sub CPU 918 performs input/output processing with the user operation panel 917 and the printer engine unit 102 according to instructions from the CPU 903 .

プリンタエンジンコントローラ909はRAM908の
内容(通常後述する部分ページバッファ部の内容)の後
述する形式変換とプリンタエンジン部102への読出し
処理を行う0本読出し処理は内蔵のpMA (Dire
ct Memory Access)機能を用いて行う
1紙面の一部分に相当する一定量分のデータの該部分ペ
ージバッファからの読出しが終了した時点で、プリンタ
エンジンコントローラ909がCPU903に対し割込
み信号(CPU/<ス904内の信号の一部)をアサー
トし、CPUによる部分ページバッファ読出し終了割込
み処理を起動する。
The printer engine controller 909 uses a built-in pMA (Dire
When reading a certain amount of data corresponding to a portion of one page from the partial page buffer using the ct Memory Access) function, the printer engine controller 909 sends an interrupt signal (CPU 904) to activate partial page buffer read end interrupt processing by the CPU.

印刷制御装!100はプリンタエンジン部102との間
で、サブCPU918が信号線914を介し、プリンタ
エンジンコントローラ909が信号線915を介して、
プリンタエンジンI/Fと呼ぶI/Fに従って1通信を
行う。
Printing control system! 100 is connected to the printer engine unit 102, with a sub CPU 918 via a signal line 914, and a printer engine controller 909 via a signal line 915.
One communication is performed according to an I/F called printer engine I/F.

プリンタエンジンコントローラ909は、信号線915
を用いて、プリンタエンジン部102がシャトルプリン
タの場合には、部分ページバッファ部の内容を後述する
形式変換を行った後、プリンタエンジン部102へ出力
する。またプリンタエンジン部102がレーザプリンタ
の場合には、プリンタエンジンコントローラ909は、
信号線915を用いて、部分ページバッファ部の内容を
パラレルシリアル変換した後、プリンタエンジン部10
2へ出力する。
The printer engine controller 909 connects the signal line 915
If the printer engine unit 102 is a shuttle printer, the content of the partial page buffer unit is output to the printer engine unit 102 after format conversion, which will be described later. Further, when the printer engine unit 102 is a laser printer, the printer engine controller 909
After converting the contents of the partial page buffer section from parallel to serial using the signal line 915, the printer engine section 10
Output to 2.

信号線914は、プリンタエンジン部がシャトルプリン
タの場合には、プリンタエンジン部からページ先頭位置
を示すための信号等を受信するために用いる。またプリ
ンタエンジン部102がレーザプリンタの場合には、本
信号線914は、サブCPU918がプリンタエンジン
部102へ問合せや指示のためのコマンドを送信し、プ
リンタエンジン部102から応答ステータスを受信する
ためのコマンド、ステータス送受信信号及び、前記部分
ページバッファ部の内容のプリンタエンジン部への読出
し手順を制御するための制御信号を搬送するために用い
る。
The signal line 914 is used to receive a signal for indicating the page top position from the printer engine when the printer engine is a shuttle printer. When the printer engine unit 102 is a laser printer, the main signal line 914 is used by the sub CPU 918 to send commands for inquiries and instructions to the printer engine unit 102 and to receive response statuses from the printer engine unit 102. It is used to convey commands, status transmission/reception signals, and control signals for controlling the procedure for reading out the contents of the partial page buffer section to the printer engine section.

なお、プリンタエンジン部102がレーザプリンタの場
合、サブCPU918はプリンタエンジン部102への
印刷指示が可能になったことを検出するとともに、検出
した時点でCPU903に対し割込み信号をアサートし
、C0U903による印刷指示許可割込み処理を起動す
る。
Note that when the printer engine unit 102 is a laser printer, the sub CPU 918 detects that it is possible to issue a print instruction to the printer engine unit 102, and at the time of detection, asserts an interrupt signal to the CPU 903, and prints by the C0U 903. Start instruction permission interrupt processing.

次に本発明による印刷制御装置100の機能を第11図
を用いて説明する0本印刷制御装置100は、第14図
のCPU903をその機能ブロックとして表わしたもの
であり、カーネル部113と各種デバイスドライバ、つ
まりページバッファ制御部118.プリンタ制御部10
5.ホスト通信制御部106b、パネル制御部119及
びコマンドバッファ部t 07−ペーシバツフア部14
、タスク処理部13を有する。
Next, the functions of the print control device 100 according to the present invention will be explained using FIG. 11.The zero print control device 100 represents the CPU 903 in FIG. 14 as its functional block, and includes a kernel section 113 and various devices. Driver, that is, page buffer control unit 118. Printer control unit 10
5. Host communication control unit 106b, panel control unit 119, and command buffer unit t07-pace buffer unit 14
, and a task processing unit 13.

カーネル部113は各種5VC(スーパバイザコールの
略)処理のメインルーチン、各種割込み処理のメインル
ーチン、タスク制御部12.及びタイマ制御部125か
らなる。ここで、各種SvCとはタスク制御、タイマ制
御、ページバッファ制御、プリンタ制御、ホスト通信制
御、パネル制御のためのサービス機能のことである。カ
ーネル部はSvC命令をCPU命令として受付けると、
その要因をSvCの入力パラメータに基づき解析、識別
した後、個々のSvC処理を各制御部12.125,1
18,105,106b。
The kernel unit 113 includes main routines for various 5VC (abbreviation for supervisor call) processing, main routines for various interrupt processing, and the task control unit 12. and a timer control section 125. Here, the various SvCs are service functions for task control, timer control, page buffer control, printer control, host communication control, and panel control. When the kernel part accepts the SvC instruction as a CPU instruction,
After analyzing and identifying the cause based on the SvC input parameters, each control unit 12, 125, 1 performs individual SvC processing.
18, 105, 106b.

119内の個別SvC処理ルーチンを起動して実行させ
る。
The individual SvC processing routine in 119 is activated and executed.

また、各種割込みは、タイマハードウェア124からの
タイマ割込み、プリンタエンジンコントローラ115か
らの部分ページバッファ制御用割込み、プリンタエンジ
ンコントローラ115及びサブCPUからのプリンタ制
御用割込み、ホスト通信コントローラ106aからのホ
スト通信制御用割込み、サブCPU916からのパネル
制御用割込みのことであり、カーネル部113は割込み
要因を解析、識別した後、個々の割込み処理を各制御部
125,118,105,106b。
Various interrupts include timer interrupts from the timer hardware 124, partial page buffer control interrupts from the printer engine controller 115, printer control interrupts from the printer engine controller 115 and sub CPU, and host communication from the host communication controller 106a. Control interrupts refer to panel control interrupts from the sub CPU 916, and after the kernel unit 113 analyzes and identifies the cause of the interrupt, each control unit 125, 118, 105, and 106b processes each interrupt.

119内の個別割込み処理ルーチンを起動して実行させ
る。
The individual interrupt processing routine in 119 is activated and executed.

タスク制御部12はタスク管理テーブル部17を参照し
ながら、タスク制御用マクロ機能を本装置の各部分の起
動要求(発行)に応じて実行する。
The task control unit 12 refers to the task management table unit 17 and executes a task control macro function in response to activation requests (issues) for each part of the device.

起動要求はタスク処理部13内の描画タスク処理部13
1と各種デバイスドライバ(118゜105.106b
、119等)が発行する。
The startup request is made by the drawing task processing unit 13 in the task processing unit 13.
1 and various device drivers (118°105.106b
, 119, etc.).

タイマ制御部125は、タイマハードウェア124を用
いて、各種事象の終了監視を行なう。
The timer control unit 125 uses the timer hardware 124 to monitor the completion of various events.

例えば、排紙完了(カットシートタイプの印刷用紙の排
紙終了)を監視する。タイマ制御部125による終了監
視は、そのためのマクロを本装置の各部分131,13
2,118,105゜106b、119が発行し、起動
要求することにより行なう。
For example, the completion of paper ejection (end of paper ejection of cut sheet type printing paper) is monitored. Termination monitoring by the timer control unit 125 uses macros for each part 131 and 13 of this device.
2,118,105° 106b, 119 issues the activation request.

各種デバイスドライバ118,105゜106b、11
9は以下の機能を持つ。
Various device drivers 118, 105° 106b, 11
9 has the following functions.

部分ページバッファ制御部118は、後で説明する部分
ページバッファリザーブ、部分ページノくラフアフリ−
等のSvCを用意して、部分ページバッファ管理テーブ
ル部18を参照しながら、Nページからなる部分ページ
バッファの資源管理。
The partial page buffer control unit 118 controls partial page buffer reserve and partial page rough free, which will be explained later.
Resource management of a partial page buffer consisting of N pages is performed while referring to the partial page buffer management table section 18.

つまり空き状態の管理を行う。In other words, it manages the free state.

プリンタ制御部105は、印刷指示等のSvCを用意し
て、プリンタエンジン部102の資源管理(空き状態管
理)とプリンタエンジン部102との入出力制御を行う
The printer control unit 105 prepares SvC such as print instructions, and performs resource management (vacancy status management) of the printer engine unit 102 and input/output control with the printer engine unit 102 .

タスク処理部113内のタスクは、プリンタ制御用Sv
Cを発行することにより、プリンタエンジン部102に
対し、資源管理機能又は入出力制御機能の処理を依頼す
る。
The task in the task processing unit 113 is the printer control Sv.
By issuing C, the printer engine unit 102 is requested to perform the resource management function or the input/output control function.

また、プリンタ制御部118は、プリンタエンジンコン
トローラ115からの割込みに従って、部分ページバッ
ファ読出し終了割込み処理と呼ぶ個別割込み処理を行う
Further, the printer control unit 118 performs an individual interrupt process called a partial page buffer read end interrupt process in response to an interrupt from the printer engine controller 115.

タスク処理部13内のタスクは上記部分ページバッファ
制御用SvCを発行することにより、部分ページバッフ
ァ部14の制御を水部分ページバッファ制御部118に
依頼する。
The task in the task processing unit 13 requests the partial page buffer control unit 118 to control the partial page buffer unit 14 by issuing the partial page buffer control SvC.

ホスト通信制御部106bはホスト通信コントローラ1
06aを制御するための個別SvC処理と個別割込み処
理とからなる。
The host communication control unit 106b is the host communication controller 1
It consists of individual SvC processing and individual interrupt processing for controlling 06a.

パネル制御部119はサブCPU916を介してユーザ
操作パネル121を制御するための個別SvC処理と個
別割込み処理とからなる。
The panel control unit 119 includes individual SvC processing and individual interrupt processing for controlling the user operation panel 121 via the sub CPU 916.

部分ページバッファ制御部118およびプリンタ制御部
105を設けた効果は以下の3項目である。
The effects of providing the partial page buffer control unit 118 and the printer control unit 105 are as follows.

(1)部分ページバッファ部14とプリンタエンジン部
102の資源管理機能、それらとの入出力制御機能をタ
スク処理部13と独立させることができる。つまり、部
分ページバッファ部14とプリンタ(102と916と
115)との管理用にページバッファ制御部118とペ
ージバッファ管理テーブル部18とプリンタ制御部10
5とを用意したので、ページバッファ部とプリンタをC
PUやタスクの管理と独立して木目細かく管理すること
ができる。
(1) The resource management functions of the partial page buffer section 14 and the printer engine section 102 and the input/output control functions therebetween can be made independent of the task processing section 13. That is, the page buffer control section 118, the page buffer management table section 18, and the printer control section 10 are used for managing the partial page buffer section 14 and printers (102, 916, and 115).
5, so I set the page buffer section and printer to C.
It can be managed in detail independently from the management of PUs and tasks.

(2)(1)により、異機種のプリンタエンジン部10
2を接続したり、部分ページバッファ部14の容量、各
部分ページバッファのサイズ、部分ページバッファ総置
数N等の仕様を変える場合、タスク処理部13の内容は
変えずに、部分ページバッファ制御部118やプリンタ
制御部105の必要箇所のみを変更すればよい。
(2) Due to (1), the printer engine unit 10 of a different model
2 or when changing the specifications such as the capacity of the partial page buffer unit 14, the size of each partial page buffer, the total number N of partial page buffers, etc., the partial page buffer control is performed without changing the contents of the task processing unit 13. It is only necessary to change the necessary parts of the unit 118 and the printer control unit 105.

(3)タスク処理部13の処理はCPUをタスクレベル
(割込みレベルは最低値1)かつシステムモードで行い
、カーネル部113と各種デバイスドライバ118,1
05,106b、119の処理はCPUをタスクレベル
より上位の割込みレベルm(m>1)かつユーザモード
で行っている。
(3) The processing of the task processing unit 13 is performed by the CPU at the task level (the lowest interrupt level is 1) and in the system mode, and the kernel unit 113 and various device drivers 118, 1
Processes 05, 106b, and 119 are performed by the CPU at an interrupt level m (m>1) higher than the task level and in user mode.

従って、各種制御テーブル17.18等の操作はタスク
処理部13が操作できないように排他制御することがで
き、本印刷装!!100を制御する制御プログラムの信
頼性を向上させることができる。 次に本発明の特徴の
一つである部分ページバッファ部14の構成を説明する
。部分ページバッファ部14は通常の紙サイズA4.B
4等の1ページの一部分に相当する小容量メモリ(部分
ページバッファと呼ぶ)の複数個の集りとして、第15
図(a)のように構成する。すべての部分ページバッフ
ァ(1)141.(n)142.・=、(N)143の
容量の合計が、前述の通常紙サイズA4.B4等より小
さくても、印刷処理を高スループツトで行える。
Therefore, the operations of the various control tables 17, 18, etc. can be exclusively controlled so that the task processing unit 13 cannot operate them, and this printing system! ! The reliability of the control program that controls 100 can be improved. Next, the configuration of the partial page buffer unit 14, which is one of the features of the present invention, will be explained. The partial page buffer section 14 is a normal paper size A4. B
The 15th
It is configured as shown in Figure (a). All partial page buffers (1) 141. (n)142.・=, (N) The total capacity of 143 is the above-mentioned regular paper size A4. Even if it is smaller than B4 or the like, printing processing can be performed with high throughput.

次に、前記部分ページバッファ部14を管理するための
部分ページバッファ管理テーブル部18の内容を説明す
る。
Next, the contents of the partial page buffer management table section 18 for managing the partial page buffer section 14 will be explained.

第16図(a)に本部分ページバッファ管理テーブル部
18の全体構成を示す。本構成のように、全ページバッ
ファ用共通情報61により1次に描画タスクが書き込む
べき部分ページバッファNo。
FIG. 16(a) shows the overall configuration of this partial page buffer management table unit 18. As in this configuration, the partial page buffer number to which the primary drawing task should write is determined by the all-page buffer common information 61.

(次層描画部分ページバッファNo、61aと呼ぶ)現
在印刷出力中の部分ページバッファNo、61b。
(referred to as next layer drawing partial page buffer No. 61a) Partial page buffer No. 61b currently being printed.

部分ページバッファ1の先頭アドレス61c、1つの部
分ページバッファサイズ(バイト単位)61d1部分ペ
ージバッファ総面数N61e等を記述する。
The starting address 61c of the partial page buffer 1, the size of one partial page buffer (in bytes) 61d, the total number of partial page buffers N61e, etc. are described.

また1部分ページバッファ1用情報621部分ページバ
ッファ2用情報63.・・・9部分ページバッファN用
情報64を設け、62から64では各部分ページバッフ
ァに関するタスク関連情報621を記述した0本タスク
関連情報621の内容を、第161jf(b)に示す、
タスク関連情報621では、まず各部分ページバッファ
の描画・印刷状態621−aを、第16pil(c)に
示す空き(描画可能)、描画中、印刷可能(有効)、印
刷中のいずれかとして記述する。さらに1部分ページバ
ッファ使用状態621−b (本部分ページバッファを
使用中のタスク番号)と各部分ページバッファ用空き待
ち行列の根のポインタ621−〇もここに用意した。
Also, 1 partial page buffer 1 information 621 partial page buffer 2 information 63. ...9 information 64 for partial page buffer N is provided, and 62 to 64 describe task related information 621 regarding each partial page buffer.The contents of 0 pieces of task related information 621 are shown in No. 161jf(b).
In the task related information 621, first, the drawing/printing status 621-a of each partial page buffer is described as either empty (drawable), drawing, printable (valid), or printing as shown in the 16th pil (c). do. Furthermore, a partial page buffer usage state 621-b (task number currently using this partial page buffer) and a pointer 621-0 of the root of each partial page buffer free queue are also provided here.

次に第17図等を用いて、本印刷制卿装置の動作を説明
する。なお、以下の実施例の説明においては、プリンタ
エンジン部102としてシャトルプリンタを想定するが
、レーザプリンタやLEDプリンタの場合も、同様にし
て実現することができる。
Next, the operation of the printing control device will be explained using FIG. 17 and the like. In the following description of the embodiment, a shuttle printer is assumed as the printer engine unit 102, but a laser printer or an LED printer can be implemented in the same manner.

初めにホストコンピュータ101が印刷制御装置に印刷
コマンド列を送信する(721)、印刷制御装置は本印
刷コマンド列をコマンドバッファ部107へ格納する。
First, the host computer 101 transmits a print command string to the print control device (721), and the print control device stores the print command string in the command buffer unit 107.

なお、印刷コマンド列は1ページ以上の論理ページとし
て構成される文書を記述するためのものであり、各論理
ページは1個以上の印刷コマンド列として定義される。
Note that the print command string is for describing a document configured as one or more logical pages, and each logical page is defined as one or more print command strings.

コマンドバッファ部107に格納されている印刷コマン
ドは、タスク処理部13内、の描画タスク処理部131
により処理される。
The print command stored in the command buffer unit 107 is sent to the drawing task processing unit 131 in the task processing unit 13.
Processed by

描画タスク処理部131においては、部分ページバッフ
ァ制御部の一機能である部分ページバッファリザーブS
vCを、順番の次に描画すべき部分ページバッファNo
、 (次層描画部分ページバッファNo、61a)を入
力として発行する(722)。
In the drawing task processing unit 131, partial page buffer reserve S, which is a function of the partial page buffer control unit, is executed.
Partial page buffer number to draw vC next in order
, (next layer drawing portion page buffer No., 61a) is issued as input (722).

部分ページバッファリザーブSvcは人力にて槽室され
た部分ページバッファを獲得する。
The partial page buffer reserve Svc acquires a partial page buffer that has been manually reserved.

描画タスクは部分ページバッファを獲得できたならば、
コマンドバッファ部107内の印刷コマンド列を受信順
に解釈、実行する。その結果1文字、図形、イメージ等
が、獲得した当該部分ページバッファ(例えば部分ペー
ジバッファ142)上番二、ドツトイメージ形式にて描
画され、書込まれる(723)。
If the drawing task can acquire a partial page buffer,
The print command strings in the command buffer unit 107 are interpreted and executed in the order received. As a result, one character, figure, image, etc. is drawn and written in the dot image format in the upper part of the acquired partial page buffer (for example, partial page buffer 142) (723).

描画タスクは当該#4画部分ページバッファへの描画を
終えると、印刷指示を行うため、印刷指示SvCをプリ
ンタ制御部105に対し発行する(724)。
When the drawing task finishes drawing on the #4 image portion page buffer, it issues a print instruction SvC to the printer control unit 105 to issue a print instruction (724).

プリンタ制御部105は、描画タスクの指示に従い、印
刷指示SvCを実行する。印刷指示SVCは、第191
M (a)に示した手順の処理を行い、プリンタエンジ
ンコントローラ115が停止状態にあれば1本プリンタ
エンジンコントローラ115を起動する(728)。
The printer control unit 105 executes the print instruction SvC according to the instruction of the drawing task. The print instruction SVC is the 191st
The procedure shown in M(a) is performed, and if the printer engine controller 115 is in a stopped state, one printer engine controller 115 is activated (728).

描画タスク処理部131は、以下同様に次の部分ページ
バッファ(更新された次層描画部分ページバッファ)に
ついて1部分ページバッファリザーブ725と描画処理
726と印刷指示727を行う。
The drawing task processing unit 131 similarly performs one partial page buffer reservation 725, drawing processing 726, and print instruction 727 for the next partial page buffer (updated next-layer drawing partial page buffer).

(以下余白) 以上の描画タスクの処理手順をまとめると、第18図の
ようになる。本第18図において、各種描画、印刷パラ
メータの初期化81は、描画タスクが初期起動された時
に行う。本初期化時に、当該描画部分ページバッファN
o、61aは′1′に設定される。
(The following is a blank space.) The processing procedure of the above drawing task can be summarized as shown in FIG. 18. In FIG. 18, initialization 81 of various drawing and printing parameters is performed when the drawing task is initially activated. At the time of initialization, the relevant drawing part page buffer N
o, 61a is set to '1'.

第17図に戻り、印刷指示SvCによりプリンタエンジ
ンコントローラ起動728を行うと、プリンタエンジン
コントローラ115は部分ページバッファを構成するデ
ータを、各ラスタについて順次読出す(729)、プリ
ンタエンジン部102は、読出した本データに従って、
1ラスタ分の印刷を行う(730)、本1ラスタ読出し
が終了する度に、プリンタエンジンコントローラ115
は、1ラスタ読出し終了731を、プリンタエンジンコ
ントローラ115の内部機構又はプリンタエンジン部1
02からの割込み信号を用いて、検出する。 プリンタ
エンジンコントローラ115は、部分ページバッファを
構成するすべてのラスタについて前記1ラスタ読出しが
終了したことを検出しく732〜734)、その時点で
プリンタ制御部105に対し、部分ページバッファ読出
し終了割込み735を発生する。
Returning to FIG. 17, when the printer engine controller is activated 728 in response to the print instruction SvC, the printer engine controller 115 sequentially reads out data constituting the partial page buffer for each raster (729). According to this data,
The printer engine controller 115 prints one raster (730).
The 1 raster read end 731 is determined by the internal mechanism of the printer engine controller 115 or the printer engine unit 1.
Detection is performed using the interrupt signal from 02. The printer engine controller 115 detects that the reading of one raster has been completed for all the rasters constituting the partial page buffer (732 to 734), and at that point sends a partial page buffer read end interrupt 735 to the printer control unit 105. Occur.

プリンタ制御部105は、該部分ページバッファ読出し
終了割込み735に対する部分ページバッファ読出し終
了割込み処理において、前述の部分ページバッファフリ
ーマクロを発行しく736)、読出しの終了した部分ペ
ージバッファを解放する。
In the partial page buffer read end interrupt processing for the partial page buffer read end interrupt 735, the printer control unit 105 issues the aforementioned partial page buffer free macro (736) to release the partial page buffer that has been read.

次に部分ページバッファリザーブと部分ページバッファ
フリーの処理手順を、第20図のPAD(Proble
m Analysis Diagram )に示す。
Next, the processing procedure for partial page buffer reserve and partial page buffer free is explained using PAD (Proble
mAnalysis Diagram).

以上のように本実施例においては、小容量の部分ページ
バッファを用いて、前記部分ページバッファ部に対する
、描画処理部による描画書込み処理とプリンタ制御部に
よる印刷読出し処理を並行処理することができる。従っ
て、メモリの使用量と使用コストを下げ、使用効率を高
めることができる。また前記並行処理の実現により、印
刷スループットを高めることができる。
As described above, in this embodiment, by using a small-capacity partial page buffer, it is possible to perform drawing writing processing by the drawing processing section and print reading processing by the printer control section in parallel with respect to the partial page buffer section. Therefore, memory usage and usage cost can be reduced and usage efficiency can be increased. Furthermore, by realizing the parallel processing, printing throughput can be increased.

次に本発明の第6実施例を説明する。本実施例において
は、第15図(b)に示すように、第5実施例における
部分ページバッファ部14に描画データエリア51に加
え、描画データの制御情報を格納するための制御情報エ
リア52を、印刷の最小単位である各ラスタ単位に設け
た。本制御情報エリア52には描画データの有効性を示
すための描画データ有効フラグ521をラスタ単位に設
ける。本描画データ有効フラグ521を用いて、前記描
画タスク処理部131が前記部分ページバッファ内描画
データエリア51への描画書込みの後、該部分ページバ
ッファを構成する全ラスタについて前記描画データ有効
フラグを有効(ON)に設定する。前記プリンタ制御部
105によるプリンタエンジン部102への読出しが停
止状態であれば、本読出しを起動する。起動されたプリ
ンタ制御部105は読出し対象の部分ページバッファを
構成する各ラスタについて、前記描画データ有効フラグ
521がONであれば、該ラスタ内の描画データをプリ
ンタエンジン部102へ読出した後、該描画データ有効
フラグ521を無効(OFF)に設定する。
Next, a sixth embodiment of the present invention will be described. In this embodiment, as shown in FIG. 15(b), in addition to the drawing data area 51 in the partial page buffer section 14 in the fifth embodiment, a control information area 52 for storing control information of drawing data is provided. , provided for each raster unit, which is the minimum unit of printing. This control information area 52 is provided with a drawing data valid flag 521 for each raster to indicate the validity of the drawing data. Using the main drawing data valid flag 521, after the drawing task processing unit 131 writes drawing to the drawing data area 51 in the partial page buffer, the drawing data valid flag is enabled for all rasters constituting the partial page buffer. (ON). If the readout to the printer engine unit 102 by the printer control unit 105 is in a stopped state, the actual readout is started. If the drawing data valid flag 521 is ON for each raster constituting the partial page buffer to be read, the activated printer control unit 105 reads the drawing data in the raster to the printer engine unit 102 and then prints the drawing data in the raster. The drawing data valid flag 521 is set to invalid (OFF).

また前記描画データ有効フラグがOFFであれば本プリ
ンタ制御部105によるプリンタエンジン部102への
読出しを停止状態にする。
Further, if the drawing data valid flag is OFF, reading to the printer engine unit 102 by the printer control unit 105 is stopped.

以上のように描画データ有効フラグ521を活用するこ
とにより、前記部分ページバッファ部に対する、描画処
理部による描画書込み処理と、プリンタ制御部による読
出し処理とを並行処理できる。
As described above, by utilizing the drawing data valid flag 521, the drawing writing process by the drawing processing section and the reading process by the printer control section can be performed in parallel with respect to the partial page buffer section.

第21図に5本実施例における描画タスクの処理手順を
示す、第5実施例における手順(第18図)との違いは
、制御情報エリア内描画データ有効フラグ設定83の処
理を加えた点にある。
FIG. 21 shows the processing procedure of the drawing task in the fifth embodiment. The difference from the procedure in the fifth embodiment (FIG. 18) is that the process of setting the drawing data valid flag in the control information area 83 is added. be.

水制御情報エリア内描画データ有効フラグ設定83によ
り、当該部分ページバッファを構成する全ラスタについ
て、描画データ有効フラグ521をONに設定する。
By setting the water control information area drawing data valid flag 83, the drawing data valid flag 521 is set to ON for all the rasters constituting the partial page buffer.

なお本第21図における84の処理は、後述の第7実施
例にて追加する処理であり1本実施例では存在しないも
のとする。
Note that the process 84 in FIG. 21 is a process that will be added in the seventh embodiment, which will be described later, and does not exist in this embodiment.

第22図にプリンタエンジンコントローラ115の処理
手順を示す。プリンタエンジンコントローラ115は、
前述の印刷指示SvCにより起動されると、以下のよう
に処理を行う。
FIG. 22 shows the processing procedure of the printer engine controller 115. The printer engine controller 115 is
When activated by the print instruction SvC described above, the following processing is performed.

(1)初めに、プリンタエンジンコントローラ115の
パラメータを次の3項目について設定する(1210)
(1) First, set the parameters of the printer engine controller 115 for the following three items (1210)
.

■読み呂しラスタアドレスを読出し対象の部分ページバ
ッファの先頭アドレスに設定する(1211)。
(1211) The reading raster address is set as the start address of the partial page buffer to be read.

■読み出し総うスク数を前記読出し対象の部分ページバ
ッファのサイズに対応する総うスク数に設定する(12
12)。
■Set the total number of read pages to the total number of pages to read corresponding to the size of the partial page buffer to be read (12
12).

■読み出しラスタカウンタをOに設定する(1213)
■Set the read raster counter to O (1213)
.

(2)続いて、プリンタエンジンコントローラ115は
、前記読出し対象の部分ページバッファを構成する全ラ
スタについての読出しを終了するまで、1220に示す
読出しラスタカウンタ≧読出し総うスク数なる終了条件
にて判定し、次の処理を行う。
(2) Subsequently, the printer engine controller 115 makes a determination based on the termination condition 1220 that read raster counter ≧total number of scans to be read until reading of all rasters constituting the partial page buffer to be read is completed. and perform the following processing.

(2−1)各ラスタについて、描画データ有効フラグ5
21がONか判定する(1−230)。
(2-1) For each raster, drawing data valid flag 5
21 is ON (1-230).

(2−2)ONならば、以下の処理を行う。(2-2) If ON, perform the following processing.

■読み出しラスタアドレスから始まる1ラスタデータの
読出しく1240)。
(1) Read one raster data starting from the read raster address (1240).

■1ラスタデータのゼロクリア(1241)。■1 Zero clear of raster data (1241).

ここで、1ラスタデータとは描画データエリア51を指
す。次の第7実施例では、さらに印刷制御情報エリア5
3も含むものとする。
Here, one raster data refers to the drawing data area 51. In the next seventh embodiment, the print control information area 5
3 shall also be included.

■描画データ有効フラグ521をOFFにする(124
2)。
■ Turn off the drawing data valid flag 521 (124
2).

■読み出しラスタアドレスの更新(1243)。■Updating the read raster address (1243).

(2−3)ONでないならば、プリンタエンジンコント
ローラ115を停止状態にする(1244)。
(2-3) If it is not ON, the printer engine controller 115 is stopped (1244).

なお、処理1246については、第9実施例について後
述する。
Note that the process 1246 will be described later regarding the ninth embodiment.

(3)前述の1220の判定にて、読出し終了を検出す
ると、部分ページバッファ読出し終了割込みを、CPU
103上のプログラムであるプリンタ制御部105に対
し発行する(1245)。
(3) When the end of reading is detected in the judgment at 1220 described above, a partial page buffer read end interrupt is sent to the CPU.
103 is issued to the printer control unit 105 (1245).

本部分ページバッファ読出し終了割込み1245は1次
のようにして実現する。
This partial page buffer read end interrupt 1245 is realized as follows.

(i)第151q(b)に示すように、前記制御情報エ
リア52内に、CPU同期フラグ523とCPU同期報
告番号524を設ける。
(i) As shown in 151q(b), a CPU synchronization flag 523 and a CPU synchronization report number 524 are provided in the control information area 52.

(ii)CPU同期フラグ523とCPU同期報告番号
524には1本印刷制御装置における部分ページバッフ
ァ関係のパラメータ初期化処理において、第15図(e
)に示すように値を設定する。
(ii) One CPU synchronization flag 523 and one CPU synchronization report number 524.
) and set the values as shown.

(iii)プリンタエンジンコントローラ115は、部
分ページバッファから各ラスタデータを読出す際に、前
記CPU同期フラグ523を参照する。
(iii) The printer engine controller 115 refers to the CPU synchronization flag 523 when reading each raster data from the partial page buffer.

(iii −a )該CPU同期フラグ523が0N(
1)ならば、前記1ラスタデータをプリンタエンジン部
102へ読み出す、その後、プリンタエンジンコントロ
ーラ115は。
(iii-a) The CPU synchronization flag 523 is 0N (
1), the one raster data is read to the printer engine unit 102, and then the printer engine controller 115 reads it.

CPU103へ割込みを発生した後、本ラスタに含まれ
る前記CPU同期報告番号524を、CPU103へ送
信する。
After generating an interrupt to the CPU 103, the CPU synchronization report number 524 included in this raster is transmitted to the CPU 103.

(iii −b )該CPU同期フラグ523がOFF
 (0)ならば、前記lラスタデータをプリンタエンジ
ン部102へ単に読み出す。(iv)CPU103は、
前記プリンタエンジンコントローラ115からの割込み
を部分ページバッファ読出し終了割込みとして検出する
とともに、受信した前記CPU同期報告番号524を用
いて、どの部分ページバッファの読出しが終了したのか
を識別する。
(iii-b) The CPU synchronization flag 523 is OFF
If (0), the l raster data is simply read out to the printer engine unit 102. (iv) The CPU 103 is
The interrupt from the printer engine controller 115 is detected as a partial page buffer read end interrupt, and the received CPU synchronization report number 524 is used to identify which partial page buffer has finished reading.

なお、CPU同期同期フラグ523を省略し。Note that the CPU synchronization flag 523 is omitted.

CPU同期報告番号524が′O′が否かを調べ、′0
′以外ならば同期フラグ523がONの場合の動作を行
うようにしてもよい。
Check whether CPU synchronization report number 524 is 'O' or not, '0'
If it is other than ', the operation when the synchronization flag 523 is ON may be performed.

また、第15Fl(e)に示すように、制御情報エリア
52に、ホールド同期フラグ525をラスタ単位に格納
する領域を設けてもよい、ホールドフラグは、ホストあ
るいは操作パネル上のキー人力により印刷制御装置へ印
刷の中断指示があった場合に、印刷制御装置は、直ちに
印刷を中断するのではなく、ホールド同期フラグ525
が0N(1)のラスタまで印刷を続行し、当該ラスタで
印刷を中断する。ホールド同期フラグ525は、例えば
、1行の最後のラスタについて予めONとしておく。
Further, as shown in 15th Fl (e), an area may be provided in the control information area 52 to store hold synchronization flags 525 in raster units. When an instruction to suspend printing is given to the device, the print control device does not immediately suspend printing, but sets the hold synchronization flag 525.
Printing is continued until the raster where is 0N (1), and printing is interrupted at that raster. For example, the hold synchronization flag 525 is set to ON in advance for the last raster in one row.

また前述の制御情報エリア52に、部分ページバッファ
を構成する各ラスタ毎の使用状態を記述するための使用
フラグ522を各ラスタ単位に設けてもよい、この場合
、前記部分ページバッファ制御部118は前記部分ペー
ジバッファの獲得と解放を、該部分ページバッファを構
成する全ラスタについての前記使用状態フラグを参照、
更新しながら行うことができる。
Further, a usage flag 522 for describing the usage status of each raster constituting the partial page buffer may be provided in the control information area 52 for each raster. In this case, the partial page buffer control unit 118 acquisition and release of the partial page buffer with reference to the usage state flags for all rasters constituting the partial page buffer;
This can be done while updating.

第23図(a)と(b)に、使用状態フラグ522を用
いた部分ページバッファリザーブ/フリーの処理手順を
示す6本手環は、第20図(a)と(b)における10
01,1003.1010の処理を1001’   1
003’   1010’のように変えたものである。
The six-handed chain shown in FIGS. 23(a) and (b) shows the partial page buffer reserve/free processing procedure using the usage status flag 522.
Process 01,1003.1010 1001' 1
003'1010'.

変更の要点は1部分ページバッファの使用状態を、前述
の部分ページバッファごとに設けた部分ページバッファ
使用状態621−bでなく、部分ページバッファを構成
する全ラスタについての使用状態フラグ522を用いて
記述するようにした点にある。
The main point of the change is to use the usage status flag 522 for all rasters constituting the partial page buffer to determine the usage status of one partial page buffer, instead of using the partial page buffer usage status 621-b provided for each partial page buffer described above. This is what I chose to describe.

本実施例によれば、描画データ有効フラグを用いること
により、部分ページバッファについての描画書込みと印
刷読出しを、同期をとりながら並行処理することができ
る。
According to this embodiment, by using the drawing data valid flag, drawing writing and printing reading for the partial page buffer can be processed in parallel while being synchronized.

次に本発明の第7実施例を説明する。本実施例において
は、第15M(c)と(d)に示すように、第5実施例
又は第6実施例における部分ページバッファ部14上に
、描画データエリア51に加え、プリンタエンジン部1
02の制御情報を格納するための印刷制御情報エリア5
3を、印刷の最小単位である各タスク単位に設けた。
Next, a seventh embodiment of the present invention will be described. In this embodiment, as shown in 15M(c) and (d), in addition to the drawing data area 51 on the partial page buffer section 14 in the fifth or sixth embodiment, the printer engine section 1
Print control information area 5 for storing control information of 02
3 was provided for each task, which is the minimum unit of printing.

前記描画タスク処理部131はある一つの部分ページバ
ッファ内の描画データエリア全体についての描画書込み
が終わった時点で、該部分ページバッファ内の印刷制御
情報エリア53への書込みを行う。
When the drawing task processing unit 131 finishes drawing the entire drawing data area in a certain partial page buffer, it writes to the print control information area 53 in the partial page buffer.

また、各部分ページバッファを構成する各ラスタについ
て、前記印刷制御情報エリア53の内容を変換した制御
コードと前記描画データの組合せである1ラスタ読出し
形式に編集するための1ラスタ読出し形式変換部を前記
プリンタ制御部105に設ける。プリンタ制御部105
は、読出し対象の部分ページバッファを構成する各ラス
タの内容を、前記1ラスタ読出し形式変換部により前記
1ラスタ読出し形式に変換した後、プリンタエンジン部
102へ読み出す。
Furthermore, for each raster constituting each partial page buffer, a 1-raster readout format conversion unit is provided for editing the contents of the print control information area 53 into a 1-raster readout format that is a combination of the converted control code and the drawing data. It is provided in the printer control section 105. Printer control unit 105
The content of each raster constituting the partial page buffer to be read is converted into the one-raster read format by the one-raster read format conversion unit, and then read to the printer engine unit 102.

第21図に1本実施例における描画タスクの処理手順を
示す、第5実施例や第6実施例における手順(第18図
、第21図参照)との違いは、印刷制御情報エリア書込
み84の処理を加えた点にある。当該部分ページバッフ
ァを構成するすべてのタスクの印刷制御情報エリア53
について、第24p21 (a)に示した形式のデータ
を、必要に応じて書込む。
FIG. 21 shows the processing procedure of the drawing task in this embodiment. The reason lies in the addition of processing. Print control information area 53 for all tasks configuring the relevant partial page buffer
24, write data in the format shown in p. 21 (a) as necessary.

なお、第24図(c)に示すように、あるラスタ141
より下側の複数タスクに渡って描画データが何もない場
合(142の空白エリアに相当)、本印刷制御情報エリ
ア書込み84は、エスケープシーケンス536に、空白
エリアのラスタ数mに相当する紙送りピッチコマンドを
書込む。
Note that, as shown in FIG. 24(c), a certain raster 141
If there is no drawing data across the lower multiple tasks (corresponding to the blank area 142), the main print control information area write 84 causes the escape sequence 536 to send paper feed corresponding to the number m of rasters in the blank area. Write pitch command.

プリンタエンジン部102は、ラスタ141の印刷後、
本紙送りピッチコマンドを実行するので、mラス5分印
刷ヘッドをスキップすることになり。
After printing the raster 141, the printer engine unit 102 prints the raster 141.
Since the main paper feed pitch command is executed, the print head will be skipped for 5 minutes after m.

印刷時間を短縮し、印刷スループットを向上することが
できる。
Printing time can be shortened and printing throughput can be improved.

第22図に本実施例におけるプリンタエンジンコントロ
ーラ115の処理手順を示す。第6実施例における手順
と違って、読出しタスクアドレスから始まるlラスタデ
ータの読出し1240において、本ラスタ内の描画デー
タ51を単にプリンタエンジン部102へ読出すもので
はない。すなわち1本実施例では、プリンタエンジンコ
ントローラ115内の前記1ラスタ読出し形式変換部(
li2I示せず)を用いて、各タスクを構成する印刷制
御情報エリア53と描画データエリア51を。
FIG. 22 shows the processing procedure of the printer engine controller 115 in this embodiment. Unlike the procedure in the sixth embodiment, in the reading 1240 of l raster data starting from the read task address, the drawing data 51 in the main raster is not simply read out to the printer engine unit 102. That is, in this embodiment, the one raster readout format converter (
li2I (not shown) to create the print control information area 53 and drawing data area 51 that constitute each task.

第24図(b)に示す1ラスタ読出し形式に変換してか
ら(12401)、本1ラスタ読出し形式データをプリ
ンタエンジン部102へ読出す(12402)。
After converting into the 1 raster read format shown in FIG. 24(b) (12401), the 1 raster read format data is read to the printer engine unit 102 (12402).

なお第24図(b)において、描画データ以外は制御コ
マンドであり、第24図(d)に示す制御コードの形式
で、プリンタエンジン部102へ送信される。また、こ
れらの制御コマンドは省略可能である。
Note that in FIG. 24(b), the commands other than the drawing data are control commands, which are transmitted to the printer engine unit 102 in the form of a control code shown in FIG. 24(d). Furthermore, these control commands can be omitted.

また第24P1(a)におけるベル送信回数N533は
、ベルコマンドの送信回数を示し、ベル送信の有無53
2が有の場合、第24vj4(b)のように、その同数
N@分のベルコマンドがプリンタエンジン部102へ送
信される。
Further, the number of bell transmissions N533 in the 24th P1(a) indicates the number of times the bell command is transmitted, and the presence/absence of bell transmission 53
2 is present, the same number N@ of bell commands are transmitted to the printer engine unit 102, as shown in the 24th vj4(b).

本実施例によれば、描画タスク処理部131が単に簡潔
な印刷制御情報53を記入すれば、前記プリンタエンジ
ンコントローラ115が本印刷制御情報53を1ラスタ
読出し形式に編集してプリンタエンジン部102へ読出
すので、描画タスク処理部131の処理を簡単にできる
という効果がある。
According to this embodiment, when the drawing task processing section 131 simply writes the concise print control information 53, the printer engine controller 115 edits the main print control information 53 into a one-raster read format and sends it to the printer engine section 102. Since it is read out, there is an effect that the processing by the drawing task processing section 131 can be simplified.

また印刷制御情報を用いることにより、部分ページバッ
ファ上に空白エリアが有る場合、その部分については印
刷ヘッドをスキップして印刷を進めることができるので
、印刷時間を短縮し、印刷スループットを向上すること
ができる。
In addition, by using print control information, if there is a blank area on the partial page buffer, printing can proceed by skipping the print head for that area, reducing printing time and improving print throughput. I can do it.

次に本発明の第8実施例を説明する0本実施例は、前述
した先行の技術における倍角印字不良の問題点を解決す
るためのものである。そのため、本実施例では第7実施
例における描画タスクやプリンタ制御部関係の処理手順
を以下のように変更する。
Next, an eighth embodiment of the present invention will be described. This embodiment is intended to solve the above-mentioned problem of double-width printing defects in the prior art. Therefore, in this embodiment, the processing procedures related to the drawing task and printer control unit in the seventh embodiment are changed as follows.

(1)第21図における印刷制御情報エリア書込み84
において、以下のように処理する。
(1) Print control information area writing 84 in Fig. 21
The process is performed as follows.

(a)ある第1の部分ページバッファnについて、第7
実施例の場合と同様にして、印刷制御情報を書込む。
(a) For a certain first partial page buffer n, the seventh
Print control information is written in the same manner as in the embodiment.

(b)前記第1の部分ページバッファnへの描画処理7
23において1倍角描画のような、該部分ページバッフ
ァnの上方の隣接する第2の部分ページバッファn−1
への描画書込みを伴う描画を行ったか判定する。
(b) Drawing process 7 to the first partial page buffer n
23, an adjacent second partial page buffer n-1 above the partial page buffer n, such as single-width drawing.
Determine whether drawing has been performed that involves drawing and writing to.

(c)上記判定にてyesと判定された貴台、前記部分
ページバッファn−1の下からaラスタ分の印刷制御情
報を再生成し、書込みし直す、ここで、Q″は倍角描画
等に伴い前記第2の部分ページバッファn−1にはみだ
して描画されうる最大ラスタ数を、本印刷制御装置につ
いて定めたものであり1本装置の初期化時に設定するよ
うにした。
(c) If the above judgment is yes, the print control information for a raster from the bottom of the partial page buffer n-1 is regenerated and rewritten, where Q'' is double-angle drawing, etc. Accordingly, the maximum number of rasters that can be drawn overflowing into the second partial page buffer n-1 has been determined for this print control device, and is set at the time of initialization of the device.

(2)制御情報エリア内描画データ有効フラグ設定83
は1次のように処理する。
(2) Control information area drawing data valid flag setting 83
is processed as follows.

(a)前記部分ページバッファn−1を構成する全タス
クについて、描画データ有効フラグをONにする。第6
実施例と違って1部分ページバッファnについては、描
画データ有効フラグをまだONにしない。
(a) Turn on the drawing data valid flag for all the tasks constituting the partial page buffer n-1. 6th
Unlike the embodiment, the drawing data valid flag for the partial page buffer n is not turned ON yet.

(b)但し、N=1の場合1部分ページバッファn−1
ついても、描画データ有効フラグをONにしない。
(b) However, if N=1, 1 partial page buffer n-1
Even if it is, the drawing data valid flag is not turned on.

(、c)以上制御情報エリア内描画データ有効フラグ設
定83の処理において、描画データ有効フラグを一つで
もONにしたならば、描画データ有効設定実行フラグと
呼ぶフラグ(プリンタ制御部105内のフラグ)をON
に設定する。
(, c) In the process of setting the drawing data valid flag in the control information area 83, if even one drawing data valid flag is turned ON, a flag called the drawing data valid setting execution flag (a flag in the printer control unit 105 ) ON
Set to .

(3)印刷指示SvCにおいては、第19図(b)に示
したように、プリンタエンジンコントローラ115が停
止状態かつ前記描画データ有効設定実行フラグがONの
場合に、プリンタエンジンコントローラ1]5を起動す
るようにする。
(3) In the print instruction SvC, as shown in FIG. 19(b), when the printer engine controller 115 is in a stopped state and the drawing data valid setting execution flag is ON, the printer engine controller 1]5 is activated. I'll do what I do.

(4)またプリンタエンジンコントローラの処理手順に
は、第22図のように1246の処理を追加する1本1
246の処理では、描画データ有効設定実行フラグをO
FFにする。
(4) Also, in the processing procedure of the printer engine controller, 1246 processes are added as shown in Figure 22.
In the process of 246, the drawing data valid setting execution flag is set to O.
Make it FF.

なお、(2)において描画データ有効フラグを、部分ペ
ージバッファn−1の下からaラスタ分の下部エリアと
部分ページバッファnの下からΩラスタ以外の上部エリ
アとについて、ONに設定するようにしてもよい。
In addition, in (2), set the drawing data valid flag to ON for the lower area of a raster from the bottom of partial page buffer n-1 and the upper area other than Ω raster from the bottom of partial page buffer n. You can.

本実施例によれば、倍角印刷を支障なく行うことができ
るという効果がある。
According to this embodiment, there is an effect that double-angle printing can be performed without any trouble.

次に本発明の第9実施例を説明する。本実施例は、第5
実施例から第8実施例に記載した印刷制御装置とホスト
コンピュータ101とからなる印刷システムに関するも
のである。
Next, a ninth embodiment of the present invention will be described. In this example, the fifth
The present invention relates to a printing system including the print control device described in the embodiments to the eighth embodiment and a host computer 101.

本実施例においては、前記ホストコンピュータ101上
に印刷制御装置による描画モードをラインモードとペー
ジモードのいずれかとして指定するための描画モード指
定部を設けた。ここで、ラインモードとは、前述のよう
に行、桁単位の座標系を用いて、文字、図形、イメージ
を紙面の上から下の方向へ描画、印刷するモードのこと
である。
In this embodiment, a drawing mode designation unit is provided on the host computer 101 for specifying the drawing mode by the print control device as either line mode or page mode. Here, the line mode is a mode in which characters, figures, and images are drawn and printed from the top to the bottom of the paper using the coordinate system in units of rows and columns, as described above.

一方、ページモードとは、ドツト単位(プリンタエンジ
ン部の印刷分解能に相当)の座標系を用いて、各ページ
内では文字、図形、イメージを紙面内で任意方向に描画
、印刷できるモードのことである。
On the other hand, page mode is a mode in which characters, figures, and images can be drawn and printed in any direction within the paper surface using a coordinate system in dot units (corresponding to the print resolution of the printer engine). be.

また印刷制御装置内の前記描画タスク処理部131内に
、ホストコンピュータ101により設定された前記描画
モードを検出し、前記部分ページバッファ部と前記部分
ページバッファ管理テーブル部の構成を、検出した該描
画モードに従って切替えるための部分ページバッファ構
成切替え部を設けた。
The drawing mode set by the host computer 101 is detected in the drawing task processing unit 131 in the print control device, and the configuration of the partial page buffer section and the partial page buffer management table section is stored in the drawing task processing section 131 in the print control device. A partial page buffer configuration switching unit is provided for switching according to the mode.

部分ページバッファ構成切替え部は、部分ページバッフ
ァ管理テーブル部18内の1つの部分ページバッファサ
イズ61dと部分ページバッファ総面数61eを、前記
描画モードに応じて切替える。この結果、部分ページバ
ッファ部141を、第15図(a)から第15図(e)
に示す部分ページバッファN枚からなる構成と第15図
(f)に示すフルページバッファM枚からなる構成の間
で切替えることができる。ここで、N2M、N22、M
≧1である。
The partial page buffer configuration switching section switches one partial page buffer size 61d and the total number of partial page buffer sides 61e in the partial page buffer management table section 18 according to the drawing mode. As a result, the partial page buffer section 141 is
It is possible to switch between the structure shown in FIG. 15 consisting of N partial page buffers and the structure shown in FIG. 15(f) consisting of M full page buffers. Here, N2M, N22, M
≧1.

本実施例によれば、描画モードを切替えて印刷すること
ができるので、ラインモードでの高速印刷とページモー
ドでの美しい印刷(ラインモードよりは低速)の両者を
、1つの印刷システムにおいて実現することができると
いう効果がある。
According to this embodiment, since it is possible to print by switching the drawing mode, it is possible to achieve both high-speed printing in line mode and beautiful printing in page mode (slower speed than line mode) in one printing system. It has the effect of being able to

本発明は以下の場合についても同様にして実現すること
ができる。
The present invention can be similarly implemented in the following cases.

(1)部分ページバッファ総面数を1とする。(1) Set the total number of partial page buffers to 1.

(2)以上の説明では部分ページバッファを複数面設け
る場合、各部分ページバッファのサイズを同一としたが
、異なるサイズの部分ページバッファを用いて構成して
もよい。なおこの場合、部分ページバッファ管理テーブ
ル部18には個々の部分ページバッファのサイズを記入
するものとする。
(2) In the above description, when a plurality of partial page buffers are provided, each partial page buffer is of the same size, but partial page buffers of different sizes may be used. In this case, the size of each partial page buffer is entered in the partial page buffer management table section 18.

(3)部分ページバッファサイズを文字1行事位にする
。なお、180ドツト/インチのプリンタエンジン部1
02を用いる場合1通常1行は24ラスタとして構成す
る。
(3) Set the partial page buffer size to one character line. In addition, the printer engine section 1 of 180 dots/inch
When using 02, one line is usually configured as 24 rasters.

[発明の効果] 本発明によれば、メモリの使用量と使用コストを下げ、
その使用効率を高めることができる。
[Effects of the Invention] According to the present invention, memory usage and usage cost can be reduced,
Its usage efficiency can be increased.

また、部分ページバッファ部に対する、描画タスク処理
部による描画書込み処理とプリンタ制御部による印刷読
出し処理を並行処理することができるので、印刷スルー
プットを高めることができる。
Further, since the drawing writing process by the drawing task processing unit and the print reading process by the printer control unit can be performed in parallel with respect to the partial page buffer unit, printing throughput can be increased.

また印刷制御情報を用いることにより、部分ページバッ
ファ上に空白エリアが有る場合、その部分については印
刷ヘッドをスキップして印刷を進めることができるので
、印刷時間を短縮し、印刷スループットをさらに向上す
ることができる。
In addition, by using print control information, if there is a blank area on the partial page buffer, printing can proceed by skipping the print head for that area, reducing printing time and further improving print throughput. be able to.

また印刷制御情報エリアの作成を倍角描画を考慮して行
っているので1倍角印字も高速で支障なく行うことがで
きる。
Furthermore, since the print control information area is created taking double-width drawing into consideration, single-width printing can also be performed at high speed and without any problems.

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

第1図は本発明の装置構成例を示すシステム構成図、第
2図は印刷手順を示すシーケンス図、第3図は印刷デー
タ制御部の処理手順を示すフローチャート、第4図はプ
リンタ制御部の処理手順を示すフローチャート、第5図
は第3実施例の印刷中断手順を示すシーケンス図、第6
図は第3実施例における印刷データ制御部の処理手順を
示すフローチャート、第7図は第3実施例におけるプリ
ンタ制御部の処理手順を示すフローチャート、第8図は
第4実施例におけるテスト印刷手順を示すシーケンス図
、第9図は本発明のハードウェア構成を示すシステム構
成図、及び第10図はフレームメモリの構成を示す構成
図、第11図は本発明の第5の実施例の構成を示すブロ
ック図、第12図は先行技術の問題点の説明図図、第1
3図は第5の実施例の基本原理の説明図、第14図は第
5の実施例のハードウェア構成を示す図、第15図は部
分ページバッファ部の構成の説明図、第16図は本発明
における部分ページバッファ管理テーブル部の構成の説
明図、第17図は第5の実施例における印刷制御装置の
動作を示すフローチャート、第18v4は第1実施例に
おける描画タスクの処理手順を示すフローチャート、第
19図は本発明における印刷指示SvCの処理手順を示
すフローチャート、第20図は第5実施例における部分
ページバッファリザーブ/フリーの処理手順を示すフロ
ーチャート、第21図は第6実施例と第7実施例と第8
実施例における描画タスクの処理手順を示すフローチャ
ート、第22図は第6実施例と第7実施例におけるプリ
ンタエンジンコントローラの処理手順を示すフローチャ
ート、第23図は第6実施例における部分ページバッフ
ァリザーブ/フリーの処理手順を示すフローチャート、
第24図は第7実施例における印刷制御情報エリアの内
容と1ラスク読出し形式とプリンタエンジン制御コマン
ド等を示す図である。 100・・・プリンタコントローラ、101・・・ホス
トコンピュータ、102・・・プリンタエンジン部、1
03・・・印刷データ制御部、1o4・・・フレームメ
モリ、105・・・プリンタ制御部、106・・・ホス
ト通信制御部、107・・・コマンドバッファ部。 108・・・描画制御部、109・・・通信コマンド制
御部、112・・・コマンド制御部、114・・・デー
タリード部、115・・・プリンタエンジン制御部、1
16・・・プリンタコマンド制御部、117・・・通信
制御部、118・・・フレームメモリ管理部、120・
・・制御情報エリア、121・・・描画エリア、122
・・・印刷制御エリア、123・・・テスト印刷用フレ
ームメモリ、130・・・中断制御部、131・・・テ
スト印刷制御部。
Fig. 1 is a system configuration diagram showing an example of the device configuration of the present invention, Fig. 2 is a sequence diagram showing the printing procedure, Fig. 3 is a flowchart showing the processing procedure of the print data control unit, and Fig. 4 is a diagram of the printer control unit. FIG. 5 is a flowchart showing the processing procedure; FIG. 5 is a sequence diagram showing the print interruption procedure of the third embodiment; FIG.
The figure is a flowchart showing the processing procedure of the print data control unit in the third embodiment, FIG. 7 is a flowchart showing the processing procedure of the printer control unit in the third embodiment, and FIG. 8 is the test printing procedure in the fourth embodiment. 9 is a system configuration diagram showing the hardware configuration of the present invention, FIG. 10 is a configuration diagram showing the configuration of the frame memory, and FIG. 11 is a configuration diagram of the fifth embodiment of the present invention. Block diagram, Figure 12 is an explanatory diagram of the problems of the prior art, Figure 1
3 is an explanatory diagram of the basic principle of the fifth embodiment, FIG. 14 is a diagram illustrating the hardware configuration of the fifth embodiment, FIG. 15 is an explanatory diagram of the configuration of the partial page buffer section, and FIG. An explanatory diagram of the configuration of the partial page buffer management table unit in the present invention, FIG. 17 is a flowchart showing the operation of the print control device in the fifth embodiment, and FIG. 18v4 is a flowchart showing the processing procedure of the drawing task in the first embodiment. , FIG. 19 is a flowchart showing the processing procedure of print instruction SvC in the present invention, FIG. 20 is a flowchart showing the processing procedure of partial page buffer reserve/free in the fifth embodiment, and FIG. 21 is a flowchart showing the processing procedure of the partial page buffer reserve/free in the fifth embodiment. 7th example and 8th example
FIG. 22 is a flowchart showing the processing procedure of the drawing task in the embodiment, FIG. 22 is a flowchart showing the processing procedure of the printer engine controller in the sixth embodiment and the seventh embodiment, and FIG. 23 is a flowchart showing the processing procedure of the printer engine controller in the sixth embodiment. A flowchart showing free processing steps,
FIG. 24 is a diagram showing the contents of the print control information area, one rask read format, printer engine control commands, etc. in the seventh embodiment. 100...Printer controller, 101...Host computer, 102...Printer engine section, 1
03...Print data control unit, 1o4...Frame memory, 105...Printer control unit, 106...Host communication control unit, 107...Command buffer unit. 108... Drawing control unit, 109... Communication command control unit, 112... Command control unit, 114... Data read unit, 115... Printer engine control unit, 1
16...Printer command control unit, 117...Communication control unit, 118...Frame memory management unit, 120.
...Control information area, 121...Drawing area, 122
. . . Print control area, 123 . . . Frame memory for test printing, 130 . . . Interruption control section, 131 . . . Test printing control section.

Claims (1)

【特許請求の範囲】 1、描画データを格納するフレームメモリと、印刷コマ
ンド列を解釈して前記フレームメモリ上に描画を行う印
刷データ制御部と、前記フレームメモリに描画された描
画データを読みだしてプリンタエンジン部へ送信するプ
リンタ制御部とを備えた印刷制御装置において、 前記フレームメモリを一定数のラスタからなる部分ペー
ジ単位に分割し、前記印刷データ制御部によるフレーム
メモリの獲得・解放を部分ページ単位に行わせるフレー
ムメモリ管理手段を設けるとともに、 前記フレームメモリ上に、描画データの他に描画データ
の有効性を示す有効フラグを格納する制御情報エリアを
少なくとも前記部分ページ単位に設け、 前記印刷データ制御部は、印刷コマンド列を受信すると
ともに、前記フレームメモリ管理手段を用いて描画エリ
アを部分ページ単位で獲得し、該獲得した描画エリア上
に前記印刷コマンドに基づく描画を行い、該描画した部
分ページ分の描画エリアに対応する前記制御情報エリア
の有効フラグをオンに設定した後、次の描画処理に移り
、 前記プリンタ制御部は、前記制御情報エリアの有効フラ
グがオンである描画データを読出して前記プリンタエン
ジン部に送出し、描画データの送出が終了した部分ペー
ジに対応する前記制御情報エリアの有効フラグをオフに
設定して当該フレームメモリの部分ページを解放し、前
記フレームメモリ上の制御情報エリアの有効フラグがオ
ンの描画データがなくなるまで当該処理を繰り返して行
うことを特徴とする印刷制御装置。 2、前記フレームメモリの容量は1ページ分に満たず、
前記部分ページ単位のフレームメモリをリング形式に用
いることを特徴とする請求項1記載の印刷制御装置。 3、前記部分ページは、テキストの1行に相当する大き
さであることを特徴とする請求項1記載の印刷制御装置
。 4、前記制御情報エリアをラスタ単位に設けたことを特
徴とする請求項1記載の印刷制御装置。 5、前記制御情報エリアに、部分ページ内の最後のラス
タについてその旨を表わす情報を記載する領域を設けた
ことを特徴とする請求項4記載の印刷制御装置。 6、前記制御情報エリアに、当該部分ページ内の最後の
ラスタについて、当該部分ページが現ページ内の何番目
の部分ページに該当するかの情報を表わす情報を格納す
る領域を設けたことを特徴とする請求項4または5記載
の印刷制御装置。 7、前記制御情報エリアに、印刷中断時に中断を許容す
る旨の情報を格納する領域をラスタ単位に設け、前記プ
リンタ制御部は該情報の格納されたラスタまで印刷を続
行した後、印刷を中断することを特徴とする請求項4記
載の印刷制御装置。 8、前記制御情報エリアに、部分ページの使用状態を記
述する使用状態フラグを格納する領域を設け、前記フレ
ームメモリ管理手段は前記部分ページ単位のフレームメ
モリの獲得および解放を、前記使用状態フラグを参照、
更新しながら行うことを特徴とする請求項1または4記
載の印刷制御装置。 9、改行および改頁等の印刷制御情報を格納する印刷制
御情報エリアをラスタ単位に前記フレームメモリ上に設
け、前記プリンタ制御部は前記描画データとともに前記
印刷制御情報を読みだして印刷制御を行うことを特徴と
する請求項1記載の印刷制御装置。 10、前記印刷データ制御部は、一つの部分ページの描
画に伴い当該印刷制御情報エリアに書込みを行い、前記
プリンタ制御部は前記印刷制御情報エリアの内容に対応
する制御コードと描画データの組み合わせとしての1ラ
スタのデータを生成して前記プリンタエンジン部へ送出
することを特徴とする請求項9記載の印刷制御装置。 11、印刷を中断する際に、行の途中での中断を抑止す
る中断制御手段を設けたことを特徴とする請求項1記載
の印刷制御装置。 12、印刷中断状態におけるテスト印刷を行うためのテ
スト印刷用フレームメモリを設け、テスト印刷を行うと
きに、中断している印刷の各種情報を退避することなし
にテスト印刷が行えるようにしたことを特徴とする請求
項1記載の印刷制御装置。 13、前記印刷データ制御部は、前記第1の部分ページ
への描画に伴い、該部分ページの直前の第2の部分ペー
ジへの描画が生じた場合、該第2の部分ページの前記有
効フラグをオンにするが、前記第1の部分ページの有効
フラグは未だオンにしないようにしたことを特徴とする
請求項1記載の印刷制御装置。
[Claims] 1. A frame memory that stores drawing data, a print data control unit that interprets a print command string and draws on the frame memory, and reads out the drawing data drawn in the frame memory. In the print control device, the frame memory is divided into partial page units each consisting of a certain number of rasters, and the print data control unit acquires and releases the frame memory in partial pages. A frame memory management means for performing the printing on a page-by-page basis is provided, and a control information area is provided on the frame memory for storing a validity flag indicating the validity of the drawing data in addition to the drawing data, at least on a unit of the partial page, and the printing is performed on a page-by-page basis. The data control unit receives the print command sequence, acquires a drawing area in units of partial pages using the frame memory management means, performs drawing based on the print command on the obtained drawing area, and performs drawing based on the print command on the obtained drawing area. After setting the valid flag of the control information area corresponding to the drawing area for the partial page to ON, the printer control section moves to the next drawing process, and the printer control unit prints the drawing data for which the valid flag of the control information area is ON. The valid flag of the control information area corresponding to the partial page for which drawing data has been sent is set to OFF, the partial page of the frame memory is released, and the partial page of the frame memory is A printing control device characterized in that said process is repeatedly performed until there is no more drawing data with a valid flag in a control information area on. 2. The capacity of the frame memory is less than one page;
2. The print control device according to claim 1, wherein the frame memory for each partial page is used in a ring format. 3. The print control device according to claim 1, wherein the partial page has a size corresponding to one line of text. 4. The printing control device according to claim 1, wherein the control information area is provided for each raster. 5. The print control apparatus according to claim 4, wherein the control information area includes an area in which information indicating the last raster in a partial page is written. 6. The control information area is characterized by providing an area for storing information indicating which partial page in the current page the partial page corresponds to, regarding the last raster in the partial page. The printing control device according to claim 4 or 5. 7. In the control information area, an area is provided for each raster to store information indicating that an interruption is permitted when printing is interrupted, and the printer control section interrupts printing after continuing printing up to the raster in which the information is stored. The printing control device according to claim 4, characterized in that: 8. The control information area is provided with an area for storing a usage state flag that describes the usage state of a partial page, and the frame memory management means acquires and releases the frame memory in units of the partial page based on the usage state flag. reference,
5. The printing control device according to claim 1, wherein the printing control device performs the printing while updating. 9. A print control information area for storing print control information such as line breaks and page breaks is provided on the frame memory for each raster, and the printer control unit reads out the print control information together with the drawing data to perform print control. The printing control device according to claim 1, characterized in that: 10. The print data control unit writes in the print control information area when drawing one partial page, and the printer control unit writes as a combination of a control code and drawing data corresponding to the contents of the print control information area. 10. The print control apparatus according to claim 9, wherein the print control apparatus generates one raster data and sends it to the printer engine section. 11. The printing control device according to claim 1, further comprising an interruption control means for suppressing interruption in the middle of a line when printing is interrupted. 12. A frame memory for test printing is provided to perform test printing in a state where printing is interrupted, so that test printing can be performed without saving various information about the interrupted printing. The printing control device according to claim 1, characterized in that: 13. When drawing on a second partial page immediately before the first partial page occurs with drawing on the first partial page, the print data control unit sets the valid flag of the second partial page. 2. The print control device according to claim 1, wherein the first partial page is turned on, but the validity flag of the first partial page is not turned on yet.
JP2340493A 1990-06-15 1990-11-30 Printing control device Expired - Fee Related JP2965686B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2340493A JP2965686B2 (en) 1990-06-15 1990-11-30 Printing control device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2-157125 1990-06-15
JP15712590 1990-06-15
JP2340493A JP2965686B2 (en) 1990-06-15 1990-11-30 Printing control device

Publications (2)

Publication Number Publication Date
JPH04126272A true JPH04126272A (en) 1992-04-27
JP2965686B2 JP2965686B2 (en) 1999-10-18

Family

ID=26484681

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2340493A Expired - Fee Related JP2965686B2 (en) 1990-06-15 1990-11-30 Printing control device

Country Status (1)

Country Link
JP (1) JP2965686B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005053115A (en) * 2003-08-05 2005-03-03 Seiko Epson Corp Method of controlling printing and device therefor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6049974A (en) * 1983-08-31 1985-03-19 Pentel Kk Printer-controlling system
JPS6359575A (en) * 1986-08-29 1988-03-15 Fujitsu Ltd Test printing system
JPH0296829U (en) * 1989-01-20 1990-08-01

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6049974A (en) * 1983-08-31 1985-03-19 Pentel Kk Printer-controlling system
JPS6359575A (en) * 1986-08-29 1988-03-15 Fujitsu Ltd Test printing system
JPH0296829U (en) * 1989-01-20 1990-08-01

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005053115A (en) * 2003-08-05 2005-03-03 Seiko Epson Corp Method of controlling printing and device therefor
JP4507526B2 (en) * 2003-08-05 2010-07-21 セイコーエプソン株式会社 Printing control method and apparatus

Also Published As

Publication number Publication date
JP2965686B2 (en) 1999-10-18

Similar Documents

Publication Publication Date Title
US5058037A (en) Method and apparatus for controlling printer
US5265209A (en) Print control apparatus for printing pages having different page sizes using one or more of a plurality of same-sized page buffers
US4953103A (en) Page printer
JP2000330806A (en) Computer system
JPH10340165A (en) Information processing device and method, and memory medium
US6317193B2 (en) Image forming apparatus
JP4303732B2 (en) Image forming apparatus
JP2816184B2 (en) Printing control device
JPH04126272A (en) Printer controller
JP3020498B2 (en) Print processing system
JP3173721B2 (en) Printer and operation method thereof
JP3174624B2 (en) Print information management method in printer device and printer device
JPS6238930A (en) Printing controller
JP2001018493A (en) Printer, control method thereof and recording medium having recorded processing therefor
JP5062750B2 (en) Image forming apparatus
JP4438754B2 (en) Image forming apparatus
JP2003067243A (en) Image processing device, program, recording medium and image forming apparatus to which program is written
JP4438755B2 (en) Image forming apparatus
JP2978493B2 (en) Printing system and printer device
JP2003067156A (en) Printing control device
JP3248796B2 (en) Network printer system
JPH09237167A (en) Printing method and printing system
JP2000141781A (en) Image generator, control method therefor and printer
JPH0532017A (en) Printer
JPH0475153A (en) Multi-reception print control method

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

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

LAPS Cancellation because of no payment of annual fees