JP3257902B2 - Printing apparatus and data transfer control method for printing apparatus - Google Patents

Printing apparatus and data transfer control method for printing apparatus

Info

Publication number
JP3257902B2
JP3257902B2 JP15006394A JP15006394A JP3257902B2 JP 3257902 B2 JP3257902 B2 JP 3257902B2 JP 15006394 A JP15006394 A JP 15006394A JP 15006394 A JP15006394 A JP 15006394A JP 3257902 B2 JP3257902 B2 JP 3257902B2
Authority
JP
Japan
Prior art keywords
data
transfer
unit
print
storage unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP15006394A
Other languages
Japanese (ja)
Other versions
JPH0816330A (en
Inventor
勝彦 安西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP15006394A priority Critical patent/JP3257902B2/en
Priority to US08/495,229 priority patent/US6009242A/en
Publication of JPH0816330A publication Critical patent/JPH0816330A/en
Application granted granted Critical
Publication of JP3257902B2 publication Critical patent/JP3257902B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ホストコンピュータ機
器等の外部装置からデータを受信し、用紙等に印刷する
印刷装置および印刷装置のデータ転送制御方法に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus for receiving data from an external device such as a host computer and printing the same on paper or the like, and a data transfer control method for the printing apparatus.

【0002】[0002]

【従来の技術】従来の印刷装置は、制御部と印刷機構部
が両者で取り決めた特定のインタフェース/プロトコル
で電気的,ソフト的に接続されている。そして、制御部
の作成したビットマップイメージデータ(バイトマップ
も含む)を、印刷機構部に対してそのままのかたちで、
先のインタフェースを通してデータを転送し、そのデー
タを印刷機構部が用紙等に印刷する仕組みになってい
た。
2. Description of the Related Art In a conventional printing apparatus, a control section and a printing mechanism section are electrically and softwarely connected by a specific interface / protocol determined by both parties. Then, the bitmap image data (including the byte map) created by the control unit is sent to the printing mechanism unit as it is,
The data is transferred through the above interface, and the printing mechanism prints the data on paper or the like.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、印刷装
置の高解像度化やカラー化等により、ビットマップやバ
イトマップイメージデータの転送量はますます増加する
一方である。このため印刷装置内における制御部から印
刷機構部へのデータ転送にかかる処理コスト,時間も同
時に増加し、その負荷によって印刷装置全体のパフォー
マンスに影響を及ぼすようになってきた。
However, the transfer amount of bitmap and bytemap image data is increasing more and more due to the increase in resolution and colorization of the printing apparatus. For this reason, the processing cost and time required for data transfer from the control unit to the printing mechanism unit in the printing apparatus also increase, and the load affects the performance of the entire printing apparatus.

【0004】特に印刷装置におけるコピー機能等の実現
により同一ページのビットマップイメージデータを何度
も印刷機構部へデータ送信する場合などは、描画処理が
終了しているため、このデータ転送処理時間のみが目立
ち、他の入力データ処理に時間をとれなくなってきてい
る等の問題点があった。
In particular, when bitmap image data of the same page is repeatedly transmitted to the printing mechanism by realizing a copy function or the like in a printing apparatus, the drawing process has been completed. However, there has been a problem that time has not been taken for other input data processing.

【0005】本発明は、上記の問題点を解決するために
なされたもので、本発明の目的は、、第1の記憶部への
ビットイメージ展開終了時に第2の記憶部からの転送デ
ータを印刷機構部に転送中の場合に、第2の記憶部の転
送データの残量が所定量よりも多いと判別したときは、
第2の記憶部からの転送データ終了後に、圧縮部により
圧縮された第1の記憶部の印刷データを次の転送データ
として印刷機構部に転送することにより、転送の進行状
況に応じて転送データを減らして転送時間を短縮するこ
とができる印刷装置および印刷装置のデータ転送制御方
法を提供することである。また、印刷機構部の状態が転
送データを転送可能な状態でないと判別した場合は、印
刷データを圧縮手段により圧縮して印刷機構部に転送す
ることにより、印刷機構部の状態に応じてデータ転送開
始が遅れると予想される場合に、既に記憶した印刷デー
タを圧縮してデータ量を減らし、データ転送開始後にお
けるデータ転送時間を短縮することができる印刷装置お
よび印刷装置のデータ転送制御方法を提供することであ
る。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to transfer data transferred from a second storage unit at the end of bit image development to a first storage unit. When it is determined that the remaining amount of the transfer data in the second storage unit is larger than the predetermined amount during the transfer to the printing mechanism unit,
After the transfer data from the second storage unit is completed, the print data in the first storage unit compressed by the compression unit is transferred to the printing mechanism unit as the next transfer data, so that the transfer data is transferred according to the progress of the transfer. It is an object of the present invention to provide a printing apparatus and a data transfer control method of the printing apparatus, which can reduce the transfer time by reducing the printing time. If it is determined that the state of the printing mechanism is not in a state in which the transfer data can be transferred, the printing data is compressed by the compressing means and transferred to the printing mechanism, whereby the data is transferred according to the state of the printing mechanism. Provided is a printing apparatus and a data transfer control method for the printing apparatus, which can compress the already stored print data to reduce the amount of data when the start is expected to be delayed, and reduce the data transfer time after the start of data transfer. It is to be.

【0006】[0006]

【課題を解決するための手段】本発明に係る第1の発明
は、データ源からの印刷情報を受信し、該受信した印刷
情報を解析してビットイメージに展開した印刷データを
面単位に蓄える複数の記憶部と、この各記憶部に蓄えら
れた印刷データに基づく転送データをプリンタエンジン
を備える印刷機構部に所定のインタフェースを介して転
送する制御部とを有する印刷装置において、第1の記憶
部へのビットイメージ展開終了時に第2の記憶部からの
転送データを前記印刷機構部に転送中の場合に、第2の
記憶部の転送データの残量を判別する判別部と、前記判
別部により第2の記憶部の転送データの残量が所定量よ
りも多いと判別した場合に、第1の記憶部に記憶された
ビットイメージ展開された印刷データを圧縮する圧縮部
とを前記制御部に設け、前記制御部は、第2の記憶部か
らの転送データ終了後に、前記圧縮部により圧縮された
第1の記憶部の印刷データを次の転送データとして前記
印刷機構部に転送することを特徴とする。
According to a first aspect of the present invention, print information is received from a data source, the received print information is analyzed, and print data expanded into a bit image is stored in units of planes. In a printing apparatus having a plurality of storage units and a control unit for transferring transfer data based on print data stored in each storage unit to a printing mechanism unit including a printer engine via a predetermined interface, a first storage unit A determination unit configured to determine a remaining amount of transfer data in the second storage unit when the transfer data from the second storage unit is being transferred to the printing mechanism unit at the end of the bit image development to the unit; When the control unit determines that the remaining amount of the transfer data in the second storage unit is larger than the predetermined amount, the control unit compresses the bit image expanded print data stored in the first storage unit. To The control unit transfers the print data of the first storage unit compressed by the compression unit to the printing mechanism unit as next transfer data after the transfer data from the second storage unit ends. And

【0007】本発明に係る第2の発明は、データ源から
の印刷情報を受信し、該受信した印刷情報を解析してビ
ットイメージに展開した印刷データを蓄える記憶部と、
この記憶部に蓄えられた印刷データに基づく転送データ
をプリンタエンジンを備える印刷機構部に所定のインタ
フェースを介して転送する制御部とを有する印刷装置に
おいて、前記印刷機構部の状態を通信する状態通信手段
と、この状態通信手段により通信された前記印刷機構部
の状態が前記転送データを転送可能な状態かどうかを判
別する判別手段と、前記印刷データを圧縮する圧縮手段
とを設け、前記判別手段が前記転送データを転送可能な
状態でないと判別した場合は、前記印刷データを前記圧
縮手段により圧縮して前記印刷機構部に転送することを
特徴とする。
According to a second aspect of the present invention, a storage unit for receiving print information from a data source, analyzing the received print information, and storing print data expanded into a bit image,
A control unit for transferring transfer data based on the print data stored in the storage unit to a print mechanism unit having a printer engine via a predetermined interface; and a state communication for communicating a state of the print mechanism unit. Means for determining whether or not the state of the printing mechanism communicated by the state communication means is a state in which the transfer data can be transferred; and compression means for compressing the print data. When it is determined that the transfer data is not in a state in which the transfer data can be transferred, the print data is compressed by the compression unit and transferred to the printing mechanism.

【0008】本発明に係る第3の発明は、データ源から
の印刷情報を受信し、該受信した印刷情報を解析してビ
ットイメージに展開した印刷データを面単位に蓄える複
数の記憶部を備え、各記憶部に蓄えられた印刷データに
基づく転送データをプリンタエンジンを備える印刷機構
部に所定のインタフェースを介して転送する印刷装置の
データ転送制御方法において、第1の記憶部へのビット
イメージ展開終了時に第2の記憶部からの転送データを
前記印刷機構部に転送中の場合に、第2の記憶部の転送
データの残量を判別する判別工程と、前記判別工程によ
り第2の記憶部の転送データの残量が所定量よりも多い
と判別した場合に、第1の記憶部に記憶されたビットイ
メージ展開された印刷データを圧縮する圧縮工程と、前
記第2の記憶部からの転送データ終了後に、前記圧縮部
により圧縮された第1の記憶部の印刷データを次の転送
データとして前記印刷機構部に転送する転送工程とを有
することを特徴とする。
A third invention according to the present invention receives the print information from the data source, comprising a plurality of storage portions for storing the surface unit the print data by analyzing the print information thus received developed into bit image In a data transfer control method of a printing apparatus for transferring transfer data based on print data stored in each storage unit to a printing mechanism unit having a printer engine via a predetermined interface, a bit image development to a first storage unit A determination step of determining the remaining amount of transfer data in the second storage unit when the transfer data from the second storage unit is being transferred to the printing mechanism unit at the time of termination; A compression step of compressing the bit image expanded print data stored in the first storage unit when it is determined that the remaining amount of the transfer data is larger than a predetermined amount; After the transfer data ends, and having a transfer step of transferring the print data of the first storage unit, which is compressed by the compression unit to the printing mechanism portion as the next transfer data.

【0009】本発明に係る第4の発明は、データ源から
の印刷情報を受信し、該受信した印刷情報を解析してビ
ットイメージに展開した印刷データを蓄える記憶部と、
この記憶部に蓄えられた印刷データに基づく転送データ
をプリンタエンジンを備える印刷機構部に所定のインタ
フェースを介して転送する印刷装置のデータ転送制御方
法において、前記印刷機構部の状態を通信する状態通信
工程と、前記状態通信工程により通信された前記印刷機
構部の状態が前記転送データを転送可能な状態かどうか
を判別する判別工程と、前記印刷データを圧縮する圧縮
工程と、前記判別工程が前記転送データを転送可能な状
態でないと判別した場合は、前記印刷データを前記圧縮
工程により圧縮して前記印刷機構部に転送する転送工程
とを有することを特徴とする。
According to a fourth aspect of the present invention, there is provided a storage unit for receiving print information from a data source, analyzing the received print information, and storing print data expanded into a bit image,
In a data transfer control method for a printing apparatus for transferring transfer data based on print data stored in a storage unit to a printing mechanism unit having a printer engine via a predetermined interface, a state communication for communicating a state of the printing mechanism unit A step of determining whether the state of the printing mechanism unit communicated by the state communication step is a state in which the transfer data can be transferred; a compression step of compressing the print data; and A transfer step of compressing the print data in the compression step and transferring the print data to the printing mechanism when it is determined that the transfer data is not in a transferable state.

【0010】[0010]

【0011】[0011]

【0012】[0012]

【0013】[0013]

【0014】[0014]

【0015】[0015]

【0016】[0016]

【0017】[0017]

【0018】[0018]

【0019】[0019]

【0020】[0020]

【0021】[0021]

【0022】[0022]

【0023】[0023]

【0024】[0024]

【実施例】【Example】

〔第1実施例〕図1は本発明の第1実施例を示す印刷装
置の制御構成を説明するブロック図である。
[First Embodiment] FIG. 1 is a block diagram illustrating a control configuration of a printing apparatus according to a first embodiment of the present invention.

【0025】図において、1はホストコンピュータ等の
外部機器で、印刷装置にデータを送るものであり、アプ
リケーションソフトウェア等を実行するものである。2
は本印刷装置に対して送られてきたデータを受信する入
力部である。3は制御プログラムや各種情報を格納する
ROMである。
In FIG. 1, reference numeral 1 denotes an external device such as a host computer for sending data to a printing apparatus, which executes application software and the like. 2
Is an input unit for receiving data transmitted to the printing apparatus. Reference numeral 3 denotes a ROM for storing a control program and various information.

【0026】4は前記ROM3に格納された制御プログ
ラムを実行するCPUで、制御プログラムによって入力
部2で受信した印刷データや制御命令の解析等を行って
ページのフォーマットを行い、実際の展開処理等を行う
ことを主たる機能とし、さらに装置全体の制御管理等を
行う。
Reference numeral 4 denotes a CPU for executing a control program stored in the ROM 3. The control program analyzes print data and control commands received by the input unit 2 to format a page, and performs actual development processing and the like. The main function is to perform control and management of the entire apparatus.

【0027】5は前記CPU4によって処理された描画
データを格納したり、フレームメモリとしてビットマッ
プ展開を行うRAMである。作業用の変数やバッファ等
もここに格納される。6は前記RAM5に展開されたビ
ットマップイメージデータを印刷機構部8に送信処理を
行う出力部である。なお、本実施例では、入力部2,R
OM3,CPU4,RAM5,出力部6をまとめて制御
部7と呼ぶ。
Reference numeral 5 denotes a RAM for storing drawing data processed by the CPU 4 and for developing a bit map as a frame memory. Work variables and buffers are also stored here. Reference numeral 6 denotes an output unit for transmitting the bitmap image data developed in the RAM 5 to the printing mechanism unit 8. In this embodiment, the input units 2 and R
The OM 3, the CPU 4, the RAM 5, and the output unit 6 are collectively called a control unit 7.

【0028】8は用紙等に印刷を行うプリンタエンジン
およびその制御部を備える印刷機構部である。本印刷機
構部8と、出力部6はあらかじめ定められたインタフェ
ースI/F(図中の太線)により接続されており、出力
部6からのデータ送信による指示により印刷機構部8
は、用紙の給紙処理,印刷処理,搬送処理,排紙処理を
行う。本実施例でのインタフェース例は、出力部6から
印刷機構部8に対して、印刷データをライン単位に送信
し、1ライン搬送指示を行うことで、印刷処理を行うも
のである。なお、プリンタエンジンとしては、インクジ
ェットプリンタエンジンの場合が、本発明を適用する好
適な例に対応するが、印刷ヘッドを走査する印刷装置、
例えばインクリボン方式のプリンタエンジン等であって
も本発明を適用することができる。また、印刷機構部8
内には、詳細は図示しないハード,ソフトを問わないデ
ータ伸張部が設けられており、制御部7からインタフェ
ースI/Fを介して転送される転送データが圧縮データ
であると判別された場合に、該圧縮データを所定の印刷
データに伸張して、印刷機構部8のプリンタエンジン
は、転送データが印刷データであっても、圧縮データで
あっても支障なく連続的に記録材に印刷を行えるように
構成されている。
Reference numeral 8 denotes a printing mechanism unit having a printer engine for printing on paper or the like and a control unit therefor. The printing mechanism unit 8 and the output unit 6 are connected by a predetermined interface I / F (thick line in the figure), and the printing mechanism unit 8 is instructed by data transmission from the output unit 6.
Performs a paper feeding process, a printing process, a transporting process, and a paper discharging process. In the example of the interface according to the present embodiment, print data is transmitted from the output unit 6 to the print mechanism unit 8 in units of lines, and a one-line conveyance instruction is issued, thereby performing print processing. In addition, as the printer engine, an inkjet printer engine corresponds to a preferred example to which the present invention is applied.
For example, the present invention can be applied to an ink ribbon printer engine or the like. The printing mechanism 8
A data decompression unit, which is not shown in detail, regardless of hardware or software, is provided therein, and when the transfer data transferred from the control unit 7 via the interface I / F is determined to be compressed data. The compressed data is decompressed into predetermined print data, and the printer engine of the printing mechanism unit 8 can continuously print on the recording material regardless of whether the transfer data is print data or compressed data. It is configured as follows.

【0029】出力部6と印刷機構部8を結んでいる細線
は印刷機構部8の状態取得用のもの制御線CLである。
A thin line connecting the output section 6 and the printing mechanism section 8 is a control line CL for acquiring the state of the printing mechanism section 8.

【0030】カラー印刷の場合は、例えばイエロー,マ
ゼンタ,シアン,ブラックの4色を同一ラインに色指定
して送信し、その後1ライン搬送指示を行うことで印刷
するものである。ただし、本実施例では同様のパターン
が4回繰り返されるだけなので1色のみを説明してあ
る。さらに、給排紙処理も省略してある。
In the case of color printing, for example, four colors of yellow, magenta, cyan, and black are designated for the same line and transmitted, and thereafter, a one-line conveyance instruction is issued to perform printing. However, in this embodiment, only one color is described because the same pattern is repeated only four times. Further, the paper supply / discharge processing is omitted.

【0031】図2は、図1に示した印刷機構部8で処理
されるビットマップイメージデータの例を示す図であ
り、用紙上に図2の(a)のような出力が必要な場合、
1ページ分全ての領域をRAM5からビットマップイメ
ージ領域として確保した場合は図2の(b)のようにフ
ルビットマップにそのまま描画する。1ページを分割し
て描画する場合は、例えばRAM5からページ高の1/
5の領域のビットマップイメージ領域を確保した場合を
図2の(c)に示す。
FIG. 2 is a diagram showing an example of bitmap image data processed by the printing mechanism section 8 shown in FIG. 1. When output as shown in FIG.
When the entire area for one page is secured from the RAM 5 as a bitmap image area, the image is directly drawn on a full bitmap as shown in FIG. When drawing one page by dividing it, for example, 1 / page of the page height is read from the RAM 5.
FIG. 2C shows a case where the bitmap image area of the area No. 5 is secured.

【0032】この時は、ずらし描画処理と転送処理を5
回行って1ページ分を描画出力するものである。この時
の分割の1つをバンドと呼ぶことにし、この場合は、5
バンド/ページとなる。
At this time, the shift drawing process and the transfer process
This operation is repeated to draw and output one page. One of the divisions at this time is called a band, and in this case, 5
Band / Page.

【0033】図3は、図1に示した印刷機構部8に転送
される第1の出力データ処理状態を示す図である。
FIG. 3 is a diagram showing a first output data processing state transferred to the printing mechanism section 8 shown in FIG.

【0034】図において、9は圧縮処理を行う際の作業
用バッファ領域で、図1に示したRAM5上に確保され
る。10は図1に示したRAM5上に確保される通常の
ビットマップイメージ領域であるが、本実施例の場合
は、描画の終了した各ラインを元データとし、圧縮処理
作業用バッファ9に圧縮データを作成し、圧縮データ数
と(元データ数−2)を比較し、圧縮が有効になってい
る場合は、元データ領域の先頭2バイト分に圧縮データ
長を格納し、残りの領域に圧縮後データを複写すること
でライン単位の圧縮処理データをも格納するのに使用す
る。
In the figure, reference numeral 9 denotes a work buffer area for performing a compression process, which is secured on the RAM 5 shown in FIG. Reference numeral 10 denotes a normal bitmap image area secured on the RAM 5 shown in FIG. 1. In the case of this embodiment, each line for which rendering has been completed is used as original data, and the compressed data is stored in the compression work buffer 9. Is created, and the number of compressed data is compared with (the number of original data−2). If compression is enabled, the compressed data length is stored in the first two bytes of the original data area, and the remaining area is compressed. It is used to store the compression processing data in line units by copying the subsequent data.

【0035】11は圧縮の有無を示すフラグ配列であ
る。本例では前述したライン単位の圧縮が有効だった場
合に「1」を、無効だった場合には「0」を設定するこ
とで転送時にデータの識別を行うために用いるものであ
る。以下、本実施例と第1〜第3の発明の各手段との対
応及びその作用について図1〜図3等を参照して説明す
る。
Reference numeral 11 denotes a flag array indicating the presence or absence of compression. In this example, "1" is set when the above-described line-by-line compression is effective, and "0" is set when the compression is invalid, so that data is identified at the time of transfer. Hereinafter, the correspondence between this embodiment and each means of the first to third inventions and the operation thereof will be described with reference to FIGS.

【0036】[0036]

【0037】[0037]

【0038】[0038]

【0039】図4,図5は本発明に係る印刷装置のデー
タ転送制御方法の第1実施例を示すフローチャートであ
る。なお、(1)〜(27)は各ステップを示し、図2
の(b)のフルビットマップで出力する場合と、図2の
(c)の1つのバンドを出力する場合に相当するもので
ある。
FIGS. 4 and 5 are flowcharts showing a first embodiment of a data transfer control method for a printing apparatus according to the present invention. (1) to (27) show each step, and FIG.
2B corresponds to the case of outputting a full bitmap, and FIG. 2C corresponds to the case of outputting one band.

【0040】また、ビットマップイメージデータの描画
が終了し、出力部6から印刷機構部8へデータ転送する
ところから説明する。本実施例中では、多プレーンを使
用した場合は同様のことをプレーン数分行うだけなの
で、1プレーン分で説明してある。
Further, description will be made from the point that the drawing of the bitmap image data is completed and the data is transferred from the output unit 6 to the printing mechanism unit 8. In the present embodiment, when multiple planes are used, the same operation is performed only for the number of planes.

【0041】データ転送は、ステップ(1)で転送した
ライン数を示す変数linecntを「0」に、転送元
となるビットマップイメージ領域10の先頭アドレスを
変数lineptrに、ビットマップイメージ領域10
の幅を変数framewidthに初期設定する。
In the data transfer, the variable linenct indicating the number of lines transferred in step (1) is set to "0", the start address of the bitmap image area 10 as the transfer source is set to the variable lineptr, the bitmap image area 10
Is initially set to the variable framewidth.

【0042】ステップ(2)で図示していないフラグ領
域を参照して、現在転送しようとしているラスタに印刷
すべきデータがあるかどうかをチェックする。このフラ
グ領域は、ページレイアウト時や、描画時などにそのラ
インにデータを描画する指示や、描画したか等によって
設定されるもので、このフラグが設定されていないライ
ンは印刷データが存在しないことを意味するものであ
る。
In step (2), by referring to a flag area (not shown), it is checked whether or not there is data to be printed on the raster currently being transferred. This flag area is set according to the instruction to draw data on the line at the time of page layout or drawing, or whether drawing is performed, etc. Lines for which this flag is not set have no print data Is meant.

【0043】そして、印刷すべきデータが存在する場合
は、ステップ(3)で、圧縮後のデータ格納領域の先頭
アドレスを示す変数bufptrに図3で示した作業用
バッファ9の先頭アドレスを設定する。そして、ステッ
プ(4)での圧縮処理ルーチンは、引き数として元デー
タ先頭アドレスlineptrと、圧縮データ格納アド
レスbufptrと、元データ長framewidth
からデータ圧縮処理を行い、圧縮データ格納アドレスb
ufptrから順に圧縮データを格納し、全てのデータ
を圧縮格納したのち、戻り値として圧縮データ数を返す
ように構成されている。
If there is data to be printed, in step (3), the head address of the working buffer 9 shown in FIG. 3 is set in a variable bupptr indicating the head address of the compressed data storage area. . Then, the compression processing routine in step (4) includes an original data head address lineptr, a compressed data storage address bufptr, and an original data length framewidth as arguments.
From the compressed data storage address b
Compressed data is stored in order from ufptr, all data is compressed and stored, and then the number of compressed data is returned as a return value.

【0044】そして、ステップ(5)でステップ(4)
での戻り値である圧縮データ数と元データ数−2を比較
する。
Then, in step (5), step (4)
The number of compressed data, which is the return value of, is compared with the number of original data -2.

【0045】この時、圧縮データ数の方が小さい場合は
圧縮処理が有効であると判断し、ステップ(6)で圧縮
の有無フラグ配列11のlinecnt番目に圧縮処理
ラインを意味する‘1’を設定する。
At this time, if the number of compressed data is smaller, it is determined that the compression processing is effective, and in step (6), “1” meaning a compression processing line is placed at the lineectnt-th of the compression presence / absence flag array 11. Set.

【0046】そして、ステップ(7)で元データ先頭ア
ドレスlineptrの示すアドレスから2バイトの領
域にステップ(4)の戻り値である圧縮データ数を設定
し、ステップ(8)で圧縮データ格納アドレスbufp
trを先頭とした圧縮後データ領域を元データ先頭アド
レスlineptr+2の示す領域に圧縮後データ数分
コピーする。
Then, in step (7), the number of compressed data, which is the return value of step (4), is set in a 2-byte area from the address indicated by the original data head address lineptr, and in step (8), the compressed data storage address bufp
The compressed data area starting from tr is copied to the area indicated by the original data start address linenptr + 2 by the number of compressed data.

【0047】これにより、現在処理しているラインは圧
縮処理が終了する。
Thus, the compression processing is completed for the line currently being processed.

【0048】一方、ステップ(5)で圧縮データ数が元
データ数−2より小さくならなかった場合は、ステップ
(9)で圧縮の有無フラグ配列11のlinecnt番
目に非圧縮データラインを示す‘0’を設定する。
On the other hand, if the number of compressed data does not become smaller than the number of original data -2 in step (5), in step (9), "0" indicating the non-compressed data line at the linenct-th of the compression presence / absence flag array 11 'Is set.

【0049】そしてどちらの場合も、ステップ(10)
で元データ先頭アドレスlineptrをビットマップ
イメージ幅分加算することで次のラインを対象とするよ
うに更新し、ラインカウンタを「1」進める。
In either case, step (10)
Then, the original data head address lineptr is updated by adding the bitmap image width so as to target the next line, and the line counter is advanced by "1".

【0050】ステップ(11)でlinecntから全
ライン数を処理したかどうかを判断し、まだ終了してい
ない場合は、ステップ(2)に戻って同様の処理を行
う。全てのライン数を処理した場合は、実際に印刷する
転送処理に移る。
In step (11), it is determined whether or not all lines have been processed from lineectnt. If processing has not been completed yet, the flow returns to step (2) to perform the same processing. When all the line numbers have been processed, the process proceeds to a transfer process for actually printing.

【0051】まず、図5のステップ(12)で変数co
pycntに現在指定されている指定コピー枚数を設定
する。そして、用紙の給紙処理を行う(13)。これは
出力部6があらかじめ定められたデータ列を印刷機構部
8に送信することで行われたり、信号線を操作したりし
て行われる。
First, in step (12) of FIG.
The designated number of copies currently designated is set in pycnt. Then, a paper feeding process is performed (13). This is performed by the output unit 6 transmitting a predetermined data string to the printing mechanism unit 8 or by operating a signal line.

【0052】次いで、ステップ(14)で現在の処理ラ
イン番号を示す変数linecntの「0」を、転送ラ
インの先頭アドレスを示す変数lineptrにビット
マップイメージ領域10の先頭アドレスを、1ラインの
データ数を示す変数framewidthにビットマッ
プイメージ領域10のフレーム幅値をそれぞれ初期設定
する。
Next, in step (14), “0” of the variable “linent” indicating the current processing line number is set, and the start address of the bitmap image area 10 is set to the variable “lineptr” indicating the start address of the transfer line. Is initially set to the variable framewidth indicating the frame width value of the bitmap image area 10.

【0053】次いで、ステップ(15)で図示していな
いフラグ領域を参照して、現在転送しようとしているラ
スタに印刷すべきデータがあるかどうかをチェックす
る。このフラグ領域は、ページレイアウト時や、描画時
などにそのラインにデータを描画する指示や、描画した
か等によって設定されるもので、このフラグが設定され
ていないラインは印刷データが存在しないことを意味す
るものである。
Next, in step (15), it is checked whether or not there is data to be printed on the raster to be transferred, with reference to a flag area (not shown). This flag area is set according to the instruction to draw data on the line at the time of page layout or drawing, or whether drawing is performed, etc. Lines for which this flag is not set have no print data Is meant.

【0054】データが存在する場合は、ステップ(1
6)で圧縮の有無フラグ配列11の変数linecnt
番目を参照して、圧縮処理されたラインを意味する
‘1’であった場合は、ステップ(17)で出力部6か
ら印刷機構部8に対してこれから圧縮データを転送する
旨を通知する。
If data exists, step (1)
In 6), the variable linentnt of the compression flag flag array 11
If the value is “1” meaning a line subjected to compression processing, the output unit 6 notifies the printing mechanism unit 8 in step (17) that the compressed data is to be transferred.

