JPH10337907A - Printing data-processing apparatus - Google Patents

Printing data-processing apparatus

Info

Publication number
JPH10337907A
JPH10337907A JP9151795A JP15179597A JPH10337907A JP H10337907 A JPH10337907 A JP H10337907A JP 9151795 A JP9151795 A JP 9151795A JP 15179597 A JP15179597 A JP 15179597A JP H10337907 A JPH10337907 A JP H10337907A
Authority
JP
Japan
Prior art keywords
data
printing
print
order
print data
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
JP9151795A
Other languages
Japanese (ja)
Inventor
Koichiro Tsuruno
幸一郎 鶴野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP9151795A priority Critical patent/JPH10337907A/en
Publication of JPH10337907A publication Critical patent/JPH10337907A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To simplify a printing apparatus in constitution and speed up the printing by providing a correcting means which moves the position of printing data to be output to each printing part in accordance with the shift amount of a plurality of the printing parts. SOLUTION: A printer driver 4, when receiving image data from an application software 3, stores the data in a band buffer and carries out a shift correction process for a printing start position to a plurality of printing parts by a shift correction-processing part 4a. When the plurality of printing parts shift with respect to the printing direction and start the printing at the same time, printing start positions are shifted among the printing parts. Therefore, in order to eliminate the shift, the printing start position of one printing part is corrected to be moved in the movement direction by the amount of shifted dots.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数の印字部を有
する印字装置に出力する印字データに所定の処理を行う
印字データ処理装置に関する。なお、本明細書において
「印字」とは文字や記号の印刷のみならず画像の印刷も
含むものとする。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print data processing apparatus for performing predetermined processing on print data output to a printing apparatus having a plurality of printing units. In this specification, “printing” includes not only printing of characters and symbols but also printing of images.

【0002】[0002]

【従来の技術】従来、パーソナルコンピュータ(PC)
において作成された文字や画像のデータは、印字イメー
ジのデータ形式のままで印字装置に転送され、印字装置
において、印字出力用のデータ形式に変換され、用紙上
に印字されている。
2. Description of the Related Art Conventionally, personal computers (PCs)
The character and image data created in step (1) are transferred to the printing apparatus in the data format of the print image, converted into a data format for print output in the printing apparatus, and printed on paper.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、複数の
印字部を有し、同時に複数行の印字が可能な印字装置で
は、それぞれの印字部が印字方向にずれて設けられてい
る場合がある。そして、複数の印字部で同時に印字を開
始すると、印字部ごとに印字開始位置がずれてしまう。
このため、パーソナルコンピュータから転送された印字
イメージのデータに対して各印字部間の印字開始位置の
ずれを補正する処理を行った後、印字動作を行う必要が
あった。そのため、従来の印字装置には、印字の位置ず
れの補正処理のための回路やメモリが必要となり、印字
装置が複雑化する。またずれの補正処理の時間を必要と
するために印字処理の時間が長くなる。
However, in a printing apparatus having a plurality of printing sections and capable of printing a plurality of lines at the same time, each printing section may be provided shifted in the printing direction. If printing is started simultaneously in a plurality of printing units, the printing start position is shifted for each printing unit.
For this reason, it is necessary to perform a printing operation after performing a process of correcting a shift of a printing start position between respective printing units with respect to print image data transferred from a personal computer. For this reason, the conventional printing apparatus requires a circuit and a memory for correcting the printing position deviation, and the printing apparatus is complicated. In addition, the time for the printing process becomes longer because the time for the shift correction process is required.

【0004】さらに、印字部の往復移動の両方向におい
て印字を行う印字装置の場合には、印字部の移動方向に
対応するように印字データの出力順序を部分的に逆転さ
せる必要があった。そのために、印字装置にメモリが必
要となり、印字装置の構成が複雑化する。また、データ
順序の逆転処理のための時間が必要となり、印字処理の
時間が長くなる。
Further, in the case of a printing apparatus that performs printing in both directions of the reciprocating movement of the printing unit, it is necessary to partially reverse the output order of the print data so as to correspond to the moving direction of the printing unit. Therefore, a memory is required for the printing device, and the configuration of the printing device is complicated. Further, time is required for the reverse process of the data order, and the time for the printing process is lengthened.

【0005】このように、従来では、印字装置において
パーソナルコンピュータから転送された印字データに対
して印字開始位置のずれ補正や印字データの順序逆転処
理等を行うために、印字装置が複雑化し、印字処理時間
が長くなるという問題があった。
[0005] As described above, conventionally, in a printing apparatus, since the printing data transferred from a personal computer is subjected to correction of a shift of a printing start position, reverse processing of the order of the printing data, and the like, the printing apparatus is complicated, and printing is complicated. There is a problem that the processing time becomes long.

【0006】本発明は、印字装置の構成を簡素化すると
ともに、印字動作を高速化することが可能な印字データ
処理装置を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a print data processing apparatus capable of simplifying the configuration of a printing apparatus and speeding up a printing operation.

【0007】[0007]

【課題を解決するための手段】本発明に係る印字データ
処理装置は、印字方向にずれて配置された複数の印字部
を用いて同時に複数行の印字を行う印字装置に対して印
字データを出力する印字データ処理装置であって、複数
の印字部間のずれ量に応じて各印字部に出力される印字
データの位置を移動させる補正手段を備えたものであ
る。
A print data processing apparatus according to the present invention outputs print data to a printing apparatus that prints a plurality of lines at the same time using a plurality of printing sections arranged in a printing direction. A print data processing device for correcting the position of print data output to each printing unit according to the amount of displacement between the plurality of printing units.

【0008】印字データ処理装置の補正手段は、複数の
印字部間のずれ量に応じて各印字部に出力される印字デ
ータの位置を移動させて印字データを補正する。これに
より、複数の印字部が印字対象面の同一の位置から印字
を開始することができ、印字開始位置のずれを生じるこ
となく同時に複数行の印字動作を行わせることができ
る。加えて、印字装置から印字データ補正のための回路
やメモリが不要となり、印字装置が簡素化され、かつ印
字処理を高速化することができる。
[0008] The correction means of the print data processing device corrects the print data by moving the position of the print data output to each print unit in accordance with the amount of displacement between the plurality of print units. Thus, the plurality of printing units can start printing from the same position on the printing target surface, and the printing operation of a plurality of lines can be performed simultaneously without causing a shift in the printing start position. In addition, a circuit and a memory for correcting the print data from the printing device are not required, so that the printing device can be simplified and the printing process can be speeded up.

【0009】さらに、本発明に係る印字データ処理装置
は、所定方向に移動可能な印字部の往行程と復行程の両
方で印字を行う印字装置に対して印字データを出力する
印字データ処理装置であって、印字データのうち、デー
タの整列順序が往行程および復行程のいずれかにおいて
印字部が印字すべき順序に一致していないデータ部分の
データの整列順序を印字部が印字すべき順序に一致させ
るデータ順序変更手段を備えたものである。
Further, a print data processing apparatus according to the present invention is a print data processing apparatus for outputting print data to a printing apparatus which performs printing in both a forward stroke and a return stroke of a printing unit movable in a predetermined direction. In the print data, the data alignment order of the data portion in which the data alignment order does not match the order in which the printing unit should print in either the forward pass or the return stroke is changed to the order in which the printing unit should print. It is provided with a data order changing means for matching.

【0010】印字データ処理装置のデータ順序変更手段
は、往復移動する印字部の移動方向に対応するように印
字データのデータ順序を変更する。これにより印字部が
往復行程において印字を行う印字装置に対しても正しい
順序に整列した印字データを出力することができる。
[0010] The data order changing means of the print data processing device changes the data order of the print data so as to correspond to the moving direction of the reciprocating printing unit. As a result, it is possible to output print data arranged in a correct order even to a printing device in which the printing unit performs printing in a reciprocating process.

【0011】[0011]

【発明の実施の形態】請求項1の発明に係る印字データ
処理装置は、印字方向にずれて配置された複数の印字部
を用いて同時に複数行の印字を行う印字装置に対して印
字データを出力する印字データ処理装置であって、複数
の印字部間のずれ量に応じて各印字部に出力される印字
データの位置を移動させる補正手段を備えたものであ
る。これにより、複数の印字部がずれて配置された印字
装置においても、印字対象面の同一の位置から複数行の
印字を開始することが可能となり、印字位置のずれを防
止することができる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A print data processing apparatus according to the first aspect of the present invention provides a print data processing apparatus for printing a plurality of lines at the same time using a plurality of printing units arranged in a printing direction. A print data processing device for outputting, comprising a correcting means for moving the position of print data output to each print unit in accordance with the amount of displacement between a plurality of print units. Thus, even in a printing apparatus in which a plurality of printing units are arranged in a shifted manner, printing of a plurality of lines can be started from the same position on a printing target surface, and a shift in a printing position can be prevented.

【0012】加えて、印字装置には補正済みの印字デー
タが出力されることにより、印字装置から補正のための
回路やメモリを省略することが可能となり、印字装置が
簡素化される。さらに、印刷装置における補正処理が省
略され、これによって印字処理時間が短縮され、印字出
力動作を高速化することができる。
In addition, since the corrected printing data is output to the printing apparatus, it is possible to omit a circuit and a memory for correction from the printing apparatus, thereby simplifying the printing apparatus. Further, the correction processing in the printing apparatus is omitted, whereby the printing processing time is shortened, and the printing output operation can be sped up.

【0013】請求項2の発明に係る印字データ処理装置
は、請求項1の発明に係る印字データ処理装置の構成に
おいて、補正された印字データのデータ数が8の倍数で
無い場合に、印字データのデータ数が8の倍数となるよ
うに非印字データを補充するデータ補充手段をさらに備
えたものである。これにより、印字データを所定の出力
データ形式に一致させることが可能となり、適切な印字
出力を得ることができる。
According to a second aspect of the present invention, in the configuration of the print data processing apparatus according to the first aspect of the present invention, when the number of data of the corrected print data is not a multiple of eight, And data replenishing means for replenishing non-printing data so that the number of data becomes a multiple of eight. As a result, the print data can be made to match the predetermined output data format, and an appropriate print output can be obtained.

【0014】請求項3の発明に係る印字データ処理装置
は、所定方向に往復移動可能な印字部の往行程と復行程
の両方で印字を行う印字装置に対して印字データを出力
する印字データ処理装置であって、印字データのうち、
データの整列順序が往行程および復行程のいずれかにお
いて印字部が印字すべき順序に一致していないデータ部
分のデータ整列順序を印字部が印字すべき順序に一致さ
せるデータ順序変更手段を備えたものである。
According to a third aspect of the present invention, there is provided a print data processing apparatus for outputting print data to a printing apparatus which performs printing in both forward and backward strokes of a printing unit which is reciprocally movable in a predetermined direction. Device, and of the print data,
A data order changing unit that matches the data alignment order of the data portion that does not match the order to be printed by the printing unit with the order to be printed by the printing unit in the order in which the data is arranged does not match the order in which the printing unit should print in one of the forward pass and the return stroke Things.

