JP2575208B2 - Printing equipment - Google Patents

Printing equipment

Info

Publication number
JP2575208B2
JP2575208B2 JP1098921A JP9892189A JP2575208B2 JP 2575208 B2 JP2575208 B2 JP 2575208B2 JP 1098921 A JP1098921 A JP 1098921A JP 9892189 A JP9892189 A JP 9892189A JP 2575208 B2 JP2575208 B2 JP 2575208B2
Authority
JP
Japan
Prior art keywords
block
data
image memory
memory
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1098921A
Other languages
Japanese (ja)
Other versions
JPH02277681A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=14232591&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP2575208(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP1098921A priority Critical patent/JP2575208B2/en
Publication of JPH02277681A publication Critical patent/JPH02277681A/en
Application granted granted Critical
Publication of JP2575208B2 publication Critical patent/JP2575208B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、印刷用データを画像メモリに格納し、これ
を読み出しながら用紙上に印刷を行なう印刷装置に関す
る。
Description: BACKGROUND OF THE INVENTION The present invention relates to a printing apparatus that stores printing data in an image memory and prints the data while reading the data.

(従来の技術) コンピュータやワードプロセッサ等の上位制御装置に
よって作成された印刷用データを、用紙上に印刷する装
置としては、電子写真方式のプリンタ、サーマルプリン
タ、ワイヤドット式プリンタ等、種々のものが知られて
いる。
(Prior Art) Various devices such as an electrophotographic printer, a thermal printer, a wire dot printer, and the like are used as devices for printing print data created by a host controller such as a computer or a word processor on paper. Are known.

第2図に、従来の電子写真方式を採用した印刷装置の
ブロック図を示す。
FIG. 2 shows a block diagram of a printing apparatus employing a conventional electrophotographic system.

この装置は、上位制御装置1にインタフェース2を介
して接続されたシステムバス3に対し、プロセッサ4、
プログラムメモリ5、ワーキングメモリ6、フォントメ
モリ7、画像メモリ8及びプリントエンジンインタフェ
ース9が接続された構成のものである。プリントエンジ
ンインタフェース9には、プリントエンジン10が接続さ
れている。
This device is provided with a processor 4 and a system bus 3 connected to the host controller 1 via an interface 2.
In this configuration, a program memory 5, a working memory 6, a font memory 7, an image memory 8, and a print engine interface 9 are connected. The print engine 10 is connected to the print engine interface 9.

上位装置1は、印刷用データを作成するコンピュータ
やワードプロセッサ、画像読取装置等の装置である。イ
ンタフェース2は、いわゆるRS232Cインタフェースやパ
ラレルインタフェース等から構成される既知の回路であ
る。プロセッサ4は、この印刷装置全体の制御を行なう
回路で、その実行用プログラムがプログラムメモリ5に
格納されている。ワーキングメモリ6は、インタフェー
ス2により送受信されたデータを記憶管理するためのメ
モリである。フォントメモリ7は、上位制御装置1から
送り込まれた文字キャラクタコードやその他のコード
を、印刷用のフォントデータに変換するメモリである。
The host device 1 is a device that creates print data, such as a computer, a word processor, and an image reading device. The interface 2 is a known circuit including a so-called RS232C interface, a parallel interface, and the like. The processor 4 is a circuit for controlling the entire printing apparatus, and its execution program is stored in the program memory 5. The working memory 6 is a memory for storing and managing data transmitted and received by the interface 2. The font memory 7 is a memory that converts character character codes and other codes sent from the host control device 1 into font data for printing.

又、画像メモリ8は、編集処理されイメージ化された
印刷用データを、例えば1ページ分格納するランダム・
アクセス・メモリから構成される。プリントエンジン10
は、画像メモリ8に格納された印刷用データに基づい
て、印刷用の用紙に印刷を行なう装置で、用紙搬送系や
電子写真プロセス等を含む装置である。プリントエンジ
ンインタフェース9は、プロセッサ4の指示に従って画
像メモリ8から印刷用データ9aを読み出してプリントエ
ンジン10に転送し、あるいはプリントエンジン10から出
力されるプリントコントロール信号9bを受け入れ、これ
をプロセッサ4等に送信するインタフェース回路であ
る。
The image memory 8 stores, for example, one page of print data that has been edited and converted into an image.
It consists of an access memory. Print engine 10
Is a device for printing on printing paper based on the printing data stored in the image memory 8, and includes a paper transport system, an electrophotographic process, and the like. The print engine interface 9 reads the print data 9a from the image memory 8 and transfers it to the print engine 10 according to the instruction of the processor 4, or receives the print control signal 9b output from the print engine 10, and sends it to the processor 4 or the like. An interface circuit for transmitting.

以上のような印刷装置は、上位制御装置1からインタ
フェース2を介して受信された制御コマンドや文字キャ
ラクタコード、グラフィックコマンド、ビットイメージ
データ等を、必要に応じてワーキングメモリ6に一時格
納し、プロセッサ4の制御に従ってイメージ化された印
刷用データを画像メモリ8上に作成する。
The printing apparatus as described above temporarily stores the control commands, character character codes, graphic commands, bit image data, and the like received from the host controller 1 via the interface 2 in the working memory 6 as necessary. According to the control of the step 4, the image-forming print data is created in the image memory 8.

こうして作成された画像メモリ8内の印刷用データ
は、次のように処理される。
The print data in the image memory 8 thus created is processed as follows.

第3図は、従来の画像メモリからの印刷出力の読み出
し動作を説明する概念図である。
FIG. 3 is a conceptual diagram illustrating a conventional read operation of a print output from an image memory.

図に示すように、画像メモリ8に対して読み出しアド
レス8aが入力すると、画像メモリ8中の各ラスター,
,,…に対応するデータが順に読み出され、これ
がその順番に印刷されて(,,,…)印刷出力
20を得る。即ち、画像メモリ8から読み出されたデータ
は、各ラスター毎にビットストリーム化して第2図のプ
リントエンジン10に送り込まれ、その読み出しと1対1
に対応した印刷動作が行なわれて印刷出力20が得られ
る。尚、通常、画像メモリ8からのデータの読み出し
は、ビット単位でなくワード単位で行なわれる。
As shown in the figure, when a read address 8a is input to the image memory 8, each raster in the image memory 8 is read.
,, ... are read out in order and printed in that order (,, ...) and printed out
Get 20. That is, the data read from the image memory 8 is converted into a bit stream for each raster and sent to the print engine 10 shown in FIG.
Is performed, and a print output 20 is obtained. Normally, data is read from the image memory 8 in word units, not in bit units.

第4図は、従来の画像メモリからの印刷出力の読み出
し方法をより具体的に示した説明図である。
FIG. 4 is an explanatory diagram more specifically showing a conventional method of reading a print output from an image memory.

図のように、画像メモリは、各ラスター,…毎に
それぞれ1ワード(例えば8ビット)単位で区切られて
いる。データは、このワード単位で順番に(1),
(2),(3)…というように読み出され、その右側に
示したような印刷出力が得られる。
As shown in the figure, the image memory is divided in units of one word (for example, 8 bits) for each raster. The data is (1),
Are read out as (2), (3)..., And a print output as shown on the right side is obtained.

この図からも分るように、画像メモリ8に格納された
データとその印刷出力20とは、完全に1対1に対応して
いる。通常、画像メモリ8は、1ページ分程度の印刷出
力20が可能なメモリ容量に設定されており、印刷出力中
の情報量が非常に少ない場合でも、必ずいったん1ペー
ジ分の印刷用データが画像メモリ8に格納され、その後
印刷を行なうという処理がなされていた。又、新たな印
刷用データを画像メモリに書き込む場合には、そのアル
ゴリズムの関係上、いったん画像メモリをクリアしてか
ら書き込みを行なうようにしていた。
As can be seen from this figure, the data stored in the image memory 8 and its print output 20 completely correspond one-to-one. Normally, the image memory 8 is set to a memory capacity capable of printing output 20 of about one page, and even if the amount of information during print output is very small, the print data for one page is always stored in the image memory. A process of storing the data in the memory 8 and then performing printing is performed. Further, when writing new print data to the image memory, the image memory is once cleared and then written due to the algorithm.

(発明が解決しようとする課題) ところで、電子写真方式の印刷装置においては、外周
に感光体層を形成した感光ドラムを一定速度で回転させ
ながら、その感光体上に印刷用データに対応する静電潜
像を形成していく。その静電潜像は、トナーを用いて現
像されて用紙上に転写され定着されるが、このような印
刷工程は連続した動作で行なわれ、中断することができ
ない。従って、通常、画像メモリ8に印刷用データを安
全に編集し終わってから、用紙の搬送を開始し印刷工程
を始動するようにしている。
(Problems to be Solved by the Invention) In an electrophotographic printing apparatus, while rotating a photosensitive drum having a photosensitive layer formed on its outer periphery at a constant speed, a static image corresponding to printing data is formed on the photosensitive body. An electrostatic latent image is formed. The electrostatic latent image is developed using toner, transferred onto a sheet and fixed, but such a printing process is performed in a continuous operation and cannot be interrupted. Therefore, normally, after the print data has been safely edited in the image memory 8, the conveyance of the sheet is started and the printing process is started.

第5図は、このような印刷工程を実行するプリントエ
ンジンの動作説明図である。
FIG. 5 is an explanatory diagram of the operation of the print engine that executes such a printing process.

図において、トレー11a,11bには、印刷されるべき用
紙12が収容されている。この用紙12は、ホッピングロー
ラ13aあるいは13bによって引き出され、搬送路14上を搬
送される。
In the figure, papers 12 to be printed are stored in trays 11a and 11b. The sheet 12 is pulled out by the hopping roller 13a or 13b, and is conveyed on the conveyance path 14.

搬送路14の前方には、感光ドラム15と、その外周に静
電潜像を書き込む書き込み装置16が配置されている。こ
の書き込み装置16は、例えば発光ダイオードアレイある
いはレーザヘッド等から構成される。
A photosensitive drum 15 and a writing device 16 for writing an electrostatic latent image around the photosensitive drum 15 are arranged in front of the transport path 14. The writing device 16 includes, for example, a light emitting diode array or a laser head.

この装置では、用紙12が搬送路14を搬送され、転写位
置W0に達すると、感光ドラム15上のトナーが転写され、
図示しない定着器によって定着されて排出される。通
常、用紙12は、搬送路上の1点WPにおいて、図示しない
レジストローラ等によっていったん搬送を停止されて待
機し、書き込み装置16による静電潜像の書き込み開始と
同時に搬送が再開される。即ち、感光ドラム15がl0だけ
(角度αだけ)回転する間に、用紙12はl0′だけ搬送さ
れてちょうど転写位置W0に達する。
In this apparatus, the sheet 12 is conveyed on the conveying path 14, and reaches the transfer position W 0, the toner on the photosensitive drum 15 is transferred,
The sheet is fixed by a fixing device (not shown) and discharged. Usually, the paper 12, in a point W P on the conveying path, waiting is stopped once conveyed by a registration roller (not shown) or the like, at the same time conveying the start of writing an electrostatic latent image by the writing device 16 is resumed. That is, the photosensitive drum 15 by l 0 (angle α only) during the rotation, the sheet 12 reaches just transfer position W 0 is conveyed by l 0 '.

このようなタイミングを制御するために、第2図の画
像メモリ8から書き込み装置16へ印刷用データを転送す
るタイミングは、ホッピングローラ13aが用紙12をl1
け搬送し、あるいはホッピングローラ13bが用紙12をl1
+l2だけ搬送した後となる。
In order to control such timing, timing of transfer of print data from the image memory 8 of FIG. 2 to the write device 16, the hopping roller 13a conveys the sheet 12 by l 1, or hopping roller 13b is paper 12 to l 1
After + l 2 has been conveyed.

第6図は、画像メモリへのデータの書き込みとデータ
を読み出すタイミングを表わすタイムチャートである。
FIG. 6 is a time chart showing the timing of writing data to the image memory and reading the data.

図のように、先ず時刻t0から時刻t1までの間に、一画
面分の画像メモリをクリアする。続いて時刻t1から書き
込みを開始し、1ページ目の印刷用データの画像メモリ
への書き込みが時刻t2に終了すると、時刻t3で第5図の
ホッピングローラ13aあるいは13bが用紙12の搬送を開始
する。その後、時刻t4まで待機した後、その1ページ目
の印刷用データの画像メモリからの読み出しが開始され
る。時刻t3〜t4までの間に、第5図に示したトレー11a,
11bから引き出された用紙12が、搬送路14上の1点WP
で搬送される。そして、レジストローラ等によりタイミ
ングを合わせて転写位置W0(第5図)へ向けて搬送され
る。こうして第1ページ目の印刷工程が進められる。
As shown, first, during the period from the time t 0 to time t 1, to clear the image memory for one screen. Then start writing from time t 1, the conveying writing to the first page of the image memory for printing data when ending time t 2, the hopping roller 13a or 13b of FIG. 5 at time t 3 is the sheet 12 To start. Then, after waiting until the time t 4, read from the image memory for printing data of the first page is started. Until time t 3 ~t 4, tray 11a shown in FIG. 5,
Paper 12 drawn from 11b is conveyed to a point W P on the transport path 14. Then, the sheet is conveyed toward a transfer position W 0 (FIG. 5) by a registration roller or the like at a suitable timing. Thus, the printing process of the first page proceeds.

一方、画像メモリへの印刷用データの書き込みと読み
出しを交互に行なうと、プリントエンジン側の待ち時間
が増加する。
On the other hand, if writing and reading of print data to and from the image memory are alternately performed, the waiting time on the print engine side increases.

従って、処理の高速化のために、第1ページ目のデー
タの読み出しが開始され、その読み出しが終了する前
に、2ページ目のデータの書き込みが開始される。時刻
t4から時刻t5までの時間は、1ページ目の読み出しが開
始されて、2ページ目のデータを書き込むための一定の
メモリエリアを確保するための時間である。又、時刻t5
から時刻t6までの間は、読み出されたメモリエリアをク
リアする時間である。
Therefore, to speed up the processing, the reading of the data of the first page is started, and before the reading is completed, the writing of the data of the second page is started. Times of Day
time from t 4 to time t 5, the 1 page of reading is started, a time to ensure a constant memory area for writing the second page of data. At time t 5
Between until time t 6 is the time to clear the memory area read.

故に、1ページ目の書き込みが終了して次の2ページ
目の書き込みが開始されるまでの時間tXは、t2〜t6の間
となる。
Therefore, the time t X until finished writing the first page write the next second page is started, is between t 2 ~t 6.

時刻t6以降は、その都度順にメモリクリアを行ないな
がら2ページ目のデータが書き込まれていく。又、時刻
t7で1ページ目のデータの画像メモリからの読み出しが
終了すると、最後のメモリクリアが時刻t8まで行なわ
れ、時刻t8から時刻t9まで2ページ目のデータの書き込
みが続けられる。2ページ目の書き込み中に1ページ目
の印刷が実行され、これが終了して時刻t10に用紙が排
出される。
Time t 6 or later, each time while performing a memory clear second page of data is going to be written in order. Also, time
When reading from the first page of the image memory of the data ends at t 7, the last of the memory clear it is performed until the time t 8, from time t 8 to time t 9 the writing of the data of the second page is continued. The first page of printed during the writing of the second page is executed, this paper is discharged to the time t 10 to the end.

ここで、上記2ページ目の書き込みの際行なわれたメ
モリクリアのための時間は、実質的に1ページ全体のク
リアに要する時間であり、時刻t0からt1までの間に行な
ったメモリクリアと同一の時間となる。このメモリクリ
ア時間は、データの書き込み時間と比べて無視できない
比較的長時間となるため、データ書き込み時間短縮化の
ためには、何らかの対策が必要となる。
Here, the second page time for memory clear performed when writing, the time required for substantially entire page clearing, memory clear was conducted during the period from the time t 0 to t 1 And the same time. Since the memory clear time is a relatively long time that cannot be ignored compared to the data write time, some measure is required to reduce the data write time.

そこで、例えばリードモディファイライト方式と呼ば
れる方式を採用し、画像メモリの読み出しと同時にメモ
リクリアすることも提案されている。しかし、メモリク
リアのためのデータライト時間だけ、画像メモリへのア
クセス時間が長くなり、高速読み出しの妨げとなってい
た。特に、印刷画像の解像度が上がれば上がるほど大容
量の画像メモリが必要となり、メモリクリア時間が増大
して、印刷速度が著しく低下するという問題があった。
Therefore, it has been proposed to adopt a method called, for example, a read-modify-write method, and to clear the memory simultaneously with reading of the image memory. However, the access time to the image memory is increased by the data write time for clearing the memory, which hinders high-speed reading. In particular, as the resolution of the print image increases, a larger capacity of the image memory is required, and the memory clearing time is increased, resulting in a problem that the printing speed is significantly reduced.

本発明は以上の点に着目してなされたもので、不要な
領域のメモリクリア動作を除去し、印刷の高速化を図
り、更に画像メモリの不良を検査することも可能とした
印刷装置を提供することを目的とするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and provides a printing apparatus capable of eliminating a memory clear operation of an unnecessary area, speeding up printing, and further inspecting a defect of an image memory. It is intended to do so.

(課題を解決するための手段) 本発明の印刷装置は、印刷用データを格納する画像メ
モリと、この画像メモリに印刷用データを書き込む印刷
制御部と、前記画像メモリに記憶された印刷用データを
印刷する印刷部とを有し、前記印刷制御部は、印刷出力
に対応させて仮想的に設定された1ページ分の画像から
成る仮想ページを、複数のブロックに分割して、その各
ブロック毎に、それが空白データのみから成る空白ブロ
ックか、有効データを含む有効ブロックかを判定するブ
ロック判定部と、前記ブロック判定部の判定結果に基づ
いて、前記有効ブロックのみを選択して、そのブロック
単位で、前記画像メモリにデータの書き込みを行なうメ
モリブロック割り当て制御部と、前記有効ブロックの前
記仮想ページ中でのブロックアドレスと、前記有効ブロ
ックを書き込んだ前記画像メモリのブロックアドレスと
を対応付け、かつ、前記仮想ページ中で、有効ブロック
と空白ブロックとを識別するマッピングフラグを格納す
るとともに、そのブロックが有効ブロックである場合に
マッピングフラグに対応付け有効ブロックを書き込んだ
前記画像メモリのブロックアドレスを記憶するアドレス
変換部と、 印刷の際、前記アドレス変換部のマッピングフラグを
順次参照し、有効ブロックである場合には、前記画像メ
モリの、前記アドレス変換部にマッピングフラグに対応
して記憶されたアドレスから画像データを読み出して前
記印刷部に出力し、空白ブロックである場合には、ブロ
ックの分の空白データを前記印刷部に出力するデータ読
み出し制御手段とを設けたことを特徴とする印刷装置。
(Means for Solving the Problems) A printing apparatus according to the present invention includes an image memory for storing print data, a print control unit for writing print data in the image memory, and print data stored in the image memory. And a print unit that prints a virtual page composed of an image of one page virtually set in correspondence with print output into a plurality of blocks. For each, it is a blank block consisting only of blank data, or a block determination unit that determines whether it is a valid block containing valid data, and based on the determination result of the block determination unit, only the valid block is selected. A memory block allocation control unit that writes data to the image memory in block units, a block address of the valid block in the virtual page, When the effective block and the block address of the image memory in which the effective block is written are associated, and a mapping flag for identifying an effective block and a blank block is stored in the virtual page, and the block is an effective block, An address conversion unit that stores a block address of the image memory in which the effective block is written in association with the mapping flag; and, when printing, sequentially refers to the mapping flag of the address conversion unit. In the memory, the image data is read from the address stored in the address conversion unit corresponding to the mapping flag and output to the printing unit. If the image data is a blank block, the blank data for the block is sent to the printing unit. A data reading control unit for outputting data; .

(作用) 以上の装置は、例えば1ページ分の容量の画像メモリ
を持つ場合であっても、印刷用データの内容によっては
数ページ分のデータの格納が可能である。
(Operation) The above apparatus can store several pages of data depending on the contents of the print data, for example, even if the apparatus has an image memory of one page capacity.

通常の印刷動作モードにおいては、予めテストフラグ
レジスタをクリアし、先ず、印刷すべき各ページ毎にそ
れぞれプロセッサの側で仮想ページを設定する。
In the normal printing operation mode, the test flag register is cleared in advance, and first, a virtual page is set on the processor side for each page to be printed.

そして、この仮想ページを複数のブロックに分割す
る。これらのブロックのうち、空白データのみからなる
空白ブロックを除外して、有効データを含む有効ブロッ
クのみを画像メモリに書き込むようにする。空白部分の
多い仮想ページについては、この有効ブロック数は非常
に少なくなる。従って、1ページ分の画像メモリに対し
数ページ分の仮想ページの格納が可能になる。
Then, the virtual page is divided into a plurality of blocks. Of these blocks, blank blocks consisting only of blank data are excluded, and only valid blocks containing valid data are written to the image memory. For a virtual page with many blank portions, the number of effective blocks is very small. Therefore, several pages of virtual pages can be stored in one page of image memory.

このようにして有効データを画像メモリの所定のブロ
ックに格納し、あるいは画像メモリに格納されたデータ
を読み出して印刷を行なうために、アドレス変換部が用
意されている。
In order to store the valid data in a predetermined block of the image memory in this way, or to read out the data stored in the image memory and perform printing, an address conversion unit is prepared.

印刷制御部において、メモリブロック割り当て制御部
は、各仮想ページの有効ブロックと空白ブロックとを識
別し、どの仮想ページの有効ブロックが画像メモリのど
のブロックアドレスに格納されているかを表示する情報
をアドレス変換部に格納する。又、このアドレス変換部
には、どの仮想ページのブロックが有効ブロックかを示
すマッピングフラグも格納される。
In the printing control unit, the memory block allocation control unit identifies an effective block and a blank block of each virtual page, and sends information indicating which effective block of the virtual page is stored at which block address of the image memory. Store in the conversion unit. The address conversion unit also stores a mapping flag indicating which virtual page block is a valid block.

そして、このマッピングの際、画像メモリの該当する
ブロックがその都度クリアされる。又、データ読み出し
時には、空白ブロック部分については印刷制御部が空白
データを生成し、有効データのみ所定のタイミングで画
像メモリから読み出すようにする。この読み出し後は、
マッピングフラグ等をリセットする。
Then, at the time of this mapping, the corresponding block in the image memory is cleared each time. When reading data, the print control unit generates blank data for a blank block portion, and reads only valid data from the image memory at a predetermined timing. After this read,
Reset the mapping flag etc.

これにより、仮想ページに対応する印刷出力が得られ
る。又、空白ブロックのメモリクリア動作が無くなるた
め、クリア時間が短縮される。
As a result, a print output corresponding to the virtual page is obtained. Further, since the memory clear operation of the blank block is eliminated, the clear time is shortened.

一方、本発明の装置は、1ページ分の画像メモリに対
して数ページ分の仮想ページの格納をしているため、画
像メモリ上のブロックの相対位置と、仮想ページ上のブ
ロックの相対位置とは、必ずしも一致していない。従っ
て、画像メモリの一部が故障の際に、印刷画像を見ても
どのメモリ素子が故障であるか判別しにくい。
On the other hand, since the apparatus of the present invention stores several pages of virtual pages in one page of image memory, the relative positions of the blocks on the image memory and the relative positions of the blocks on the virtual pages are different. Do not always match. Therefore, when a part of the image memory is out of order, it is difficult to determine which memory element is out of order by looking at the printed image.

そのため、本発明の装置は、画像メモリの不良を検査
するためのテストモードを設け、テストモードの際に
は、プロセッサがテストフラグレジスタをセットしてテ
ストモードの表示を行なう。
Therefore, the apparatus of the present invention provides a test mode for inspecting a defect in the image memory. In the test mode, the processor sets a test flag register to display the test mode.

その後、テストのために印刷すべきページについてプ
ロセッサの側で仮想ページを設定する。そして、その仮
想ページを複数のブロックに分割する。このテストモー
ドの時には、有効ブロックも空白ブロックも全で画像メ
モリに書き込む。こうして、画像メモリ上のブロックの
相対位置と、仮想ページ上のブロックの相対位置を一致
させると、印刷画像を見て、不良メモリ素子を容易に検
査することができる。
Thereafter, a virtual page is set on the processor side for the page to be printed for the test. Then, the virtual page is divided into a plurality of blocks. In this test mode, both the effective block and the blank block are written in the image memory. When the relative positions of the blocks on the image memory and the relative positions of the blocks on the virtual page are matched in this way, it is possible to easily inspect the defective memory element by looking at the printed image.

(実施例) 以下、本発明を実施例によって具体的に説明する。(Examples) Hereinafter, the present invention will be described specifically with reference to examples.

<装置の構成> 第1図は、本発明の印刷装置の実施例を示すブロック
図である。この装置の全体構成は、第2図と同様のもの
であるが、この装置においては、図に示したような印刷
制御部40によって、画像メモリ30のデータの書き込みと
読み出しが制御される。
<Configuration of Apparatus> FIG. 1 is a block diagram showing an embodiment of a printing apparatus according to the present invention. The overall configuration of this apparatus is the same as that of FIG. 2, but in this apparatus, writing and reading of data in the image memory 30 are controlled by the print control unit 40 as shown in the figure.

この装置には、印刷用データ60を受け入れるブロック
判定部41と、そのデータの画像メモリ30への書き込みア
ドレスを割り当てるメモリブロック割り当て制御部42
と、ブロックアドレスを発生するアドレス発生部43と、
所定のアドレス変換等を行なうアドレス変換部44と、画
像メモリ30への書き込みデータの入力あるいはこれから
の読み出しデータの出力経路を切り換える接続切換回路
45と、印刷部50とが設けられている。
The apparatus includes a block determination unit 41 that receives print data 60, and a memory block allocation control unit 42 that allocates a write address of the data to the image memory 30.
An address generator 43 for generating a block address;
An address conversion unit 44 for performing predetermined address conversion and the like, and a connection switching circuit for switching the input path of write data to the image memory 30 or the output path of read data from the image memory 30
45 and a printing unit 50 are provided.

また、この他に、画像メモリの不良を検査するための
テストモードの際にセットされ、通常の印刷動作モード
の際リセットされる、テストフラグレジスタ70が設けら
れている。
In addition, there is provided a test flag register 70 which is set in a test mode for inspecting a defect in the image memory and reset in a normal print operation mode.

更に、テストモードの際に、メモリブロック割り当て
制御部42の動作を切り換えるセレクタ71が設けられてい
る。
Further, a selector 71 for switching the operation of the memory block allocation control unit 42 in the test mode is provided.

<通常の印刷動作モード原理> 本発明の装置の詳細な動作説明をする前に、先ず、第
7図を用いて本発明の装置の原理的な動作説明を行な
う。
<Principle of Normal Printing Operation Mode> Before describing the detailed operation of the apparatus of the present invention, first, the principle of the operation of the apparatus of the present invention will be described with reference to FIG.

第7図において、この例は、2枚の仮想ページ,
の印刷が要求されている場合を示している。
In FIG. 7, this example shows two virtual pages,
This shows a case where printing of a print request is requested.

先ず、ここで仮想ページととをそれぞれ複数のブ
ロック62,62′に分割する。このブロックは、例えば1
つが128×128ビット構成のブロックとする。このように
して、仮想ページを複数のブロックに分割すると、各ブ
ロックはそれぞれ、空白データのみからなる空白ブロッ
ク62′と、有効データを含む有効ブロック62とに分類さ
れる。そして、第1図に示した印刷制御部40は、画像メ
モリ30に対し、各仮想ページ,の有効データを含む
有効ブロック62のみを書き込むようにする。このように
すれば、それぞれ仮想ページ,のイメージはバラバ
ラに分解されてしまうが、1ページ分の容量の画像メモ
リ30に対し、2ページ分の有効ブロック62が十分余裕を
もって格納されることになる。
First, the virtual page is divided into a plurality of blocks 62, 62 '. This block is, for example, 1
One is a block of 128 × 128 bit configuration. When the virtual page is divided into a plurality of blocks in this way, each block is classified into a blank block 62 'consisting of blank data only and a valid block 62 containing valid data. Then, the print control unit 40 shown in FIG. 1 writes only the effective block 62 including the effective data of each virtual page into the image memory 30. In this case, the image of each virtual page is decomposed separately, but the effective block 62 for two pages is stored with a sufficient margin in the image memory 30 of one page capacity. .

このようにして、画像メモリ30に印刷用データを書き
込んだ後、その第7図右側に示すような印刷出力,
を得るためには、仮想ページの第1番目のブロック
(座標(x,y)=(0,0)のブロック)が空白ブロック6
2′であるか否かを判断し、空白ブロックであれば第1
図のメモリブロック割り当て制御部42が空白データを生
成して印刷部50に向けて出力し、有効ブロック62であれ
ば画像メモリ30からその有効ブロックに対応するデータ
を読み出して印刷部50に出力するようにする。
After the print data is written in the image memory 30 in this manner, the print output as shown on the right side of FIG.
In order to obtain the blank block 6, the first block of the virtual page (the block of coordinates (x, y) = (0, 0))
It is determined whether it is 2 'or not.
The memory block allocation control unit 42 shown in the figure generates blank data and outputs it to the printing unit 50. If the data is an effective block 62, the data corresponding to the effective block is read from the image memory 30 and output to the printing unit 50. To do.

これにより、仮想ページとに対応する印刷出力
と印刷出力を再現することができる。又、これにより
仮想ページの印刷出力を印刷中に、仮想ページの
印刷用データの画像メモリ30への書き込みを並行して行
なうことができ、処理の高速化を図ることができる。
Thereby, a print output corresponding to the virtual page and the print output can be reproduced. Further, this allows the printing data of the virtual page to be written to the image memory 30 in parallel while the print output of the virtual page is being printed, so that the processing can be sped up.

ここで、画像メモリのクリア動作について考える。 Here, the clear operation of the image memory will be considered.

従来の場合,仮想ページと画像メモリ30の各ブロッ
クは1対1に対応しており、空白ブロックについても全
てメモリクリアを行なった後書き込みが実行されてい
た。しかし、本発明においては、空白ブロックの書き込
みをしないため、その分のメモリクリア動作が省略され
る。
In the conventional case, the virtual page and each block of the image memory 30 have a one-to-one correspondence, and writing has been executed for all blank blocks after the memory has been cleared. However, in the present invention, since a blank block is not written, the memory clear operation for that is omitted.

即ち、本発明の装置は、画像メモリに有効ブロックの
データの書き込みを行なう直前に、その該当するブロッ
クのメモリクリアを行なうようにし、メモリクリア動作
の減少を達成している。
That is, the apparatus of the present invention performs the memory clear of the corresponding block immediately before writing the data of the valid block to the image memory, thereby achieving a reduction in the memory clear operation.

<各ブロックの構成> 再び第1図に戻って、このような本発明の装置の具体
的な構成と動作を説明する。
<Structure of Each Block> Returning to FIG. 1 again, a specific structure and operation of such an apparatus of the present invention will be described.

第1図において、印刷用データ60は、その仮想ページ
61について見た場合、多数のブロック62に分割されて構
成されている。
In FIG. 1, the print data 60 is the virtual page
In the case of looking at 61, it is configured by being divided into a number of blocks 62.

書き込み動作を行なう場合そのデータは、1ワード
(例えば8ビット)単位で、ブロック判定部41と接続切
換回路45とに入力する。ブロック判定部41は、仮想ペー
ジ61を構成する各ブロック62が空白ブロックか有効ブロ
ックかを判定する回路である。即ち、ブロック判定部41
に設けられた比較器41bには、書き込みデータと基準値4
1a(空白データのレベルに設定されたデータ)とが入力
する。そして、1ブロック分のデータについてこの比較
を行なった後、その判定結果がメモリブロック割り当て
制御部42に対して出力される。
When performing a write operation, the data is input to the block determination unit 41 and the connection switching circuit 45 in units of one word (for example, 8 bits). The block determination unit 41 is a circuit that determines whether each block 62 forming the virtual page 61 is a blank block or a valid block. That is, the block determination unit 41
The comparator 41b provided with the write data and the reference value 4
1a (data set to the level of blank data) is input. After this comparison is performed for one block of data, the determination result is output to the memory block allocation control unit 42.

メモリブロック割り当て制御部42は、画像メモリ30へ
のデータの書き込み等を制御するマイクロプロセッサ、
又は、LSI論理回路等から構成される回路である。この
メモリブロック割り当て制御部42は、動作開始直前にテ
ストフラグレジスタ70を参照する。通常の印刷モードで
は、テストフラグレジスタ70はリセット状態である。そ
の確認後、比較器41bの出力した判定結果を基に、仮想
ページ61のブロックが全て空白データのみからなる空白
ブロックである場合、そのデータの画像メモリ30への書
き込みを阻止する。又、その一方で、有効データを含む
有効ブロックの場合には、接続切り換え回路45を介し
て、画像メモリ30に入力する書き込みデータを所定のア
ドレスに書き込むよう制御する。
The memory block allocation control unit 42 is a microprocessor that controls writing of data to the image memory 30 and the like,
Alternatively, it is a circuit configured from an LSI logic circuit or the like. The memory block allocation control unit 42 refers to the test flag register 70 immediately before the operation starts. In the normal print mode, the test flag register 70 is in a reset state. After the confirmation, based on the determination result output from the comparator 41b, if the blocks of the virtual page 61 are all blank blocks consisting of only blank data, the writing of the data to the image memory 30 is prevented. On the other hand, in the case of a valid block including valid data, control is performed via the connection switching circuit 45 so that write data input to the image memory 30 is written to a predetermined address.

アドレス発生部43は、仮想ページ61のデータを1ワー
ドずつ読み出すために、そのアドレスを発生しメモリブ
ロック割り当て制御部42に出力する回路である。
The address generator 43 is a circuit that generates the address and outputs it to the memory block allocation controller 42 in order to read out the data of the virtual page 61 word by word.

アドレス変換部44は、仮想ページ61の全てのブロック
アドレスに対して、各ブロックが有効ブロックか空白ブ
ロックかを識別するマッピングフラグTを対応付け、か
つ、有効ブロックの場合には、それを書き込んだ画像メ
モリ30のブロックアドレスRMを対応付けたアドレス変換
用メモリ44aを有している。このアドレス変換用メモリ4
4aは、複数の仮想ページ分のフラグ等を格納できる容量
を備えている。又、この他に、画像メモリ30の全てのブ
ロックアドレスに対して、そのブロックアドレスにはど
の仮想ページの有効ブロックが書き込まれているかを識
別するページ識別フラグP1〜PXを格納した、空きブロッ
ク指示用メモリ44bを備えている。
The address conversion unit 44 associates a mapping flag T for identifying whether each block is a valid block or a blank block with all block addresses of the virtual page 61, and writes the mapping flag T if the block is a valid block. It has an address conversion memory 44a associated with the block address RM of the image memory 30. This address conversion memory 4
4a has a capacity capable of storing flags and the like for a plurality of virtual pages. Also, In addition to all of the block address of the image memory 30, and stores the page identification flag P 1 to P X identifies a valid block of any virtual page in the block address is written, the empty A block instruction memory 44b is provided.

メモリブロック割り当て制御部42は、このアドレス変
換部44を参照しながら、画像メモリ30に第7図において
説明した要領で、各仮想ページのデータを書き込み、か
つ、そのデータを接続切り換え回路45を介して印刷部50
に向けて読み出す装置である。
The memory block allocation control unit 42 writes the data of each virtual page to the image memory 30 in the manner described with reference to FIG. 7 while referring to the address conversion unit 44, and transfers the data via the connection switching circuit 45. Printing section 50
It is a device that reads out to.

テストフラグレジスタ70は、第2図に示すプロセッサ
4がテストモードを指示した場合にセットされて、その
状態を表示するレジスタである。例えば、通常の印刷動
作モードの場合は、フラグが立たず“0"状態を記憶して
いるが、テストモードの際には、プロセッサ4がフラグ
をセットし“1"状態を記憶している。尚、このフラグの
セットは、第2図に示した上位制御装置1によって行な
われる場合もある。
The test flag register 70 is a register which is set when the processor 4 shown in FIG. 2 indicates a test mode and indicates the state. For example, in the normal printing operation mode, the flag is not set and the state “0” is stored, but in the test mode, the processor 4 sets the flag and stores the state “1”. The setting of this flag may be performed by the host controller 1 shown in FIG.

セレクタ71は、メモリブロック割り当て制御部42がア
ドレス変換用メモリ44aに記憶させるために出力する画
像メモリブロックアドレスを、テストフラグレジスタ70
の内容に応じて切り換える選択回路である。テストフラ
グレジスタ70のフラグが立っていないとき、即ち通常の
印刷動作モードの時には、メモリブロック割り当て制御
部42が空きブロック指示用メモリ44bによって得られ
た、画像メモリ30の空きブロックアドレスを選択してア
ドレス変換部44に向け出力する。
The selector 71 stores the image memory block address output by the memory block allocation control unit 42 for storage in the address translation memory 44a in the test flag register 70.
Is a selection circuit that switches in accordance with the contents of. When the flag of the test flag register 70 is not set, that is, in the normal printing operation mode, the memory block allocation control unit 42 selects the free block address of the image memory 30 obtained by the free block instruction memory 44b. Output to the address conversion unit 44.

一方、フラグが立っているとき、即ちテストモードの
時には、メモリブロック割り当て制御部42から出力され
る仮想ページブロックアドレスに対応した画像メモリ30
のブロックアドレスが選択される。
On the other hand, when the flag is set, that is, in the test mode, the image memory 30 corresponding to the virtual page block address output from the memory block
Is selected.

メモリブロック割り当て制御部42は、テストフラグレ
ジスタ70を調べてフラグが立っているとき、即ちテスト
モードのときには、比較器41bの出力した判定結果を無
視し、仮想ページ61のブロックが空白データのみの場合
にも、そのデータの書き込みを行なうよう構成されてい
る。
The memory block allocation control unit 42 checks the test flag register 70, and when the flag is set, that is, in the test mode, ignores the determination result output from the comparator 41b, and the block of the virtual page 61 includes only blank data. In such a case, the data is written.

印刷部50は第5図で説明したような機構のプリントエ
ンジンである。
The printing unit 50 is a print engine having a mechanism as described with reference to FIG.

<通常の印刷動作モード> 以上の構成の本発明の印刷装置は次のように動作す
る。
<Normal Printing Operation Mode> The printing apparatus of the present invention having the above configuration operates as follows.

先ず、アドレス発生部43から仮想ページのアドレスが
発生されると、メモリブロック割り当て制御部42はこの
アドレス順に仮想ページ61の最初のブロックのデータを
ワード単位で読み出し、ブロック判定部41において得ら
れた判定結果に基づき、空白ブロックを構成するデータ
の場合には画像メモリ30への書き込みを行なわず、有効
ブロックを構成する場合には画像メモリ30への書き込み
を行なう。読み出されたデータが有効ブロックを構成す
るという判定結果が、メモリブロック割り当て制御部42
に入力すると、メモリブロック割り当て制御部42はアド
レス変換部44のアドレス変換用メモリ44aを参照する。
First, when the address of the virtual page is generated from the address generation unit 43, the memory block allocation control unit 42 reads out the data of the first block of the virtual page 61 in word order in this address order, and the data is obtained in the block determination unit 41. Based on the determination result, writing to the image memory 30 is not performed for data constituting a blank block, and writing to the image memory 30 is performed for forming a valid block. The determination result that the read data forms an effective block is transmitted to the memory block allocation control unit 42.
, The memory block allocation control unit 42 refers to the address conversion memory 44a of the address conversion unit 44.

第8図に、アドレス変換部の詳細な動作説明図を示
す。
FIG. 8 shows a detailed operation explanatory diagram of the address conversion unit.

図において、アドレス変換用メモリ44aには、今、仮
想ページのブロックアドレスVに対応して読み出された
データを含むブロックが、空白ブロックか有効ブロック
かを示すマッピングフラグTと、そのブロックを書き込
む画像メモリ30のブロックアドレスRMとが格納されてい
る。有効ブロックを構成する最初のデータを画像メモリ
30に格納する場合、マッピングフラグは初期値ゼロであ
り、画像メモリ30のブロックアドレスRMも未定である。
そこで、この場合には、マッピングフラグを1にセット
し、画像メモリ30のブロックアドレスRMにはセレクタ71
を通じて画像メモリ30の最初のブロックアドレスを書き
込み、次いで、画像メモリ30のブロックアドレスRMのブ
ロックについてメモリクリアを行なう。その後、上記1
ワード分のデータを画像メモリ30のそのブロックアドレ
スに書き込む。
In the figure, a mapping flag T indicating whether a block including data read corresponding to the block address V of the virtual page is a blank block or a valid block, and the block are written in the address conversion memory 44a. The block address RM of the image memory 30 is stored. The first data that constitutes an effective block is stored in the image memory.
In the case of storing in the mapping memory 30, the initial value of the mapping flag is zero, and the block address RM of the image memory 30 is not yet determined.
Therefore, in this case, the mapping flag is set to 1 and the block address RM of the image memory 30 is set to the selector 71.
Then, the first block address of the image memory 30 is written, and then the memory of the block having the block address RM of the image memory 30 is cleared. Then, the above 1
Word data is written to the block address of the image memory 30.

その1ワード分のデータに続いて、仮想ページ61から
連続して読み出される1ブロック分のデータは、全て同
一の有効ブロックに含まれる。そして、その読み出しの
都度マッピングフラグTを参照した場合、それが1であ
って、マッピング済みであることを示すから、アドレス
変換用メモリ44aに既に書き込まれたブロックアドレスR
Mにそのデータを書き込んでいく。尚、画像メモリ30に
ついては、図示しないアドレスポインタが設けられ、メ
モリクリアの際には、1ワード分のデータが書き込まれ
る毎にインクリメントされて書き込みアドレスが制御さ
れるものとする。
Subsequent to the data for one word, the data for one block continuously read from the virtual page 61 are all included in the same effective block. When the mapping flag T is referred to each time the data is read, it is 1 and indicates that the mapping has been completed. Therefore, the block address R already written in the address conversion memory 44a is read.
Write the data to M. The image memory 30 is provided with an address pointer (not shown). When clearing the memory, the address is incremented each time data of one word is written, and the write address is controlled.

一方、画像メモリ30の所定のブロックアドレスに仮想
ページ61の所定の有効ブロックが書き込まれると、アド
レス変換部44の空きブロック指示用メモリ44bには、そ
の画像メモリ30の各ブロックアドレス毎に、どの仮想ペ
ージのデータが格納されたかを識別するために、ページ
識別フラグがセットされる。このページ識別フラグは、
マッピングフラグと同様に、マッピングされていれば
1、マッピングされていなければゼロ、という内容のも
のである。従って、画像メモリ30の各ブロックについ
て、ページ識別フラグが全てゼロの場合には、なにもマ
ッピングされていないブロックであることが分り、いず
れかのページ識別フラグが1であれば既にマッピングさ
れたブロックであることが分る。新たに有効ブロックを
書き込むためには、画像メモリ中の空きとなっているブ
ロックアドレスを定める場合、この空きブロック指示用
メモリ44bを参照する。
On the other hand, when the predetermined valid block of the virtual page 61 is written to the predetermined block address of the image memory 30, the empty block instruction memory 44b of the address conversion unit 44 stores, for each block address of the image memory 30, A page identification flag is set to identify whether the data of the virtual page has been stored. This page identification flag is
As in the case of the mapping flag, the content is 1 if mapped, and 0 if not mapped. Therefore, if the page identification flags are all zero for each block in the image memory 30, it is known that the block is not mapped, and if any of the page identification flags is 1, the block is already mapped. It turns out that it is a block. In order to write a new effective block, when determining an empty block address in the image memory, the memory 44b for instructing an empty block is referred to.

このようにして、第1図のアドレス発生部43が1ペー
ジ分のアドレスをメモリブロック割り当て制御部42に供
給すると、1ページ分の仮想ページの画像メモリ30への
データ書き込みが完了する。そして、続いて次の仮想ペ
ージのデータの書き込みが行なわれる。
In this way, when the address generation unit 43 of FIG. 1 supplies the address of one page to the memory block allocation control unit 42, the data writing of the virtual page of one page to the image memory 30 is completed. Then, the data of the next virtual page is written.

これと並行して、既に書き込まれたページの印刷を実
行することができる。この場合には、先ず、第1図のア
ドレス発生部43が、仮想ページ61のラスター方向(X方
向)にアドレスを発生させる。メモリブロック割り当て
制御部42は、このアドレスを基にアドレス変換部44のア
ドレス変換用メモリ44aを参照する。
In parallel with this, printing of the already written page can be executed. In this case, first, the address generation unit 43 in FIG. 1 generates an address in the raster direction (X direction) of the virtual page 61. The memory block allocation control unit 42 refers to the address conversion memory 44a of the address conversion unit 44 based on the address.

ここで、そのブロックアドレスに対応するマッピング
フラグTが1であれば、それに対応する画像メモリ30の
ブロックアドレスRMを参照して、画像メモリ30からその
有効データを読み出し、接続切り換え回路45を介して印
刷部50に印刷用データを出力する。又、アドレス変換用
メモリ44aを参照し、そのマッピングフラグTがゼロで
ある場合には、メモリブロック割り当て制御部42が自ら
空白データを生成し、これを接続切り換え回路45を介し
て印刷部50に出力する。
Here, if the mapping flag T corresponding to the block address is 1, the valid data is read from the image memory 30 by referring to the corresponding block address RM of the image memory 30, and is read via the connection switching circuit 45. The print data is output to the print unit 50. Also, referring to the address translation memory 44a, if the mapping flag T is zero, the memory block allocation control unit 42 generates blank data by itself and sends it to the printing unit 50 via the connection switching circuit 45. Output.

このような動作を、1ブロック単位で順に実行すれ
ば、第7図に示したように、仮想ページ61上のイメージ
を印刷出力として再生することができる。読み出しが完
了すると、その仮想ページのマッピングフラグT及びペ
ージ識別フラグは全てリセット(ゼロクリア)され、次
の仮想ページの書き込みを可能にする。
If such operations are sequentially performed in units of one block, the image on the virtual page 61 can be reproduced as a print output, as shown in FIG. When the reading is completed, the mapping flag T and the page identification flag of the virtual page are all reset (cleared to zero), and the writing of the next virtual page is enabled.

<通常の印刷動作モードフローチャート> 第9図は、本発明の装置の、通常の印刷動作モードの
データ書き込み動作を示すフローチャートである。
<Normal Printing Operation Mode Flowchart> FIG. 9 is a flowchart showing a data writing operation in the normal printing operation mode of the apparatus of the present invention.

図において、書き込み動作が開始されると、最初のペ
ージの印刷前に、アドレス変換用メモリ44aのマッピン
グフラグT、及び空きブロック指示用メモリ44bのペー
ジ識別フラグP1〜PXを“0"クリアしておく(ステップS
1)。
In the figure, when the write operation is started, before printing the first page, the page identification flag P 1 a to P X "0" of the mapping flag T, and an empty block indication memory 44b of address translation memory 44a Clear (Step S
1).

次に、仮想ページの読み出しが行なわれる(ステップ
S2)。ここで、始めに読み出されたブロックが空白ブロ
ックか否かが判断される(ステップS3)。
Next, a virtual page is read (step
S2). Here, it is determined whether the block read first is a blank block (step S3).

一方、読み出されたブロックが空白ブロックでない場
合には、Tフラグが“1"か否かが判断される(ステップ
S4)。該当ブロックの最初のデータが書き込まれる段階
では、このTフラグが“0"であるから、アドレス変換用
メモリの該当仮想ページのブロックのTフラグを“1"に
する(ステップS5)。そして、空きブロック指示用メモ
リを参照し、画像メモリの書き込み対象のブロックアド
レスを決定して、Pフラグを1にする(ステップS6)。
On the other hand, if the read block is not a blank block, it is determined whether or not the T flag is "1" (step S1).
S4). At the stage where the first data of the corresponding block is written, since the T flag is "0", the T flag of the block of the corresponding virtual page in the address translation memory is set to "1" (step S5). Then, referring to the empty block instruction memory, the block address to be written in the image memory is determined, and the P flag is set to 1 (step S6).

次に、アドレス変換用メモリに該当するブロックアド
レスRMをセレクタ71を通じて書き込む(ステップS7)。
ここで、データの書き込みの前に、画像メモリの該当ブ
ロックを1ブロック分クリアする(ステップS8)。そし
て、画像メモリの該当ブロックへ仮想ページのデータを
書き込む(ステップS9)。その後、仮想ページ1ページ
分の書き込み動作が終了したか否かが判断される(ステ
ップS10)。1ページ分が終了していなければステップS
1に戻る。又、有効ブロックの最初のデータの書き込み
がされた後はTフラグが“1"であるから、ステップS4に
おいて直接ステップS9に移行し、次のデータを画像メモ
リの該当ブロックへ重ね書きしていく。再び、新たな有
効ブロックの最初のデータの書き込みを行なうときは、
ステップS4からS5へ移行することになる。
Next, the corresponding block address RM is written into the address conversion memory through the selector 71 (step S7).
Here, before writing data, the corresponding block of the image memory is cleared by one block (step S8). Then, the virtual page data is written to the corresponding block of the image memory (step S9). Thereafter, it is determined whether the write operation for one virtual page has been completed (step S10). Step S if one page is not completed
Return to 1. After the first data of the valid block has been written, the T flag is "1". Therefore, in step S4, the process directly proceeds to step S9, and the next data is overwritten on the corresponding block of the image memory. . Again, when writing the first data of a new valid block,
The process moves from step S4 to S5.