【0055】これはあらかじめインタフェースとして定
められたデータ列であったり信号線(本実施例では図1
の制御線CLによる)操作であったりする。そして、ス
テップ(18)で圧縮データ数としてlineptrが
示すアドレスから2バイトの領域を読み出してデータ数
とし、ステップ(19)で変数lineptr+2で示
される領域から1ラインをステップ(18)で読み出し
たデータ数分転送処理を行う。
This is a data string or a signal line defined in advance as an interface (in this embodiment, FIG.
Operation by the control line CL). Then, in step (18), a 2-byte area is read from the address indicated by lineptr as the number of compressed data to obtain the number of data, and in step (19) one line is read from the area indicated by the variable lineptr + 2 in step (18). Perform transfer processing for several minutes.

【0056】これにより印刷機構部8は圧縮データとし
て転送されたデータを処理する。
Thus, the printing mechanism 8 processes the data transferred as compressed data.

【0057】一方、ステップ(16)で圧縮の有無フラ
グ配列の内容が非圧縮を意味する‘0’であった場合
は、ステップ(20)で通常転送を指定する。
On the other hand, if the content of the compression presence / absence flag array is "0" meaning non-compression in step (16), normal transfer is designated in step (20).

【0058】そして、ステップ(21)で変数line
ptrを先頭アドレスとしたframewidth分の
データを転送処理する。これにより印刷機構部8は通常
データとして転送されたデータを処理する。
Then, in step (21), the variable line
Transfer data of framewidth with ptr as the start address. Thus, the printing mechanism 8 processes the data transferred as the normal data.

【0059】一方、ステップ(15)で転送データがな
いと判断された場合も含めて、ステップ(22)で1ラ
イン搬送処理を行い、印刷機構部8側の印刷ラインを1
ライン分進める。
On the other hand, including the case where it is determined in step (15) that there is no transfer data, one-line transport processing is performed in step (22), and the printing line on the printing
Advance by line.

【0060】次いで、ステップ(23)では、制御部7
側の1ライン更新処理で、変数lineptrにビット
マップイメージ領域幅であるframewidth分を
加算することで行い、linecntも「1」進める。
Next, at step (23), the controller 7
In the one-line update process on the side, this is performed by adding the framewidth, which is the bitmap image area width, to the variable lineptr, and the linectnt is also advanced by "1".

【0061】次いで、ステップ(24)で全ラインを転
送したかどうかを変数linecntから判断し、全て
のラインの転送処理が終了していない場合は、ステップ
(15)に戻って、残りのラインを同様に処理する。
Next, in step (24), it is determined from the variable "linent" whether or not all the lines have been transferred. If the transfer processing of all the lines has not been completed, the flow returns to step (15) to change the remaining lines. The same processing is performed.

【0062】一方、ステップ(24)で全てのラインを
転送した場合はステップ(25)で用紙の排紙処理を行
う。
On the other hand, if all the lines have been transferred in step (24), the paper is discharged in step (25).

【0063】これは給紙処理と同様に出力部6と印刷機
構部8との間で定められたインタフェースによるもので
ある。以上で1ページ分の転送処理が終了する。
This is based on an interface defined between the output unit 6 and the printing mechanism unit 8 as in the paper feeding process. Thus, the transfer process for one page is completed.

【0064】次にステップ(26)でコピー枚数を示す
変数copycntを「1」減らし、ステップ(27)
でこのcopycntを参照して全ページの出力が終了
したかどうかを判断し、まだコピーすべきページが残っ
ている場合は、ステップ(13)に戻って次の用紙に印
刷する。
Next, in step (26), a variable copycnt indicating the number of copies is reduced by "1", and step (27)
It is determined whether output of all pages has been completed by referring to this copycnt. If there are still pages to be copied, the process returns to step (13) to print on the next sheet.

【0065】一方、ステップ(27)で、全てのページ
を出力したと判定された場合は、処理を終了する。
On the other hand, if it is determined in step (27) that all pages have been output, the processing is terminated.

【0066】[0066]

【0067】[0067]

【0068】図において、データ(1)からデータ
(3)のような3ページのデータ(ページデータ)を印
刷する場合で、ビットマップイメージ領域(本実施例で
は図1のRAM5上に確保される)が複数(本例では2
つ)存在する場合の処理を示す。2つのビットマップイ
メージ領域をそれぞれ(A),(B)とする。
In the figure, when printing three pages of data (page data) such as data (1) to data (3), a bitmap image area (secured in the RAM 5 of FIG. 1 in this embodiment). ) Is plural (2 in this example)
One) shows the processing when it exists. Let the two bitmap image areas be (A) and (B) respectively.