【0015】これにより、往復移動する印字部の印字動
作に応じてデータの整列順序が変更された印字データが
印字装置に出力される。このため、印字装置側でのデー
タ順序変更処理が不要となり、印字装置が簡素化すると
ともに、印字処理時間を短縮して印字動作を高速化する
ことができる。
As a result, print data in which the data alignment order has been changed in accordance with the printing operation of the reciprocating printing unit is output to the printing device. For this reason, the data order change processing on the printing device side becomes unnecessary, and the printing device can be simplified, and the printing operation time can be shortened to speed up the printing operation.

【0016】請求項4の発明に係る印字データ処理装置
は、請求項3の発明に係る印字データ処理装置の構成に
おいて、データ順序変更手段が、バイト単位またはワー
ド単位でデータ部分のデータ整列順序を変更するもので
ある。これにより、バイト単位またはワード単位で取り
扱われる印字データに対して往復印字動作を適切に行わ
せることができる。
According to a fourth aspect of the present invention, in the print data processing apparatus according to the third aspect of the present invention, the data order changing means changes the data alignment order of the data portion in byte units or word units. To change. Thereby, the reciprocating printing operation can be appropriately performed on the print data handled in byte units or word units.

【0017】請求項5の発明に係る印字データ処理装置
は、請求項3の発明に係る印字データ処理装置の構成に
おいて、データ順序変更手段が、ビット単位でデータ部
分のデータ整列順序を変更するものである。これによ
り、ビット単位のデータ変更が行われ、往復印字動作が
適切に行われる。
According to a fifth aspect of the present invention, in the print data processing apparatus according to the third aspect of the present invention, the data order changing means changes the data alignment order of the data portion on a bit-by-bit basis. It is. Thereby, the data is changed in bit units, and the reciprocating printing operation is appropriately performed.

【0018】請求項6の発明に係る印字データ処理装置
は、請求項3の発明に係る印字データ処理装置の構成に
おいて、データ順序変更手段が、バイト単位またはワー
ド単位でデータ整列順序を変更し、さらにビット単位で
変更するものである。これにより、バイト単位、ワード
単位およびビット単位でのデータ順序の変更が可能とな
る。
According to a sixth aspect of the present invention, in the print data processing apparatus according to the third aspect of the present invention, the data order changing means changes the data alignment order in byte units or word units. Further, it is changed in bit units. This makes it possible to change the data order in byte units, word units and bit units.

【0019】請求項7の発明に係る印字データ処理装置
は、所定方向に往復移動可能でありかつ所定方向にずれ
て配置された複数の印字部によって往行程と復行程の両
方で同時に複数行の印字を行う印字装置に対して印字デ
ータを出力する印字データ処理装置であって、複数の印
字部間のずれ量に応じて各印字部に出力される印字デー
タの位置を移動させる補正手段と、印字データのうち、
データの整列順序が往行程および復行程のいずれかにお
いて印字部が印字すべき順序に一致していないデータ部
分のデータ整列順序を印字部が印字すべき順序に一致す
るように変更するデータ順序変更手段とを備えたもので
ある。
According to a seventh aspect of the present invention, there is provided a print data processing apparatus which is capable of reciprocatingly moving in a predetermined direction and simultaneously printing a plurality of lines in both the forward stroke and the return stroke by a plurality of printing units which are arranged shifted in the predetermined direction. A print data processing device that outputs print data to a printing device that performs printing, a correction unit that moves a position of print data output to each printing unit according to a shift amount between a plurality of printing units, Of the print data,
Change the data alignment order of the data part that does not match the order in which the print unit should print in either the forward pass or the return stroke so that the print unit matches the order in which the print unit should print Means.

【0020】これにより、印字装置の構成が簡素化する
とともに、印字動作の高速化を図ることができる。
As a result, the structure of the printing apparatus can be simplified, and the speed of the printing operation can be increased.

【0021】以下、本発明の実施の形態について説明す
る。図1は、本発明の印字データ処理装置を含む印刷シ
ステムの構成を示すブロック図である。図1において、
印刷システムは、印字データを生成するホストコンピュ
ータ1とホストコンピュータ1により生成されたデータ
を印字出力する印字装置2とから構成される。
Hereinafter, embodiments of the present invention will be described. FIG. 1 is a block diagram showing a configuration of a printing system including a print data processing device of the present invention. In FIG.
The printing system includes a host computer 1 that generates print data and a printing device 2 that prints out the data generated by the host computer 1.

【0022】ホストコンピュータ1は文字データの生成
や画像データの生成を行うアプリケーションソフトウェ
ア3と、アプリケーションソフトウェア3から転送され
る文字や画像のデータ(以下、印字データと総称する)
に対してずれ補正等のデータ処理を行い、コマンド形式
の転送データに変換するプリンタドライバ4と、コマン
ド形式の印字データを印字装置2に転送するプリンタイ
ンタフェース5とを備える。ここでプリンタドライバ4
が本発明の印字データ処理装置に相当する。
The host computer 1 includes application software 3 for generating character data and image data, and character and image data transferred from the application software 3 (hereinafter collectively referred to as print data).
A printer driver 4 that performs data processing such as deviation correction on the data and converts the data into command-format transfer data, and a printer interface 5 that transfers command-format print data to the printing device 2. Here the printer driver 4
Corresponds to the print data processing device of the present invention.

【0023】また、印字装置2は、ホストコンピュータ
1から転送されるコマンド形式の転送データを受け取る
コンピュータインタフェース6と、受信した転送データ
のコマンドを解析して印字データを取り出すコマンド解
析部7と、取り出した印字データを印字出力用のデータ
に変換するデータ処理部8と、印字出力用のデータに基
づいて印字処理を行う印字部9とを備える。印字部9は
複数設けられており、複数行を同時に印字することがで
きる。
The printing apparatus 2 includes a computer interface 6 for receiving command-format transfer data transferred from the host computer 1, a command analyzing unit 7 for analyzing commands of the received transfer data and extracting print data, A data processing unit 8 for converting the print data into print output data; and a print unit 9 for performing print processing based on the print output data. A plurality of printing units 9 are provided, and a plurality of lines can be printed simultaneously.

【0024】この印刷システムにおいては、従来印字装
置において行っていたずれ補正処理、データ順序逆転処
理、ビットフィル処理およびラスタ分割処理をホストコ
ンピュータ1に設けたプリンタドライバ4により行って
いる。図2は、プリンタドライバの構成を示すブロック
図である。
In this printing system, the printer driver 4 provided in the host computer 1 performs a shift correction process, a data order inversion process, a bit fill process, and a raster division process, which are conventionally performed in a printing apparatus. FIG. 2 is a block diagram illustrating a configuration of the printer driver.

【0025】ここで、ずれ補正処理部4aが本発明の補
正手段に相当し、データ順序逆転処理部4bがデータ順
序変更手段に相当し、ビットフィル処理部4cがデータ
補充手段に相当する。
Here, the shift correction processing section 4a corresponds to the correction means of the present invention, the data order inversion processing section 4b corresponds to the data order changing means, and the bit fill processing section 4c corresponds to the data supplementing means.

【0026】図3はプリンタドライバにおけるデータ処
理の流れを示す説明図である。以下、図2および図3に
従ってプリンタドライバ4におけるデータ処理について
説明する。
FIG. 3 is an explanatory diagram showing the flow of data processing in the printer driver. Hereinafter, data processing in the printer driver 4 will be described with reference to FIGS.

【0027】以下の処理において、印字データは複数の
ラスタデータからなり、ラスタデータは1行分のデータ
を意味し、複数のバイトデータからなる。また、バイト
データは処理を行う基本単位データであり、8つのビッ
トデータから構成される。ずれ補正処理、ビットフィル
処理はバイト単位で行われる。
In the following processing, the print data is composed of a plurality of raster data, and the raster data means one line of data, and is composed of a plurality of byte data. The byte data is basic unit data for processing, and is composed of eight bit data. The shift correction processing and the bit fill processing are performed in byte units.

【0028】プリンタドライバ4は、アプリケーション
ソフトウェア3から画像(印字)データ13を受け取
り、バンドバッファ14に格納する。そして、ずれ補正
処理部4aにより複数の印字部に対する印字開始位置の
ずれ補正処理を行う。
The printer driver 4 receives the image (print) data 13 from the application software 3 and stores it in the band buffer 14. Then, the shift correction processing unit 4a performs a shift correction process of the printing start position for the plurality of printing units.

【0029】(1)ずれ補正処理 図4は、複数の印字部間の印字開始位置に生じるずれの
説明図であり、図5は印字データのずれ補正処理の説明
図である。図4(a)〜(c)において、印刷装置2の
印字ヘッド30は複数の印字部、図示の例では2つの印
字部A,Bを有しており、2つの印字部A,Bが印字方
向に対してずれて配置されている。図示では印字部Aが
印字部Bに対して印字方向に進んだ位置にずれて配置さ
れている。このため、図4(c)に示すように、印字ヘ
ッド30が所定の位置、例えば印字部Bが印字用紙の印
字開始位置に達した時点から2つの印字部A,Bに同時
に印字動作を開始させると、印字部Aによる印字開始位
置と印字部Bにより印字開始位置との間にずれdが生じ
る。
(1) Deviation Correction Processing FIG. 4 is an explanatory diagram of a deviation occurring at a printing start position between a plurality of printing units, and FIG. 5 is an explanatory diagram of a deviation correction processing of print data. 4A to 4C, the print head 30 of the printing apparatus 2 has a plurality of printing units, in the illustrated example, two printing units A and B, and the two printing units A and B print. It is arranged shifted from the direction. In the figure, the printing unit A is arranged at a position shifted from the printing unit B in the printing direction. For this reason, as shown in FIG. 4C, the printing operation is simultaneously started on the two printing units A and B from the time when the printing head 30 reaches a predetermined position, for example, the printing unit B reaches the printing start position of the printing paper. Then, a shift d occurs between the printing start position of the printing unit A and the printing start position of the printing unit B.

【0030】そこで、ずれdを無くするために印字デー
タに対して次のようなずれ補正処理を行う。図5におい
て、例えば印字部Aと印字部Bとのずれdが2ドット分
とする。図5(a)は、印字部A,Bが右方向へ移動す
る場合の印字データのビット構成を示している。印字部
A,Bが右に移動する場合に、印字部Aの印字開始位置
が印字部Bの印字開始位置に比べて2ドット分だけ右方
向にずれる。そこで、このずれを補正するためには、印
字部Aの印字開始位置を2ドット分だけ左方向に移動さ
せればよい。すなわち、図5(a)の右図のように印字
部Aの印字データを印字部Bの印字データに対して2ド
ット分(2ビット分)だけ前方へ移動させればよいこと
になる。
Therefore, the following shift correction processing is performed on the print data in order to eliminate the shift d. In FIG. 5, for example, the shift d between the printing unit A and the printing unit B is assumed to be two dots. FIG. 5A shows a bit configuration of print data when the print units A and B move rightward. When the printing units A and B move to the right, the printing start position of the printing unit A is shifted rightward by two dots from the printing start position of the printing unit B. Therefore, in order to correct this shift, the printing start position of the printing unit A may be moved leftward by two dots. That is, as shown in the right diagram of FIG. 5A, the print data of the print unit A may be moved forward by 2 dots (2 bits) with respect to the print data of the print unit B.

