JP3165346B2 - Serial printer - Google Patents

Serial printer

Info

Publication number
JP3165346B2
JP3165346B2 JP9344695A JP9344695A JP3165346B2 JP 3165346 B2 JP3165346 B2 JP 3165346B2 JP 9344695 A JP9344695 A JP 9344695A JP 9344695 A JP9344695 A JP 9344695A JP 3165346 B2 JP3165346 B2 JP 3165346B2
Authority
JP
Japan
Prior art keywords
dot
data
printing
print
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP9344695A
Other languages
Japanese (ja)
Other versions
JPH082009A (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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP9344695A priority Critical patent/JP3165346B2/en
Publication of JPH082009A publication Critical patent/JPH082009A/en
Application granted granted Critical
Publication of JP3165346B2 publication Critical patent/JP3165346B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、双方向印字を行なうシ
リアルプリンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial printer for performing bidirectional printing.

【0002】[0002]

【従来の技術】一般的なシリアルプリンタでは、印字ヘ
ッドが用紙フィード方向に所定ピッチで並べられた複数
のドット印字素子を有し、用紙フィード方向に直角な方
向において用紙を走査するため往復する。このプリンタ
は、ドット印字素子数に等しい数のドット行をもつビッ
トマップパターンデータを作成し、印字ヘッドの往路に
おいてこのビットマップパターンデータに基づいて各ド
ット印字素子を駆動することにより、文字又は図形のド
ットイメージを用紙に印字し、印字ヘッドの印字高に等
しい長さだけ用紙をフィードする。最近では、多くのシ
リアルプリンタが印字ヘッドの復路でもドットイメージ
の印字を行なうように構成される。
2. Description of the Related Art In a general serial printer, a print head has a plurality of dot printing elements arranged at a predetermined pitch in a paper feed direction, and reciprocates to scan a paper in a direction perpendicular to the paper feed direction. This printer creates bitmap pattern data having a number of dot rows equal to the number of dot printing elements, and drives each dot printing element based on the bitmap pattern data on the outward path of the print head, thereby forming a character or graphic. Is printed on paper, and the paper is fed by a length equal to the print height of the print head. Recently, many serial printers are configured to print a dot image even when the print head returns.

【0003】このようなシリアルプリンタでは、文字又
は図形の高さが印字ヘッドの印字高を越える場合、例え
ば文字の上半分を表すドットイメージを印字ヘッドの往
路で印字し、その文字の下半分を表すドットイメージを
印字ヘッドの復路で印字する。しかし、この文字の印字
品質は、ドットアライメントエラーが印字方向の違いに
より起きる場合に低下する。
In such a serial printer, when the height of a character or figure exceeds the print height of a print head, for example, a dot image representing the upper half of the character is printed on the outward path of the print head, and the lower half of the character is printed. The represented dot image is printed on the return path of the print head. However, the printing quality of this character is degraded when a dot alignment error occurs due to a difference in printing direction.

【0004】特開平2−233275号公報には、前述
したような印字品質の低下を改善できるプリンタが開示
されている。このプリンタは、ビットマップパターンデ
ータが用紙フィード方向において隣接する文字又は図形
を区切るブレークラインを含むかどうかをチェックす
る。ブレークラインが印字ヘッドのドット印字素子数に
対応するドット行数の範囲で検出されると、文字又は図
形の高さが印字ヘッドの印字高を越えないと判断され
る。この場合、このブレークラインに対応して制限され
た高さをもつ単一のドットイメージとして文字又は図形
を印字するため、印字ヘッドが用紙上を1回走査する。
他方、ブレークラインが印字ヘッドのドット印字素子数
に対応するドット行数の範囲で検出されないと、文字又
は図形の高さが印字ヘッドの印字高を越えると判断され
る。この場合、印字ヘッドの印字高に等しい高さをもつ
複数のドットイメージとして文字又は図形を印字するた
め、印字ヘッドが用紙上を複数回走査する。印字方向
は、ブレークラインが印字ヘッドのドット印字素子数に
対応するドット行数の範囲で検出されたときだけ反転さ
れる。すなわち、このプリンタは、印字ヘッドの印字高
を越える高さをもつ文字又は図形について、印字方向を
一方向に限定することにより印字品質の低下を防止す
る。
Japanese Patent Application Laid-Open No. Hei 2-233275 discloses a printer that can improve the above-described deterioration in print quality. The printer checks whether the bitmap pattern data includes break lines that separate adjacent characters or graphics in the paper feed direction. When the break line is detected within the range of the number of dot lines corresponding to the number of dot printing elements of the print head, it is determined that the height of the character or graphic does not exceed the print height of the print head. In this case, the print head scans once on the paper in order to print a character or graphic as a single dot image having a limited height corresponding to the break line.
On the other hand, if the break line is not detected within the range of the number of dot rows corresponding to the number of dot printing elements of the print head, it is determined that the height of the character or graphic exceeds the print height of the print head. In this case, the print head scans the paper a plurality of times to print characters or graphics as a plurality of dot images having a height equal to the print height of the print head. The printing direction is reversed only when the break line is detected within the range of the number of dot rows corresponding to the number of dot printing elements of the print head. That is, this printer prevents a print quality from deteriorating by limiting the print direction to one direction for characters or figures having a height exceeding the print height of the print head.

【0005】特開平3−231861号公報には、用紙
フィード機構の精度に依存したドットアライメントエラ
ーによる印字品質の低下を改善するプリンタが開示され
ている。このプリンタでは、1ページ分のビットマップ
パターンデータがこれと同一マトリクスサイズの相補的
な第1及び第2パターンデータに変換される。このプリ
ンタは用紙フィード長を印字ヘッドの印字高の1/2に
等しく設定し、印字ヘッドの往路及び復路でドットイメ
ージを印字する。印字ヘッドの往路では、複数のドット
印字素子が第1のパターンデータのうちの走査領域に対
応する部分に基づいて駆動される。印字ヘッドの復路で
は、これらのドット印字素子が第2パターンデータのう
ちの走査領域に対応する部分に基づいて駆動される。す
なわち、このプリンタは、往路での走査領域及び復路で
の走査領域を印字ヘッドの印字高の1/2だけオーバー
ラップさせ、往路及び復路の一方で印字されるドットイ
メージに、他方で印字されるドットイメージをインプリ
ントすることにより、印字品質の低下を改善する。
[0005] Japanese Patent Application Laid-Open No. Hei 3-231861 discloses a printer for improving a decrease in print quality due to a dot alignment error depending on the accuracy of a paper feed mechanism. In this printer, bitmap pattern data for one page is converted into complementary first and second pattern data having the same matrix size. In this printer, the paper feed length is set equal to 1/2 of the print height of the print head, and a dot image is printed on the forward and backward passes of the print head. On the outward path of the print head, the plurality of dot printing elements are driven based on a portion of the first pattern data corresponding to the scanning area. In the return path of the print head, these dot printing elements are driven based on a portion of the second pattern data corresponding to the scanning area. In other words, this printer overlaps the scanning area on the forward path and the scanning area on the backward path by 印字 of the print height of the print head, and prints the dot image printed on one of the forward path and the backward path and the other. By imprinting a dot image, the deterioration of printing quality is improved.

【0006】[0006]

【発明が解決しようとする課題】しかし、特開平2−2
33257号公報に開示されたプリンタは、印字方向が
一方向に限定された場合にスループットは全く向上しな
い。さらに、印字方向及びビットイメージの高さを決定
するためにブレークラインがビットマップパターンデー
タに含まれるかどうかをチェックしなければならない。
このチェック処理は比較的多くの時間を要し、スループ
ットの向上を制約する。
However, Japanese Patent Application Laid-Open No. Hei 2-2
The printer disclosed in Japanese Patent No. 33257 does not improve the throughput at all when the printing direction is limited to one direction. In addition, it must be checked whether a break line is included in the bitmap pattern data to determine the printing direction and the height of the bit image.
This check process requires a relatively long time, and limits the improvement in throughput.

【0007】他方、特開平3−231861号公報に記
載されたプリンタは、印字ヘッドの往路で印字されるド
ットイメージと、復路で印字されるドットイメージとが
組み合わされるため、印字ヘッドの印字高を越えない文
字又は図形全体を表すドットイメージを印字ヘッドの往
路及び復路の一方で印字することができない。
On the other hand, the printer described in Japanese Patent Application Laid-Open No. 3-231861 combines a dot image printed on the forward path of the print head with a dot image printed on the return path, so that the print height of the print head is reduced. A dot image representing a character or a whole figure which does not exceed cannot be printed on one of the forward path and the backward path of the print head.

【0008】本発明の目的は、印字品質を損なわずにさ
らにスループットを向上させることができるシリアルプ
リンタを提供することにある。
An object of the present invention is to provide a serial printer capable of further improving the throughput without deteriorating the print quality.

【0009】[0009]

【課題を解決するための手段】請求項1記載の発明は、
用紙をフィードする用紙フィード機構と、用紙フィード
方向に所定ピッチで並ぶ複数のドット印字素子を有する
印字ヘッドと、用紙を走査するために用紙フィード方向
と略直角な方向において前記印字ヘッドを移動させるヘ
ッド移動機構と、前記印字ヘッドの1走査領域分のビッ
トマップパターンデータを格納するラスターバッファ
と、前記印字ヘッドを印字方向に移動させながら前記ラ
スターバッファに格納されたビットマップパターンデー
タに対応するドットイメージを印字させ、このドットイ
メージの印字後に印字方向を反転させる制御部とを備
え、前記制御部は、外部から供給される印字データが複
数のキャラクタコードを含むテキスト形式であることを
検出し、各キャラクタコードの座標上の配置を設定し、
印字範囲が前記印字ヘッドの1走査領域内にあるグルー
プ単位にキャラクタコードを選択し、選択されたグルー
プのキャラクタコードをドットデータに変換することに
よりビットマップパターンデータをラスターバッファ内
に格納し、前記印字ヘッドを移動させながらこのビット
マップパターンデータに基づいて複数の前記ドット印字
素子を駆動し、前記印字ヘッドの1走査領域内にあるグ
ループ単位で印字を実行する印字処理、並びに印字範囲
を前記印字ヘッドの走査領域に設定するために用紙をフ
ィードさせる制御処理を行なうテキスト処理手段を有す
る。
According to the first aspect of the present invention,
A paper feed mechanism for feeding paper, a print head having a plurality of dot printing elements arranged at a predetermined pitch in the paper feed direction, and a head for moving the print head in a direction substantially perpendicular to the paper feed direction to scan the paper A moving mechanism, a raster buffer for storing bit map pattern data for one scan area of the print head, and a dot image corresponding to the bit map pattern data stored in the raster buffer while moving the print head in a printing direction; And a control unit for reversing the printing direction after printing the dot image.The control unit detects that the print data supplied from the outside is a text format including a plurality of character codes, Set the coordinates on the character code,
A character code is selected for each group whose print range is within one scanning area of the print head, and the bit map pattern data is stored in a raster buffer by converting the character code of the selected group into dot data. While moving the print head, the plurality of dot printing elements are driven based on the bit map pattern data, and the dots within one scan area of the print head are driven .
There is a text processing means for performing a printing process for executing printing in a loop unit and a control process for feeding a sheet in order to set a printing range in a scanning area of the print head.

【0010】請求項2記載のシリアルプリンタは、請求
項1記載のシリアルプリンタにおいて、前記制御部は、
さらに、各々前記印字ヘッドのドット印字素子数の1/
2に等しいライン数のドットデータを格納する上部及び
下部ワークバッファを有するとともに、外部から供給さ
れる印字データが複数ラインのドットデータを含むグラ
フィック形式であることを検出し、各ラインのドットデ
ータの座標上の配置を決定し、前記印字ヘッドのドット
印字素子数の1/2に等しいライン数だけ連続するグル
ープ単位にドットデータを選択し、選択されたグループ
のドットデータを前記印字ヘッドのドット印字素子数と
印字幅とによって設定される1行分のマトリクスサイズ
を有するラスターバッファの上半分(上部ワークバッフ
ァ)と下半分(下部ワークバッファ)との2つに分けて
あるバッファのうちの前記下部ワークバッファに格納
し、前記上部及び下部ワークバッファの内容の組み合わ
せから合成されるドットデータを所定マスクパターンで
選択的にマスクすることによりビットマップパターンデ
ータを前記ラスターバッファ内に作成し、前記印字ヘッ
ドを印字方向に移動させながらこのビットマップパター
ンデータに基づいて前記複数のドット印字素子を駆動す
る印字処理、並びに前記印字ヘッドのドット印字素子数
によって決まる前記印字ヘッドの印字高の1/2だけ用
紙をフィードし、前記下部ワークバッファに格納された
ドットデータを前記上部バッファに移動させ、さらに所
定マスクパターンを反転する制御処理を行なうグラフィ
ック処理手段を有する。
According to a second aspect of the present invention, in the serial printer according to the first aspect, the control unit includes:
Further, each of the print heads has a 1/1 of the number of dot printing elements.
It has upper and lower work buffers for storing dot data of the number of lines equal to two, and detects that the print data supplied from the outside is in a graphic format including dot data of a plurality of lines, and detects the dot data of each line. The arrangement on the coordinates is determined, dot data is selected in a group unit continuous by the number of lines equal to 1/2 of the number of dot print elements of the print head, and the dot data of the selected group is printed by the print head. Number of elements and
Matrix size for one line set by print width
Upper half of the raster buffer with upper
A) and the lower half (lower work buffer)
Bitmap pattern data is stored in the raster buffer by storing the data in the lower work buffer of a certain buffer and selectively masking dot data synthesized from a combination of the contents of the upper and lower work buffers with a predetermined mask pattern. And printing processing for driving the plurality of dot printing elements based on the bitmap pattern data while moving the printing head in a printing direction, and printing of the printing head determined by the number of dot printing elements of the printing head. Graphic processing means for feeding a sheet by half the height, moving the dot data stored in the lower work buffer to the upper buffer, and performing a control process for inverting a predetermined mask pattern.

【0011】[0011]

【作用】請求項1記載のシリアルプリンタは、外部から
供給された印字データが複数のキャラクタコードを含む
テキスト形式であることを検出し、各キャラクタコード
の座標上の配置を設定し、印字範囲が印字ヘッドの1走
査領域内にあるグループ単位にキャラクタコードをテキ
ストメモリにおいて選択し、これらのキャラクタコード
をドットデータ形式に変換することによりビットマップ
パターンデータをラスターバッファ内に作成する。すな
わち、印字に必要なグループのキャラクタコードは設定
された配置に従って容易に選択されるため、ビットマッ
プパターンデータをチェックする場合よりもスループッ
トを向上させることができる。また、文字のドットイメ
ージ全体が印字ヘッドの往路及び復路の一方で印字され
るため、印字品質が損なわれない。
According to the first aspect of the invention, the serial printer detects that the print data supplied from the outside is in a text format including a plurality of character codes, and sets the arrangement of each character code on the coordinates. A character code is selected in the text memory for each group within one scanning area of the print head, and these character codes are converted into a dot data format to create bitmap pattern data in a raster buffer. That is, since the character codes of the group necessary for printing are easily selected in accordance with the set arrangement, the throughput can be improved as compared with the case where the bitmap pattern data is checked. Further, since the entire dot image of the character is printed on one of the forward path and the backward path of the print head, the print quality is not deteriorated.

【0012】請求項2記載のシリアルプリンタは、外部
から供給された印字データが複数ラインのドットデータ
を含むグラフィック形式であることを検出し、各ライン
のドットデータの座標上の配置を決定し、印字ヘッドの
ドット印字素子数の1/2に等しいライン数だけ連続す
るグループ単位にドットデータを選択し、選択されたグ
ループのドットデータを下部ワークバッファに格納し、
上部及び下部ワークバッファの内容の組み合わせから合
成されるドットデータを所定マスクパターンで選択的に
マスクすることによりビットマップパターンデータをラ
スターバッファ内に作成する。この場合、ビットマップ
パターンデータを1ページ分格納するメモリを必要とし
ない。また、図形のドットイメージが、印字ヘッドの往
路で印字されるドットイメージと印字ヘッドの復路で印
字されるドットイメージとの組み合わせにより構成され
るため、印字品質が損なわれない。さらに、印字方向が
一方向に限定される場合よりもスループットを向上させ
ることができる。
According to a second aspect of the present invention, the serial printer detects that the print data supplied from the outside is in a graphic format including dot data of a plurality of lines, and determines the arrangement of the dot data of each line on the coordinates. Selecting dot data in a group unit continuous by the number of lines equal to half the number of dot printing elements of the print head, storing the dot data of the selected group in the lower work buffer,
Bitmap pattern data is created in the raster buffer by selectively masking dot data synthesized from a combination of the contents of the upper and lower work buffers with a predetermined mask pattern. In this case, a memory for storing one page of bitmap pattern data is not required. Further, since the dot image of the figure is constituted by a combination of the dot image printed on the outward path of the print head and the dot image printed on the return path of the print head, the print quality is not impaired. Further, the throughput can be improved as compared with the case where the printing direction is limited to one direction.

【0013】[0013]

【実施例】以下、図面を参照して本発明の一実施例に係
るシリアルプリンタを説明する。図1はこのシリアルプ
リンタの回路を示す。このシリアルプリンタはプリンタ
全体の動作を制御する制御部1を有する。制御部1は、
様々なデータ処理を行なうCPU2、このCPU2の制
御プログラムや様々な文字のビットマップフォント等の
固定データを格納するROM3、タイマーTM等を含
む。この制御部1は、ホストコンピュータ等の外部機器
から供給される印字データ、用紙サイズデータ、印字フ
ォーマットデータのような様々な印字コマンドを受信す
るインターフェース4、印字動作の状態を表示する表示
器5、及び制御命令を入力するキーボード6に接続され
る。キーボード6は電源キー、フォームフィードキー、
及びオンラインキーを含む。印字データは複数のキャラ
クタコードを含むテキスト形式又は複数のラインのドッ
トデータを含むグラフィック形式の何れかで構成され
る。キャラクタコードは文字、数字、記号等を表し、ド
ットデータはドットの有無を表す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a serial printer according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 shows the circuit of this serial printer. This serial printer has a control unit 1 for controlling the operation of the entire printer. The control unit 1
It includes a CPU 2 that performs various data processing, a ROM 3 that stores a control program of the CPU 2 and fixed data such as bitmap fonts of various characters, a timer TM, and the like. The control unit 1 includes an interface 4 for receiving various print commands such as print data, paper size data, and print format data supplied from an external device such as a host computer, a display unit 5 for displaying a print operation state, And a keyboard 6 for inputting control commands. Keyboard 6 has power key, form feed key,
And online keys. The print data is configured in either a text format including a plurality of character codes or a graphic format including a plurality of lines of dot data. The character code represents characters, numbers, symbols, and the like, and the dot data represents the presence or absence of a dot.

【0014】また、制御部1は、さらに、用紙をフィー
ドする用紙フィード機構7、用紙を走査するために用紙
フィード方向と略直角な方向において印字ヘッドPHを
移動させるヘッド移動機構8、及びCPU2で処理され
るデータを一時的に格納するRAM9に接続される。印
字ヘッドPHはN個のドット印字素子を有し、これらの
ドット印字素子は用紙フィード方向において一列に並べ
られる。この印字ヘッドPHがインクジェット式である
場合、これらのドット印字要素がインクを噴出するノズ
ルで構成される。用紙は例えばLドットに設定される印
字幅だけこの印字ヘッドPHにより走査される。RAM
9は、グラフィックバッファ10、テキストバッファ1
1、受信バッファ12、ワークメモリ13、ラスターバ
ッファ14、及びマスクパターンメモリ15を含む。
The controller 1 further includes a paper feed mechanism 7 for feeding the paper, a head moving mechanism 8 for moving the print head PH in a direction substantially perpendicular to the paper feed direction for scanning the paper, and a CPU 2. It is connected to a RAM 9 for temporarily storing data to be processed. The print head PH has N dot printing elements, and these dot printing elements are arranged in a line in the paper feed direction. When the print head PH is an ink jet type, these dot printing elements are constituted by nozzles for ejecting ink. The paper is scanned by the print head PH by a print width set to, for example, L dots. RAM
9 is a graphic buffer 10 and a text buffer 1
1, a receiving buffer 12, a work memory 13, a raster buffer 14, and a mask pattern memory 15.

【0015】受信バッファ12はインターフェース4に
よって受信された印字コマンドを順次格納する。グラフ
ィックバッファ10はグラフィック形式の印字データに
含まれる複数ラインのドットデータの各々をその配置デ
ータと共に格納する。テキストバッファ11はテキスト
形式の印字データに含まれる複数のキャラクタコードの
各々をその配置データと共に格納する。ラスターバッフ
ァ14は用紙が印字ヘッドPHの移動により走査される
ときにドット印字素子を順次駆動するために用いられる
Nドット行及びLドット列のビットマップパターンデー
タを格納する。ワークメモリ13はこのビットマップパ
ターンデータを作成するために用いられ、このビットマ
ップパターンデータの上半分に割り当てられるN/2行
及びLドット列のドットデータを格納する上部ワークバ
ッファ13A、ビットマップパターンデータの下半分に
割り当てられるN/2行及びLドット列のドットデータ
を格納する下部ワークバッファ13B、用紙フィード方
向において印字ヘッドPHの走査領域の先頭座標YPを
指定する座標ポインタ13C、その他のワークエリアを
含む。マスクパターンメモリ15はラスターバッファ1
4にビットマップパターンデータとして格納されるドッ
トデータのドット行及びドット列をチェッカ配列でマス
クするために用いられるマスクパターンデータを格納す
る。
The reception buffer 12 sequentially stores print commands received by the interface 4. The graphic buffer 10 stores dot data of a plurality of lines included in print data in a graphic format together with the layout data. The text buffer 11 stores a plurality of character codes included in the print data in the text format together with the layout data. The raster buffer 14 stores bit map pattern data of N dot rows and L dot columns used for sequentially driving the dot printing elements when the paper is scanned by the movement of the print head PH. The work memory 13 is used to create the bitmap pattern data, and an upper work buffer 13A for storing dot data of N / 2 rows and L dot columns allocated to the upper half of the bitmap pattern data, a bitmap pattern A lower work buffer 13B for storing dot data of N / 2 rows and L dot columns allocated to the lower half of the data, a coordinate pointer 13C for designating a head coordinate YP of a scanning area of the print head PH in a paper feed direction, and other works. Including area. The mask pattern memory 15 stores the raster buffer 1
4 stores mask pattern data used for masking dot rows and dot columns of dot data stored as bitmap pattern data in a checker arrangement.

【0016】印字解像度が300ドット/インチに設定
され、印字ヘッドPHのドット印字素子数が128個に
設定され、印字幅が2400ドットに設定される場合、
ラスターバッファ14は128ドット行×2400ドッ
ト列のマトリックスサイズを有し、グラフィックバッフ
ァ10は50ドット行×2400ドット列のマトリック
スサイズを有し、テキストバッファ11は8000個の
1バイトキャラクタコードを格納するサイズを有する。
When the print resolution is set to 300 dots / inch, the number of dot print elements of the print head PH is set to 128, and the print width is set to 2400 dots,
The raster buffer 14 has a matrix size of 128 dot rows × 2400 dot columns, the graphic buffer 10 has a matrix size of 50 dot rows × 2400 dot columns, and the text buffer 11 stores 8000 one-byte character codes. Have a size.

【0017】次に、このシリアルプリンタの動作を説明
する。このシリアルプリンタに電源が投入されると、C
PU2がROM3に格納された制御プログラムを実行す
ることにより次の印字制御処理を行なう。
Next, the operation of the serial printer will be described. When this serial printer is powered on, C
The PU 2 executes the control program stored in the ROM 3 to perform the next print control processing.

【0018】すなわち、ステップS1で初期化を行な
う。この初期化では、例えば、グラフィックバッファ1
0、テキストバッファ11、受信バッファ12、ワーク
メモリ13、ラスターバッファ14をクリアし、マスク
パターンデータをマスクパターンメモリ15に格納す
る。ステップS2では、外部機器から供給された印字デ
ータが受信バッファ12に存在するかどうかをチェック
する。もし存在しなければ、ステップS3で用紙サイズ
の設定、その他の設定を他の処理として行ない、再びス
テップ2を実行する。印字データが存在すれば、この印
字データがグラフィック形式であるかどうかをステップ
S4でチェックする。複数ラインのドットデータが連続
するグラフィック形式でない場合、この印字データは複
数のキャラクタコードが連続するテキスト形式であると
判断する。この場合、ステップS5でCPU2が受信バ
ッファ12から先頭のキャラクタコードについて文字サ
イズ(高さ及び幅)、印字すべき配置を決定し、このキ
ャラクタコードをその属性を指定する属性データと共に
テキストバッファ11に格納する。印字すべき配置は使
用する用紙のサイズに対応した2次元座標で表す。ステ
ップS6では、ページ送りードがテキストバッファ11
に存在するかどうかをチェックする。ページ送りコード
が存在しなければ、ステップS5において後続のキャラ
クタコードをテキストバッファ11に格納する処理を繰
り返す。ページ送りコードの存在をステップS6で検出
すると、ステップS7でテキスト印字処理を行なう。
That is, initialization is performed in step S1. In this initialization, for example, the graphic buffer 1
0, the text buffer 11, the reception buffer 12, the work memory 13, and the raster buffer 14 are cleared, and the mask pattern data is stored in the mask pattern memory 15. In step S2, it is checked whether print data supplied from the external device exists in the reception buffer 12. If it does not exist, the paper size setting and other settings are made as other processing in step S3, and step 2 is executed again. If print data exists, it is checked in step S4 whether the print data is in a graphic format. If the dot data of a plurality of lines is not in a continuous graphic format, it is determined that the print data is in a text format in which a plurality of character codes are continuous. In this case, in step S5, the CPU 2 determines the character size (height and width) of the first character code from the reception buffer 12 and the layout to be printed, and stores this character code in the text buffer 11 together with the attribute data specifying the attribute. Store. The layout to be printed is represented by two-dimensional coordinates corresponding to the size of the paper to be used. In step S6, the page feed is set to the text buffer 11
Check if it exists in. If there is no page feed code, the process of storing the subsequent character code in the text buffer 11 is repeated in step S5. When the presence of the page feed code is detected in step S6, a text printing process is performed in step S7.

【0019】他方、ステップS4で印字データがグラフ
ィック形式であることを検出すると、ステップS8で走
査領域の先頭座標YPを“1”に設定する。ステップS
9では、CPU2が受信バッファ12から先頭ラインの
ドットデータ及びその印字すべき配置を決定し、そのラ
インのドットデータをその配置を指定する属性データと
共にグラフィックバッファ10に格納する。ステップS
10では、グラフィックバッファ10が満杯かどうかを
チェックする。もし満杯でなければ、ステップS9にお
いて、後続ラインのドットデータをグラフィックバッフ
ァ10に格納する処理を繰り返す。ステップS10でグ
ラフィックバッファ10が満杯であることを検出する
と、ステップS11では、先頭ラインのドットデータを
グラフィックバッファ10から下部ワークバッファ13
Bに転送し、属性データと共にグラフィックバッファ1
0から削除する。ステップS12では、下部ワークバッ
ファ13Bが満杯であるかどうかをチェックする。もし
満杯でなければ、ステップS9における後続ラインのド
ットデータのグラフィックバッファ10への格納、ステ
ップS10におけるグラフイックバッファ10の満杯状
態のチェック、ステップS11における下部ワークバッ
ファ13Bへのドットデータの転送を繰り返す。これに
より、下部ワークバッファ13Bが満杯になると、その
状態をステップS12で検出するため、ステップS13
でグラフィック印字処理を行なう。ステップS14で
は、フィードキーが1ページ分の印字処理を完了させる
ために操作されたかどうかをチェックする。もしフィー
ドキーが操作されていなければ、再びステップS9〜ス
テップS14の処理を後続印字のために繰り返す。ステ
ップS14でフィードキーが操作されていることを検出
した場合、又はステップS7でテキスト印字処理が終了
した場合には、ステップS15では、ワークメモリ13
をクリアし用紙を次頁にフィードする。この後、再びス
テップS2の処理を実行する。
On the other hand, when it is detected in step S4 that the print data is in the graphic format, the start coordinate YP of the scanning area is set to "1" in step S8. Step S
In step 9, the CPU 2 determines the dot data of the head line and the layout to be printed from the reception buffer 12, and stores the dot data of the line in the graphic buffer 10 together with the attribute data designating the layout. Step S
At 10, it is checked whether the graphic buffer 10 is full. If it is not full, the process of storing the dot data of the succeeding line in the graphic buffer 10 is repeated in step S9. If it is detected in step S10 that the graphic buffer 10 is full, in step S11, the dot data of the first line is transferred from the graphic buffer 10 to the lower work buffer 13.
B and the graphics buffer 1 together with the attribute data.
Delete from 0. In step S12, it is checked whether the lower work buffer 13B is full. If it is not full, the storage of the dot data of the succeeding line in the graphic buffer 10 in step S9, the check of the full state of the graphic buffer 10 in step S10, and the transfer of the dot data to the lower work buffer 13B in step S11 are repeated. Thus, when the lower work buffer 13B becomes full, the state is detected in step S12.
Performs graphic printing. In step S14, it is checked whether the feed key has been operated to complete the printing process for one page. If the feed key has not been operated, the processes of steps S9 to S14 are repeated for subsequent printing. If it is detected in step S14 that the feed key has been operated, or if the text printing process has been completed in step S7, the work memory 13
Is cleared and the paper is fed to the next page. Thereafter, the process of step S2 is performed again.

