JPH082021A - Page printer device - Google Patents

Page printer device

Info

Publication number
JPH082021A
JPH082021A JP14050994A JP14050994A JPH082021A JP H082021 A JPH082021 A JP H082021A JP 14050994 A JP14050994 A JP 14050994A JP 14050994 A JP14050994 A JP 14050994A JP H082021 A JPH082021 A JP H082021A
Authority
JP
Japan
Prior art keywords
data
print
buffer
raster
printing
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.)
Withdrawn
Application number
JP14050994A
Other languages
Japanese (ja)
Inventor
Yutaka Sakaino
裕 境野
Nobuo Wakasugi
信雄 若杉
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
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP14050994A priority Critical patent/JPH082021A/en
Publication of JPH082021A publication Critical patent/JPH082021A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To provide a page printer device capable of preventing the occurrence of overrunning errors and also preventing cost from being increased. CONSTITUTION:The device includes a receiving buffer 34 adapted to store printing data from the host computer, a raster buffer 15 to have printing image data stored therein among printing data taken out of the receiving buffer 34, and a printing part 16 wherein the printing image data taken out of the raster buffer 15 is transmitted as raster outputted data DATA, and printing is effected relative to the raster outputted data DATA. Also, it includes means for determining the capacity of the receiving buffer 34, and means for setting printing speed corresponding to the capacity of the receiving buffer 34. In this instance, when the capacity of the receiving buffer 34 is small, printing speed is set low, and when the capacity of the receiving buffer 34 is large, printing speed is set high. As a result, printing data within the receiving buffer 34 never wants.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ページプリンタ装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a page printer device.

【0002】[0002]

【従来の技術】従来、ホストコンピュータに接続された
ページプリンタ装置においては、フォントデータや、図
形、文字等の輪郭線を構成する直線及び曲線を描くため
のPost Script言語に代表されるページ記述
言語などを使用することなく、印刷イメージデータのみ
で印刷を行うダムプリンタがある。
2. Description of the Related Art Conventionally, in a page printer connected to a host computer, a page description language typified by PostScript language for drawing straight lines and curves that form the outlines of font data, figures, characters, etc. There is a dumb printer that prints only with print image data without using such as.

【0003】図2は従来のページプリンタ装置のブロッ
ク図、図3は従来のページプリンタ装置の印刷動作を示
す図、図4は従来のページプリンタ装置のタイムチャー
ト、図5は従来のページプリンタ装置の動作を示すフロ
ーチャートである。図において、11はCPUであり、
該CPU11は、プログラムROM12に格納されたプ
ログラムによってページプリンタ装置全体の制御を行
う。前記CPU11は、ホストコンピュータインタフェ
ース13を介して図示しないホストコンピュータから用
紙幅指定等のESCコマンド及び印刷イメージデータを
受信し、受信バッファ14に書き込む。前記プログラム
ROM12は、印刷速度を4〔PPM〕に設定するため
の印刷速度設定テーブル12aを有する。また、前記受
信バッファ14は512〔kbyte〕の容量を有す
る。
2 is a block diagram of a conventional page printer, FIG. 3 is a diagram showing a printing operation of the conventional page printer, FIG. 4 is a time chart of the conventional page printer, and FIG. 5 is a conventional page printer. 3 is a flowchart showing the operation of FIG. In the figure, 11 is a CPU,
The CPU 11 controls the entire page printer device according to a program stored in the program ROM 12. The CPU 11 receives an ESC command such as paper width designation and print image data from a host computer (not shown) via the host computer interface 13, and writes the print image data in the reception buffer 14. The program ROM 12 has a print speed setting table 12a for setting the print speed to 4 [PPM]. The reception buffer 14 has a capacity of 512 [kbytes].

【0004】そして、該受信バッファ14がフルになる
か、あるいは1ページ分の印刷データの受信が終了し、
ホストコンピュータからの印刷起動コマンドを受信する
と、CPU11は、受信バッファ14から印刷データを
取り出してラスタバッファ15に書き込む。通常、印刷
データには、TIFF、デルタロー等の圧縮処理が施さ
れているので、印刷データは伸長させられてラスタバッ
ファ15に書き込まれるようになっている。
Then, the reception buffer 14 becomes full, or reception of print data for one page is completed,
Upon receiving the print start command from the host computer, the CPU 11 extracts the print data from the reception buffer 14 and writes it in the raster buffer 15. Usually, since the print data is subjected to compression processing such as TIFF and delta low, the print data is decompressed and written in the raster buffer 15.

【0005】次に、CPU11は、ホストコンピュータ
からの印刷開始コマンドを受信すると、ラスタバッファ
15から印刷イメージデータを取り出し、該印刷イメー
ジデータをラスタ出力データDATAとして印刷部16
に転送する。該印刷部16は、ラスタラインLに沿って
図3に示すような順序で画像を用紙Pに印刷する。この
場合、スキャンタイミング発生回路17は、タイマ18
による計時に基づいてページ同期クロックCLK1、ラ
イン同期クロックCLK2及びドットタイミングクロッ
クCLK3を発生させる。そのために、前記タイマー1
8は印刷タイミング信号SG1を発生させ、該印刷タイ
ミング信号SG1をスキャンタイミング発生回路17に
送る。
Next, when the CPU 11 receives a print start command from the host computer, it takes out print image data from the raster buffer 15 and uses the print image data as raster output data DATA in the printing unit 16.
Transfer to. The printing unit 16 prints the image on the paper P along the raster line L in the order shown in FIG. In this case, the scan timing generation circuit 17 uses the timer 18
The page synchronization clock CLK1, the line synchronization clock CLK2, and the dot timing clock CLK3 are generated based on the clocking by. Therefore, the timer 1
Reference numeral 8 generates a print timing signal SG1 and sends the print timing signal SG1 to the scan timing generation circuit 17.