【0031】また、図5(b)に示すように、印字部
A,Bが左方向へ移動する場合には、上記と逆に、印字
部Bの印字データを印字部Aの印字データよりも2ドッ
ト分(2ビット分)だけ前方へ移動させればよいことに
なる。
As shown in FIG. 5B, when the printing units A and B move to the left, the printing data of the printing unit B is conversely changed from the printing data of the printing unit A. That is, it is only necessary to move forward by two dots (two bits).

【0032】図6〜図8は、このずれ補正処理の動作を
示す模式図である。図3および図6〜図8を参照して、
ずれ補正処理の動作を具体的に説明する。バンドバッフ
ァ14からラスタバッファ15へ印字データをラスタデ
ータごとに読み込み、読み込んだラスタデータ数をラス
タ数カウンタ16により計数する。1頁分のラスタ数の
ラスタデータをラスタバッファ15に読み込むと、最初
のラスタデータからバイト単位で順次データを読み出
し、読み出したバイト数をバイト数カウンタ19により
計数する。
FIGS. 6 to 8 are schematic diagrams showing the operation of the shift correction processing. Referring to FIG. 3 and FIGS. 6 to 8,
The operation of the shift correction process will be specifically described. The print data is read from the band buffer 14 to the raster buffer 15 for each raster data, and the number of read raster data is counted by the raster number counter 16. When raster data of the number of rasters for one page is read into the raster buffer 15, data is sequentially read in byte units from the first raster data, and the number of read bytes is counted by the byte number counter 19.

【0033】図3および図6において、第1バイトデー
タ40を読み出し、ずれ量dに相当する下位2ビット分
のデータを一時的に記憶するとともに、第1バイトデー
タ40を第2シフトレジスタ18に入力し、ずれ量に相
当する2ビット分だけ右論理シフトを行う。このとき、
第1シフトレジスタ17には8ビットの「0」が入力さ
れている。そして、第1シフトレジスタ17からの8ビ
ットデータと第2シフトレジスタ18からの右論理シフ
トバイトデータとに対しビットOR演算を行い、ずれ補
正が行われた第1バイトデータ40aを得る。
In FIG. 3 and FIG. 6, the first byte data 40 is read out, the lower 2 bits of data corresponding to the shift amount d are temporarily stored, and the first byte data 40 is stored in the second shift register 18. Input and right logical shift by 2 bits corresponding to the shift amount. At this time,
An 8-bit “0” is input to the first shift register 17. Then, a bit-OR operation is performed on the 8-bit data from the first shift register 17 and the right logical shift byte data from the second shift register 18 to obtain the first byte data 40a on which the deviation has been corrected.

【0034】次に、図3および図7に示すように、第2
バイトデータ41を読み出し、下位の2ビット分を一時
的に記憶するとともに、第2バイトデータ41を第2シ
フトレジスタ18に入力する。そして、ずれ量に相当す
る2ビット分の右論理シフトを行い、シフトされた第2
バイトデータ41aを得る。一方、一時的に記憶された
第1バイトデータ40の下位2ビット分のデータを第1
シフトレジスタ17に入力し、(8ビット−ずれ量(2
ビット))分だけ左論理シフトを行い、バイトデータ4
1bを得る。そして、第2シフトレジスタ18からのバ
イトデータ41aと第1シフトレジスタ17からのバイ
トデータ41bとにビットOR演算を行い、ずれ補正が
行われた出力バイトデータ41cを得る。この第2バイ
トデータ41に対するずれ処理はラスタデータ内の最終
バイトデータまで繰り返し行われる。
Next, as shown in FIG. 3 and FIG.
The byte data 41 is read, the lower two bits are temporarily stored, and the second byte data 41 is input to the second shift register 18. Then, a right logical shift of 2 bits corresponding to the shift amount is performed, and the shifted second
The byte data 41a is obtained. On the other hand, the lower two bits of the temporarily stored first byte data 40 are stored in the first byte data.
The shift register 17 inputs (8 bits−shift amount (2
Bit)), a logical shift to the left is performed by
Obtain 1b. Then, a bit-OR operation is performed on the byte data 41a from the second shift register 18 and the byte data 41b from the first shift register 17 to obtain output byte data 41c on which deviation correction has been performed. This shift processing for the second byte data 41 is repeated until the last byte data in the raster data.

【0035】さらに、図3および図8に示すように、ラ
スタデータの最終バイトデータ42に対して上記の処理
を行うことにより、最終バイトの出力バイトデータ42
aを得る。なお、出力バイトデータ42aの第1および
第2ビットの「X」は最終の1つ前のバイトデータの下
位2ビットのデータを示すものである。
Further, as shown in FIGS. 3 and 8, by performing the above-described processing on the last byte data 42 of the raster data, the output byte data 42 of the last byte is obtained.
Obtain a. The "X" of the first and second bits of the output byte data 42a indicates the lower two bits of the last byte data immediately before.

【0036】以上の処理が終了すると、最終バイトデー
タ42の下位2ビット分のデータが残ることになる。し
たがって、この残りの2ビット分のデータに対しては後
述するビットフィル処理を行い、8ビットのフィルバイ
トデータを得る。上記のずれ補正処理により得られた印
字データは出力バッファ20に出力される。
When the above processing is completed, the lower two bits of the last byte data 42 remain. Therefore, the remaining 2 bits of data are subjected to a bit fill process, which will be described later, to obtain 8-bit fill byte data. The print data obtained by the above-described shift correction processing is output to the output buffer 20.

【0037】(2)データ順序逆転処理 印字装置の印字ヘッドが往復移動の両行程において印字
動作を行う場合には、往復方向のいずれか、例えば復行
程においてデータの整列順序と印字順序とが逆となる。
そこで、データ順序逆転処理部4bが印字データをバイ
ト単位またはワード単位で逆転し、さらにはビット単位
で逆転する処理を行う。図9は、バイト逆転処理を示す
模式図であり、図10は、ビット順序逆転処理説明図で
ある。
(2) Data Order Reverse Processing When the print head of the printing apparatus performs a printing operation in both reciprocating strokes, the data alignment order and the printing order are reversed in one of the reciprocating directions, for example, in the return stroke. Becomes
Therefore, the data order reversal processing unit 4b performs a process of reversing the print data on a byte or word basis and further on a bit basis. FIG. 9 is a schematic diagram showing the byte inversion process, and FIG. 10 is an explanatory diagram of the bit order inversion process.

【0038】図9において、例えば1ラスタ分のデータ
を1280バイトとする。図9(a)に示すように、印
字ヘッド30が右方向へ移動して印字する場合には、出
力バッファ20に記憶された印字データの整列順序と印
字すべきデータの順序とが一致しているため、印字デー
タの順序を変更する必要はない。
In FIG. 9, for example, the data for one raster is 1280 bytes. As shown in FIG. 9A, when the print head 30 moves to the right to perform printing, the alignment order of the print data stored in the output buffer 20 matches the order of the data to be printed. Therefore, there is no need to change the order of the print data.

【0039】ところが、図9(b)に示すように、印字
ヘッド30が左方向に移動して印字する場合には、出力
バッファ21内のデータ整列順序と印字すべきデータの
順序とが逆転している。そこで、以下の逆転処理を行
う。
However, as shown in FIG. 9B, when the print head 30 moves to the left and prints, the data alignment order in the output buffer 21 and the order of the data to be printed are reversed. ing. Therefore, the following inversion processing is performed.

【0040】まず、バイト単位でデータ順序を逆転させ
る場合、出力バッファ20から復行程に相当する印字デ
ータをラスタ単位で、かつ1ラスタデータの最終バイト
から第1バイト側に向かって読み込み、その都度読み込
みポインタをデクリメントさせる。これにより、バイト
単位でデータの整列順序を逆転することができる。
First, when the data order is reversed on a byte basis, print data corresponding to a return stroke is read from the output buffer 20 on a raster basis from the last byte of one raster data toward the first byte. Decrement the read pointer. As a result, the data sorting order can be reversed in byte units.

【0041】また、ワード単位でデータ順序を逆転させ
る場合も、同様に最終ワードから第1ワード側に向かっ
てデータを読み込むことにより、データ順序を逆転する
ことができる。
When the data order is reversed in word units, the data sequence can be reversed by reading data from the last word toward the first word in the same manner.

【0042】さらに、ビット単位でデータ順序を逆転さ
せる場合には、1バイト内のビットパターンに応じて予
め求めたビット順序逆転パターンテーブル21を用いて
ビットデータの順序を逆転することができる。図10
は、このビットデータ順序逆転処理の説明図である。ビ
ット順序逆転パターンテーブル21には各ビットパター
ンに対するLSB(最下位ビット)からMSB(最上位
ビット)への順序を逆転したビットパターンデータが格
納されている。出力バッファ20からラスタ単位で読み
出した印字データに対し、ラスタデータのバイトごとに
ビットパターンを判定し、ビット順序逆転パターンテー
ブル21を参照してビット順序が逆転された逆転パター
ンデータにより置換する。これによりビットデータの順
序逆転処理が行われる。
When the data order is reversed on a bit-by-bit basis, the order of the bit data can be reversed using the bit-order reverse pattern table 21 previously obtained according to the bit pattern in one byte. FIG.
Is an explanatory diagram of the bit data order inversion processing. The bit order inversion pattern table 21 stores bit pattern data in which the order from the LSB (least significant bit) to the MSB (most significant bit) for each bit pattern is reversed. The bit pattern of the print data read out from the output buffer 20 in raster units is determined for each byte of the raster data, and the print data is replaced with reverse pattern data whose bit order has been reversed with reference to the bit order reverse pattern table 21. Thus, the order inversion of the bit data is performed.

【0043】また、上記のバイト単位またはワード単位
のデータ順序逆転処理とビット単位のデータ順序逆転処
理とを相互に組み合わせて行うこともできる。
Also, the above-described data order inversion processing in byte units or word units and data order inversion processing in bit units can be performed in combination with each other.

【0044】(3)データフィル処理 上記(1)のずれ補正処理を行うと、補正後の印字デー
タのラスタデータが8の倍数でない場合が生じる。この
場合には、ビットフィル処理部4cにより、ラスタデー
タを8の倍数のデータに修正するビットフィル処理が行
われる。図11はビットフィル処理の説明図である。例
えば、印字しないデータ(非印字データ)を「0」とす
る。ラスタデータ50のように、ずれ補正画素と有効画
素数の和が8の倍数でない場合には、ずれ補正画素と有
効画素数の和を8で割った余りを求め、8からその余り
を引いたビット数を印字しないデータ「0」でフィル
(置換)してフィルバイトデータ50aを得る。すなわ
ち、データフィル用バッファ22は非印字データで置換
されている。そこで余りのデータとデータフィル用バッ
ファ22のビットデータ(非印字データ)とでビット演
算を行い、出力バイトデータ23を得る。図11の例で
は11番目から16番目のデータに「0」がフィルされ
る。なお、図8に示す場合では、2ビット分データが余
っているため、6ビット(8−2=6)分を「0」でフ
ィルして1バイトのフィルバイトデータを得る。
(3) Data Filling Process When the misalignment correction process of (1) is performed, the corrected raster data of the print data may not be a multiple of eight. In this case, the bit-fill processing unit 4c performs a bit-fill process for correcting the raster data to a multiple of eight. FIG. 11 is an explanatory diagram of the bit fill process. For example, non-printing data (non-printing data) is set to “0”. When the sum of the shift correction pixel and the number of effective pixels is not a multiple of 8, as in the raster data 50, the remainder obtained by dividing the sum of the shift correction pixel and the number of effective pixels by 8 is obtained, and the remainder is subtracted from 8. The fill byte data 50a is obtained by filling (replacing) the bit number with data "0" that is not printed. That is, the data fill buffer 22 is replaced with non-print data. Therefore, a bit operation is performed on the surplus data and the bit data (non-print data) of the data fill buffer 22 to obtain output byte data 23. In the example of FIG. 11, "0" is filled in the eleventh to sixteenth data. In the case shown in FIG. 8, since 2 bits of data are left, 6 bits (8−2 = 6) are filled with “0” to obtain 1-byte fill byte data.

【0045】(4)ラスタ分割処理 上記の処理が終了すると、ラスタ分割処理部4dが印字
データをラスタ単位に分割してプリンタインタフェース
5に出力する。
(4) Raster division processing When the above processing is completed, the raster division processing unit 4d divides the print data into raster units and outputs the data to the printer interface 5.

【0046】[0046]

【発明の効果】以上のように本発明によれば、印字デー
タ処理装置により印字データに対してずれ補正処理、デ
ータ順序逆転処理あるいはデータフィル処理を行うよう
に構成したことにより、印字データ処理装置に接続され
る印字装置の構成が簡素化され、かつ印字処理が高速化
される。
As described above, according to the present invention, the print data processing device is configured to perform the shift correction process, the data order inversion process or the data fill process on the print data. The configuration of the printing device connected to the printer is simplified, and the printing process is sped up.

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

【図1】本発明の印字データ処理装置を含む印刷システ
ムの構成を示すブロック図
FIG. 1 is a block diagram showing a configuration of a printing system including a print data processing device according to the present invention.

【図2】プリンタドライバの構成を示すブロック図FIG. 2 is a block diagram illustrating a configuration of a printer driver.

【図3】プリンタドライバにおけるデータ処理の流れを
示す説明図
FIG. 3 is an explanatory diagram showing a flow of data processing in a printer driver.

【図4】複数の印字部間の印字開始位置に生じるずれの
説明図
FIG. 4 is an explanatory diagram of a shift occurring at a printing start position between a plurality of printing units.

【図5】印字データのずれ補正処理の説明図FIG. 5 is an explanatory diagram of a shift correction process of print data.

【図6】ずれ補正処理の動作を示す模式図FIG. 6 is a schematic diagram showing an operation of a shift correction process.

【図7】ずれ補正処理の動作を示す模式図FIG. 7 is a schematic diagram showing an operation of a shift correction process.

【図8】ずれ補正処理の動作を示す模式図FIG. 8 is a schematic diagram showing an operation of a shift correction process.

【図9】バイト逆転処理を示す模式図FIG. 9 is a schematic diagram showing byte reverse processing;

【図10】ビットデータ順序逆転処理の説明図FIG. 10 is an explanatory diagram of bit data order inversion processing;

【図11】ビットフィル処理の説明図FIG. 11 is an explanatory diagram of a bit fill process.

【符号の説明】 1 ホストコンピュータ 2 印字装置 3 アプリケーションソフトウェア 4 プリンタドライバ 4a ずれ補正処理部 4b データ順序逆転処理部 4c ビットフィル処理部 4d ラスタ分割処理部[Description of Signs] 1 Host computer 2 Printing device 3 Application software 4 Printer driver 4a Misalignment correction processing unit 4b Data order inversion processing unit 4c Bit fill processing unit 4d Raster division processing unit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】印字方向にずれて配置された複数の印字部
を用いて同時に複数行の印字を行う印字装置に対して印
字データを出力する印字データ処理装置であって、前記
複数の印字部間のずれ量に応じて各印字部に出力される
印字データの位置を移動させる補正手段を備えたことを
特徴とする印字データ処理装置。
1. A print data processing device for outputting print data to a printing device that simultaneously prints a plurality of lines by using a plurality of printing units that are arranged shifted in a printing direction. A print data processing apparatus comprising: a correction unit that moves a position of print data output to each printing unit according to a shift amount between the print units.
【請求項2】補正された前記印字データのデータ数が8
の倍数で無い場合に、前記印字データのデータ数が8の
倍数となるように非印字データを補充するデータ補充手
段をさらに備えたことを特徴とする請求項1記載の印字
データ処理装置。
2. The data number of the corrected print data is eight.
2. The print data processing apparatus according to claim 1, further comprising a data replenishing unit that replenishes non-print data so that the number of print data becomes a multiple of eight when the data is not a multiple of the print data.
【請求項3】所定方向に往復移動可能な印字部の往行程
と復行程の両方で印字を行う印字装置に対して印字デー
タを出力する印字データ処理装置であって、印字データ
のうち、データの整列順序が前記往行程および前記復行
程のいずれかにおいて前記印字部が印字すべき順序に一
致していないデータ部分のデータ整列順序を前記印字部
が印字すべき順序に一致させるデータ順序変更手段を備
えたことを特徴とする印字データ処理装置。
3. A print data processing device for outputting print data to a printing device which performs printing in both a forward stroke and a return stroke of a printing unit which is reciprocally movable in a predetermined direction. Data order changing means for aligning the data alignment order of data portions which do not match the order in which the printing unit should print in one of the forward pass and the return stroke with the order in which the printing unit should print A print data processing device comprising:
【請求項4】前記データ順序変更手段は、バイト単位ま
たはワード単位で前記データ部分のデータ整列順序を変
更することを特徴とする請求項3記載の印字データ処理
装置。
4. The print data processing apparatus according to claim 3, wherein said data order changing means changes the data alignment order of said data portion in byte units or word units.
【請求項5】前記データ順序変更手段は、ビット単位で
前記データ部分のデータ整列順序を変更することを特徴
とする請求項3記載の印字データ処理装置。
5. The print data processing apparatus according to claim 3, wherein said data order changing means changes the data alignment order of said data portion on a bit-by-bit basis.
【請求項6】前記データ順序変更手段は、バイト単位ま
たはワード単位でデータ整列順序を変更し、さらにビッ
ト単位で変更することを特徴とする請求項3記載の印字
データ処理装置。
6. The print data processing apparatus according to claim 3, wherein said data order changing means changes the data alignment order in byte units or word units and further changes in bit units.
【請求項7】所定方向に往復移動可能でありかつ所定方
向にずれて配置された複数の印字部によって往行程と復
行程の両方で同時に複数行の印字を行う印字装置に対し
て印字データを出力する印字データ処理装置であって、
前記複数の印字部間のずれ量に応じて各印字部に出力さ
れる印字データの位置を移動させる補正手段と、前記印
字データのうち、データの整列順序が前記往行程および
前記復行程のいずれかにおいて前記複数の印字部が印字
すべき順序に一致していないデータ部分のデータ整列順
序を前記印字部が印字すべき順序に一致させるデータ順
序変更手段とを備えたことを特徴とする印字データ処理
装置。
7. A printing apparatus which prints a plurality of lines simultaneously in both forward and backward strokes by a plurality of printing units which are reciprocally movable in a predetermined direction and which are arranged shifted in the predetermined direction. A print data processing device for outputting,
Correction means for moving the position of the print data output to each print unit in accordance with the shift amount between the plurality of print units, and, among the print data, the data alignment order is one of the forward pass and the return pass. Data order changing means for matching a data alignment order of a data portion which does not match an order to be printed by the plurality of printing units to an order to be printed by the printing unit. Processing equipment.
JP9151795A 1997-06-10 1997-06-10 Printing data-processing apparatus Withdrawn JPH10337907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9151795A JPH10337907A (en) 1997-06-10 1997-06-10 Printing data-processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9151795A JPH10337907A (en) 1997-06-10 1997-06-10 Printing data-processing apparatus

Publications (1)

Publication Number Publication Date
JPH10337907A true JPH10337907A (en) 1998-12-22

Family

ID=15526472

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9151795A Withdrawn JPH10337907A (en) 1997-06-10 1997-06-10 Printing data-processing apparatus

Country Status (1)

Country Link
JP (1) JPH10337907A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006015739A (en) * 2004-06-01 2006-01-19 Canon Inc Recorder, its data processing method and recoding system
US8094349B2 (en) 2002-04-15 2012-01-10 Canon Kabushiki Kaisha Recording apparatus and method for controlling recording apparatus
KR101219435B1 (en) 2007-06-14 2013-01-11 삼성전자주식회사 Image processing apparatus and image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8094349B2 (en) 2002-04-15 2012-01-10 Canon Kabushiki Kaisha Recording apparatus and method for controlling recording apparatus
JP2006015739A (en) * 2004-06-01 2006-01-19 Canon Inc Recorder, its data processing method and recoding system
KR101219435B1 (en) 2007-06-14 2013-01-11 삼성전자주식회사 Image processing apparatus and image processing method

Similar Documents

Publication Publication Date Title
US5025325A (en) Graphics scaling method for high resolution printers
CA1100644A (en) Raster printer with sufficient printing flexibility
US6860203B2 (en) Method and apparatus for printing computer generated images
JPH10337907A (en) Printing data-processing apparatus
JP3510662B2 (en) Smoothing scaling method for facsimile images
US5542050A (en) Font information transfer system
JPH11203101A (en) Computer interface device and method for producing output data for stencil printer
JP2002240371A (en) Recording apparatus
JPH09270919A (en) Data compression method in page printer
JPH1023272A (en) Data compression method and expansion method in page printer
JP2002103687A (en) Printer and printing method
JP2637921B2 (en) Character symbol generator
KR100444899B1 (en) Rotation transformation method for images to reduce operation quantity
JP3093245B2 (en) Image processing device, output control device, image processing system and method
JPH01133097A (en) Character signal generator
JPH02294724A (en) Image data printing system
JP2002240261A (en) Print buffer memory controller
JPH06316111A (en) Image forming apparatus
JPH01229664A (en) Character pattern data transferring system of printer
JPS62251789A (en) Pattern generation system
JPH0542723A (en) Image printer control
JPH04128069A (en) Printing control apparatus of printer
JPH04312863A (en) Printer device
JPH11170629A (en) Printer having print head capable of simultaneously printing plural lines and method for controlling the same
JP2002240365A (en) Recorder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040526

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040614

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050624

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20061101