【0020】ここで、上述のテキスト印字処理を図3を
参照してさらに詳しく説明する。このテキスト印字処理
を開始すると、ステップS20で座標ポインタ13Cに
設定する先頭座標YPを“1”に設定する。ステップS
21では、この先頭座標YPに対応する印字ヘッドPH
の走査領域(Nドット×Lドット)に配置されるグルー
プのキャラクタコードが存在するかどうかをチェックす
る。もし存在しなければ、ステップS22で先頭座標Y
Pを“1”だけ増大し、再びステップS21の処理を実
行する。このステップS21,22の処理は、配置され
るグループのキャラクタコードが存在するまで繰り返
す。ステップS21でキャラクタコードの存在を検出す
ると、ステップS23でそのグループのキャラクタコー
ドをドットデータ形式に変換し、ビットマップパターン
データとしてラスターバッファ14に格納する。このグ
ループのキャラクタコードは、ステップS24で属性デ
ータと共にテキストバッファ11から削除する。ステッ
プS25では、CPU2は先頭座標YPに対応する印字
領域に印字範囲を設定するために用紙をフィードし、ラ
スターバッファ14に格納されたビットマップパターン
データに基づいて印字ヘッドPHを印字方向に移動させ
ながら複数のドット印字素子を駆動し、ドットイメージ
を印字し、さらにこの印字方向を反転する。ステップS
26では、1ページ分の印字が終了したかどうかをチェ
ックする。もし終了していれば、このテキスト印字処理
を終了する。他方、1ページ分の印字が終了しなけれ
ば、ステップS27で先頭座標YPを“1”だけ増大す
る。
Here, the above-described text printing process will be described in more detail with reference to FIG. When this text printing process is started, the leading coordinate YP set in the coordinate pointer 13C is set to "1" in step S20. Step S
21, the print head PH corresponding to the head coordinate YP
It is checked whether there is a character code of a group arranged in the scan area (N dots × L dots). If not, the start coordinate Y is determined in step S22.
P is increased by "1", and the process of step S21 is executed again. The processing of steps S21 and S22 is repeated until the character code of the group to be arranged exists. If the presence of a character code is detected in step S21, the character code of the group is converted into a dot data format in step S23 and stored in the raster buffer 14 as bitmap pattern data. The character codes of this group are deleted from the text buffer 11 together with the attribute data in step S24. In step S25, the CPU 2 feeds a sheet to set a print range in a print area corresponding to the leading coordinate YP, and moves the print head PH in the print direction based on the bitmap pattern data stored in the raster buffer 14. While driving the plurality of dot printing elements, a dot image is printed, and the printing direction is reversed. Step S
At 26, it is checked whether printing for one page has been completed. If completed, this text printing process is terminated. On the other hand, if printing of one page is not completed, the leading coordinate YP is increased by "1" in step S27.

【0021】すなわち、図5に示すように、配置される
文字を表すキャラクタコードがテキストバッファ11に
格納された場合、CPU2は用紙フィード方向の座標Y
Pをシフトさせることにより、印字範囲が印字ヘッドP
Hの走査領域内にあるグループのキャラクタコードを検
出し、図6に示すような順序でビットマップパターンを
作成し、各ビットマップパターンデータに基づいて文字
のドットイメージを印字する。
That is, as shown in FIG. 5, when a character code representing a character to be arranged is stored in the text buffer 11, the CPU 2 sets the coordinate Y in the paper feed direction.
By shifting P, the print range becomes
The character codes of the group in the H scanning area are detected, bitmap patterns are created in the order shown in FIG. 6, and a dot image of a character is printed based on each bitmap pattern data.

【0022】次に、上述のグラフィック印字処理を図4
を参照してさらに詳しく説明する。このグラフィック印
字処理を開始すると、上部ワークバッファ13Aに格納
された全ラインのドットデータを、ステップS30でラ
スターバッファ14の第1番目からN/2番目のドット
行に設定し、下部ワークバッファ13Bに格納された全
ラインのドットデータを、ステップS31でラスターバ
ッファ14の(N/2)+1目からN番目のドット行に
設定する。ステップS32では、上部ワークバッファ1
3A内のドットデータが初期値“0”をもつかどうかを
チェックする。もし初期値“0”をもっていれば、マス
クパターンメモリ15に予め設定されているマスクパタ
ーンデータが維持され、ステップS34を実行し、初期
値“0”をもっていなければ、マスクパターンメモリ1
5に予め設定されているマスクパターンデータをステッ
プS33で反転する。すなわち、このマスクパターンデ
ータの各ドット行において、“010101…”は“1
01010…”のように反転する。その後のステップS
34では、ラスターバッファ14に格納されたドットデ
ータをマスクパターンメモリ15に格納されたマスクパ
ターンデータでマスクし、印字すべきドットイメージを
表すビットマップパターンデータを構成する。すなわ
ち、ラスターバッファ14において、各ドットデータを
マスクパターンデータに含まれる“0”に対応して間引
く。ステップS35では、印字ヘッドPHを印字方向に
移動させながら、ラスターバッファ14に格納されたビ
ットマップパターンデータに基づいて印字ヘッドPHの
複数のドット印字素子を駆動することによにりドットイ
メージを印字する。この場合の走査領域の先頭座標YP
は、この印字出力に先だってN/2だけ増大する。も
し、先頭座標YP+N/2が1ページ分の最大座標を越
えた場合にはページフィードを行ない、さらに先頭座標
YPを1に設定する。ステップS35での印字出力の
後、ステップS36では、ドット印字素子数N及びその
配列ピッチによって決まる印字ヘッドPHの印字高の1
/2だけ用紙をフィードし、さらに印字方向を反転す
る。続いて、下部ワークバッファ13Bに格納された全
ラインのドットデータを、ステップS37で上部ワーク
バッファ13Aに対応するドット行に保存し、下部ワー
クバッファ13Bをクリアする。
Next, the above-described graphic printing process will be described with reference to FIG.
This will be described in more detail with reference to FIG. When the graphic printing process is started, the dot data of all the lines stored in the upper work buffer 13A are set in the first to N / 2th dot rows of the raster buffer 14 in step S30, and are set in the lower work buffer 13B. In step S31, the stored dot data of all the lines is set in the (N / 2) + 1-th to N-th dot rows of the raster buffer 14. In step S32, the upper work buffer 1
It is checked whether or not the dot data in 3A has an initial value “0”. If it has the initial value "0", the mask pattern data set in the mask pattern memory 15 is maintained, and step S34 is executed. If it does not have the initial value "0", the mask pattern memory 1
The mask pattern data set in advance to 5 is inverted in step S33. That is, in each dot row of this mask pattern data, “010101.
01010.... Then, step S is performed.
At 34, the dot data stored in the raster buffer 14 is masked with the mask pattern data stored in the mask pattern memory 15 to form bitmap pattern data representing a dot image to be printed. That is, in the raster buffer 14, each dot data is thinned out corresponding to "0" included in the mask pattern data. In step S35, the dot image is printed by driving the plurality of dot printing elements of the print head PH based on the bitmap pattern data stored in the raster buffer 14 while moving the print head PH in the printing direction. I do. The start coordinate YP of the scanning area in this case
Increases by N / 2 prior to this printout. If the start coordinate YP + N / 2 exceeds the maximum coordinate for one page, a page feed is performed, and the start coordinate YP is set to 1. After the print output in step S35, in step S36, the print height of the print head PH determined by the number N of dot print elements and the arrangement pitch thereof is set to one.
/ 2 is fed, and the printing direction is reversed. Subsequently, the dot data of all lines stored in the lower work buffer 13B is stored in a dot row corresponding to the upper work buffer 13A in step S37, and the lower work buffer 13B is cleared.

