JPH1016300A - Printing pitch correcting method for printer - Google Patents

Printing pitch correcting method for printer

Info

Publication number
JPH1016300A
JPH1016300A JP19537996A JP19537996A JPH1016300A JP H1016300 A JPH1016300 A JP H1016300A JP 19537996 A JP19537996 A JP 19537996A JP 19537996 A JP19537996 A JP 19537996A JP H1016300 A JPH1016300 A JP H1016300A
Authority
JP
Japan
Prior art keywords
character
printing
print
dot
pitch
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
JP19537996A
Other languages
Japanese (ja)
Inventor
Yuji Urushida
裕治 漆田
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.)
Shinko Seisakusho KK
Original Assignee
Shinko Seisakusho KK
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 Shinko Seisakusho KK filed Critical Shinko Seisakusho KK
Priority to JP19537996A priority Critical patent/JPH1016300A/en
Publication of JPH1016300A publication Critical patent/JPH1016300A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Abstract

PROBLEM TO BE SOLVED: To conduct a printing pitch correcting operation without affecting the printing processing speed by subtracting a printing starting position painter for one dot when a printing pitch error accumulated and retained for each character reaches a value larger than one dot so as to displace the printing position of character data by one dot. SOLUTION: A CPU 2 of a printer 1 awaits printing data and printing command information dispatched from a host position 10. Subject to the receipt, the printing command information is analyzed and stored in a buffer 51. The left margin amount is set by a pitch unit of an ANK character. Judgment is made on whether or not data for one line have been received. If the judgment result is negative, it remains in a waiting state for data. On the other hand, the result is positive, an area for developing the printing data is ensured in a certain area in a RAM 5 according to the printing command information so that the received printing data are developed in the certain area for each one character. A printing pitch correcting processing and an error accumulating processing are conducted for each one character.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、印字ヘッドを行方
向に移動させて印字動作を行うドットマトリックス方式
のプリンタにおいて、文字ピッチの設定値に応じて生じ
る印字ピッチの誤差を補正する印字ピッチ補正方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dot matrix type printer which performs a printing operation by moving a print head in a row direction and corrects a printing pitch error generated according to a set value of a character pitch. About the method.

【0002】[0002]

【従来の技術】従来からドットインパクト方式又は感熱
式の印字ヘッドを行方向に移動させて印字動作を行うド
ットマトリックス方式のプリンタがある。このようなプ
リンタにおいては、1インチの範囲に印字するドット数
(以下、ドット密度という)Di dpi(Dots Per Inch)
は、印字ヘッドのドットピッチによって定まる。一方、
1インチの範囲に印字する文字数(以下、文字ピッチと
いう)Cp cpi(Character Per Inch)は、印字仕様に応
じて任意に設定されるようになっている。ここで、1つ
の文字を印字するために必要なドット数(以下、文字ド
ット数)Cdは、次の式(1)で定義される。 Cd=Di/Cp (1) 例えば、ドット密度Diを180dpi ,文字ピッチCp
を10cpi とすれば、式(1)により、文字ドット数C
dは18ドット/文字となる。また、Di=180dpi
,Cp=12cpi とすれば、式(1)により、Cd=
15ドット/文字となる。プリンタは、このようにして
設定された文字ドット数Cdに基づいて印字動作を行っ
ている。
2. Description of the Related Art Conventionally, there is a dot matrix type printer which performs a printing operation by moving a dot impact type or thermal type print head in a row direction. In such a printer, the number of dots to be printed in a range of 1 inch (hereinafter referred to as dot density) Di dpi (Dots Per Inch)
Is determined by the dot pitch of the print head. on the other hand,
The number of characters (hereinafter referred to as a character pitch) Cpcpi (Character Per Inch) to be printed in a range of one inch is arbitrarily set according to the printing specifications. Here, the number of dots Cd required to print one character (hereinafter, the number of character dots) Cd is defined by the following equation (1). Cd = Di / Cp (1) For example, the dot density Di is set to 180 dpi, and the character pitch Cp is set.
Is 10 cpi, the number of character dots C
d is 18 dots / character. Also, Di = 180dpi
, Cp = 12 cpi, Cd =
It becomes 15 dots / character. The printer performs a printing operation based on the number of character dots Cd set in this way.

【0003】ところが、文字ピッチCpによっては、文
字ドット数Cdが整数とならずに、小数点以下の端数を
生じるときがある。例えば、ドット密度Diが180dp
i であるときに、文字ピッチCpを13cpi にした場合
には、計算上の文字ドット数Cdは、13.8ドット/
文字となり、小数点以下の端数(実際には小数点2位以
下の端数があるが省略している)が生じる。小数点以下
の端数を含む文字ドット数に基づいて印字動作を行うこ
とは不可能であるため、文字ドット数Cdに端数が生じ
た場合には、その端数を切り上げてあるいは切り捨て
て、文字ドット数Cd(この例では14ドット/文字)
に基づいて印字を行わざるを得ない。
However, depending on the character pitch Cp, the number of character dots Cd may not be an integer but may be a fraction below the decimal point. For example, if the dot density Di is 180 dp
When the character pitch Cp is set to 13 cpi when i, the calculated character dot number Cd is 13.8 dots /
It becomes a character and a fraction after the decimal point (actually, there is a fraction below the second decimal place but omitted). Since it is impossible to perform a printing operation based on the number of character dots including the fraction below the decimal point, if a fraction occurs in the number of character dots Cd, the fraction is rounded up or down to obtain the number of character dots Cd. (14 dots / character in this example)
Printing must be performed based on the

【0004】プリンタに印字データを与える上位装置
は、プリンタの最大印字幅の範囲に印字する印字データ
を生成する際に、1行あたりの文字数を計算上の文字ピ
ッチCpに基づいて決定する。このため、計算上の文字
ピッチに小数点以下の端数が含まれている場合には、上
位装置からプリンタに与えられる1行分の文字数と、プ
リンタで印字し得る1行分の文字数とが一致せず、プリ
ンタに与えられる印字データの一部が印字されないとい
う不都合を生じることがある。例えば、プリンタの印字
ヘッドのドット密度Diが180dpi である場合に、文
字ピッチCpが13cpi に設定されていれば、計算上の
文字ドット数Cdは13.8ドット/文字となる。ここ
で、プリンタは、文字ドット数Cdを例えば14ドット
/文字の単位で印字せざるを得ないので、1文字につい
て14−13.8=0.2ドット分の印字ピッチの誤差
が生じる。プリンタの最大印字幅が960ドットである
場合には、計算上の文字ドット数を13.8ドット/文
字とすれば、1行について960/13.8=69文字
の印字データが印字できるはずである。ところが、実際
にプリンタで印字できる文字は、実際の文字ドット数が
14ドット/文字であるから、1行について960/1
4=68文字しか印字できない。つまり、上位装置が文
字ピッチ13cpi を前提として、1行分の印字データ6
9文字を送出したとしても、プリンタは、68文字しか
印字することができず、最後の1文字分の印字を行うこ
とができない。
[0004] When generating print data to be printed in the range of the maximum print width of the printer, a higher-level device that supplies print data to the printer determines the number of characters per line based on the calculated character pitch Cp. For this reason, when the calculated character pitch includes a fractional part below the decimal point, the number of characters for one line given to the printer from the host device matches the number of characters for one line printable by the printer. In some cases, there is a problem that a part of the print data given to the printer is not printed. For example, if the dot density Di of the print head of the printer is 180 dpi and the character pitch Cp is set to 13 cpi, the calculated character dot number Cd is 13.8 dots / character. Here, the printer must print the number of character dots Cd in units of, for example, 14 dots / character, so that a printing pitch error of 14-13.8 = 0.2 dots occurs for one character. If the maximum print width of the printer is 960 dots, and if the calculated number of character dots is 13.8 dots / character, 960 / 13.8 = 69 characters of print data per line should be printable. is there. However, the characters that can be actually printed by the printer are 960/1 per line because the actual number of character dots is 14 dots / character.
4 = Only 68 characters can be printed. In other words, the host device assumes that the character pitch is 13 cpi and the print data 6 for one line
Even if nine characters are sent out, the printer can print only 68 characters, and cannot print the last one character.

【0005】このような不都合を解消するためには、計
算上の文字ドット数に対応した印字が行えるように、印
字ピッチを補正することが必要となる。従来は、プリン
タにおける1行の印字期間中に印字ヘッドの移動速度を
1文字分の印字時間に相当する分だけ遅らせることによ
り、上位装置から送出される1行分の印字データを全て
印字するようにした印字ピッチ補正方法が採用されてい
る。
In order to eliminate such inconvenience, it is necessary to correct the printing pitch so that printing corresponding to the calculated number of character dots can be performed. Conventionally, during the printing period of one line in a printer, the moving speed of the print head is delayed by an amount corresponding to the printing time of one character, so that all the printing data of one line sent from the host device is printed. The printing pitch correction method described above is adopted.

【0006】[0006]

【発明が解決しようとする課題】ところが、上述した従
来の印字ピッチ補正方法においては、印字ヘッドの移動
速度を遅延させるので、プリンタの印字処理速度が低下
してしまう欠点が生じる。しかも、このような補正動作
を行う場合には、文字ピッチCpが大きいほど、すなわ
ち文字ドット数Cdが大きいほど、1文字分の印字時間
が長くなるので、印字ヘッドの移動速度を遅らせる時間
も長くなってしまい、印字処理速度がより低下してしま
うという問題が生じる。本発明は、このような事情に基
づいてなされたもので、その目的は、印字処理速度に影
響を与えずに印字ピッチ補正動作を行うプリンタを提供
することにある。
However, in the above-described conventional printing pitch correction method, since the moving speed of the print head is delayed, there is a disadvantage that the printing processing speed of the printer is reduced. In addition, when such a correction operation is performed, as the character pitch Cp is larger, that is, as the number of character dots Cd is larger, the printing time for one character is longer, so that the time for delaying the moving speed of the print head is longer. This causes a problem that the printing processing speed is further reduced. The present invention has been made in view of such circumstances, and an object of the present invention is to provide a printer that performs a print pitch correction operation without affecting a print processing speed.

【0007】[0007]

【課題を解決するための手段】本発明は、印字ヘッドを
行方向に移動させて印字動作を行うドットマトリックス
方式のプリンタにおいて、単位寸法あたりのドット数で
示される前記印字ヘッドのドット密度をDiとし、単位
寸法あたりに印字する文字数で示される文字ピッチをC
pとした場合に、1つの文字を印字するために必要なド
ット数で示される文字ドット数Cd(ただしCd=Di
/Cp)に小数点以下の端数が生じる場合に、その端数
により生じる印字ピッチ誤差を補正する印字ピッチ補正
方法であって、上位装置から送出される印字データによ
って指定される文字の横幅によって決定される印字ピッ
チ誤差を1文字づつ累積して保持する誤差累積処理と、
前記印字ピッチ誤差の累積値が1ドット以上の値に到達
したか否かを判定し、その判定結果が肯定ならば、印字
媒体に対する前記印字データの印字開始位置を示す印字
開始位置ポインタを1ドット減算するとともに、前記印
字ピッチ誤差の累積値から1ドット減算した後、前記誤
差累積処理に移行し、前記判定結果が否定ならば、前記
誤差累積処理に戻る印字ピッチ補正処理とを、1行の印
字動作期間中1文字単位で繰り返して実行することを特
徴としている。上記方法によれば、1文字毎に印字ピッ
チ誤差が累積して保持され、その累積値が1ドット以上
の値に到達したときに、印字開始位置ポインタが1ドッ
ト分減算されることにより、文字データの印字位置が1
ドット分だけずらされて、1ドット分の印字ピッチの誤
差が補正される。
SUMMARY OF THE INVENTION The present invention relates to a dot matrix type printer for performing a printing operation by moving a print head in a row direction, wherein the dot density of the print head represented by the number of dots per unit size is represented by Di. And the character pitch indicated by the number of characters printed per unit dimension is C
In the case of p, the number of character dots Cd indicated by the number of dots required to print one character (where Cd = Di
/ Cp) for correcting a printing pitch error caused by a fraction below a decimal point, which is determined by the width of a character specified by printing data sent from a host device. Error accumulation processing for accumulating and holding the printing pitch error one character at a time;
It is determined whether or not the cumulative value of the print pitch error has reached a value of 1 dot or more. If the determination result is affirmative, a print start position pointer indicating the print start position of the print data on the print medium is set to 1 dot. After subtracting one dot from the cumulative value of the print pitch error, the process proceeds to the error accumulation process. If the determination result is negative, the print pitch correction process returns to the error accumulation process. It is characterized in that it is repeatedly executed for each character during the printing operation. According to the above method, the print pitch error is accumulated and held for each character, and when the accumulated value reaches a value of one dot or more, the print start position pointer is decremented by one dot, whereby the character is printed. Data print position is 1
The printing pitch is shifted by the amount corresponding to one dot, and the error of the printing pitch for one dot is corrected.

【0008】本発明は、1行の印字動作の開始時点にお
いて、上位装置から送出される印字コマンド情報に基づ
いてレフトマージンポインタにセットされるレフトマー
ジン量により生じる印字ピッチ誤差が1ドット以上の値
か否かを判定し、その判定結果が肯定ならば、印字開始
位置ポインタを前記印字ピッチ誤差から小数点以下の値
を切り捨てた値に相当するドット数だけ減算した後に誤
差累積処理に移行し、前記判定結果が否定ならば、その
まま誤差累積処理に移行することを特徴としている。上
記方法によれば、1行毎に設定されるレフトマージンに
よって生じる印字ピッチ誤差についても補正がなされ
る。
According to the present invention, at the start of a one-line printing operation, a print pitch error caused by a left margin amount set in a left margin pointer based on print command information sent from a host device is a value of one dot or more. If the determination result is affirmative, the printing start position pointer is subtracted from the printing pitch error by the number of dots corresponding to the value obtained by rounding down the value after the decimal point, and then the process proceeds to error accumulation processing. If the determination result is negative, the process directly proceeds to the error accumulation processing. According to the above method, a correction is also made for a print pitch error caused by a left margin set for each line.

【0009】本発明は、印字ピッチ誤差の累積値を最小
幅の文字単位に換算して取り扱うことを特徴としてい
る。上記方法によれば、印字ピッチ誤差を最小幅の文字
単位に換算して取り扱うので、小数点以下の数値となる
印字ピッチ誤差を扱う必要がなくなり、数値処理が簡素
化される。
The present invention is characterized in that the cumulative value of the printing pitch error is handled by being converted into a minimum width character unit. According to the above method, since the print pitch error is handled by converting it to a character unit having the minimum width, it is not necessary to handle the print pitch error having a value below the decimal point, and the numerical processing is simplified.

【0010】[0010]

【発明の実施の形態】次に、本発明について図面を参照
して説明する。図1は、本発明の印字ピッチ補正方法を
使用するプリンタの構成の一例を示すブロック図であ
る。プリンタ1は、上位装置10から送出される印字デ
ータに基づいて印字動作を行う。CPU2は、以下の各
部に対する制御を行う。ROM3は、CPU1の制御プ
ログラム等を格納している。フォントROM4は、印字
データとしてのフォントデータを格納している。
Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an example of the configuration of a printer using the print pitch correction method of the present invention. The printer 1 performs a printing operation based on print data transmitted from the host device 10. The CPU 2 controls the following units. The ROM 3 stores a control program for the CPU 1 and the like. The font ROM 4 stores font data as print data.

【0011】RAM5は、上位装置10から送出される
印字コマンド情報を格納するためのバッファ51と、後
述する印字ピッチ誤差の累積値に相当する値を計数する
ための累積カウンタ52と、印字時における左側余白量
(レフトマージン量)を保持するレフトマージンポイン
タ(以下LMポインタという)53と、印字媒体上に印
字データ(フォントデータ)を印字出力する際の印字媒
体上における印字位置をドット単位で保持して管理する
ための印字開始位置ポインタ54とを備えている。な
お、レフトマージン量及び印字位置の原点は、印字媒体
上の左端位置に相当する。
The RAM 5 includes a buffer 51 for storing print command information sent from the host device 10, a cumulative counter 52 for counting a value corresponding to a cumulative value of a print pitch error described later, A left margin pointer (hereinafter referred to as an LM pointer) 53 for holding a left margin amount (left margin amount), and a printing position on a printing medium for printing out print data (font data) on a printing medium in dot units. And a print start position pointer 54 for managing the data. Note that the left margin amount and the origin of the print position correspond to the left end position on the print medium.

【0012】上記印字コマンド情報は、上位装置10か
らプリンタ1に印字データとともに送出される情報であ
って、1行分の印字データをRAM5の所定領域に展開
するために必要な情報である1行分の印字データの量、
当該行におけるレフトマージン量、及びその他印字動作
に必要な情報を含んで構成されている。
The print command information is information sent together with print data from the host device 10 to the printer 1, and is information necessary for developing one line of print data in a predetermined area of the RAM 5. Print data amount,
The information includes a left margin amount in the line and other information necessary for a printing operation.

【0013】また、上記LMポインタ53で管理される
レフトマージン量は、1行分の印字動作の開始前に上記
印字コマンド情報に基づいて更新されるようになってお
り、印字開始位置ポインタ54で管理される印字開始位
置は、1文字ごとに更新されるようになっている。
The left margin amount managed by the LM pointer 53 is updated based on the print command information before the start of one line printing operation. The managed print start position is updated for each character.

【0014】通信部6は、上位装置10から与えられる
印字データ及び印字コマンド情報を受信するとともに、
所定の応答データを上位装置に送信するものである。印
字部7は、ドットインパクト方式又は感熱式の印字ヘッ
ド(図示せず)を行方向に移動させて印字動作を行うも
のである。搬送部8は、印字媒体の搬送を行うものであ
る。
The communication unit 6 receives print data and print command information provided from the host device 10, and
This is for transmitting predetermined response data to the host device. The printing unit 7 performs a printing operation by moving a dot impact type or thermal type print head (not shown) in the row direction. The transport unit 8 transports a print medium.

【0015】図2(a)〜図2(d)は、このプリンタ
によって印字される各文字の横幅を示す説明図である。
なお、縦サイズHは、いずれの文字種も24ドットであ
る。図2(a)は、通常のANK文字(Alphabetic Nume
tric Kana)及びハーフピッチ横倍角文字を示しており、
この実施の形態では横幅Wが14ドットで構成されてい
る。図2(b)は、通常の漢字及びANK文字の横倍角
文字のドット構成である。上記図2(a)のANK文字
の2倍の横幅であるため、横幅Wが28ドットで構成さ
れている。図2(c)は、ANK文字の半角文字(ハー
フピッチ)及びハーフスペースのドット構成である。横
幅が7ドットで構成される。図2(d)は、漢字の横倍
角文字のドット構成である。横幅Wが56ドットで構成
される。
FIGS. 2A to 2D are illustrations showing the width of each character printed by the printer.
The vertical size H is 24 dots for all character types. FIG. 2A shows a normal ANK character (Alphabetic Nume).
tric Kana) and half-pitch double-width characters.
In this embodiment, the width W is 14 dots. FIG. 2B shows a dot configuration of double-width characters of normal kanji and ANK characters. Since the width is twice the width of the ANK character in FIG. 2A, the width W is configured by 28 dots. FIG. 2C shows a dot configuration of half-width characters (half pitch) of ANK characters and half spaces. The width is composed of 7 dots. FIG. 2D shows a dot configuration of a double-width Chinese character. The width W is composed of 56 dots.

【0016】図2(c)に示すように、このプリンタで
印字し得る最小の横幅Wは、7ドットである。ここで、
図2(c)に示した最小文字(ANK文字の半角文字及
びハーフスペースの横幅を1単位とすれば、図2(a)
のANK文字及びハーフピッチ横倍角文字は2単位、図
2(b)の漢字及びANK文字の横倍角文字は4単位、
図2(d)の漢字の横倍角文字は8単位となる。すなわ
ち、どの文字も、最小文字の横幅の整数倍の横幅となる
ように構成されている。後述するように、図1のRAM
5の累積カウンタ54は、最小文字の横幅を1単位とし
て、1行中に含まれる文字数の累積値を計数するように
なっている。この文字数の累積値は、後で説明するよう
に、印字ピッチ誤差の累積値に対応している。
As shown in FIG. 2C, the minimum width W that can be printed by this printer is 7 dots. here,
Assuming that the width of the smallest character (half-width character of ANK character and half space) shown in FIG. 2C is one unit, FIG.
ANK characters and half-pitch double-width characters are 2 units, and Kanji and ANK characters in FIG. 2B are 4 units.
The double-width character of the kanji in FIG. 2D is 8 units. That is, each character is configured to have a width that is an integral multiple of the width of the minimum character. As described later, the RAM of FIG.
The accumulation counter 54 of 5 counts the accumulated value of the number of characters included in one line, with the width of the minimum character as one unit. This cumulative value of the number of characters corresponds to the cumulative value of the printing pitch error, as described later.

【0017】表1〜表3は、文字ピッチの補正状態を示
す表である。プリンタの印字ヘッドのドット密度Diを
180dpi とし、文字ピッチCpを13cpi とした場合
において、通常のANK文字(図2(a))のみで印字
した状態を表1に示し、漢字(ANK文字の倍角)のみ
で印字した状態を表2に示し、ハーフピッチ(半角)の
みで印字した状態を表3に示す。各升目はそれぞれ1文
字に対応している。
Tables 1 to 3 are tables showing the correction state of the character pitch. When the dot density Di of the print head of the printer is set to 180 dpi and the character pitch Cp is set to 13 cpi, the state of printing with only normal ANK characters (FIG. 2A) is shown in Table 1. ) Is shown in Table 2, and the state printed only at half pitch (half-width) is shown in Table 3. Each cell corresponds to one character.

【表1】 [Table 1]

【表2】 [Table 2]

【表3】 [Table 3]

【0018】補正無しの累積ドット数A1は、印字ピッ
チ補正動作を行わない場合の印字ドット数の累積値を示
す。計算上の累積ドット数A2は、小数点以下の端数を
含む文字ドット数Cdでの印字ドット数の累積値を示
す。補正した累積ドット数A3は、本発明方法による補
正を行う場合の印字ドット数の累積値を示す。印字ピッ
チ誤差累積値Bは、計算上の累積ドット数A2と補正し
た累積ドット数A3との差である。累積カウンタの計数
値Cは、先に説明した最小幅の文字を1単位として換算
した場合の文字数の計数値であり、後述するように1文
字当たりの印字ピッチ誤差を最小横幅の文字数に置き換
えた数値を示している。図1で示したRAM5の累積カ
ウンタ52の計数値を示す。したがって、1文字目、2
文字目、3文字目、…の順番で各累積ドット数A1〜A
3、印字ピッチ誤差の累積値B、及び累積カウンタ52
の累積値Cはそれぞれ加算されていく。
The cumulative dot count A1 without correction indicates the cumulative value of the print dot count when the print pitch correction operation is not performed. The calculated cumulative dot number A2 indicates the cumulative value of the number of print dots in the number of character dots Cd including a fraction below the decimal point. The corrected cumulative dot number A3 indicates the cumulative value of the number of print dots when correction is performed by the method of the present invention. The print pitch error cumulative value B is the difference between the calculated cumulative dot number A2 and the corrected cumulative dot number A3. The count value C of the cumulative counter is a count value of the number of characters when the previously described minimum width character is converted into one unit, and the printing pitch error per character is replaced with the minimum width character number as described later. Shows numerical values. 3 shows a count value of an accumulation counter 52 of the RAM 5 shown in FIG. Therefore, the first character, 2
The cumulative dot numbers A1 to A in the order of the third character, the third character,.
3. Cumulative value B of print pitch error and cumulative counter 52
Are added.

【0019】表1を例にとって説明すると、ANK文字
1つ当たりの累積ドット数A1が14ドットで、計算上
の累積ドット数A2が13.8ドットであるから、1文
字あたりの印字ピッチ誤差Epは、両者の差である0.
2ドットとなる。以下、印字ピッチ誤差の累積値Cは、
文字数が1文字づつ増えるにつれて0.2ドット単位で
増加するが、5文字目でちょうど1ドットに到達する。
つまり、5文字目において、補正動作を行わない場合の
累積ドット数A1は、14ドットの5文字分の70ドッ
トである。ここで、対応する計算上の累積ドット数A2
は、13.8ドットの5文字分の69ドットとなってお
り、印字ピッチ誤差Epは1ドットになっている。
Taking Table 1 as an example, the cumulative dot number A1 per ANK character is 14 dots, and the calculated cumulative dot number A2 is 13.8 dots. Is the difference between the two.
It becomes 2 dots. Hereinafter, the cumulative value C of the printing pitch error is
As the number of characters increases by one character, the number increases in units of 0.2 dots. However, the fifth character reaches exactly one dot.
That is, in the fifth character, the cumulative dot number A1 when the correction operation is not performed is 70 dots for five 14 characters. Here, the corresponding calculated cumulative dot number A2
Is 69 dots for 5 characters of 13.8 dots, and the print pitch error Ep is 1 dot.

【0020】したがって、印字動作の過程において、5
文字目の1ドット目の位置を4文字目の14ドット目に
1ドット分だけ補正することにより、表1中に*(アス
タリスク)の符号を付したように、5文字目の累積ドッ
ト数を計算上の累積ドット数A2と同じにすることがで
きる。このように、印字ピッチ誤差の累積値Cが丁度1
ドット以上2ドット未満の値に到達したときに、1ドッ
ト分の補正動作を行うことによって、印字ピッチ誤差を
1ドットの単位で補正することができる。
Therefore, in the course of the printing operation, 5
By correcting the position of the first dot of the character by one dot to the fourteenth dot of the fourth character, as indicated by the symbol * (asterisk) in Table 1, the cumulative number of dots of the fifth character is It can be the same as the calculated cumulative dot number A2. Thus, the accumulated value C of the print pitch error is just 1
By performing a correction operation for one dot when the value reaches a value equal to or larger than a dot and smaller than two dots, a printing pitch error can be corrected in units of one dot.

【0021】1文字あたりの印字ピッチ誤差Epは、そ
の文字の横幅に比例した値となる。したがって、印字し
ようとする文字のそれぞれの印字ピッチ誤差の累積値が
1ドット以上に到達したか否かを判定し、その判定結果
が肯定であるときに補正動作を実行すればよい。
The printing pitch error Ep per character is a value proportional to the width of the character. Therefore, it is determined whether or not the accumulated value of the printing pitch errors of the characters to be printed has reached one dot or more, and the correction operation may be performed when the determination result is affirmative.

【0022】ここで、小数点以下の数値で示される印字
ピッチ誤差をそのままの形式で取り扱うと、数値処理が
繁雑となる不都合が生じるので、印字ピッチ誤差を最小
横幅の文字の単位に置換(換算)して累積カウンタ値C
で計数することにより、印字ピッチ誤差を整数で取り扱
ってその処理を簡素化している。
Here, if the printing pitch error represented by a numerical value after the decimal point is handled as it is, there is an inconvenience that the numerical processing becomes complicated. Therefore, the printing pitch error is replaced (converted) into a character unit having the minimum width. And the cumulative counter value C
, The printing pitch error is treated as an integer and the processing is simplified.

【0023】この実施の形態では、最小横幅の文字(ハ
ーフピッチ)の計算上の文字ドット数が6.9ドットと
なり、実際の文字ドット数が7ドットとなるため、上記
最小横幅の文字の印字ピッチ誤差が0.1ドットにな
る。つまり、最小横幅の文字10文字分で印字ピッチ誤
差1ドットに相当するから、最小横幅の文字を1単位と
して、累積カウンタ52によって計数し、この累積値C
が10単位以上に到達したときに、丁度印字ピッチ誤差
が1ドットに到達しているので、1ドットの補正動作を
行うようにすればよい。そして、このような印字ピッチ
補正動作の結果、補正された累積ドット数が補正累積ド
ット数A3として示されている。なお、1ドット分の補
正が行われた部分には*の符号を付してある。なお、表
2及び表3は、横幅のドット数が異なる文字について、
表1と同じように示したものであるため、その説明は省
略する。
In this embodiment, the number of character dots in the calculation of the character having the minimum width (half pitch) is 6.9, and the actual number of character dots is 7; The pitch error becomes 0.1 dots. That is, since the printing pitch error is one dot for the 10 characters having the minimum width, the accumulation counter 52 counts the characters having the minimum width as one unit.
Since the print pitch error has just reached one dot when the number of dots reaches 10 units or more, the correction operation of one dot may be performed. Then, as a result of such a print pitch correction operation, the corrected cumulative dot number is indicated as a corrected cumulative dot number A3. In addition, the part where the correction for one dot is performed is denoted by the symbol *. Tables 2 and 3 show that characters with different numbers of horizontal dots
Since it is shown in the same manner as in Table 1, its description is omitted.

【0024】図3は、ANK文字のドット構成の説明図
であり、図3(a)に示すように、ANK文字の横幅1
4ドットの内、実際に印字される領域(印字領域)が9
ドット設定されており、その右側には文字間の余白とし
て斜線で示される印字されない領域(余白領域)が5ド
ットとなるように設定されている。したがって、図3
(b)に示すように、補正動作の際に、当該文字Cnの
14ドット目(余白領域)に次の文字Cn+1の1ドッ
ト目(印字領域)が重なり合っても問題が生じることは
ない。なお、ANK文字以外の文字であっても、その右
側には必ず1ドット以上の余白領域が設定されているの
で、1ドット分の重なりによる問題が生じることはな
い。
FIG. 3 is an explanatory diagram of the dot structure of the ANK character. As shown in FIG.
Of the 4 dots, the area actually printed (print area) is 9
Dots are set, and on the right side, an unprinted area (margin area) indicated by oblique lines as a margin between characters is set to 5 dots. Therefore, FIG.
As shown in (b), there is no problem even if the first dot (print area) of the next character Cn + 1 overlaps with the 14th dot (margin area) of the character Cn during the correction operation. Note that even for characters other than the ANK character, a blank area of one dot or more is always set on the right side of the character, so that there is no problem due to the overlap of one dot.

【0025】図4は、印字処理の概略フローチャートで
あり、図5は、印字ピッチ補正処理を示すフローチャー
トであり、図6は、誤差累積処理を示すフローチャート
である。まず、図4を参照して印字処理の概略動作を説
明する。プリンタ1のCPU2は、上位装置10から送
信される印字データ及び印字コマンド情報を待機してお
り(ステップS1)、印字データ及び印字コマンド情報
を受信すると、その印字コマンド情報を解析してバッフ
ァ51に格納する(ステップS2)。なお、この実施の
形態では、レフトマージン量は、ANK文字のピッチの
単位で設定されるようになっている。
FIG. 4 is a schematic flowchart of the printing process, FIG. 5 is a flowchart showing the printing pitch correction process, and FIG. 6 is a flowchart showing the error accumulating process. First, the schematic operation of the printing process will be described with reference to FIG. The CPU 2 of the printer 1 waits for print data and print command information transmitted from the host device 10 (step S1). When the print data and print command information are received, the CPU 2 analyzes the print command information and stores it in the buffer 51. It is stored (step S2). In this embodiment, the left margin is set in units of the pitch of the ANK character.

【0026】そして、1行分のデータ、すなわち印字デ
ータ及び印字コマンド情報が受信されたか否かを判定す
る(ステップS3)。この判定結果が否定(“N”)な
らば、ステップS1に移行し、引き続きデータの受信を
待機する。一方、ステップS3の判定結果が肯定
(“Y”)ならば、上記印字コマンド情報に従ってRA
M5の所定領域に印字データを展開するための領域を確
保するとともに、受信した印字データを1文字分ずつ上
記所定領域に展開する(ステップS4)。そして、この
ステップS4の処理中に、1文字分ずつ、次に述べる印
字ピッチ補正処理及び誤差累積処理が実行される。
Then, it is determined whether or not one line of data, that is, print data and print command information has been received (step S3). If the result of this determination is negative ("N"), the process moves to step S1 and waits for data reception. On the other hand, if the determination result of step S3 is affirmative (“Y”), RA is determined according to the print command information.
An area for expanding print data is secured in a predetermined area of M5, and the received print data is expanded in the predetermined area one character at a time (step S4). Then, during the processing in step S4, the following print pitch correction processing and error accumulation processing are executed for each character.

【0027】ステップS4の展開処理が終了すると、展
開された印字データが印字部7に送出され(ステップS
5)、印字部7による印字がなされて(ステップS
6)、1行分の印字動作を終了する。
When the developing process of step S4 is completed, the developed print data is sent to the printing unit 7 (step S4).
5) Printing is performed by the printing unit 7 (Step S)
6) The printing operation for one line is completed.

【0028】次に、図5及び図6を参照して、印字ピッ
チ補正処理及び誤差累積処理を説明する。この印字ピッ
チ補正処理及び誤差累積処理は、前述した図4の印字処
理の印字データ展開中(ステップS4)、1文字ずつの
展開動作の度に実行されるようになっている。まず、図
5を参照して説明すると、CPU2は、1行の印字処理
の実行中か否かを判定する(ステップS10)。ステッ
プS10が否定(“N”)であれば、すなわち、1行分
の印字データの処理開始時点であれば、累積カウンタ5
2を初期化(クリア)する(ステップS11)。次い
で、バッファ51に格納されているレフトマージン量を
ドット数の単位でLMポインタ53にセットする(ステ
ップS12)。そして、セットしたレフトマージン量が
ANK文字で5文字以上か否か、すなわちハーフピッチ
文字10文字以上か否かを判定する(ステップS1
3)。ステップS13が肯定(“Y”)であれば、1ド
ット分の印字ピッチ誤差が生じるから、印字ピッチ補正
を行うために、印字位置開始ポインタ54の値を−1す
る(ステップS14)とともに、LMポインタ53を−
1する(ステップS15)。
Next, the print pitch correction process and the error accumulation process will be described with reference to FIGS. The print pitch correction processing and the error accumulation processing are executed during the development of the print data in FIG. 4 described above (step S4) every time the development operation is performed for each character. First, referring to FIG. 5, the CPU 2 determines whether or not one line printing processing is being executed (step S10). If step S10 is negative ("N"), that is, if the processing of one line of print data is started, the accumulation counter 5
2 is initialized (cleared) (step S11). Next, the left margin amount stored in the buffer 51 is set in the LM pointer 53 in units of the number of dots (step S12). Then, it is determined whether or not the set left margin amount is 5 or more ANK characters, that is, whether or not the half-pitch character is 10 characters or more (step S1).
3). If step S13 is affirmative ("Y"), a printing pitch error of one dot occurs. Therefore, in order to correct the printing pitch, the value of the printing position start pointer 54 is decremented by one (step S14), and LM is also set. Pointer 53
1 (step S15).

【0029】次に、ステップS16の誤差累積処理に移
行する。この誤差累積処理は、上位装置10から送出さ
れる印字データに含まれる横幅をハーフピッチの文字単
位で示される印字ピッチ誤差に換算して累積する処理を
行うものである。以下、誤差累積処理について図6のフ
ローチャートを参照して説明する。
Next, the process proceeds to an error accumulation process in step S16. In the error accumulation process, a process of converting the width included in the print data sent from the host device 10 into a print pitch error represented by a half-pitch character unit and accumulating the error is performed. Hereinafter, the error accumulation processing will be described with reference to the flowchart of FIG.

【0030】なお、上位装置10から送出される文字デ
ータには、当該文字データの横幅のドット数を示すデー
タが含まれている。図6において、当該文字データが横
拡大文字か否かを判定し(ステップS30)、これが肯
定(“Y”)ならば、漢字か否かを判定する(ステップ
S31)。これが、肯定ならば、漢字は、ハーフピッチ
文字8文字分に相当するので、累積カウンタ52を+8
して(ステップS32)、リターンする。ステップS3
1で否定(“N”)ならば、横拡大文字であるため、ハ
ーフピッチ文字4文字分に相当するから、累積カウンタ
52を+4して(ステップS33)、リターンする。一
方、ステップS30で否定(“N”)、すなわち横拡大
文字でなければ、ハーフピッチ横倍角文字か否かを判定
し(ステップS34)、肯定ならば、累積カウンタ52
を+2して(ステップS35)、リターンする。ステッ
プS34で否定ならば、ハーフピッチか否かを判定し
(ステップS36)、肯定(“Y”)ならば、累積カウ
ンタ52を+1して(ステップS37)、リターンす
る。ステップS36で、否定(“N”)ならば、ノーマ
ルANK文字か否かを判定し(ステップS38)、肯定
ならばノーマルANK文字なので、累積カウンタ52を
+2して(ステップS39)、リターンする。ステップ
S38が否定(“N”)ならば、ANK文字の倍角なの
で、累積カウンタ52を+4して(ステップS40)、
リターンする。
The character data sent from the host device 10 includes data indicating the number of dots in the width of the character data. In FIG. 6, it is determined whether or not the character data is a horizontally enlarged character (step S30). If this is affirmative (“Y”), it is determined whether or not the character data is a kanji (step S31). If this is affirmative, the kanji is equivalent to eight half-pitch characters, and the cumulative counter 52 is set to +8.
Then (step S32), the process returns. Step S3
If the answer is 1 (“N”), since the character is a horizontally enlarged character and corresponds to four half-pitch characters, the accumulation counter 52 is incremented by 4 (step S33), and the process returns. On the other hand, if negative ("N") in step S30, that is, if the character is not a horizontally enlarged character, it is determined whether or not it is a half-pitch double-width character (step S34).
Is incremented by 2 (step S35), and the process returns. If negative in step S34, it is determined whether or not the pitch is half pitch (step S36). If affirmative ("Y"), the accumulation counter 52 is incremented by one (step S37), and the process returns. If negative ("N") in step S36, it is determined whether or not the character is a normal ANK character (step S38). If affirmative, since the character is a normal ANK character, the accumulation counter 52 is incremented by 2 (step S39), and the process returns. If the determination in step S38 is negative ("N"), the accumulation counter 52 is incremented by 4 (step S40) because it is a double width of the ANK character.
To return.

【0031】図6の処理から図5のステップS17にリ
ターンすると、累積カウンタ52が10以上の値に到達
したか否かを判定する(ステップS17)。この判定結
果が肯定(“Y”)ならば、印字ピッチ誤差の累積値が
1ドット以上に到達しているので、累積カウンタ52か
ら10を減算し(ステップS18)、印字開始位置ポイ
ンタ54を−1して印字ピッチ誤差を補正して(ステッ
プS19)、図4のステップS3にリターンする。一
方、ステップS17で否定(“N”)ならば、そのまま
ステップS3にリターンする。
Returning from the processing of FIG. 6 to step S17 of FIG. 5, it is determined whether or not the accumulation counter 52 has reached a value of 10 or more (step S17). If the determination result is affirmative ("Y"), the cumulative value of the print pitch error has reached one dot or more, so 10 is subtracted from the cumulative counter 52 (step S18), and the print start position pointer 54 is incremented by-. 1 to correct the printing pitch error (step S19), and return to step S3 in FIG. On the other hand, if negative ("N") in step S17, the process directly returns to step S3.

【0032】以上詳述したように、この実施の形態のプ
リンタの印字ピッチ補正方法によれば、1文字毎に印字
ピッチ誤差の累積値を最小横幅の文字数の単位に換算し
て累積して保持しておき、その累積値が10文字以上の
値に到達したとき、すなわち丁度印字ピッチ誤差が1ド
ット以上の値に到達したときに、印字開始位置ポインタ
を1ドット分減算することによって、印字媒体上におけ
る文字データの印字位置を1ドット分だけずらせること
により、1ドット分の印字ピッチの誤差を補正してい
る。したがって、印字ヘッドのドット密度と文字ピッチ
との組み合わせによって印字される文字ドット数に小数
点以下の端数が生じてしまう場合であっても、印字ピッ
チを適切に補正することができる。しかも、従来方法と
異なり、印字ヘッドの移動速度を遅らせる必要がないの
で、印字処理速度の低下もない。
As described in detail above, according to the printing pitch correction method of the printer of this embodiment, the accumulated value of the printing pitch error is converted into the unit of the number of characters of the minimum width for each character and accumulated and held. In addition, when the accumulated value reaches a value of 10 characters or more, that is, when the print pitch error has just reached a value of 1 dot or more, the print start position pointer is decremented by one dot, thereby printing the print medium. By shifting the print position of the character data above by one dot, the error of the print pitch for one dot is corrected. Therefore, even if the number of character dots printed by the combination of the dot density of the print head and the character pitch has a fraction below the decimal point, the print pitch can be appropriately corrected. In addition, unlike the conventional method, there is no need to slow down the moving speed of the print head, so that there is no reduction in the print processing speed.

【0033】また、1行の印字動作の開始時点におい
て、レフトマージンポインタにセットされているレフト
マージン量により生じる印字ピッチ誤差が1ドット以上
の値か否かを判定し、その判定結果が肯定ならば、印字
開始位置ポインタを1ドット分減算して印字ピッチ誤差
を補正しているので、レフトマージンによる印字ピッチ
誤差についても適切に補正することができる。
At the start of the one-line printing operation, it is determined whether or not the printing pitch error caused by the left margin amount set in the left margin pointer is a value of 1 dot or more. For example, since the print pitch error is corrected by subtracting one dot from the print start position pointer, the print pitch error due to the left margin can be appropriately corrected.

【0034】なお、上述の実施の形態においては、レフ
トマージン量により生じる誤差が1ドットである場合に
ついてのみ説明したが、レフトマージン量により生じる
印字ピッチ誤差が1ドットより大となる場合には、印字
ピッチ誤差から小数点以下の値を切り捨てた値に相当す
るドット数だけ減算して印字ピッチ誤差を補正すればよ
い。
In the above-described embodiment, only the case where the error caused by the left margin amount is one dot has been described. However, if the print pitch error caused by the left margin amount is larger than one dot, The print pitch error may be corrected by subtracting the number of dots corresponding to the value obtained by rounding down the value after the decimal point from the print pitch error.

【0035】また、本発明方法は、印字ヘッドを行方向
に移動して1行づつ印字を行うドットマトリックス方式
のプリンタであれば、その印字ヘッドの形式がインパク
トドット式あるいは感熱式であっても広く適用すること
ができる。
Further, the method of the present invention is applicable to a dot matrix type printer which prints one line at a time by moving the print head in the line direction, even if the type of the print head is an impact dot type or a thermal type. Can be widely applied.

【0036】[0036]

【発明の効果】以上詳述したように、本発明のリンタの
印字ピッチ補正方法によれば、1文字毎に印字ピッチ誤
差の累積値を累積して保持しておき、その累積値が1ド
ット以上の値に到達したときに、印字開始位置ポインタ
を1ドット分減算することにより、文字データの印字位
置を1ドット分だけずらせることにより、1ドット分の
印字ピッチの誤差を補正している。したがって、印字ヘ
ッドのドット密度と文字ピッチとの組み合わせによって
印字される文字ドット数に小数点以下の端数が生じてし
まう場合であっても、印字ピッチを適切に補正すること
ができる。しかも、従来方法と異なり、印字ヘッドの移
動速度を遅らせる必要がないので、印字処理速度の低下
もない。
As described above in detail, according to the printing pitch correcting method for the linter of the present invention, the accumulated value of the printing pitch error is accumulated and held for each character, and the accumulated value is one dot. When the above value is reached, the printing start position pointer is subtracted by one dot, thereby shifting the printing position of the character data by one dot, thereby correcting the printing pitch error of one dot. . Therefore, even if the number of character dots printed by the combination of the dot density of the print head and the character pitch has a fraction below the decimal point, the print pitch can be appropriately corrected. In addition, unlike the conventional method, there is no need to slow down the moving speed of the print head, so that there is no reduction in the print processing speed.

【0037】また、1行の印字動作の開始時点におい
て、レフトマージンポインタにセットされているレフト
マージン量により生じる印字ピッチ誤差が1ドット以上
の値か否かを判定し、その判定結果が肯定ならば、印字
開始位置ポインタを1ドット減算した後に誤差累積処理
に移行し、前記判定結果が否定ならば、そのまま誤差累
積処理に移行する場合には、1行毎に設定されるレフト
マージンによって生じる印字ピッチ誤差についても印字
ピッチの補正を行うことができる。
At the start of the one-line printing operation, it is determined whether or not the printing pitch error caused by the left margin amount set in the left margin pointer is a value of 1 dot or more. For example, after the printing start position pointer is subtracted by one dot, the process proceeds to the error accumulation process. If the determination result is negative, the process directly proceeds to the error accumulation process. The printing pitch can be corrected for the pitch error.

【0038】また、印字ピッチ誤差の累積値を最小幅の
文字単位に換算して取り扱う場合には、印字ピッチ誤差
を最小幅の文字単位に換算して取り扱うので、小数点以
下の数値となる印字ピッチ誤差を扱う必要がなくなり、
数値処理が簡素化されるという利点がある。
When the cumulative value of the printing pitch error is converted to the minimum width character unit and handled, the printing pitch error is converted to the minimum width character unit and handled. No need to deal with errors,
There is an advantage that numerical processing is simplified.

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

【図1】本発明の印字ピッチ補正方法を使用するプリン
タの構成の一例を示すブロック図である。
FIG. 1 is a block diagram illustrating an example of a configuration of a printer that uses a print pitch correction method of the present invention.

【図2】プリンタによって印字される各文字の横幅を示
す説明図である。
FIG. 2 is an explanatory diagram showing the width of each character printed by a printer.

【図3】ANK文字のドット構成の説明図である。FIG. 3 is an explanatory diagram of a dot configuration of an ANK character.

【図4】印字処理の概略フローチャートである。FIG. 4 is a schematic flowchart of a printing process.

【図5】印字ピッチ補正処理を示すフローチャートであ
る。
FIG. 5 is a flowchart illustrating a print pitch correction process.

【図6】誤差累積処理を示すフローチャートである。FIG. 6 is a flowchart illustrating error accumulation processing.

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

1 プリンタ 5 RAM 51 バッファ 52 累積カウンタ 53 レフトマージンポインタ 54 印字開始位置ポインタ 10 上位装置 1 Printer 5 RAM 51 Buffer 52 Cumulative Counter 53 Left Margin Pointer 54 Printing Start Position Pointer 10 Host Device

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 印字ヘッドを行方向に移動させて印字動
作を行うドットマトリックス方式のプリンタにおいて、
単位寸法あたりのドット数で示される前記印字ヘッドの
ドット密度をDiとし、単位寸法あたりに印字する文字
数で示される文字ピッチをCpとした場合に、1つの文
字を印字するために必要なドット数で示される文字ドッ
ト数Cd(ただしCd=Di/Cp)に小数点以下の端
数が生じる場合に、その端数により生じる印字ピッチ誤
差を補正する印字ピッチ補正方法であって、 上位装置から送出される印字データによって指定される
文字の横幅によって決定される印字ピッチ誤差を1文字
づつ累積して保持する誤差累積処理と、 前記印字ピッチ誤差の累積値が1ドット以上の値に到達
したか否かを判定し、その判定結果が肯定ならば、印字
媒体に対する前記印字データの印字開始位置を示す印字
開始位置ポインタを1ドット減算するとともに、前記印
字ピッチ誤差の累積値から1ドット減算した後、前記誤
差累積処理に移行し、前記判定結果が否定ならば、前記
誤差累積処理に戻る印字ピッチ補正処理とを、 1行の印字動作期間中1文字単位で繰り返して実行する
こと、 を特徴とするプリンタの印字ピッチ補正方法。
1. A dot matrix printer which performs a printing operation by moving a print head in a row direction.
When the dot density of the print head indicated by the number of dots per unit dimension is Di, and the character pitch indicated by the number of characters to be printed per unit dimension is Cp, the number of dots required to print one character Is a printing pitch correction method for correcting a printing pitch error caused by a fractional part of a character dot number Cd (where Cd = Di / Cp) indicated by the following formula. An error accumulation process for accumulating and holding, one character at a time, a print pitch error determined by the width of a character specified by data; and determining whether the accumulated value of the print pitch error has reached a value of 1 dot or more. If the result of the determination is affirmative, the print start position pointer indicating the print start position of the print data on the print medium is decremented by one dot. Then, after subtracting one dot from the accumulated value of the printing pitch error, the process proceeds to the error accumulating process. If the determination result is negative, the printing pitch correction process returns to the error accumulating process. A print pitch correction method for a printer, wherein the method is repeatedly executed in units of one character during a period.
【請求項2】1行の印字動作の開始時点において、上位
装置から送出される印字コマンド情報に基づいてレフト
マージンポインタにセットされるレフトマージン量によ
り生じる印字ピッチ誤差が1ドット以上の値か否かを判
定し、その判定結果が肯定ならば、印字開始位置ポイン
タを前記印字ピッチ誤差から小数点以下の値を切り捨て
た値に相当するドット数だけ減算した後に誤差累積処理
に移行し、前記判定結果が否定ならば、そのまま誤差累
積処理に移行すること、 を特徴とする請求項1記載のプリンタの印字ピッチ補正
方法。
2. A print pitch error caused by a left margin amount set in a left margin pointer based on print command information sent from a higher-level device at the start of a one-line printing operation. If the determination result is affirmative, the printing start position pointer is subtracted from the printing pitch error by the number of dots corresponding to the value obtained by rounding down the value after the decimal point, and then the process proceeds to error accumulation processing. 2. The method according to claim 1, wherein if the answer is negative, the process directly proceeds to the error accumulation process.
【請求項3】印字ピッチ誤差の累積値を最小幅の文字単
位に換算して取り扱うことを特徴とする請求項1又は請
求項2記載のプリンタの印字ピッチ補正方法。
3. The method according to claim 1, wherein the cumulative value of the print pitch error is converted to a minimum width character unit and handled.
JP19537996A 1996-07-05 1996-07-05 Printing pitch correcting method for printer Pending JPH1016300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19537996A JPH1016300A (en) 1996-07-05 1996-07-05 Printing pitch correcting method for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19537996A JPH1016300A (en) 1996-07-05 1996-07-05 Printing pitch correcting method for printer

Publications (1)

Publication Number Publication Date
JPH1016300A true JPH1016300A (en) 1998-01-20

Family

ID=16340194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19537996A Pending JPH1016300A (en) 1996-07-05 1996-07-05 Printing pitch correcting method for printer

Country Status (1)

Country Link
JP (1) JPH1016300A (en)

Similar Documents

Publication Publication Date Title
JP3062229B2 (en) Image scaling method
JPH0552274B2 (en)
US5586229A (en) Band printing method for preventing band overrun error in page printer
JP3016515B2 (en) Character processing apparatus and method
JPH0612201A (en) Document processor
EP0509650B1 (en) Printer having a data output time controller
JP2812396B2 (en) Output device and method
JP3151248B2 (en) Image processing device
JPH04188189A (en) Multioutline font drawing method
JP2703640B2 (en) Printing method of printer
JP2690567B2 (en) Printing control device
JPH02303858A (en) Scale-up and scale-down system of letter data
JPH08132684A (en) Braille plate output system and Braille plate output method
KR910009064B1 (en) How to correct character size for printer
JP2003226063A (en) Printer controller device
JPH0664232A (en) Printer device
JPH1191185A (en) Printing control method
JPH06106795A (en) Printer
JPH0911510A (en) Printing method and dot printer
JPH09131948A (en) Printer device
JPH1071751A (en) Character processing method and character processing device
JPH047166A (en) Dot printer
JPH10111679A (en) Font files
JPH0274364A (en) Control device for character printing
JPH04120141U (en) printer device