書き込み動作は以上のようにして実行される。 The write operation is performed as described above.

第10図は、データ読み出し動作を示すフローチャート
である。
FIG. 10 is a flowchart showing a data read operation.

読み出し動作が開始されると、アドレス変換用メモリ
のマッピングフラグTが始めに参照される(ステップS
1)。ここで、Tフラグが“0"か否かが判断される(ス
テップS2)。Tフラグが“0"の場合には、そのブロック
は空白ブロックであるから、空白データを1ブロック分
出力する(ステップS3)。一方、Tフラグが“0"でない
場合には有効ブロックであるから、該当するブロックア
ドレスRMを参照する(ステップS4)。そして、画像メモ
リからそのアドレスの有効ブロックを1ブロック分読み
出す(ステップS5)。その後、1ページ分の読み出しが
全て終了したか否かが判断され(ステップS6)、未終了
の場合にはステップS1に戻り、終了した場合にはステッ
プS7に移行する。1ページ分の読み出しが終了すると、
その読み出された仮想ページに該当するアドレス変換用
メモリのTフラグが全てリセットされる。又、空きブロ
ック指示用メモリにおいてその仮想ページに該当するT
フラグが全てリセットされる(ステップS8)。
When the read operation is started, the mapping flag T of the address translation memory is first referenced (step S).
1). Here, it is determined whether the T flag is “0” (step S2). If the T flag is "0", the block is a blank block, so that one block of blank data is output (step S3). On the other hand, if the T flag is not "0", the block is a valid block, and the corresponding block address RM is referred to (step S4). Then, one valid block at that address is read from the image memory (step S5). Thereafter, it is determined whether reading of one page has been completed (step S6). If not completed, the process returns to step S1, and if completed, the process proceeds to step S7. When reading of one page is completed,
All the T flags of the address translation memory corresponding to the read virtual page are reset. Also, in the empty block instruction memory, the T
All flags are reset (step S8).

即ち、このように読み出し段階においては、画像メモ
リのクリアが行なわれない。
That is, in the reading stage, the image memory is not cleared.

第11図には、実際の仮想ページの構成例を2種示し
た。
FIG. 11 shows two types of configuration examples of actual virtual pages.

同図(a)には、80のブロックから成る仮想ページが
示されており、そのうちハッチングを付した34のブロッ
クが有効ブロック62で、その他のブロックが空白ブロッ
ク62′とされている。一方、同図(b)に示した仮想ペ
ージは80のブロックから構成されており、そのうち11の
ブロックが有効ブロック62であり、残りのブロックが空
白ブロック62′とされている。
FIG. 7A shows a virtual page composed of 80 blocks, of which 34 hatched blocks are valid blocks 62, and other blocks are blank blocks 62 '. On the other hand, the virtual page shown in FIG. 7B is composed of 80 blocks, of which 11 blocks are valid blocks 62 and the remaining blocks are blank blocks 62 '.

このような、2種の仮想ページの印刷を行なった場
合、メモリクリア時間は次のようになる。
When such two types of virtual pages are printed, the memory clear time is as follows.

第12図は、メモリクリア時間を比較したグラフであ
る。
FIG. 12 is a graph comparing memory clear times.

図において、グラフ最上段に示したのは、従来方法に
よるメモリクリアの合計時間であり、その時間はt3にな
っている。ところが、本発明を実施した場合、第11図
(a)の仮想ページは、第12図のようにより短い時間t2
でメモリクリアがされる。又、第11図(b)に示した仮
想ページは、第12図に示したように更に短い時間t1でメ
モリクリアされる。
In the figure, that shown in the top graph is the total time of the memory clearing by conventional methods, the time is in the t 3. However, when the present invention is implemented, the virtual page in FIG. 11 (a) has a shorter time t 2 as shown in FIG.
To clear the memory. Moreover, the virtual page shown in FIG. 11 (b) is a memory cleared further a short time t 1 as shown in FIG. 12.

このように、本発明の装置においては、画像メモリの
メモリクリアは有効ブロックの書き込みの際、その有効
ブロック分についてのみ行なわれるため、有効ブロック
の占める割り合いに応じてメモリクリア時間が減少す
る。従って、有効ブロックの少ない仮想ページについて
は、メモリクリア時間が大幅に短縮される。
As described above, in the apparatus of the present invention, the memory clear of the image memory is performed only for the effective blocks when writing the effective blocks, so that the memory clear time is reduced according to the ratio of the effective blocks. Therefore, for a virtual page having a small number of effective blocks, the memory clear time is significantly reduced.

<テストモードのデータ書込み動作> 次に、テストモードで、テストフラグレジスタ70が
“1"にセットされている状態について説明する。
<Data Write Operation in Test Mode> Next, a state in which the test flag register 70 is set to “1” in the test mode will be described.

テストモードの際には、通常印刷の場合とは異なり、
空きブロック指示用メモリ44bのページ識別フラグを、
予め画像メモリ30の1ページ分に必要な容量分セットし
ておく。
In the test mode, unlike normal printing,
The page identification flag of the empty block indication memory 44b is
The capacity required for one page of the image memory 30 is set in advance.

先ず、アドレス発生部43から仮想ページのアドレスが
発生されると、メモリブロック割り当て制御部42は、こ
のアドレス順に仮想ページ61の最初のブロックのデータ
をワード単位で読み出し、ブロック判定部41において得
られた判定結果には関係なく、空白ブロックを構成する
データの場合でも全て画像メモリ30へ書き込みを行な
う。
First, when the address of the virtual page is generated from the address generation unit 43, the memory block allocation control unit 42 reads the data of the first block of the virtual page 61 in word order in this address order, and the data is obtained by the block determination unit 41. Irrespective of the determination result, even in the case of data constituting a blank block, all data is written to the image memory 30.

読み出されたデータがメモリブロック割り当て制御部
42に入力されると、メモリブロック割り当て制御部42
は、アドレス変換部44のアドレス変換用メモリ44aを参
照する。しかし、ブロックを構成する最初のデータを画
像メモリ30に格納する場合、マッピングフラグは初期値
ゼロであり、画像メモリ30のブロックアドレスRMも未定
である。そこで、この場合には、マッピングフラグを
“1"にセットし、画像メモリ30のブロックアドレスRMと
して、仮想ページブロックアドレスと画像メモリ30とが
1対1の対応となるように、仮想ページブロックアドレ
スにあるオフセット値を加えたアドレスを、セレクタ71
を通して書き込み、次いで画像メモリ30のブロックアド
レスRMのブロックについてメモリクリアを行なう。その
後、上記1ワード分のデータを画像メモリ30のそのブロ
ックアドレスに書き込む。
The read data is stored in the memory block allocation control unit.
When input to 42, the memory block allocation control unit 42
Refer to the address translation memory 44a of the address translation unit 44. However, when the first data constituting the block is stored in the image memory 30, the mapping flag has an initial value of zero, and the block address RM of the image memory 30 is undecided. Therefore, in this case, the mapping flag is set to “1”, and the virtual page block address is set as the block address RM of the image memory 30 so that the virtual page block address and the image memory 30 have a one-to-one correspondence. The address obtained by adding the offset value
Then, the memory is cleared for the block of the block address RM in the image memory 30. Thereafter, the data for one word is written to the block address of the image memory 30.

同一のブロックに含まれるアドレスの書き込みの際に
は、マッピングフラグTを参照すると、それが“1"であ
ってマッピング済みであることを示すから、アドレス変
換用メモリ44aに既に書き込まれたブロックアドレスRM
にそのデータを書き込んでいく。
When the address contained in the same block is written, when the mapping flag T is referred to, it is “1”, indicating that the mapping has been performed. Therefore, the block address already written in the address conversion memory 44a is written. RM
The data is written to.

本動作を、フローチャートにすると次のようになる。 The flowchart of this operation is as follows.

第13図はテストモードのデータ書込み動作フローチャ
ートである。
FIG. 13 is a flowchart of a data write operation in the test mode.

図において、書き込み動作が開始されると、最初のペ
ージの印刷前に、アドレス変換用メモリ44aのマッピン
グフラグT、及び空きブロック指示用メモリ44bのペー
ジ識別フラグP1〜PXを“0"クリアしておく(ステップS
1)。
In the figure, when the write operation is started, before printing the first page, the page identification flag P 1 a to P X "0" of the mapping flag T, and an empty block indication memory 44b of address translation memory 44a Clear (Step S
1).

次に、印刷する仮想ページ容量分の空きブロック指示
用メモリのPフラグを1にセットする(ステップS2)。
その後、仮想ページの読み出しが行なわれる(ステップ
S3)。
Next, the P flag of the free block instruction memory for the virtual page capacity to be printed is set to 1 (step S2).
Thereafter, a virtual page is read (step
S3).

さらにTフラグが“1"か否かが判断される(ステップ
S4)。該当ブロックの最初のデータが書き込まれる段階
では、このTフラグが“0"であるから、アドレス変換用
メモリの該当仮想ページのブロックのTフラグを“1"に
する(ステップS5)。そして、仮想ブロックアドレスに
画像メモリを1対1に対応するようなオフセットを加算
し、書込みブロックを決定する(ステップS6)。
It is further determined whether the T flag is "1" (step
S4). At the stage where the first data of the corresponding block is written, since the T flag is "0", the T flag of the block of the corresponding virtual page in the address translation memory is set to "1" (step S5). Then, an offset is added to the virtual block address so as to correspond to the image memory on a one-to-one basis, and a write block is determined (step S6).

次に、アドレス変換用メモリに該当するブロックアド
レスRMをセレクタ71を通じて書き込む(ステップS7)。
ここで、データの書き込みの前に、画像メモリの該当ブ
ロックを1ブロック分クリアする(ステップS8)。そし
て、画像メモリの該当ブロックへ仮想ページのデータを
書き込む(ステップS9)。その後、仮想ページ1ページ
分の書き込み動作が終了したか否かが判断される(ステ
ップS10)。1ページ分が終了していなければステップS
3に戻る。
Next, the corresponding block address RM is written into the address conversion memory through the selector 71 (step S7).
Here, before writing data, the corresponding block of the image memory is cleared by one block (step S8). Then, the virtual page data is written to the corresponding block of the image memory (step S9). Thereafter, it is determined whether the write operation for one virtual page has been completed (step S10). Step S if one page is not completed
Return to 3.

データ読み出し動作に関しては、テストフラグレジス
タが“1"のときも、“0"のときと同じ動作となる。但
し、第10図に示すステップS2において、Tフラグは、全
てT=1となっているのでステップS3の処理を行なうこ
とはなくなる。
Regarding the data read operation, when the test flag register is “1”, the operation is the same as when it is “0”. However, in step S2 shown in FIG. 10, all the T flags are set to T = 1, so that the processing in step S3 is not performed.

このように、本発明の装置においては、テストモード
において、仮想ページと画像メモリを1対1に対応させ
て印刷することが可能となるので、画像メモリのテスト
を容易に行なうことが可能となる。
As described above, in the apparatus of the present invention, in the test mode, it is possible to print the virtual pages and the image memories in a one-to-one correspondence, so that the test of the image memories can be easily performed. .

本発明は以上の実施例に限定されない。 The present invention is not limited to the above embodiments.

印刷部の構成は電子写真のみならず、サーマルプリン
タ方式、ワイヤドット方式等いずれの方式のものでもよ
い。又、印刷制御部は、同様の性能を持つ種々の回路に
おきかえて差し支えない。
The configuration of the printing unit is not limited to electrophotography, but may be any type such as a thermal printer type or a wire dot type. Further, the print control unit may be replaced with various circuits having the same performance.

(発明の効果) 以上説明した本発明の印刷装置によれば、印刷用デー
タに対応する仮想ページの有効ブロックに該当する部分
だけ、画像メモリのクリアを行なうようにしたので、従
来に比べて無用なクリア動作を大幅に省略でき、印刷速
度の高速化を図ることができる。
(Effects of the Invention) According to the printing apparatus of the present invention described above, the image memory is cleared only in the portion corresponding to the effective block of the virtual page corresponding to the print data. A clear operation can be largely omitted, and the printing speed can be increased.

更に、テストモードにおいては、仮想ページ上のブロ
ックの相対位置と画像メモリ上のブロックの相対位置を
一致させるので、画像メモリの検査も容易に行なえる効
果がある。
Further, in the test mode, since the relative position of the block on the virtual page and the relative position of the block on the image memory are matched, there is an effect that the inspection of the image memory can be easily performed.

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

第1図は本発明の印刷装置の実施例を示すブロック図、
第2図は従来の印刷装置のブロック図、第3図は従来の
画像メモリからの印刷出力の読み出し制御を説明する概
念図、第4図は従来の画像メモリからの印刷出力の読み
出し動作の具体例を説明する説明図、第5図はそのプリ
ントエンジンの動作説明図、第6図は従来の画像メモリ
の書き込み読み出しタイミングを説明するタイムチャー
ト、第7図は本発明の印刷装置の動作原理を説明する説
明図、第8図は本発明の装置のアドレス変換部の詳細な
動作説明図、第9図は本発明の装置の通常の印刷動作モ
ードにおける書き込み動作を説明するフローチャート、
第10図は本発明の装置のデータ読み出し動作を説明する
フローチャート、第11図は仮想ページの構成例を示す説
明図、第12図はその仮想ページを印刷した場合のメモリ
クリア時間を比較したグラフ、第13図はテストモードに
おける書き込み動作を説明するフローチャートである。 30……画像メモリ、40……印刷制御部、 41……ブロック判定部、 42……メモリブロック割り当て制御部、 43……アドレス発生部、 44……アドレス変換部、 44a……アドレス変換用メモリ、 44b……空きブロック指示用メモリ、 45……接続切換回路、50……印刷部、 60……印刷用データ、61……仮想ページ、 62……ブロック、70……テストフラグレジスタ、 71……セレクタ、T……マッピングフラグ、 RM……画像メモリブロックアドレス、 P1,P2‥PX……ページ識別フラグ。
FIG. 1 is a block diagram showing an embodiment of a printing apparatus according to the present invention;
FIG. 2 is a block diagram of a conventional printing apparatus, FIG. 3 is a conceptual diagram for explaining control of reading out a print output from a conventional image memory, and FIG. FIG. 5 is an explanatory diagram for explaining an example, FIG. 5 is an explanatory diagram of the operation of the print engine, FIG. 6 is a time chart for explaining write / read timing of a conventional image memory, and FIG. FIG. 8 is a detailed explanatory diagram of the operation of the address conversion unit of the apparatus of the present invention. FIG. 9 is a flowchart illustrating a write operation of the apparatus of the present invention in a normal printing operation mode.
FIG. 10 is a flowchart for explaining a data read operation of the device of the present invention, FIG. 11 is an explanatory diagram showing a configuration example of a virtual page, and FIG. 12 is a graph comparing memory clear times when the virtual page is printed FIG. 13 is a flowchart for explaining the write operation in the test mode. 30 ... Image memory, 40 ... Print control unit, 41 ... Block determination unit, 42 ... Memory block allocation control unit, 43 ... Address generation unit, 44 ... Address conversion unit, 44a ... Address conversion memory , 44b: memory for indicating empty blocks, 45: connection switching circuit, 50: printing unit, 60: printing data, 61: virtual page, 62: block, 70: test flag register, 71: ... selector, T ...... mapping flag, RM ...... image memory block address, P 1, P 2 ‥ P X ...... page identification flag.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】印刷用データを格納する画像メモリと、 この画像メモリに印刷用データを書き込む印刷制御と、 前記画像メモリに記憶された印刷用データを印刷する印
刷部とを有し、 前記印刷制御部は、 印刷出力に対応させて仮想的に設定された1ページ分の
画像から成る仮想ページを、複数のブロックに分割し
て、その各ブロック毎に、それが空白データのみから成
る空白ブロックか、有効データを含む有効ブロックかを
判定するブロック判定部と、 前記ブロック判定部の判定結果に基づいて、有効ブロッ
クのみを選択して、そのブロック単位で、前記画像メモ
リにデータの書き込みを行うメモリブロック割り当て制
御部と、 有効ブロックの前記仮想ページ中でのブロックアドレス
と、有効ブロックを書き込んだ前記画像メモリのブロッ
クアドレスとを対応付け、かつ、前記仮想ページ中で、
有効ブロックと空白ブロックとを識別するマッピングフ
ラグを格納するとともに、そのブロックが有効ブロック
である場合にマッピングフラグに対応付け有効ブロック
を書き込んだ前記画像メモリのブロックアドレスを記憶
するアドレス変換部と、 印刷の際、前記アドレス変換部のマッピングフラグを順
次参照し、有効ブロックである場合には、前記画像メモ
リの、前記アドレス変換部にマッピングフラグに対応し
て記憶されたアドレスから画像データを読み出して前記
印刷部に出力し、空白ブロックである場合には、ブロッ
クの分の空白データを前記印刷部に出力するデータ読み
出し制御手段とを設けたことを特徴とする印刷装置。
An image memory for storing print data; a print control for writing the print data to the image memory; and a printing unit for printing the print data stored in the image memory. The control unit divides a virtual page composed of an image for one page virtually set in correspondence with print output into a plurality of blocks, and for each block, a blank block composed of only blank data. And a block determining unit that determines whether the block is a valid block including valid data. Based on the determination result of the block determining unit, only a valid block is selected, and data is written to the image memory in block units. A memory block allocation control unit, a block address of the effective block in the virtual page, and a block of the image memory in which the effective block is written. Associating the address, and, in the virtual page,
An address conversion unit that stores a mapping flag for identifying an effective block and a blank block, and stores a block address of the image memory in which the effective block is written in association with the mapping flag when the block is an effective block; At this time, sequentially refer to the mapping flag of the address conversion unit, if the block is a valid block, read the image data from the address stored in the image memory corresponding to the mapping flag in the address conversion unit, A printing apparatus, further comprising: a data readout control unit that outputs to a printing unit, and when the block is a blank block, outputs blank data corresponding to the block to the printing unit.
【請求項2】請求項1記載の印刷装置に、画像メモリ検
査のためのテストモードの表示を行うテストフラグレジ
スタを設け、 テストモードの際、前記テストフラグレジスタがセット
され、前記仮想ページの有効ブロックと空白ブロックの
全てを前記画像メモリに書き込み、前記画像メモリ上の
ブロックの相対位置と前記仮想ページ上のブロックの相
対位置を一致させることを特徴とする印刷装置。
2. A printing apparatus according to claim 1, further comprising a test flag register for displaying a test mode for image memory inspection, wherein said test flag register is set in a test mode, and said virtual page is validated. A printing apparatus, wherein all blocks and blank blocks are written into the image memory, and the relative positions of the blocks on the image memory and the relative positions of the blocks on the virtual page are matched.
JP1098921A 1989-04-20 1989-04-20 Printing equipment Expired - Lifetime JP2575208B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1098921A JP2575208B2 (en) 1989-04-20 1989-04-20 Printing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1098921A JP2575208B2 (en) 1989-04-20 1989-04-20 Printing equipment

Publications (2)

Publication Number Publication Date
JPH02277681A JPH02277681A (en) 1990-11-14
JP2575208B2 true JP2575208B2 (en) 1997-01-22

Family

ID=14232591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1098921A Expired - Lifetime JP2575208B2 (en) 1989-04-20 1989-04-20 Printing equipment

Country Status (1)

Country Link
JP (1) JP2575208B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60181942A (en) * 1984-02-29 1985-09-17 Fujitsu Ltd Memory control device
JPS6112364A (en) * 1984-06-29 1986-01-20 Fujitsu Ltd Data printing control system
JPS6324321A (en) * 1986-07-01 1988-02-01 Casio Comput Co Ltd Dynamic memory control circuit for image memory

Also Published As

Publication number Publication date
JPH02277681A (en) 1990-11-14

Similar Documents

Publication Publication Date Title
US5146547A (en) Printer buffer and rasterization arrangement
US4771340A (en) Method and apparatus for printing information
JP2740568B2 (en) Printing equipment
US5237645A (en) Printing apparatus
US5883722A (en) Controller for editing encoded image data
JP2575208B2 (en) Printing equipment
JPH023351A (en) Printer
JP2000181643A (en) Device and method for image formation
EP0554998A1 (en) Image processing method and apparatus
JP2958229B2 (en) Printing apparatus and control method thereof
JPS6035687B2 (en) Print data control device
JP3610142B2 (en) Print control apparatus and print control method
JP2575227B2 (en) Printing equipment
JP3466803B2 (en) Laser beam printer, print control method and apparatus
JPH0790652B2 (en) Printer
EP0334102B1 (en) Printing apparatus
JP2962930B2 (en) Image forming apparatus and control program processing method in the apparatus
JPH01228263A (en) Printing device
JPS6125165B2 (en)
JP2941113B2 (en) Printing equipment
JPH11305962A (en) Printing processor, data processing method therefor and medium for storing computer readable program
JPS593625A (en) Empty confirmation control system of image buffer of printer
EP0419391B1 (en) Printer buffer and rasterization arrangement
JPS59221069A (en) Memory control system
JP3377292B2 (en) Printing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20081024

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20081024

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20091024

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091024

Year of fee payment: 13