JPS62181169A - Line feed controller for printer - Google Patents

Line feed controller for printer

Info

Publication number
JPS62181169A
JPS62181169A JP2444686A JP2444686A JPS62181169A JP S62181169 A JPS62181169 A JP S62181169A JP 2444686 A JP2444686 A JP 2444686A JP 2444686 A JP2444686 A JP 2444686A JP S62181169 A JPS62181169 A JP S62181169A
Authority
JP
Japan
Prior art keywords
line feed
line
error
printer
amount
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.)
Granted
Application number
JP2444686A
Other languages
Japanese (ja)
Other versions
JPH0481518B2 (en
Inventor
Shinichi Iizuka
真一 飯塚
Katsuyasu Fujii
克泰 藤井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2444686A priority Critical patent/JPS62181169A/en
Publication of JPS62181169A publication Critical patent/JPS62181169A/en
Publication of JPH0481518B2 publication Critical patent/JPH0481518B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Abstract

PURPOSE:To make it possible to perform such a line feed control that apparent formats coincide to each other, by a system wherein when printing by supplying a printer having a minimum line feed quantity (n) with a line-feeding command providing a minimum line feed quantity (m) which is different from the line feed quantity (n), line feed errors arising from the difference between the line feed quantities (n) and (m) are controlled. CONSTITUTION:A means 11 stores a designated line feed quantity A expressed in terms of a minimum line feed quantity (m), and a means 12 stores a line feed error epsilon. A means 13 divides a line feed quantity equal to the sum of the designated line feed quantity A and the line feed error epsilon by n, thereby obtaining a quotient C and a remainder D. An error- discriminating part 14 discriminates which of the remainder D and n/2 is larger. When D>(n/2), +1 is added to the quotient C, the sum is given to a line feed controlling part 15, and (n-D) is stored as the line feed error epsilon. When D<(d/2), the quotient C is given to the line feed controlling part 15, and D is stored as the line feed error epsilon. A line feed controlling part 27 converts the designated line feed quantity A expressed in terms of the minimum line feed quantity (m) into a line feed quantity expressed in terms of the minimum line feed quantity (n) capable of being executed by a printer, and outputs the line feed quantity thus obtained. Then, a line feed controlling part 27a receives a line-feeding operation enable signal from a timing-controlling part 26, and drives a line-feeding motor 27b by an amount corresponding to the line feed quantity, thereby feeding a printing paper.

Description

【発明の詳細な説明】 〔概要〕 最小改行量nのプリンタにこの改行(inとは異なる最
小改行量mの改行指令を与えて印字する場合にnとmの
誤差による改行量誤差を管理し、もって見掛は上のフォ
ーマットが一致するように改行制御する。
[Detailed Description of the Invention] [Summary] When printing by giving a line feed command with a minimum line feed amount m different from this line feed (in) to a printer with a minimum line feed amount n, the line feed amount error due to the difference between n and m is managed. , so the line breaks are controlled so that the above formats match.

〔産業上の利用分野〕[Industrial application field]

本発明はシリアルプリンタ等の改行制御装置に係り、特
にプリンタが持つ最小改行量とは異なる最小改行量で改
行指令されてもその改行誤差を極力小さく、かつその改
行誤差が累積しない改行制御装置を提供するものである
The present invention relates to a line feed control device for a serial printer, and more particularly, to a line feed control device that minimizes the line feed error and prevents the line feed error from accumulating even if a line feed command is issued with a minimum line feed amount different from the minimum line feed amount that the printer has. This is what we provide.

ワイヤドツトプリンタなどのようにドツトの集合により
文字等を表現するドツトプリンタは印字素子の数により
小数ピン(例えば9ビン)のちのと、多数ピン(例えば
24ビン)のものに区分される。9ピンプリンタは英数
字を使用する海外で主流であり、各種のアプリケーショ
ンも9ピンプリンタを対象に設計されている。
Dot printers, such as wire dot printers, which express characters and the like by a collection of dots, are classified into those with decimal pins (eg, 9 bins) and those with multiple pins (eg, 24 bins) depending on the number of printing elements. 9-pin printers are mainstream overseas, where alphanumeric characters are used, and various applications are also designed for 9-pin printers.

一方、24ピンプリンタは本来は印字品質のよい漢字ま
じり文を印字するのに適しているが、この24ビンプリ
ンタでも9ピンプリンタ用のアプリケーションを使用す
ることができれば大きな附加価値となる。
On the other hand, 24-pin printers are originally suitable for printing texts containing Chinese characters with good print quality, but it would be a great added value if applications for 9-pin printers could be used with these 24-bin printers.

〔従来技術〕[Prior art]

このように、9ピンプリンタ用のアプリケーションで2
4ピンプリンタを販御して印字することを考えると問題
となるのは、改行量の誤差である。
In this way, in an application for a 9-pin printer, 2
When thinking about selling and printing with a 4-pin printer, the problem is the error in line feed amount.

すなわち、9ピンプリンタの最小改行量はl/216¥
ンや1/144iンが標準であるが、24ビンプリンタ
では1/180:’が標準となっている。
In other words, the minimum line feed amount for a 9-pin printer is l/216 yen.
1/144 inch is the standard, but 1/180:' is the standard for 24-bin printers.

したがって、1/6)シ(1/1803ン×30)で改
行するときには1/216!ン×36.1/144Sシ
×24であり、それぞれ最小改行量の整数倍となるので
改行誤差は生じない。
Therefore, when starting a line with 1/6) (1/1803 x 30), 1/216! line x 36.1/144S x 24, each of which is an integral multiple of the minimum line feed amount, so no line feed error occurs.

しかし、改行量が1/180iンの整数倍でない場合(
これは例えばグラフインク印字の時に使用される)は改
行量に誤差を生じる。−例として改行量として3/21
6”が指令された場合には1/1801ンの整数倍では
ないため、1/180i′の改行系のプリンタでは3/
180Lンで代用することになり、そのために、3 /
216 = 10/720 S’と3/180−12/
720 i’となり、1回の改行動作に2/7201シ
の誤差が生じる。
However, if the line feed amount is not an integral multiple of 1/180in (
This is used, for example, when printing with graph ink), which causes an error in the line feed amount. -For example, the line feed amount is 3/21
If 6" is specified, it is not an integral multiple of 1/1801, so for a 1/180i' line feed printer, it will be 3/3".
I decided to use 180L as a substitute, and for that purpose, 3/
216 = 10/720 S' and 3/180-12/
720 i', and an error of 2/7201 sh occurs in one changeover operation.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

この改行誤差すなわち、実際指示された改行量とプリン
タにおいて行なわれた実改行量との誤差(たとえば前述
のように2/720iン)は微小な値であるために、1
改行内で見るときはあまり問題がないが、改行回数が増
加するとその改行誤差が累積して増大する。そのために
、ページ内のフォーマットがくずれ、またグラフインク
印字が正確に接続しないなどの問題が生じる。
This line feed error, that is, the error between the actually instructed line feed amount and the actual line feed amount performed by the printer (for example, 2/720 inch as mentioned above) is a minute value, so 1
There is not much of a problem when viewing within a line break, but as the number of line breaks increases, the line break error accumulates and increases. This causes problems such as the format within the page being distorted and graph ink printing not connecting correctly.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明を説明する原理ブロック図であり、11
は指定改行量Aを記憶する記憶手段、I2は改行量誤差
εを記憶する手段、13は演算手段、14は誤差判定部
、15は最小改行量がnの改行量を持つ改行制御部であ
る。
FIG. 1 is a principle block diagram explaining the present invention, and 11
12 is a storage means for storing the designated line feed amount A, I2 is a means for storing the line feed amount error ε, 13 is an arithmetic means, 14 is an error determination section, and 15 is a line feed control section whose minimum line feed amount is n. .

最小改行量m(ただしm f−n )のプリンタに合致
するように設計されたアプリケーションによって上位処
理装置から与えられた改行iAは改行量レジスタ11に
記憶される。演算部13はこの改行量Aに誤差レジスタ
12に記憶されている改行誤差量εを加算した改行量を
前記nで除算することにより商Cと余りDを求める。誤
差判定部14はこのDとn / 2との大小関係を判定
する。
A line feed iA given from a higher-level processing device by an application designed to match a printer with a minimum line feed amount m (m f−n ) is stored in the line feed amount register 11 . The calculation unit 13 calculates the quotient C and the remainder D by dividing the line feed amount obtained by adding the line feed error amount ε stored in the error register 12 to the line feed amount A by the above n. The error determination unit 14 determines the magnitude relationship between this D and n/2.

そして、D>(n/2)のときには前記Cに+1をして
改行制御部15に与え、(n−D)を前記改行誤差量ε
として記憶せしめ、 D<(n/2)のときにはそのDを前記改行誤差量εと
して記10せしめる。
Then, when D>(n/2), +1 is added to the C and given to the line feed control unit 15, and (n-D) is calculated as the line feed error amount ε.
When D<(n/2), D is recorded as the line feed error amount ε.

〔作用〕[Effect]

演算部13は指令された改行量Aと記憶されている前回
改行動作時の誤差εとを加算して次ぎの改行量を決定し
ているので、改行毎に生じる改行誤差は次ぎの改行誤差
に累積することがない。
The calculation unit 13 determines the next line feed amount by adding the commanded line feed amount A and the stored error ε from the previous line feed operation, so the line feed error that occurs for each line feed is added to the next line feed error. It does not accumulate.

また、判定部では余りDが最小改行量nの半分に対して
その大小を判定し、n / 2よりも小であれば余りD
を改行誤差εとし、 n / 2よりも大であれば、商Cに+1をするととも
に、(n−D)を改行誤差量εとしており、指令改行量
Aに対して実際の改行量はより近似されることになる。
In addition, the determination section determines whether the remainder D is large or small with respect to half of the minimum line feed amount n, and if it is smaller than n/2, the remainder D is determined.
is the line feed error ε, and if it is larger than n / 2, +1 is added to the quotient C, and (n - D) is the line feed error amount ε, and the actual line feed amount is smaller than the commanded line feed amount A. It will be approximated.

換言すると、指令された改行量と理論上移送することの
できる改行量を比較し、その一番近い改行量で改行し、
その時の誤差を次ぎの改行の時に考慮すことにより改行
累積誤差をなくすことができる。
In other words, compare the commanded line feed amount with the line feed amount that can be theoretically transferred, and then perform a line feed with the closest line feed amount,
By taking the error at that time into account when making the next line feed, it is possible to eliminate the accumulated line feed error.

〔実施例〕〔Example〕

図面を使用して本発明の詳細な説明する。 The present invention will be explained in detail using the drawings.

第2図はシリアルプリンタの概要を示すプロソり図であ
り、第2図においてデータ受信部21はパーソナルコン
ピュータなどの上位処理装置から送信される情報を受信
し、入力データバッファコントロール部22へ送る。入
力データバソファコントロール部22はその情報を入力
データバソファ(FiFoレジスタよりなる)23に一
旦記憶する。また、データ解析部24からのデータ要求
がくると、このバッファ23より情報を取り出してデー
タ解析部24へ送る。
FIG. 2 is a schematic diagram showing an outline of a serial printer. In FIG. 2, a data receiving section 21 receives information transmitted from a higher-level processing device such as a personal computer, and sends it to an input data buffer control section 22. The input data bath sofa control section 22 temporarily stores the information in the input data bath sofa (consisting of a FiFo register) 23. Further, when a data request is received from the data analysis section 24, information is extracted from this buffer 23 and sent to the data analysis section 24.

データ解析部24は情報のデコードを行ない、その情報
が 印字コードあるいはイメージデータならばラインバッフ
ァコントロール部25へ送す、 CRコードなどの印字起動情報ならばタイミングコント
ロール部26へ印字密度などの情報とともに起動指令を
送出し、 LFコードなどの改行指令情報ならば指定された改行量
を改行誤差管理部27へ送出する。
The data analysis unit 24 decodes the information, and if the information is a print code or image data, it is sent to the line buffer control unit 25. If the information is print activation information such as a CR code, it is sent to the timing control unit 26 along with information such as print density. A start command is sent, and if it is line feed command information such as an LF code, the specified line feed amount is sent to the line feed error management section 27.

ラインバッファコントロール25はその情報が印字文字
コードであれば、文字パターン発生器をアクセスしてそ
のコードに対応するパターンをラインバッファ28に書
き込むし、イメージデータの時にはデータを変換して(
第5図で詳?■に説明する)ラインバッファ28に書き
込む。
If the information is a print character code, the line buffer control 25 accesses the character pattern generator and writes a pattern corresponding to that code into the line buffer 28. If the information is image data, it converts the data (
See Figure 5 for details? (Explained in ①)) is written to the line buffer 28.

印字制御部25aはタイミングコントロール部25より
印字開始信号と印字周期情報等の情報を受け、印字周期
情報に応じたタイミングでラインバッファ28からデー
タを読み出して印字ヘッド25bのピンを選択的に駆動
する。
The print control unit 25a receives information such as a print start signal and print cycle information from the timing control unit 25, reads data from the line buffer 28 at a timing corresponding to the print cycle information, and selectively drives the pins of the print head 25b. .

タイミングコントロール部26はデータ解析部24より
印字密度等の情報を伴った起動指令を受信し、スペース
制御部26aにキャリッジを指令速度で移動するように
制御し、スペースモータ26bを駆動し、スペース速度
が一定に達した時点から或タイミングで印字制御部25
aへ印字開始信号と印字周期情報を送る。また、改行制
御部27aへ動作許可信号を送出する。
The timing control unit 26 receives a start command with information such as printing density from the data analysis unit 24, controls the space control unit 26a to move the carriage at the commanded speed, drives the space motor 26b, and controls the space speed. The print control unit 25 at a certain timing from the point when the
Send a print start signal and print cycle information to a. It also sends an operation permission signal to the line feed control unit 27a.

スペース?ti’J 御n 26 aはタイミングコン
トロール部26より送られた情報に基づいてスペースモ
ータ26bの加速、定速、減速、停止制御を行なう。
space? The ti'J controller 26a controls the acceleration, constant speed, deceleration, and stop of the space motor 26b based on the information sent from the timing control section 26.

改行誤差管理部27は最小改行量mで表現された措定改
行量Aをプリンタが実行可能な最小改行量nで表現した
改行量に変換し、改行制御部27aに送出する。改行制
御部27aは改行動作許可信号をタイミングコントロー
ル部26から受信することによりその改行量だけ改行用
モータ27bを駆動し、印刷用紙を移送する。
The line feed error management unit 27 converts the assumed line feed amount A expressed by the minimum line feed amount m into the line feed amount expressed by the minimum line feed amount n that can be executed by the printer, and sends it to the line feed control unit 27a. When the line feed control unit 27a receives the line feed permission signal from the timing control unit 26, it drives the line feed motor 27b by the line feed amount to transport the printing paper.

第3図は第2図における改行誤差管理部27の詳細を示
すブロック図である。
FIG. 3 is a block diagram showing details of the line feed error management section 27 in FIG. 2.

データ解析部24から送られた指定改行i1Aは指定改
行量レジスタ31に一旦記憶され、演算部32に送られ
る。演算部32ではこのaに(m/L)を乗算する(た
だし、mは指定改行量Aを表現する最小改行量で、Lは
mとnの最大公約数である)ことにより、指定改行量へ
をプリンタの改行制御部が設定された最小改行量nで表
現できる整数値に変換する。
The specified line feed i1A sent from the data analysis section 24 is temporarily stored in the specified line feed amount register 31, and then sent to the calculation section 32. The calculation unit 32 multiplies this a by (m/L) (where m is the minimum line feed amount expressing the specified line feed amount A, and L is the greatest common divisor of m and n) to obtain the specified line feed amount. The printer's line feed control unit converts the line feed into an integer value that can be expressed by the set minimum line feed amount n.

その結果の値Bは一旦レジスタ33に記憶され、この値
Bは演算部34により (B+ε)÷(n/L)を演算
する(εは誤差レジスタ35に記憶されている改行誤差
量である)ことにより商Cと余りDに分解し、Cを商レ
ジスタ36に、D余りレジスタ37にそれぞれ記憶する
The resulting value B is temporarily stored in the register 33, and the calculation unit 34 calculates (B+ε)÷(n/L) (ε is the line feed error amount stored in the error register 35). As a result, it is decomposed into a quotient C and a remainder D, and C is stored in a quotient register 36 and a remainder D register 37, respectively.

余りレジスタ37に記憶された値りは判定部38により
(n/2L)に対する大小関係を比較する。
The value stored in the remainder register 37 is compared in magnitude with (n/2L) by a determining unit 38.

判定部38はD<(n/2L)ならば余りレジスタ37
に記憶されている値りを改行誤差εとしてレジスタ35
に記憶するとともに、商レジスタ36に記憶されている
値Cを改行量として改行制御部27aへ送る。
If D<(n/2L), the remainder register 37
The value stored in register 35 is set as line feed error ε.
At the same time, the value C stored in the quotient register 36 is sent to the line feed control unit 27a as the line feed amount.

また、値りがD>(n/2L)と判定した時には商レジ
スタ36に記憶されている値Cに1を加算しその合計値
(C+1)を改行制御部27aに送るとともに、余りレ
ジスタ37の値りから(n/L)を減算し、それを改行
誤差量εとして改行誤差レジスタ35に記憶する。
Further, when it is determined that the value is D>(n/2L), 1 is added to the value C stored in the quotient register 36, the total value (C+1) is sent to the line feed control unit 27a, and the remainder register 37 is (n/L) is subtracted from the value and stored in the line feed error register 35 as the line feed error amount ε.

次ぎに、第4図の動作フローチャートに沿って第3図に
おける改行誤差管理部の動きを説明する。
Next, the operation of the line feed error management section in FIG. 3 will be explained along the operational flowchart of FIG. 4.

なお、プリンタの改行制御部の最小改行Qnを1/18
0¥′とじ、上位処理装置から指令される改行量の最小
改行量mを1/216:’として仮定して説明する。
Note that the minimum line feed Qn of the printer's line feed control unit is set to 1/18.
0\', and the minimum line feed amount m of the line feed amount commanded from the higher-level processing device is assumed to be 1/216:'.

まず、指定改行量レジスタ31に記憶された指定改行量
A=8 (これは8/216:ゝの改行量を表現してい
る)は演算部32により A x (m/ L) −8X (1080/180 
) =40が得られる。この値Bはレジスタ33に一旦
記憶され、更に演算部34において CB+ε)÷<n/L)=40÷(180/1080)
−40÷6−6と余り4 となる。ただし、改行誤差εはいまOとする。
First, the specified line feed amount A=8 (which represents the line feed amount of 8/216:ゝ) stored in the specified line feed amount register 31 is calculated by the calculation unit 32 as A x (m/L) - 8X (1080 /180
) =40 is obtained. This value B is temporarily stored in the register 33, and further processed in the calculation unit 34 as CB+ε)÷<n/L)=40÷(180/1080)
-40÷6-6, with a remainder of 4. However, the line feed error ε is now assumed to be O.

したがって、商レジスタ36には6が記憶され、余りレ
ジスタ37には4が記憶される。
Therefore, 6 is stored in the quotient register 36 and 4 is stored in the remainder register 37.

判定部38ではレジスタに記憶された4とn/2Lすな
わち3との大小関係を判定する。その結果は4〉3なの
で商レジスタの値に+1をして7とし、かつ余り4から
n / Lを減算する。
The determination unit 38 determines the magnitude relationship between 4 stored in the register and n/2L, that is, 3. Since the result is 4>3, add 1 to the value of the quotient register to make it 7, and subtract n/L from the remainder 4.

4− (1080/180 ) −4−6=−2を改行
誤差εとして改行誤差レジスタ35に記憶する。
4-(1080/180)-4-6=-2 is stored in the line feed error register 35 as the line feed error ε.

即ち演算部34では8/216¥ンが1/1801′を
基準として何倍であることを求め、判定部38ではその
余り量が1/180の半分すなわち1/360に対して
の大小をキリ定することにより8/216>’が(1/
180)xQに近いか、あるいは(1/180)x(Q
+1)に近いかを判定している。
In other words, the calculating section 34 calculates how many times 8/216 yen is based on 1/1801', and the determining section 38 calculates how large or small the remainder is relative to half of 1/180, that is, 1/360. By setting 8/216>' becomes (1/
180)xQ or (1/180)x(Q
+1).

そして、前者であれば、商をそのまま改行制御部27a
に供給してQ/180’ン用紙を移送する。此の時は8
/216よりも少ない距離だけしか移送しなかったので
、余りを正方向の改行誤差として記憶し、次ぎの改行動
作に際してその誤差は考慮される。
If it is the former, the line feed control unit 27a uses the quotient as it is.
to transport the Q/180'n paper. At this time it is 8
Since the distance was moved less than /216, the remainder is stored as a line feed error in the forward direction, and this error is taken into account when performing the next line feed operation.

また、後者であれば商に+1して改行しているのでその
余分に送った分だけ負方向の改行誤差として記憶される
If it is the latter, the quotient is +1 and a line feed is performed, so the extra amount sent is stored as a line feed error in the negative direction.

いずれの場合においても、この改行誤差量は次ぎの改行
の時に考慮されるために累稍誤差はなくなる。
In either case, this amount of line feed error is taken into account at the time of the next line feed, so there is no cumulative error.

次ぎに、イメージデータの変換を説明する。Next, the conversion of image data will be explained.

9ピンプリンタのイメージデータは9ピンの内の1〜B
ピンを使用して印字するように設計されるのが一般的で
あり、このイメージデータをそのまま24ピンプリンタ
の1〜8ピンに割り当てると図形が縮小したものとなる
。これは9ピンプリンタの各ピンの配列ピンチは例えば
1/72>ンであるのに対して、24ピンプリンタのそ
れは例えば1/180!ンと異なるからである。そこで
イメージデータの変換が必要となる。このとき印字品質
の観点から8ピンのイメージデータを9ピンプリンタで
印字した結果のドツト間隔が、8ピンのイメージデータ
を24ピンプリンタで印字した結果のドツト間隔と近似
しているように変換することが望ましい。
The image data of a 9-pin printer is from 1 to B of the 9 pins.
It is generally designed to print using pins, and if this image data is directly assigned to pins 1 to 8 of a 24-pin printer, the figure will be reduced. This means that the arrangement pinch of each pin of a 9-pin printer is, for example, 1/72>, while that of a 24-pin printer is, for example, 1/180! This is because it is different from the Therefore, it is necessary to convert the image data. At this time, from the viewpoint of print quality, conversion is performed so that the dot spacing resulting from printing 8-pin image data with a 9-pin printer is similar to the dot spacing resulting from printing 8-pin image data with a 24-pin printer. This is desirable.

すなわち、第5図に示すように8ピンイメージデータの
第1トソトがマークであれば24ピンプリンタの第1・
2ドツトを駆動してドツトを形成し、8ピンイメージデ
ータの第2ドツトがマークであれば24ピンプリンタの
第4・5ドツトを駆動してドツトを形成し、8ピンイメ
ージデータの第3ドツトがマークであれば24ピンプリ
ンタの第6・7ドツトを駆動してドツトを形成し、8ピ
ンイメージデータの第4ドツトがマークであれば24ピ
ンプリンタの第9・10ドツトを駆動してドツトを形成
するようにピンの割り当てを決定する。
In other words, as shown in FIG. 5, if the first position of the 8-pin image data is a mark, it is the first position of the 24-pin printer.
2 dots are driven to form a dot, and if the 2nd dot of the 8-pin image data is a mark, the 4th and 5th dots of the 24-pin printer are driven to form a dot, and the 3rd dot of the 8-pin image data is If the mark is a mark, the 6th and 7th dots of the 24-pin printer are driven to form a dot, and if the 4th dot of the 8-pin image data is a mark, the 9th and 10th dots of the 24-pin printer are driven to form a dot. Determine the pin assignment to form the .

すなわち、180は72の2.5倍であるから、8ピン
イメージデータの4ドツトを24ピンプリンタの10ド
ツトに割り当てることにより8ピンのイメージデータを
24ピンプリンタで印字した結果のドツト間隔を8ピン
の・イメージデータを9ピンプリンタで印字した結果の
ドツト間隔により近似することができる。
In other words, since 180 is 2.5 times as large as 72, by assigning 4 dots of 8-pin image data to 10 dots of a 24-pin printer, the dot spacing of the result of printing 8-pin image data with a 24-pin printer will be 8. This can be approximated by the dot spacing resulting from printing the pin image data with a 9-pin printer.

そのために第6図に示すように、ラインバッファコント
ロール25は8ピンのイメージデータを受信してそれを
記憶するレジスタ61、変換テーブル62の先頭アドレ
スADDRを記↑、なするレジスタ63、演算部64、
アドレスレジスタ65、データ読み出し部66、変換後
のデータを記憶するレジスタ67、そして8ドツトのデ
ータを前述の規則に沿って24ドツトのデータに変換す
るための変換テーブル62を貞している。
For this purpose, as shown in FIG. 6, the line buffer control 25 includes a register 61 that receives and stores the image data of the 8 pins, a register 63 that records the start address ADDR of the conversion table 62, and a calculation unit 64. ,
It includes an address register 65, a data reading section 66, a register 67 for storing converted data, and a conversion table 62 for converting 8-dot data into 24-dot data according to the aforementioned rules.

変換テーブル62の構成は第7図に示すように、横方向
に24ビツト、縦方向に256ビノトよりなるROMで
構成され、8ドツトのデータを前記の規則によって24
ビツトに変換したデータが横方向の24ビツトに記憶さ
れている。
As shown in FIG. 7, the conversion table 62 is composed of a ROM consisting of 24 bits in the horizontal direction and 256 bits in the vertical direction, and converts 8 dot data into 24 bits according to the above-mentioned rules.
Data converted into bits is stored in 24 bits in the horizontal direction.

次ぎに、第6図に示す変換動作の動きを説明する。Next, the movement of the conversion operation shown in FIG. 6 will be explained.

まず、データ解析部24から8ドツトのデータを受信し
てレジスタ61に記憶すると、演算部63はその8ドツ
トのデータを3倍するとともに、その値に定数ADDR
を加算することによりレジスタ61に記憶された8ドツ
トデータに対応するテーブル62上の先頭アドレスを求
める。
First, when 8 dots of data is received from the data analysis section 24 and stored in the register 61, the arithmetic section 63 multiplies the 8 dots of data by 3 and adds a constant ADDR to that value.
By adding , the start address on the table 62 corresponding to the 8-dot data stored in the register 61 is obtained.

この値はレジスタ65にセントされ、読み出し部66は
この先頭アドレスから順次アドレスを歩進し8ビツトず
つのデータをテーブルより読み出す。
This value is sent to the register 65, and the reading unit 66 sequentially increments the addresses from this first address and reads out data in 8-bit units from the table.

このデータは順次レジスタ67に記憶され、このレジス
タ67からラインバッファ28(第2図参照)に転送さ
れる。
This data is sequentially stored in register 67 and transferred from register 67 to line buffer 28 (see FIG. 2).

以上は改行方向に関してのデータ変換であるが、スペー
ス方向に関してもそのトノI−間隔を考慮しなければな
らない。
The above is data conversion in the line feed direction, but the tono I-interval must also be taken into consideration in the space direction.

なぜならば、改行方向のドツト間隔はl/72iンに近
似したものとなっても、スペース方向のドツト間隔が1
/180!ンで表現すると、スペース方向に縮小された
図形となり、本来真円で表現すべき図形が縦長の楕円と
なってしまうためである。
This is because even though the dot spacing in the line feed direction is approximately 1/72 inch, the dot spacing in the space direction is 1/72 inches.
/180! This is because if it is expressed as a circle, the figure will be reduced in the space direction, and a figure that should originally be expressed as a perfect circle will become a vertically elongated ellipse.

このためにはキャリッジの移動速度と、印字ビンを駆動
する印字周期とを考慮する必要がある。
For this purpose, it is necessary to consider the moving speed of the carriage and the printing cycle for driving the printing bin.

第8図は第1図におけるタイミグコントロール部26の
詳細を示すブロック図であり、データ解析部24を介し
て供給される印字密度情報を記録するためのレジスタ8
1、印字密度情報に対応する印字周期情報およびそれと
対をなすスペース速度情報を記憶する変換テーブル82
、レジスタ81の内容に応じて前記テーブル82から印
字周期情報とスペース情報を読み出す続出部33、読み
出された各々の情報を記憶するスペース速度レジスタ8
4、印字周期レジスタ85よりなる。
FIG. 8 is a block diagram showing details of the timing control unit 26 in FIG.
1. Conversion table 82 that stores printing cycle information corresponding to printing density information and space speed information paired therewith.
, a succession unit 33 that reads out print cycle information and space information from the table 82 according to the contents of the register 81, and a space speed register 8 that stores each piece of information that has been read out.
4. Consists of a print cycle register 85.

印字密度情報は上位のデータ処理装置から供給されるも
のであり、それは供給されるイメージデータが24ピン
のものか、9ビンのものかを示すデータと考えてよい。
Print density information is supplied from a higher-level data processing device, and can be thought of as data indicating whether the supplied image data is 24-pin data or 9-bin data.

いま、8ビンのデータを印字するものと仮定すると、そ
れを示すデータが印字密度情報としてレジスタ81に供
給される。これによって、続出部83はテーブル82を
アクセスしてその印字密度情報に対応する印字周期情報
Tfおよびスペース速度情報Vsを読み出し、各レジス
タ84.85に記憶する。スペース速度情報および印字
周期情報はスペース制御部26aおよび印字制御部25
a(いずれも第2図を参照)に供給され、スペースモー
タ26bはその速度情報に応じた速度で回転制御され、
印字へラド25bはその印字周期情報に応じた周期で駆
動される。
Assuming that 8 bins of data are to be printed, data indicating this is supplied to the register 81 as print density information. As a result, the succession unit 83 accesses the table 82, reads out the print cycle information Tf and the space speed information Vs corresponding to the print density information, and stores them in each register 84, 85. Space speed information and print cycle information are provided by the space control section 26a and the print control section 25.
a (see FIG. 2), and the space motor 26b is controlled to rotate at a speed according to the speed information.
The print head 25b is driven at a cycle according to the print cycle information.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば最小改行量が異な
る改行指令でプリンタを動作しても改行量の誤差が最小
限にすることができ、また、改行毎に生じる誤差を管理
して次ぎの改行動作時にそき誤差を考慮しているので改
行誤差が累積することがない。したがって、特に異なる
改行系用に設計されたソフトウェアパッケージをプリン
タのハードを変更することなく使用することができる。
As explained above, according to the present invention, even if the printer is operated with line feed commands with different minimum line feed amounts, errors in the line feed amount can be minimized, and errors that occur for each line feed can be managed and the next Since line feed errors are taken into consideration when performing line feed operations, line feed errors do not accumulate. Therefore, software packages specifically designed for different line feed systems can be used without changing the printer hardware.

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

第1図は本発明の詳細な説明するブロック図、第2図は
プリンタの構成概要を示すブロック図、第3図は第2図
°における改行誤差管理部の詳細を示すブロック図、 第4図は第3図の動作を示すフローチャー1−第5図は
8ピンデータを24ピンデータに変換する態様を説明す
る図、 第6図は第2図におけるラインバッファコントロール部
の詳細を示すブロック図、 第7図はビットデータ変換テーブルの構成を説明する図
、 第8図は第2図におけるタイミングコン1−ロール部の
詳細を示すブロック図である。 図中、11は[旨定改行1iAを記1.αするレジスタ
、12は改行量誤差εを記憶するレジスタ、13は演算
部14は誤差判定部、15は最小改行量がnの改行量を
持つ改行制御部である。 ノド4ε口弓 の八に1ツー7゛°口、ツク1コ11 
Fig. 1 is a block diagram explaining the present invention in detail, Fig. 2 is a block diagram showing an overview of the configuration of the printer, Fig. 3 is a block diagram showing details of the line feed error management section in Fig. 2, and Fig. 4. is a flowchart 1 showing the operation in Fig. 3 - Fig. 5 is a diagram explaining the mode of converting 8-pin data to 24-pin data, and Fig. 6 is a block diagram showing details of the line buffer control section in Fig. 2. , FIG. 7 is a diagram explaining the configuration of the bit data conversion table, and FIG. 8 is a block diagram showing details of the timing controller 1-roll section in FIG. 2. In the figure, 11 indicates [denote line break 1iA 1. 12 is a register for storing line feed amount error ε; 13 is a calculation unit 14 which is an error determination unit; and 15 is a line feed control unit having a line feed amount with a minimum line feed amount of n. Throat 4ε Mouth bow No. 8, 1 to 7゛° mouth, Tsuku 1 Ko 11

Claims (1)

【特許請求の範囲】[Claims] (1)最小改行量がnの改行系を有するプリンタが最小
改行量がm(n≠m)の改行指令を受信して印刷用紙を
改行するものであつて、 前記最小改行量mによつて表される指定改行量Aを記憶
する手段(11)、 改行誤差量εを記憶する手段(12)、 前記指定改行量Aと前記改行誤差量εとを合計した改行
量をnで除算してその商Cと余りDを求める手段(13
)、 前記余りDとn/2との大小関係を判定し、D>(n/
2)のときには前記商Cに+1して改行制御部(15)
に与え、(n−D)を前記改行誤差量εとして記憶せし
め、 D<(n/2)のときには前記商Cを前記改行制御部(
15)に与え、前記Dを前記改行誤差量εとして記憶せ
しめる誤差判定部(14) とを備えたことを特徴とするプリンタにおける改行制御
装置。
(1) A printer having a line feed system with a minimum line feed amount of n receives a line feed command with a minimum line feed amount of m (n≠m) and feeds printing paper, and according to the minimum line feed amount m. means (11) for storing the designated line feed amount A expressed; means (12) for storing the line feed error amount ε; dividing the line feed amount that is the sum of the specified line feed amount A and the line feed error amount ε by n; Means to find the quotient C and remainder D (13
), the magnitude relationship between the remainder D and n/2 is determined, and D>(n/2).
In the case of 2), add 1 to the quotient C and use the line feed control unit (15)
and (n-D) is stored as the line feed error amount ε, and when D<(n/2), the quotient C is stored in the line feed control unit (
15) and an error determination unit (14) for storing the D as the line feed error amount ε.
JP2444686A 1986-02-06 1986-02-06 Line feed controller for printer Granted JPS62181169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2444686A JPS62181169A (en) 1986-02-06 1986-02-06 Line feed controller for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2444686A JPS62181169A (en) 1986-02-06 1986-02-06 Line feed controller for printer

Publications (2)

Publication Number Publication Date
JPS62181169A true JPS62181169A (en) 1987-08-08
JPH0481518B2 JPH0481518B2 (en) 1992-12-24

Family

ID=12138372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2444686A Granted JPS62181169A (en) 1986-02-06 1986-02-06 Line feed controller for printer

Country Status (1)

Country Link
JP (1) JPS62181169A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02147276A (en) * 1988-11-29 1990-06-06 Seiko Epson Corp Printer
JPH03227284A (en) * 1990-02-02 1991-10-08 Tohoku Oki Denki Kk Printing method for printer
US5299758A (en) * 1991-09-17 1994-04-05 Shimano, Inc. Baitcasting reel having a clutch control mechanism
US5322239A (en) * 1991-09-17 1994-06-21 Shimano Inc. Baitcasting reel having a clutch control mechanism
EP0795839A2 (en) * 1996-03-12 1997-09-17 Seiko Epson Corporation Printer and method of controlling it

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5759794A (en) * 1980-09-26 1982-04-10 Sharp Corp Feed quantity controller for printing paper
JPS62116177A (en) * 1985-11-15 1987-05-27 Casio Comput Co Ltd Printing-controlling system
JPS62119075A (en) * 1985-11-20 1987-05-30 Brother Ind Ltd Paper feed controller of printer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5759794A (en) * 1980-09-26 1982-04-10 Sharp Corp Feed quantity controller for printing paper
JPS62116177A (en) * 1985-11-15 1987-05-27 Casio Comput Co Ltd Printing-controlling system
JPS62119075A (en) * 1985-11-20 1987-05-30 Brother Ind Ltd Paper feed controller of printer

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02147276A (en) * 1988-11-29 1990-06-06 Seiko Epson Corp Printer
JPH03227284A (en) * 1990-02-02 1991-10-08 Tohoku Oki Denki Kk Printing method for printer
US5299758A (en) * 1991-09-17 1994-04-05 Shimano, Inc. Baitcasting reel having a clutch control mechanism
US5322239A (en) * 1991-09-17 1994-06-21 Shimano Inc. Baitcasting reel having a clutch control mechanism
EP0795839A2 (en) * 1996-03-12 1997-09-17 Seiko Epson Corporation Printer and method of controlling it
EP0795839A3 (en) * 1996-03-12 1998-09-16 Seiko Epson Corporation Printer and method of controlling it
US5918991A (en) * 1996-03-12 1999-07-06 Seiko Epson Corporation Printing apparatus and control method for pitch and motion commands

Also Published As

Publication number Publication date
JPH0481518B2 (en) 1992-12-24

Similar Documents

Publication Publication Date Title
EP0179206B1 (en) Table driven print formatting
US4459050A (en) Servo control system for carriage of matrix printer
EP0446928A2 (en) Label printer
JPS62181169A (en) Line feed controller for printer
JPS58117036A (en) Print controller
JPS5866181A (en) Pattern recording device
JPH0890846A (en) Print buffer
JPS59127784A (en) Information output device
JPS59201870A (en) Printer
JPH0616764Y2 (en) Dot matrix printer
JPH01150568A (en) Printer device
JPS5839471A (en) Print controlling system
JPH02178826A (en) Page printer
JPS6161861A (en) Printer control apparatus
JPH0647301B2 (en) Charactor pattern generator
JPS63272145A (en) Dump output device
JPH0477272A (en) Printer
JP2614251B2 (en) Printer print control method
JPH01296335A (en) Forms overlay table preparing system
JPS62115525A (en) Information processor
JPS58119040A (en) Print controller
JPS6010674B2 (en) printer
JPS62115522A (en) Format print processing system
JPH0939305A (en) Printer
JPS61287771A (en) Printer