【0006】そして、前記CPU11は、ドットタイミ
ングクロックCLK3に同期させてラスタバッファ15
からラスタラインLの印刷イメージデータを1ドットず
つ取り出す。この時、前記ドットタイミングクロックC
LK3は、ラスタバッファ15に送られるとともに印刷
部16にも送られ、ラスタバッファ15から取り出され
た印刷イメージデータをラスタ出力データDATAとし
て印刷部16に転送する。
Then, the CPU 11 synchronizes with the dot timing clock CLK3 and the raster buffer 15
The print image data of the raster line L is extracted from each dot. At this time, the dot timing clock C
The LK3 is sent to the raster buffer 15 and also to the printing unit 16, and transfers the print image data extracted from the raster buffer 15 to the printing unit 16 as raster output data DATA.

【0007】そして、1ラスタライン分のラスタ出力デ
ータDATAの転送が終了すると、ライン同期クロック
CLK2が印刷部16に送られる。該印刷部16はライ
ン同期クロックCLK2を受けると、図4に示すように
移動タイミングT1においてラスタスキャン位置を用紙
Pの左端に戻し、1ラスタライン分の改行を行う。さら
に、1ページ内の全ラスタラインのスキャンが終了する
と、印刷部16にページ同期クロックCLK1が送られ
る。前記印刷部16はページ同期クロックCLK1を受
けると、吸入・排出タイミングT2において用紙Pを排
出し、次の用紙Pを吸入する。
When the transfer of the raster output data DATA for one raster line is completed, the line synchronization clock CLK2 is sent to the printing section 16. Upon receiving the line synchronization clock CLK2, the printing unit 16 returns the raster scan position to the left end of the paper P at the movement timing T1 as shown in FIG. 4, and performs line feed for one raster line. Further, when scanning of all raster lines in one page is completed, the page synchronization clock CLK1 is sent to the printing unit 16. When the printing section 16 receives the page synchronization clock CLK1, it ejects the paper P at the intake / ejection timing T2 and inhales the next paper P.

【0008】ところで、前記スキャンタイミング発生回
路17は、ラスタバッファ15からビット長分のラスタ
出力データDATAが取り出されるたびに、CPU11
に対してラスタバッファ15への印刷データの書込要求
を出す。また、前記印刷タイミング信号SG1は、前記
印刷速度設定テーブル12aのデータによって設定され
た4〔PPM〕の印刷速度に対応させて発生させられ、
前述したように前記スキャンタイミング発生回路17に
送られるとともに、モータ駆動部19にも送られる。そ
して、該モータ駆動部19は、前記印刷タイミング信号
SG1に基づいてドラムモータ20を駆動する。なお、
DBはデータバス、ABはアドレスバスである。ステッ
プS1 CPU11は受信バッファ14から印刷データ
を取り出す。ステップS2 取り出された印刷データが
用紙幅指定等のコマンドであるかどうかを判断する。用
紙幅指定等のコマンドである場合はステップS3に、用
紙幅指定等のコマンドでない場合はステップS4に進
む。ステップS3 前記コマンドの内容に従って、各種
レジスタの設定を行い、ステップS1に戻る。ステップ
S4 取り出された印刷データが印刷開始コマンドであ
るかどうかを判断する。印刷開始コマンドである場合は
ステップS5に、印刷開始コマンドでない場合はステッ
プS6に進む。ステップS5 ラスタバッファ15から
印刷イメージデータを取り出して、ラスタ出力データD
ATAとして印刷部16に転送し、印刷を開始する。ス
テップS6 取り出された印刷データは印刷イメージデ
ータであると判断し、該印刷イメージデータをラスタバ
ッファ15に書き込む。
By the way, the scan timing generation circuit 17 is provided with the CPU 11 each time the raster output data DATA of a bit length is taken out from the raster buffer 15.
To the raster buffer 15 is issued. The print timing signal SG1 is generated in correspondence with the print speed of 4 [PPM] set by the data of the print speed setting table 12a,
As described above, it is sent to the scan timing generation circuit 17 and also to the motor drive unit 19. Then, the motor drive unit 19 drives the drum motor 20 based on the print timing signal SG1. In addition,
DB is a data bus and AB is an address bus. Step S1 The CPU 11 takes out the print data from the reception buffer 14. In step S2, it is determined whether the fetched print data is a command for designating the paper width or the like. If the command is a command for specifying the paper width, the process proceeds to step S3. Step S3 Various registers are set according to the contents of the command, and the process returns to step S1. In step S4, it is determined whether the fetched print data is a print start command. If it is the print start command, the process proceeds to step S5. If it is not the print start command, the process proceeds to step S6. In step S5, the print image data is fetched from the raster buffer 15 and the raster output data D
The data is transferred to the printing unit 16 as ATA to start printing. Step S6: The extracted print data is judged to be print image data, and the print image data is written in the raster buffer 15.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、前記従
来のページプリンタ装置においては、高密度化された印
刷イメージ、印刷データに圧縮処理を施すことが困難な
パターン等を印刷する場合、ホストコンピュータインタ
フェース13における処理に必要な時間が長くなり、単
位時間において受信バッファ14に書き込まれる印刷デ
ータの量より、受信バッファ14から取り出されてラス
タバッファ15に書き込まれる印刷データの量が多くな
ってしまう。この場合、受信バッファ14内の印刷デー
タが不足し、オーバランエラーを発生させてしまう。
However, in the above-described conventional page printer device, when printing a high-density print image, a pattern which is difficult to perform compression processing on print data, or the like, the host computer interface 13 is used. The time required for the processing in 1 becomes long, and the amount of print data extracted from the reception buffer 14 and written to the raster buffer 15 becomes larger than the amount of print data written to the reception buffer 14 per unit time. In this case, the print data in the receive buffer 14 becomes insufficient, resulting in an overrun error.

【0010】次に、従来の他のページプリンタ装置につ
いて説明する。図6は従来の他のページプリンタ装置の
ブロック図である。なお、図2と同じ構成の部分につい
ては同じ符号を付与することによって、その説明を省略
する。この場合、受信バッファ24は4〔Mbyte〕
の容量を有し、図2に示すページプリンタ装置の4倍の
印刷データを格納することができる。
Next, another conventional page printer device will be described. FIG. 6 is a block diagram of another conventional page printer. It should be noted that the same components as those in FIG. 2 are denoted by the same reference numerals and the description thereof will be omitted. In this case, the reception buffer 24 has 4 [Mbyte].
It has a capacity of 4 times and can store print data four times as large as that of the page printer apparatus shown in FIG.