【0023】すなわち、このグラフィック印字処理で
は、下部ワークバッファ13Bから得られるドットデー
タG2を、図7(a)に示すようにラスターバッファ1
4の(N/2)+1番目からN番目のドット行に格納す
る。ラスターバッファ14の1番目からN/2番目のド
ット行には上部ワークバッファ13Aから得られるブラ
ンクを表すドットデータG1を収納する。図7(b)は
マスクパターンメモリ15に格納されたマスクパターン
データP1を示す。このマスクパターンデータP1で
は、サークル部分がドットデータをマスクするデータ
“0”を表す。マスクパターンデータP1は図7(c)
に示すようにラスターバッファ14に格納されたN×L
個のドットデータに重ねられ、これらを選択的にマスク
することにより、図7(d)に示すようにビットマップ
パターンデータを構成する。ドットイメージはこのビッ
トマップパターンデータを用いて印字する。印字後、印
字ヘッドPHの印字高の1/2だけ用紙をフィードし、
印字方向を反転し、ドットデータG2をドットデータG
1として上部ワークバッファ13Aに保存する。
That is, in this graphic printing process, the dot data G2 obtained from the lower work buffer 13B is transferred to the raster buffer 1 as shown in FIG.
4 is stored in the (N / 2) + 1-th to N-th dot rows. The first to N / 2th dot rows of the raster buffer 14 store dot data G1 representing blanks obtained from the upper work buffer 13A. FIG. 7B shows the mask pattern data P1 stored in the mask pattern memory 15. In the mask pattern data P1, the circle portion represents data "0" for masking dot data. The mask pattern data P1 is shown in FIG.
N × L stored in the raster buffer 14 as shown in FIG.
Bitmap pattern data is formed as shown in FIG. 7D by overlapping the dot data and selectively masking them. A dot image is printed using this bitmap pattern data. After printing, the paper is fed by half the print height of the print head PH,
The printing direction is reversed, and the dot data G2 is changed to the dot data G.
1 is stored in the upper work buffer 13A.

【0024】印字方向を反転すると、上部ワークバッフ
ァ13Aに保存されたドットデータG1(前回印字のド
ットデータG2に相当)を、図7(e)に示すように、
ラスターバッファ14の1番目からN/2番目のドット
行に格納し、下部ワークバッファ13Bから得られたド
ットデータG2を、ラスターバッファ14の(N/2)
+1番目からN番目のドット行に格納する。図7(f)
はマスクパターンメモリ15に格納されたマスクパター
ンデータP1を反転して得たマスクパターンデータP2
を示す。このマスクパターンデータP2でも、サークル
部分がドットデータをマスクするデータ“0”を表す。
マスクパターンデータP2は、図7(g)に示すように
ラスターバッファ14に格納されたN×L個のドットデ
ータに重ねられ、これらを選択的にマスクすることによ
り、図7(h)に示すビットマップパターンデータを構
成する。ドットイメージはこのビットマップパターンデ
ータを用いて印字する。この印字後、印字ヘッドPHの
印字高の1/2だけ用紙をフィードし、印字方向を反転
し、ドットデータG2を上部ワークバッファ13Aに保
存する。グラフィック形式のドットイメージは、こうし
た動作の繰り返しにより、図8(a)(b)(c)
(d)に示すように、走査順に印字する。このようにし
て、ドットイメージをN/2ドット行ずつ重ねながら所
定走査回数分組み合わせることにより、図形の全体のイ
メージを形成する。
When the printing direction is reversed, the dot data G1 (corresponding to the dot data G2 of the previous printing) stored in the upper work buffer 13A is changed as shown in FIG.
The dot data G2 stored in the first to N / 2th dot rows of the raster buffer 14 and obtained from the lower work buffer 13B is stored in the (N / 2)
+ 1st to Nth dot rows are stored. FIG. 7 (f)
Represents mask pattern data P2 obtained by inverting the mask pattern data P1 stored in the mask pattern memory 15.
Is shown. Also in the mask pattern data P2, the circle portion represents data "0" for masking the dot data.
The mask pattern data P2 is superimposed on the N × L dot data stored in the raster buffer 14 as shown in FIG. 7 (g), and by selectively masking these, the mask pattern data P2 is shown in FIG. 7 (h). Construct bitmap pattern data. A dot image is printed using this bitmap pattern data. After this printing, the paper is fed by half the printing height of the print head PH, the printing direction is reversed, and the dot data G2 is stored in the upper work buffer 13A. The dot image in the graphic format is obtained by repeating such operations as shown in FIGS. 8A, 8B, and 8C.
As shown in (d), printing is performed in the order of scanning. In this way, the entire image of the figure is formed by combining the dot images by the predetermined number of scans while overlapping each other by N / 2 dot rows.

【0025】本発明は、上述した実施例に限定されず、
その要旨を逸脱しない範囲で様々に変形してもよい。例
えば、テキスト印字処理において、各文字は図5に示す
ような向きで配列されなくてもよい。すなわち、各文字
の向き及び配列は、用紙の長さ及び幅に応じて変更可能
である。
The present invention is not limited to the embodiments described above,
Various modifications may be made without departing from the spirit of the invention. For example, in the text printing process, the characters need not be arranged in the orientation as shown in FIG. That is, the direction and arrangement of each character can be changed according to the length and width of the sheet.

【0026】また、上述のシリアルプリンタは、マスク
パターンメモリ15に格納された単一のマスクパターン
データを印字方向の反転に伴って反転する。しかし、相
補的な2種類のマスクパターンデータをマスクパターン
メモリ15に予め格納し、これらを選択的に使用するよ
うに変形することも可能である。
The serial printer described above inverts the single mask pattern data stored in the mask pattern memory 15 with the reversal of the printing direction. However, it is also possible to store two types of complementary mask pattern data in the mask pattern memory 15 in advance, and to use them selectively.

【0027】さらに、例えば、用紙の左右方向の一側に
文字のドットパターンを印字し、他側にグラフィックの
ドットパターンを印字するような場合、テキストバッフ
ァ11に格納されたキャラクタコードをドットデータに
変換した後に、グラフィックバッファ10に移動させる
ように変形することもできる。この場合、印字動作をグ
ラフィック形式の印字データとテキスト形式の印字デー
タとについて独立に行なう必要がなくなる。
Further, for example, in a case where a character dot pattern is printed on one side in the left-right direction of a sheet and a graphic dot pattern is printed on the other side, the character code stored in the text buffer 11 is converted into dot data. After the conversion, it can be deformed so as to be moved to the graphic buffer 10. In this case, it is not necessary to perform the printing operation independently for the graphic print data and the text print data.

【0028】[0028]

【発明の効果】請求項1記載のシリアルプリンタは、外
部から供給される印字データが複数のキャラクタコード
を含むテキスト形式であることを検出し、各キャラクタ
コードの座標上の配置を設定し、印字範囲が印字ヘッド
の1走査領域内にあるグループ単位にキャラクタコード
を選択し、選択されたグループのキャラクタコードをド
ットデータに変換することによりビットマップパターン
データをラスターバッファ内に格納し、印字ヘッドを移
動させながらこのビットマップパターンデータに基づい
て印字ヘッドのドット印字素子を駆動し、前記印字ヘッ
ドの1走査領域内にあるグループ単位で印字を実行する
印字処理、並びに印字範囲を印字ヘッドの走査領域に設
定するために用紙をフィードさせる制御処理を行なうテ
キスト処理手段を有する制御部を設けたので、印字に必
要なグループのキャラクタコードを設定された配置に従
って容易に選択し、ビットマップパターンデータをチェ
ックする場合よりもスループットを向上させることがで
き、また、文字のドットイメージ全体が印字ヘッドの往
路及び復路の一方で印字されるため、印字品質が損なわ
れることがない。
According to the first aspect of the present invention, the serial printer detects that the print data supplied from the outside is a text format including a plurality of character codes, sets the arrangement of each character code on the coordinates, and performs printing. A character code is selected for each group whose range is within one scanning area of the print head, and the bit map pattern data is stored in a raster buffer by converting the character code of the selected group into dot data. based on the bitmap pattern data to drive the dot printing elements of the print head while moving is, the print heads
Control having a text processing means for performing a printing process for executing printing in a group unit within one scanning region of a print head, and a control process for feeding a sheet in order to set a printing range to a scanning region of a print head. Because the unit is provided, it is possible to easily select the character code of the group necessary for printing according to the set arrangement, to improve the throughput compared to checking the bitmap pattern data, and to improve the entire dot image of the character. Is printed on one of the forward path and the return path of the print head, so that the print quality is not impaired.

【0029】請求項2記載のシリアルプリンタは、請求
項1記載のシリアルプリンタにおいて、各々印字ヘッド
のドット印字素子数の1/2に等しいライン数のドット
データを格納する上部及び下部ワークバッファを有する
とともに、外部から供給される印字データが複数ライン
のドットデータを含むグラフィック形式であることを検
出し、各ラインのドットデータの座標上の配置を決定
し、印字ヘッドのドット印字素子数の1/2に等しいラ
イン数だけ連続するグループ単位にドットデータを選択
し、選択されたグループのドットデータを印字ヘッドの
ドット印字素子数と印字幅とによって設定される1行分
のマトリクスサイズを有するラスターバッファの上半分
(上部ワークバッファ)と下半分(下部ワークバッフ
ァ)との2つに分けてあるバッファのうちの下部ワーク
バッファに格納し、上部及び下部ワークバッファの内容
の組み合わせから合成されるドットデータを所定マスク
パターンで選択的にマスクすることによりビットマップ
パターンデータをラスターバッファ内に作成し、印字ヘ
ッドを印字方向に移動させながらこのビットマップパタ
ーンデータに基づいて印字ヘッドの複数のドット印字素
子を駆動する印字処理、並びに印字ヘッドのドット印字
素子数によって決まる印字ヘッドの印字高の1/2だけ
用紙をフィードし、下部ワークバッファに格納されたド
ットデータを前記上部バッファに移動させ、さらに所定
マスクパターンを反転する制御処理を行なうグラフィッ
ク処理手段を有する制御部を設けたので、ビットマップ
パターンデータを1ページ分格納するメモリを必要とす
ることがなく、また、図形のドットイメージが、印字ヘ
ッドの往路で印字されるドットイメージと印字ヘッドの
復路で印字されるドットイメージとの組み合わせにより
構成されるため、印字品質が損なわれることがなく、さ
らに、印字方向が一方向に限定される場合よりもスルー
プットを向上させることができる。
A serial printer according to a second aspect of the present invention is the serial printer according to the first aspect, further comprising upper and lower work buffers for storing dot data of a number of lines equal to half the number of dot printing elements of the print head. At the same time, it detects that the print data supplied from the outside is in a graphic format including dot data of a plurality of lines, determines the coordinate arrangement of the dot data of each line, and determines 1/1 of the number of dot print elements of the print head. The dot data is selected in units of groups that are continuous by the number of lines equal to 2, and the dot data of the selected group is
One line set by the number of dot print elements and print width
Upper half of raster buffer with matrix size of
(Upper work buffer) and lower half (lower work buffer)
A) by storing the dot data synthesized from the combination of the contents of the upper and lower work buffers with a predetermined mask pattern and storing the data in the lower work buffer of the two divided buffers. Creates pattern data in a raster buffer, moves the print head in the print direction, drives the plurality of dot print elements of the print head based on the bit map pattern data while moving the print head, and determines the number of dot print elements of the print head. A control having a graphic processing means for performing a control process of feeding a sheet by half the printing height of the determined print head, moving the dot data stored in the lower work buffer to the upper buffer, and further inverting a predetermined mask pattern. Section, the bitmap pattern data There is no need for memory to store pages, and the dot image of the figure is composed of a combination of a dot image printed on the forward path of the print head and a dot image printed on the return path of the print head. In addition, the print quality is not impaired, and the throughput can be improved as compared with the case where the print direction is limited to one direction.

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

【図1】本発明に一実施例に係るシリアルプリンタの回
路図である。
FIG. 1 is a circuit diagram of a serial printer according to an embodiment of the present invention.

【図2】図1に示すシリアルプリンタの動作を概略的に
説明するためのフローチャートである。
FIG. 2 is a flowchart schematically illustrating the operation of the serial printer shown in FIG. 1;

【図3】図2に示すテキスト印字処理をさらに詳細に説
明するためのフローチャートである。
FIG. 3 is a flowchart for explaining the text printing process shown in FIG. 2 in further detail;

【図4】図2に示すグラフィック印字処理をさらに詳細
の説明するためのフローチャートである。
FIG. 4 is a flowchart for explaining the graphic printing process shown in FIG. 2 in further detail;

【図5】図1に示すテキストバッファに格納されたキャ
ラクタコードの配置データに基づいて仮想した文字の配
列を示す図である。
FIG. 5 is a diagram showing an array of characters imagined based on character code arrangement data stored in the text buffer shown in FIG. 1;

【図6】テキスト印字処理で図1に示すラスターバッフ
ァに格納されるパターンデータを説明するための図であ
る。
FIG. 6 is a diagram for explaining pattern data stored in the raster buffer shown in FIG. 1 in a text printing process.

【図7】グラフィック印字処理で図1に示すラスターバ
ッファ内に順次作成するビットマップパターンデータを
明する図である。
7 is a diagram illustrating bitmap pattern data sequentially created in the raster buffer illustrated in FIG. 1 in the graphic printing process.

【図8】グラフィック印字処理で順次印字されるドット
イメージを示す図である。である。
FIG. 8 is a diagram illustrating dot images sequentially printed in a graphic printing process. It is.

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

1 制御部、テキスト処理手段、グラフィック処理
手段 6 用紙フィード機構 8 ヘッド移動機構 10 グラフィックバッファ 11 テキストバッファ 14 ラスターバッファ 15 マスクパターンメモリ PH 印字ヘッド
DESCRIPTION OF SYMBOLS 1 Control part, text processing means, graphic processing means 6 Paper feed mechanism 8 Head moving mechanism 10 Graphic buffer 11 Text buffer 14 Raster buffer 15 Mask pattern memory PH Print head

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−64236(JP,A) 特開 平5−96793(JP,A) 特開 平5−96806(JP,A) 特開 平5−169648(JP,A) 特開 平5−318868(JP,A) 特開 平7−112561(JP,A) 特開 平7−40604(JP,A) 特開 平7−9700(JP,A) 特開 平7−25076(JP,A) (58)調査した分野(Int.Cl.7,DB名) B41J 2/51 B41J 2/485 B41J 5/30 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-6-64236 (JP, A) JP-A-5-96793 (JP, A) JP-A-5-96806 (JP, A) JP-A-5-96806 169648 (JP, A) JP-A-5-318868 (JP, A) JP-A-7-112561 (JP, A) JP-A-7-40604 (JP, A) JP-A-7-9700 (JP, A) JP-A-7-25076 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) B41J 2/51 B41J 2/485 B41J 5/30

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 用紙をフィードする用紙フィード機構
と、 用紙フィード方向に所定ピッチで並ぶ複数のドット印字
素子を有する印字ヘッドと、 用紙を走査するために用紙フィード方向と略直角な方向
において前記印字ヘッドを移動させるヘッド移動機構
と、 前記印字ヘッドの1走査領域分のビットマップパターン
データを格納するラスターバッファと、 前記印字ヘッドを印字方向に移動させながら前記ラスタ
ーバッファに格納されたビットマップパターンデータに
対応するドットイメージを印字させ、このドットイメー
ジの印字後に印字方向を反転させる制御部とを備え、 前記制御部は、外部から供給される印字データが複数の
キャラクタコードを含むテキスト形式であることを検出
し、各キャラクタコードの座標上の配置を設定し、印字
範囲が前記印字ヘッドの1走査領域内にあるグループ単
位にキャラクタコードを選択し、選択されたグループの
キャラクタコードをドットデータに変換することにより
ビットマップパターンデータをラスターバッファ内に作
成し、前記印字ヘッドを移動させながらこのビットマッ
プパターンデータに基づいて複数の前記ドット印字素子
を駆動し、前記印字ヘッドの1走査領域内にあるグルー
プ単位で印字を実行する印字処理、並びに印字範囲を前
記印字ヘッドの走査領域に設定するために用紙をフィー
ドさせる制御処理を行なうテキスト処理手段を有するこ
とを特徴とするシリアルプリンタ。
1. A paper feed mechanism for feeding paper, a print head having a plurality of dot printing elements arranged at a predetermined pitch in the paper feed direction, and the printing in a direction substantially perpendicular to the paper feed direction for scanning the paper. A head moving mechanism for moving a head, a raster buffer for storing bit map pattern data for one scanning area of the print head, and a bit map pattern data stored in the raster buffer while moving the print head in a printing direction. A control unit for printing a dot image corresponding to the image data, and reversing a printing direction after printing the dot image, wherein the control unit is configured so that print data supplied from the outside is a text format including a plurality of character codes. Is detected, the arrangement of each character code on the coordinates is set, and printing is performed. A character code is selected for each group in which the box is within one scan area of the print head, and bit map pattern data is created in a raster buffer by converting the character code of the selected group into dot data. While moving the head, the plurality of dot printing elements are driven based on the bitmap pattern data, and a group within one scanning area of the print head is moved.
A serial printer comprising: a text processing unit that performs a printing process for executing printing in units of paper and a control process for feeding a sheet to set a printing range in a scanning area of the print head.
【請求項2】 前記制御部は、さらに、各々前記印字ヘ
ッドのドット印字素子数の1/2に等しいライン数のド
ットデータを格納する上部及び下部ワークバッファを有
するとともに、外部から供給される印字データが複数ラ
インのドットデータを含むグラフィック形式であること
を検出し、各ラインのドットデータの座標上の配置を決
定し、前記印字ヘッドのドット印字素子数の1/2に等
しいライン数だけ連続するグループ単位にドットデータ
を選択し、選択されたグループのドットデータを前記印
字ヘッドのドット印字素子数と印字幅とによって設定さ
れる1行分のマトリクスサイズを有するラスターバッフ
ァの上半分(上部ワーク バッファ)と下半分(下部ワー
クバッファ)との2つに分けてあるバッファのうちの
記下部ワークバッファに格納し、前記上部及び下部ワー
クバッファの内容の組み合わせから合成されるドットデ
ータを所定マスクパターンで選択的にマスクすることに
よりビットマップパターンデータを前記ラスターバッフ
ァ内に作成し、前記印字ヘッドを印字方向に移動させな
がらこのビットマップパターンデータに基づいて前記複
数のドット印字素子を駆動する印字処理、並びに前記印
字ヘッドのドット印字素子数によって決まる前記印字ヘ
ッドの印字高の1/2だけ用紙をフィードし、前記下部
ワークバッファに格納されたドットデータを前記上部バ
ッファに移動させ、さらに所定マスクパターンを反転す
る制御処理を行なうグラフィック処理手段を有すること
を特徴とする請求項1記載のシリアルプリンタ。
2. The control section further includes upper and lower work buffers each storing dot data of a number of lines equal to の of the number of dot printing elements of the print head, and printing supplied from outside. Detects that the data is in a graphic format including dot data of a plurality of lines, determines the coordinate arrangement of the dot data of each line, and continues by the number of lines equal to half the number of dot printing elements of the print head. select dot data in group units to, the indicia dot data of the selected group
Set by the number of dot print elements of the character head and the print width.
Raster buffer with a matrix size for one row
Upper half (upper work buffer) and lower half (lower work buffer)
Of the upper and lower work buffers, and selectively stores dot data synthesized from a combination of the contents of the upper and lower work buffers with a predetermined mask pattern. A bitmap pattern data is created in the raster buffer by masking in the raster buffer, and while the printhead is moved in a printing direction, the plurality of dot printing elements are driven based on the bitmap pattern data, and a printing process. The paper is fed by half the print height of the print head determined by the number of dot print elements of the print head, the dot data stored in the lower work buffer is moved to the upper buffer, and a predetermined mask pattern is inverted. Characterized by having graphic processing means for performing control processing Motomeko 1 serial printer described.
【請求項3】 前記制御部は、テキスト形式の印字デー
タに含まれる各キャラクタコードをその配置を表す属性
データと共に格納するテキストバッファを含むことを特
徴とする請求項1記載のシリアルプリンタ。
3. The serial printer according to claim 1, wherein the control unit includes a text buffer for storing each character code included in the print data in the text format together with attribute data indicating its arrangement.
【請求項4】 前記制御部は、グラフィック形式の印字
データに含まれるドットデータをその配置を表す属性デ
ータと共に収納するグラフィックバッファを含むことを
特徴とする請求項2記載のプリンタ。
4. The printer according to claim 2, wherein the control unit includes a graphic buffer for storing dot data included in the print data in the graphic format together with attribute data indicating its arrangement.
【請求項5】 前記制御部は、所定マスクパターンを格
納するマスクパターンメモリを含むことを特徴とする請
求項2記載のシリアルプリンタ。
5. The serial printer according to claim 2, wherein the control unit includes a mask pattern memory for storing a predetermined mask pattern.
JP9344695A 1994-04-19 1995-04-19 Serial printer Expired - Fee Related JP3165346B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9344695A JP3165346B2 (en) 1994-04-19 1995-04-19 Serial printer

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8002094 1994-04-19
JP6-80020 1994-04-19
JP9344695A JP3165346B2 (en) 1994-04-19 1995-04-19 Serial printer

Publications (2)

Publication Number Publication Date
JPH082009A JPH082009A (en) 1996-01-09
JP3165346B2 true JP3165346B2 (en) 2001-05-14

Family

ID=26421048

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9344695A Expired - Fee Related JP3165346B2 (en) 1994-04-19 1995-04-19 Serial printer

Country Status (1)

Country Link
JP (1) JP3165346B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW346705B (en) * 1996-06-24 1998-12-01 Toshiba Co Ltd Amplifier circuit
JP2006035770A (en) * 2004-07-29 2006-02-09 Toppan Forms Co Ltd Inkjet recording system

Also Published As

Publication number Publication date
JPH082009A (en) 1996-01-09

Similar Documents

Publication Publication Date Title
US4737041A (en) Dot printing apparatus and method
EP0678826B1 (en) Serial printer
JP3165346B2 (en) Serial printer
JPH09123527A (en) Recorder and recording data processing method
US7535593B2 (en) Printing apparatus, data processing method for printing apparatus, and printing system
KR100686565B1 (en) Print control device
JP2774354B2 (en) INK JET RECORDING APPARATUS AND CONTROL METHOD THEREOF
JP3424708B2 (en) Dot matrix printing system
JP3327430B2 (en) Printer control device
JP3055738B2 (en) Dot matrix pattern printing method and apparatus
JP3242523B2 (en) Printing information processing device
US5114253A (en) Dot printing method for dot printer
JP3083024B2 (en) Character processing apparatus and method
JP3275936B2 (en) Raster graphics serial printer
JP2969791B2 (en) Dot line printer
JPH0825313B2 (en) Print control device
JP3457555B2 (en) Printer device and printer system
JPH0948110A (en) Image recording apparatus
JPH0924644A (en) Method and system for printing image data
JPH0852904A (en) Serial printer
JPH01221256A (en) Control system of serial printer
JPH11105314A (en) Printer
JPH0386562A (en) Printing head controller
JP2000141786A (en) Printer, printing method for character and recording medium stored with program
JPS6151233A (en) Control system in printer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees