JPH0524264A - Printing timing correction method in serial dot printer - Google Patents

Printing timing correction method in serial dot printer

Info

Publication number
JPH0524264A
JPH0524264A JP17909491A JP17909491A JPH0524264A JP H0524264 A JPH0524264 A JP H0524264A JP 17909491 A JP17909491 A JP 17909491A JP 17909491 A JP17909491 A JP 17909491A JP H0524264 A JPH0524264 A JP H0524264A
Authority
JP
Japan
Prior art keywords
time interval
pulse
timing
limit value
rising
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
JP17909491A
Other languages
Japanese (ja)
Other versions
JP2504640B2 (en
Inventor
Masatake Maki
正剛 牧
Ichiro Fujioka
一朗 藤岡
Kenichi Miyamoto
研一 宮本
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 JP17909491A priority Critical patent/JP2504640B2/en
Publication of JPH0524264A publication Critical patent/JPH0524264A/en
Application granted granted Critical
Publication of JP2504640B2 publication Critical patent/JP2504640B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To improve the printing quality and to prevent the breakage of a printing head by a method wherein successive pulse-to-pulse time intervals for a fixed number of encode output pulses and the average value thereof are evaluated, and based on the difference between the both, a timing position of each encode output pulse is corrected. CONSTITUTION:A rising detection part 15 generates a rising pulse at the rising edge of an encode output pulse. A time interval detection part 16 measures intervals between the successive rising pulses. An average time interval detection part 17 takes the average of time intervals between rising pulses of a fixed number just before to find an average time interval as a reference. A comparing part 18 compares a time interval at every rising pulse with the average time interval. A variable delay part 19 adjusts a delay amount based on a time difference resulting from the comparison so that a time interval of successive rising pulses is equal to the average time interval. In this manner, a pulse train of a constant cycle outputted from the variable delay part 19 is used as a printing timing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は,シリアルドットプリン
タにおけるドット印字のタイミングを補正する方法に関
するものである。シリアルドットプリンタでは印字ヘッ
ドを搭載したキャリアが行方向に定速で移動している間
に印字データに基づいて印字ヘッドのドット駆動が行わ
れる。本発明は,ドット印字のタイミング変動を補正す
ることによって印字乱れを改善するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for correcting the timing of dot printing in a serial dot printer. In the serial dot printer, the dot drive of the print head is performed based on the print data while the carrier having the print head moves in the row direction at a constant speed. The present invention improves the print irregularity by correcting the timing variation of dot printing.

【0002】[0002]

【従来の技術】図7に従来のシリアルドットプリンタの
構成を示す。図において,1はモータ,2は速度検出用
のエンコーダ,3および4はモータ軸に結合されたプー
リー,5はベルト,6はベルト5により左右に駆動され
るキャリア,7はキャリアに搭載された印字ヘッド,8
はプラテン,9は用紙,10は印字制御部,11はモー
タ駆動回路,12は印字ヘッド駆動回路,13は印字バ
ッファである。
2. Description of the Related Art FIG. 7 shows the configuration of a conventional serial dot printer. In the figure, 1 is a motor, 2 is an encoder for speed detection, 3 and 4 are pulleys connected to the motor shaft, 5 is a belt, 6 is a carrier driven left and right by the belt 5, and 7 is mounted on the carrier. Print head, 8
Is a platen, 9 is a paper, 10 is a print control unit, 11 is a motor drive circuit, 12 is a print head drive circuit, and 13 is a print buffer.

【0003】印字制御部10は,モータ駆動回路11を
制御してモータ1を立上げ,プーリー3およびベルト5
を介してキャリア6を定速状態に駆動し,印字バッファ
13からドットデータを読み出して印字ヘッド駆動回路
12に供給する。モータ1の軸には速度検出用のエンコ
ーダ2が直結されており,エンコーダ2から出力される
エンコーダパルスは印字ヘッド駆動回路12に供給さ
れ,印字ヘッドのドット駆動(例えばワイアドットプリ
ンタの場合にはピンファイア)のタイミングに使用され
る。
The print control unit 10 controls the motor drive circuit 11 to start up the motor 1, the pulley 3 and the belt 5.
The carrier 6 is driven at a constant speed via the, the dot data is read from the print buffer 13 and supplied to the print head drive circuit 12. An encoder 2 for speed detection is directly connected to the shaft of the motor 1, and an encoder pulse output from the encoder 2 is supplied to a print head drive circuit 12 for dot drive of the print head (for example, in the case of a wire dot printer). Pinfire) used for timing.

【0004】ところで連続駆動されるモータ1に発生す
るトルクはモータの極構造に基因してこまかく変動し,
図8の(a)に実線で示されるようにモータ軸の回転速
度に周期性の変化が現われる。一方モータ1の軸にはプ
ーリー3が結合され,プーリー3にかけられたベルト5
を介してキャリア6が駆動される。そのためモータ1の
回転に生じるこまかな変動は,ベルトの弾性等により吸
収され,キャリア6上の印字ヘッド7には,ほとんど伝
達されない。そのため印字ヘッド7は,図8の(a)に
点線で示されるようになめらかに移動することができ
る。図8の(b)は,その一部分を拡大して示したもの
である。
By the way, the torque generated in the continuously driven motor 1 varies slightly due to the pole structure of the motor,
As shown by the solid line in FIG. 8A, a change in the periodicity appears in the rotation speed of the motor shaft. On the other hand, a pulley 3 is connected to the shaft of the motor 1, and a belt 5 is attached to the pulley 3.
The carrier 6 is driven via. Therefore, minute fluctuations caused by the rotation of the motor 1 are absorbed by the elasticity of the belt and are hardly transmitted to the print head 7 on the carrier 6. Therefore, the print head 7 can move smoothly as shown by the dotted line in FIG. FIG. 8B is an enlarged view of a part thereof.

【0005】しかし,印字ヘッド7をドット駆動する印
字タイミングは,モータ1に直結されたエンコーダの出
力パルスに基づいて決定されるため,モータ1の回転の
周期変動を反映して変化する。
However, since the print timing for dot-driving the print head 7 is determined based on the output pulse of the encoder directly connected to the motor 1, it changes according to the periodic fluctuation of the rotation of the motor 1.

【0006】図9に従来の印字タイミング生成過程を示
す。図9のは図8の部分,図9のは図8の部分
の速度変動にそれぞれ対応している。図中の(a)はエ
ンコーダ出力パルスであり,(b)はエンコーダ出力パ
ルスから生成したエンコーダ立上りパルスである。
(c)は印字ヘッドのピンファイアタイミング(印字タ
イミング)である。
FIG. 9 shows a conventional print timing generation process. 9 corresponds to the speed variation of FIG. 8 and FIG. 9 corresponds to the velocity fluctuation of the portion of FIG. In the figure, (a) is an encoder output pulse, and (b) is an encoder rising pulse generated from the encoder output pulse.
(C) is the pinfire timing (printing timing) of the print head.

【0007】図示のように,モータ速度が上昇するで
は印字タイミングの間隔はつまり,モータ速度が減少す
るでは,印字タイミングの間隔は広がる。このため,
印字されるドットの位置に周期性のずれが生じ印字品質
が劣化した。
As shown in the figure, when the motor speed increases, the print timing interval increases. That is, when the motor speed decreases, the print timing interval increases. For this reason,
The printing quality deteriorated due to the deviation of the periodicity in the position of the printed dots.

【0008】このようなモータ回転の変動に基づく印字
タイミングのずれは,ノイズや制御系不良等によっても
発生し,時に大きな周期変動を生じることもある。印字
タイミング周期が過大あるいは過小になると,印字ヘッ
ドに異常振動や過熱状態が発生することがあり,その結
果印字ヘッドの破損を招くこともあった。
The deviation of the printing timing due to the fluctuation of the motor rotation as described above is also caused by noise, defective control system and the like, and sometimes a large periodic fluctuation may occur. If the print timing cycle becomes too large or too small, abnormal vibration or overheating may occur in the print head, resulting in damage to the print head.

【0009】[0009]

【発明が解決しようとする課題】本発明は,シリアルド
ットプリンタにおける印字タイミングのずれを補正する
ことにより,印字品質の改善と印字ヘッドの破損の防止
を図ることを目的としている。
SUMMARY OF THE INVENTION It is an object of the present invention to improve print quality and prevent damage to a print head by correcting a print timing deviation in a serial dot printer.

【0010】[0010]

【課題を解決するための手段】本発明は,モータに直結
された速度検出用のエンコーダからのエンコーダ出力パ
ルスの時間間隔について平均値からのずれを検出しその
ずれを補正して印字タイミングを生成する方法およびエ
ンコーダ出力パルスの時間間隔の変動を予め定められた
上限値と下限値により監視し,エンコーダ出力パルスの
時間間隔が上限値と下限値の範囲内にあればそれに基づ
き印字タイミングを生成し,上限値よりも大きくなった
ときには上限値で置換して印字タイミングを生成し,下
限値よりも小さくなったときには下限値で置換して印字
タイミングを生成する方法によって前述した課題を解決
するものである。
SUMMARY OF THE INVENTION The present invention detects a deviation from an average value with respect to a time interval of encoder output pulses from a speed detecting encoder directly connected to a motor, corrects the deviation, and generates a print timing. Method and the fluctuation of the time interval of the encoder output pulse are monitored by the upper and lower limits set in advance.If the time interval of the encoder output pulse is within the upper and lower limits, the print timing is generated based on that. However, when it becomes larger than the upper limit value, it is replaced by the upper limit value to generate the print timing, and when it becomes smaller than the lower limit value, it is replaced by the lower limit value and the print timing is generated. is there.

【0011】図1により本発明の原理を説明する。図1
のAは本発明の第1の方法の説明図であり,15はエン
コーダ出力パルスの立上り検出部,16は時間間隔検出
部,17は平均時間間隔検出部,18は比較部,19は
可変遅延部である。
The principle of the present invention will be described with reference to FIG. Figure 1
A is an explanatory view of the first method of the present invention, 15 is a rising edge detection unit of the encoder output pulse, 16 is a time interval detection unit, 17 is an average time interval detection unit, 18 is a comparison unit, 19 is a variable delay It is a department.

【0012】立上り検出部15は,エンコーダ出力パル
スの立上げエッジで立上りパルスを生成し,時間間隔検
出部16と,可変遅延部19とに供給する。時間間隔検
出部16は,順次の立上りパルス間の間隔を測定し,平
均時間間隔検出部17は直前の一定個数の立上りパルス
間の各時間間隔を平均して基準となる平均時間間隔を求
め,比較部18に供給する。比較部18は各立上りパル
スごとにその時間間隔と平均時間間隔とを比較して,比
較結果の時間差を可変遅延部19に送り,順次の立上り
パルスの時間間隔が平均時間間隔と等しくなるように遅
延量を調節する。このようにして可変遅延部19から出
力される一定周期のパルス列を印字タイミングとして使
用する。
The rising edge detection section 15 generates a rising edge pulse at the rising edge of the encoder output pulse, and supplies it to the time interval detection section 16 and the variable delay section 19. The time interval detector 16 measures intervals between successive rising pulses, and the average time interval detector 17 averages each time interval between a fixed number of immediately preceding rising pulses to obtain a reference average time interval, It is supplied to the comparison unit 18. The comparison unit 18 compares the time interval of each rising pulse with the average time interval, and sends the time difference of the comparison result to the variable delay unit 19 so that the time interval of successive rising pulses becomes equal to the average time interval. Adjust the delay amount. In this way, the pulse train having a constant cycle output from the variable delay unit 19 is used as the print timing.

【0013】次に図1のBは本発明の第2の方法の説明
図であり,15はエンコーダ出力パルスの立上り検出
部,16は時間間隔検出部,20は上限比較部,21は
下限比較部,22は上限パルス発生部,23は下限パル
ス発生部,24はマルチプレクサである。
Next, FIG. 1B is an explanatory view of the second method of the present invention, in which 15 is an encoder output pulse rise detection section, 16 is a time interval detection section, 20 is an upper limit comparison section, and 21 is a lower limit comparison. 22 is an upper limit pulse generator, 23 is a lower limit pulse generator, and 24 is a multiplexer.

【0014】立上り検出部15は,エンコーダ出力パル
スから立上りパルスを生成し,時間間隔検出部16およ
びマルチプレクサ24に印加する。時間間隔検出部16
は,順次の立上りパルスの時間間隔を検出し,その値T
を上限比較部20と下限比較部21の各一方の入力に印
加する。
The rising edge detector 15 produces a rising edge pulse from the encoder output pulse and applies it to the time interval detector 16 and the multiplexer 24. Time interval detector 16
Detects the time interval of successive rising pulses and
Is applied to one input of each of the upper limit comparison unit 20 and the lower limit comparison unit 21.

【0015】上限比較部20と下限比較部21の各他方
の入力には,それぞれ時間間隔の上限値TU と下限値T
L とが与えられており,上限比較部20はT>TU ,下
限比較部21はT<TL を検出する。これらの比較部2
0,21の出力から,T>T U ,TU ≧T≧TL ,T<
L の各状態を切分けることができる。
Each of the upper limit comparing section 20 and the lower limit comparing section 21
Is input to each of the time interval upper limit value TUAnd the lower limit value T
LAnd the upper limit comparison unit 20 determines that T> TU,under
The limit comparison unit 21 is T <TLTo detect. These comparison parts 2
From the output of 0,21, T> T U, TU≧ T ≧ TL, T <
TLEach state of can be separated.

【0016】上限パルス発生部22は上限値TU に対応
するタイミング位置で上限パルスを発生し,下限パルス
発生部23は,下限値TL に対応するタイミング位置で
下限パルスを発生する。
The upper limit pulse generator 22 generates an upper limit pulse at a timing position corresponding to the upper limit value T U , and the lower limit pulse generator 23 generates a lower limit pulse at a timing position corresponding to the lower limit value T L.

【0017】マルチプレクサ24には,エンコーダ出力
パルスの立上りパルスと上限パルスと下限パルスが入力
され,これらは上限比較部20と下限比較部21の各出
力値の組み合わせに基づいて選択される。
A rising pulse, an upper limit pulse, and a lower limit pulse of the encoder output pulse are input to the multiplexer 24, and these are selected based on the combination of the output values of the upper limit comparison unit 20 and the lower limit comparison unit 21.

【0018】すなわち,T>TU のときは上限比較部2
0の出力のみが‘1’となり,マルチプレクサ24では
上限パルスが選択される。またTU ≧T≧TL のときは
上限比較部20と下限比較部21の両方の出力が‘0’
となり,マルチプレクサ24ではエンコーダ出力パルス
からの立上りパルスが選択される。そしてT<TL のと
きは,下限比較部21の出力のみが‘1’となり,マル
チプレクサ24では下限パルスが選択される。
That is, when T> T U , the upper limit comparison unit 2
Only the output of 0 becomes '1' and the multiplexer 24 selects the upper limit pulse. When T U ≧ T ≧ T L , the outputs of both the upper limit comparison unit 20 and the lower limit comparison unit 21 are “0”.
Therefore, the multiplexer 24 selects the rising pulse from the encoder output pulse. When T < TL , only the output of the lower limit comparison unit 21 becomes "1" and the lower limit pulse is selected by the multiplexer 24.

【0019】このようにしてマルチプレクサ24で選択
されたパルスは,印字タイミングをとるために使用され
る。
The pulse selected by the multiplexer 24 in this manner is used to set the printing timing.

【0020】[0020]

【作用】図1のAに示された本発明の第1の方法では,
モータの回転速度の変動に依存して周期的に変動するエ
ンコーダ出力パルスの時間間隔を平均化することによ
り,印字ヘッドのキャリアの移動速度に対応する中心速
度を得ている。この平均時間間隔(中心速度)を基準に
順次のエンコーダ出力パルスのタイミングを補正して,
ずれのない印字タイミングを生成している。
In the first method of the present invention shown in FIG. 1A,
By averaging the time intervals of the encoder output pulses that fluctuate cyclically depending on the fluctuations in the motor rotation speed, the center speed corresponding to the moving speed of the print head carrier is obtained. Correct the timing of the sequential encoder output pulses based on this average time interval (center speed),
Printing timing without deviation is generated.

【0021】図2のAは,図1のAの方法における動作
タイミング図である。図中の(a)はエンコーダ出力パ
ルス,(b)はエンコーダ出力パルスから検出した立上
りパルス,(c)は生成された印字タイミングである。
印字タイミングは,立上りパルスを一定の遅延量tdか
らタイミング誤差Δtを減算した量td−Δtだけ遅延
させたところで生成される。
FIG. 2A is an operation timing chart in the method of FIG. 1A. In the figure, (a) is an encoder output pulse, (b) is a rising pulse detected from the encoder output pulse, and (c) is a generated print timing.
The print timing is generated when the rising pulse is delayed by an amount td−Δt obtained by subtracting the timing error Δt from the constant delay amount td.

【0022】タイミング誤差Δtは,立上りパルスごと
に検出された直前の立上りパルスとの間の時間間隔と平
均時間間隔との間の差量である。 Δt=検出時間間隔−平均時間間隔 平均時間間隔は,モータ回転速度の変動周期のn倍の期
間(n≧2)に検出された各エンコーダ出力パルスの時
間間隔を平均化したものであり,直前の立上げパルスま
であるいは現立上りパルスまでの移動平均とすることが
できる。
The timing error Δt is the amount of difference between the time interval between each rising pulse and the immediately preceding rising pulse and the average time interval. Δt = detection time interval−average time interval The average time interval is an average of the time intervals of the encoder output pulses detected in a period (n ≧ 2) that is n times the fluctuation cycle of the motor rotation speed. It can be a moving average up to the rising pulse or up to the current rising pulse.

【0023】タイミング遅延量td−Δtは,検出時間
間隔が平均時間間隔よりも大きいところでは小さくな
り,その逆のところでは大きくなることによって,タイ
ミング変動の補正が行われる。
The timing delay amount td-Δt becomes smaller when the detection time interval is larger than the average time interval and becomes large when the detection time interval is larger than the average time interval, whereby the timing fluctuation is corrected.

【0024】次に図1のBに示された本発明の第2の方
法では,エンコーダ出力パルスの時間間隔を監視する上
限値TU と下限値TL とが固定値として設定されてお
り,エンコーダ出力パルスのタイミング位置の変動幅を
U とTL の範囲に抑制して印字タイミングを生成す
る。TU とTL による時間間隔の監視範囲は,印字タイ
ミングを生成するごとに更新される。
Next, in the second method of the present invention shown in FIG. 1B, the upper limit value T U and the lower limit value T L for monitoring the time interval of the encoder output pulse are set as fixed values, The print timing is generated by suppressing the fluctuation range of the timing position of the encoder output pulse within the range of T U and T L. The monitoring range of the time interval by T U and T L is updated every time the print timing is generated.

【0025】図2のBは図1のAの方法の動作タイミン
グ図である。図中,(a)はエンコーダ出力パルス,
(b)はその立上りパルス,(c)は時間間隔の上限値
U と下限値TL ,(d)は生成された印字タイミング
を示す。
FIG. 2B is an operation timing chart of the method of FIG. 1A. In the figure, (a) is the encoder output pulse,
(B) shows the rising pulse, (c) shows the upper limit value T U and the lower limit value T L of the time interval, and (d) shows the generated print timing.

【0026】TU とTL は印字タイミングを生成するご
とに再設定され,次の立上りパルスの時間間隔(Ti
と比較されて,Ti >TU ならTU ,TU ≧T≧TL
らT i ,Ti <TL ならTL のそれぞれの位置で印字タ
イミングが生成される。
TUAnd TLIs for generating the print timing.
And the time interval of the next rising pulse (Ti)
Compared to Ti> TUThen TU, TU≧ T ≧ TLNa
Et T i, Ti<TLThen TLPrint at each position of
Imming is generated.

【0027】このようにして,各立上げパルスの時間間
隔をTU とTL の間に補正した印字タイミングが生成さ
れる。
In this way, the print timing is generated by correcting the time interval of each rising pulse between T U and T L.

【0028】[0028]

【実施例】図3に本発明の第1の方法による実施例構成
を示す。図中の1はモータ,2はエンコーダ,15は立
上り検出部,25は時間間隔カウンタ,26はバッフ
ァ,27は平均算出部,28は平均時間間隔レジスタ,
29は比較部,30は遅延量算出部,31は遅延カウン
タである。
FIG. 3 shows the configuration of an embodiment according to the first method of the present invention. In the figure, 1 is a motor, 2 is an encoder, 15 is a rise detection unit, 25 is a time interval counter, 26 is a buffer, 27 is an average calculation unit, 28 is an average time interval register,
Reference numeral 29 is a comparison unit, 30 is a delay amount calculation unit, and 31 is a delay counter.

【0029】図4は図3に示された実施例の動作タイミ
ング図であり,以下に図4を参照して図3の実施例構成
を説明する。モータ1の回転により,エンコーダ2から
図4(a)のエンコーダ出力パルスが生じ,立上り検出
部15で図4(b)の立上りパルスが生成される。時間
間隔カウンタ25は,クロックを連続カウントし,エン
コーダ出力の立上りパルスごとに,図4(c)のタイミ
ングでそのときのカウント値を出力するとともにリセッ
トし,クロックのカウントを再開する。このカウント値
は立上りパルスの時間間隔を表わし,立上りパルスごと
に読み出されて,バッファ26に順次格納される。
FIG. 4 is an operation timing chart of the embodiment shown in FIG. 3. The configuration of the embodiment of FIG. 3 will be described below with reference to FIG. The rotation of the motor 1 causes the encoder 2 to generate the encoder output pulse of FIG. 4A, and the rising edge detector 15 generates the rising edge pulse of FIG. 4B. The time interval counter 25 continuously counts clocks, outputs the count value at that time at each rising pulse of the encoder output, resets, and restarts clock counting. This count value represents the time interval of the rising pulse, is read for each rising pulse, and is sequentially stored in the buffer 26.

【0030】平均算出部27は,バッファ26に格納さ
れているn個のデータを図4(d)のタイミングで読み
出して平均をとり,結果のデータを平均時間間隔レジス
タ28に格納する。
The average calculator 27 reads out the n pieces of data stored in the buffer 26 at the timing shown in FIG. 4D and averages them, and stores the resulting data in the average time interval register 28.

【0031】比較部29は,直前の時間間隔と平均時間
間隔との差をとって,図4(e)のタイミングで誤差Δ
tを出力する。遅延量算出部30は,固定値tdから誤
差Δtを減算して遅延量(td−Δt)を求め,遅延カ
ウンタ31にロードする。
The comparison unit 29 takes the difference between the immediately preceding time interval and the average time interval, and calculates the error Δ at the timing of FIG. 4 (e).
Output t. The delay amount calculation unit 30 subtracts the error Δt from the fixed value td to obtain the delay amount (td−Δt), and loads it into the delay counter 31.

【0032】遅延カウンタ31は,ロードされた(td
−Δt)からクロックを減算カウントし,0に達したタ
イミングで図4(f)に示すように印字タイミングを生
成する。
The delay counter 31 is loaded (td
The clock is subtracted and counted from −Δt), and at the timing when it reaches 0, the print timing is generated as shown in FIG.

【0033】図5は,本発明の第2の方法による実施例
の構成を示す。図中,32はD.FF,33はレジス
タ,34はANDゲート,35はハンマークロック生成
タイマ,36はインバータ,37は下限値レジスタ,3
8は上限値レジスタ,39および40は比較器,41な
いし43はJK.FF,44ないし46はD.FF,4
7は立上り検出回路,48は立下り検出回路,49ない
し51はANDゲート,52はNORゲート,53ない
し55はORゲート,EPSはエンコーダ出力パルス,
UPPは下限値に基づく下限パルス,DWPは上限値に
基づく上限パルス,HMCLKはハンマークロックであ
る。
FIG. 5 shows the configuration of an embodiment according to the second method of the present invention. In the figure, 32 is D. FF, 33 is a register, 34 is an AND gate, 35 is a hammer clock generation timer, 36 is an inverter, 37 is a lower limit value register, 3
8 is an upper limit register, 39 and 40 are comparators, 41 to 43 are JK. FF, 44 to 46 are D.I. FF, 4
Reference numeral 7 is a rise detection circuit, 48 is a fall detection circuit, 49 to 51 are AND gates, 52 is a NOR gate, 53 to 55 are OR gates, EPS is an encoder output pulse,
UPP is a lower limit pulse based on the lower limit value, DWP is an upper limit pulse based on the upper limit value, and HMCLK is a hammer clock.

【0034】図6は,図5に示された実施例の動作タイ
ミング図である。以下に図6を参照して図5の実施例構
成を説明する。レジスタ33にはCPUから動作開始時
に‘1’がセットされ,HMCLK生成機能が有効化さ
れる。また下限値レジスタ37と上限値レジスタ38に
はCPUから下限値TL と上限値TU とがそれぞれセッ
トされる。D.FF32には図6(a)のEPSごとに
レジスタ33の値‘1’が読み込まれる。ANDゲート
1は,インバータ36の出力が‘1’すなわち図6
(i)のHMCLKが‘0’のとき,D.FF32の出
力が‘1’であることを条件に‘1’となる信号を図
6(b)に示すように出力する。この信号が‘0’の
ときハンマークロック生成タイマ35はリセットされて
おり,信号が‘1’になると図示されていない高速の
内部クロックのカウント動作を開始する。このタイマの
カウント出力は,生成されたHMCLKがインバータ3
6を介して帰還されることにより信号が‘0’に変化
し,タイマがリセットされるまで,クロックごとに1ず
つ増大し,時間走査用のデータとして使用される。比較
器39は,タイマ35のカウント出力がTL を超えたと
き‘0’から‘1’に変る。
FIG. 6 is an operation timing chart of the embodiment shown in FIG. The configuration of the embodiment of FIG. 5 will be described below with reference to FIG. The register 33 is set to "1" by the CPU when the operation starts, and the HMCLK generation function is enabled. The lower limit value T L and the upper limit value T U are set in the lower limit value register 37 and the upper limit value register 38 by the CPU. D. The value "1" of the register 33 is read into the FF 32 for each EPS of FIG. 6 (a). In the AND gate 1, the output of the inverter 36 is "1", that is, in FIG.
When HMCLK of (i) is “0”, D.I. If the output of the FF 32 is "1", a signal that becomes "1" is output as shown in FIG. 6 (b). When this signal is "0", the hammer clock generation timer 35 is reset, and when the signal becomes "1", the counting operation of the high-speed internal clock (not shown) is started. The count output of this timer is based on the generated HMCLK
The signal is changed to "0" by being fed back via 6, and is incremented by 1 every clock until the timer is reset, and is used as data for time scanning. The comparator 39 changes from "0" to "1" when the count output of the timer 35 exceeds T L.

【0035】JK.FF41は,比較器39,40の出
力状態に応じて,図6の(c)に示される信号を出力
する。立上り検出回路47と立下り検出回路48とは,
それぞれ信号の立上りと立下りから,図6の(d),
(e)に示すUPPとDWPとを生成する。UPPとD
WPは,それぞれ下限値TL と上限値TU とに対応して
いることから,ここでは下限パルスと上限パルスと呼ば
れる。
JK. The FF 41 outputs the signal shown in FIG. 6C according to the output states of the comparators 39 and 40. The rising detection circuit 47 and the falling detection circuit 48 are
From the rising and falling of the signal respectively, (d) of FIG.
The UPP and DWP shown in (e) are generated. UPP and D
Since WP corresponds to the lower limit value T L and the upper limit value T U , respectively, it is called a lower limit pulse and an upper limit pulse here.

【0036】ANDゲート49は,信号が‘1’の間
にEPSが入力されたとき,すなわち直前のEPSとの
間の時間間隔Tが TU ≧T≧TL の場合に,‘1’を出力し,ORゲート53および54
を経て図6の(i)のHMCLKの最初のパルスを生成
する。つまりANDゲート49においては,信号はT
U とTL の間にあるTを検出するための時間窓として機
能する。
The AND gate 49 sets "1" when the EPS is input while the signal is "1", that is, when the time interval T between the EPS and the immediately preceding EPS is T U ≥T ≥T L. Output and OR gates 53 and 54
To generate the first pulse of HMCLK of FIG. 6 (i). That is, in the AND gate 49, the signal is T
It serves as a time window for detecting T between U and TL .

【0037】他方,ANDゲート49とANDゲート5
1は,それぞれT>TU ,T<TL の場合のTを検出す
る。このときANDゲート50,51においてTを検出
するために使用される時間窓は,図6の(f)に示す信
号と(h)に示す信号である。
On the other hand, AND gate 49 and AND gate 5
1 detects T when T> T U and T <T L , respectively. At this time, the time windows used to detect T in the AND gates 50 and 51 are the signals shown in (f) and (h) of FIG.

【0038】T<TU の場合,EPSはUPPよりも先
に生じるのでJK.FF42の出力は‘0’,DWPは
‘0’であり,NORゲート52の出力は‘1’とな
る。この結果,D.FF45にはEPSのタイミングで
‘1’がセットされ,信号は‘1’に立上る。信号
は,DWPが生じるまで‘1’のままであり,この間に
UPPがANDゲート50に入力されると,出力が
‘1’となり,ORゲート53,54を経てHMCLK
として出力される。これが図6の(i)の2番目のパル
スである。(i)の3番目のパルスは,最初のパルスと
同様なTU ≧T≧TL の場合の例である。
When T <T U , EPS occurs before UPP, so JK. The output of the FF 42 is "0", the DWP is "0", and the output of the NOR gate 52 is "1". As a result, D. "1" is set in the FF 45 at the timing of EPS, and the signal rises to "1". The signal remains "1" until DWP occurs, and when UPP is input to the AND gate 50 during this period, the output becomes "1" and the HMCLK signal is output via the OR gates 53 and 54.
Is output as. This is the second pulse in (i) of FIG. The third pulse of (i) is an example in the case of T U ≧ T ≧ T L similar to the first pulse.

【0039】次にT>TU の場合には,EPSはDWP
の後に入力される。D.FF44はDWPの入力前に反
転出力から‘1’をD.FF46に入力し,D.FF4
6の出力の信号は‘1’となる。この後DWPが入力
されると,ANDゲート51からパルス出力が生じ,O
Rゲート54から図6の(i)の4番目のHMCLKが
生成される。このとき,続いて生じるEPSによってT
<TL のときと同様な動作が生じないように,ANDゲ
ート51の出力によってJK.FF42を‘1’にセッ
トし,NORゲート52の出力を‘0’にする。それに
よりD.FF45が,続くESPによって‘0’を読み
込み,出力の信号を‘0’に保持して,ANDゲート
50の動作を禁止する。なおJK.FF42は,同じE
PSによって‘0’に戻されるため,次のEPSに対し
ては正常な動作が行われる。
Next, when T> T U , the EPS is DWP.
Will be entered after. D. The FF 44 outputs "1" from the inverted output to the D.P. Input to FF46, D. FF4
The output signal of 6 becomes "1". After that, when DWP is input, a pulse output is generated from the AND gate 51 and O
The fourth HMCLK of (i) in FIG. 6 is generated from the R gate 54. At this time, the T
The output of the AND gate 51 prevents the occurrence of the same operation as in the case of < TL . The FF42 is set to "1" and the output of the NOR gate 52 is set to "0". As a result, D. The FF 45 reads "0" by the subsequent ESP, holds the output signal at "0", and prohibits the operation of the AND gate 50. JK. FF42 is the same E
Since it is returned to "0" by PS, normal operation is performed for the next EPS.

【0040】生成されたHMCLKは,インバータ36
を介してANDゲート34の入力に帰還され,ハンマー
クロック生成タイマ35をリセットして,TL ,TU
再設定が行われる。
The generated HMCLK is sent to the inverter 36
It is fed back to the input of the AND gate 34 via the, and the hammer clock generation timer 35 is reset, and T L and T U are reset.

【0041】JK.FF43は,T>TU とT<TL
各場合に‘1’にセットされ,異常を示すNGフラグを
オンにする。
JK. The FF 43 is set to “1” in each case of T> T U and T <T L , and turns on the NG flag indicating an abnormality.

【0042】[0042]

【発明の効果】本発明によれば,モータの速度変動から
印字タイミングが受ける影響を小さくすることができ,
印字ずれのない高精度の印刷が可能となる。また印字ヘ
ッドの駆動周期の規格から外れた周期での印字駆動が抑
制されることによって,印字ヘッドの破損が防止され,
コストの低下を図ることができる。
According to the present invention, it is possible to reduce the influence of the print timing due to the speed variation of the motor,
Highly accurate printing without print misalignment is possible. In addition, the print head is prevented from being damaged by suppressing the print drive in the cycle that is out of the standard of the drive cycle of the print head,
The cost can be reduced.

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

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

【図2】本発明の動作タイミング図である。FIG. 2 is an operation timing chart of the present invention.

【図3】本発明の第1の方法による実施例の構成図であ
る。
FIG. 3 is a configuration diagram of an embodiment according to the first method of the present invention.

【図4】本発明の第1の方法による実施例の動作タイミ
ング図である。
FIG. 4 is an operation timing chart of the embodiment according to the first method of the present invention.

【図5】本発明の第2の方法による実施例の構成図であ
る。
FIG. 5 is a configuration diagram of an embodiment according to a second method of the present invention.

【図6】本発明の第2の方法による実施例の動作タイミ
ング図である。
FIG. 6 is an operation timing chart of the embodiment according to the second method of the present invention.

【図7】従来のシリアルドットプリンタの構成図であ
る。
FIG. 7 is a configuration diagram of a conventional serial dot printer.

【図8】従来のプリンタにおけるモータとキャリアの駆
動特性図である。
FIG. 8 is a drive characteristic diagram of a motor and a carrier in a conventional printer.

【図9】従来のプリンタの印字タイミング生成過程の説
明図である。
FIG. 9 is an explanatory diagram of a print timing generation process of a conventional printer.

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

15 立上り検出部 16 時間間隔検出部 17 平均時間間隔検出部 18 比較部 19 可変遅延部 20 上限比較部 21 下限比較部 22 上限パルス発生部 23 下限パルス発生部 24 マルチプレクサ 15 Rise detector 16 time interval detector 17 Average time interval detector 18 Comparison Department 19 Variable delay unit 20 Upper limit comparison section 21 Lower limit comparison section 22 Upper limit pulse generator 23 Lower limit pulse generator 24 multiplexer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 印字ヘッドのキャリアがベルトを介して
結合されたモータにより駆動され,また前記モータの回
転軸に直結された速度検出用のエンコーダから出力され
るパルスに基づいて前記印字ヘッドを駆動する印字タイ
ミングを生成するシリアルドットプリンタにおいて, 前記エンコーダ出力パルスの一定個数について順次のパ
ルスの間の時間間隔を測定し,各測定された時間間隔の
平均値を求め,次に当該時間間隔の平均値と前記エンコ
ーダ出力パルスの順次の時間間隔の差に基づいて,各エ
ンコーダ出力パルスのタイミング位置を補正し,印字タ
イミングを生成することを特徴とするシリアルドットプ
リンタの印字タイミング補正方法。
1. A print head carrier is driven by a motor coupled via a belt, and the print head is driven based on a pulse output from a speed detection encoder directly connected to a rotation shaft of the motor. In a serial dot printer that generates a print timing, the time interval between successive pulses of a fixed number of encoder output pulses is measured, the average value of each measured time interval is calculated, and then the average of the time interval is calculated. A print timing correction method for a serial dot printer, which corrects a timing position of each encoder output pulse based on a difference between a value and a sequential time interval of the encoder output pulse to generate a print timing.
【請求項2】 印字ヘッドのキャリアがベルトを介して
結合されたモータにより駆動され,また前記モータの回
転軸に直結された速度検出用のエンコーダから出力され
るパルスに基づいて前記印字ヘッドを駆動する印字タイ
ミングを生成するシリアルドットプリンタにおいて, 前記エンコーダ出力パルスの周期について予め一定の上
限値と下限値とを設定し, 前記エンコーダ出力パルスの順次の時間間隔を測定し,
その時間間隔を前記上限値および下限値とそれぞれ比較
し,前記時間間隔が上限値と下限値の間にある場合には
前記エンコーダ出力パルスに基づいて印字タイミングを
生成し, また前記時間間隔が上限値よりも大きい場合には,当該
上限値の位置で印字タイミングを生成し, また前記時間間隔が下限値よりも小さい場合には,当該
下限値の位置で印字タイミングを生成することを特徴と
するシリアルドットプリンタの印字タイミング補正方
法。
2. A print head carrier is driven by a motor coupled via a belt, and the print head is driven based on a pulse output from a speed detection encoder directly connected to a rotation shaft of the motor. In a serial dot printer that generates a print timing to be set, a fixed upper limit value and a lower limit value are set in advance for the cycle of the encoder output pulse, and the sequential time intervals of the encoder output pulse are measured,
The time interval is compared with the upper limit value and the lower limit value, respectively, and when the time interval is between the upper limit value and the lower limit value, print timing is generated based on the encoder output pulse. When it is larger than the value, the print timing is generated at the position of the upper limit value, and when the time interval is smaller than the lower limit value, the print timing is generated at the position of the lower limit value. Print timing correction method for serial dot printers.
JP17909491A 1991-07-19 1991-07-19 Print timing correction method for serial dot printer Expired - Fee Related JP2504640B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17909491A JP2504640B2 (en) 1991-07-19 1991-07-19 Print timing correction method for serial dot printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17909491A JP2504640B2 (en) 1991-07-19 1991-07-19 Print timing correction method for serial dot printer

Publications (2)

Publication Number Publication Date
JPH0524264A true JPH0524264A (en) 1993-02-02
JP2504640B2 JP2504640B2 (en) 1996-06-05

Family

ID=16059952

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17909491A Expired - Fee Related JP2504640B2 (en) 1991-07-19 1991-07-19 Print timing correction method for serial dot printer

Country Status (1)

Country Link
JP (1) JP2504640B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7237858B2 (en) 2002-03-14 2007-07-03 Seiko Epson Corporation Printing apparatus, printing method, storage medium, and computer system
US7284810B2 (en) 2002-03-14 2007-10-23 Seiko Epson Corporation Printer, printing method, program, storage medium and computer system
WO2011144465A1 (en) * 2010-05-18 2011-11-24 OCé PRINTING SYSTEMS GMBH Method for activating a processing device and processing device activated in such a way

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7237858B2 (en) 2002-03-14 2007-07-03 Seiko Epson Corporation Printing apparatus, printing method, storage medium, and computer system
US7284810B2 (en) 2002-03-14 2007-10-23 Seiko Epson Corporation Printer, printing method, program, storage medium and computer system
US7712857B2 (en) 2002-03-14 2010-05-11 Seiko Epson Corporation Printing apparatus, printing method, program, storage medium, and computer system
WO2011144465A1 (en) * 2010-05-18 2011-11-24 OCé PRINTING SYSTEMS GMBH Method for activating a processing device and processing device activated in such a way
US8911049B2 (en) 2010-05-18 2014-12-16 OCé PRINTING SYSTEMS GMBH Method for activating a processing device and processing device activated in such a way

Also Published As

Publication number Publication date
JP2504640B2 (en) 1996-06-05

Similar Documents

Publication Publication Date Title
JP4595682B2 (en) Linear drive
JP4616777B2 (en) Conveyance control device and image forming apparatus
JP4894872B2 (en) Motor control apparatus and image forming apparatus
US8882225B2 (en) Printing apparatus, driving apparatus, and driving method
JP2504640B2 (en) Print timing correction method for serial dot printer
US7135831B2 (en) Method and device for controlling motor
US7804267B2 (en) Correction method for microprocessor-controlled digital regulation
US4869347A (en) Speed control apparatus for elevators
US5220266A (en) Motor speed controlling device capable of correcting for speed detection error caused by change of duty ratio of photocoupler output pulses
JP2011041375A (en) Motor control apparatus and image forming apparatus
JP2008211930A (en) Motor controller and motor control method
US4869609A (en) Method of controlling printing positions in a printer and an apparatus therefor
US20230347643A1 (en) Pulse generator
JP3945362B2 (en) Printing apparatus having a DC motor
JP2580398B2 (en) Printer print position correction processing method
JPH08301484A (en) Printer device
JP2022081149A (en) Printer, and control method for printer
JP2004250133A (en) Sheet transport device, image forming apparatus, and positioning method
US3974765A (en) Apparatus for correcting the way in which print hammers strike
JPS6316318Y2 (en)
JP2005111712A (en) Printer
JPH11221910A (en) Image output apparatus
JP2007307756A (en) Driving controlling apparatus and image forming apparatus
JPH0655795A (en) Printing signal generation method and device in serial printer
JP2007210688A (en) Drive mechanism control device, ink jet recording device, image forming device, control method for motor and computer-readable recording medium storing program for performing the method

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

LAPS Cancellation because of no payment of annual fees