【0011】前記プログラムROM12は、印刷速度を
4〔PPM〕に設定するための印刷速度設定テーブル1
2aを有し、印刷タイミング信号SG1は、前記印刷速
度設定テーブル12aのデータによって設定された4
〔PPM〕の印刷速度に対応させて発生させられる。し
たがって、印刷速度に対して受信バッファ24の容量が
大きいので、該受信バッファ24に十分な量の印刷デー
タを書き込んだ後に印刷を開始することによって、オー
バランエラーが発生するのを防止することができる。
The program ROM 12 has a print speed setting table 1 for setting the print speed to 4 [PPM].
2a, and the print timing signal SG1 is 4 set by the data of the print speed setting table 12a.
It is generated corresponding to the printing speed of [PPM]. Therefore, since the capacity of the reception buffer 24 is large with respect to the printing speed, it is possible to prevent the occurrence of an overrun error by starting printing after writing a sufficient amount of print data in the reception buffer 24. .

【0012】ところが、容量の大きい受信バッファ24
を使用すると、コストが高くなってしまう。本発明は、
前記従来のページプリンタ装置の問題点を解決して、オ
ーバランエラーが発生するのを防止することができ、コ
ストが高くなるのを防止することができるページプリン
タ装置を提供することを目的とする。
However, the reception buffer 24 having a large capacity
If you use, the cost will be high. The present invention
It is an object of the present invention to provide a page printer device that solves the problems of the conventional page printer device, prevents an overrun error from occurring, and prevents an increase in cost.

【0013】[0013]

【課題を解決するための手段】そのために、本発明のペ
ージプリンタ装置においては、ホストコンピュータから
の印刷データが格納される受信バッファと、該受信バッ
ファから取り出された印刷データのうちの印刷イメージ
データが格納されるラスタバッファと、該ラスタバッフ
ァから取り出された印刷イメージデータがラスタ出力デ
ータとして転送され、該ラスタ出力データについて印刷
を行う印刷部とを有する。
Therefore, in the page printer apparatus of the present invention, a reception buffer in which print data from the host computer is stored, and print image data out of the print data extracted from the reception buffer. Is stored in the raster buffer, and the print image data extracted from the raster buffer is transferred as raster output data, and the printing unit prints the raster output data.

【0014】そして、前記受信バッファの容量を判断す
る手段と、前記受信バッファの容量に対応する印刷速度
を設定する手段とを有する。また、本発明の他のページ
プリンタ装置においては、ホストコンピュータからの印
刷データが格納される受信バッファと、該受信バッファ
から取り出された印刷データのうちの印刷イメージデー
タが格納されるラスタバッファと、該ラスタバッファか
ら取り出された印刷イメージデータがラスタ出力データ
として転送され、該ラスタ出力データについて印刷を行
う印刷部とを有する。
Further, it has means for judging the capacity of the receiving buffer and means for setting a printing speed corresponding to the capacity of the receiving buffer. Further, in another page printer apparatus of the present invention, a reception buffer in which print data from the host computer is stored, a raster buffer in which print image data of the print data extracted from the reception buffer is stored, The print image data fetched from the raster buffer is transferred as raster output data, and the printing unit prints the raster output data.

【0015】そして、前記印刷データのうちの圧縮コマ
ンドの圧縮率を読み取る手段と、該圧縮率に対応する印
刷速度を設定する手段とを有する。
Further, it has means for reading the compression rate of the compression command in the print data and means for setting the printing speed corresponding to the compression rate.

【0016】[0016]

【作用】本発明によれば、前記のようにページプリンタ
装置においては、ホストコンピュータからの印刷データ
が格納される受信バッファと、該受信バッファから取り
出された印刷データのうちの印刷イメージデータが格納
されるラスタバッファと、該ラスタバッファから取り出
された印刷イメージデータがラスタ出力データとして転
送され、該ラスタ出力データについて印刷を行う印刷部
とを有する。
According to the present invention, as described above, in the page printer device, the reception buffer for storing the print data from the host computer and the print image data of the print data extracted from the reception buffer are stored. And a print unit that transfers the print image data extracted from the raster buffer as raster output data and prints the raster output data.

【0017】この場合、前記ホストコンピュータから送
信された印刷データが受信され、受信バッファに書き込
まれる。続いて、該受信バッファから取り出された印刷
データがESCコマンドであるか印刷イメージデータで
あるかが判断され、印刷イメージデータである場合はラ
スタバッファに書き込まれる。該ラスタバッファから取
り出された印刷イメージデータはラスタ出力データとし
て印刷部に転送され、該印刷部において前記ラスタ出力
データについて印刷が行われる。
In this case, the print data transmitted from the host computer is received and written in the reception buffer. Subsequently, it is determined whether the print data fetched from the reception buffer is an ESC command or print image data, and if it is print image data, it is written in the raster buffer. The print image data extracted from the raster buffer is transferred to the printing unit as raster output data, and the raster output data is printed by the printing unit.

【0018】そして、前記受信バッファの容量を判断す
る手段と、前記受信バッファの容量に対応する印刷速度
を設定する手段とを有する。したがって、受信バッファ
の容量が小さいと印刷速度が低く設定され、受信バッフ
ァの容量が大きいと印刷速度が高く設定される。また、
本発明の他のページプリンタ装置においては、ホストコ
ンピュータからの印刷データが格納される受信バッファ
と、該受信バッファから取り出された印刷データのうち
の印刷イメージデータが格納されるラスタバッファと、
該ラスタバッファから取り出された印刷イメージデータ
がラスタ出力データとして転送され、該ラスタ出力デー
タについて印刷を行う印刷部とを有する。
Then, it has means for judging the capacity of the receiving buffer and means for setting a printing speed corresponding to the capacity of the receiving buffer. Therefore, if the capacity of the receiving buffer is small, the printing speed is set low, and if the capacity of the receiving buffer is large, the printing speed is set high. Also,
In another page printer apparatus of the present invention, a reception buffer in which print data from the host computer is stored, a raster buffer in which print image data of the print data extracted from the reception buffer is stored,
The print image data fetched from the raster buffer is transferred as raster output data, and the printing unit prints the raster output data.

