JPH0236960A - Printer - Google Patents

Printer

Info

Publication number
JPH0236960A
JPH0236960A JP63187319A JP18731988A JPH0236960A JP H0236960 A JPH0236960 A JP H0236960A JP 63187319 A JP63187319 A JP 63187319A JP 18731988 A JP18731988 A JP 18731988A JP H0236960 A JPH0236960 A JP H0236960A
Authority
JP
Japan
Prior art keywords
data
page
memory
compression
retention
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63187319A
Other languages
Japanese (ja)
Inventor
Kunio Okada
岡田 邦男
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 JP63187319A priority Critical patent/JPH0236960A/en
Publication of JPH0236960A publication Critical patent/JPH0236960A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/435Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of radiation to a printing material or impression-transfer material
    • B41J2/44Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of radiation to a printing material or impression-transfer material using single radiation source per colour, e.g. lighting beams or shutter arrangements

Abstract

PURPOSE:To retain page data with a substantially minimum storage capacity and to contrive the improvement of a memory efficiency by mounting a means which converts input data to bit map image data per page, a compression means, a storage means, and a control means determining whether the compression processing is to be applied to the retained data on the basis of the result of detecting the modulus of compressibility of the respective data. CONSTITUTION:As a retention processing in a control operation in an LBP, by referring to each timer counter 401 in a page retention table 400, a unit of the page retention table 400 corresponding to a minimum counter value, i.e. the oldest one in a plurality of paper waste stagnated in the LBP, is detected. From this unit as a start point, past page data remaining in a retention memory 106 is reprinted in the order of the units in the retention table 400. The compressed data on the retention memory 106 pointed by a page pointer 403 is released from a compression form and restored on a page memory 107 in a previous form. After waiting an operator's removing action of stagnated paper, a printer prints the restored data on the memory 107. In this manner, a data retention area can be conserved, and a memory area for another information can be increased by the conserved amount.

Description

【発明の詳細な説明】 「産業上の利用分野] 本発明は、印刷すべきデータをメモリ上にビットマツプ
化する印刷装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printing device that converts data to be printed into a bitmap on a memory.

[従来の技術] 従来より、この種の印刷装置においては、データ源から
入力されているデータを処理して、メモリ」二に印刷画
像に対応するビットマツプイメージを作成し、これを画
像信号化して印刷機構部に送て記録媒体」二に印刷する
[Prior Art] Conventionally, this type of printing apparatus processes data input from a data source, creates a bitmap image corresponding to a print image in a memory, and converts this into an image signal. It is then sent to the printing mechanism section and printed on the recording medium.

また、この種の印刷装置として、記録媒体の搬送路が比
較的長いものが存在し、この印刷装置では、印刷した記
録媒体を装置外に排出するために、長い時間を要してい
た。また、搬送路中に複数の記録媒体が存在する構造に
なっているものもあった。
Moreover, some printing apparatuses of this type have a relatively long conveyance path for the recording medium, and it takes a long time to discharge the printed recording medium out of the apparatus. Furthermore, some of them have a structure in which a plurality of recording media exist in the conveyance path.

そして、このような装置では、搬送路中でジャム(紙づ
まり)が発生した場合、搬送路中に残存する記録媒体の
再印刷を行なう必要があることから、このための印刷デ
ータを再送する必要性を無くすため、この入力済データ
を記憶手段に一時保持するようにしたものがある。
In such devices, if a jam (paper jam) occurs in the conveyance path, it is necessary to reprint the recording medium remaining in the conveyance path, so it is necessary to resend the print data for this purpose. In order to eliminate this error, there is a system that temporarily stores this input data in a storage means.

さらに、このようにジャム発生時に入力済データを記憶
手段に一時保持する装置においては、この−時保持のた
めの記憶容量が大きくなるのを防ぐため、上述のビット
マツプイメージを一旦圧縮処理して保存するものも存在
する。
Furthermore, in a device that temporarily stores input data in a storage means when a jam occurs, the above-mentioned bitmap image is compressed once in order to prevent the storage capacity from increasing during this time. There are also things to save.

[発明が解決しようとする課題] しかしながら、ビットマツプイメージを圧縮処理した場
合、必ずしも容量が小さくなるとは限らず、ビットマツ
プイメージの内容によっては返って容量が増大し、メモ
リ効率の悪化を招く場合がある。
[Problems to be Solved by the Invention] However, when a bitmap image is compressed, the capacity does not necessarily become smaller, and depending on the contents of the bitmap image, the capacity may increase, leading to deterioration of memory efficiency. There is.

本発明は、ジャム発生時に入力済データを記憶手段に一
時保持する印刷装置において、ページデータを実質的に
最小の記憶容量で保存することができ、メモリ効率を改
善することができる印刷装置を提供することを目的とす
るものである。
The present invention provides a printing device that temporarily stores inputted data in a storage unit when a jam occurs, which can store page data with a substantially minimum storage capacity and improve memory efficiency. The purpose is to

[課題を解決する手段] 本発明は、データ源から入力されたデータに対応する文
字や画像を印刷する印刷装置において、上記入力データ
をページ単位のビットマツプイメージデータに変換する
変換手段と、上記ビットマツプイメージデータのデータ
圧縮処理を行なうデータ圧縮手段と、上記ビットマツプ
イメージデータまたは上記データ圧縮手段によって圧縮
処理されたデータを保存する記憶手段と、上記ビットマ
ツプイメージデータのデータ圧縮率を検知する検知手段
と、この検知手段の検知結果に基いて」−記記憶手段に
保存するデータに対する圧縮処理を行なうか否かを決定
するデータ処理制御手段とを有することを特徴とする。
[Means for Solving the Problems] The present invention provides a printing device that prints characters and images corresponding to data input from a data source, including a conversion means for converting the input data into page-by-page bitmap image data; data compression means for compressing bitmap image data; storage means for storing the bitmap image data or data compressed by the data compression means; and detecting the data compression rate of the bitmap image data. The apparatus is characterized by comprising a detection means and a data processing control means for determining whether or not to perform compression processing on data to be stored in the storage means based on the detection result of the detection means.

[作用] 本発明では、ビットマツプイメージデータのデータ圧縮
率を検知することにより、ビットマツプイメージデータ
と圧縮データのうちで実質的にデータ容量の小さい方を
記憶手段に保存し、最適なメモリ効率を得ることができ
る。
[Operation] In the present invention, by detecting the data compression rate of bitmap image data, the bitmap image data and the compressed data, whichever has a smaller data capacity, is stored in the storage means, thereby achieving optimal memory efficiency. can be obtained.

[実施例コ 第1図は、本発明の一実施例によるレーザビームプリン
タ(以下、LBPという)の制御回路の構成を示すブロ
ック図である。
Embodiment FIG. 1 is a block diagram showing the configuration of a control circuit of a laser beam printer (hereinafter referred to as LBP) according to an embodiment of the present invention.

この制御回路は、CPUl0Iと、入力インタフェース
回路103と、ROM104と、ワークメモリ105と
、保存メモリ10Bと、ページメモリ107と、ページ
保存量選択スイッチ108と、タイマ回路109と、画
像信号発生器110と、出力インタフェース回路111
とを具えている。
This control circuit includes a CPU 10I, an input interface circuit 103, a ROM 104, a work memory 105, a storage memory 10B, a page memory 107, a page storage amount selection switch 108, a timer circuit 109, and an image signal generator 110. and output interface circuit 111
It is equipped with.

CPUl0Iは、LBP全体の制御および入力データの
解析等を行なうものである。入力インタフェース回路1
03は、データ源となるホストコンピュータ102から
送信されるデータを受信し、CPUl0Iへ伝える。R
OM104には、第5図〜第7図に示すLBPの制御プ
ログラムやホストコンピュータ102から送信されるデ
ータ中の文字コードに対応する文字のドツトパターン情
報等が格納されている。
The CPU I0I controls the entire LBP and analyzes input data. Input interface circuit 1
03 receives data transmitted from the host computer 102 serving as a data source, and transmits it to CPU10I. R
The OM 104 stores the LBP control program shown in FIGS. 5 to 7, character dot pattern information corresponding to character codes in data transmitted from the host computer 102, and the like.

ワークメモリ105、保存メモリ10B、ページメモリ
107は、一般のRAMにより構成されている。そして
、ワークメモリ105は、第4図に示すような制御プロ
グラム用のカウンタ類やテーブル類を格納している。保
存メモリ106は、ホストコンピュータ102から入力
される各種登録情報(ダウンロードフォント、オーバー
レイページ情報)を格納したり、ページメモリ107の
印字後の圧縮データを格納するものである。ページメモ
リ107は、ホストコンピュータ102からの入力デー
タを基にして、1ペ一ジ分のビットマツプ化された画像
を保存しておくものである。
The work memory 105, storage memory 10B, and page memory 107 are constituted by general RAM. The work memory 105 stores counters and tables for control programs as shown in FIG. The storage memory 106 stores various types of registration information (download fonts, overlay page information) input from the host computer 102, and compressed data after printing in the page memory 107. The page memory 107 stores one page of bitmap images based on input data from the host computer 102.

このLBPで扱う用紙サイズは、A4サイズに固定され
、したがってこのページメモリ107のメモリ容量も、
一定の値となる。以後、このページメモリ107の容量
をページメモリサイズといフ。
The paper size handled by this LBP is fixed to A4 size, and therefore the memory capacity of this page memory 107 is also
A constant value. Hereinafter, the capacity of this page memory 107 will be referred to as page memory size.

ページ保存量選択スイッチ108は、保存メモリ106
に保存するページの圧縮データの容量の上限を選択する
ものであり、たとえばロータリスイッチで構成されてい
る。このページ保存量選択スイッチ108により、上記
ページメモリサイズX1(A4用紙1ペ一ジ分)、X2
(A4用紙2ペ一ジ分)、X3(A4用紙3ペ一ジ分)
、×4(A4用紙4ペ一ジ分)の4つのポジションが設
定されるようになっている。
The page storage amount selection switch 108 selects the storage memory 106.
This selects the upper limit of the compressed data capacity of the page to be saved in the page, and is made up of, for example, a rotary switch. This page storage amount selection switch 108 selects the page memory size X1 (one page of A4 paper), X2
(2 pages of A4 paper), X3 (3 pages of A4 paper)
, x4 (corresponding to 4 pages of A4 paper) are set.

タイマ回路109は、100m5毎にCPU1otヘタ
イマ割込み信号を出力するものであり、このタイマ割込
み信号によって、第7図に示すタイマ割込み処理ルーチ
ンを起動するようになっている。
The timer circuit 109 outputs a timer interrupt signal to the CPU 1ot every 100 m5, and the timer interrupt processing routine shown in FIG. 7 is activated by this timer interrupt signal.

画像信号発生器110は、ページメモリ107に用意し
た画像データを、画像信号に変換するものであり、印字
機構部112からの同期信号によって出力インタフェー
ス回路111を介して画像信号を印字機構部112に送
り込むようになっている。出力インタフェース回路11
1は、CPU101および画像発生器110と印字機構
部112間の各種制御信号や画像信号の授受を制御する
ものである。
The image signal generator 110 converts the image data prepared in the page memory 107 into an image signal, and transmits the image signal to the printing mechanism section 112 via the output interface circuit 111 in response to a synchronization signal from the printing mechanism section 112. It is designed to be sent. Output interface circuit 11
Reference numeral 1 controls the exchange of various control signals and image signals between the CPU 101, the image generator 110, and the printing mechanism section 112.

また、印字機構部112は、用紙の給紙、レーザ光の発
生、画像の用紙への転写、定着といったLBPの一連の
印字プロセスを実現するものである。なお、ジャムが発
生すると、印字機構部112は、紙の滞留を検知し、こ
の検知信号をステータス信号として出力インタフェース
回路111を介してCPUl0Iに伝えるようになって
いる。
Further, the printing mechanism section 112 realizes a series of LBP printing processes such as paper feeding, laser beam generation, image transfer to paper, and fixing. Note that when a jam occurs, the printing mechanism section 112 detects the accumulation of paper and transmits this detection signal as a status signal to the CPUl0I via the output interface circuit 111.

第2図は、印字機構部112の内部構成を示す省略側面
図である。
FIG. 2 is an abbreviated side view showing the internal configuration of the printing mechanism section 112.

LBPの本体200内には、上記制御回路を含む回路基
板201が設けられている。また、レーザドライバ20
2は、半導体レーザ203を駆動制御するための回路で
あり、入力された画像信号に応じて半導体レーザ203
から出射されるレーザ光204をオンφオフする。
A circuit board 201 including the above control circuit is provided inside the main body 200 of the LBP. In addition, the laser driver 20
2 is a circuit for driving and controlling the semiconductor laser 203, and the semiconductor laser 203 is controlled according to the input image signal.
The laser beam 204 emitted from the laser beam 204 is turned on and off.

レーザ光204は、回転多面鏡205で左右方向に振ら
れて静電ドラム206上に照射され、静電ドラム206
上には文字パターンやイメージ情報の潜像が形成される
。この潜像は、静電ドラム206の周囲の現像ユニット
207により現像された後、用紙に転写される。用紙に
はA4サイズのカットシート紙が用いられ、このカット
シート紙は、LBP本体200に装着した用紙カセット
20Bに収納されている。そして、給紙ローラ209お
よび搬送ローラ210.211により装置内に取込まれ
て静電ドラム206に供給される。
The laser beam 204 is swung left and right by a rotating polygon mirror 205 and irradiated onto the electrostatic drum 206.
A latent image of a character pattern or image information is formed thereon. This latent image is developed by a developing unit 207 around the electrostatic drum 206 and then transferred to the paper. A4 size cut sheet paper is used as the paper, and this cut sheet paper is stored in a paper cassette 20B attached to the LBP main body 200. Then, the paper is taken into the apparatus by the paper feed roller 209 and the transport rollers 210 and 211, and is supplied to the electrostatic drum 206.

センサ212.216は、一般の光センサを応用したジ
ャム検出用のものである。これらのセンサ211.21
6により、まず給紙ローラ209によって装置内に取込
まれた用紙が、ある一定時間内にジャムセンサ212に
達したか、あるいは搬送ローラ211で現像ユニット2
07へ送り込まれた用紙が、ある一定時間内に定着ロー
ラ213により定着され、排紙ローラ214および排紙
ベルト215によりジャムセンサ216を通過して完全
に外部の排紙スタッカ217へ排紙されたかどうかをチ
エツクする。そして、どこかで用紙が滞留した場合、直
ちに印字機構を停止し、CPUl0Iに伝える。このL
BPにおいては、ジャムが発生した場合、給紙ローラ2
09から排紙スタッカ217までの搬送路に最大4ペ一
ジ分の用紙が滞留する可能性がある。そして、このジャ
ムが発生した場合に、対応するページの情報が常に保存
メモリ106上に残っているように、制御プログラム内
で処理され、ホストコンピュータ102からデータを再
送することなく、損なわれた用紙に対する再印字を可能
としている。
The sensors 212 and 216 are for jam detection using general optical sensors. These sensors 211.21
6, the paper taken into the apparatus by the paper feed roller 209 reaches the jam sensor 212 within a certain period of time, or the paper is transferred to the developing unit 2 by the conveyance roller 211.
07 is fixed by the fixing roller 213 within a certain period of time, passes the jam sensor 216 by the paper ejection roller 214 and paper ejection belt 215, and is completely ejected to the external paper ejection stacker 217. Please check. If the paper becomes stuck somewhere, the printing mechanism is immediately stopped and the CPU 10I is notified. This L
In BP, if a jam occurs, the paper feed roller 2
There is a possibility that up to four pages of paper may stay in the conveyance path from 09 to the paper discharge stacker 217. If this jam occurs, the damaged paper is processed within the control program so that the information of the corresponding page always remains on the storage memory 106, and the data is not retransmitted from the host computer 102. It is possible to reprint the .

上述のように、印字が終了したページメモリ1071の
データは、圧縮処理を受け、保存メモリ106に格納さ
れる。第3図は、このデータ圧縮形式を示す模式図であ
る。
As described above, the data in the page memory 1071 that has been printed is compressed and stored in the storage memory 106. FIG. 3 is a schematic diagram showing this data compression format.

この実施例では、データ圧縮形式としていわゆるランレ
ングス方式をとり、ページメモリ107上のビットマツ
プイメージに対し、「0」が統〈数と「1」が続く数と
を交互にカウントし記憶していく。第3図中、Wlがr
QJすなわち白ピットの数を示し、B1が「1」すなわ
ち黒ビットの数を示している。(i=1.2、・・・)
。ここで、WlおよびB1は、それぞれ1バイトで構成
され、「0」、または「1」の連続が255を越える場
合には、ダミーの「1」または「0」のバイトを挟み込
む。つまり、たとえばWlの場合、Wi=255となれ
ば、次にB1 =0とおき、Wi+1 =Xという形式
をとる。
In this embodiment, a so-called run-length method is used as the data compression format, and the bitmap image on the page memory 107 is alternately counted and memorized as the number of consecutive "0"s and the number of "1"s. go. In Figure 3, Wl is r
QJ indicates the number of white pits, and B1 indicates "1" or the number of black bits. (i=1.2,...)
. Here, Wl and B1 each consist of one byte, and if the number of consecutive "0" or "1" exceeds 255, a dummy "1" or "0" byte is inserted. That is, for example, in the case of Wl, if Wi=255, then set B1 =0 and take the form Wi+1 =X.

第4図は、制御プログラムが利用するワークメモリ10
5のデータ構造およびワークメモリ105と保存メモリ
106の関係を示した模式図である。
Figure 4 shows the work memory 10 used by the control program.
5 is a schematic diagram showing the data structure of No. 5 and the relationship between the work memory 105 and the storage memory 106. FIG.

このワークメモリには、ページ保存テーブル400と、
次ページポインタ410と、圧縮カウンタ411と、ペ
ージ容量カウンタ412、−容量設定エリア413とを
有している。
This work memory includes a page save table 400,
It has a next page pointer 410, a compression counter 411, a page capacity counter 412, and a capacity setting area 413.

ページ保存テーブル400は、ページメモリ107上の
データを保存メモリ106に保存するための管理テーブ
ルであり、用紙の搬送路に依存するジャムの最大滞留枚
数に合わせて4つのチーブルユニッ)・を有している。
The page storage table 400 is a management table for storing the data on the page memory 107 in the storage memory 106, and has four cheap units according to the maximum number of jammed sheets depending on the paper conveyance path. There is.

そして、各テーブルユニットは、タイムカウンタ401
、データ長エリア402、ページポインタ403とから
構成される。
Each table unit has a time counter 401.
, a data length area 402, and a page pointer 403.

タイムカウンタ401は、ページメモリ107の画像デ
ータが印字され、その圧縮データが保存メモリ106に
保存されたとき、この地点から用紙が排紙スタッカ21
7へ完全に排紙されるまでの時間がセットされる。この
タイムカウンタ401は、タイマ割込み処理ルーチンで
定期的に減算され、ページ保存終了時期を知るのに使わ
れる。
A time counter 401 indicates that when the image data in the page memory 107 is printed and its compressed data is stored in the storage memory 106, the paper is transferred from this point to the paper ejection stacker 21.
7 is set. This time counter 401 is periodically decremented in the timer interrupt processing routine and is used to know when the page storage ends.

データ長エリア402は、ページメモリ107上の画像
データを圧縮した場合のデータ容量を記憶する領域であ
る。
The data length area 402 is an area for storing the data capacity when the image data on the page memory 107 is compressed.

ページポインタ403は、第3図に示す形式で圧縮され
、保存メモリ106上に保存された圧縮データの保存メ
モリ上の先頭アドレスを示すアドレスポインタである。
The page pointer 403 is an address pointer indicating the start address on the storage memory of the compressed data compressed in the format shown in FIG. 3 and stored on the storage memory 106.

一方、保存メモリ106は、決められた単位のセグメン
トに分割され、空いているセグメントを自由に使用でき
る構造となっており、ページメモリ107の圧縮データ
は、保存メモリ106」二の空領域の任意の場所に保存
され、−ヒ記ベージポインタ403でページ保存テーブ
ル400に接続される。なお、第4図中、ページメモリ
107の圧縮データ420.421.422を斜線部分
で表す。
On the other hand, the storage memory 106 is divided into segments of a predetermined unit, and has a structure in which free segments can be used freely, and the compressed data in the page memory 107 can be stored in any empty area of the storage memory The page is saved at the location , and is connected to the page save table 400 by the page pointer 403 . In FIG. 4, the compressed data 420, 421, and 422 of the page memory 107 are represented by diagonal lines.

次ページポインタ410は、次にセットすべきページ保
存テーブル400のユニットを指示するものであり、1
ページの印字が終了すると、ページメモリ107上の画
像データは、圧縮処理を受け、この次ページポインタ4
10に示されるユニットの各パラメータに各個がセット
され、次ページポインタ410は、次のユニットへ進む
The next page pointer 410 indicates the unit of the page storage table 400 to be set next, and is 1
When printing of the page is completed, the image data on the page memory 107 is compressed and the next page pointer 4
Each parameter of the unit shown in 10 is set, and the next page pointer 410 advances to the next unit.

圧縮カウンタ411は、ページメモリ107を、圧縮形
式に従って圧縮する際のバイトカウンタであり、最終結
果が圧縮データ長としてデータ長エリア402にセット
される。
The compression counter 411 is a byte counter when the page memory 107 is compressed according to the compression format, and the final result is set in the data length area 402 as the compressed data length.

ページ容量カウンタ412は、保存メモリ106に現時
点で存在する複数の圧縮データの総データ長をバイト単
位でカウントするものである。
The page capacity counter 412 counts the total data length of the plurality of compressed data currently existing in the storage memory 106 in bytes.

またページ容量設定エリア413は、ページ保存量選択
スイッチ108によって選択された圧縮データの保存量
の上限を記憶していくものであり、ページ保存量選択ス
イッチ108の設定をバイト数に変換して記憶するよう
になっている。
The page capacity setting area 413 is for storing the upper limit of the storage amount of compressed data selected by the page storage amount selection switch 108, and converts the setting of the page storage amount selection switch 108 into the number of bytes and stores it. It is supposed to be done.

次に、以上のような構成のLBPにおける制御動作を説
明する。
Next, control operations in the LBP configured as above will be explained.

第5図は、CPUl0Iの制御プログラムのメインルー
チンを示すフローチャー1・である。
FIG. 5 is a flowchart 1 showing the main routine of the control program of CPUl0I.

まず最初に、LBP全体の初期化を行ない、ワークメモ
リ105上のテーブル類やカウンタ類のリセット並びに
保存メモリ106のクリアを行なう(Sl)。
First, the entire LBP is initialized, tables and counters on the work memory 105 are reset, and the storage memory 106 is cleared (Sl).

次に、ページ保存量選択スイッチ108を参照し、対応
する設定値をページ容量設定エリア413にセットする
(B2)。そして、CPU101がS3以下の定常処理
を繰返す。この処理はまず、ホストコンピュータ102
からのデータを入力インタフェース回路103経由で受
取り(S3)、受信データを解析して対応する文字ドツ
トパターンをROM1.04から取出し、ページメモリ
107にパターン展開する(S4)。そして1ペ一ジ分
のデータを受信し終えるまで、このページ編集を行ない
、1ペ一ジ分のビットマツプイメージをページメモリ1
07上に用意する(S5)。
Next, referring to the page storage capacity selection switch 108, the corresponding setting value is set in the page capacity setting area 413 (B2). Then, the CPU 101 repeats the steady processing from S3 onwards. This process begins with the host computer 102
It receives data from the ROM 1.04 via the input interface circuit 103 (S3), analyzes the received data, takes out the corresponding character dot pattern from the ROM 1.04, and develops the pattern in the page memory 107 (S4). Then, this page editing is performed until the data for one page has been received, and the bitmap image for one page is stored in the page memory 1.
07 (S5).

ページメモリ107の用意が完了すると、次にジャムが
発生しているか否かを判断する(S6)。そして、ジャ
ムが発生していなければ、ページメモリ1071の画像
データを画像信号発生器110に送って、印字機構部1
12に画像信号を出力し、印字動作を実行させる(S7
)。そしてこの画像出力の終了により、ページメモリ圧
縮処理を実行しくS8)、ジャムが発生しているか否か
再度判断しくS9)、ジャムが発生していなければS3
に戻って次のページの処理を続行する。
When the preparation of the page memory 107 is completed, it is then determined whether or not a jam has occurred (S6). If no jam has occurred, the image data in the page memory 1071 is sent to the image signal generator 110, and the printing mechanism unit 1
The image signal is output to 12 and the printing operation is executed (S7
). Then, upon completion of this image output, page memory compression processing is executed (S8), it is determined again whether or not a jam has occurred (S9), and if no jam has occurred, S3 is executed.
to continue processing the next page.

また、S6において、画像出力前にジャムが発生してい
る場合には、画像出力を行なうことなくページメモリ圧
縮処理を行ない(S8)、画像データの保存処理に移行
し、またS9において、画像出力後ジャムが発生した場
合には、既に圧縮処理された画像データの保存へ移行す
る。
In addition, in S6, if a jam occurs before image output, page memory compression processing is performed without image output (S8), the process moves to image data storage processing, and in S9, image output If a post-jam occurs, the process shifts to saving image data that has already been compressed.

この保存処理は、まずページ保存テーブル400の各タ
イマカウンタ401を参照し、一番カウント値の少ない
もの、すなわちLBP内に滞留して損なわれた複数の用
紙の一番古いものに相当するページ保存テーブル400
のユニットを見つけ出す(S I Q)。そしてこのユ
ニットを起点として、保存メモリ106に残っている過
去のページデータをページ保存テーブル400のユニッ
ト類に再印字する。まずページポインタ403で示され
る保存メモリ106上の圧縮データをデータ圧縮形式を
解いてページメモリ107に元の形で復元する(S 1
1)。そして、オペレータが滞留した用紙を取除くのを
待って(S 12) 、ページメモリ107上の復元デ
ータを印字する(S 13)。なお、再度ジャムが発生
した場合(S14)、S10に戻って再度処理を行なう
This saving process first refers to each timer counter 401 in the page saving table 400, and saves the page corresponding to the one with the smallest count value, that is, the oldest of the plurality of sheets that have accumulated in the LBP and been damaged. table 400
Find the unit of (S I Q). Then, using this unit as a starting point, the past page data remaining in the storage memory 106 is reprinted on the units of the page storage table 400. First, the compressed data on the storage memory 106 indicated by the page pointer 403 is decompressed and restored to the page memory 107 in its original form (S1
1). After waiting for the operator to remove the accumulated paper (S12), the restored data on the page memory 107 is printed (S13). Note that if a jam occurs again (S14), the process returns to S10 and the process is performed again.

次に、現時点のページ保存テーブル400のユニットの
タイムカウンタ401を初期値にセットし直しくS 1
5) 、ジャム対象ページを全て印字したことを確認し
く31B)、S3に戻って新しいページの処理を続行す
る。
Next, reset the time counter 401 of the unit of the current page storage table 400 to its initial value.S1
5) Confirm that all jammed pages have been printed (31B), and return to S3 to continue processing the new page.

第6図は、上記S8におけるページメモリ圧縮処理の詳
細を示すフローチャートである。
FIG. 6 is a flowchart showing details of the page memory compression process in S8.

まず、圧縮カウンタ411の値をOにリセットする(S
 21)。そして、ページ容量カウンタ412がページ
容量設定エリア413の値に達している場合には(S2
2)’、保存メモリ106の空くのを待ってこれ以降の
処理を行なう。なお、時間経過により、後述するタイマ
割込処理ルーチンによって保存メモリ106が空けられ
る。
First, the value of the compression counter 411 is reset to O (S
21). Then, if the page capacity counter 412 has reached the value of the page capacity setting area 413 (S2
2)', wait for the storage memory 106 to become free before performing subsequent processing. Note that as time passes, the storage memory 106 is vacated by a timer interrupt processing routine to be described later.

また、ページ容量カウンタ412がページ容量設定エリ
ア413の値に達しない場合に(S22)、圧縮カウン
タ411がページメモリサイズに達したか否かを判断す
る(S 23)。圧縮カウンタ411がページメモリサ
イズに達していなければ、そのまま圧縮処理を続行し、
ページメモリ107上の現在位置の白ビット、黒ビット
の連続性をカウントシ、データ圧縮形式に従って、Wi
、Bi を保存メモリ106上にセットしく524)、
圧縮カウンタ411を2バイト分更新しく525)、さ
らにページ容量カウンタ412も2バイト分更新する(
326)。そして、この動作をページメモリ107の全
ての領域に対して繰返し、エページ分の処理が終了した
場合には(S27)、次ページポインタ410で示され
ているページ保存テーブル400のユニットに対して、
そのタイムカウンタ401に圧縮処理を施したページが
完全に排紙される時間をセットし、データ長エリア40
2に圧縮カウンタの値をセットし、さらにページポイン
タ403に圧縮データを入れた保存メモリ106上の先
頭アドレスをセットし、次ページポインタ41Oを次の
ユニットへ更新し、ページメモリ圧縮処理を終了する(
S 33)  。
Furthermore, if the page capacity counter 412 does not reach the value in the page capacity setting area 413 (S22), it is determined whether the compression counter 411 has reached the page memory size (S23). If the compression counter 411 has not reached the page memory size, the compression process continues;
The continuity of the white bit and black bit at the current position on the page memory 107 is counted, and the Wi
, Bi on the storage memory 106 (524),
The compression counter 411 is updated by 2 bytes (525), and the page capacity counter 412 is also updated by 2 bytes (525).
326). Then, this operation is repeated for all areas of the page memory 107, and when the processing for the epage is completed (S27), for the unit of the page storage table 400 indicated by the next page pointer 410,
Set the time for the compressed page to be completely ejected in the time counter 401, and
2, sets the start address on the storage memory 106 containing the compressed data in the page pointer 403, updates the next page pointer 41O to the next unit, and ends the page memory compression process. (
S33).

また、S23において、圧縮カウンタ411の値がペー
ジメモリサイズに達した場合、これは本LBPにおける
データ圧縮形式では現在のページメモリの画像データの
場合に圧縮効果がないことを示すことから、圧縮中止処
理を行なう。
In addition, in S23, if the value of the compression counter 411 reaches the page memory size, this indicates that the data compression format in this LBP has no compression effect on the image data in the current page memory, so compression is stopped. Process.

まず、現時点で途中まで保存メモリ106に作成した圧
縮データをクリアしく528)、圧縮カウンタ411に
ページメモリサイズを格納しく529)、ページ容量カ
ウンタ412にページメモリサイズを加える(S 30
)。そして、保存メモリ106の空きを待ち(S31)
、ページメモリ107の内容をそのまま非圧縮で保存メ
モリの空き領域にコピー[、(S32)、上記333に
進んでページメモリ圧縮処理を終了する。
First, clear the compressed data that has been partially created in the storage memory 106 at this point in time (528), store the page memory size in the compression counter 411 (529), and add the page memory size to the page capacity counter 412 (S30).
). Then, wait for free space in the storage memory 106 (S31)
, Copy the contents of the page memory 107 without compression to the free area of the storage memory [, (S32), Proceed to step 333 above to end the page memory compression process.

第7図は、上記タイマ割込み信号によって定期的に実行
されるタイマ割込み処理ルーチンを示すフローチャート
である。
FIG. 7 is a flowchart showing a timer interrupt processing routine that is periodically executed by the timer interrupt signal.

まず、ジャム処理中でないことを確認しく541)、ペ
ージ保存テーブル400の全ユニットのタイムカウンタ
401の値を1つ減じ(342)、タイムカウンタ40
1の値が0に達した場合には(S43)、対象となるペ
ージが完全にLBP本体の外へ排紙され、ページの保存
が不要になったことを表すことから、保存メモリ106
上に占めていた圧縮データ420に対応するメモリ領域
を解放しく544)、ページ容量カウンタ412から対
応するデータ長エリア402分のバイト数を減する(S
 45)。
First, make sure that the jam is not being processed (541), reduce the value of the time counter 401 of all units in the page save table 400 by one (342), and
If the value of 1 reaches 0 (S43), this means that the target page has been completely ejected outside the LBP main body and it is no longer necessary to save the page, so the storage memory 106
To release the memory area corresponding to the compressed data 420 occupied above (544), the number of bytes for the corresponding data length area 402 is decreased from the page capacity counter 412 (S
45).

そして、ページ保存テーブル400の全ユニットをチエ
ツクしたことを確認し割込み処理を終了する(S 46
)。
Then, it is confirmed that all units in the page storage table 400 have been checked, and the interrupt processing is terminated (S46).
).

一方、S43において、タイムカウンタ401が0に達
しない場合には、そのユニットはそのままとして346
に進む。
On the other hand, in S43, if the time counter 401 does not reach 0, the unit is left as is and the 346
Proceed to.

以上説明したように、この印刷装置では、ページ保存量
選択スイッチ108により、保存メモリ106上に保存
するページ圧縮データの上限容量値が使用者の任意に選
択できる。また、保存メモリ106は、空容量があれば
、ページメモリの圧縮データに限らずホストコンピュー
タから入力されるフォントのダウンロードデータやペー
ジの重ね合せに用いる罫線情報等を含ページオーバレイ
データ等の登録領域、さらにはダウンロードフォントと
してベクトルフォントを使用するときのフォントキャシ
ュ等に活用できる。
As described above, in this printing apparatus, the user can arbitrarily select the upper limit capacity value of page compressed data to be stored in the storage memory 106 using the page storage amount selection switch 108. In addition, if there is free space, the storage memory 106 is a registration area for not only compressed data in the page memory but also font download data input from the host computer, ruled line information used for overlapping pages, and page overlay data. It can also be used as a font cache when using vector fonts as downloaded fonts.

したがって、保存メモリ106の容量が充分でないとき
、データ登録を優先するかページメモリの保存を優先し
て印字速度の向上を図るか、目的に応じた保存メモリ1
06の割当を行なうことが可能となる。
Therefore, when the capacity of the storage memory 106 is not sufficient, either data registration or page memory storage is prioritized to improve printing speed, or the storage memory 106 is selected depending on the purpose.
06 can be assigned.

特にフォントキャッシュは、使用頻度等に応じてベクト
ルフォントをドツトパターンに変換して作業メモリに用
意しておき、ページメモリ上のビットパターンイメージ
の作成を迅速化する機能を果たすものである。そしてこ
の場合、メモリ容量は大きければ大きいほどよいが、小
さくてもそれに応じて動作できるものである。また、他
の目的でメモリを使うために、フォントキャッシュのド
ツトパターンを消去しても、後でまた再生が可能である
。このように、−時的にメモリに存在する情報や一旦消
去してもすぐに再生が可能な情報と、ページメモリの保
存領域を同一メモリ上に設定する場合に、使用者の印字
データの形態に応じてページメモリの保存領域を大きく
した方がよいか、あるいは小さくした方がよいか、大き
く変ってくることになり、この意味から、ページ保存量
選択スイッチの効果は極めて大きいものとなる。
In particular, the font cache has the function of converting a vector font into a dot pattern according to the frequency of use and preparing it in a working memory, thereby speeding up the creation of a bit pattern image on the page memory. In this case, the larger the memory capacity, the better, but even if the memory capacity is small, the operation can be performed accordingly. Also, if you erase the dot pattern in the font cache to use memory for other purposes, you can still replay it later. In this way, - When setting the storage area of page memory on the same memory as information that temporarily exists in memory or information that can be immediately regenerated even if deleted, the format of the user's print data Whether it is better to make the storage area of the page memory larger or smaller depends on the amount of storage, and in this sense, the effect of the page storage amount selection switch is extremely large.

なお、以上の実施例では、レーザビームプリンタを例に
とって説明したが、これに限らずLEDプリンタやイン
クジェットプリンタ等にも同様に適用できる。
Note that although the above embodiments have been described using a laser beam printer as an example, the present invention is not limited to this and can be similarly applied to LED printers, inkjet printers, and the like.

また、上記実施例では、ランレングス方式によってデー
タの圧縮を行なったが、本発明はこれに限らず、MH方
式等を用いてもよい。
Further, in the above embodiment, data is compressed using a run-length method, but the present invention is not limited to this, and an MH method or the like may be used.

また、上記実施例では、ジャム発生時の再印字のための
ページデータの保存を行なったが、ページメモリ上に作
成したビットマツプ情報を印字する前であっても、ペー
ジデータを次々に圧縮保存しておき、印字機構部の給紙
速度に合せて圧縮データの伸長および画像出力を行なう
ようにしてもよい。
In addition, in the above embodiment, page data is saved for reprinting when a jam occurs, but page data is compressed and saved one after another even before the bitmap information created on the page memory is printed. Then, the compressed data may be expanded and the image outputted in accordance with the paper feeding speed of the printing mechanism section.

また、上記実施例では、ページメモリ上のデータ圧縮中
に、この圧縮データの容量が原データの容量を超えた場
合、すぐに圧縮処理を中止して原データを保存データと
して採用するものであったが、圧縮処理を中止した時点
で別の方式の圧縮処理を試みるようにしてもよい。
Furthermore, in the above embodiment, if the capacity of the compressed data exceeds the capacity of the original data while data is being compressed on the page memory, the compression process is immediately stopped and the original data is adopted as the saved data. However, another method of compression processing may be attempted at the time the compression processing is stopped.

たとえば別の圧縮方式として、「繰返し数n、繰返しパ
ターンp」というように、ビットパターンpをn回繰返
すという形式を採用し、再度圧縮処理を行なう。このよ
うな圧縮方式の場合、上記実施例の圧縮方式に比べ、対
象ビットパターンに周期的な繰返しが多い場合、大幅に
圧縮率を向」二できる。
For example, as another compression method, a format is adopted in which the bit pattern p is repeated n times, such as "number of repetitions n, repetition pattern p", and the compression process is performed again. In the case of such a compression method, compared to the compression method of the above embodiment, if the target bit pattern has many periodic repetitions, the compression ratio can be significantly improved.

また、データ圧縮処理の前、すなわち入力データの解析
時や画像出力時等において、ビットマツプイメージの画
像傾向をチエツクし、圧縮保存時に圧縮方式を、そのビ
ットマツプイメージに適合するものに切り換え設定する
ようにしてもよい。
Also, before data compression processing, that is, when analyzing input data or outputting an image, the image tendency of the bitmap image is checked, and the compression method is switched and set to one that is suitable for the bitmap image when compressed and saved. You can do it like this.

たとえば、文字データのみのページの場合、上記実施例
の圧縮方式を採用し、写真データ(イメージデータ)の
割合が大きい場合、圧縮効率が小さいので圧縮処理を行
なわない方式をとることができる。
For example, in the case of a page containing only character data, the compression method of the above embodiment is adopted, and in the case of a large proportion of photographic data (image data), a method can be adopted in which compression processing is not performed because the compression efficiency is low.

[発明の効果] 本発明によれば、ビットマツプイメージデータのデータ
圧縮率を検知することにより、ビットマツプイメージデ
ータと圧縮データのうちで実質的にデータ容量の小さい
方を記憶手段に保存し、最適なメモリ効率を得ることが
できる。したがって、このデータ保存のための領域を節
約することができ、その分、他の情報の記憶領域を大き
くすることが可能となり、限られた記憶領域を最大限に
活用することがる。
[Effects of the Invention] According to the present invention, by detecting the data compression rate of the bitmap image data, the bitmap image data and the compressed data, whichever has a substantially smaller data capacity, is stored in the storage means, Optimal memory efficiency can be obtained. Therefore, the area for storing this data can be saved, and the storage area for other information can be increased accordingly, making it possible to make the most of the limited storage area.

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

第1図は、本発明の一実施例によるレーザビームプリン
タの制御回路の構成を示すブロック図である。 第2図は、同実施例の印字機構部の内部構成を示す省略
側面図である。 第3図は、同実施例におけるデータ圧縮形式を示す模式
図である。 第4図は、同実施例における制御プログラムが利用する
ワークメモリのデータ構造およびワークメモリと保存メ
モリの関係を示した模式図である。 第5図は、同実施例における制御プログラムのメインル
ーチンを示すフローチャートである。 第6図は、同実施例におけるページメモリ圧縮処理の詳
細を示すフローチャートである。 第7図は、同実施例において、タイマ割込み信号によっ
て定期的に実行されるタイマ割込み処理ルーチンを示す
フローチャートである。 101・・・CPU、 102・・・ホストコンピュータ、 105・・・ワークメモリ、 106・・・保存メモリ、 107・・・ページメモリ 108・・・ページ保存量選択スイッチ、112・・・
印字機構部、 400・・・ページ保存テーブル、 401・・・タイムカウンタ、 402・・・データ長エリア、 403・・・ページポインタ、 410・・・次ページポインタ、 411・・・圧縮カウンタ、 412・・・ページ容量カウンタ、 413・・・ページ容量設定エリア。
FIG. 1 is a block diagram showing the configuration of a control circuit of a laser beam printer according to an embodiment of the present invention. FIG. 2 is an abbreviated side view showing the internal configuration of the printing mechanism section of the same embodiment. FIG. 3 is a schematic diagram showing the data compression format in the same embodiment. FIG. 4 is a schematic diagram showing the data structure of the work memory used by the control program and the relationship between the work memory and the storage memory in the same embodiment. FIG. 5 is a flowchart showing the main routine of the control program in the same embodiment. FIG. 6 is a flowchart showing details of page memory compression processing in the same embodiment. FIG. 7 is a flowchart showing a timer interrupt processing routine that is periodically executed by a timer interrupt signal in the same embodiment. 101...CPU, 102...Host computer, 105...Work memory, 106...Save memory, 107...Page memory 108...Page storage amount selection switch, 112...
Printing mechanism section, 400... Page storage table, 401... Time counter, 402... Data length area, 403... Page pointer, 410... Next page pointer, 411... Compression counter, 412 ...Page capacity counter, 413...Page capacity setting area.

Claims (1)

【特許請求の範囲】 データ源から入力されたデータに対応する文字や画像を
印刷する印刷装置において、 上記入力データをページ単位のビットマップイメージデ
ータに変換する変換手段と; 上記ビットマップイメージデータのデータ圧縮処理を行
なうデータ圧縮手段と; 上記ビットマップイメージデータまたは上記データ圧縮
手段によって圧縮処理されたデータを保存する記憶手段
と; 上記ビットマップイメージデータのデータ圧縮率を検知
する検知手段と; この検知手段の検知結果に基いて上記記憶手段に保存す
るデータに対する圧縮処理を行なうか否かを決定するデ
ータ処理制御手段と; を有することを特徴とする印刷装置。
[Scope of Claims] A printing device that prints characters and images corresponding to data input from a data source, comprising: conversion means for converting the input data into bitmap image data in units of pages; data compression means for performing data compression processing; storage means for storing the bitmap image data or data compressed by the data compression means; detection means for detecting the data compression rate of the bitmap image data; A printing apparatus comprising: data processing control means for determining whether or not to perform compression processing on data stored in the storage means based on the detection result of the detection means;
JP63187319A 1988-07-27 1988-07-27 Printer Pending JPH0236960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63187319A JPH0236960A (en) 1988-07-27 1988-07-27 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63187319A JPH0236960A (en) 1988-07-27 1988-07-27 Printer

Publications (1)

Publication Number Publication Date
JPH0236960A true JPH0236960A (en) 1990-02-06

Family

ID=16203927

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63187319A Pending JPH0236960A (en) 1988-07-27 1988-07-27 Printer

Country Status (1)

Country Link
JP (1) JPH0236960A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0465258A (en) * 1990-07-06 1992-03-02 Hitachi Ltd Text information processor and print dot signal generator for processor
JP2010137014A (en) * 2008-12-15 2010-06-24 Nichirei Foods:Kk Stripping device, rotating drum device having the same, and method for stripping

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0465258A (en) * 1990-07-06 1992-03-02 Hitachi Ltd Text information processor and print dot signal generator for processor
JP2010137014A (en) * 2008-12-15 2010-06-24 Nichirei Foods:Kk Stripping device, rotating drum device having the same, and method for stripping

Similar Documents

Publication Publication Date Title
JP4246367B2 (en) Printing device
US7158243B2 (en) Printing apparatus and printing system, control method, storage medium and program
US6132117A (en) Printing apparatus, control method therefor and medium for storing the control method
JPH07323643A (en) Error control device of printer
JPH05254185A (en) Printer device
JP3562860B2 (en) Printer system and printing method thereof
JPH0250865A (en) Printer
EP0621538B1 (en) Output method and apparatus
JP3044939B2 (en) Page printer
JP4374822B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, PRINT DEVICE, AND PRINT CONTROL PROGRAM
JPH0236960A (en) Printer
JPS6360672A (en) Image forming device
JP4585153B2 (en) Print control device
JP2739293B2 (en) Printing equipment
JPH01306249A (en) Printer
JP3311969B2 (en) Discharge position control method and apparatus in printing apparatus
US5303335A (en) Image forming apparatus
JP2000148418A (en) Printer
JPH0725106A (en) Printer
JPH04348977A (en) Printer
JPH0284358A (en) Double-side printer
JPH04103376A (en) Printer device
JP2003107970A (en) Printer controller and printer device
JPH08230237A (en) Printing control device of printer
JPH09226213A (en) Printer and method for controlling the printer