[go: up one dir, main page]

JPH03230973A - serial printer - Google Patents

serial printer

Info

Publication number
JPH03230973A
JPH03230973A JP2587990A JP2587990A JPH03230973A JP H03230973 A JPH03230973 A JP H03230973A JP 2587990 A JP2587990 A JP 2587990A JP 2587990 A JP2587990 A JP 2587990A JP H03230973 A JPH03230973 A JP H03230973A
Authority
JP
Japan
Prior art keywords
print
printing
data
print data
serial printer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2587990A
Other languages
Japanese (ja)
Inventor
Takeshi Aoyama
剛 青山
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2587990A priority Critical patent/JPH03230973A/en
Publication of JPH03230973A publication Critical patent/JPH03230973A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 本発明は、シリアルプリンタに関し、より詳細には、用
紙送り方向に異なる印字密度を有するシリアルプリンタ
用のデータを補正し印字動作を行うシリアルプリンタに
関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a serial printer, and more particularly, to a serial printer that performs a printing operation by correcting data for a serial printer having different printing densities in the paper feeding direction.

[従来の技術] シリアルプリンタにおいては、その制御を行う場合に、
複数の異なる制御コード体系が存在していることは周知
のことであるが、さらに制御の基本となる用紙送り方向
の印字密度、つまり印字ヘッドを構成する印字素子の並
びの間隔が異なる場合がある。従って、特定の用紙送り
方向の印字密度を実現するように設計されたシリアルプ
リンタにおいて、複数の制御コード体系での印字動作を
一台のシリアルプリンタでおこなわせる場合には、異な
る用紙送り方向の印字密度に対応した印字を行う必要が
ある。
[Prior Art] When controlling a serial printer,
It is well known that a plurality of different control code systems exist, but the print density in the paper feeding direction, which is the basis of control, that is, the spacing between the rows of print elements that make up the print head, may also differ. Therefore, in a serial printer designed to achieve print density in a specific paper feed direction, if you want a single serial printer to perform printing operations using multiple control code systems, it is necessary to adjust the print density in different paper feed directions. It is necessary to perform corresponding printing.

[発明が解決しようとする課題及び目的]第2図(a)
に示す用紙送り方向にn個の印字素子200を、間隔m
をおいて配置される印字ヘッド(以降、印字ヘッドAと
略)を具備しシリアルプリンタにおいては、1回のキャ
リッジの走査により、幅n*mの印字を行うことが出来
る。また、第2図(b)に示す用紙送り方向にn個の印
字素子を、間隔ml(ただしm’>mとする。)をおい
て配置される印字ヘッド(以降、印字ヘッドBと略)を
具備しシリアルプリンタにおいては、1回のキャリッジ
の走査により、幅n*m’の印字を行うことが出来る。
[Problem and purpose to be solved by the invention] Figure 2 (a)
n printing elements 200 are placed at intervals of m in the paper feeding direction shown in
A serial printer equipped with a print head (hereinafter abbreviated as print head A) arranged at a distance from the print head can perform printing with a width of n*m by one scan of the carriage. In addition, a print head (hereinafter abbreviated as print head B) in which n printing elements are arranged at intervals of ml (however, m'>m) in the paper feeding direction shown in FIG. 2(b) is used. In the serial printer equipped with the above-mentioned printer, printing with a width of n*m' can be performed by scanning the carriage once.

したがって、印字ヘッドBを有するシリアルプリンタ用
に作成された印刷データを、印字ヘッドAを有するシリ
アルプリンタで印字すると、印字結果に、幅(nm’ 
−nm)の空白域を生じることになる。例えば、n個全
ての印字素子を用いて印字するイメージデータ等の印字
において、かりに改行量を同一とし印字動作と行うと、
印字ヘッドBを有するシリアルプリンタでは、第3図(
a)に示す印字結果を得るのに対し、印字ヘッドAを有
するシリアルプリンタでは、第3図(b)に示す印字結
果となり、空白域が生じてしまう。そこで、従来この問
題を解決するために、印字ヘッドAを有するシリアルプ
リンタの場合、改行量を印字ヘッドBを有するシリアル
プリンタの改行量のm / m ’ とすることにより
、第3図(c)に示すような、空白域をなくした印字結
果を得ていた。
Therefore, if print data created for a serial printer having print head B is printed by a serial printer having print head A, the width (nm'
−nm) blank area will be generated. For example, when printing image data using all n printing elements, if the line feed amount is the same and the printing operation is performed,
In a serial printer having print head B, the printer shown in Fig. 3 (
While the printing result shown in a) is obtained, the serial printer having print head A produces the printing result shown in FIG. 3(b), resulting in a blank area. Conventionally, in order to solve this problem, in the case of a serial printer having print head A, the line feed amount is set to m/m' of the line feed amount of a serial printer having print head B, as shown in FIG. 3(c). I was able to get a print result with no blank areas as shown in the image below.

しかしながら、従来のシリアルプリンタにおいては、改
行量を本来のm / m ’に補正し印字している都合
上、要求される印字結果に対し、1−m/ mlだけ用
紙送り送り方向に短い印字結果となるという問題を有す
る。例えば、書式の決まった印字媒体に印字を行う場合
、書式を外れて異なる−に印字を行ったり、図形出力に
於いて、用紙送り方向に縮まることにより、歪みが生じ
たりして正確な印字結果が得られないといった問題点を
有している。
However, in conventional serial printers, the line feed amount is corrected to the original m/m' when printing, so the print result is 1-m/ml shorter in the paper feed direction than the required print result. It has the problem of becoming. For example, when printing on a print medium with a fixed format, it may be printed on a different - format, or when outputting graphics, it may shrink in the paper feeding direction, causing distortion and resulting in inaccurate printing results. The problem is that it cannot be obtained.

そこで、本発明の目的とするところは、前述の従来技術
の有する課題を解決し、用紙送り方向の改行量をm /
 m ’に補正することなく印字動作を行うことで、正
確な印字結果を得ることの出来るシリアルプリンタを提
供することにある。
Therefore, it is an object of the present invention to solve the problems of the prior art described above, and to reduce the line feed amount in the paper feeding direction to m /
An object of the present invention is to provide a serial printer that can obtain accurate printing results by performing printing operations without correcting m'.

[課題を解決するための手段] 垂直方向にn個の印字素子をmなる間隔をおいて有し、
1回のキャリッジ走査によって垂直方向に幅nmの印字
をおこなう印字ヘッドを有するシリアルプリンタにおい
て、ホスト装置より転送される1回のキャリッジ走査に
よって垂直方向に幅nm’  (ただし、m<m’ )
の印字をおこなうべき印字データを、補正し印字すべき
印字データか否かを印字データ判別手段によって判別し
、前記印字データ判別手段により判別されるそれぞれの
印字データを別々に格納する2つのデータ格納手段を有
し、さらに前記一方の格納手段に格納される垂直方向に
補正し印字すべき印字データに対し、垂直方向に印字デ
ータを追加するドツト追加手段と、ホスト装置より転送
される一行分の印字データを、複数行に分割して印字を
行う印字制御手段とを具備したことを特徴とする。
[Means for solving the problem] Having n printing elements at m intervals in the vertical direction,
In a serial printer that has a print head that prints a width nm in the vertical direction with one carriage scan, the print head prints a width nm' in the vertical direction with one carriage scan transferred from the host device (where m<m')
A print data determining means determines whether or not the print data to be printed is corrected and printed, and each of the print data determined by the print data determining means is stored separately. dot adding means for adding print data in the vertical direction to the print data to be corrected and printed in the vertical direction stored in the one storage means; The present invention is characterized by comprising a print control means that prints print data by dividing it into a plurality of lines.

[作用コ 入力される印刷データを、印字データ判別手段により、
ドツトを補正し印字する必要があるか否かによって分類
し、ドツトを補正する必要がある場合、 ドツト補正手
段によりドツトを追加発生させ印字動作を行う。
[Operation] The input print data is checked by the print data discrimination means.
The dots are classified according to whether or not it is necessary to correct and print the dots, and if it is necessary to correct the dots, additional dots are generated by the dot correction means and the printing operation is performed.

[実施例] 第4図に、本発明のシリアルプリンタの構成を示す。図
示しないホスト装置より、インターフェイス部20を通
じ入力されるデータは、−旦入力バッファ21へ格納さ
れる。制御部23は、入力バッファ21へ格納されたデ
ータを順次読みだし、文字データであれば、キャラクタ
ジエネラータ22に格納される文字パターンへ変換した
後、行バッファ2へ印字データとして格納する。印字指
令であれば、キャリッジ駆動部8及び用紙送り駆動部9
を駆動し、更に行バッファ1へ格納された印字データを
、印字△、ラド駆動部11へ送出し、印字ヘッド25を
通じ図示しない用紙に印字を行う。
[Embodiment] FIG. 4 shows the configuration of a serial printer of the present invention. Data input from a host device (not shown) through the interface section 20 is stored in the input buffer 21 - first. The control unit 23 sequentially reads out the data stored in the input buffer 21, and if it is character data, converts it into a character pattern to be stored in the character generator 22, and then stores it in the line buffer 2 as print data. If it is a print command, the carriage drive unit 8 and paper feed drive unit 9
Further, the print data stored in the line buffer 1 is sent to the print Δ and RAD drive section 11, and printing is performed on a sheet (not shown) through the print head 25.

ここで、本発明に於ける印字データ判別部、ドツト追加
部は制御部23内に属し、以降に詳細に説明する。
Here, the print data discriminating section and dot adding section in the present invention belong to the control section 23, and will be explained in detail below.

第5図は、印字データ判別部の動作を示す図であって、
ホスト装置より入力されるデータを、用紙送り方向にド
ツトを追加し印字すべきか否かを判別するものである。
FIG. 5 is a diagram showing the operation of the print data discrimination section,
It determines whether data input from the host device should be printed by adding dots in the paper feeding direction.

具体的には、入力データが文字コードであるかイメージ
データであるかを判別しく第5図41)、イメージデー
タの場合、そのデータを行バッファ2へ格納する(第5
図44)。更に、文字コードの場合は、罫線コードか否
かを判別し、罫線コードの場合には、イメージデータと
同様に、行バッファ2へ格納する。つまり、罫線コード
は、イメージデータと同等の扱いをする。罫線コードで
なく、通常の文字コードと判断されたコードは、行バッ
ファ2へ格納しく第5図43)、次の入力データ処理へ
戻る。また、行バツフア2ヘデータを格納した後には、
行バツフア2ヘデータが格納されたことを示すFLAG
=1としておく(第5図45)。
Specifically, it is determined whether the input data is a character code or image data (FIG. 5 41), and if it is image data, the data is stored in the row buffer 2 (FIG. 5).
Figure 44). Furthermore, if it is a character code, it is determined whether it is a ruled line code or not, and if it is a ruled line code, it is stored in the line buffer 2 in the same way as image data. In other words, the ruled line code is treated in the same way as image data. Codes determined to be normal character codes rather than ruled line codes are stored in the line buffer 2 (FIG. 5, 43), and the process returns to the next input data processing. Also, after storing the data in row buffer 2,
FLAG indicating that data has been stored in row buffer 2
=1 (Fig. 5, 45).

第5図は、印字指令が入力された場合の動作を示す図、
第1図は、データの流れを示す図である。
FIG. 5 is a diagram showing the operation when a print command is input;
FIG. 1 is a diagram showing the flow of data.

ホスト装置より印字指令が入力されると、印字制御部7
は、行バッファ2に格納されたデータが存在するか否か
を、前記FLAGの状態に入り判断する(第6図51)
。FLAG=Oの場合は、行バッファ2には印字すべき
データが存在しない、つまりドツトを補正することなし
に、行バッファ2に格納される印字データのみを、ヘッ
ド駆動部11へ転送すると共に、キャリッジ駆動部8に
よりキャリッジを駆動し、−行の印字を行う(第6図5
2)。印字終了後、ホスト装置より指定される改行量分
の用紙送りを、用紙送り駆動部9により実行する。
When a print command is input from the host device, the print control unit 7
enters the FLAG state and determines whether there is data stored in row buffer 2 (FIG. 6, 51).
. When FLAG=O, there is no data to be printed in the line buffer 2, that is, only the print data stored in the line buffer 2 is transferred to the head drive unit 11 without dot correction. The carriage is driven by the carriage drive unit 8 to print the - line (Fig. 6-5).
2). After printing is completed, the paper feed drive unit 9 feeds the paper by the amount of line feed specified by the host device.

次に、FLAG=1であり、行バッファ2に印字データ
が存在する場合について説明する。印字制御部7は、ド
ツト追加部6により行バッファ2に格納される印字デー
タに、補正ドツトを追加した印字データ5と、行バッフ
ァ1へ格納された印字データの和をとった印字データを
、ヘッド駆動部11へ送出し、第1回目の印字動作を行
う(第6図45)。
Next, a case where FLAG=1 and print data exists in the line buffer 2 will be described. The print control unit 7 generates print data obtained by adding correction dots to the print data stored in the line buffer 2 by the dot adding unit 6, and print data that is the sum of the print data stored in the line buffer 1. It is sent to the head drive unit 11 and performs the first printing operation (FIG. 6, 45).

ここで、ドツト追加部6の詳細な動作を、第7図を用い
て説明する。本発明のシリアルプリンタは、用紙送り方
向に、n個の印字素子を、間隔mを於いて配置される印
字ヘッドを有し、一方ホスト装置より入力される印刷デ
ータは、n個の印字素子を、間隔m′をおいて配置され
る印字ヘッドを有するシリアルプリンタ用のデータであ
るとする。ここで説明を行い易くするために、n−24
、m/m’=8/9であるとする。ホスト装置より入力
される用紙送り方向24ドツトの印字データを、本発明
のシリアルプリンタで印字するには、用紙送り方向のド
ツト数n′を、n’=n/(m/m′)、つまりn’ 
=27ドツl−とし印字する必要がある。ドツト追加部
8は、用紙送り方向24ドツトの印字データに対し、3
ドツトの補正ドツトを追加することになる。つまり、印
字データ8ドツトに1ドツトの割合でドツトを付加する
動作を行う。追加すべきドツトは、−例として、第7図
に示すように印字ヘッド上方より4番目と5番目に当た
るドツトデータの積をとったデータを、それらの中間に
拝し、以下同様に、12番目と13番目、200番目2
1番目中間位置に計3ドツトを追加するよう動作する。
Here, the detailed operation of the dot adding section 6 will be explained using FIG. The serial printer of the present invention has a print head in which n printing elements are arranged at intervals of m in the paper feeding direction, and print data input from a host device is transmitted through the n printing elements. Assume that the data is for a serial printer having print heads arranged at intervals m'. For ease of explanation here, n-24
, m/m'=8/9. In order to print 24 dots of print data in the paper feed direction input from the host device using the serial printer of the present invention, the number n' of dots in the paper feed direction is set to n'=n/(m/m'), that is, n'
It is necessary to print it as =27 dots l-. The dot adding section 8 adds 3 dots to the print data of 24 dots in the paper feed direction.
Dot correction dots will be added. That is, an operation is performed in which dots are added at a rate of 1 dot for every 8 dots of print data. The dots to be added are: - As an example, as shown in Figure 7, the product of the 4th and 5th dot data from the top of the print head is placed between them, and the 12th dot is placed in the middle. and 13th, 200th 2
It operates to add a total of three dots at the first intermediate position.

したがって、印字制御部7は、前記ドツト追加部8より
生成される用紙送り方向n’ =27ドツトの印字デー
タの内、上方のn=24ドツトのデータを選択し、通常
文字データと共に第1回目の印字を行う。印字終了後、
第2回目の印字動作に先立って、単位mにおいて3ステ
ツプの用紙送りを実行する(第6図55)。その後、印
字制御部7は、 ドツト追加部8より生成される27ド
ツトの印字データの下方3ドツトを選択し、ヘッド駆動
部11へ転送し印字を行い(第6図56)、その後ホス
ト装置より指定される改行量−3ステツプの用紙送りを
実行しく第6図57)、この行の印字動作を完了する。
Therefore, the print control unit 7 selects the upper n = 24 dot data of the print data of n' = 27 dots in the paper feed direction generated by the dot adding unit 8, and selects the data of the first n = 24 dots along with the normal character data. Perform printing. After printing is finished,
Prior to the second printing operation, paper is fed in three steps in units of m (FIG. 6, 55). Thereafter, the print control section 7 selects the lower three dots of the 27-dot print data generated by the dot addition section 8, transfers them to the head drive section 11 for printing (Fig. 6, 56), and then selects them from the host device. The paper is fed by 3 steps less than the specified line feed amount (Fig. 6, 57), and the printing operation for this line is completed.

以上説明した各部の動作による印字結果と、各行バッフ
ァに格納される印字データとの対応を第8図に示す。第
8図(a)、 (b)、  (C)は、印字行中にドツ
トを補正しない場合の各行バッファに格納される印字デ
ータ301,302と印字結果303の対応を示す図で
ある。また、第8図(d)、 (e)は、印字行中にド
ツトを補正し印字するデータが存在する場合の、各行バ
ッファに格納される印字データを示し、更に、第8図(
f)(g)はそれぞれ第1回目、第2回目の印字結果3
04,305を示す図である。
FIG. 8 shows the correspondence between the printing results obtained by the operations of each section described above and the printing data stored in each line buffer. FIGS. 8(a), 8(b), and 8(c) are diagrams showing the correspondence between print data 301, 302 stored in each line buffer and a print result 303 when dots in a print line are not corrected. FIGS. 8(d) and 8(e) show print data stored in each line buffer when there is data to correct and print dots in a print line, and FIG.
f) (g) are the first and second printing results 3 respectively
04,305.

[発明の効果] 以上説明したように、本発明においては、ドツト追加手
段により、異なる印字ヘッドを有するシリアルプリンタ
用に作成された印字データを、ドツトを追加し補正しな
がら印字することで、用紙送り方向に関して同様の印字
結果を得ることが出来るほか、ドツト追加をすべき印字
データか否かを判別する手段をも具備したことにより、
不必要に印字回数を増す事なく良好印字結果を得ること
が出来る。
[Effects of the Invention] As explained above, in the present invention, the dot adding means prints print data created for a serial printer having a different print head while adding dots and correcting the print data, thereby improving paper feed. In addition to being able to obtain similar printing results in terms of direction, it is also equipped with a means to determine whether or not the printing data should be added with dots.
Good printing results can be obtained without unnecessarily increasing the number of printings.

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

第1図は、本発明の構成を示す図、 第2図(a)、(b)は、印字素子をそれぞれm、m’
の間隔で配置した印字ヘッドを示す図、第3図(a)、
  (b)、  (c)は、従来技術での印字例を示す
図、 第4図は、本発明のシリアルプリンタの構成を示す図、 第5図は、印字データ判別手段の動作を示す図、第6図
は、印字指令入力時の動作を示す図、第7図は、ドツト
追加手段の動作を示す図、第8図(a)、  (b)、
(c)、  (d)、(e)(f)、  (g)は、本
発明に於ける印字例を示す図である。 以  」ニ
FIG. 1 is a diagram showing the configuration of the present invention, and FIGS. 2(a) and (b) show printing elements m and m', respectively.
FIG. 3(a) is a diagram showing print heads arranged at intervals of
(b) and (c) are diagrams showing printing examples in the prior art; FIG. 4 is a diagram showing the configuration of the serial printer of the present invention; FIG. 5 is a diagram showing the operation of the print data discrimination means; FIG. 6 is a diagram showing the operation when a printing command is input, FIG. 7 is a diagram showing the operation of the dot adding means, and FIGS. 8(a), (b),
(c), (d), (e), (f), and (g) are diagrams showing printing examples in the present invention. ” ni

Claims (1)

【特許請求の範囲】[Claims] 垂直方向にn個の印字素子をmなる間隔をおいて有し、
1回のキャリッジ走査によって垂直方向に幅nmの印字
をおこなう印字ヘッドを有するシリアルプリンタにおい
て、ホスト装置より転送される1回のキャリッジ走査に
よって垂直方向に幅nm’(ただし、m<m’)の印字
をおこなうべき印字データを、補正し印字すべき印字デ
ータか否かを印字データ判別手段によって判別し、前記
印字データ判別手段により判別されるそれぞれの印字デ
ータを別々に格納する2つのデータ格納手段を有し、さ
らに前記一方の格納手段に格納される垂直方向に補正し
印字すべき印字データに対し、垂直方向に印字データを
追加するドット追加手段と、ホスト装置より転送される
一行分の印字データを、複数行に分割して印字を行う印
字制御手段とを具備したことを特徴とするシリアルプリ
ンタ。
having n printing elements spaced apart by m in the vertical direction;
In a serial printer that has a print head that prints a width of nm in the vertical direction with one carriage scan, a print with a width of nm'(m<m') in the vertical direction is performed by one carriage scan transferred from the host device. Two data storage means for correcting print data to be printed and determining whether or not the print data is to be printed by a print data determining means, and separately storing each print data determined by the print data determining means. dot adding means for adding print data in the vertical direction to the print data to be corrected and printed in the vertical direction stored in one of the storage means, and one line of printing transferred from the host device. 1. A serial printer comprising: printing control means for printing data by dividing it into a plurality of lines.
JP2587990A 1990-02-05 1990-02-05 serial printer Pending JPH03230973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2587990A JPH03230973A (en) 1990-02-05 1990-02-05 serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2587990A JPH03230973A (en) 1990-02-05 1990-02-05 serial printer

Publications (1)

Publication Number Publication Date
JPH03230973A true JPH03230973A (en) 1991-10-14

Family

ID=12178069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2587990A Pending JPH03230973A (en) 1990-02-05 1990-02-05 serial printer

Country Status (1)

Country Link
JP (1) JPH03230973A (en)

Similar Documents

Publication Publication Date Title
JP3245957B2 (en) Ink jet recording apparatus and recording method
EP0730246B1 (en) Method of transitioning between ink jet printing modes
JPH02233275A (en) Bidirectional graphic print method
JP2003502176A (en) Method of printing with an ink jet printer using multiple carriage speeds
US6604804B2 (en) Print on two pages concurrently
US20030184609A1 (en) Method of ink jet printing with improved end of page printing
JPH03230973A (en) serial printer
JPH09123527A (en) Recorder and recording data processing method
JP2009078449A (en) Printing method of bar code and printer apparatus
JP3446906B2 (en) Host for supplying data to recording apparatus and method for supplying data
JPH07256933A (en) Image recorder
JP3165346B2 (en) Serial printer
JP3232882B2 (en) Serial printer, printer control device, and serial printer printing method
JP3030833B2 (en) High-speed printing method of dot line printer
JP2836026B2 (en) Printing control device
JP2844731B2 (en) Print data processing device
JP3003266B2 (en) Serial printer
US6328396B1 (en) Combining multiple printmodes into a single carriage sweep
JPH0825313B2 (en) Print control device
JP2551792B2 (en) Recording system of recorder
JP2703640B2 (en) Printing method of printer
JPH0358316B2 (en)
JPS62240553A (en) Recorder
JP2022185869A (en) Image recording device, control method and program
JP3841216B2 (en) Recording system