【0019】この場合、前記ホストコンピュータから送
信された印刷データが受信され、受信バッファに書き込
まれる。続いて、該受信バッファから取り出された印刷
データがESCコマンドであるか印刷イメージデータで
あるかが判断され、印刷イメージデータである場合はラ
スタバッファに書き込まれる。該ラスタバッファから取
り出された印刷イメージデータはラスタ出力データとし
て印刷部に転送され、該印刷部において前記ラスタ出力
データについて印刷が行われる。
In this case, the print data transmitted from the host computer is received and written in the reception buffer. Subsequently, it is determined whether the print data fetched from the reception buffer is an ESC command or print image data, and if it is print image data, it is written in the raster buffer. The print image data extracted from the raster buffer is transferred to the printing unit as raster output data, and the raster output data is printed by the printing unit.

【0020】そして、前記印刷データのうちの圧縮コマ
ンドの圧縮率を読み取る手段と、該圧縮率に対応する印
刷速度を設定する手段とを有する。したがって、前記圧
縮率が高いと印刷速度が高く設定され、圧縮率が低いと
印刷速度が低く設定される。
Then, it has means for reading the compression rate of the compression command in the print data and means for setting the printing speed corresponding to the compression rate. Therefore, when the compression rate is high, the printing speed is set high, and when the compression rate is low, the printing speed is set low.

【0021】[0021]

【実施例】以下、本発明の実施例について図面を参照し
ながら詳細に説明する。図1は本発明の第1の実施例に
おけるページプリンタ装置のブロック図、図7は本発明
の第1の実施例における受信バッファの構造を示す図、
図8は本発明の第1の実施例におけるページプリンタ装
置の動作を示すフローチャートである。
Embodiments of the present invention will now be described in detail with reference to the drawings. 1 is a block diagram of a page printer device according to the first embodiment of the present invention, and FIG. 7 is a diagram showing the structure of a receiving buffer according to the first embodiment of the present invention.
FIG. 8 is a flow chart showing the operation of the page printer device according to the first embodiment of the present invention.

【0022】図において、11はCPUであり、該CP
U11は、プログラムROM32に格納されたプログラ
ムによってページプリンタ装置全体の制御を行う。前記
CPU11は、ホストコンピュータインタフェース13
を介して図示しないホストコンピュータから用紙幅指定
等のESCコマンド及び印刷イメージデータを受信し、
受信バッファ34に格納する。
In the figure, 11 is a CPU, and the CP
The U11 controls the entire page printer apparatus by a program stored in the program ROM 32. The CPU 11 is a host computer interface 13
Via the host computer (not shown) to receive the ESC command such as paper width and print image data,
It is stored in the reception buffer 34.

【0023】この場合、前記プログラムROM32は、
印刷速度を2〔PPM〕に設定するための印刷速度設定
テーブル32a、印刷速度を4〔PPM〕に設定するた
めの印刷速度設定テーブル32b、印刷速度を6〔PP
M〕に設定するための印刷速度設定テーブル32c等を
有する。また、受信バッファ34はRAMから成り、印
刷イメージの密度、パターン等に対応させて容量が設定
される。
In this case, the program ROM 32 is
A printing speed setting table 32a for setting the printing speed to 2 [PPM], a printing speed setting table 32b for setting the printing speed to 4 [PPM], and a printing speed of 6 [PP
The printing speed setting table 32c and the like for setting to [M]. The reception buffer 34 is composed of a RAM, and the capacity is set according to the density, pattern, etc. of the print image.

【0024】そして、ページプリンタ装置の図示しない
電源が投入されると、図7に示される受信バッファ34
において、メモリマップ上のどのメモリ領域までRAM
が搭載されているかを図8のフローチャートに従って判
断する。ここでは、受信バッファ34において、1〔M
byte〕のRAMが搭載されている場合について説明
する。ステップS11 メモリ領域Bの最終アドレスF
FFFFHにデータ(例えばAAH)をライトする。ス
テップS12 メモリ領域Bの最終アドレスFFFFF
Hからデータをリードする。ステップS13 ライトし
たデータとリードしたデータとが等しいかどうかを判断
する。等しい場合はステップS15に、等しくない場合
はステップS14に進む。ステップS14 メモリ領域
BにはRAMが搭載されていないことが分かるので、R
AMはメモリ領域Aに搭載されていて、受信バッファ3
4の容量は512〔kbyte〕であると判断し、2
〔PPM〕の印刷速度フラグをセットする。ステップS
15 メモリ領域Cの最終アドレス1FFFFFHにデ
ータ(例えば55H)をライトする。ステップS16
メモリ領域Cの最終アドレス1FFFFFHからデータ
をリードする。ステップS17 ライトしたデータとリ
ードしたデータとが等しいかどうかを判断する。等しい
場合はステップS19に、等しくない場合はステップS
18に進む。ステップS18 メモリ領域CにはRAM
が搭載されていないことが分かるので、RAMはメモリ
領域Bに搭載されていて、受信バッファ34の容量は1
〔Mbyte〕であると判断し、4〔PPM〕の印刷速
度フラグをセットする。ステップS19 メモリ領域D
の最終アドレス3FFFFFHにデータ(例えば3C
H)をライトする。ステップS20 メモリ領域Dの最
終アドレス3FFFFFHからデータをリードする。ス
テップS21 ライトしたデータとリードしたデータと
が等しいかどうかを判断する。等しい場合はステップS
23に、等しくない場合はステップS22に進む。ステ
ップS22 メモリ領域DにはRAMが搭載されていな
いことが分かるので、RAMはメモリ領域Cに搭載され
ていて、受信バッファ34の容量は2〔Mbyte〕で
あると判断し、6〔PPM〕の印刷速度フラグをセット
する。ステップS23 メモリ領域DにRAMが搭載さ
れていることが分かるので、受信バッファ34の容量は
4〔Mbyte〕であると判断し、8〔PPM〕の印刷
速度フラグをセットする。
When the page printer is powered on (not shown), the receiving buffer 34 shown in FIG.
In which memory area on the memory map
It is determined according to the flowchart of FIG. Here, in the reception buffer 34, 1 [M
The case where a RAM of [byte] is installed will be described. Step S11 Last address F of memory area B
Data (eg, AAH) is written to FFFFH. Step S12 Final address of memory area B FFFFF
Read data from H. In step S13, it is determined whether the written data and the read data are equal. If they are equal, the process proceeds to step S15, and if they are not equal, the process proceeds to step S14. Step S14 Since it can be seen that the RAM is not mounted in the memory area B, R
AM is mounted in the memory area A, and the reception buffer 3
It is judged that the capacity of 4 is 512 [kbyte], and 2
The printing speed flag of [PPM] is set. Step S
15 Write data (for example, 55H) to the final address 1FFFFFH of the memory area C. Step S16
Data is read from the final address 1FFFFFH of the memory area C. In step S17, it is determined whether the written data and the read data are the same. If they are equal, go to step S19. If they are not equal, go to step S19.
Proceed to 18. Step S18 RAM in the memory area C
Since it can be seen that the RAM is not mounted, the RAM is mounted in the memory area B and the capacity of the reception buffer 34 is 1
When it is determined that the printing speed flag is [Mbyte], the printing speed flag of 4 [PPM] is set. Step S19 Memory area D
Data at the final address 3FFFFFH (for example, 3C
Write H). In step S20, the data is read from the final address 3FFFFFH of the memory area D. In step S21, it is determined whether the written data and the read data are equal. If they are equal, step S
23, if not equal, go to step S22. Step S22 Since it can be seen that the RAM is not mounted in the memory area D, it is determined that the RAM is mounted in the memory area C and the capacity of the reception buffer 34 is 2 [Mbyte], and 6 [PPM] is determined. Set the print speed flag. Step S23 Since it can be seen that the RAM is mounted in the memory area D, it is judged that the capacity of the receiving buffer 34 is 4 [Mbyte], and the printing speed flag of 8 [PPM] is set.

【0025】次に、CPU11は印刷速度フラグを参照
し、該印刷速度フラグに対応させてあらかじめCPU1
1に格納されたロード値を読み出し、該ロード値をタイ
マー38にセットする。該タイマー38は、前記ロード
値に対応する印刷タイミング信号SG2を発生させる。
そして、前記タイマー38がリロードされると、印刷タ
イミング信号SG2はスキャンタイミング発生回路17
に送られるとともに、モータ駆動部19にも送られる。
Next, the CPU 11 refers to the print speed flag and makes the CPU 1 correspond to the print speed flag in advance.
The load value stored in 1 is read and the load value is set in the timer 38. The timer 38 generates a print timing signal SG2 corresponding to the load value.
When the timer 38 is reloaded, the print timing signal SG2 is output to the scan timing generation circuit 17
And is also sent to the motor drive unit 19.

【0026】前記ホストコンピュータからの印刷データ
の構成は、用紙幅指定等のコマンドの後に印刷イメージ
データが続くようになっている。そして、前記受信バッ
ファ34がフルになるか、あるいは1ページ分の印刷デ
ータの受信が終了し、ホストコンピュータからの印刷起
動コマンドを受信すると、CPU11は、受信バッファ
34から印刷データを取り出してラスタバッファ15に
書き込む。通常、印刷データには、TIFF、デルタロ
ー等の圧縮処理が施されているので、印刷データは伸長
させられてラスタバッファ15に書き込まれるようにな
っている。
The structure of print data from the host computer is such that print image data follows a command such as paper width designation. Then, when the reception buffer 34 becomes full, or when the reception of the print data for one page is completed and the print start command is received from the host computer, the CPU 11 takes out the print data from the reception buffer 34 and outputs it to the raster buffer. Write to 15. Usually, since the print data is subjected to compression processing such as TIFF and delta low, the print data is decompressed and written in the raster buffer 15.

【0027】次に、CPU11は、ホストコンピュータ
からの印刷開始コマンドを受信すると、ラスタバッファ
15から印刷イメージデータを取り出し、該印刷イメー
ジデータをラスタ出力データDATAとして印刷部16
に転送する。該印刷部16は、ラスタラインL(図3参
照)に沿って画像を用紙Pに印刷する。この場合、前記
スキャンタイミング発生回路17は、タイマ38からの
印刷タイミング信号SG2に基づいてページ同期クロッ
クCLK1、ライン同期クロックCLK2及びドットタ
イミングクロックCLK3を発生させる。
Next, when the CPU 11 receives a print start command from the host computer, it takes out print image data from the raster buffer 15 and uses the print image data as raster output data DATA in the printing unit 16.
Transfer to. The printing unit 16 prints an image on the paper P along the raster line L (see FIG. 3). In this case, the scan timing generation circuit 17 generates a page synchronization clock CLK1, a line synchronization clock CLK2 and a dot timing clock CLK3 based on the print timing signal SG2 from the timer 38.

【0028】そして、前記CPU11は、ドットタイミ
ングクロックCLK3に同期させてラスタバッファ15
からラスタラインLの印刷イメージデータを1ドットず
つ取り出す。この時、前記ドットタイミングクロックC
LK3は、ラスタバッファ15に送られるとともに印刷
部16にも送られ、ラスタバッファ15から取り出され
た印刷イメージデータをラスタ出力データDATAとし
て印刷部16に転送する。
Then, the CPU 11 synchronizes with the dot timing clock CLK3 and the raster buffer 15
The print image data of the raster line L is extracted from each dot. At this time, the dot timing clock C
The LK3 is sent to the raster buffer 15 and also to the printing unit 16, and transfers the print image data extracted from the raster buffer 15 to the printing unit 16 as raster output data DATA.

【0029】そして、1ラスタライン分のラスタ出力デ
ータDATAの転送が終了すると、ライン同期クロック
CLK2が印刷部16に送られる。該印刷部16はライ
ン同期クロックCLK2を受けると、移動タイミングT
1(図4参照)においてラスタスキャン位置を用紙Pの
左端に戻し、1ラスタライン分の改行を行う。さらに、
1ページ内の全ラスタラインのスキャンが終了すると、
印刷部16にページ同期クロックCLK1が送られる。
前記印刷部16はページ同期クロックCLK1を受ける
と、吸入・排出タイミングT2において用紙Pを排出
し、次の用紙Pを吸入する。
When the transfer of the raster output data DATA for one raster line is completed, the line synchronization clock CLK2 is sent to the printing section 16. When the printing section 16 receives the line synchronization clock CLK2, it moves at the timing T
In 1 (see FIG. 4), the raster scan position is returned to the left end of the paper P, and line feed for one raster line is performed. further,
After scanning all raster lines in one page,
The page synchronization clock CLK1 is sent to the printing unit 16.
When the printing section 16 receives the page synchronization clock CLK1, it ejects the paper P at the intake / ejection timing T2 and inhales the next paper P.

【0030】ところで、前記スキャンタイミング発生回
路17は、ラスタバッファ15からビット長分のラスタ
出力データDATAが取り出されるたびに、CPU11
に対してラスタバッファ15への印刷データの書込要求
を出す。この場合、印刷データの圧縮率が低くても、印
刷速度を低く設定することができるので、オーバーラン
エラーが発生するのを防止することができる。
By the way, the scan timing generation circuit 17 is provided with the CPU 11 each time the raster output data DATA for the bit length is taken out from the raster buffer 15.
To the raster buffer 15 is issued. In this case, even if the compression rate of the print data is low, the printing speed can be set low, so that an overrun error can be prevented from occurring.

【0031】また、前記印刷タイミング信号SG2は、
前記印刷速度設定テーブル32aのデータによって設定
された印刷速度に対応させて発生させられ、前述したよ
うに前記スキャンタイミング発生回路17に送られると
ともに、モータ駆動部19にも送られる。そして、該モ
ータ駆動部19は、前記印刷タイミング信号SG2に基
づいてドラムモータ20を駆動する。なお、DBはデー
タバス、ABはアドレスバスである。
Further, the print timing signal SG2 is
It is generated corresponding to the print speed set by the data of the print speed setting table 32a, and is sent to the scan timing generation circuit 17 and the motor drive unit 19 as described above. Then, the motor drive unit 19 drives the drum motor 20 based on the print timing signal SG2. DB is a data bus and AB is an address bus.

【0032】このように、受信バッファ34の容量に対
応させて前記印刷タイミング信号SG2が変更され、印
刷速度が選択されるので、受信バッファ34の容量が小
さい場合でも、オーバランエラーが発生するのを防止す
ることができる。次に、本発明の第2の実施例について
説明する。図9は本発明の第2の実施例におけるページ
プリンタ装置のブロック図、図10は本発明の第2の実
施例におけるページプリンタ装置の動作を示すフローチ
ャートである。なお、図1と同じ構造については図1を
援用し、その説明を省略する。
As described above, since the print timing signal SG2 is changed according to the capacity of the receiving buffer 34 and the printing speed is selected, an overrun error is prevented even if the capacity of the receiving buffer 34 is small. Can be prevented. Next, a second embodiment of the present invention will be described. FIG. 9 is a block diagram of a page printer apparatus according to the second embodiment of the present invention, and FIG. 10 is a flow chart showing the operation of the page printer apparatus according to the second embodiment of the present invention. Note that FIG. 1 is referred to for the same structure as FIG. 1, and the description thereof is omitted.

【0033】この場合、印刷データの圧縮率に対応させ
て印刷速度が変更されるようになっている。そのため
に、図示しないホストコンピュータにおいて印刷データ
をページプリンタ装置に送信する前に、圧縮率を表す圧
縮率コマンドが用紙幅指定等のコマンド及び印刷イメー
ジデータに付加される。前記ホストコンピュータからの
印刷データの構成は、用紙幅指定等のコマンドの後に圧
縮率コマンドが続き、更に印刷イメージデータが続くよ
うになっている。なお、前記圧縮率コマンドは、例え
ば、ESC^Pn(nは圧縮率)のような独特な構成を
有する。ステップS31 CPU11は受信バッファ3
4から印刷データを取り出す。ステップS32 取り出
された印刷データが用紙幅指定等の通常のコマンドであ
るかどうかを判断する。用紙幅指定等の通常のコマンド
である場合はステップS33に、用紙幅指定等の通常の
コマンドでない場合はステップS34に進む。ステップ
S33 前記コマンドの内容に従って、各種レジスタの
設定を行い、ステップS31に戻る。ステップS34
取り出された印刷データが圧縮率コマンドであるかどう
かを判断する。圧縮率コマンドである場合はステップS
35に、圧縮率コマンドでない場合はステップS37に
進む。ステップS35 圧縮率コマンドの圧縮率nに基
づいてプログラムROM32内の印刷速度設定テーブル
32a、32b、…を参照し、前記圧縮率nに対応する
印刷速度を設定する。この場合、前記圧縮率nが高いと
印刷速度が高く設定され、圧縮率nが低いと印刷速度が
低く設定される。
In this case, the printing speed is changed according to the compression rate of the print data. Therefore, before transmitting the print data to the page printer by a host computer (not shown), a compression ratio command indicating the compression ratio is added to the command such as the paper width designation and the print image data. The configuration of the print data from the host computer is such that a command such as a paper width designation is followed by a compression ratio command, and further print image data. The compression rate command has a unique configuration such as ESC ^ Pn (n is the compression rate). Step S31 The CPU 11 uses the reception buffer 3
The print data is extracted from 4. In step S32, it is determined whether the fetched print data is a normal command for specifying the paper width. If the command is a normal command for specifying the paper width, the process proceeds to step S33. If it is not a normal command for specifying the paper width, the process proceeds to step S34. Step S33 Various registers are set according to the contents of the command, and the process returns to step S31. Step S34
It is determined whether the extracted print data is a compression rate command. If it is a compression ratio command, step S
If it is not the compression rate command, the process proceeds to step S37. Step S35 Based on the compression rate n of the compression rate command, the print speed setting tables 32a, 32b, ... In the program ROM 32 are referred to, and the print speed corresponding to the compression rate n is set. In this case, when the compression rate n is high, the printing speed is set high, and when the compression rate n is low, the printing speed is set low.

【0034】前記プログラムROM32は、印刷速度を
2〔PPM〕に設定するための印刷速度設定テーブル3
2a、印刷速度を4〔PPM〕に設定するための印刷速
度設定テーブル32b、印刷速度を6〔PPM〕に設定
するための印刷速度設定テーブル32c等を有する。ス
テップS36 印刷速度に対応した印刷速度設定テーブ
ル32a、32b、…が選択されると、該印刷速度設定
テーブル32a、32b、…のデータ値が読み出され、
該データ値は内部データバスDBを介して印刷部16及
びモータ駆動部19に送られるととともに、スキャンタ
イミング発生回路17のカウンタにセットされる。ステ
ップS37 取り出された印刷開始コマンドであるかど
うかを判断する。印刷開始コマンドである場合はステッ
プS38に、印刷開始コマンドでない場合はステップS
39に進む。ステップS38 ラスタバッファ15から
印刷イメージデータを取り出してラスタ出力データDA
TAとして印刷部16に送り、印刷を開始する。ステッ
プS39 取り出された印刷データは印刷イメージデー
タであると判断し、該印刷イメージデータをラスタバッ
ファ15に書き込む。
The program ROM 32 has a print speed setting table 3 for setting the print speed to 2 [PPM].
2a, a printing speed setting table 32b for setting the printing speed to 4 [PPM], a printing speed setting table 32c for setting the printing speed to 6 [PPM], and the like. Step S36 When the print speed setting tables 32a, 32b, ... Corresponding to the print speed are selected, the data values of the print speed setting tables 32a, 32b ,.
The data value is sent to the printing unit 16 and the motor driving unit 19 via the internal data bus DB, and is set in the counter of the scan timing generating circuit 17. In step S37, it is determined whether the print start command has been taken out. If it is a print start command, step S38 is performed. If it is not a print start command, step S38.
Proceed to 39. In step S38, the print image data is extracted from the raster buffer 15 and the raster output data DA
The TA is sent to the printing unit 16 to start printing. Step S39 It is judged that the fetched print data is print image data, and the print image data is written in the raster buffer 15.

【0035】なお、本発明は前記実施例に限定されるも
のではなく、本発明の趣旨に基づいて種々変形させるこ
とが可能であり、それらを本発明の範囲から排除するも
のではない。
The present invention is not limited to the above-mentioned embodiments, but can be variously modified within the scope of the present invention, and they are not excluded from the scope of the present invention.

【0036】[0036]

【発明の効果】以上詳細に説明したように、本発明によ
れば、ページプリンタ装置においては、ホストコンピュ
ータからの印刷データが格納される受信バッファと、該
受信バッファから取り出された印刷データのうちの印刷
イメージデータが格納されるラスタバッファと、該ラス
タバッファから取り出された印刷イメージデータがラス
タ出力データとして転送され、該ラスタ出力データにつ
いて印刷を行う印刷部とを有する。
As described in detail above, according to the present invention, in the page printer device, of the reception buffer in which the print data from the host computer is stored and the print data extracted from the reception buffer, Of the print image data is stored, and the print image data extracted from the raster buffer is transferred as raster output data, and the printing unit prints the raster output data.

【0037】そして、前記受信バッファの容量を判断す
る手段と、前記受信バッファの容量に対応する印刷速度
を設定する手段とを有する。この場合、受信バッファの
容量が小さいと印刷速度が低く設定され、受信バッファ
の容量が大きいと印刷速度が高く設定される。したがっ
て、受信バッファに書き込まれる印刷データの量より、
受信バッファから取り出されラスタバッファに書き込ま
れる印刷データの量が多くなることがなくなる。その結
果、受信バッファ内の印刷データが不足することがな
く、オーバランエラーが発生するのを防止することがで
きる。
Then, it has means for judging the capacity of the reception buffer and means for setting a printing speed corresponding to the capacity of the reception buffer. In this case, the printing speed is set low when the capacity of the reception buffer is small, and the printing speed is set high when the capacity of the reception buffer is large. Therefore, from the amount of print data written in the receive buffer,
The amount of print data taken out from the reception buffer and written in the raster buffer does not increase. As a result, there is no shortage of print data in the receive buffer, and it is possible to prevent an overrun error from occurring.

【0038】また、本発明の他のページプリンタ装置に
おいては、ホストコンピュータからの印刷データが格納
される受信バッファと、該受信バッファから取り出され
た印刷データのうちの印刷イメージデータが格納される
ラスタバッファと、該ラスタバッファから取り出された
印刷イメージデータがラスタ出力データとして転送さ
れ、該ラスタ出力データについて印刷を行う印刷部とを
有する。
Further, in another page printer of the present invention, a reception buffer for storing print data from the host computer and a raster for storing print image data of the print data extracted from the reception buffer. It has a buffer and a print unit for transferring the print image data taken out from the raster buffer as raster output data and printing the raster output data.

【0039】そして、前記印刷データのうちの圧縮コマ
ンドの圧縮率を読み取る手段と、該圧縮率に対応する印
刷速度を設定する手段とを有する。この場合、前記圧縮
率が高いと印刷速度が高く設定され、圧縮率が低いと印
刷速度が低く設定される。したがって、受信バッファに
書き込まれる印刷データの量より、受信バッファから取
り出されてラスタバッファに書き込まれる印刷データの
量が多くなることがなくなる。その結果、受信バッファ
内の印刷データが不足することがなく、オーバランエラ
ーが発生するのを防止することができる。
Further, it has means for reading the compression rate of the compression command in the print data and means for setting the printing speed corresponding to the compression rate. In this case, the printing speed is set high when the compression rate is high, and the printing speed is set low when the compression rate is low. Therefore, the amount of print data taken out from the reception buffer and written in the raster buffer does not become larger than the amount of print data written in the reception buffer. As a result, there is no shortage of print data in the receive buffer, and it is possible to prevent an overrun error from occurring.

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

【図1】本発明の第1の実施例におけるページプリンタ
装置のブロック図である。
FIG. 1 is a block diagram of a page printer device according to a first embodiment of the present invention.

【図2】従来のページプリンタ装置のブロック図であ
る。
FIG. 2 is a block diagram of a conventional page printer device.

【図3】従来のページプリンタ装置の印刷動作を示す図
である。
FIG. 3 is a diagram showing a printing operation of a conventional page printer device.

【図4】従来のページプリンタ装置のタイムチャートで
ある。
FIG. 4 is a time chart of a conventional page printer device.

【図5】従来のページプリンタ装置の動作を示すフロー
チャートである。
FIG. 5 is a flowchart showing the operation of a conventional page printer device.

【図6】従来の他のページプリンタ装置のブロック図で
ある。
FIG. 6 is a block diagram of another conventional page printer device.

【図7】本発明の第1の実施例における受信バッファの
構造を示す図である。
FIG. 7 is a diagram showing a structure of a reception buffer according to the first embodiment of the present invention.

【図8】本発明の第1の実施例におけるページプリンタ
装置の動作を示すフローチャートである。
FIG. 8 is a flowchart showing an operation of the page printer device according to the first embodiment of the present invention.

【図9】本発明の第2の実施例におけるページプリンタ
装置のブロック図である。
FIG. 9 is a block diagram of a page printer device according to a second embodiment of the present invention.

【図10】本発明の第2の実施例におけるページプリン
タ装置の動作を示すフローチャートである。
FIG. 10 is a flowchart showing the operation of the page printer device in the second embodiment of the present invention.

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

11 CPU 15 ラスタバッファ 16 印刷部 32 プログラムROM 32a、32b、32c、… 印刷速度設定テーブル DATA ラスタ出力データ n 圧縮率 11 CPU 15 raster buffer 16 printing unit 32 program ROM 32a, 32b, 32c, ... Printing speed setting table DATA raster output data n compression rate

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 (a)ホストコンピュータからの印刷デ
ータが格納される受信バッファと、(b)該受信バッフ
ァから取り出された印刷データのうちの印刷イメージデ
ータが格納されるラスタバッファと、(c)該ラスタバ
ッファから取り出された印刷イメージデータがラスタ出
力データとして転送され、該ラスタ出力データについて
印刷を行う印刷部と、(d)前記受信バッファの容量を
判断する手段と、(e)前記受信バッファの容量に対応
する印刷速度を設定する手段とを有することを特徴とす
るページプリンタ装置。
1. A receiving buffer for storing print data from a host computer; (b) a raster buffer for storing print image data of print data retrieved from the receiving buffer; and (c) ) A print unit for transferring the print image data fetched from the raster buffer as raster output data and printing the raster output data; (d) means for determining the capacity of the reception buffer; and (e) the reception And a means for setting a printing speed corresponding to the capacity of the buffer.
【請求項2】 (a)ホストコンピュータからの印刷デ
ータが格納される受信バッファと、(b)該受信バッフ
ァから取り出された印刷データのうちの印刷イメージデ
ータが格納されるラスタバッファと、(c)該ラスタバ
ッファから取り出された印刷イメージデータがラスタ出
力データとして転送され、該ラスタ出力データについて
印刷を行う印刷部と、(d)前記印刷データのうちの圧
縮コマンドの圧縮率を読み取る手段と、(e)該圧縮率
に対応する印刷速度を設定する手段とを有することを特
徴とするページプリンタ装置。
2. A receiving buffer for storing print data from a host computer; (b) a raster buffer for storing print image data of print data retrieved from the receiving buffer; and (c) ) A printing unit for transferring the print image data fetched from the raster buffer as raster output data and printing the raster output data; and (d) a unit for reading a compression ratio of a compression command in the print data. (E) A page printer device having a means for setting a printing speed corresponding to the compression ratio.
JP14050994A 1994-06-22 1994-06-22 Page printer device Withdrawn JPH082021A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14050994A JPH082021A (en) 1994-06-22 1994-06-22 Page printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14050994A JPH082021A (en) 1994-06-22 1994-06-22 Page printer device

Publications (1)

Publication Number Publication Date
JPH082021A true JPH082021A (en) 1996-01-09

Family

ID=15270309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14050994A Withdrawn JPH082021A (en) 1994-06-22 1994-06-22 Page printer device

Country Status (1)

Country Link
JP (1) JPH082021A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005280222A (en) * 2004-03-30 2005-10-13 Brother Ind Ltd Printing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005280222A (en) * 2004-03-30 2005-10-13 Brother Ind Ltd Printing device

Similar Documents

Publication Publication Date Title
JPH05246078A (en) Raster image serial printer
JPH05221030A (en) Apparatus for controlling printing
JP2740568B2 (en) Printing equipment
US6486969B1 (en) Image processing apparatus, information processing apparatus and printer
JPH082021A (en) Page printer device
JPS62173526A (en) Page buffer control system
JPS61129969A (en) Printing control device
JP7102959B2 (en) Printing equipment and printing method
US6577313B1 (en) Image data control apparatus
JP2650416B2 (en) Raster scan type duplex printer
JP3098435B2 (en) Control system for multiple thermal heads
JP4313548B2 (en) Image forming apparatus
JPS59221069A (en) Memory control system
JPS6349824A (en) Printer control system
JPS631614B2 (en)
JPH04336261A (en) Page printer
JPS6361287A (en) Video signal generation circuit
JPS60110460A (en) Former of printing data
JPH08152978A (en) Controller for printer engine
JPH0662219A (en) Image processor
JP2002331713A (en) Printer controller and method for controlling transfer of data
JPH11342653A (en) Image output unit
JPH064230A (en) Printer device
JPH07228013A (en) Image memory controller
JPH04201467A (en) Image forming apparatus

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010904