【0069】なお、図中の時間軸は説明上の時間的な順
序を示すポイントを示すものであり、各ポイント間の比
は実時間比とは必ずしも一致していない。
It should be noted that the time axis in the figure shows points indicating the temporal order in the description, and the ratio between the points does not always match the real time ratio.

【0070】時間軸p.0(以下、時間軸の記述は省略
し、単にp.0のように記述する)では、両方のビット
マップイメージ領域が‘空の状態’である。この状態か
ら図のデータ(1)〜(3)を印刷する場合は、p.1
においてビットマップイメージ領域(A)に描画処理を
開始し、p.2で終了する。
The time axis p. 0 (hereinafter, the description of the time axis is omitted, and simply described as p. 0), both bitmap image areas are “empty”. To print the data (1) to (3) shown in FIG. 1
Starts drawing processing in the bitmap image area (A) at p. End with 2.

【0071】p.3でビットマップイメージ領域(A)
の転送を開始する。転送処理は、描画制御処理と並行し
て行う。この時、既にページデータ(2)が存在するた
め、ビットマップイメージ領域を(B)に切り替えて描
画処理を開始する。
P. 3 for bitmap image area (A)
Start transfer. The transfer process is performed in parallel with the drawing control process. At this time, since the page data (2) already exists, the bitmap image area is switched to (B) and the drawing process is started.

【0072】p.4で描画が終了した際、シリアルプリ
ンタなどの印刷処理が比較的遅い場合は、印刷機構部8
への転送処理よりも描画処理の方が速いことが多く、ビ
ットマップイメージ領域(B)の転送処理は、先のビッ
トマップイメージ領域(A)が終了するまで行うことが
できない。このため、ここで待ち状態になってしまうた
め、システムパフォーマンスが低下する。
P. If the printing process of the serial printer or the like is relatively slow when the drawing is completed in step 4, the printing mechanism unit 8
The drawing process is often faster than the transfer process to the bitmap image area (B), and the transfer processing of the bitmap image area (B) cannot be performed until the previous bitmap image area (A) ends. For this reason, a waiting state is entered here, and the system performance is reduced.

【0073】そこで、この待ち時間内でビットマップイ
メージ領域の圧縮処理を行えば、次にデータ転送する際
により早い転送処理を行うことができるようになる。し
かし、あと数ラインを残すだけといった状態に圧縮処理
を行うと、却って印刷機構部8を待たせることになるた
め、あらかじめ定めたライン数の転送が残っている場合
は圧縮処理を行い、そうでない場合は、もうすぐ終わる
と判断して圧縮処理を無理に行わずに通常転送処理を行
うように制御する。
Therefore, if the compression processing of the bitmap image area is performed within this waiting time, the transfer processing can be performed earlier in the next data transfer. However, if the compression process is performed to leave only a few more lines, the printing mechanism unit 8 will be made to wait instead. If the transfer of a predetermined number of lines remains, the compression process is performed. In this case, it is determined that the processing is about to be completed soon, and control is performed so that the normal transfer processing is performed without forcibly performing the compression processing.

【0074】p.4では先に定めたライン数よりも多く
残っていた場合を示しており、この時は圧縮処理を行
う。
P. 4 shows the case where the number of lines remains larger than the previously determined number of lines. At this time, compression processing is performed.

【0075】p.5でビットマップイメージ領域(A)
の転送処理が終了したので、p.6で、圧縮処理された
ビットマップイメージ領域(B)を転送開始する。それ
と同時にページデータ(3)が存在するので、描画対象
のビットマップイメージ領域を(A)に切り替えて描画
処理を開始する。
P. 5 for bitmap image area (A)
Is completed, p. At 6, the transfer of the bitmap image area (B) that has been subjected to the compression processing is started. At the same time, since the page data (3) exists, the bitmap image area to be rendered is switched to (A) and the rendering process is started.

【0076】p.7で描画処理を終了した場合、転送処
理中のビットマップイメージ領域(B)に対応するペー
ジデータは先のライン数以下を残すのみとなっているも
のとして、圧縮処理を行わないで、単に転送が終了する
のを待ち、p.8でビットマップイメージ領域(B)の
転送が終了したことによって、今度はビットマップイメ
ージ領域(A)の転送処理を開始し、p.10でビット
マップイメージ領域(A)の転送が終了するといった制
御方法である。
P. When the drawing process is completed in step 7, the page data corresponding to the bitmap image area (B) during the transfer process is assumed to have only the number of lines equal to or less than the previous number of lines, and is simply transferred without performing the compression process. Is completed, and p. 8, the transfer processing of the bitmap image area (A) is started, and the transfer processing of the bitmap image area (A) is started. This is a control method in which the transfer of the bitmap image area (A) ends at 10.

【0077】[0077]

【0078】上記のように構成された印刷装置におい
て、すなわち、データ源(外部機器1)からの印刷情報
を受信し、該受信した印刷情報を解析してビットイメー
ジに展開した印刷データを面単位に蓄える複数の記憶部
(本実施例ではRAM5にフルイメージ展開する、例え
ばペイントメモリやフレームメモリとして、例えば2ペ
ージ分確保される)と、この各記憶部に蓄えられた印刷
データに基づく転送データをプリンタエンジンを備える
印刷機構部8に所定のインタフェースI/Fを介して転
送する制御部7とを有する印刷装置において、一方の記
憶部から所定のインタフェースI/Fを介して転送デー
タを印刷機構部に転送中に、他方の記憶部へのビットイ
メージ展開終了時における先行中の転送データの残量状
態を判別する判別部(CPU4)と、この判別部の判別
結果に基づいて他方の記憶部に対してビットイメージ展
開された印刷データを圧縮した圧縮データを他方の記憶
部に書き込む圧縮部(ROM3に格納される圧縮プログ
ラムに基づく手段として構成される)とを制御部7に設
け、CPU4により一方の記憶部(RAM5上に確保さ
れる図6に示すデータ領域(A))から所定のインタフ
ェースを介して転送データを印刷機構部8に転送中に、
他方の記憶部(RAM5上に確保される図6に示すデー
タ領域(B))へのビットイメージ展開終了時における
先行する転送データの残量状態を判別し、該判別結果に
基づいて圧縮部が他方の記憶部に対してビットイメージ
展開された印刷データを圧縮した圧縮データを他方の記
憶部に書き込み、制御部が一方の記憶部からの転送デー
タ終了後に、他方の記憶部に書き込まれた圧縮データを
次の転送データとして所定のインタフェースを介して印
刷機構部に転送して、各記憶部から転送するデータ量を
減らして、転送時間を短縮することを可能とする。
In the printing apparatus configured as described above, print data received from a data source (external device 1) is received, and the received print information is analyzed, and the print data expanded into a bit image is converted into a plane unit. (In this embodiment, a full image is developed in the RAM 5, for example, two pages are secured as a paint memory or a frame memory, for example), and transfer data based on the print data stored in each of the memory units And a control unit 7 for transferring the print data to a printing mechanism unit 8 having a printer engine via a predetermined interface I / F, and transferring the transfer data from one storage unit via the predetermined interface I / F to the printing mechanism. Determination unit that determines the state of the remaining amount of transfer data being transferred at the end of bit image development to the other storage unit during transfer to the storage unit A CPU 4) and a compression unit (a compression program stored in the ROM 3) that writes, in the other storage unit, compressed data obtained by compressing print data that has been bit-image expanded in the other storage unit based on the determination result of the determination unit Is provided in the control unit 7, and the CPU 4 prints the transfer data from one of the storage units (the data area (A) shown in FIG. 6 secured on the RAM 5) through a predetermined interface. While transferring to part 8,
The remaining storage state of the preceding transfer data at the end of the bit image development to the other storage unit (the data area (B) shown in FIG. 6 secured on the RAM 5) is determined, and based on the determination result, the compression unit determines The other storage unit writes compressed data obtained by compressing the bit image-decompressed print data to the other storage unit, and the control unit transmits the compressed data written to the other storage unit after completion of the transfer data from one storage unit. The data is transferred as the next transfer data to the printing mechanism via a predetermined interface, and the amount of data transferred from each storage unit is reduced, so that the transfer time can be reduced.

【0079】[0079]

【0080】図7,図8は本発明に係る印刷装置のデー
タ転送制御方法の第2実施例を示すフローチャートであ
り、特に本実施例は、図6の説明したように、制御処理
(描画を含む)とデータ転送処理が並列処理する構造に
なっているため、フローチャートは制御処理部分と転送
処理部分の2つに分けており、図7が制御処理部分、図
8が転送処理部分に相当する。以下、図7の制御処理部
分から説明する。なお、図7における(1)〜(11)
および図8の(1)〜(16)は各ステップを示す。
FIGS. 7 and 8 are flow charts showing a second embodiment of the data transfer control method of the printing apparatus according to the present invention. In particular, in the present embodiment, as described with reference to FIG. ) And data transfer processing are performed in parallel, so the flowchart is divided into two parts, a control processing part and a transfer processing part. FIG. 7 corresponds to the control processing part and FIG. 8 corresponds to the transfer processing part. . Hereinafter, the control processing part of FIG. 7 will be described. Note that (1) to (11) in FIG.
And (1) to (16) of FIG. 8 show each step.

【0081】描画すべきページが存在した時に出力制御
が制御部7によって開始され、ステップ(1)で初期設
定として描画処理対象のビットマップイメージ領域を示
す変数paintswをビットマップイメージ領域
(A)を示す数値「0」に、転送処理対象のビットマッ
プイメージ領域を示す変数transswを「0」に、
残り転送ライン数を示す変数transcntを「0」
に、ビットマップイメージ領域の状態を示す配列sta
tus[0],status[1]にそれぞれ空き状態
を示す数値「0」を設定する。
Output control is started by the control unit 7 when there is a page to be drawn. In step (1), a variable paintsw indicating a bitmap image area to be drawn is set as an initial setting in the bitmap image area (A). The variable transw indicating the bitmap image area to be transferred is set to “0”,
The variable transscnt indicating the number of remaining transfer lines is set to “0”
Shows an array sta indicating the state of the bitmap image area.
A numerical value “0” indicating an empty state is set in each of tus [0] and status [1].

【0082】そして、ビットマップイメージ領域の先頭
アドレスを示す配列adres[0],adres
[1]、データ幅を示すwidth[0],width
[1]、ライン数を示すheight[0,heigh
t[1]にそれぞれビットマップイメージ領域(A),
(B)の値を設定する。
An array adres [0], adres indicating the start address of the bitmap image area
[1], width [0], width indicating data width
[1] height [0, height indicating the number of lines
At t [1], the bitmap image area (A),
Set the value of (B).

【0083】次いで、ステップ(2)で描画対象のビッ
トマップイメージ領域の状態をチェックし、空き状態で
あればそのまま変数paintswの示すビットマップ
イメージ領域を描画対象とし、空き状態でなければ、転
送処理中であるのでステップ(3)で変数paints
wの値が「0」ならば「1」、「1」ならば「0」のよ
うに反転させる。同時に転送処理が行われることはない
ので、これで、変数paintswはもう一方のビット
マップイメージ領域を示すようになる。
Next, in step (2), the state of the bitmap image area to be drawn is checked. If the state is free, the bitmap image area indicated by the variable paintsw is used as the drawing target. In step (3), the variable paints
If the value of w is “0”, it is inverted to “1”, and if it is “1”, it is inverted to “0”. Since the transfer processing is not performed at the same time, the variable paintsw now indicates the other bitmap image area.

【0084】ステップ(4)では、変数paintsw
をインデックスとして、adres[paints
w],width[paintsw],height
[paintsw]の情報で示されるビットマップイメ
ージ領域に従来通り描画処理を行う。
In step (4), the variable paintsw
Is used as an index, and the address [points
w], width [pointsw], height
A drawing process is performed on the bitmap image area indicated by the information of [paintsw] as before.

【0085】次いで、ステップ(5)で現在転送中のペ
ージがあるかどうかを残り転送ライン数変数trans
cntで判断し、「0」でない場合は転送中なので、ス
テップ(6)でさらに、あらかじめROM3に格納され
た圧縮処理を行うかどうかのライン残数と比較して、残
り転送ライン数がそれより多い場合は、ステップ(7)
でページ圧縮処理を行う。この処理は前実施例と同様の
処理である。
Next, in step (5), it is determined whether or not there is a page currently being transferred.
If it is not "0", it means that the transfer is in progress. In step (6), the number of remaining transfer lines is compared with the number of remaining lines for performing the compression process stored in the ROM 3 in advance. If so, step (7)
Performs page compression processing. This process is the same as the previous embodiment.

【0086】ステップ(5)で転送中のページがない場
合、ステップ(6)で残り転送ライン数が少なかった場
合も含めて、ステップ(8)でtranscntが
「0」になるまで転送終了待ちを行う。そして、転送が
終了したならば、ステップ(9)で転送対象のビットマ
ップイメージ領域変数transswにpaintsw
の値を設定することによって、次に転送すべきビットマ
ップイメージ領域情報を渡して、ステップ(10)で転
送開始指示を行う。この転送開始指示によって図8の転
送処理が並列処理で開始される。
If there is no page being transferred in step (5), including the case where the number of remaining transfer lines is small in step (6), wait for transfer completion until the transcnt becomes "0" in step (8). Do. When the transfer is completed, in step (9), paintsw is set to the bitmap image area variable transsw to be transferred.
, The bitmap image area information to be transferred next is passed, and a transfer start instruction is issued in step (10). The transfer process of FIG. 8 is started in parallel by this transfer start instruction.

【0087】次いで、ステップ(11)で描画待ちをし
ている残りのページがあるかどうかをチェックし、存在
する場合は、ステップ(2)に戻って、次の描画処理を
行い、存在しない場合は処理終了となる。
Next, in step (11), it is checked whether there are any remaining pages waiting to be drawn. If there are any, the process returns to step (2) to perform the next drawing process. Ends the processing.

【0088】次に図8での、転送開始指示された転送処
理についてのフローチャートを説明する。
Next, a flow chart of the transfer processing instructed to start the transfer in FIG. 8 will be described.

【0089】転送開始指示により、ステップ(1)で用
紙の給紙処理を行う。これは出力部6があらかじめ定め
られたデータ列を印刷機構部8に送信することで行われ
たり、信号線(本実施例では制御線CLによる)を操作
したりして行われる。
In response to the transfer start instruction, the paper is fed in step (1). This is performed by the output unit 6 transmitting a predetermined data string to the printing mechanism unit 8 or by operating a signal line (in this embodiment, by the control line CL).

【0090】ステップ(2)で現在の処理ライン番号を
示す変数linecntに「0」を、転送ラインの先頭
アドレスを示す変数lineptrにビットマップイメ
ージ領域の先頭アドレスとしてadores[tran
ssw]を、1ラインのデータ数を示す変数frame
widthにビットマップイメージ領域のフレーム幅値
としてwidth[transsw]をそれぞれ初期設
定する。
In step (2), “0” is set to the variable linentnt indicating the current processing line number, and “adores [tran] is set to the variable lineptr indicating the start address of the transfer line as the start address of the bitmap image area.
ssw] is a variable frame indicating the number of data in one line.
Initially, width [transsw] is set as the width of the frame width of the bitmap image area.

【0091】ステップ(3)で残り転送ライン数変数t
ranscntにheight[transsw]とビ
ットマップイメージ領域の状態配列status[tr
anssw]に転送中を示す数値を設定する。
In step (3), the remaining transfer line number variable t
height [transsw] in the ranscnt and the status array status [tr of the bitmap image area
[answ]] is set to a numerical value indicating that data is being transferred.

【0092】ステップ(4)で図示していないフラグ領
域を参照して、現在転送しようとしているラスタに印刷
すべきデータがあるかどうかをチェックする。このフラ
グ領域は、ページレイアウト時や、描画時などにそのラ
インにデータを描画する指示や、描画したか等によって
設定されるもので、このフラグが設定されていないライ
ンは印刷データが存在しないことを意味するものであ
る。
In step (4), by referring to a flag area (not shown), it is checked whether or not there is data to be printed on the raster currently being transferred. This flag area is set according to the instruction to draw data on the line at the time of page layout or drawing, or whether drawing is performed, etc. Lines for which this flag is not set have no print data Is meant.

【0093】該判断によりデータが存在する場合は、ス
テップ(5)で圧縮の有無フラグ配列のlinecnt
番目を参照して、圧縮処理されたラインを意味する
‘1’であった場合は、ステップ(6)で出力部6から
印刷機構部8に対してこれから圧縮データを転送する旨
を通知する。
If there is data as a result of the determination, in step (5), the line
If the value is “1” meaning a line subjected to compression processing, the output unit 6 notifies the printing mechanism unit 8 in step (6) that the compressed data is to be transferred.

【0094】これはあらかじめインタフェースとして定
められたデータ列であったり信号線(本実施例では、図
1に示した制御線CLによる)操作であったりする。
This may be a data sequence predetermined as an interface or an operation of a signal line (in this embodiment, by the control line CL shown in FIG. 1).

【0095】そして、ステップ(7)で圧縮データ数と
して変数lineptrが示すアドレスから2バイトの
領域を読み出してデータ数とし、ステップ(8)でli
neptr+2で示される領域から1ラインをステップ
(7)で読み出したデータ数分転送処理を行う。これに
より印刷機構部8は圧縮データとして転送されたデータ
を処理する。
Then, in step (7), a 2-byte area is read from the address indicated by the variable lineptr as the number of compressed data to obtain the number of data.
Transfer processing is performed for one line from the area indicated by neptr + 2 for the number of data read in step (7). Thus, the printing mechanism 8 processes the data transferred as the compressed data.

【0096】一方、ステップ(5)で圧縮の有無フラグ
配列の内容が非圧縮を意味する‘0’であった場合は、
ステップ(9)で通常転送を指定する。そして、ステッ
プ(10)で変数lineptrを先頭アドレスとした
framewidth分のデータを転送処理する。これ
により印刷機構部8は通常データとして転送されたデー
タを処理する。
On the other hand, if the content of the compression presence / absence flag array is “0” meaning uncompression in step (5),
In step (9), normal transfer is designated. Then, in step (10), data for framewidth with the variable lineptr as the start address is transferred. Thus, the printing mechanism 8 processes the data transferred as the normal data.

【0097】一方、ステップ(4)で転送データがない
と判断された場合も含めて、ステップ(11)で1ライ
ン搬送処理を行い、印刷機構部8側の印刷ラインを1ラ
イン分進める。
On the other hand, including the case where it is determined in step (4) that there is no transfer data, one-line transport processing is performed in step (11), and the printing line on the printing mechanism unit 8 side is advanced by one line.

【0098】次いで、ステップ(12)では、制御部7
側の1ライン更新処理で、変数lineptrにビット
マップイメージ領域幅であるframewidth分を
加算することで行い、linecntも「1」進める。
Next, at step (12), the controller 7
In the one-line update process on the side, this is performed by adding the framewidth, which is the bitmap image area width, to the variable lineptr, and the linectnt is also advanced by "1".

【0099】次いで、ステップ(13)で残り転送ライ
ン数transcntを「1」減らす。制御部7はこの
変数を参照しながら処理を進める。
Next, in step (13), the number of remaining transfer lines transcnt is reduced by "1". The control unit 7 proceeds with the process while referring to this variable.

【0100】次いで、ステップ(14)で全ラインを転
送したかどうかを変数linecntから判断し、全て
のラインの転送処理が終了していない場合は、ステップ
(4)に戻って残りのラインを同様に処理する。
Next, in step (14), it is determined from the variable linent whether or not all lines have been transferred. If transfer processing for all lines has not been completed, the process returns to step (4) and the remaining lines are similarly processed. To process.

【0101】一方、ステップ(14)で全てのラインを
転送したと判定した場合は、ステップ(15)で用紙の
排紙処理を行う。これは給紙処理と同様に出力部6と印
刷機構部8との間で定められたインタフェースによるも
のである。
On the other hand, if it is determined in step (14) that all the lines have been transferred, the paper is discharged in step (15). This is based on an interface defined between the output unit 6 and the printing mechanism unit 8 as in the sheet feeding process.

【0102】そして、ステップ(16)で転送の終了し
たビットマップイメージ領域の状態配列status
[transsw]に空き状態を示す数値を設定する。
Then, the status array status of the bitmap image area that has been transferred in step (16)
A numerical value indicating an empty state is set in [transsw].

【0103】これで1ページ分の転送処理が終了する。
以上の2つの処理(図7,図8に示すステップ処理)を
並列的に行うことで、プリンタシステムの状態に応じた
適切な圧縮転送処理を行うことができる。なお、上記説
明では、コピー枚数処理は省略してある。
Thus, the transfer process for one page is completed.
By performing the above two processes (step processes shown in FIGS. 7 and 8) in parallel, it is possible to perform an appropriate compression transfer process according to the state of the printer system. In the above description, the copy number process is omitted.

【0104】以上の説明では、フルビットマップ領域を
確保した場合に限って説明してあるが、図2の(c)の
バンドイメージバッファに分割されている場合でも、バ
ンドイメージ領域が複数存在する場合には、本発明を適
用することができる。
In the above description, only the case where the full bitmap area is secured is described. However, even when the image is divided into the band image buffers shown in FIG. 2C, a plurality of band image areas exist. In such a case, the present invention can be applied.

【0105】上記のように構成された印刷装置のデータ
転送制御方法において、すなわちデータ源(外部機器
1)からの印刷情報を受信し、該受信した印刷情報を解
析してビットイメージに展開した印刷データを面単位に
蓄える複数の記憶部(RAM5上に確保される、例えば
ページ単位で2ページ分のフレームメモリ)と、この各
記憶部に蓄えられた印刷データに基づく転送データをプ
リンタエンジンを備える印刷機構部8に所定のインタフ
ェースI/Fを介して転送する制御部7とを有する印刷
装置のデータ転送制御方法において、一方の記憶部(R
AM5上に確保される図6に示すデータ領域(A))か
ら所定のインタフェースを介して転送データを印刷機構
部8に転送中に、他方の記憶部(RAM5上に確保され
る図6に示すデータ領域(B))へのビットイメージ展
開終了時における先行中の転送データの残量状態を判別
する判別工程(図7のステップ(4)〜(6))と、他
方の記憶部に対してビットイメージ展開された印刷デー
タを圧縮した圧縮データを他方の記憶部に書き込む圧縮
工程(図7のステップ(7))と、一方の記憶部からの
転送データ終了後に、他方の記憶部に書き込まれた圧縮
データを次の転送データとして前記所定のインタフェー
スを介して印刷機構部8に転送する転送工程(図8のス
テップ(4)〜(6),図8のステップ(4),
(5),(9))とを実行して、他方の記憶部に対して
ビットイメージ展開終了した印刷データを適正なタイミ
ングで次のデータ転送に支障を与えることなく圧縮した
圧縮データを短時間に印刷機構部8に転送することを可
能とする。 〔第3実施例〕 図9は、図1に示した印刷機構部8に転送される第3の
出力データ処理状態を示す図である。
In the data transfer control method of the printing apparatus configured as described above, the printing information received from the data source (external device 1) is analyzed, and the received printing information is analyzed and developed into a bit image. A plurality of storage units for storing data in units of planes (for example, a frame memory for two pages secured in the RAM 5 for each page) and a printer engine for transferring transfer data based on the print data stored in each storage unit are provided. In a data transfer control method for a printing apparatus having a control unit 7 for transferring to a printing mechanism unit 8 via a predetermined interface I / F, one storage unit (R
While the transfer data is being transferred from the data area (A) shown in FIG. 6 secured on the AM 5 to the printing mechanism section 8 via a predetermined interface, the other storage section (shown in FIG. 6 secured on the RAM 5). A determination step (steps (4) to (6) in FIG. 7) for determining the remaining amount of transfer data being transferred at the end of bit image development to the data area (B); A compression step (step (7) in FIG. 7) for writing the compressed data obtained by compressing the bit image-decompressed print data to the other storage unit, and after the transfer data from one storage unit is completed, the data is written to the other storage unit. A transfer step of transferring the compressed data as the next transfer data to the printing mechanism unit 8 via the predetermined interface (steps (4) to (6) in FIG. 8, step (4) in FIG. 8,
(5), (9)), the compressed data obtained by compressing the print data that has been subjected to bit image expansion to the other storage unit at an appropriate timing without disturbing the next data transfer Can be transferred to the printing mechanism 8. Third Embodiment FIG. 9 is a diagram showing a third output data processing state transferred to the printing mechanism unit 8 shown in FIG.

【0106】図において、10はビットマップイメージ
領域を示し、12はその中の圧縮処理のされていないあ
る1ラインを示している。13は圧縮処理の結果を格納
する送信作業バッファで、RAM5上に確保される。
In the figure, reference numeral 10 denotes a bitmap image area, and reference numeral 12 denotes a certain one of the lines that has not been subjected to compression processing. Reference numeral 13 denotes a transmission work buffer for storing a result of the compression process, which is secured on the RAM 5.

【0107】本実施例では出力部6から印刷機構部8に
ライン単位にデータを送信する際、印刷機構部8が受信
バッファが一杯であるとか、印刷ヘッドのクリーニング
処理などの要因によって、実際の転送処理が待たされる
ことに対して、印刷機構部8の状態を検出する手段を設
けることにより、通常転送処理を行うはずだったライン
データを印刷機構部8の状態に応じてこの段階で圧縮処
理を行うものである。
In this embodiment, when data is transmitted from the output unit 6 to the printing mechanism unit 8 in units of lines, the printing mechanism unit 8 may determine whether the receiving buffer is full or the print head cleaning process. By providing a means for detecting the state of the printing mechanism unit 8 in response to the waiting for the transfer process, the line data that should have been subjected to the normal transfer process is compressed at this stage according to the state of the printing mechanism unit 8. Is what you do.

【0108】この場合は、通常の送信データ領域12を
印刷機構部8が受信不可能な場合に送信作業バッファ1
3に圧縮処理し、転送すべきバッファアドレスを送信作
業バッファ13に切り替えて、受信可能になった時点で
圧縮転送するものである。
In this case, if the normal transmission data area 12 cannot be received by the printing mechanism 8, the transmission work buffer 1
3, the buffer address to be transferred is switched to the transmission work buffer 13, and the data is compressed and transferred when reception becomes possible.

【0109】[0109]

【0110】上記のように構成された印刷装置におい
て、すなわち、データ源(外部機器1)からの印刷情報
を受信し、該受信した印刷情報を解析してビットイメー
ジに展開した印刷データを蓄える記憶部(RAM5)
と、この記憶部に蓄えられた印刷データに基づく転送デ
ータをプリンタエンジンを備える印刷機構部8に所定の
インタフェースI/Fを介して転送する制御部7とを有
する印刷装置において、前記印刷機構部8の状態を通信
する状態通信手段(本実施例では、制御線CLによる)
と、この状態通信手段により通信された前記印刷機構部
8の状態が前記転送データを転送可能な状態かどうかを
判別する判別手段(CPU4)と、この判別手段が前記
転送データを転送可能な状態でないと判別した場合に、
前記印刷データを圧縮して前記記憶部に書き込むデータ
圧縮部(CPU4がROM3に記憶された圧縮プリンタ
を実行する手段として構成される)とを設け、通信線C
Lにより通信された印刷機構部8の状態が転送データを
転送可能な状態かどうか判別するCPU4が前記転送デ
ータを転送可能な状態でないと判別した場合に、CPU
4が印刷データを圧縮してRAM5に書き込み、制御部
7がRAM5に書き込まれた圧縮データまたは印刷デー
タを前記転送データとして前記所定のインタフェースI
/Fを介して印刷機構部8に転送して、印刷機構部8の
状態に応じてデータ転送開始が遅れると予想される場合
に、既に記憶した印刷データを圧縮してデータ量を減ら
し、データ転送開始後におけるデータ転送時間を短縮す
ることを可能とする。
In the printing apparatus configured as described above, that is, storage for receiving print information from a data source (external device 1), analyzing the received print information, and storing print data expanded into a bit image. Unit (RAM5)
And a control unit 7 for transferring transfer data based on print data stored in the storage unit to a printing mechanism unit 8 having a printer engine via a predetermined interface I / F. State communication means for communicating the state 8 (in this embodiment, by the control line CL)
Determining means (CPU 4) for determining whether or not the state of the printing mechanism unit 8 communicated by the state communication means is a state in which the transfer data can be transferred; and a state in which the determination means can transfer the transfer data. If it is determined that it is not
A data compression unit (the CPU 4 is configured to execute a compression printer stored in the ROM 3) for writing the print data into the storage unit;
L, the CPU 4 determines whether the state of the printing mechanism unit 8 communicated by L is a state in which the transfer data can be transferred.
4 compresses the print data and writes it to the RAM 5, and the control unit 7 uses the compressed data or print data written to the RAM 5 as the transfer data as the predetermined interface I
/ F, the data transfer start is expected to be delayed according to the state of the print mechanism unit 8, and the stored print data is compressed to reduce the data amount. Data transfer time after the start of transfer can be reduced.

【0111】図10は本発明に係る印刷装置のデータ転
送制御方法の第3実施例を示すフローチャートである。
なお、(1)〜(16)は各ステップを示す。
FIG. 10 is a flowchart showing a third embodiment of the data transfer control method of the printing apparatus according to the present invention.
In addition, (1) to (16) indicate each step.

【0112】まず、ステップ(1)で転送対象ライン番
号を示す変数linecntに「0」を、転送対象ライ
ンの先頭アドレスを示す変数lineptrビットマッ
プイメージ領域の先頭アドレスを、ビットマップイメー
ジ領域幅を示す変数framewidthにフレーム幅
を、圧縮作業用バッファの先頭アドレスを示す変数bu
fptrに送信作業バッファ13の先頭アドレスをそれ
ぞれ設定する。
First, in step (1), “0” is set to a variable “linent” indicating the transfer target line number, a variable “lineptr” indicating the start address of the transfer target line is indicated, and the bitmap image area width is indicated. The variable framewidth indicates the frame width, and the variable bu indicates the start address of the compression work buffer.
The head address of the transmission work buffer 13 is set to fptr.

【0113】次いで、ステップ(2)で図示していない
フラグ領域を参照して、現在転送しようしているラスタ
に印刷すべきデータがあるかどうかをチェックする。
Next, in step (2), by referring to a flag area not shown, it is checked whether or not there is data to be printed on the raster currently being transferred.

【0114】このフラグ領域は、ページレイアウト時
や、描画時などにそのライン(本実施例では制御線CL
による)にデータを描画する指示や、描画したか等によ
って設定されるもので、このフラグが設定されていない
ラインは印刷データが存在しないことを意味するもので
ある。
This flag area is used for the line (control line CL in this embodiment) at the time of page layout, drawing, and the like.
) Is set according to an instruction to draw data, whether data is drawn, or the like. Lines for which this flag is not set mean that print data does not exist.

【0115】ステップ(2)の判定で印刷すべきデータ
が存在した場合は、ステップ(3)で圧縮処理を行った
か否かを示す圧縮フラグを圧縮していない状態を示す値
‘0’を設定し、転送データ数を示す変数transs
izeに変数framewidthの内容を設定する。
If there is data to be printed in the judgment of step (2), a compression flag indicating whether or not the compression processing has been performed in step (3) is set to a value "0" indicating that the data is not compressed. And a variable trans indicating the number of transfer data.
The content of the variable framewidth is set to size.

【0116】そして、ステップ(4)で出力部6と印刷
機構部8に、双方向の情報伝達手段や信号線等により印
刷機構部8の状態取得を取得し、ステップ(5)で印刷
機構部8が転送可能状態かどうかを判定して、該判定に
より、転送不可能な場合は、ステップ(6)で圧縮フラ
グの値をチェックする。
In step (4), the output unit 6 and the printing mechanism unit 8 acquire the status of the printing mechanism unit 8 by means of bidirectional information transmission means, signal lines, etc., and in step (5), the printing mechanism unit It is determined whether or not the transfer flag 8 is in a transfer enabled state. If the transfer is not possible, the value of the compression flag is checked in step (6).

【0117】これは、転送不可能状態が長引いた場合に
重複して圧縮処理してしまうのを防ぐためである。圧縮
フラグが未圧縮を示す値‘0’であった場合は、ステッ
プ(7)で変数lineptrの示す元のラインデータ
領域11から変数framewidth分の領域を、b
ufptrの示す送信作業バッファ13に圧縮処理し
て、圧縮後のデータ数を返す。
This is to prevent the compression process from being repeated when the transfer impossible state is prolonged. If the compression flag has a value of “0” indicating uncompression, in step (7), the area corresponding to the variable framewidth from the original line data area 11 indicated by the variable
Compression processing is performed on the transmission work buffer 13 indicated by ufptr, and the number of data after compression is returned.

【0118】そして、ステップ(8)で圧縮フラグに圧
縮済み状態を示す‘1’を設定し、転送サイズを示すt
ranssizeにステップ(7)の戻り値である圧縮
後データ数を設定する。そして、ステップ(6)で圧縮
済みだった場合も含めて、ステップ(4)に戻って転送
可能状態になるのを待つ。
In step (8), the compression flag is set to “1” indicating a compressed state, and t indicating a transfer size.
The number of data after compression, which is the return value of step (7), is set to “ransize”. The process returns to step (4), including the case where the data has already been compressed in step (6), and waits until the transfer becomes possible.

【0119】一方、ステップ(5)で転送可能状態であ
った場合は、ステップ(9)で圧縮フラグの値を参照
し、未圧縮を示す‘0’であった場合は、通常のデータ
転送処理を行うためステップ(10)で印刷機構部8に
対して通常データ転送を指定する。
On the other hand, if the transfer is possible in step (5), the value of the compression flag is referred to in step (9). If the value is "0" indicating non-compression, the normal data transfer processing is performed. In step (10), normal data transfer is specified to the printing mechanism unit 8 in order to perform the above operation.

【0120】そして、ステップ(11)で、元データ領
域の先頭アドレスである変数lineptrから、転送
サイズであるtranssize分を1ラインのデータ
として転送処理する。
Then, in step (11), from the variable linetr which is the head address of the original data area, the transfer size transsize is transferred as one line of data.

【0121】一方、ステップ(9)で、圧縮フラグが圧
縮状態を示す‘1’であった場合は、圧縮データ転送処
理を行うため、ステップ(12)で印刷機構部8に対し
て圧縮データ転送を指定し、ステップ(13)で、圧縮
後データの格納領域の先頭アドレスであるbufptr
から転送サイズを示すtranssize分を1ライン
のデータとして転送処理する。
On the other hand, if the compression flag is "1" indicating the compression state in step (9), the compressed data transfer to the printing mechanism 8 is performed in step (12) to perform the compressed data transfer process. Is specified, and in step (13), bufptr, which is the head address of the storage area of the compressed data, is stored.
, The transfer size indicating the transfer size is transferred as one line of data.

【0122】そして、どちらの場合も、ステップ(1
4)で印刷機構部8に対して1ラインの搬送処理を行
い、ステップ(15)で変数lineptrに変数fr
amewidthを加算することで対象ラインを次に進
め、転送対象ライン番号である変数linecntも
「1」進める。
In both cases, step (1)
In step 4), one line is conveyed to the printing mechanism unit 8, and in step (15), the variable fr
The target line is advanced next by adding the "amewidth", and the variable linentnt which is the transfer target line number is also advanced by "1".

【0123】ステップ(16)でlinecntから全
ラインの処理が終了したかどうかを判断し、まだ残りの
ラインがある場合は、ステップ(2)に戻って処理を継
続し、全ラインが終了すれば出力処理終了である。以
下、本実施例と第9の発明の各工程との対応及びその作
用について図1,図10等を参照して説明する。
At step (16), it is determined whether or not processing of all lines has been completed from lineectnt. If there are still remaining lines, the process returns to step (2) and processing is continued. The output processing has been completed. Hereinafter, the correspondence between this embodiment and each step of the ninth invention and the operation thereof will be described with reference to FIGS.

【0124】上記のように構成された印刷装置のデータ
転送制御方法において、すなわち、データ源(外部機器
1)からの印刷情報を受信し、該受信した印刷情報を解
析してビットイメージに展開した印刷データを蓄える記
憶部(RAM5)と、この記憶部に蓄えられた印刷デー
タに基づく転送データをプリンタエンジンを備える印刷
機構部8に所定のインタフェースを介して転送する制御
部7と、前記印刷機構部8の状態を通信する状態通信手
段(本実施例では制御線CL)とを有する印刷装置のデ
ータ転送制御方法において、制御線CLにより通信され
た前記印刷機構部8の状態が前記転送データを転送可能
な状態かどうかを判別する判別工程(図10のステップ
(4),(5))と、この判別工程が前記転送データを
転送可能な状態でないと判別した場合に、前記印刷デー
タを圧縮して前記記憶部に書き込むデータ圧縮工程(図
10のステップ(6)〜(8))と、記憶部に書き込ま
れた圧縮データまたは印刷データを前記転送データとし
て前記所定のインタフェースを介して印刷機構部に転送
する転送工程(図10のステップ(9)〜(11),ス
テップ(9),(12),(13))とを実行して、印
刷機構部の状態から記憶された印刷データの転送開始が
遅れると予想される場合に、既に記憶した印刷データを
圧縮してデータ量を減らし、データ転送開始後における
データ転送時間を短縮することを可能とする。
In the data transfer control method of the printing apparatus configured as described above, that is, print information from a data source (external device 1) is received, and the received print information is analyzed and developed into a bit image. A storage unit (RAM5) for storing print data, a control unit 7 for transferring transfer data based on the print data stored in the storage unit to a printing mechanism unit 8 including a printer engine via a predetermined interface, In a data transfer control method for a printing apparatus having state communication means (control line CL in this embodiment) for communicating the state of the unit 8, the state of the printing mechanism unit 8 communicated by the control line CL indicates the transfer data. A determining step (steps (4) and (5) in FIG. 10) for determining whether or not the transfer data can be transferred; If it is determined that the print data is compressed, the data is compressed (steps (6) to (8) in FIG. 10) and the compressed data or print data written to the storage is transferred to the storage unit. A transfer process (steps (9) to (11), steps (9), (12), and (13) in FIG. 10) for transferring the data as data to the printing mechanism unit via the predetermined interface is executed to perform printing. When the transfer of stored print data is expected to be delayed due to the state of the mechanism, it is possible to reduce the amount of data by compressing the already stored print data and shorten the data transfer time after the start of data transfer And

【0125】なお、本発明は、複数の機器から構成され
るシステムに適用しても、1つの機器から成る装置に適
用しても良い。また、本発明はシステムあるいは装置に
プログラムを供給することによって達成させる場合にも
適用できることは言うまでもない。
The present invention may be applied to a system constituted by a plurality of devices or to an apparatus constituted by a single device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus.

【0126】上記各実施例によれば、印刷装置内におけ
る制御部から印刷機構部へのデータ転送に際し、制御部
側にデータ圧縮処理機能、印刷機構部側にデータ伸長処
理機能を設けることによって、制御部と印刷機構部間の
データ転送量を減らすことにより、転送時間の短縮を図
ることができる。
According to each of the above embodiments, when data is transferred from the control unit to the printing mechanism unit in the printing apparatus, the control unit has a data compression processing function and the printing mechanism unit has a data decompression processing function. By reducing the data transfer amount between the control unit and the printing mechanism unit, the transfer time can be reduced.

【0127】また、通常転送/圧縮転送の切替え手段を
設け、圧縮処理によりデータ長が元データより長くなる
場合には、データ圧縮処理を無効として通常転送できる
ように、切替え制御を行うことによって、転送時間が短
くなるデータの方を、例えばライン単位に選択しながら
印刷制御を行う。なお、この時の圧縮データ領域ならび
に元データ領域を共通化することにより、メモリ効率を
も上げることができる。
Further, switching means for switching between normal transfer and compressed transfer is provided, and when the data length becomes longer than the original data due to the compression processing, the switching control is performed so that the data compression processing is invalidated and the normal transfer can be performed. The print control is performed while selecting the data whose transfer time is shorter, for example, in line units. Note that by sharing the compressed data area and the original data area at this time, the memory efficiency can be improved.

【0128】さらに、複数のビットマップイメージ領域
が存在する場合は、ある1面(例えばページ単位あるい
はバンド単位)を転送中に、描画済みの別のビットマッ
プイメージ領域が存在する場合、転送終了待ち時間内に
描画済みの領域を圧縮処理することにより、次の転送処
理を高速に行える。
Further, when there are a plurality of bitmap image areas, if another bitmap image area which has been drawn exists while a certain surface (for example, page unit or band unit) is being transferred, the transfer is awaited. The next transfer process can be performed at high speed by compressing the area that has been drawn in time.

【0129】また、制御部と印刷機構部間に印刷機構部
の状態を取得する手段を設けることにより、印刷機構部
の受信バッファが一杯になったり、印刷処理やクリーニ
ング処理等で受信がなかなかできないような状態を図1
に示した制御線CL等により個別、かつ所定のタイミン
グの割込み処理等で検出し、そのような場合は送信中の
ビットマップイメージ領域を圧縮処理して転送するよう
に随時切替えることで、分割描画等でも有効な圧縮処理
を行うことができる。
Further, by providing a means for acquiring the state of the printing mechanism between the control unit and the printing mechanism, the receiving buffer of the printing mechanism becomes full, or the reception becomes difficult due to the printing process or the cleaning process. Figure 1
In this case, individual drawing is performed by interrupt processing or the like at a predetermined timing by the control line CL or the like shown in (1), and in such a case, the bitmap image area being transmitted is compressed and transferred at any time so as to be transferred. Etc., it is possible to perform effective compression processing.

【0130】[0130]

【発明の効果】以上説明したように、本発明によれば、
転送の進行状況に応じて転送データを減らして転送時間
を短縮することができる。また、印刷機構部の状態に応
じてデータ転送開始が遅れると予想される場合に、既に
記憶した印刷データを圧縮してデータ量を減らし、デー
タ転送開始後におけるデータ転送時間を短縮することが
できるという優れた効果を奏する。
As described above, according to the present invention,
The transfer data can be reduced according to the progress of the transfer to shorten the transfer time. Further, when the start of data transfer is expected to be delayed according to the state of the printing mechanism, the already stored print data can be compressed to reduce the data amount, and the data transfer time after the start of data transfer can be shortened. It has an excellent effect.

【0131】[0131]

【0132】[0132]

【0133】[0133]

【0134】[0134]

【0135】[0135]

【0136】[0136]

【0137】[0137]

【0138】[0138]

【0139】[0139]

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

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

【図2】図1に示した印刷機構部で処理されるビットマ
ップイメージデータの例を示す図である。
FIG. 2 is a diagram illustrating an example of bitmap image data processed by a printing mechanism unit illustrated in FIG. 1;

【図3】図1に示した印刷機構部に転送される第1の出
力データ処理状態を示す図である。
FIG. 3 is a diagram illustrating a first output data processing state transferred to the printing mechanism unit illustrated in FIG. 1;

【図4】本発明に係る印刷装置のデータ転送制御方法の
第1実施例を示すフローチャートである。
FIG. 4 is a flowchart illustrating a first embodiment of a data transfer control method for a printing apparatus according to the present invention.

【図5】本発明に係る印刷装置のデータ転送制御方法の
第1実施例を示すフローチャートである。
FIG. 5 is a flowchart illustrating a first embodiment of a data transfer control method for a printing apparatus according to the present invention.

【図6】図1に示した印刷機構部に転送される第2の出
力データ処理状態を示す推移図である。
FIG. 6 is a transition diagram showing a second output data processing state transferred to the printing mechanism shown in FIG. 1;

【図7】本発明に係る印刷装置のデータ転送制御方法の
第2実施例を示すフローチャートである。
FIG. 7 is a flowchart illustrating a data transfer control method for a printing apparatus according to a second embodiment of the present invention.

【図8】本発明に係る印刷装置のデータ転送制御方法の
第2実施例を示すフローチャートである。
FIG. 8 is a flowchart illustrating a data transfer control method for a printing apparatus according to a second embodiment of the present invention.

【図9】図1に示した印刷機構部に転送される第3の出
力データ処理状態を示す図である。
FIG. 9 is a diagram illustrating a third output data processing state transferred to the printing mechanism unit illustrated in FIG. 1;

【図10】本発明に係る印刷装置のデータ転送制御方法
の第3実施例を示すフローチャートである。
FIG. 10 is a flowchart illustrating a third embodiment of the data transfer control method for the printing apparatus according to the present invention.

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

1 外部機器 2 入力部 3 ROM 4 CPU 5 RAM 6 出力部 7 制御部 8 印刷機構部 CL 制御線 DESCRIPTION OF SYMBOLS 1 External apparatus 2 Input part 3 ROM 4 CPU 5 RAM 6 Output part 7 Control part 8 Printing mechanism CL Control line

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 3/12 B41J 5/30 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 3/12 B41J 5/30

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データ源からの印刷情報を受信し、該受
信した印刷情報を解析してビットイメージに展開した印
刷データを面単位に蓄える複数の記憶部と、この各記憶
部に蓄えられた印刷データに基づく転送データをプリン
タエンジンを備える印刷機構部に所定のインタフェース
を介して転送する制御部とを有する印刷装置において、第1の記憶部へのビットイメージ展開終了時に第2の記
憶部からの転送データを前記印刷機構部に転送中の場合
に、第2の記憶部の転送データの残量を判別する判別部
と、 前記判別部により第2の記憶部の転送データの残量が所
定量よりも多いと判別した場合に、第1の記憶部に記憶
されたビットイメージ展開された印刷データを圧縮する
圧縮部とを前記制御部に設け、 前記制御部は、第2の記憶部からの転送データ終了後
に、前記圧縮部により圧縮された第1の記憶部の印刷デ
ータを次の転送データとして前記印刷機構部に転送する
ことを特徴とする印刷装置。
A plurality of storage units for receiving print information from a data source, analyzing the received print information, and storing print data expanded into bit images in units of planes, and stored in each of the storage units; the printing apparatus and a control unit for transferring via a predetermined interface to print mechanism including a printer engine transfers data based on the print data, a second serial during bit image expansion completion to the first storage unit
When the transfer data from the storage unit is being transferred to the printing mechanism unit
A determining unit for determining the remaining amount of transfer data in the second storage unit
When the remaining amount of the transfer data in the second storage unit by the determination unit Tokoro
When it is determined that the number is larger than the fixed amount, the data is stored in the first storage unit.
Compressed print data with expanded bit image
A compression unit is provided in the control unit, and the control unit operates after the end of the transfer data from the second storage unit.
The print data of the first storage unit compressed by the compression unit
Printing apparatus for transferring data to the printing mechanism unit as next transfer data .
【請求項2】 データ源からの印刷情報を受信し、該受
信した印刷情報を解析してビットイメージに展開した印
刷データを蓄える記憶部と、この記憶部に蓄えられた印
刷データに基づく転送データをプリンタエンジンを備え
る印刷機構部に所定のインタフェースを介して転送する
制御部とを有する印刷装置において、 前記印刷機構部の状態を通信する状態通信手段と、 この状態通信手段により通信された前記印刷機構部の状
態が前記転送データを転送可能な状態かどうかを判別す
る判別手段と、前記印刷データを圧縮する圧縮手段とを設け、 前記判別手段が前記転送データを転送可能な状態でない
と判別した場合は、前記印刷データを前記圧縮手段によ
り圧縮して前記印刷機構部に転送する ことを特徴とする
印刷装置。
2. A storage unit for receiving print information from a data source, storing the print data obtained by analyzing the received print information and developing it into a bit image, and transfer data based on the print data stored in the storage unit. And a control unit for transferring the print mechanism unit to a printing mechanism unit having a printer engine via a predetermined interface. A status communication unit that communicates the status of the printing mechanism unit; and the printing that is communicated by the status communication unit. Determining means for determining whether the state of the mechanism unit is in a state in which the transfer data can be transferred; and compression means for compressing the print data, wherein the determination means is not in a state in which the transfer data can be transferred.
If it is determined that the print data is
A printing device that compresses the data and transfers the compressed data to the printing mechanism .
【請求項3】 データ源からの印刷情報を受信し、該受
信した印刷情報を解析してビットイメージに展開した印
刷データを面単位に蓄える複数の記憶部を備え、各記憶
部に蓄えられた印刷データに基づく転送データをプリン
タエンジンを 備える印刷機構部に所定のインタフェース
を介して転送する印刷装置のデータ転送制御方法におい
て、 第1の記憶部へのビットイメージ展開終了時に第2の記
憶部からの転送データを前記印刷機構部に転送中の場合
に、第2の記憶部の転送データの残量を判別する判別工
程と、 前記判別工程により第2の記憶部の転送データの残量が
所定量よりも多いと判別した場合に、第1の記憶部に記
憶されたビットイメージ展開された印刷データを圧縮す
る圧縮工程と、 前記第2の記憶部からの転送データ終了後に、前記圧縮
部により圧縮された第1の記憶部の印刷データを次の転
送データとして前記印刷機構部に転送する転送工程と、 を有することを特徴とする印刷装置のデータ転送制御方
法。
3. Receiving print information from a data source and receiving the print information.
A stamp that analyzes the received print information and develops it into a bit image.
A plurality of storage units for storing printing data for each surface are provided.
Print data based on the print data stored in the
Interface to the printing mechanism with a print engine
Method for controlling data transfer of a printing device that transfers data via a printer
When the bit image development to the first storage unit is completed, the second
When the transfer data from the storage unit is being transferred to the printing mechanism unit
A discriminator for discriminating the remaining amount of transfer data in the second storage unit
And the remaining amount of transfer data in the second storage unit is determined by the determination step.
If it is determined that the amount is larger than the predetermined amount, the information is stored in the first storage unit.
Compresses the stored bit image expanded print data
Compression process, and after the transfer of data from the second storage unit,
The print data in the first storage unit compressed by the
A data transfer control method for a printing apparatus, comprising: a transfer step of transferring the print data to the printing mechanism unit.
Law.
【請求項4】 データ源からの印刷情報を受信し、該受
信した印刷情報を解析してビットイメージに展開した印
刷データを蓄える記憶部と、この記憶部に蓄えられた印
刷データに基づく転送データをプリンタエンジンを備え
る印刷機構部に所定のインタフェースを介して転送する
印刷装置のデータ転送制御方法において、 前記印刷機構部の状態を通信する状態通信工程と、 前記状態通信工程により通信された前記印刷機構部の状
態が前記転送データを転送可能な状態かどうかを判別す
る判別工程と、 前記印刷データを圧縮する圧縮工程と、 前記判別工程が前記転送データを転送可能な状態でない
と判別した場合は、前記印刷データを前記圧縮工程によ
り圧縮して前記印刷機構部に転送する転送工程と、 を有することを特徴とする印刷装置のデータ転送制御方
法。
4. Receiving print information from a data source and receiving the print information.
A stamp that analyzes the received print information and develops it into a bit image.
A storage unit for storing printing data and a mark stored in this storage unit
Equipped with a printer engine to transfer data based on printing data
To a printing mechanism via a predetermined interface
In the data transfer control method for a printing apparatus, and status communication step of communicating the state of the printing mechanism Zhou of the state the printing mechanism portion communicated by the communication step
Determine whether the state is a state in which the transfer data can be transferred.
Discriminating step, a compressing step of compressing the print data, and the discriminating step is not in a state in which the transfer data can be transferred.
Is determined, the print data is subjected to the compression process.
Ri data transfer control side of the compression to the printing apparatus, characterized by having a transfer step of transferring to the printing mechanism portion
Law.
JP15006394A 1994-06-30 1994-06-30 Printing apparatus and data transfer control method for printing apparatus Expired - Fee Related JP3257902B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP15006394A JP3257902B2 (en) 1994-06-30 1994-06-30 Printing apparatus and data transfer control method for printing apparatus
US08/495,229 US6009242A (en) 1994-06-30 1995-06-27 Print controller, printer, data transfer method, and printing condition setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15006394A JP3257902B2 (en) 1994-06-30 1994-06-30 Printing apparatus and data transfer control method for printing apparatus

Publications (2)

Publication Number Publication Date
JPH0816330A JPH0816330A (en) 1996-01-19
JP3257902B2 true JP3257902B2 (en) 2002-02-18

Family

ID=15488707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15006394A Expired - Fee Related JP3257902B2 (en) 1994-06-30 1994-06-30 Printing apparatus and data transfer control method for printing apparatus

Country Status (1)

Country Link
JP (1) JP3257902B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4595585B2 (en) * 2005-02-24 2010-12-08 セイコーエプソン株式会社 Image processing apparatus, image processing method, program, and printing apparatus

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5588176A (en) * 1978-12-27 1980-07-03 Hitachi Ltd Picture processor
JPH03258569A (en) * 1990-03-08 1991-11-18 Seiko Epson Corp Device for printer
JPH0753454B2 (en) * 1990-07-06 1995-06-07 株式会社日立製作所 Text information processing device
JP2887928B2 (en) * 1991-03-22 1999-05-10 ブラザー工業株式会社 Image data output device
JPH05207296A (en) * 1992-01-29 1993-08-13 Fuji Xerox Co Ltd Picture processing unit
JPH05334257A (en) * 1992-06-03 1993-12-17 Matsushita Electric Ind Co Ltd Parallel processor
JPH0628284A (en) * 1992-07-10 1994-02-04 Daikin Ind Ltd Method and device for transmitting picture data
JPH07266633A (en) * 1994-03-29 1995-10-17 Matsushita Electric Ind Co Ltd Printer

Also Published As

Publication number Publication date
JPH0816330A (en) 1996-01-19

Similar Documents

Publication Publication Date Title
JP4035173B2 (en) Control apparatus and control method
JP3332443B2 (en) Information processing apparatus and information processing method
US5600762A (en) Method of processing a job, in a printing system, with a composite job ticket
US7221466B2 (en) Image processing device, image processing method and image forming apparatus
US6009242A (en) Print controller, printer, data transfer method, and printing condition setting method
US6226095B1 (en) Image processing apparatus, method, and system
US20040004739A1 (en) Printer system, printer, printer control method
JP3257902B2 (en) Printing apparatus and data transfer control method for printing apparatus
JP3651551B2 (en) Printer and printing system
JPH11203070A (en) Printer controller
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JP3440117B2 (en) Printer control device
JPH08332751A (en) Printing control apparatus, printer, data transmission method and printing condition setting method
JP3814371B2 (en) Information processing apparatus and method
JP3713699B2 (en) Printing system
KR0123914B1 (en) Printing method of printer
JPH09269875A (en) Data compression/expansion method for page printer
JP2922676B2 (en) Image forming device
JP3700410B2 (en) Printer system and print control method
JP3184544B2 (en) Image processing device
JPH08307677A (en) Page printer able to print out multi-value image
JPH08307695A (en) Page printer and its data processing method
JP3014280B2 (en) Composite editing processing method
JP2001236186A (en) Printing processing system, method for processing print data and recording medium with program for performing the method recorded thereon
JP2000177189A (en) Printer and control method therefor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081207

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081207

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091207

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091207

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101207

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111207

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121207

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131207

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees