Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3065488B2 - Automatic platen tilt correction method for printer - Google Patents
[go: Go Back, main page]

JP3065488B2 - Automatic platen tilt correction method for printer - Google Patents

Automatic platen tilt correction method for printer

Info

Publication number
JP3065488B2
JP3065488B2 JP6200439A JP20043994A JP3065488B2 JP 3065488 B2 JP3065488 B2 JP 3065488B2 JP 6200439 A JP6200439 A JP 6200439A JP 20043994 A JP20043994 A JP 20043994A JP 3065488 B2 JP3065488 B2 JP 3065488B2
Authority
JP
Japan
Prior art keywords
carrier
platen
gap
inclination
cam motor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP6200439A
Other languages
Japanese (ja)
Other versions
JPH0858165A (en
Inventor
博仁 向山
聡 坂井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP6200439A priority Critical patent/JP3065488B2/en
Publication of JPH0858165A publication Critical patent/JPH0858165A/en
Application granted granted Critical
Publication of JP3065488B2 publication Critical patent/JP3065488B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Handling Of Sheets (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプリンタ装置のプラテン
の傾きを自動的に補正することができるプラテンの傾き
自動補正方法に関し、特に本発明は、自動紙厚調整機構
(以下、AHG機構という)を備えたプリンタ装置に適
用するに好適なプラテンの傾き自動補正方法に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for automatically correcting the inclination of a platen of a printer, and more particularly to an automatic paper thickness adjusting mechanism (hereinafter, referred to as an AHG mechanism). The present invention relates to a platen inclination automatic correction method suitable for application to a printer device having a printer.

【0002】[0002]

【従来の技術】図19は本発明の前提となるAHG機構
を備えたプリンタ装置の構成の一例を示す図であり、同
図(a)は全体の構成を示し、(b)はAHGセンサ部
分を上面から見た図、(c)はAHGセンサ部分を前面
から見た図を示している。同図において、71はプラテ
ン、72は印字ヘッド、73はキャリア、74、75は
軸、76は自動紙厚調整用のAHGセンサ、76aはA
HGセンサの遮蔽板、76bはバネ(同図のb)、7
7,77’は軸75と接触しキャリア73が移動すると
きに回動するベアリングであり、ベアリング77’はキ
ャリア73に固定されており、ベアリング77は遮蔽板
76aに取り付けられている。
2. Description of the Related Art FIG. 19 is a view showing an example of the configuration of a printer having an AHG mechanism as a premise of the present invention. FIG. 19A shows the entire configuration, and FIG. Is a view of the AHG sensor viewed from above, and FIG. In the figure, 71 is a platen, 72 is a print head, 73 is a carrier, 74 and 75 are axes, 76 is an AHG sensor for automatic paper thickness adjustment, and 76a is A
The shield plate of the HG sensor, 76b is a spring (b in the same figure), 7
7, 77 'are bearings which rotate when the carrier 73 moves in contact with the shaft 75. The bearing 77' is fixed to the carrier 73, and the bearing 77 is attached to the shielding plate 76a.

【0003】そして、同図(b)に示すように、遮蔽板
76aおよびベアリング77はバネ76bにより軸75
方向に付勢されており、ベアリング77と77’により
軸75を挟持している。また、78はキャリアがホーム
ポジションにあることを検出するキャリア・ホームポジ
ション・センサ、78aはその遮蔽板、79はAHG調
整用カム、80はカム79の位置を検出するカム・ホー
ムポジション・センサ、81はカム79を回転させるカ
ム・モータである。
As shown in FIG. 1B, a shielding plate 76a and a bearing 77 are connected to a shaft 75 by a spring 76b.
And the shaft 75 is held between the bearings 77 and 77 '. Further, 78 is a carrier home position sensor for detecting that the carrier is at the home position, 78a is its shielding plate, 79 is an AHG adjustment cam, 80 is a cam home position sensor for detecting the position of the cam 79, 81 is a cam motor for rotating the cam 79.

【0004】同図のプリンタ装置において、紙厚自動調
整を行う場合には、用紙をプラテン71と印字ヘッド間
に給紙し、カム・モータ81によりカム79を回転さ
せ、プラテン71を上側に移動させる。プラテン71が
上側に移動すると、用紙を介して印字ヘッド72がプラ
テン71と接触し、印字ヘッド72がプラテン71によ
り上側に移動する。
In the printer shown in FIG. 1, when performing automatic paper thickness adjustment, paper is fed between a platen 71 and a print head, a cam 79 is rotated by a cam motor 81, and the platen 71 is moved upward. Let it. When the platen 71 moves upward, the print head 72 contacts the platen 71 via the paper, and the print head 72 moves upward by the platen 71.

【0005】印字ヘッド72が固定されたキャリア73
は軸74を軸として、回動可能であり、上記したよう
に、バネ76bによりベアリング77が軸75側に付勢
されて いることにより、同図に示す位置を保持してい
る。従って、印字ヘッド72が上動すると、キャリア7
3はバネ76bに抗して同図(a)のA方向に回動し、
AHGセンサ76の遮蔽板76aは同図(b)のB方向
に回動する。
A carrier 73 to which a print head 72 is fixed
Is rotatable about a shaft 74, and as described above, the bearing 77 is urged toward the shaft 75 by the spring 76b.
By being, it holds the position shown in FIG. Therefore, when the print head 72 moves upward, the carrier 7
3 rotates in the direction A in the same figure (a) against the spring 76b,
The shielding plate 76a of the AHG sensor 76 rotates in the direction B in FIG.

【0006】このため、プラテン71がカム79により
所定量押し上げられると、遮蔽板76aはAHGセンサ
76の凹部に入り、AHGセンサ76の光を遮蔽して、
AHGセンサ76は出力を発生する。プラテン71がカ
ム79により所定量押し上げられAHGセンサ76が出
力を発生すると、カム・モータ81の駆動を停止する。
ついで、カム・モータ81を所定量逆転させ、プラテン
71を所定量下側に移動させる。
For this reason, when the platen 71 is pushed up by a predetermined amount by the cam 79, the shielding plate 76a enters the concave portion of the AHG sensor 76 and shields the light of the AHG sensor 76.
The AHG sensor 76 generates an output. When the platen 71 is pushed up by a predetermined amount by the cam 79 and the AHG sensor 76 generates an output, the driving of the cam motor 81 is stopped.
Next, the cam motor 81 is rotated backward by a predetermined amount, and the platen 71 is moved downward by a predetermined amount.

【0007】これにより、プラテン71と印字ヘッド7
2間に紙厚に対応したギャップが形成され、自動紙厚調
整を終了する。ところで、一般にシリアル・ドット・プ
リンタ装置においては、印字ヘッド72とプラテン71
間のギャップはヘッドの位置によらず、所定の精度を保
つ必要がある。
Thus, the platen 71 and the print head 7
A gap corresponding to the paper thickness is formed between the two, and the automatic paper thickness adjustment ends. In general, in a serial dot printer, a print head 72 and a platen 71 are provided.
The gap between them must maintain a predetermined accuracy regardless of the position of the head.

【0008】図20はシリアル・ドット・プリンタ装置
のプラテン71と印字ヘッド72を示す図であり、同図
に示すように、印字ヘッド72が左端にあるときのギャ
ップをδとし、印字ヘッド72が右端にあるときのギャ
ップをδ’とすると、その精度は、|δ−δ’|≦1/
100mmの精度が必要である。従来においては、上記
精度を得るため、軸74,75またはプラテンの取り付
けを偏心カラー等を用いて微調整しながら取り付ける必
要があった。
FIG. 20 is a diagram showing a platen 71 and a print head 72 of a serial dot printer. As shown in FIG. 20, the gap when the print head 72 is at the left end is δ, and the print head 72 is Assuming that the gap at the right end is δ ′, the accuracy is | δ−δ ′ | ≦ 1 /
An accuracy of 100 mm is required. Conventionally, in order to obtain the above accuracy, it was necessary to attach the shafts 74 and 75 or the platen while finely adjusting the attachment using an eccentric collar or the like.

【0009】しかしながら、上記のようにギャップを微
調整して取り付けても、輸送中に落下・衝撃、振動等が
あると、軸等の取り付けが狂い、正しいギャップが得ら
れないことがあった。さらに、経年変化等により、上記
ギャップが狂うこともあった。
However, even if the gap is finely adjusted as described above, if there is a drop, impact, vibration, or the like during transportation, the mounting of the shaft or the like may be incorrect, and a correct gap may not be obtained. In addition, the gap may go out of order due to aging or the like.

【0010】[0010]

【発明が解決しようとする課題】本発明は上記した従来
技術の欠点を改善するためになされたものであって、本
発明の第1の目的は、上記のようなAHG機構を用い
て、印字中に自動的にプラテンと印字ヘッド間のギャッ
プを調整することにより、組み立て時の調整が不用であ
り、また、落下・衝撃、振動の外乱に影響されることな
く、厚さの異なった用紙に対してもプラテンと印字ヘッ
ド間のギャップを適正な値に保持することができるプリ
ンタ装置におけるプラテンの傾き自動補正方法を提供す
ることである。
SUMMARY OF THE INVENTION The present invention has been made to improve the above-mentioned drawbacks of the prior art, and a first object of the present invention is to provide a printing method using the above-described AHG mechanism. By automatically adjusting the gap between the platen and print head during assembly, adjustment during assembly is unnecessary, and it is not affected by disturbances such as drops, shocks, and vibrations. On the other hand, it is an object of the present invention to provide a method for automatically correcting the inclination of a platen in a printer apparatus, which can maintain a gap between a platen and a print head at an appropriate value.

【0011】本発明の第2の目的は、スループットを向
上し、補正計算が容易で、適正なギャップ値とのズレを
より小さくすることができるプラテンの傾き自動補正方
法を提供することである。
A second object of the present invention is to provide a method for automatically correcting the inclination of the platen, which can improve the throughput, facilitate the correction calculation, and reduce the deviation from an appropriate gap value.

【0012】[0012]

【課題を解決するための手段】図1は本発明の原理図で
あり、同図(a)は本発明におけるプラテンの傾き補正
手順を示し、(b)(c)は本発明におけるカムモータ
の駆動処理手順を示している。同図において、1はプリ
ンタ、2はプラテン、3はキャリア、4は印字ヘッド、
5はプラテン2を移動させギャップを調整するカム、6
はカムモータ、7は用紙である。
FIGS. 1A and 1B show the principle of the present invention. FIG. 1A shows a procedure for correcting the inclination of a platen in the present invention, and FIGS. 1B and 1C show driving of a cam motor in the present invention. 2 shows a processing procedure. In the figure, 1 is a printer, 2 is a platen, 3 is a carrier, 4 is a print head,
5 is a cam for moving the platen 2 to adjust the gap, 6
Is a cam motor, and 7 is a sheet.

【0013】上記課題を解決するため、本発明の請求項
1の発明は、印字ヘッド4とプラテン2間のギャップを
自動調整する機構を備えたプリンタ装置1のプラテン2
の傾き自動補正方法において、印字前の自己修復コマン
ド入力時、もしくは、電源投入時、プラテン2上の用紙
を検出し、用紙がプラテン2上にあったとき、該用紙を
プラテン2から外れるまで移動、または排出したのち、
図1(a)に示すように、少なくとも2以上の箇所にキ
ャリア3を移動させ、各キャリア3の位置において、上
記機構を用いてプラテン2と印字ヘッド4との相対的傾
きを測定して記憶手段に記憶し、印字時、上記記憶手段
に記憶されたデータを用いて、ギャップを、キャリア位
置に応じて補正することにより、プラテン2と印字ヘッ
ド4の相対的傾きを自動補正して、ギャップを一定に保
つようにしたものである。
[0013] In order to solve the above-mentioned problems, the invention according to claim 1 of the present invention is directed to a platen 2 of a printer 1 having a mechanism for automatically adjusting a gap between a print head 4 and a platen 2.
When the self-repair command is input before printing or when the power is turned on, the paper on the platen 2 is detected, and when the paper is on the platen 2, the paper is moved until it comes off from the platen 2. Or after discharging
As shown in FIG. 1A , the carrier 3 is moved to at least two or more positions, and the relative inclination between the platen 2 and the print head 4 is measured and stored at the position of each carrier 3 using the above mechanism. Means for automatically correcting the relative tilt between the platen 2 and the print head 4 by correcting the gap according to the carrier position using the data stored in the storage means at the time of printing. Is kept constant.

【0014】本発明の請求項2の発明は、印字ヘッド4
とプラテン2間のギャップを自動調整する機構を備えた
プリンタ装置のプラテン2の傾き自動補正方法におい
て、印字前、少なくとも2以上の箇所にキャリア3を移
動させ、各キャリア3の位置において、上記機構を用い
てプラテン2と印字ヘッド4との相対的傾きを測定して
記憶手段に記憶し、印字時、上記記憶手段に記憶された
データを用いて、ギャップをキャリア位置に応じて補正
するとともに、片方向印字におけるキャリアリターン、
もしくは、印字開始可能位置までのキャリアエスケープ
等の印字を伴わないキャリア移動時、キャリア位置に応
じたギャップ補正量を求めて、ギャップを補正しながら
キャリア3を移動させることにより、プラテン2と印字
ヘッド4の相対的傾きを自動補正して、ギャップを一定
に保つようにしたものである。
According to a second aspect of the present invention, there is provided the print head
In the method for automatically correcting the inclination of the platen 2 of the printer device having a mechanism for automatically adjusting the gap between the carrier 3 and the platen 2, the carrier 3 is moved to at least two or more places before printing, and Is used to measure the relative inclination between the platen 2 and the print head 4 and store it in the storage means. At the time of printing, the gap is corrected according to the carrier position using the data stored in the storage means, Carrier return in unidirectional printing,
Alternatively, at the time of moving the carrier without printing such as carrier escape to a position where printing can be started, a gap correction amount corresponding to the carrier position is obtained, and the carrier 3 is moved while correcting the gap, thereby forming the platen 2 and the print head. 4 is automatically corrected to keep the gap constant.

【0015】本発明の請求項3の発明は、カムモータを
回転させプラテン2もしくは印字ヘッド4を移動させ、
印字ヘッド4とプラテン2間のギャップを自動調整する
機構を備えたプリンタ装置のプラテン2の傾き自動補正
方法において、図1(a)(b)に示すように印字前、
少なくとも2以上の箇所にキャリア3を移動させ、各キ
ャリア3の位置において、上記機構を用いてプラテン2
と印字ヘッド4との相対的傾きを測定し、プラテン2の
傾きを測定したときのキャリア3の間隔、求めた傾き、
および、ギャップ補正を行うカムモータの分解能から、
ギャップ補正量に対応した該カムモータの駆動パルス数
を求め、キャリア3の移動間隔を、上記駆動パルスに1
を加えた値で除することにより、上記カムモータが1パ
ルス駆動されたときキャリア3が移動する移動距離を求
、印字時、移動中のキャリアの位置を監視し、キャリ
ア3が、プラテン2の傾き測定時に基準としたキャリア
3基準位置から上記キャリア移動距離により定まるカム
モータを駆動すべき位置を越える毎に、上記カムモータ
を1パルス駆動することにより、プラテン2と印字ヘッ
ド4の相対的傾きを自動補正して、ギャップを一定に保
つようにしたものである。
According to a third aspect of the present invention, a cam motor is provided.
Rotate to move the platen 2 or print head 4,
In a method for automatically correcting the inclination of the platen 2 of a printer device having a mechanism for automatically adjusting the gap between the print head 4 and the platen 2, as shown in FIGS.
The carrier 3 is moved to at least two or more positions, and at the position of each carrier 3,
The distance between the carriers 3 when the inclination of the platen 2 was measured by measuring the relative inclination of the
And from the resolution of the cam motor that performs the gap correction ,
Number of drive pulses of the cam motor corresponding to the gap correction amount
And set the moving interval of the carrier 3 to 1
By dividing by the value obtained by adding
Calculate the moving distance of carrier 3 when driven
Because, during printing, to monitor the position of the carrier in motion, for each carrier 3, exceeds the position to drive the cam motor determined by said carrier moving distance from a reference carriers 3 reference position when the inclination measurement of platen 2, By driving the cam motor by one pulse, the relative inclination between the platen 2 and the print head 4 is automatically corrected, and the gap is kept constant.

【0016】本発明の請求項4の発明は、請求項3の発
明において、現在のキャリア3の位置よりも、移動方向
へ予め定められた距離だけ先のキャリア補正位置を求
め、上記キャリア補正位置をキャリア3の位置として、
該キャリア位置が、カムモータを駆動すべき位置を越え
る毎に、上記カムモータを1パルス駆動するようにした
ものである。
According to a fourth aspect of the present invention, in the third aspect of the present invention, a carrier correction position which is ahead of the current position of the carrier 3 by a predetermined distance in the moving direction is obtained, and the carrier correction position is determined. Is the position of carrier 3,
Each time the carrier position exceeds a position where the cam motor should be driven, the cam motor is driven by one pulse.

【0017】本発明の請求項5の発明は、請求項4の発
明において、予め定められた複数個の距離を用意し、キ
ャリア3の移動速度に応じて上記複数個の距離の内の一
つを選択し、上記距離を用いて、現在のキャリア3の位
置よりも、移動方向へ予め定められた距離だけ先の位置
を求めるようにしたものである。本発明の請求項6の発
明は、請求項5の発明において、予め定められた複数個
の距離を、それぞれのキャリア移動速度において、ある
一定時間にキャリア3が移動する距離と一致させたもの
である。
According to a fifth aspect of the present invention, in the fourth aspect of the present invention, a plurality of predetermined distances are prepared, and one of the plurality of distances is selected according to the moving speed of the carrier 3. Is selected, and a position ahead of the current position of the carrier 3 by a predetermined distance in the moving direction is obtained using the distance. According to a sixth aspect of the present invention, in the fifth aspect of the invention, a plurality of predetermined distances are made to coincide with a distance at which the carrier 3 moves in a certain time at each carrier moving speed. is there.

【0018】本発明の請求項7の発明は、請求項6の発
明において、一定時間をカムモータのセトリング時間に
一致させたものである。
According to a seventh aspect of the present invention, in the sixth aspect of the present invention, the predetermined time is made equal to the settling time of the cam motor.

【0019】本発明の請求項8の発明は、カムモータを
回転させプラテン2もしくは印字ヘッド4を移動させ、
印字ヘッド4とプラテン2間のギャップを自動調整する
機構を備えたプリンタ装置のプラテン2の傾き自動補正
方法において、図1(a)(c)に示すように印字前、
少なくとも2以上の箇所にキャリア3を移動させ、各キ
ャリア3の位置において、上記機構を用いてプラテン2
と印字ヘッド4との相対的傾きを測定し、測定した傾き
と現在のキャリア位置より、キャリア3の移動方向にお
ける最初のギャップ補正位置を求めて、キャリア3がそ
の位置に達するまでの時間を、ギャップ補正を行うカム
モータに起動をかけてから最初に励磁相を切り換えるま
での時間として設定し、また、求めた傾きと、プラテン
2の傾きを測定したときのキャリアの間隔、およびギャ
ップ補正を行うカムモータの分解能より、カムモータが
1パルス駆動されたときキャリア3が移動する移動距離
求め、該移動距離と、キャリア3の移動速度によりキ
ャリア3が該移動距離を移動するに要する時間を求め、
上記時間をカムモータの励磁相切り換え時間間隔として
設定し、さらに、キャリア3の移動開始位置でのギャッ
プ補正量と、移動終了位置でのギャップ補正量の差か
ら、カムモータの駆動パルス数を求め、印字時、キャリ
ア3の移動開始と同時にカムモータを起動し、上記設定
された励磁相切り換え時間間隔で、求めた駆動パルス
数、カムモータを駆動することにより、プラテン2と印
字ヘッド4の相対的傾きを自動補正して、ギャップを一
定に保つようにしたものである。
According to an eighth aspect of the present invention, a cam motor is provided.
Rotate to move the platen 2 or print head 4,
In a method for automatically correcting the inclination of the platen 2 of a printer device having a mechanism for automatically adjusting the gap between the print head 4 and the platen 2, as shown in FIGS.
The carrier 3 is moved to at least two or more positions, and at the position of each carrier 3,
And the print head 4 are measured, and the first gap correction position in the moving direction of the carrier 3 is obtained from the measured inclination and the current carrier position, and the time until the carrier 3 reaches that position is calculated. set as the time until switching the first excitation phase from over activated cam motor for performing gap correction, addition, and inclination determined, the platen
The distance between carriers when measuring the inclination of 2, and the gap
The cam motor has a higher resolution than the
Travel distance that carrier 3 moves when driven by one pulse
Key look, and the moving distance, the moving speed of the carrier 3
Time required for the carrier 3 to move the moving distance,
The above time is set as an excitation phase switching time interval of the cam motor, and further, the number of driving pulses of the cam motor is obtained from the difference between the gap correction amount at the movement start position of the carrier 3 and the gap correction amount at the movement end position, and printing is performed. At this time, the cam motor is started at the same time as the movement of the carrier 3 is started, and the number of driving pulses and the cam motor are driven at the set excitation phase switching time interval, so that the relative inclination between the platen 2 and the print head 4 is automatically adjusted. The correction is made to keep the gap constant.

【0020】[0020]

【作用】本発明の請求項の発明においては、印字前の
自己修復コマンド入力時、もしくは、電源投入時、用紙
7がプラテン2上にあったとき、該用紙をプラテン2か
ら外れるまで移動または排出し、少なくとも2以上の箇
所にキャリア3を移動させ、各キャリア3の位置におい
て、上記機構を用いてプラテン2と印字ヘッド4との相
対的傾きを測定して記憶手段に記憶し、印字時、上記記
憶手段に記憶されたデータを用いて、ギャップを、キャ
リア位置に応じて補正することにより、プラテン2と印
字ヘッド4の相対的傾きを自動補正しているので、厚さ
の不均一な用紙があっても適正な傾きを測定することが
でき、プラテン2とキャリア摺動軸との平行度を効果的
に補正することができる。
According to the first aspect of the present invention, when the self-repair command is input before printing or when the power is turned on, when the sheet 7 is on the platen 2, the sheet is moved until it comes off the platen 2. discharged, moving the carrier 3 to at least two locations, at the location of each carrier 3, and stored in the measuring and storage means relative inclination between the platen 2 and the print head 4 with the mechanism, during printing Above
Using data stored in storage
By correcting according to the rear position, the platen 2
Since the relative inclination of the character head 4 is automatically corrected , an appropriate inclination can be measured even when there is a sheet of uneven thickness, and the parallelism between the platen 2 and the carrier sliding shaft is effectively reduced. Can be corrected.

【0021】本発明の請求項の発明においては、印字
を伴わないキャリア移動時、キャリア位置に応じたギャ
ップ補正量を求めて、ギャップを補正しながらキャリア
3を移動させているので、次の印字開始時にその位置で
のギャップ補正を行う必要がなく、スループットを向上
させることができる。
In the invention of claim 2 of the present invention, when the carrier is moved without printing, a gap correction amount corresponding to the carrier position is obtained and the carrier 3 is moved while correcting the gap. There is no need to perform gap correction at that position at the start of printing, and the throughput can be improved.

【0022】本発明の請求項の発明においては、プラ
テン2の傾きを測定したときのキャリア3の間隔、求め
た傾き、および、ギャップ補正を行うカムモータの分解
から、ギャップ補正量に対応した該カムモータの駆動
パルス数を求め、キャリア3の移動間隔を、上記駆動パ
ルスに1を加えた値で除することにより、上記カムモ
タが1パルス駆動されたときキャリア3が移動する移動
距離を求め、印字時、移動中のキャリア3の位置を監視
し、キャリア3が、プラテン2の傾き測定時に基準とし
たキャリア基準位置から上記キャリア移動距離により定
まるカムモータを駆動すべき位置を越える毎に、上記カ
ムモータを1パルス駆動することにより、プラテン2と
印字ヘッド4の相対的傾きを自動補正しているので、カ
ムモータを起動するときは常に1パルスの駆動となる。
このため、割り込みから起動をかける際、スルーイング
等の計算が不要となり、起動に要する時間を短縮するこ
とができる。また、正確な位置で補正することができる
ので、適正ギャップとのズレを小さくすることができ
る。
According to the third aspect of the present invention, the distance corresponding to the gap correction amount is determined from the interval of the carrier 3 when the tilt of the platen 2 is measured, the obtained tilt, and the resolution of the cam motor for performing the gap correction. Driving cam motor
The number of pulses is obtained, and the moving interval of the carrier 3 is set to
By dividing the value obtained by adding 1 to the pulse, the Kamumo chromatography
Movement of the carrier 3 when the carrier is driven by one pulse
The distance is obtained , the position of the moving carrier 3 is monitored during printing, and each time the carrier 3 exceeds the position to drive the cam motor determined by the carrier moving distance from the carrier reference position used as a reference when measuring the inclination of the platen 2. In addition, since the relative inclination between the platen 2 and the print head 4 is automatically corrected by driving the cam motor by one pulse, driving of the cam motor is always performed by one pulse.
For this reason, when starting from an interrupt, calculation such as slewing becomes unnecessary, and the time required for starting can be reduced. In addition, since the correction can be performed at an accurate position, the deviation from the appropriate gap can be reduced.

【0023】また、キャリア3の移動間隔をカムモータ
6の駆動パルスに1を加えた値で除することにより、カ
ムモータ6を1パルス駆動するキャリア移動距離を求め
るようにしたので、キャリア移動区間の最後でギャップ
補正がかかることがなく、例えば、駆動パルス数が1パ
ルスの場合、中間位置でギャップ補正をかけることがで
きる。このため、理想的なギャップに近づけることがで
きる。
Further, by dividing the movement distance of the carrier 3 with the value obtained by adding 1 to the drive pulse of the cam motor 6, since to obtain the carrier moving distance for one pulse drives the cam motor 6, the last carrier movement section Therefore, for example, when the number of drive pulses is one, gap correction can be performed at an intermediate position. Therefore, it is possible to approach an ideal gap.

【0024】本発明の請求項4〜7の発明においては、
現在のキャリア3の位置よりも、移動方向へ予め定めら
れた距離(カムモータのセトリング時間にキャリア3が
移動する距離)だけ先のキャリア補正位置を求め、上記
キャリア補正位置をキャリア3の位置として、該キャリ
ア位置が、カムモータ6を駆動すべき位置を越える毎に
カムモータ6を1パルス駆動するようにしたので、パル
スモータにおける励磁相の切り換えの時間遅れを見越し
て起動をかけることができ、適正なギャップ値とのズレ
をより小さくすることができる。
In the invention of claims 4 to 7 of the present invention,
A carrier correction position ahead of the current position of the carrier 3 by a predetermined distance (distance that the carrier 3 moves during the settling time of the cam motor) in the moving direction is obtained, and the carrier correction position is set as the position of the carrier 3. Since the cam motor 6 is driven by one pulse each time the carrier position exceeds the position where the cam motor 6 is to be driven, it is possible to start up in anticipation of the time delay of the excitation phase switching in the pulse motor, and The deviation from the gap value can be further reduced.

【0025】本発明の請求項8の発明においては、最初
のギャップ補正位置を求めて、カムモータ6に起動をか
けてから最初に励磁相を切り換えるまでの時間を設定
し、また、求めた傾きと、プラテン2の傾きを測定した
ときのキャリア3の間隔、およびギャップ補正を行うカ
ムモータの分解能より、カムモータが1パルス駆動され
たときキャリア3が移動する移動距離を求め、該移動距
離と、キャリア3の移動 速度によりキャリア3が該移動
距離を移動するに要する時間を求め、カムモータ6の励
磁相切り換え時間間隔として設定し、さらに、ギャップ
補正量からカムモータ6の駆動パルス数を求め、印字
時、キャリア3の移動開始と同時にカムモータ6を起動
し、カムモータ6を上記設定された励磁相切り換え時間
間隔で求めた駆動パルス数だけ駆動するようにしたの
で、キャリア移動中に1パルス毎にカムモータを起動す
る必要がなく、キャリア移動中の処理装置の負担を軽減
させることができる。特に、割り込み処理から起動をか
ける時間的余裕がないときなどに有効となる。また、メ
インルーチンでキャリア移動中にキャリア位置を監視す
る必要がないので、別処理に時間をさくことができる。
In the invention of claim 8 of the present invention, the time from the start of the cam motor 6 to the first switching of the excitation phase is determined after the initial gap correction position is obtained. , The inclination of the platen 2 was measured
Of the carrier 3 and the gap
The cam motor is driven by one pulse according to the resolution of the
The distance traveled by the carrier 3 when the
The carrier 3 moves according to the separation speed and the moving speed of the carrier 3
The time required to move the distance is obtained, set as the excitation phase switching time interval of the cam motor 6, and further, the number of drive pulses of the cam motor 6 is obtained from the gap correction amount. Since the cam motor 6 is started and driven by the number of drive pulses obtained at the set excitation phase switching time interval, it is not necessary to start the cam motor for each pulse during the carrier movement. The burden on the device can be reduced. This is particularly effective when there is not enough time to start from interrupt processing. Further, since it is not necessary to monitor the carrier position during the movement of the carrier in the main routine, it is possible to save time for another process.

【0026】[0026]

【実施例】図2は本発明の実施例のシステム構成を示す
図であり、同図において、21は図19に示したAHG
機構を備えたプリンタ装置であり、プリンタ装置21に
おいて、図19に示したものと同一のものには同一の符
号が付されており、71はプラテン、72は印字ヘッ
ド、73はキャリア、74は軸、76は自動紙厚調整用
のAHGセンサ、79はAHG調整用カム、80はカム
79の位置を検出するカム・ホームポジション・セン
サ、81はカム79を回転させるカム・モータ、82は
キャリア駆動用のキャリア・モータである。また、22
はプリンタ装置21と処理装置23との間を接続するイ
ンタフェース、23はプリンタ装置21を制御する処理
装置、24はプラテンの傾きを自動補正するための補正
データを格納した不揮発性RAM、25はプログラム、
データを格納したメモリである。
DETAILED DESCRIPTION FIG. 2 is a diagram showing a system configuration of an embodiment of the present invention, reference numeral 21 is shown in FIG. 19 AHG
In the printer device 21, the same components as those shown in FIG. 19 are denoted by the same reference numerals, 71 is a platen, 72 is a print head, 73 is a carrier, and 74 is a carrier. A shaft, 76 is an AHG sensor for automatic paper thickness adjustment, 79 is an AHG adjustment cam, 80 is a cam home position sensor for detecting the position of the cam 79, 81 is a cam motor for rotating the cam 79, and 82 is a carrier It is a carrier motor for driving. Also, 22
Is an interface for connecting the printer device 21 and the processing device 23, 23 is a processing device for controlling the printer device 21, 24 is a nonvolatile RAM storing correction data for automatically correcting the inclination of the platen, 25 is a program ,
This is a memory that stores data.

【0027】図2に示すプリンタ装置において、自動紙
厚調整時においては、図19で説明した手法によりプラ
テン71と印字ヘッド72間のギャップ調整を行う。ま
た、プリンタの出荷時、あるいは動作開始時などに、予
め上記AHG機構を利用して印字ヘッド72とプラテン
71間の傾きを求めて、補正データを不揮発性RAM2
4に格納しておき、印字中、不揮発性RAM24に格納
された補正データに基づき、カム・モータ81を駆動し
てプラテン71の傾きの自動補正を行う。
[0027] In the printer apparatus shown in FIG. 2, in the automatic paper thickness adjustment, perform gap adjustment between the platen 71 and the print head 72 by the method described with reference to FIG. 19. Further, when the printer is shipped or when the operation is started, the inclination between the print head 72 and the platen 71 is obtained in advance by using the AHG mechanism, and the correction data is stored in the nonvolatile RAM 2.
4, the cam motor 81 is driven based on the correction data stored in the nonvolatile RAM 24 during printing to automatically correct the inclination of the platen 71.

【0028】図3はプラテンの傾きの測定動作を説明す
る図であり、同図において、71はプラテン、72は印
字ヘッド、79はカムを示している。次に、図2、図3
により本発明の実施例の前提となるプラテンの傾きの測
定について説明する。まず、プリンタ装置の出荷時等
に、次のようにしてプラテンの傾きを測定する。
FIG. 3 is a diagram for explaining the operation of measuring the inclination of the platen. In FIG. 3, reference numeral 71 denotes a platen, 72 denotes a print head, and 79 denotes a cam. Next, FIGS. 2 and 3
The measurement of the inclination of the platen, which is a premise of the embodiment of the present invention, will be described. First, when the printer is shipped, the inclination of the platen is measured as follows.

【0029】キャリア73を図3(a)のA点まで移動
させ(Pから距離a)、A点で前記したAHG機構を動
作させる。すなわち、図2のカム・モータ81を駆動し
て、カム79を回転させ、AHGセンサ76が動作する
までプラテン71を上動させる。そして、AHGセンサ
76が動作したときのカム79の回転角度θA を求め、
図2の不揮発性RAM24に記憶させる。
The carrier 73 is moved to the point A in FIG. 3A (a distance a from P), and the AHG mechanism is operated at the point A. That is, the cam motor 81 of FIG. 2 is driven to rotate the cam 79, and the platen 71 is moved upward until the AHG sensor 76 operates. Then, the rotation angle θA of the cam 79 when the AHG sensor 76 operates is obtained,
It is stored in the nonvolatile RAM 24 of FIG.

【0030】ついで、キャリア73を図3(a)のB点
まで移動させ(Pからの距離b)、上記と同様、B点で
AHG機構を動作させ、AHGセンサ76が動作したと
きのカム79の回転角度θB を求め、図2の不揮発性R
AM24に記憶させる。上記のようにA点とB点におい
て、カム79の回転角度θA とθB を求め、A点とB点
の距離をL(=a−b)としたとき、次の式から印字ヘ
ッド72の先端とプラテン71間の傾きの勾配を求め
る。
Next, the carrier 73 is moved to the point B in FIG. 3 (a) (distance b from P), and the AHG mechanism is operated at the point B in the same manner as described above, and the cam 79 when the AHG sensor 76 operates is operated. Of the non-volatile R in FIG.
It is stored in AM24. As described above, the rotation angles θA and θB of the cam 79 are obtained at the points A and B, and when the distance between the points A and B is L (= ab), the tip of the print head 72 is obtained from the following equation. And the platen 71 are determined.

【0031】傾きの勾配=(θA −θB )/L また、上記の動作を、複数点について行い、各点のPか
らの距離とその点におけるカム79の回転角度θから、
印字ヘッド72の先端とプラテン71の傾き曲線を例え
ば最小2乗法等により近似して、キャリア位置とカム補
正量のマップ・データを得て、上記した不揮発性RAM
24に記憶させることもできる。
The inclination of the inclination = (θA−θB) / L The above operation is performed for a plurality of points, and the distance from each point to P and the rotation angle θ of the cam 79 at that point are calculated as follows.
The tip of the print head 72 and the inclination curve of the platen 71 are approximated by, for example, the least-squares method, etc., to obtain map data of the carrier position and the cam correction amount.
24.

【0032】図4、図5は上記したプラテンの傾きの測
定処理を示すフローチャートである。同図において、ス
テップS1でキャリア73およびカム79をホーム・ポ
ジションに移動し、ステップS2においてキャリア73
を移動させる。ステップS3において、キャリア73が
距離L=aまで移動したか否かを判別し、移動していな
い場合にはステップS2に戻る。そして、この処理を繰
り返して、キャリア73を距離L=aまで移動させる。
FIGS. 4 and 5 are flow charts showing the above-described platen inclination measuring process. In the figure, the carrier 73 and the cam 79 are moved to the home position in step S1, and the carrier 73 and
To move. In step S3, it is determined whether or not the carrier 73 has moved to the distance L = a, and if not, the process returns to step S2. Then, this process is repeated to move the carrier 73 to the distance L = a.

【0033】ステップS4において、カム79を+方向
に回転させ、ステップS5において、AHGセンサ76
がオンになったか否かを判別する。AHGセンサ76が
オンでない場合には、ステップS4に戻り、再びカム7
9を+方向に回転させ、ステップS5において、AHG
センサ76がオンであるか否かを判別する。上記動作を
繰り返し、AHGセンサ76がオンになると、ステップ
S6にいき、カム79の回転角度θa を算出する。
In step S4, the cam 79 is rotated in the + direction, and in step S5, the AHG sensor 76 is rotated.
It is determined whether or not is turned on. If the AHG sensor 76 is not on, the process returns to step S4, and the cam 7
9 in the + direction, and in step S5, AHG
It is determined whether or not the sensor 76 is on. The above operation is repeated, and when the AHG sensor 76 is turned on, the process proceeds to step S6, and the rotation angle θa of the cam 79 is calculated.

【0034】以上のようにして、L=b〜L=zの複数
の点についてAHGセンサ76によりカム79の回転角
度θbないしθz を求めて補正量を算出し(図4のステ
ップS7〜S9、図5のステップS10〜S14)、図
5のステップS15において、マップ・データを作成し
て、ステップS16において、マップ・データを不揮発
性RAM24に格納する(ステップS16)。
As described above, for the plurality of points L = b to L = z, the AHG sensor 76 calculates the rotation angles θb to θz of the cam 79 to calculate the correction amount (steps S7 to S9 in FIG. 4). In steps S10 to S14 in FIG. 5, map data is created in step S15 in FIG. 5, and in step S16, the map data is stored in the nonvolatile RAM 24 (step S16).

【0035】上記処理をプリンタ装置の電源投入時、あ
るいは、自己修復コマンドが入力されたときに行うこと
により、輸送時における衝撃、振動、あるいは、経時変
化に対して、プラテン71と印字ヘッド72の先端との
間の平行度を測定することができる。なお、上記プラテ
ンの傾き測定処理は、均一な厚さの用紙がプラテン上の
傾き補正量測定位置の全位置にある場合には可能である
が、用紙の幅が狭い場合には、用紙を排出しなければな
らない。
The above processing is performed when the power of the printer device is turned on or when a self-repair command is input, so that the platen 71 and the print head 72 can be protected against shock, vibration, or aging over the course of transportation. The parallelism with the tip can be measured. Note that the platen inclination measurement process can be performed when a sheet of uniform thickness is located at all positions of the inclination correction amount measurement position on the platen, but when the sheet is narrow, the sheet is discharged. Must.

【0036】そこで、図6に示すように、プラテン71
の近傍にセンサSを設け、プリンタの自己修復コマンド
入力時、もしくは、電源投入時に上記センサSにより用
紙の存在を検出し、用紙がプラテン上にあるときには、
その用紙をプラテンからはずれるまで移動、もしくは、
排出した後に傾きを求めるように構成することができ
る。
Therefore, as shown in FIG.
Is provided in the vicinity of the printer, when the self-repair command of the printer is input or when the power is turned on, the sensor S detects the presence of the sheet, and when the sheet is on the platen,
Move the paper until it comes off the platen, or
It can be configured to determine the tilt after discharging.

【0037】以上のようなプラテンの傾きの測定を行っ
たのち、印字する際には次のようにして、印字ヘッド7
2の先端とプラテン71間のギャップの調整を行う。す
なわち、図2の処理装置23は、キャリア・モータ82
を駆動してキャリア73を移動させ印字する際、キャリ
ア73の位置L’をキャリア・モータ82の駆動量等よ
り求め、図3(b)に示すようにキャリア73の位置
L’に基づき、カム79の回転量θX を求めて、カム・
モータ79を駆動する。
After measuring the platen inclination as described above, when printing, the print head 7 is printed as follows.
Adjustment of the gap between the tip of No. 2 and the platen 71 is performed. That is, the processing device 23 of FIG.
Is driven to move the carrier 73 for printing, the position L 'of the carrier 73 is obtained from the driving amount of the carrier motor 82 or the like, and based on the position L' of the carrier 73 as shown in FIG. The rotation amount θX of 79
The motor 79 is driven.

【0038】次に、本発明の実施例について説明する。 (1)プラテン上に用紙が載置されている状態でギャッ
プ調整を行った場合のギャップ補正 ところで、前記した自動紙厚調整機構は、プラテン上で
あっても、あるいは、プラテン上に載置された用紙上で
あっても、ギャップ調整を行った箇所でのギャップを一
定とすることができる(用紙上でギャップ調整を行った
場合には、用紙上面からのギャップとなる)。
Next, an embodiment of the present invention will be described. (1) Gap correction when gap adjustment is performed while paper is placed on the platen By the way, the automatic paper thickness adjustment mechanism described above can be mounted on the platen or mounted on the platen. The gap at the place where the gap adjustment has been made can be constant even on a sheet of paper that has been adjusted (if the gap adjustment is made on the sheet, the gap will be from the top of the sheet).

【0039】このギャップは出荷前に装置のバラツキを
吸収するために一定に調整されている。従って、図7に
示すように、プラテン71がgだけ傾いていた場合で
も、位置Aでギャップ調整を行った結果のギャップGA
と、位置Bでギャップ調整を行った結果のギャップGB
が同じになるように各位置のプラテン71はHの高さま
で上昇する。つまり、位置Bでギャップ調整を行った時
には、プラテン71は位置Aでギャップ調整ときに比べ
gだけ上昇する。このgが印字時、キャリアが位置Aか
ら位置Bまで移動する時に補正しなければならない量と
なる。
This gap is adjusted to be constant before shipment in order to absorb variations in the apparatus. Therefore, as shown in FIG. 7, even when the platen 71 is tilted by g, the gap GA obtained as a result of performing the gap adjustment at the position A.
And the gap GB resulting from the gap adjustment at the position B.
The platen 71 at each position rises to the height of H so that is the same. That is, when the gap adjustment is performed at the position B, the platen 71 rises by g compared to when the gap adjustment is performed at the position A. This g is the amount that must be corrected when the carrier moves from position A to position B during printing.

【0040】上記のようにプラテン71がgだけ傾いて
いる状態において、プラテン上に用紙が載置されている
ときにギャップ調整を行った場合、プラテンの補正量は
次のようになる。図8はプラテン71上に用紙が載置さ
れている状態において、用紙31上の予め定められた位
置Cでギャップ調整を行った状態を示す図である。
When the gap adjustment is performed while the paper is placed on the platen with the platen 71 inclined by g as described above, the correction amount of the platen is as follows. FIG. 8 is a diagram illustrating a state where the gap adjustment is performed at a predetermined position C on the sheet 31 in a state where the sheet is placed on the platen 71.

【0041】同図において、位置Cにおいては、プラテ
ン71はHの高さまで上昇している。また、位置Dにお
いては、プラテン71はHの高さまで上昇していないの
で、位置Cでギャップ調整した場合に、位置Dで印字す
る時はg’だけプラテンを上昇させるような補正をかけ
る必要があり、その補正量は、g’=g(L’/L)と
なる。なお、L’は位置Cと位置D間の距離、Lは図7
における位置Aと位置B間の距離である。
In the same figure, at a position C, the platen 71 has risen to the height of H. In addition, since the platen 71 does not rise to the height H at the position D, it is necessary to perform a correction to raise the platen by g ′ when printing at the position D when the gap is adjusted at the position C. The correction amount is g ′ = g (L ′ / L). Note that L ′ is the distance between the position C and the position D, and L is the distance between FIG.
Is the distance between the position A and the position B.

【0042】また、印字時にキャリアが位置Dから位置
Cを越えて位置Cより左側の位置へ移動した時には、逆
に同図の状態よりプラテンを下げる方向に補正をかける
必要がある。すなわち、プラテン71上に用紙が載置さ
れ、キャリアが位置Cにあるときにギャップ調整が行わ
れた場合、位置Cを基準とした補正量は図8に示すよう
になる。
When the carrier moves from the position D to the position on the left side of the position C from the position C at the time of printing, it is necessary to make a correction to lower the platen from the state shown in FIG. That is, when the gap adjustment is performed when the sheet is placed on the platen 71 and the carrier is at the position C, the correction amount based on the position C is as shown in FIG.

【0043】以上のように、プラテン上に用紙が載置さ
れているときに、位置Cで用紙の厚さに応じたギャップ
調整を行った場合には、印字時、図8に示すように、ギ
ャップ調整位置(位置C)のカム位置θを基準として、
プラテン位置を補正すればよい。図9は上記のように位
置Cにおいてギャップ調整を行った場合のプラテンの位
置を補正する処理を示すフローチャートである。
As described above, when the gap is adjusted at the position C according to the thickness of the sheet while the sheet is placed on the platen, at the time of printing, as shown in FIG. Based on the cam position θ at the gap adjustment position (position C),
What is necessary is just to correct the platen position. FIG. 9 is a flowchart showing a process for correcting the position of the platen when the gap adjustment is performed at the position C as described above.

【0044】同図のステップS1において、ギャップ調
整位置にキャリアを移動し、ステップS2において、ギ
ャップ調整を実行し、カムの位置θを定める。ステップ
S3において、プラテンの傾きデータを読み出し、ステ
ップS4において、印刷を開始する。印字中、ステップ
S5において、ギャップ調整位置を基準とした現在のキ
ャリア位置に対して補正量を求め、ステップS6におい
て、上記カム位置θを上記補正量に基づき補正し、補正
したカム位置を求めてカムを回転させる。
In step S1, the carrier is moved to the gap adjustment position, and in step S2, the gap is adjusted to determine the cam position θ. In step S3, platen inclination data is read, and in step S4, printing is started. During printing, in step S5, a correction amount is calculated for the current carrier position with reference to the gap adjustment position. In step S6, the cam position θ is corrected based on the correction amount, and the corrected cam position is calculated. Turn the cam.

【0045】印刷が終了すると、ステップS7からステ
ップS8に行き、全印刷データが終了したか否かを判別
し、終了していない場合には、ステップS4に戻り上記
処理を繰り返す。ところで、図8の場合においては、ギ
ャップ調整位置Cを基準位置としてプラテンの位置を補
正する場合について説明したが、プラテンの傾きを測定
した位置Aを基準位置としてプラテン位置を補正するこ
ともできる。
When printing is completed, the process proceeds from step S7 to step S8, where it is determined whether or not all print data has been completed. If not, the process returns to step S4 and repeats the above processing. By the way, in the case of FIG. 8, the case where the position of the platen is corrected using the gap adjustment position C as the reference position has been described. However, the platen position can be corrected using the position A where the inclination of the platen is measured as the reference position.

【0046】次に、上記位置Aを基準位置として、プラ
テンの傾きを補正する実施例について説明する。図10
は本実施例を説明する図であり、同図の実線は位置Cに
おいて、ギャップ調整を行った場合のプラテンの位置、
点線は、位置Aにおいてギャップ調整を行った場合のプ
ラテンの位置を示している。
Next, an embodiment for correcting the inclination of the platen using the position A as a reference position will be described. FIG.
Is a diagram for explaining the present embodiment, the solid line in the figure, the position of the platen when the gap adjustment is performed at the position C,
The dotted line indicates the position of the platen when the gap adjustment is performed at the position A.

【0047】同図において、プラテンの傾きを測定した
基準位置Aから位置Cまでの距離をL”とすると、位置
Cでギャップ調整を行った場合、位置Cでの補正量は
g”=g(L”/L)となるので、同図の実線の状態で
は、位置Aにおいて逆にg”だけプラテンが余計に上が
っていることとなる。すなわち、基準位置Aでギャップ
調整を行ったとすると、プラテンおよび用紙の高さは同
図の点線で示すようになるはずであるから、位置Cでギ
ャップを調整を行った高さよりもg”だけ下がった位置
が基準位置Aでギャップ調整を行ったときのプラテンの
高さであると求めることができる。
In the same figure, assuming that the distance from the reference position A to the position C where the inclination of the platen is measured is L ″, when the gap adjustment is performed at the position C, the correction amount at the position C is g ″ = g ( L ”/ L), the platen is further increased by g ″ at the position A in the state of the solid line in FIG. That is, if the gap is adjusted at the reference position A, the heights of the platen and the paper should be as shown by the dotted lines in FIG. The height of the platen when the gap adjustment is performed at the reference position A can be obtained.

【0048】したがって、上記のようにして求めた点線
のプラテン位置を基準位置として、位置Aからの距離に
応じて印字時のプラテン高さを求めれば、位置Aを基準
位置としたプラテンの補正量を求めることができる。例
えば、位置Dで印字をするときには、同図の点線のプラ
テン位置に対してg’=g(L’/L)の補正をかけれ
ばよい。
Therefore, by using the platen position of the dotted line obtained as described above as a reference position and obtaining the platen height at the time of printing according to the distance from position A, the correction amount of the platen using position A as the reference position Can be requested. For example, when printing is performed at the position D, it suffices that g ′ = g (L ′ / L) be corrected for the platen position indicated by the dotted line in FIG.

【0049】なお、図10において、傾き測定時の基準
位置Aが印字領域内にある場合、上記基準位置Aより左
側の位置では、プラテンを補正する方向が、位置Aから
右側の部分における補正の方向と逆になる。このため、
補正量の計算が複雑になるとともに、キャリアが一方向
に移動しているときプラテンを正負方向に移動しなけれ
ばならず補正動作が複雑化する。
In FIG. 10, when the reference position A at the time of measuring the inclination is within the printing area, the direction of correcting the platen at the position on the left side of the reference position A is the direction of correction on the right side of the position A. Opposite to the direction. For this reason,
The calculation of the correction amount becomes complicated, and the platen must be moved in the positive and negative directions when the carrier is moving in one direction, which complicates the correction operation.

【0050】そこで、図11に示すように、プラテンの
傾きを求める基準位置Aを印字範囲外とする。これによ
り、補正方向を一方向とすることができ、補正を単純化
することができる。また、図11に示すように、プラテ
ンの傾きを求める基準位置Bを印字範囲外としておけ
ば、測定領域の外側にキャリアがあるときには、補正量
を0または最大補正値に限定でき、補正を容易にするこ
とができる。
Therefore, as shown in FIG. 11, the reference position A for obtaining the inclination of the platen is set outside the printing range. Thereby, the correction direction can be made one direction, and the correction can be simplified. Further, as shown in FIG. 11, if the reference position B for calculating the inclination of the platen is set outside the printing range, the correction amount can be limited to 0 or the maximum correction value when the carrier is outside the measurement region, so that the correction can be easily performed. Can be

【0051】さらに、狭い測定間隔でプラテンの傾き測
定を行うと、測定誤差が大きくなるので、位置Bも位置
Aと同様印字領域の外側に位置させるのが望ましい。図
12は図10の実施例の処理を示すフローチャートであ
る。同図のステップS1において、ギャップ調整位置
(図9の位置C)へキャリアを移動し、ステップS2に
おいて、ギャップ調整を実行し、そのときのカムの位置
をθとする。
Further, if the inclination of the platen is measured at a narrow measurement interval, a measurement error increases. Therefore, it is desirable that the position B is located outside the printing area similarly to the position A. FIG. 12 is a flowchart showing the processing of the embodiment of FIG. The carrier is moved to the gap adjustment position (position C in FIG. 9) in step S1 of FIG. 9, and the gap is adjusted in step S2, and the cam position at that time is set to θ.

【0052】ステップS3において、プラテンの傾きデ
ータを読み出し、ステップS4において、前記式g”=
g(L”/L)によりギャップ調整位置での補正量g”
を求める。ステップS5において、上記θとg”より傾
き測定時のキャリア基準位置(図9の位置A)でギャッ
プ調整した場合のカム位置θ’を逆算する。ステップS
6において、印刷を開始し、ステップS7において、傾
き測定時のキャリア基準位置(図9の位置A)を基準と
した現在のキャリア位置に対して補正量を求める。
In step S3, the platen inclination data is read, and in step S4, the expression g ″ =
The correction amount g ″ at the gap adjustment position is determined by g (L ″ / L).
Ask for. In step S5, the cam position θ ′ when the gap is adjusted at the carrier reference position (position A in FIG. 9) at the time of inclination measurement from θ and g ″ is calculated backward.
In 6, printing is started, and in step S7, a correction amount is obtained for the current carrier position with reference to the carrier reference position (position A in FIG. 9) at the time of measuring the inclination.

【0053】ステップS8において、上記補正量に基づ
き、ステップS5で求めたカム位置θ’を補正し、補正
したカム位置へカムを回転する。印刷が終了すると、ス
テップS9からステップS10に行き、全印刷データが
終了したか否かを判別し、終了していない場合には、ス
テップS4に戻り上記処理を繰り返す。 (2)印字を伴わないキャリアの移動時におけるプラテ
ンの傾き補正処理 図13は印字を伴わないキャリア移動時におけるプラテ
ンの傾き補正処理を説明する図である。同図(a)はキ
ャリアリターンの場合を示し、同図(b)はキャリアエ
スーケープの場合を示しており、同図中のハッチングの
部分は印字が行われる印字箇所を示し、矢印はキャリア
の移動方向を示している。
In step S8, the cam position θ 'obtained in step S5 is corrected based on the correction amount, and the cam is rotated to the corrected cam position. When printing is completed, the process proceeds from step S9 to step S10, where it is determined whether or not all print data has been completed. If not, the process returns to step S4 to repeat the above processing. (2) Platen Tilt Correction Process When Carrier Moves without Printing FIG. 13 is a diagram illustrating platen tilt correction processing when the carrier moves without printing. FIG. 7A shows the case of carrier return, and FIG. 7B shows the case of carrier escape. In FIG. 7, hatched portions indicate printing positions where printing is performed, and arrows indicate the carrier positions. The moving direction is shown.

【0054】キャリアリターンは場合は、同図ので印
字を行ったとき、の終了時には、の開始時に対して
プラテンの補正量が変化しているので、カム位置が変わ
っている。従って、でキャリアリターンするとき補正
をかけずにキャリア移動を行うと、次の印字を行うの
開始時前に補正しなければならず、スループットが低下
する。
In the case of carrier return, when the printing is performed as shown in the figure, the cam position has changed since the correction amount of the platen has changed from the start at the end of the printing. Therefore, if the carrier is moved without correction when returning the carrier, the correction must be made before the start of the next printing, and the throughput decreases.

【0055】そこで、本実施例においては、キャリアが
リターンするにおいて、補正かけつつ移動させる。こ
れにより、の終了時には次の印字開始に必要なギャッ
プに変わっているので、上記のように印字開始前に補正
をすることなく、次の印字を起動することができ、スル
ープットを向上させることができる。また、キャリアエ
スケープの場合においても、図13(b)に示すよう
に、印字を行わないのときに、ギャップ補正をかけな
がら移動すれば、同様に、印字開始前に補正をすること
なくの印字開始時に必要なギャップにすることがで
き、そのまま印字を起動することができる。 (3)カムモータとしてパルスモータを用いた場合のプ
ラテンの傾き補正処理 次に、図2に示したカムモータ81としてパルスモータ
を用い、パルス単位でプラテンの傾き補正を行う場合の
処理について説明する。
Therefore, in this embodiment, when the carrier returns, the carrier is moved while being corrected. As a result, at the end of the printing, the gap required for the next printing start has been changed, so that the next printing can be started without correction as described above before the printing is started, and the throughput can be improved. it can. Also, in the case of carrier escape, as shown in FIG. 13B, when printing is not performed, if movement is performed while applying gap correction, printing without correction before printing is similarly performed. The necessary gap can be set at the start, and printing can be started as it is. (3) Platen Tilt Correction Processing When a Pulse Motor is Used as the Cam Motor Next, a description will be given of a processing in which a pulse motor is used as the cam motor 81 shown in FIG. 2 and the platen tilt is corrected in pulse units.

【0056】一般に、パルスモータの励磁相を切り換え
る際には、励磁相切り換えの所定時間前にモータ電流値
を大きくしてモータの励磁相を安定させる必要がある。
図14は励磁相切り換え時のタイムチャートを示す図で
あり、パルスモータの励磁相切り換え時には、同図に示
すように、先ず電流制御信号によりモータに流れる電流
値を大きくしてモータの励磁状態を安定にさせる。そし
て、セトリング時間(約5ms)後に励磁相を切り換
え、さらにセトリング時間後に電流制御信号をオフにし
て電流値を小さくして駆動を終了する。すなわち、パル
スモータを駆動する場合には、実際に励磁相を切り換え
る時点よりセトリング時間前にパルスモータを起動する
必要がある。
Generally, when the excitation phase of the pulse motor is switched, it is necessary to increase the motor current value a predetermined time before the excitation phase switching to stabilize the excitation phase of the motor.
FIG. 14 is a diagram showing a time chart at the time of the excitation phase switching. At the time of the excitation phase switching of the pulse motor, as shown in FIG. 14, first, the current value flowing to the motor is increased by the current control signal to change the excitation state of the motor. Let it stabilize. Then, after the settling time (about 5 ms), the excitation phase is switched, and after the settling time, the current control signal is turned off to reduce the current value, and the driving is completed. That is, when the pulse motor is driven, it is necessary to start the pulse motor before the settling time before the actual switching of the excitation phase.

【0057】パルスモータは上記特性を備えており、カ
ムモータとしてパルスモータを用いる場合には、上記特
性を考慮してモータを制御する必要がある。次に、キ
ャリア移動開始後、キャリアが所定位置に達する毎にカ
ムモータを1パルスずつ起動してカムモータの励磁相を
切り換えることによりギャップ補正を行う実施例と、
キャリアの移動開始前に、予め、セトリング時間、補正
時間間隔、駆動パルス数を設定しておき、キャリア移動
開始直前に、カムモータを起動し、上記予め設定された
値によりカムモータを駆動することにより、ギャップ補
正を行う実施例について説明する。 (a)実施例1 図15は上記の1パルスずつカムモータを起動してギ
ャップ補正を行う場合の補正間隔を求める方法を説明す
る図であり、同図(a)は補正間隔の計算処理手順を示
し、(b)はキャリアの移動量と補正間隔の関係を示し
ている。
The pulse motor has the above characteristics. When a pulse motor is used as the cam motor, it is necessary to control the motor in consideration of the above characteristics. Next, after the carrier movement is started, each time the carrier reaches a predetermined position, the cam motor is started one pulse at a time, and the excitation phase of the cam motor is switched to perform gap correction.
Before starting the movement of the carrier, the settling time, the correction time interval, the number of driving pulses are set in advance, and immediately before the start of the movement of the carrier, the cam motor is started and the cam motor is driven by the preset value, An embodiment for performing the gap correction will be described. (A) Embodiment 1 FIG. 15 is a diagram for explaining a method of calculating a correction interval when the above-described cam correction is performed by activating the cam motor one pulse at a time, and FIG. (B) shows the relationship between the amount of carrier movement and the correction interval.

【0058】補正間隔ΔL、すなわち、カムモータを1
パルス駆動するキャリアの移動量ΔLを求めるには、同
図(a)に示すように、前記図7に示すプラテンの傾き
に相当するギャップ差をカムモータの分解能で割ってカ
ムモータの駆動パルス数gを求め、該駆動パルス数gに
1を加えた値で距離Lを割る。これにより、同図(b)
に示すように、キャリアが距離L移動したときのプラテ
ンの補正量を上記ギャップ差とすることができる。
The correction interval ΔL, that is, the cam motor
In order to obtain the moving amount ΔL of the carrier to be pulse-driven, as shown in FIG. 7A, the gap difference corresponding to the inclination of the platen shown in FIG. Then, the distance L is divided by a value obtained by adding 1 to the number g of driving pulses. As a result, FIG.
As shown in (1), the correction amount of the platen when the carrier moves by the distance L can be set as the gap difference.

【0059】ここで、図15では、駆動パルス数gに1
を加えた値で距離Lを割ることにより、カムモータを1
パルス駆動するキャリアの移動量ΔLを求めているが、
このようにすることにより、プラテンと印字ヘッドのギ
ャップを理想的な値に近づけることができる。すなわ
ち、駆動パルス数gに1を加えず、補正をかける間隔を
「ΔL=L/(駆動パルス数)」とすると、図16
(a)に示すように、駆動パルス数が1パルスの場合に
は、キャリアがBに達するまで補正がかからなくなる。
また、駆動パルス数が2パルスの場合も同様に、図16
(c)に示すように、キャリアがBに達するまで2パル
ス目の補正がかからなくなる。
Here, in FIG. 15, the number of drive pulses g is 1
By dividing the distance L by the value obtained by adding
Although the moving amount ΔL of the carrier to be pulsed is obtained,
By doing so, the gap between the platen and the print head can be made closer to the ideal value. That is, if 1 is not added to the number g of drive pulses and the interval for performing correction is “ΔL = L / (number of drive pulses)”, FIG.
As shown in (a), when the number of driving pulses is one, the correction is not applied until the carrier reaches B.
In the case where the number of drive pulses is two, similarly, FIG.
As shown in (c), the second pulse is not corrected until the carrier reaches B.

【0060】一方、図15に示すように、駆動パルス数
gに1を加えた値で距離Lを割ってΔLを求めれば、駆
動パルスが1パルスの場合には、図16(b)に示すよ
うに中間位置で補正をかけることができ、また、駆動パ
ルスが2パルスの場合でも、図16(d)に示すように
キャリアがBに達する前に2パルス目の補正をかけるこ
とができる。
On the other hand, as shown in FIG. 15, if the distance L is obtained by dividing the distance L by a value obtained by adding 1 to the number g of the driving pulses, if the driving pulse is one pulse, it is shown in FIG. The correction can be performed at the intermediate position as described above, and even when the driving pulse is two pulses, the correction of the second pulse can be performed before the carrier reaches B as shown in FIG.

【0061】図17は、上記第1の実施例の処理手順を
示す図であり、同図により本実施例を説明する。まず、
図15(a)に示した手順により補正をかけるキャリア
の移動距離ΔLを求めておく。ついで、図17のステッ
プS1において、現在のキャリア位置から最初のプラテ
ンの補正位置Xを求め、ステップS2において、キャリ
アモータを起動する。
FIG. 17 is a diagram showing a processing procedure of the first embodiment, and this embodiment will be described with reference to FIG. First,
The moving distance ΔL of the carrier to be corrected is determined by the procedure shown in FIG. Next, in step S1 of FIG. 17, the first correction position X of the platen is obtained from the current carrier position, and in step S2, the carrier motor is started.

【0062】次に、キャリア移動に伴う割り込みルーチ
ン内で現在の速度に対応したキャリア位置補正値ΔPN
、ΔPH (ΔPN <ΔPH )を選択し、現在のキャリ
アの位置Pを読み出してその値に選択した補正値ΔPN
、ΔPH を移動方向によって加算、または、減算して
セトリング時間後のキャリア位置を求める。これによ
り、セトリング時間だけ先にカムモータの駆動を開始す
ることができ、補正値の変化点に励磁相の切り換えタイ
ミングを一致させることができる。
Next, the carrier position correction value ΔPN corresponding to the current speed in the interrupt routine accompanying the carrier movement.
, ΔPH (ΔPN <ΔPH), reads the current carrier position P, and selects the correction value ΔPN selected for that value.
, ΔPH are added or subtracted depending on the moving direction to determine the carrier position after the settling time. Thus, the driving of the cam motor can be started earlier by the settling time, and the switching timing of the excitation phase can be matched with the change point of the correction value.

【0063】すなわち、ステップS3において、P=現
在のキャリア位置とし、ステップS4において、キャリ
アの移動方向を判別する。キャリアの移動方向が逆方向
〔図14(b)において左方向〕の場合には、ステップ
S5に行き、高速印字であるか否かを判別し、高速印字
でない場合には、ステップS7に行き、キャリアの位置
P=P−ΔPN とし、高速印字の場合には、ステップS
8に行き、P=P−ΔPH とする。
That is, in step S3, P is set to the current carrier position, and in step S4, the moving direction of the carrier is determined. If the moving direction of the carrier is the reverse direction (left direction in FIG. 14 (b)), go to step S5, determine whether or not high-speed printing. If not, go to step S7. Carrier position P = P−ΔPN, and for high-speed printing, step S
8 and assume that P = P-.DELTA.PH.

【0064】また、キャリアの移動方向が正方向〔図1
4(b)において右方向〕の場合には、ステップS6に
行き、高速印字であるか否かを判別し、高速印字でない
場合には、ステップS9行き、キャリアの位置P=P+
ΔPN とし、高速印字の場合には、ステップS10行
き、P=P+ΔPH とする。なお、上記補正値ΔPN 、
ΔPH は、通常印字時および高速印字時のキャリア移動
速度におけるセトリング時間内のキャリア移動量から求
めることができ、上記補正値をキャリアの何種類かの移
動速度に合わせて予め複数個求めておけば、キャリアの
移動速度に応じて一意的に選択することができる。
Further, the moving direction of the carrier is positive (see FIG. 1).
4 (b), go to step S6 to determine whether or not high-speed printing is to be performed. If not, go to step S9 and go to step S9 where the carrier position P = P +
.DELTA.PN, and in the case of high-speed printing, go to step S10 and set P = P + .DELTA.PH. Note that the correction value ΔPN,
ΔPH can be obtained from the amount of carrier movement within the settling time at the carrier moving speed during normal printing and high-speed printing. If a plurality of the above correction values are obtained in advance in accordance with several types of carrier moving speeds, , Can be uniquely selected according to the moving speed of the carrier.

【0065】また、補正値ΔPN 、ΔPH は、セトリン
グ時間とキャリア移動速度から毎回計算で求めることも
できる。ついで、カムモータを制御する制御装置は、移
動中のキャリアの位置が上記補正位置を越えたか否か
を、キャリア移動に伴う割り込み処理、もしくは、キャ
リア移動を監視するメインルーチンで監視し、キャリア
が上記補正位置Xに達すると、カムモータを1パルス駆
動する。
The correction values ΔPN and ΔPH can also be obtained by calculation each time from the settling time and the carrier moving speed. Next, the control device that controls the cam motor monitors whether or not the position of the moving carrier has exceeded the correction position by an interrupt process accompanying the carrier movement or a main routine that monitors the carrier movement. When the correction position X is reached, the cam motor is driven by one pulse.

【0066】すなわち、ステップS11において、キャ
リアの位置Pが前記した補正位置Xと等しいか否かを判
別し、等しくない場合には、ステップS16に行き、等
しい場合には、ステップS12に行き、カムモータを1
パルス駆動する。次に、ステップS13において移動方
向を判別し、逆方向〔図14(b)において左方向〕の
場合には、ステップS14においてX=X−ΔLとし、
また、ステップS15において正方向〔図14(b)に
おいて右方向〕の場合には、X=X+ΔLとし、次の補
正位置を設定する。
That is, in step S11, it is determined whether or not the position P of the carrier is equal to the above-described correction position X. If not equal, the flow proceeds to step S16. 1
Pulse drive. Next, the moving direction is determined in step S13, and in the case of the reverse direction (leftward in FIG. 14B), X = X−ΔL is set in step S14,
In the case of the forward direction (rightward direction in FIG. 14B) in step S15, X = X + ΔL is set, and the next correction position is set.

【0067】ステップS16において、キャリア移動が
終了したか否かを判別し、終了していない場合には、ス
テップS3に戻り上記処理を繰り返す。以上のように、
本実施例においては、カムモータを1パルスずつ駆動し
てギャップ補正を行っているので、カムモータを起動す
るための前処理において、該処理装置がカムモータを滑
らかに起動させるためのスルーイング等の計算をする必
要がなく、起動時間を短くすることができる。
In step S16, it is determined whether or not the carrier movement has been completed. If not, the process returns to step S3 and repeats the above processing. As mentioned above,
In this embodiment, since the gap correction is performed by driving the cam motor one pulse at a time, in the pre-processing for starting the cam motor, the processing device performs calculations such as slewing for smoothly starting the cam motor. There is no need to perform this, and the startup time can be shortened.

【0068】また、キャリアの速度に応じて、カムモー
タの駆動開始位置を変えているので、カムモータの補正
がかかるキャリア位置が正確となり、ギャップ値のズレ
をより正確に補正することができる。 (b)実施例2 図18は、前記の実施例の処理手順を示す図であり、
同図により本実施例を説明する。
Further, since the driving start position of the cam motor is changed according to the speed of the carrier, the carrier position where the cam motor is corrected becomes accurate, and the gap value can be corrected more accurately. (B) Embodiment 2 FIG. 18 is a diagram showing a processing procedure of the above embodiment,
This embodiment will be described with reference to FIG.

【0069】ステップS1において、図15(a)に示
した手順により補正をかけるキャリアの移動距離ΔLを
求めて、現在のキャリア位置から最初のプラテンの補正
位置Xを求め、ステップS2において、補正位置Xまで
の移動時間T1を求める。ステップS3において、ΔL
を移動するに要する時間T2を求め、ステップS4にお
いて、移動開始から移動終了までの補正回数Nを求め
る。
In step S1, the moving distance .DELTA.L of the carrier to be corrected is determined by the procedure shown in FIG. 15A, and the first corrected position X of the platen is determined from the current carrier position. In step S2, the corrected position is determined. The movement time T1 to X is obtained. In step S3, ΔL
The time T2 required to move the motion is calculated, and the number of corrections N from the start to the end of the motion is calculated in step S4.

【0070】ステップS5において、上記時間T1が必
要とする最小セトリング時間より大きいか否かを判別
し、大きい場合には、ステップS8に行く。また、大き
くない場合には、ステップS6に行き、カムモータの電
流をアップして必要最小セトリング時間から時間T1を
引いた時間だけ待つ。ステップS8において、T1をセ
トリング時間、T2を切り換え間隔時間と、Nを駆動パ
ルスとして、カムモータを起動する。
In step S5, it is determined whether or not the time T1 is longer than a required minimum settling time. If the time T1 is longer, the process proceeds to step S8. If it is not large, the process goes to step S6, in which the current of the cam motor is increased to wait for a time obtained by subtracting the time T1 from the required minimum settling time. In step S8, the cam motor is started using T1 as a settling time, T2 as a switching interval time, and N as a driving pulse.

【0071】ステップS9において、キャリアモータを
起動して、ステップS10においてキャリア移動が終了
するまで待ち、キャリア移動が終了すると、処理を終了
する。上記実施例においては、キャリアの移動開始前
に、予め、セトリング時間、補正時間間隔、駆動パルス
数を設定しておき、キャリア移動開始直前に、カムモー
タを起動し、上記予め設定された値によりカムモータを
駆動するようにしているので、第1の実施例のようにキ
ャリア移動中にキャリアの位置を監視し、カムモータに
起動をかける必要がなく、キャリア移動中の処理装置の
負担を少なくすることができる。
In step S9, the carrier motor is started, and in step S10, the process waits until the carrier movement is completed. When the carrier movement is completed, the process ends. In the above embodiment, the settling time, the correction time interval, and the number of drive pulses are set in advance before the start of the carrier movement, and the cam motor is started immediately before the start of the carrier movement. , The position of the carrier is monitored during the movement of the carrier as in the first embodiment, and there is no need to start the cam motor, thereby reducing the load on the processing apparatus during the movement of the carrier. it can.

【0072】このため、処理装置に、割り込み処理内か
らカムモータに起動をかける時間的な余裕がない場合に
有効となる。また、メインルーチンによりキャリア移動
中にキャリア位置を監視する必要もないので、処理装置
は別処理に時間を使うことができる。なお、本発明の適
用対象は前記したAHG機構を備えたプリンタ装置に限
定されるものではなく、その他の構成のAHG機構を備
えたプリンタ装置にも適用することができる。すなわ
ち、本実施例に示したようにプラテンを移動させる機構
を備えたプリンタ装置以外に、例えば、図19に示す軸
74あるいは、軸75を可動させて印字ヘッドとプラテ
ン間のギャップを調整する機構を備えたプリンタ装置に
適用することができる。
This is effective when the processing device does not have enough time to start the cam motor from within the interrupt processing. Further, since it is not necessary to monitor the carrier position during the movement of the carrier by the main routine, the processing device can use time for another process. The application of the present invention is not limited to the printer having the above-described AHG mechanism, but can be applied to a printer having another configuration of the AHG mechanism. That is, in addition to the printer having a mechanism for moving the platen as shown in the present embodiment, for example, a mechanism for adjusting the gap between the print head and the platen by moving the shaft 74 or the shaft 75 shown in FIG. Can be applied to a printer device having

【0073】[0073]

【発明の効果】以上説明したように、本発明においては
次の効果を得ることができる。 (1) 印字前の自己修復コマンド入力時、もしくは、電源
投入時、用紙をプラテンから外れるまで移動または排出
し、プラテンと印字ヘッドとの相対的傾きを測定して記
憶手段に記憶し、印字前のギャップ調整時、キャリアを
用紙上の予め定められたギャップ調整位置に移動させて
用紙の厚さに応じたギャップに設定し、印字時、上記記
憶手段に記憶されたデータを用いて、ギャップを補正し
ているので、吸入された用紙に対して適正なギャップを
設定してギャップを補正することが可能になり、プラテ
ンとキャリア摺動軸との平行度が狂っていても、キャリ
アの移動にともなう適正なギャップ値とのズレを最小限
に押さえることができる。また、印字前の自己修復コマ
ンド入力時、もしくは、電源投入時、用紙をプラテンか
ら外れるまで移動または排出することにより、プラテン
上に用紙があっても適正な傾きを測定することができ、
プラテンとキャリア摺動軸との平行度を効果的に補正す
ることができる。また、印字前、少なくともいずれか一
方が印字範囲外の2以上の箇所にキャリアを移動させ、
プラテンと印字ヘッドとの相対的傾きを測定すれば、
ャップ補正方向を一方向とすることができ、補正計算を
簡単化することができる。また、印字領域が傾き測定を
行った領域内におさまるので、測定領域の外側にキャリ
アが位置するときには、補正値を最大補正値、または、
最小補正値に固定することができ、補正計算を簡単にす
ることができる。 (2) 印字を伴わないキャリア移動時、キャリア位置に応
じたギャップ補正量を求めて、ギャップを補正しながら
キャリアを移動させることにより、次の印字開始時にそ
の位置でのギャップ補正を行う必要がなく、スループッ
トを向上させることができる。 (3) プラテンの傾きを測定したときのキャリアの間隔、
求めた傾き、および、ギャップ補正を行うカムモータの
分解能から、ギャップ補正量に対応した該カムモータの
駆動パルス数を求め、キャリア3の移動間隔を、上記駆
動パルスに1を加えた値で除することにより、上記カム
モータが1パルス駆動されたときキャリア3が移動する
移動距離を求め、印字時、キャリアが、キャリア移動距
離により定まるカムモータを駆動すべき位置を越える毎
に、カムモータを1パルス駆動しギャップ補正を行うこ
とにより、割り込みから起動をかける際、スルーイング
等の計算が不要となり、起動に要する時間を短縮するこ
とができる。また、正確な位置で補正することができる
ので、適正ギャップとのズレを小さくすることができ
る。また、キャリアの移動間隔をカムモータの駆動パル
スに1を加えた値で除してカムモータを1パルス駆動す
るキャリア移動距離を求めているので、キャリア移動区
間の最後でギャップ補正がかかることがなく、適正ギャ
ップとのズレを小さくすることができる。(4 ) 現在のキャリアの位置よりも、移動方向へ予め定め
られた距離(カムモータのセトリング時間にキャリアが
移動する距離)だけ先のキャリア補正位置を求め、上記
キャリア補正位置をキャリア3位置として、該キャリア
位置が、カムモータを駆動すべき位置を越える毎にカム
モータを1パルス駆動するようにすることにより、パル
スモータにおける励磁相の切り換えの時間遅れを見越し
て起動をかけることができる。(5 ) カムモータに起動をかけてから最初に励磁相を切り
換えるまでの時間を設定し、また、求めた傾きと、プラ
テン2の傾きを測定したときのキャリア3の間隔、およ
びギャップ補正を行うカムモータの分解能より、カムモ
ータが1パルス駆動されたときキャリア3が移動する移
動距離を求め、該移動距離と、キャリア3の移動速度に
よりキャリア3が該移動距離を移動するに要する時間を
求め、カムモータ6の励磁相切り換え時間間隔として設
定し、さらに、ギャップ補正量からカムモータの駆動パ
ルス数を求め、印字時、キャリアの移動開始と同時にカ
ムモータを起動し、上記設定された励磁相切り換え時間
間隔で、求めた駆動パルス数、カムモータを駆動するこ
とにより、キャリア移動中に1パルスずつカムモータに
起動をかける必要がなく、キャリア移動中に処理装置に
かかる負担を軽減させることができる。特に、割り込み
処理から起動をかける時間的余裕がないときなどに有効
となる。また、メインルーチンでキャリア移動中にキャ
リア位置を監視する必要がないので、別処理に時間をさ
くことができる。
As described above, the following effects can be obtained in the present invention. (1) When a self-healing command is input before printing or when the power is turned on, the paper is moved or ejected until it comes off the platen, the relative inclination between the platen and the print head is measured and stored in the storage means, and before printing. At the time of the gap adjustment, the carrier is moved to a predetermined gap adjustment position on the sheet to set the gap according to the thickness of the sheet, and at the time of printing, the gap is set using the data stored in the storage means. Correction makes it possible to set an appropriate gap for the sucked paper and correct the gap, so that even if the parallelism between the platen and the carrier The deviation from the appropriate gap value can be minimized. Also, when the self-repair command is input before printing or when the power is turned on, the paper is moved or ejected until it comes off the platen, so that even if there is paper on the platen, the proper inclination can be measured,
The parallelism between the platen and the carrier sliding shaft can be effectively corrected. Furthermore, before printing, to move the carrier into two or more locations outside the range at least one is printing,
If the relative inclination between the platen and the print head is measured , the gap correction direction can be set to one direction, and the correction calculation can be simplified. In addition, since the printing area falls within the area where the tilt measurement is performed, when the carrier is located outside the measurement area, the correction value is set to the maximum correction value, or
The correction value can be fixed to the minimum correction value, and the correction calculation can be simplified. (2) When moving the carrier without printing, it is necessary to calculate the gap correction amount according to the carrier position and move the carrier while correcting the gap, so that the gap correction at that position is required at the start of the next printing. And the throughput can be improved. (3) Carrier spacing when measuring platen tilt,
From the obtained inclination and the resolution of the cam motor for performing the gap correction, the cam motor corresponding to the gap correction amount is determined.
The number of drive pulses is determined, and the moving interval of the carrier 3 is set as described above.
By dividing by the value obtained by adding 1 to the dynamic pulse, the cam
Carrier 3 moves when motor is driven by one pulse
The moving distance is obtained , and at the time of printing, the cam motor is driven by one pulse every time the carrier exceeds the position to drive the cam motor determined by the moving distance of the carrier to perform gap correction. Is unnecessary, and the time required for activation can be reduced. In addition, since the correction can be performed at an accurate position, the deviation from the appropriate gap can be reduced. Further, since the seeking carrier moving distance dividing one pulse drives the cam motor and the movement distance of the carrier by a value obtained by adding 1 to the drive pulse of the cam motor, last without take gap correction of carrier movement section, The deviation from the appropriate gap can be reduced. (4 ) A carrier correction position ahead of the current carrier position by a predetermined distance (the distance the carrier moves during the settling time of the cam motor) in the moving direction is obtained, and the carrier correction position is set as the carrier 3 position. By driving the cam motor by one pulse each time the carrier position exceeds the position at which the cam motor should be driven, it is possible to start up in anticipation of a time delay of switching the excitation phase in the pulse motor. (5) The first to set the time to switch the excitation phase from over the start-up to the cam motor, Also, the slope obtained, Pula
The distance between the carriers 3 when the inclination of the ten 2 was measured, and
From the resolution of the cam motor that performs
The carrier 3 moves when the data is driven by one pulse.
The moving distance is obtained, and the moving distance and the moving speed of the carrier 3 are calculated.
The time required for the carrier 3 to move the moving distance is
The time interval is set as the excitation phase switching time interval of the cam motor 6, and further, the number of driving pulses of the cam motor is determined from the gap correction amount. At the time of printing, the cam motor is started simultaneously with the start of movement of the carrier. By driving the cam motor at the determined number of drive pulses and the cam motor, it is not necessary to start the cam motor one pulse at a time during the carrier movement, and the load on the processing apparatus during the carrier movement can be reduced. This is particularly effective when there is not enough time to start from interrupt processing. Further, since it is not necessary to monitor the carrier position during the movement of the carrier in the main routine, it is possible to save time for another process.

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

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】本発明の実施例のシステム構成を示す図であ
る。
FIG. 2 is a diagram illustrating a system configuration according to an embodiment of the present invention.

【図3】プラテンの傾きの測定方法を説明する図であ
る。
FIG. 3 is a diagram illustrating a method of measuring the inclination of a platen.

【図4】プラテンの傾き測定の処理手順を示す図であ
る。
FIG. 4 is a diagram showing a processing procedure of platen inclination measurement.

【図5】プラテンの傾きの測定の処理手順を示す図であ
る。
FIG. 5 is a diagram showing a processing procedure for measuring the inclination of the platen.

【図6】用紙検出用センサの取り付け位置を示す図であ
る。
FIG. 6 is a diagram illustrating an attachment position of a sheet detection sensor.

【図7】ギャップ測定位置におけるギャップの大きさを
示す図である。
FIG. 7 is a diagram illustrating the size of a gap at a gap measurement position.

【図8】ギャップ調整位置を基準位置とした場合のギャ
ップ補正を説明する図である。
FIG. 8 is a diagram illustrating gap correction when a gap adjustment position is set as a reference position.

【図9】ギャップ調整位置を基準位置とした場合の処理
手順を示す図である。
FIG. 9 is a diagram illustrating a processing procedure when a gap adjustment position is set as a reference position.

【図10】傾き測定位置を基準位置とした場合のギャッ
プ補正を説明する図である。
FIG. 10 is a diagram illustrating gap correction when a tilt measurement position is set as a reference position.

【図11】傾きを求める位置を印字範囲外とした場合の
補正量を示す図である。
FIG. 11 is a diagram illustrating a correction amount when a position for obtaining an inclination is outside a printing range.

【図12】傾き測定位置を基準位置とした場合の処理手
順を示す図である。
FIG. 12 is a diagram illustrating a processing procedure when a tilt measurement position is set as a reference position.

【図13】印字を伴わないキャリア移動時における補正
処理を説明する図である。
FIG. 13 is a diagram illustrating a correction process when the carrier moves without printing.

【図14】励磁相切り換え時のタイムチャートである。FIG. 14 is a time chart at the time of excitation phase switching.

【図15】補正間隔を求める方法を説明する図である。FIG. 15 is a diagram illustrating a method for obtaining a correction interval.

【図16】カムモータを1パルス駆動するキャリア移動
量を求める方法を示す図である。
FIG. 16 is a diagram illustrating a method of obtaining a carrier movement amount for driving the cam motor by one pulse.

【図17】カムモータの駆動処理手順を示す図である。FIG. 17 is a diagram showing a procedure for driving a cam motor.

【図18】カムモータの駆動処理手順を示す図である。FIG. 18 is a diagram illustrating a drive processing procedure of the cam motor.

【図19】AHG機構を備えたプリンタ装置の構成の一
例を示す図である。
FIG. 19 is a diagram illustrating an example of a configuration of a printer device including an AHG mechanism.

【図20】プラテンと印字ヘッドの関係を示す図であ
る。
FIG. 20 is a diagram illustrating a relationship between a platen and a print head.

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

1,21 プリンタ装置 2,71 プラテン 3,73 キャリア 4,72 印字ヘッド 5 カム 6,81 カム・モータ 7 用紙 22 インタフェース 23 プロセッサ 24 不揮発性RAM 25 メモリ 74 軸 76 AHGセンサ 79 AHG調整用カム 80 カム・ホームポジション・セ
ンサ S センサ
1, 21 Printer device 2, 71 Platen 3, 73 Carrier 4, 72 Print head 5 Cam 6, 81 Cam motor 7 Paper 22 Interface 23 Processor 24 Non-volatile RAM 25 Memory 74 Axis 76 AHG sensor 79 AHG adjustment cam 80 Cam・ Home position sensor S sensor

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) B41J 11/20 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int. Cl. 7 , DB name) B41J 11/20

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 印字ヘッドとプラテン間のギャップを自
動調整する機構を備えたプリンタ装置のプラテンの傾き
自動補正方法において、 印字前の自己修復コマンド入力時、もしくは、電源投入
時、プラテン上の用紙を検出し、用紙がプラテン上にあ
ったとき、該用紙をプラテンから外れるまで移動、また
は排出したのち、少なくとも2以上の箇所にキャリアを
移動させ、各キャリアの位置において、上記機構を用い
てプラテンと印字ヘッドとの相対的傾きを測定して記憶
手段に記憶し、 印字時、上記記憶手段に記憶されたデータを用いて、ギ
ャップを、キャリア位置に応じて補正することにより、 プラテンと印字ヘッドの相対的傾きを自動補正して、ギ
ャップを一定に保つようにしたことを特徴とするプリン
タ装置のプラテンの傾き自動補正方法。
1. A method for automatically correcting a tilt of a platen of a printer device having a mechanism for automatically adjusting a gap between a print head and a platen, the method comprising: inputting a self-repair command before printing, or turning on a power supply; Is detected, and when the sheet is on the platen, the sheet is moved or ejected until the sheet comes off the platen, and then the carrier is moved to at least two or more locations. The relative inclination between the print head and the print head is measured and stored in the storage means. At the time of printing, the gap is corrected in accordance with the carrier position using the data stored in the storage means, so that the platen and the print head are corrected. Automatically correcting the relative tilt of the printer to keep the gap constant Method.
【請求項2】 印字ヘッドとプラテン間のギャップを自
動調整する機構を備えたプリンタ装置のプラテンの傾き
自動補正方法において、 印字前、少なくとも2以上の箇所にキャリアを移動さ
せ、各キャリアの位置において、上記機構を用いてプラ
テンと印字ヘッドとの相対的傾きを測定して記憶手段に
記憶し、 印字時、上記記憶手段に記憶されたデータを用いて、ギ
ャップをキャリア位置に応じて補正するとともに、片方
向印字におけるキャリアリターン、もしくは、印字開始
可能位置までのキャリアエスケープ等の印字を伴わない
キャリア移動時、キャリア位置に応じたギャップ補正量
を求めて、ギャップを補正しながらキャリアを移動させ
ることにより、 プラテンと印字ヘッドの相対的傾きを自動補正して、ギ
ャップを一定に保つようにしたことを特徴とするプリン
タ装置のプラテンの傾き自動補正方法。
2. A method for automatically correcting the inclination of a platen of a printer device having a mechanism for automatically adjusting a gap between a print head and a platen, wherein a carrier is moved to at least two or more positions before printing, and The relative inclination between the platen and the print head is measured using the above mechanism and stored in the storage unit. At the time of printing, the gap is corrected according to the carrier position using the data stored in the storage unit. When moving a carrier without printing, such as carrier return in one-way printing or carrier escape to a printable position, determine the gap correction amount according to the carrier position and move the carrier while correcting the gap. Automatically corrects the relative tilt between the platen and print head to keep the gap constant. A method for automatically correcting the inclination of a platen of a printer device.
【請求項3】 カムモータを回転させプラテンもしくは
印字ヘッドを移動さ せ、印字ヘッドとプラテン間のギャ
ップを自動調整する機構を備えたプリンタ装置のプラテ
ンの傾き自動補正方法において、 印字前、少なくとも2以上の箇所にキャリアを移動さ
せ、各キャリアの位置において、上記機構を用いてプラ
テンと印字ヘッドとの相対的傾きを測定し、 プラテンの傾きを測定したときのキャリアの間隔、求め
た傾き、および、ギャップ補正を行うカムモータの分解
から、ギャップ補正量に対応した該カムモータの駆動
パルス数を求め、 キャリアの移動間隔を、上記駆動パルスに1を加えた値
で除することにより、上記カムモータが1パルス駆動さ
れたときキャリアが移動する移動距離を求め 、 印字時、移動中のキャリアの位置を監視し、キャリア
が、プラテンの傾き測定時に基準としたキャリア基準位
置から上記キャリア移動距離により定まるカムモータを
駆動すべき位置を越える毎に、上記カムモータを1パル
ス駆動することにより、 プラテンと印字ヘッドの相対的傾きを自動補正して、ギ
ャップを一定に保つようにしたことを特徴とするプリン
タ装置のプラテンの傾き自動補正方法。
3. Rotating a cam motor to rotate a platen or
Moving the print head, the platen inclination automatic correction method of a printer device having a mechanism for automatically adjusting the gap between the print head and the platen, before printing, to move the carrier into at least two portions, each carrier At the position, the relative inclination between the platen and the print head is measured using the above mechanism, and the gap correction is performed based on the carrier interval when the platen inclination is measured, the obtained inclination, and the resolution of the cam motor that performs the gap correction. Driving the cam motor according to the amount
Obtain the number of pulses and set the carrier movement interval to the value obtained by adding 1 to the above drive pulse.
The above cam motor is driven by one pulse.
Obtains the moving distance of carriers move when, during printing, to monitor the position of the carrier in motion, carrier, to drive the cam motor determined by said carrier moving distance from a reference carriers the reference position when the inclination measurement of the platen The tilt of the platen of the printer is characterized by automatically correcting the relative tilt between the platen and the print head to keep the gap constant by driving the cam motor by one pulse every time the power position is exceeded. Automatic correction method.
【請求項4】 現在のキャリアの位置よりも、移動方向
へ予め定められた距離だけ先のキャリア補正位置を求
め、 上記キャリア補正位置をキャリアの位置として、該キャ
リア位置が、カムモータを駆動すべき位置を越える毎
に、上記カムモータを1パルス駆動することを特徴とす
る請求項3のプリンタ装置のプラテンの傾き自動補正方
法。
4. A carrier correction position ahead of the current carrier position by a predetermined distance in the movement direction is determined, and the carrier position should drive a cam motor with the carrier correction position as a carrier position. 4. The method according to claim 3, wherein the cam motor is driven by one pulse each time the position is exceeded.
【請求項5】 予め定められた複数個の距離を用意し、
キャリアの移動速度に応じて上記複数個の距離の内の一
つを選択し、 上記距離を用いて、現在のキャリアの位置よりも、移動
方向へ予め定められた距離だけ先の位置を求めることを
特徴とする請求項4のプリンタ装置のプラテンの傾き自
動補正方法。
5. Preparing a plurality of predetermined distances,
Selecting one of the plurality of distances according to the moving speed of the carrier, and using the distance to determine a position ahead of the current carrier position by a predetermined distance in the moving direction. 5. The method according to claim 4, wherein the inclination of the platen is automatically corrected.
【請求項6】 予め定められた複数個の距離を、それぞ
れのキャリア移動速度において、ある一定時間にキャリ
アが移動する距離と一致させたことを特徴とする請求項
5のプリンタ装置のプラテンの傾き自動補正方法。
6. The platen inclination of the printer device according to claim 5, wherein a plurality of predetermined distances are made to coincide with a distance at which the carrier moves in a certain time at each carrier moving speed. Automatic correction method.
【請求項7】 一定時間をカムモータのセトリング時間
に一致させたことを特徴とする請求項6のプリンタ装置
のプラテンの傾き自動補正方法。
7. The method for automatically correcting the inclination of a platen of a printer device according to claim 6, wherein the predetermined time is made equal to the settling time of the cam motor.
【請求項8】 カムモータを回転させプラテンもしくは
印字ヘッドを移動させ、印字ヘッドとプラテン間のギャ
ップを自動調整する機構を備えたプリンタ装置のプラテ
ンの傾き自動補正方法において、 印字前、少なくとも2以上の箇所にキャリアを移動さ
せ、各キャリアの位置において、上記機構を用いてプラ
テンと印字ヘッドとの相対的傾きを測定し、 測定した傾きと現在のキャリア位置より、キャリアの移
動方向における最初のギャップ補正位置を求めて、キャ
リアがその位置に達するまでの時間を、ギャップ補正を
行うカムモータに起動をかけてから最初に励磁相を切り
換えるまでの時間として設定し、 また、求めた傾きと、プラテンの傾きを測定したときの
キャリアの間隔、およびギャップ補正を行うカムモータ
の分解能より、カムモータが1パルス駆動されたときキ
ャリアが移動する移動距離を求め、該移動距離と、キャ
リアの移動速度によりキャリアが該移動距離を移動する
に要する時間を求め、 上記時間をカムモータの励磁相切り換え時間間隔として
設定し、 さらに、キャリアの移動開始位置でのギャップ補正量
と、移動終了位置でのギャップ補正量の差から、カムモ
ータの駆動パルス数を求め、 印字時、キャリアの移動開始と同時にカムモータを起動
し、上記設定された励磁相切り換え時間間隔で、求めた
駆動パルス数、カムモータを駆動することにより、 プラテンと印字ヘッドの相対的傾きを自動補正して、ギ
ャップを一定に保つようにしたことを特徴とするプリン
タ装置のプラテンの傾き自動補正方法。
8. Rotating the cam motor to rotate the platen or
In a method for automatically correcting the inclination of a platen of a printer device having a mechanism for moving a print head and automatically adjusting a gap between the print head and a platen, a carrier is moved to at least two or more locations before printing, and a position of each carrier is set. The relative tilt between the platen and the print head is measured using the mechanism described above, and the first gap correction position in the carrier moving direction is determined from the measured tilt and the current carrier position, and the carrier reaches that position. Is set as the time from when the cam motor for performing gap correction is started to when the excitation phase is switched for the first time, and when the calculated inclination and the inclination of the platen are measured.
Cam motor for carrier spacing and gap correction
When the cam motor is driven by one pulse,
The travel distance of the carrier is determined, and the travel distance and the carrier are determined.
Carrier moves the moving distance by rear moving speed
, The above time is set as the excitation phase switching time interval of the cam motor, and the difference between the gap correction amount at the carrier movement start position and the gap correction amount at the movement end position is determined by the driving pulse of the cam motor. When printing, the cam motor is started at the same time that the carrier starts moving, and the number of drive pulses and the cam motor are driven at the set excitation phase switching time interval to obtain the relative inclination between the platen and print head. Automatically correcting the gap so as to keep the gap constant.
JP6200439A 1994-08-25 1994-08-25 Automatic platen tilt correction method for printer Expired - Fee Related JP3065488B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6200439A JP3065488B2 (en) 1994-08-25 1994-08-25 Automatic platen tilt correction method for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6200439A JP3065488B2 (en) 1994-08-25 1994-08-25 Automatic platen tilt correction method for printer

Publications (2)

Publication Number Publication Date
JPH0858165A JPH0858165A (en) 1996-03-05
JP3065488B2 true JP3065488B2 (en) 2000-07-17

Family

ID=16424316

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6200439A Expired - Fee Related JP3065488B2 (en) 1994-08-25 1994-08-25 Automatic platen tilt correction method for printer

Country Status (1)

Country Link
JP (1) JP3065488B2 (en)

Also Published As

Publication number Publication date
JPH0858165A (en) 1996-03-05

Similar Documents

Publication Publication Date Title
JP3812823B2 (en) Printer control apparatus and printer control method
US20100231632A1 (en) Recording device, control method, and recording medium
US5255987A (en) Paper margin detecting device for use in printing apparatus
US6729712B2 (en) Printing apparatus and printing control method
JP3740120B2 (en) Active steering system, active steering method, and method of finding an equilibrium point
CN101112831A (en) Printer and printing method
EP0988986A2 (en) Paper feed control method
JP3065488B2 (en) Automatic platen tilt correction method for printer
JP3317331B2 (en) Platen gap automatic adjustment device
US7431414B2 (en) Printer-control apparatus, printer-control method and printer
JPH0416979A (en) Optical writing device
JP4343586B2 (en) Image recording device
US10319169B2 (en) Medium processing apparatus and method of controlling the medium processing apparatus
JP2001088352A (en) Optical scanning system for printing press and driving method thereof
US20070041739A1 (en) Drive motor control method and printer
US20030058420A1 (en) Image recording device
US20230405994A1 (en) Image forming apparatus
JPH10100488A (en) Serial printer
US20220153043A1 (en) Printing device and method for controlling printing device
KR100205750B1 (en) Automatic compensation of bidirectional print position error in serial printers
US20170275118A1 (en) Medium feeding apparatus
JPS59114086A (en) Space-controlling system for printing head
JPH0958081A (en) Controlling device for stop of spacing motor
JP3017356B2 (en) Method of correcting print position deviation of serial printer and serial printer
JPH0239976A (en) Gap adjustor for printer

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120512

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees