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
JP3294757B2 - Printer head gap measuring device - Google Patents
[go: Go Back, main page]

JP3294757B2 - Printer head gap measuring device - Google Patents

Printer head gap measuring device

Info

Publication number
JP3294757B2
JP3294757B2 JP5732096A JP5732096A JP3294757B2 JP 3294757 B2 JP3294757 B2 JP 3294757B2 JP 5732096 A JP5732096 A JP 5732096A JP 5732096 A JP5732096 A JP 5732096A JP 3294757 B2 JP3294757 B2 JP 3294757B2
Authority
JP
Japan
Prior art keywords
voltage
circuit
back electromotive
waveform
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
JP5732096A
Other languages
Japanese (ja)
Other versions
JPH09240104A (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.)
Toshiba Tec Corp
Original Assignee
Toshiba Tec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Tec Corp filed Critical Toshiba Tec Corp
Priority to JP5732096A priority Critical patent/JP3294757B2/en
Publication of JPH09240104A publication Critical patent/JPH09240104A/en
Application granted granted Critical
Publication of JP3294757B2 publication Critical patent/JP3294757B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Common Mechanisms (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、プリンタのヘッ
ドを記録媒体に対して最適な位置に位置決めするための
ヘッドギャップを測定するプリンタのヘッドギャップ測
定装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer head gap measuring apparatus for measuring a head gap for positioning a printer head at an optimum position with respect to a recording medium.

【0002】[0002]

【従来の技術】ドットプリンタ、例えばワイヤドットプ
リンタやサーマルプリンタでは、印字ヘッドと用紙の印
字面との間の距離又は接触( 押圧 )状態( ここでは、ヘ
ッドギャップと称する )が、印字品質に大きく影響を与
える。一方、用紙は、材質、種類によって厚さが異な
り、印字に使用する用紙の厚さに応じてヘッドギャップ
を調整する必要がある。そこで、従来のドットプリンタ
では、印字前に用紙の厚さを自動的に測定して、自動的
にヘッドギャップを調整するものが知られている。用紙
の厚さを測定する方法も各種方法があるが、例えば、印
字ヘッドをプラテンに対して離間・接近( 接触 )移動さ
せる機構をモータにより駆動する場合に、モータ( ステ
ッピングモータ )の励磁コイルに発生する逆起電圧を利
用して用紙の厚さを測定するものがある。
2. Description of the Related Art In a dot printer, for example, a wire dot printer or a thermal printer, the distance between a print head and a printing surface of a sheet or a contact (pressing) state (here, referred to as a head gap) greatly increases print quality. Affect. On the other hand, the thickness of paper varies depending on the material and type, and it is necessary to adjust the head gap according to the thickness of the paper used for printing. Therefore, a conventional dot printer is known which automatically measures the thickness of the sheet before printing and automatically adjusts the head gap. There are various methods for measuring the thickness of paper.For example, when a mechanism that moves the print head away from or close to (contact with) the platen is driven by a motor, the excitation coil of the motor (stepping motor) is used. In some cases, the thickness of a sheet is measured by using a generated back electromotive voltage.

【0003】これは、モータの駆動により印字ヘッドを
プラテンの表面又は用紙の表面に当接するように移動さ
せたときに、その移動中の逆起電圧を監視すると、印字
ヘッドがプラテンの表面又は用紙の表面に当接した瞬間
にモータが脱調するため、その逆起電圧の波形が、印字
ヘッドがプラテンの表面又は用紙の表面に当接した瞬間
に変化する。従って、この逆起電圧の波形の変化の検出
タイミングに基づいて、プラテンの表面位置と用紙の表
面位置を測定し、その差を算出すれば用紙の厚さとな
る。この用紙の厚さから、最適なヘッドギャップを算出
して、そのヘッドギャップとなるように印字ヘッドの高
さを調節すれば、高品位の印字品質を得ることができ
る。
[0003] This is because, when the print head is moved so as to be in contact with the surface of the platen or the surface of the paper by driving the motor, and the back electromotive voltage is monitored during the movement, the print head is moved to the surface of the platen or the paper. When the motor comes out of contact with the surface of the platen, the waveform of the back electromotive voltage changes at the moment when the print head comes into contact with the surface of the platen or the surface of the paper. Therefore, based on the detection timing of the change in the waveform of the back electromotive voltage, the surface position of the platen and the surface position of the sheet are measured, and if the difference is calculated, the thickness of the sheet is obtained. If the optimum head gap is calculated from the thickness of the paper and the height of the print head is adjusted so as to be the head gap, high quality print quality can be obtained.

【0004】従来のドットプリンタの印字ヘッドの高さ
を調整するモータの逆起電圧を検出する回路は、図5に
示すように構成されている。モータは、A相コイル10
1と、A相コイル101に対して逆位相の( 180°位
相がずれた )B相コイル102と、このA相コイル10
1に対して90°位相がずれたC相コイル103と、C
相コイル103に対して逆位相の( A相コイル101に
対して270°位相がずれた )D相コイル104とを備
え、各コイル101〜104毎に以下に説明する駆動回
路が設けられている。
A circuit for detecting a back electromotive voltage of a motor for adjusting the height of a print head of a conventional dot printer is configured as shown in FIG. The motor is an A-phase coil 10
1, a B-phase coil 102 having an opposite phase (180 ° out of phase) with respect to the A-phase coil 101, and an A-phase coil 10
A C-phase coil 103 90 ° out of phase with respect to
A D-phase coil 104 having a phase opposite to that of the phase coil 103 (a phase shift of 270 ° with respect to the A-phase coil 101), and a driving circuit described below is provided for each of the coils 101 to 104 .

【0005】各コイル104〜105の一端は駆動電源
Vmに接続され、その他端はそれぞれNPN形のトラン
ジスタ105〜108を介してグラウンド( 0 [V])に
接続されている。駆動用の各トランジスタ105〜10
8はそれぞれ、そのベース端子・コレクタ端子間に制御
用のNPN形のトランジスタ109〜112が接続され
ており、各トランジスタ105〜108のベース端子・
エミッタ端子間には抵抗113〜116が接続されてい
る。一方、各トランジスタ109〜112のベース端子
・エミッタ端子間にも、抵抗117〜120が接続され
ている。各トランジスタ109〜112のベース端子に
は、図示しない制御部から供給される励磁制御信号A
f、Ar、Cf、Crが供給され、上述した位相のずれ
が発生するように、各トランジスタ105〜108のオ
ンタイミングが制御されて、各コイル101〜104が
励磁される。
[0005] One end of each of the coils 104 to 105 is connected to the drive power supply Vm, and the other end is connected to ground (0 [V]) via NPN transistors 105 to 108, respectively. Driving transistors 105 to 10
8, NPN transistors 109 to 112 for control are connected between the base terminal and the collector terminal of each transistor.
Resistors 113 to 116 are connected between the emitter terminals. On the other hand, resistors 117 to 120 are connected between the base terminal and the emitter terminal of each of the transistors 109 to 112. An excitation control signal A supplied from a control unit (not shown) is supplied to a base terminal of each of the transistors 109 to 112.
f, Ar, Cf, and Cr are supplied, and the on-timing of each of the transistors 105 to 108 is controlled so that the above-described phase shift occurs, and the coils 101 to 104 are excited.

【0006】A相コイル101とトランジスタ105の
コレクタ端子との接続点は、逆流防止用のダイオード1
21のアノード端子に接続され、B相コイル102とト
ランジスタ106のコレクタ端子との接続点は逆流防止
用のダイオード122のアノード端子に接続され、ダイ
オード121のカソード端子とダイオード122のカソ
ード端子とは互いに接続されて、逆起電圧Aeを出力す
るようになっている。同様に、C相コイル103とトラ
ンジスタ107のコレクタ端子との接続点は、逆流防止
用のダイオード123のアノード端子に接続され、D相
コイル104とトランジスタ108のコレクタ端子との
接続点は逆流防止用のダイオード124のアノード端子
に接続され、ダイオード123のカソード端子とダイオ
ード124のカソード端子とは互いに接続されて、逆起
電圧Ceを出力するようになっている。
The connection point between the A-phase coil 101 and the collector terminal of the transistor 105 is connected to a diode 1 for preventing backflow.
21 is connected to the anode terminal of the diode 122 for backflow prevention, and the cathode terminal of the diode 121 and the cathode terminal of the diode 122 are connected to each other. It is connected to output a back electromotive voltage Ae. Similarly, the connection point between the C-phase coil 103 and the collector terminal of the transistor 107 is connected to the anode terminal of the diode 123 for backflow prevention, and the connection point between the D-phase coil 104 and the collector terminal of the transistor 108 is used for backflow prevention. Is connected to the anode terminal of the diode 124, and the cathode terminal of the diode 123 and the cathode terminal of the diode 124 are connected to each other to output the back electromotive force Ce.

【0007】図6は、逆起電圧Ae及びCeを監視し
て、モータの脱調を判定する回路を示す回路図である。
A相( B相 )の逆起電圧Aeは、互いにカソード端子を
接続した定電圧ダイオード131,132のそのカソー
ド端子同士の接続点に入力される。一方の定電圧ダイオ
ード131のアノード端子は駆動電源Vmに接続され、
他方の定電圧ダイオード132のアノード端子は、2個
の抵抗133,134からなる直列分圧回路を介してグ
ラウンド( 0 [V])に接続されている。一方の定電圧ダ
イオード131は、そのツェナー電圧により、逆起電圧
Aeの頭部波形を所定電圧でクランプする。また、他方
の定電圧ダイオード132は、逆起電圧Aeがそのツェ
ナー電圧より低くなると、抵抗133,134への電流
の供給を遮断する。すなわち、直列分圧回路には電圧が
かからなくなる。
FIG. 6 is a circuit diagram showing a circuit that monitors the back electromotive voltages Ae and Ce to determine step-out of the motor.
The A-phase (B-phase) back electromotive force Ae is input to the connection point between the cathode terminals of the constant voltage diodes 131 and 132 whose cathode terminals are connected to each other. The anode terminal of one of the constant voltage diodes 131 is connected to the drive power supply Vm,
The anode terminal of the other constant voltage diode 132 is connected to ground (0 [V]) via a series voltage dividing circuit composed of two resistors 133 and 134. One constant voltage diode 131 clamps the head waveform of the back electromotive voltage Ae at a predetermined voltage by the Zener voltage. When the back electromotive voltage Ae becomes lower than the Zener voltage, the other constant voltage diode 132 cuts off current supply to the resistors 133 and 134. That is, no voltage is applied to the series voltage dividing circuit.

【0008】同様に、C相( D相 )の逆起電圧Ceは、
互いにカソード端子を接続した定電圧ダイオード13
5,136のそのカソード端子の接続点に入力される。
一方の定電圧ダイオード135のアノード端子は駆動電
源Vmに接続され、他方の定電圧ダイオード136のア
ノード端子は、2個の抵抗137,138からなる直列
分圧回路を介してグラウンド( 0 [V])に接続されてい
る。
Similarly, the back electromotive voltage Ce of the C phase (D phase) is
Constant-voltage diodes 13 whose cathode terminals are connected to each other
5,136 is input to the connection point of its cathode terminal.
The anode terminal of one constant voltage diode 135 is connected to the driving power supply Vm, and the anode terminal of the other constant voltage diode 136 is connected to ground (0 [V]) via a series voltage dividing circuit composed of two resistors 137 and 138. )It is connected to the.

【0009】抵抗133,134からなる直列分圧回路
の分圧出力点は、コンパレータ139の反転入力端子に
抵抗140を介して接続されている。コンパレータ13
9のの非反転入力端子には、抵抗141を介して、制御
電源Vpとグラウンドとの間に接続された基準電圧を発
生する2個の抵抗142,143からなる直列分圧回路
の分圧出力点が接続されている。コンパレータ139の
非反転入力端子と出力端子との間には、正帰還用の抵抗
144が接続され、その出力端子は、プルアップ抵抗1
45により制御電源Vpにプルアップされて、その出力
信号をモータの脱調を検出した判定信号Oaとして図示
しない制御部へ出力している。同様に、抵抗137,1
38からなる直列分圧回路の分圧出力点は、コンパレー
タ146の反転入力端子に抵抗147を介して接続され
ている。コンパレータ139のの非反転入力端子には、
抵抗148を介して、制御電源Vpとグラウンドとの間
に接続された基準電圧を発生する2個の抵抗149,1
50からなる直列分圧回路の分圧出力点が接続されてい
る。コンパレータ146の非反転入力端子と出力端子と
の間には、正帰還用の抵抗151が接続され、その出力
端子は、プルアップ抵抗152により制御電源Vpにプ
ルアップされて、出力信号をモータの脱調を検出した判
定信号Ocとして図示しない制御部へ出力している。
The voltage dividing output point of the series voltage dividing circuit composed of the resistors 133 and 134 is connected to the inverting input terminal of the comparator 139 via the resistor 140. Comparator 13
The non-inverting input terminal of No. 9 has a voltage dividing output of a series voltage dividing circuit composed of two resistors 142 and 143 for generating a reference voltage connected between the control power supply Vp and the ground via a resistor 141. Points are connected. A positive feedback resistor 144 is connected between the non-inverting input terminal and the output terminal of the comparator 139, and its output terminal is connected to the pull-up resistor 1
The control signal is pulled up by 45 to the control power supply Vp, and the output signal is output to a control unit (not shown) as a determination signal Oa for detecting out-of-step of the motor. Similarly, resistors 137 and 1
The voltage dividing output point of the series voltage dividing circuit 38 is connected to the inverting input terminal of the comparator 146 via the resistor 147. The non-inverting input terminal of the comparator 139 has
Two resistors 149 and 1 for generating a reference voltage connected between the control power supply Vp and the ground via the resistor 148
The divided voltage output point of the series voltage dividing circuit composed of 50 is connected. A resistor 151 for positive feedback is connected between the non-inverting input terminal and the output terminal of the comparator 146, and its output terminal is pulled up to a control power supply Vp by a pull-up resistor 152 to output an output signal of the motor. This is output to a control unit (not shown) as a determination signal Oc that has detected step-out.

【0010】図7は、上述したモータの脱調を判定する
回路からの判定信号Oa,Ocにより、図示しない制御
部が行うヘッドギャップ測定処理の流れを示す図であ
る。まず、用紙搬送路上に残っている用紙を排出する処
理を行い、この用紙排出処理を終了すると、印字ヘッド
が確実にプラテンに接触しない位置( 非脱調領域 )まで
退避( 移動 )させる処理を行う。ここで、モータを印字
ヘッドがプラテンに接近する回転方向に数パルス駆動
し、その時の判定信号Oa又はOcのハイレベルのパル
ス幅( 時間 )を計測し、計測データとして記憶する。こ
のハイレベルのパルス幅の計測データは、パルス数と同
じ個数あるので、その平均値を算出し正常パルス幅とし
て設定する。
FIG. 7 is a diagram showing a flow of a head gap measurement process performed by a control unit (not shown) based on the determination signals Oa and Oc from the above-described circuit for determining out-of-step of the motor. First, a process for discharging the paper remaining on the paper transport path is performed, and when the paper discharge process is completed, a process for retracting (moving) the print head to a position where the print head does not contact the platen (non-step-out area) is performed. . Here, the motor is driven for several pulses in the rotation direction in which the print head approaches the platen, and the high-level pulse width (time) of the judgment signal Oa or Oc at that time is measured and stored as measurement data. Since the measurement data of the high-level pulse width is the same as the number of pulses, the average value is calculated and set as the normal pulse width.

【0011】次に、モータを印字ヘッドがプラテンに接
近( 当接 )する方向に駆動開始して、判定信号Oa又は
Ocのハイレベルのパルス幅を計測し、そのパルス幅
が、設定された正常パルス幅より狭い( 短い )ものが検
出されるまで、すなわち、モータの脱調が検出されるま
で、そのモータの駆動を継続する。判定信号Oa又はO
cからモータの脱調が検出されると、そのときの印字ヘ
ッドの位置( モータの回転位置 )をホームポジションと
して設定し、モータを印字ヘッドがプラテンから離間す
る方向( 逆方向 )に、印字ヘッドとプラテンとの間に用
紙の供給に支障がない程度の十分な間隔が確保できるよ
うに、予め設定されたパルス数分だけ駆動する。このモ
ータの駆動が終了して、印字ヘッドとプラテンとの間に
用紙の供給に支障がない程度の十分な間隔が確保される
と、用紙の供給搬送を行い、印字ヘッドとプラテンとの
間に用紙を介挿して用紙の搬送を停止する。
Next, the motor is started to be driven in the direction in which the print head approaches (contacts) the platen, and the high-level pulse width of the determination signal Oa or Oc is measured. The drive of the motor is continued until a pulse narrower (shorter) than the pulse width is detected, that is, until the step-out of the motor is detected. Judgment signal Oa or O
c, when the step-out of the motor is detected, the position of the print head at that time (the rotational position of the motor) is set as the home position, and the motor is moved in the direction in which the print head separates from the platen (the reverse direction). Driving is performed by the number of pulses set in advance so that a sufficient space between the plate and the platen can be ensured so as not to hinder the sheet supply. When the drive of this motor is completed and a sufficient space is secured between the print head and the platen so as not to hinder the paper supply, the paper is fed and conveyed, and the space between the print head and the platen is The conveyance of the paper is stopped by inserting the paper.

【0012】ここで、モータを印字ヘッドがプラテンに
接近( 当接 )する方向に駆動開始して、判定信号Oa又
はOcのハイレベルのパルス幅を計測し、そのパルス幅
が、設定された正常パルス幅より短いものが検出される
まで、すなわち、モータの脱調が検出されるまで、その
モータの駆動を継続する。判定信号Oa又はOcからモ
ータの脱調が検出されると、そのときの印字ヘッドの位
置( ホームポジションからの距離 )が用紙の厚みとな
り、その位置のデータに基づいて最適な印字ヘッドと用
紙( プラテン )とのギャップ( ヘッドギャップ )を算出
して、この算出したヘッドギャップを設定して、このヘ
ッドギャップ測定処理を終了するようになっている。こ
のようにして設定されたヘッドギャップに基づいて印字
ヘッドの高さが調整され、その調整後、その用紙に対す
る印字が行われる。
Here, the motor is started to be driven in the direction in which the print head approaches (contacts) the platen, and the high-level pulse width of the determination signal Oa or Oc is measured. The drive of the motor is continued until a pulse shorter than the pulse width is detected, that is, until the step-out of the motor is detected. When the step-out of the motor is detected from the determination signal Oa or Oc, the position of the print head (distance from the home position) at that time becomes the thickness of the sheet, and the optimum print head and sheet ( A gap (head gap) with the platen) is calculated, the calculated head gap is set, and the head gap measurement processing ends. The height of the print head is adjusted based on the head gap set as described above, and after the adjustment, printing is performed on the paper.

【0013】図8及び図9は、A相コイル101につい
て、図5及び図6に示す回路各点における電流波形又は
電圧波形を示すものである。なお、他の励磁相( 各コイ
ル102〜104の駆動回路及び検出回路 )についても
タイミングがずれるだけで波形は基本的に同じであるの
で、ここでは図及び説明は省略する。図8( a )は、ト
ランジスタ109に供給する駆動制御信号の電圧波形を
示す。以下の波形は、この駆動制御信号に対して発生す
る波形を示すものである。図8( b )は、通常駆動時(
正常時 )のA相コイル101に流れる駆動電流(逆起電
流の影響を受けたもの )の電流波形を示す。図8( c )
は、通常駆動時( 正常時 )の定電圧ダイオード131の
カソード端子に発生する逆起電力による電圧波形を示
す。図8( d )は、通常駆動時( 正常時 )の抵抗13
3,134からなる直列分圧回路の分圧出力の電圧波形
を示す。図9( a )は、通常駆動時( 正常時 )のコンパ
レータ139から出力される判定信号Oaの電圧波形を
示す。
FIGS. 8 and 9 show a current waveform or a voltage waveform at each point of the circuit shown in FIGS. 5 and 6 for the A-phase coil 101. FIG. The waveforms of the other excitation phases (driving circuits and detection circuits of the coils 102 to 104) are basically the same except for the timing shift, so that the drawings and description are omitted here. FIG. 8A illustrates a voltage waveform of a drive control signal supplied to the transistor 109. The following waveform shows a waveform generated in response to the drive control signal. FIG. 8B shows the state during normal driving (
7 shows a current waveform of a drive current (which is affected by a back electromotive current) flowing through the A-phase coil 101 during normal operation. FIG. 8 (c)
Shows a voltage waveform due to the back electromotive force generated at the cathode terminal of the constant voltage diode 131 during normal driving (normal operation). FIG. 8 (d) shows the resistance 13 during normal driving (normal operation).
3 shows a voltage waveform of a divided output of a series voltage dividing circuit composed of 3,134. FIG. 9A shows a voltage waveform of the determination signal Oa output from the comparator 139 during normal driving (normal operation).

【0014】図8( e )は、脱調時のA相コイル101
に流れる駆動電流( 逆起電流の影響を受けたもの )の電
流波形を示す。図8( f )は、脱調時の定電圧ダイオー
ド131のカソード端子に発生する逆起電力による電圧
波形を示す。図8( g )は、脱調時の抵抗133,13
4からなる直列分圧回路の分圧出力の電圧波形を示す。
FIG. 8E shows an A-phase coil 101 at the time of step-out.
Shows the current waveform of the drive current (which is affected by the back-EMF) flowing through the IGBT. FIG. 8F shows a voltage waveform due to the back electromotive force generated at the cathode terminal of the constant voltage diode 131 at the time of step-out. FIG. 8 (g) shows the resistances 133, 13
4 shows a voltage waveform of a divided output of a series voltage dividing circuit composed of No. 4;

【0015】図9( b )は、脱調時のコンパレータ13
9から出力される判定信号Obの電圧波形を示す。
FIG. 9B shows the state of the comparator 13 at the time of step-out.
9 shows a voltage waveform of a determination signal Ob output from FIG.

【0016】すなわち、駆動制御信号がオンからオフに
変化した時に逆起電力が生じる。このとき、定電圧ダイ
オード131により、そのツェナー電圧により設定され
た電圧値以上の電圧波形はその設定電圧でクランプされ
る( サージ的に鋭い山波形にはならない )。また、定電
圧ダイオード132により、そのツェナー電圧により設
定された電圧値以下の電圧波形は遮断されるので、抵抗
133,134からなる直列分圧回路の分圧出力にはそ
の遮断された電圧波形に対応する波形は発生せず、0
[V]となる。そこで、その抵抗133,134からなる
直列分圧回路の分圧出力と抵抗142,143からなる
直列分圧回路の基準電圧Vrとをコンパレータ139に
より比較した結果得られた判定信号Oaは、定電圧ダイ
オード131でクランプした時間にほぼ等しいパルス幅
の信号となる。
That is, when the drive control signal changes from on to off, back electromotive force is generated. At this time, the voltage waveform that is equal to or higher than the voltage value set by the zener voltage is clamped by the constant voltage diode 131 at the set voltage (it does not become a sharp peak waveform like a surge). Further, since the voltage waveform below the voltage value set by the Zener voltage is cut off by the constant voltage diode 132, the cut-off voltage waveform is applied to the divided voltage output of the series voltage dividing circuit composed of the resistors 133 and 134. No corresponding waveform is generated and 0
[V]. Therefore, the comparator 139 compares the divided output of the series voltage divider composed of the resistors 133 and 134 with the reference voltage Vr of the series voltage divider composed of the resistors 142 and 143, and the determination signal Oa is a constant voltage. The signal has a pulse width substantially equal to the time clamped by the diode 131.

【0017】脱調時には、モータの回転が阻害されるた
め逆起電力が小さくなり、逆起電圧の波形も小さくな
る。従って、上述した定電圧ダイオード131でクラン
プした時間( パルス幅 )が、正常時に比べて脱調時の方
が短く( 狭く )なる。例えば、正常時のパルス幅と脱調
時のパルス幅の中間の時間を設定して、判定信号のパル
ス幅がその設定時間より短い場合に脱調と判断する。
At the time of step-out, the back electromotive force is reduced because the rotation of the motor is hindered, and the waveform of the back electromotive voltage is also reduced. Therefore, the time (pulse width) clamped by the above-described constant voltage diode 131 is shorter (narrower) during step-out than in normal operation. For example, an intermediate time between the normal pulse width and the step-out pulse width is set, and if the pulse width of the determination signal is shorter than the set time, the step-out is determined.

【0018】[0018]

【発明が解決しようとする課題】各コイル101〜10
4へ駆動電流を供給する駆動電源の出力電圧のバラツ
キ、各定電圧ダイオード131,132,135,13
6のツェナー電圧のバラツキやその他の各電気素子のバ
ラツキにより、コンパレータ139,146に入力され
る電圧波形が、抵抗142,143からなる直列分圧回
路の基準電圧,抵抗149,150からなる直列分圧回
路の基準電圧で判定するのに適合する波形になっている
とは限らないため、そのような不適合な波形になってい
ると、脱調を判定する精度が低下するという問題があっ
た。
SUMMARY OF THE INVENTION Each of the coils 101 to 10
And the constant voltage diodes 131, 132, 135, and 13;
6, the voltage waveform input to the comparators 139 and 146 is changed by the reference voltage of the series voltage dividing circuit composed of the resistors 142 and 143 and the series voltage divided by the resistors 149 and 150 due to the variation of the Zener voltage of FIG. Since the waveform is not always suitable for the determination based on the reference voltage of the voltage circuit, there is a problem that the out-of-step determination accuracy is reduced if the waveform is inappropriate.

【0019】例えば、定電圧ダイオード131〜134
のツェナー電圧でクランプする電圧と基準電圧との差が
大きくなると、脱調時の判定信号の波形が定電圧ダイオ
ードによるクランプの後緩やかに下降しているため、脱
調の判定の精度が低下する。すなわち、最終的にはモー
タがほぼ停止する( 判定信号のパルス幅が0になる )状
態になるまで、脱調と判定しないことになる。
For example, constant voltage diodes 131 to 134
When the difference between the voltage to be clamped by the Zener voltage and the reference voltage increases, the waveform of the step-out determination signal gradually drops after clamping by the constant voltage diode, so that the accuracy of the step-out determination decreases. . That is, the step-out is not determined until the motor finally stops (the pulse width of the determination signal becomes 0).

【0020】また、プレート状のプラテンを使用してい
る場合など、プラテンのたわみ等のメカニカル機構の負
荷変動やモータのロッドのバラツキ等の原因により、例
えば図10に示すように、コンパレータに入力される分
圧出力の電圧波形が変形して、実際には脱調しているの
にかかわらず、脱調していないと判断して、脱調の判定
の精度が低下するという問題があった。
Further, when a plate-shaped platen is used, for example, as shown in FIG. 10, the signal is input to a comparator due to a load fluctuation of a mechanical mechanism such as a deflection of the platen or a variation of a motor rod. However, there is a problem in that the voltage waveform of the divided voltage output is deformed and it is determined that there is no step-out even though the step-out actually occurs, and the accuracy of the determination of step-out is reduced.

【0021】また、図10のような波形は、印字ヘッド
がプラテンの表面又は用紙の表面に接触した時にも発生
する場合があり、従来のドットプリンタのヘッドギャッ
プ測定装置では、脱調のタイミングが印字ヘッドのプラ
テンの表面又は用紙の表面への接触と一致する訳ではな
く、印字ヘッドがプラテン又は用紙に所定の押圧力で押
し込んだ状態に一致する。
A waveform as shown in FIG. 10 may also be generated when the print head comes into contact with the surface of the platen or the surface of the paper. It does not coincide with the contact of the print head with the platen surface or the paper surface, but with the state in which the print head is pressed into the platen or paper with a predetermined pressing force.

【0022】すなわち、従来のヘッドギャップ測定装置
では、厳密な意味では用紙の厚みを正確には測定できな
かったという問題があった。さらに、上述したようにヘ
ッドギャップを測定する時に、用紙を所定の押圧力で押
し込むまで印字ヘッドを移動させるため、インクリボン
を使用するプリンタでは、印字ヘッドがインクリボンも
用紙に所定の押圧力で押し込むことになり、用紙を汚し
てしまうという問題があった。
That is, the conventional head gap measuring apparatus has a problem that the thickness of the paper cannot be accurately measured in a strict sense. Furthermore, as described above, when measuring the head gap, the print head is moved until the paper is pressed with a predetermined pressing force.Therefore, in a printer using an ink ribbon, the print head also applies a predetermined pressing force to the paper with the ink ribbon. There is a problem that the paper is pushed in and soils the paper.

【0023】そこでこの発明は、駆動電源の出力電圧、
定電圧ダイオードのツェナー電圧、モータのロッド等の
バラツキや負荷変動に影響されずに、正確にプラテンの
表面位置及び用紙の表面位置を測定することができ、し
かも、ヘッドギャップ測定により用紙を汚すことのない
プリンタのヘッドギャップ測定装置を提供することを目
的とする。
Therefore, the present invention provides an output voltage of a driving power supply,
The platen surface position and the paper surface position can be measured accurately without being affected by the zener voltage of the constant voltage diode, the variation of the motor rod, and the load fluctuation. It is an object of the present invention to provide a head gap measuring device for a printer without any problem.

【0024】[0024]

【課題を解決するための手段】請求項1対応の発明は、
励磁用トランジスタのオン・オフ動作で複数の励磁コイ
ルに通電することにより複数の励磁相を発生させて駆動
するモータと、このモータの駆動によりプラテンに対し
て離れた位置から接近して当接する接触部材と、励磁コ
イルに生じる逆起電圧の波形の頭部を所定の電圧値にク
ランプする逆起電圧検出回路と、逆起電圧検出回路によ
りその頭部波形がクランプされた逆起電圧の波形の変化
を監視し、定電圧値からの電圧下降を検出する電圧下降
検出手段と、記憶媒体の未供給時に電圧下降検出手段に
より電圧下降が検出されたときの接触部材の位置又は予
め記憶されているプラテンの表面位置と記録媒体の供給
時に電圧下降検出手段により電圧下降が検出されたとき
の接触部材の位置とからヘッドギャップを算出するヘッ
ドギャップ算出手段を設けたものである。
The invention corresponding to claim 1 is:
A motor that generates and drives a plurality of excitation phases by energizing a plurality of excitation coils by turning on and off an excitation transistor, and a contact that comes into contact with the platen from a position distant from the platen by driving the motor. A back electromotive voltage detection circuit that clamps the head of the back electromotive voltage waveform generated in the exciting coil to a predetermined voltage value, and a back electromotive voltage waveform whose head waveform is clamped by the back electromotive voltage detection circuit. A voltage drop detecting means for monitoring a change and detecting a voltage drop from a constant voltage value; and a position of a contact member when a voltage drop is detected by the voltage drop detecting means when the storage medium is not supplied or stored in advance. A head gap calculating means for calculating a head gap from the surface position of the platen and the position of the contact member when the voltage drop is detected by the voltage drop detecting means when the recording medium is supplied. In which the provided.

【0025】請求項2対応の発明は、請求項1対応の発
明において、逆起電圧検出手段は、互いにカソード端子
を接続した一対の定電圧ダイオードと抵抗分圧回路との
直列回路を電源端子に接続して構成し、逆流防止用ダイ
オードは、そのアノード端子を励磁コイルと励磁用トラ
ンジスタとの接続点に接続し、そのカソード端子を逆起
電圧検出回路の各定電圧ダイオードのカソード端子間に
接続し、電圧下降検出手段は、抵抗分圧回路の分圧出力
点を比較回路の反転入力端子に接続すると共に、2個の
ダイオードを双方向的に接続した並列回路とコンデンサ
との直列回路を介してグラウンドに接続し、並列回路と
コンデンサとの接続点を抵抗を介して比較回路の非反転
入力端子に接続する構成としたものであるものである。
According to a second aspect of the present invention, in the first aspect of the present invention, the back electromotive voltage detecting means includes, as a power supply terminal, a series circuit of a pair of a constant voltage diode having a cathode terminal connected to each other and a resistance voltage dividing circuit. The backflow prevention diode has its anode terminal connected to the connection point between the excitation coil and the excitation transistor, and its cathode terminal connected between the cathode terminals of each constant voltage diode of the back electromotive voltage detection circuit. The voltage drop detecting means connects the voltage dividing output point of the resistance voltage dividing circuit to the inverting input terminal of the comparing circuit, and at the same time through a series circuit of a capacitor and a parallel circuit in which two diodes are bidirectionally connected. And a connection point between the parallel circuit and the capacitor is connected to the non-inverting input terminal of the comparison circuit via a resistor.

【0026】[0026]

【発明の実施の形態】以下、この発明の実施の形態を図
面を参照して説明する。図1は、プリンタのこの発明を
適用したヘッドギャップ測定装置を示す略式的構成図で
ある。1は印字ヘッドである。この接触部材としての印
字ヘッド1は、ギア2の歯にかみ合わされた直線駆動プ
レート3に固定されている。モータ4は、図示ない回転
伝達機構により前記ギア2を回転駆動するようになって
いる。従って、前記モータ4の回転駆動により前記ギア
2及び前記直線駆動プレート3を介して前記印字ヘッド
1を上下方向に移動制御するようになっている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic configuration diagram showing a head gap measuring device of a printer to which the present invention is applied. 1 is a print head. The print head 1 as a contact member is fixed to a linear drive plate 3 meshed with the teeth of the gear 2. The motor 4 rotates the gear 2 by a rotation transmission mechanism (not shown). Accordingly, the rotation of the motor 4 controls the movement of the print head 1 in the vertical direction via the gear 2 and the linear drive plate 3.

【0027】前記印字ヘッド1の印字面( 下端面 )に対
向して平板状のプラテン5が配置され、前記印字ヘッド
1の印字面と前記プラテン5との間にインクリボン6が
介挿されている。さらに、前記印字ヘッド1の印字面の
前面に介挿された前記インクリボン6と前記プラテン5
との間に記録媒体としての用紙7が搬送されるようにな
っている。
A flat platen 5 is disposed to face the printing surface (lower end surface) of the printing head 1, and an ink ribbon 6 is inserted between the printing surface of the printing head 1 and the platen 5. I have. Further, the ink ribbon 6 and the platen 5 inserted in front of the print surface of the print head 1 are provided.
The sheet 7 as a recording medium is conveyed between the steps.

【0028】なお、実際には、前記印字ヘッド1の印字
面の前面に介挿されたインクリボンをガイドするガイド
プレート( 図示せず )が、前記印字ヘッド1と一体的に
しかも前記印字ヘッド1の印字面より前記プラテン5側
に突出して設けられており、ヘッドギャップ測定時に
は、このガイドプレートが接触部材として前記プラテン
5又は前記用紙7と接触し、前記印字ヘッド1の印字面
は前記プラテン5又は前記用紙7とは接触しない。さら
に、前記直線駆動プレート3の上方には、光学式透過形
のホームポジションセンサ8が配置され、前記印字ヘッ
ド1と前記プラテン5( 前記用紙7 )との間に十分な間
隔が確保されるときに、前記直線駆動プレート3の上端
がちょうど前記ホームポジションセンサ8の光路を遮る
ようになっている。
In practice, a guide plate (not shown) for guiding an ink ribbon inserted in front of the print surface of the print head 1 is integrated with the print head 1 and furthermore, The guide plate comes in contact with the platen 5 or the paper 7 as a contact member when measuring the head gap, and the print surface of the print head 1 is Or, it does not contact the paper 7. Further, an optical transmission type home position sensor 8 is disposed above the linear drive plate 3, and when a sufficient space is secured between the print head 1 and the platen 5 (the paper 7). In addition, the upper end of the linear drive plate 3 just blocks the optical path of the home position sensor 8.

【0029】図2は、このヘッドギャップ測定装置の要
部回路構成を示すブロック図である。
FIG. 2 is a block diagram showing the main circuit configuration of the head gap measuring device.

【0030】11は、制御部本体を構成するCPU(cen
tral processing unit )である。このCPU11が行う
処理のプログラムデータが記憶されたROM( read onl
y memory )12、前記CPU1が処理を行う時に使用す
る各種メモリのエリアが形成されたRAM(random acce
ss memory)13、前記ホームポジションセンサ8及び後
述する逆起電圧判定回路14からの出力信号を入力する
I/O( input/output )ポート15、前記モータ4を駆
動制御するモータ駆動回路16は、それぞれシステムバ
ス17を介して前記CPU11と接続されている。な
お、前記システムバス17には、図示しないが、プリン
タの構成として、内部メモリ、外部メモリ、印字ヘッ
ド、表示器、キーボード、搬送機構をそれぞれ駆動・制
御する回路等が接続されている。すなわち、このヘッド
ギャップ測定装置は、単体で構成されたものではなく、
プリンタの構成に組み込まれている。
Reference numeral 11 denotes a CPU (cen) constituting the control unit main body.
tral processing unit). A ROM (read onl) storing program data of the processing performed by the CPU 11
y memory) 12, RAM (random accumulator) in which various memory areas used when the CPU 1 performs processing are formed.
ss memory 13, an I / O (input / output) port 15 for inputting an output signal from the home position sensor 8 and a back electromotive voltage determination circuit 14 described later, and a motor drive circuit 16 for controlling the drive of the motor 4, Each is connected to the CPU 11 via a system bus 17. Although not shown, the system bus 17 is connected to a circuit for driving and controlling an internal memory, an external memory, a print head, a display, a keyboard, a transport mechanism, and the like as a printer. That is, this head gap measuring device is not a single device,
Built into the printer configuration.

【0031】図3は、前記逆起電圧判定回路14を示す
回路図である。なお、モータの構成は、従来の技術の図
5において説明した回路構成と同一であるので、ここで
はその説明は省略し、図5における符号を使用する。A
相( B相 )の逆起電圧Aeは、互いにカソード端子を接
続した定電圧ダイオード21,22のそのカソード端子
同士の接続点に入力される。一方の前記定電圧ダイオー
ド21のアノード端子は駆動電源Vmに接続され、他方
の前記定電圧ダイオード22のアノード端子は、2個の
抵抗23,24からなる直列分圧回路を介してグラウン
ド( 0 [V])に接続されている。一方の前記定電圧ダイ
オード21は、そのツェナー電圧により、逆起電圧Ae
の頭部波形を所定電圧でクランプする。また、他方の前
記定電圧ダイオード22は、逆起電圧Aeがそのツェナ
ー電圧より低くなると、前記抵抗23,24へ電流の供
給を遮断する。すなわち、その直列分圧回路には電圧が
かからなくなる。同様に、C相( D相 )の逆起電圧Ce
は、互いにカソード端子を接続した定電圧ダイオード2
5,26のそのカソード端子の接続点に入力される。一
方の前記定電圧ダイオード25のアノード端子は駆動電
源Vmに接続され、他方の前記定電圧ダイオード26の
アノード端子は、2個の抵抗27,28からなる直列分
圧回路を介してグラウンド( 0 [V])に接続されてい
る。
FIG. 3 is a circuit diagram showing the back electromotive voltage determination circuit 14. Since the configuration of the motor is the same as the circuit configuration described in FIG. 5 of the related art, the description is omitted here, and the reference numerals in FIG. 5 are used. A
The back electromotive voltage Ae of the phase (B phase) is input to the connection point between the cathode terminals of the constant voltage diodes 21 and 22 having their cathode terminals connected to each other. The anode terminal of one of the constant voltage diodes 21 is connected to the driving power supply Vm, and the anode terminal of the other constant voltage diode 22 is connected to ground (0 [0] via a series voltage dividing circuit composed of two resistors 23 and 24. V]). One of the constant voltage diodes 21 has a back electromotive voltage Ae due to its Zener voltage.
Is clamped at a predetermined voltage. When the back electromotive voltage Ae becomes lower than the Zener voltage, the other constant voltage diode 22 cuts off current supply to the resistors 23 and 24. That is, no voltage is applied to the series voltage dividing circuit. Similarly, the back electromotive voltage Ce of the C phase (D phase)
Is a constant voltage diode 2 having cathode terminals connected to each other.
5 and 26 are input to the connection points of their cathode terminals. The anode terminal of one of the constant voltage diodes 25 is connected to the drive power supply Vm, and the anode terminal of the other constant voltage diode 26 is connected to the ground (0 [0] via a series voltage dividing circuit composed of two resistors 27 and 28. V]).

【0032】前記抵抗23,24からなる直列分圧回路
の分圧出力点は、コンパレータ29の反転入力端子に接
続されている。また、その分圧出力点は、2個のダイオ
ード30,31を双方向的( 互いに逆方向 )に接続した
ダイオード並列回路の一端に接続され、このダイオード
並列回路の他端は、コンデンサ32を介してグラウンド
に接続されていると共に抵抗33を介して前記コンパレ
ータ29の非反転入力端子に接続されている。前記コン
パレータ29の非反転入力端子と出力端子との間には、
正帰還用の抵抗34が接続され、その出力端子は、プル
アップ抵抗35により制御電源Vpにプルアップされ
て、その出力信号を印字ヘッド1がプラテンの表面又は
用紙の表面に接触した瞬間( 完全に脱調する前の脱調を
起こした瞬間 )を示す判定信号Oaとして前記I/Oポ
ート15へ出力している。
The voltage dividing output point of the series voltage dividing circuit composed of the resistors 23 and 24 is connected to the inverting input terminal of the comparator 29. The divided output point is connected to one end of a diode parallel circuit in which two diodes 30 and 31 are connected bidirectionally (in opposite directions), and the other end of the diode parallel circuit is connected via a capacitor 32. And to the non-inverting input terminal of the comparator 29 via a resistor 33. Between the non-inverting input terminal and the output terminal of the comparator 29,
A resistor 34 for positive feedback is connected, and its output terminal is pulled up to a control power supply Vp by a pull-up resistor 35, and the output signal is output at the moment when the print head 1 contacts the surface of the platen or the surface of the paper (completely). Is output to the I / O port 15 as a determination signal Oa indicating the moment when the step-out occurs before the step-out occurs.

【0033】同様に、前記抵抗27,28からなる直列
分圧回路の分圧出力点は、前記コンパレータ36の反転
入力端子に接続されている。また、その分圧出力点は、
2個のダイオード37,38を双方向的( 互いに逆方向
)に接続したダイオード並列回路の一端に接続され、こ
のダイオード並列回路の他端は、コンデンサ39を介し
てグラウンドに接続されていると共に抵抗40を介して
前記コンパレータ36の非反転入力端子に接続されてい
る。前記コンパレータ36の非反転入力端子と出力端子
との間には、正帰還用の抵抗41が接続され、その出力
端子は、プルアップ抵抗42により制御電源Vpにプル
アップされて、その出力信号を印字ヘッド1がプラテン
の表面又は用紙の表面に接触した瞬間を示す判定信号O
cとして前記I/Oポート15へ出力している。
Similarly, the voltage dividing output point of the series voltage dividing circuit composed of the resistors 27 and 28 is connected to the inverting input terminal of the comparator 36. The partial pressure output point is
Two diodes 37 and 38 are bidirectional (opposite to each other)
) Is connected to one end of a diode parallel circuit. The other end of the diode parallel circuit is connected to ground via a capacitor 39 and to the non-inverting input terminal of the comparator 36 via a resistor 40. ing. A positive feedback resistor 41 is connected between the non-inverting input terminal and the output terminal of the comparator 36, and its output terminal is pulled up to a control power supply Vp by a pull-up resistor 42, and its output signal is A determination signal O indicating the moment when the print head 1 contacts the surface of the platen or the surface of the paper.
The signal is output to the I / O port 15 as c.

【0034】図4は、前記CPU11が行うヘッドギャ
ップ測定処理の流れを示す図である。 まず、用紙搬送
路上に残っている用紙を排出する処理を行い、この用紙
排出処理を終了すると、ホームポジション復帰の処理を
行う。このホームポジション復帰処理は、まず、ホーム
ポジションセンサ8からの検出信号が光路が遮られてい
ないことを示す信号であることを確認した後、モータ4
を印字ヘッド1がプラテン5に離間する( 上方に移動す
る )回転方向に回転駆動し、ホームポジションセンサ8
からの検出信号が光路が遮られていることを示す信号に
変化した瞬間に、モータ4を停止させる処理である。な
お、最初のホームポジションセンサ8からの検出信号が
光路が遮られていることを示す信号であれば、光路が遮
られていないことを示す信号になるまで、モータ4を印
字ヘッド1がプラテン5に接近する( 下方に移動する )
回転方向に回転駆動してから、上述した処理をやり直
す。このホームポジション復帰の処理を終了すると、モ
ータ4を印字ヘッド1がプラテン5に接近する回転方向
に数パルス駆動し、その時の逆起電圧判定回路14から
の判定信号Oa又はOcのローレベルのパルス幅( 時間
)を計測し、計測データをして記憶する。このローレベ
ルのパルス幅の計測データは、パルス数が同じ個数ある
ので、その平均値を算出し、正常パルス幅として設定す
る。
FIG. 4 is a diagram showing the flow of the head gap measuring process performed by the CPU 11. First, a process for discharging the paper remaining on the paper transport path is performed, and when the paper discharging process is completed, a process for returning to the home position is performed. In this home position return processing, first, after confirming that the detection signal from the home position sensor 8 is a signal indicating that the optical path is not interrupted, the motor 4
Is rotated in the rotation direction in which the print head 1 is separated from the platen 5 (moves upward), and the home position sensor 8 is rotated.
This is a process of stopping the motor 4 at the moment when the detection signal from the CPU changes to a signal indicating that the optical path is blocked. If the first detection signal from the home position sensor 8 is a signal indicating that the optical path is interrupted, the print head 1 controls the motor 4 until the signal indicating that the optical path is not interrupted. Approaching (moving downwards)
After the rotation is performed in the rotation direction, the above processing is performed again. When the home position return processing is completed, the motor 4 is driven for several pulses in the rotation direction in which the print head 1 approaches the platen 5, and the low level pulse of the determination signal Oa or Oc from the back electromotive voltage determination circuit 14 at that time. Width (time
) Is measured, measured data is stored. Since the low-level pulse width measurement data has the same number of pulses, the average value is calculated and set as the normal pulse width.

【0035】次に、モータ4を印字ヘッド1がプラテン
5に接近( 当接 )する回転方向に駆動開始して、逆起電
圧判定回路14からの判定信号Oa又はOcのローレベ
ルのパルス幅を計測し、そのパルス幅が、設定された正
常パルス幅より予め設定された量以上狭い( 短い )もの
が検出されるまで、すなわち、印字ヘッド1がプラテン
5の表面に接触する瞬間を検出するまで、そのモータの
駆動を継続する。判定信号Oa又はOcから設定された
正常パルス幅より予め設定された量以上狭い( 短い )も
のが検出されると、そのときの印字ヘッド1の位置( モ
ータ4の回転位置 )をホームポジションからプラテン5
の表面までの距離として設定する。
Next, the motor 4 is started to be driven in the rotational direction in which the print head 1 approaches (contacts) the platen 5, and the low-level pulse width of the determination signal Oa or Oc from the back electromotive voltage determination circuit 14 is reduced. The pulse width is measured until a pulse width that is narrower (shorter) by a predetermined amount or more than the set normal pulse width is detected, that is, until the moment when the print head 1 contacts the surface of the platen 5 is detected. , And continue driving the motor. When a signal that is narrower (shorter) by a predetermined amount or more than the normal pulse width set from the determination signal Oa or Oc is detected, the position of the print head 1 (the rotational position of the motor 4) at that time is changed from the home position to the platen. 5
Set as the distance to the surface of.

【0036】次に、再びホームポジション復帰の処理を
行い、このホームポジション復帰の処理を終了すると、
用紙の供給搬送を行い、印字ヘッド1とプラテン5との
間に用紙を介挿して、この用紙の搬送を停止する。ここ
で、モータ4を印字ヘッド1がプラテン5に接近( 当接
)する回転方向に駆動開始して、逆起電圧判定回路14
からの判定信号Oa又はOcのローレベルのパルス幅を
計測し、そのパルス幅が、設定された正常パルス幅より
予め設定された量以上狭い( 短い )ものが検出されるま
で、すなわち、印字ヘッド1がプラテン5の表面に接触
する瞬間まで、そのモータの駆動を継続する。判定信号
Oa又はOcから設定された正常パルス幅より予め設定
された量以上狭い( 短い )ものが検出されると、そのと
きの印字ヘッド1の位置( モータ4の回転位置 )をホー
ムポジションから用紙7の表面までの距離として設定
し、既に設定されているホームポジションからプラテン
5の表面までの距離とから、用紙7の厚みを算出し、こ
の厚みに基づいて最適なヘッドギャップを算出して設定
する。
Next, the home position return processing is performed again. When the home position return processing is completed,
The sheet is supplied and conveyed, the sheet is inserted between the print head 1 and the platen 5, and the conveyance of the sheet is stopped. At this point, the print head 1 moves the motor 4 close to the platen 5 (contact
), The driving is started in the rotating direction
The pulse width of the low level of the determination signal Oa or Oc is measured, and a pulse width that is narrower (shorter) by a predetermined amount or more than the set normal pulse width is detected, that is, the print head The motor continues to be driven until the moment 1 contacts the surface of the platen 5. When a signal that is narrower (shorter) by a predetermined amount or more than the normal pulse width set from the determination signal Oa or Oc is detected, the position of the print head 1 (the rotation position of the motor 4) at that time is changed from the home position to the paper. 7, the thickness of the paper 7 is calculated from the already set home position and the distance from the surface of the platen 5, and the optimum head gap is calculated and set based on this thickness. I do.

【0037】このヘッドギャップの算出設定の処理を終
了すると、再びホームポジション復帰の処理を行い、こ
のホームポジション復帰の処理を終了すると、モータ4
を印字ヘッド1がプラテン5に接近する回転方向に、そ
の算出したヘッドギャップ位置に位置決めされるパルス
数( ギャップ設定パルス数 )だけ駆動して、印字ヘッド
1をプラテン5又は用紙7に対して最適なヘッドギャッ
プ位置に位置決めして、このヘッドギャップ測定処理を
終了するようになっている。このヘッドギャップ測定処
理を終了すると、通常の印字処理を行うようになってい
る。
When the process of calculating and setting the head gap is completed, the process of returning to the home position is performed again.
Is driven in the rotation direction in which the print head 1 approaches the platen 5 by the number of pulses (gap setting pulse number) positioned at the calculated head gap position, and the print head 1 is optimally mounted on the platen 5 or the paper 7. Then, the head gap measurement process is terminated after positioning at a suitable head gap position. When the head gap measurement processing is completed, normal printing processing is performed.

【0038】このような構成のこの実施の形態において
は、各コイル101,102( 103,104 )に発生
した逆起電圧は、それぞれ逆流を防止するためのダイオ
ード121,122( 123,124 )を介して逆起電
圧判定回路14へ出力される。
In this embodiment having such a configuration, the back electromotive force generated in each of the coils 101 and 102 (103 and 104) is connected to diodes 121 and 122 (123 and 124) for preventing backflow. The voltage is output to the back electromotive voltage determination circuit 14 via the control circuit.

【0039】この逆起電圧判定回路14では、逆起電圧
の波形の頭部が定電圧ダイオード21( 25 )によりそ
のツェナー電圧により決定される所定電圧でクランプさ
れる。
In the back electromotive voltage determination circuit 14, the head of the back electromotive voltage waveform is clamped by the constant voltage diode 21 (25) at a predetermined voltage determined by its zener voltage.

【0040】さらに、逆起電圧の波形の定電圧ダイオー
ド22( 26 )のツェナー電圧以下の部分では定電圧ダ
イオード22( 26 )が非通電状態となるので、2個の
抵抗23,24( 27,28 )からなる直列分圧回路の
分圧出力点から出力される分圧出力波形は、逆起電圧波
形の定電圧ダイオード22( 26 )のツェナー電圧より
大きく、その頭部が定電圧ダイオード21( 25 )によ
り所定電圧でクランプされた波形に対応するものであ
る。
Furthermore, since the constant voltage diode 22 (26) is in a non-conducting state in a portion of the waveform of the back electromotive voltage below the zener voltage of the constant voltage diode 22 (26), the two resistors 23, 24 (27, 28) is greater than the Zener voltage of the constant voltage diode 22 (26) having a counter electromotive voltage waveform, and the head of the voltage divider output waveform is output from the constant voltage diode 21 (26). 25) corresponds to a waveform clamped at a predetermined voltage.

【0041】この分圧出力波形は、直接コンパレータ2
9( 36 )の反転入力端子に入力されると共に、2個の
ダイオード30,31( 37,38 )を双方向的に接続
したダイオード並列回路を介してグラウンドに接続され
たコンデンサ32( 39 )の一端に入力され、このコン
デンサの一端から抵抗33( 40 )を介してコンパレー
タ29( 36 )の非反転入力端子に入力される。これら
のダイオード並列回路、コンデンサ32( 39 )、抵抗
33( 40 )により構成された回路は、遅延的な機能を
有し、分圧出力波形の変化を緩やかにする。
This divided voltage output waveform is directly supplied to the comparator 2
9 (36) and a capacitor 32 (39) connected to ground via a diode parallel circuit in which two diodes 30, 31 (37, 38) are bidirectionally connected. It is input to one end, and is input from one end of this capacitor to the non-inverting input terminal of the comparator 29 (36) via the resistor 33 (40). The circuit including the diode parallel circuit, the capacitor 32 (39), and the resistor 33 (40) has a delay function and moderates the change of the divided voltage output waveform.

【0042】従って、コンパレータ29( 36 )の反転
入力端子には、分圧出力波形がリアルタイムに入力され
るが、コンパレータ29( 36 )の非反転入力端子に
は、分圧出力波形が遅延的に緩やかに変化して入力され
る。従って、分圧出力波形が上昇したときには、反転入
力端子に入力される電圧が非反転入力端子に入力される
電圧より高くなるので、コンパレータ29( 36 )の出
力端子の出力電圧はローレベルとなり、逆に分圧出力波
形が下降したときには、反転入力端子に入力される電圧
が非反転入力端子に入力される電圧より低くなるので、
コンパレータ29( 36 )の出力端子の出力電圧はハイ
レベルとなる。
Therefore, the divided voltage output waveform is input to the inverting input terminal of the comparator 29 (36) in real time, while the divided voltage output waveform is delayed to the non-inverting input terminal of the comparator 29 (36). Input is made with a gradual change. Therefore, when the divided voltage output waveform rises, the voltage input to the inverting input terminal becomes higher than the voltage input to the non-inverting input terminal, so that the output voltage of the output terminal of the comparator 29 (36) becomes low level, Conversely, when the divided voltage output waveform drops, the voltage input to the inverting input terminal becomes lower than the voltage input to the non-inverting input terminal.
The output voltage of the output terminal of the comparator 29 (36) becomes high level.

【0043】すなわち、このコンパレータ29( 36 )
の出力は、ちょうど逆起電圧波形の定電圧ダイオード2
1( 25 )によりクランプした部分に対応してローレベ
ルとなり、その以外の部分に対応してハイレベルとな
る。
That is, the comparator 29 (36)
Output is a constant voltage diode 2 with a back electromotive force waveform
1 (25) becomes low level corresponding to the portion clamped by, and becomes high level corresponding to the other portions.

【0044】このようにこの実施の形態によれば、逆起
電圧波形の頭部を所定電圧でクランプする定電圧ダイオ
ード21( 25 )と、逆起電圧波形のツェナー電圧以下
の部分をカットする定電圧ダイオード22( 26 )と、
これらの定電圧ダイオードにより処理された波形を分圧
する抵抗23,24( 27,28 )からなる直列分圧回
路と、直列分圧回路からの分圧出力に対して遅延的作用
をかけるダイオード30,31( 37,38 )を双方向
的に接続したダイオード並列回路、コンデンサ32( 3
9 )、抵抗33( 40 )と、直列分圧回路からの分圧出
力を直接反転入力端子に入力し、分圧出力に遅延的作用
をかけた信号を非反転入力端子に入力したコンパレータ
29( 36 )とを設けたことにより、定電圧ダイオード
21( 25 )により所定電圧で頭部波形をクランプされ
た逆起電圧波形の上昇変化及び下降変化を検出すること
ができ、逆起電圧波形の頭部のクランプ部分のみをロー
パルス信号として検出することができる。
As described above, according to this embodiment, the constant voltage diode 21 (25) for clamping the head of the back electromotive voltage waveform at a predetermined voltage, and the constant voltage diode 21 (25) for cutting the portion of the back electromotive voltage waveform below the zener voltage. A voltage diode 22 (26);
A series voltage dividing circuit composed of resistors 23 and 24 (27, 28) for dividing the waveform processed by these constant voltage diodes, and a diode 30 for applying a delayed action to the divided voltage output from the series voltage dividing circuit. 31 (37, 38) and a capacitor 32 (3)
9), a resistor 33 (40), and a comparator 29 () which directly inputs the divided output from the series voltage dividing circuit to the inverting input terminal, and inputs a signal obtained by delaying the divided output to the non-inverting input terminal. 36), the rising and falling changes of the back electromotive force waveform whose head waveform is clamped at a predetermined voltage by the constant voltage diode 21 (25) can be detected, and the head of the back electromotive force waveform can be detected. Only the clamp portion of the portion can be detected as a low pulse signal.

【0045】従って、逆起電圧の駆動電源の出力電圧、
定電圧ダイオードのツェナー電圧、モータのロッド等の
バラツキや負荷変動に影響されないで、印字ヘッド1が
プラテン5又は用紙7に接触した瞬間に、すなわちモー
タが完全に脱調しない前に、逆起電圧波形に現れる変形
を定電圧ダイオード21( 25 )によるクランプ部分の
時間の短縮として正確に検出することができ、プラテン
5の表面位置及び用紙7の表面位置を正確に測定するこ
とができる。しかも、印字ヘッド1が用紙7に接触した
瞬間を正確に検出することができるので、印字ヘッド1
の用紙7への押圧を防ぐことができるので、インクリボ
ン6の用紙7への押圧により発生する用紙7の汚れを防
止することができる。
Therefore, the output voltage of the back electromotive force drive power supply,
The back electromotive voltage is obtained at the moment when the print head 1 contacts the platen 5 or the paper 7, that is, before the motor does not completely step out, without being affected by the variation of the zener voltage of the constant voltage diode, the variation of the rod of the motor, and the load. The deformation appearing in the waveform can be accurately detected as a reduction in the time of the clamp portion by the constant voltage diode 21 (25), and the surface position of the platen 5 and the surface position of the paper 7 can be accurately measured. In addition, the moment when the print head 1 contacts the paper 7 can be accurately detected.
Can be prevented from being pressed against the sheet 7, so that it is possible to prevent the sheet 7 from being stained due to the ink ribbon 6 being pressed against the sheet 7.

【0046】なお、この実施の形態においては、ホーム
ポジションセンサ8を設け、ヘッドギャップ測定時にこ
のホームポジションセンサ8の検出に基づくホームポジ
ションを基準にしてホームポジションからプラテン5の
表面までの距離及びホームポジションから用紙7の表面
までの距離を測定するので、従来のモータの脱調位置を
基準とするのに比べてより正確にプラテン5の表面位置
及び用紙7の表面位置を測定することができる。
In this embodiment, the home position sensor 8 is provided, and the distance from the home position to the surface of the platen 5 and the home position are measured with respect to the home position based on the detection of the home position sensor 8 when measuring the head gap. Since the distance from the position to the surface of the sheet 7 is measured, the surface position of the platen 5 and the surface position of the sheet 7 can be measured more accurately than when a step-out position of a conventional motor is used as a reference.

【0047】また、この実施の形態においては、印字ヘ
ッドを使用してヘッドギャップ測定を行っているので、
別途プラテンの表面又は用紙の表面に接触する検出部材
及びこの検出部材の移動させる移動機構を設ける必要が
なく、コストを下げることができ、しかも装置全体を小
形化することができる。
In this embodiment, since the head gap is measured using the print head,
There is no need to separately provide a detecting member that comes into contact with the surface of the platen or the surface of the sheet and a moving mechanism that moves the detecting member, so that the cost can be reduced and the entire apparatus can be downsized.

【0048】さらに、印字ヘッドを使用してヘッドギャ
ップ測定を行っているので、平板状のプラテンを使用し
ているプリンタに限定されるものではなく、円筒状のプ
ラテンを使用しているプリンタにも適用できるものであ
る。
Further, since head gap measurement is performed using a print head, the present invention is not limited to a printer using a flat platen, but is also applicable to a printer using a cylindrical platen. Applicable.

【0049】[0049]

【発明の効果】以上詳述したようにこの発明によれば、
駆動電源の出力電圧、定電圧ダイオードのツェナー電
圧、モータのロッド等のバラツキや負荷変動に影響され
ずに、正確にプラテンの表面位置及び用紙の表面位置を
測定することができ、しかも、ヘッドギャップ測定によ
り用紙を汚すことのないプリンタのヘッドギャップ測定
装置を提供できる。
As described in detail above, according to the present invention,
It is possible to accurately measure the platen surface position and paper surface position without being affected by the output voltage of the drive power supply, the zener voltage of the constant voltage diode, the variation of the motor rod, and the load fluctuation. It is possible to provide a printer head gap measuring device that does not stain a sheet by measurement.

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

【図1】この発明の実施の形態のプリンタのヘッドギャ
ップ測定装置を示す略式的構成図。
FIG. 1 is a schematic configuration diagram showing a head gap measuring device of a printer according to an embodiment of the present invention.

【図2】同実施の形態のヘッドギャップ測定装置の要部
回路構成を示すブロック図。
FIG. 2 is a block diagram showing a main circuit configuration of the head gap measuring device according to the embodiment;

【図3】同実施の形態のヘッドギャップ測定装置の逆起
電圧判定回路を示す回路図。
FIG. 3 is a circuit diagram showing a back electromotive voltage determination circuit of the head gap measurement device according to the embodiment.

【図4】同実施の形態のヘッドギャップ測定装置で行わ
れるヘッドギャップ測定処理の流れを示す図。
FIG. 4 is a view showing a flow of a head gap measuring process performed by the head gap measuring device of the embodiment.

【図5】モータの駆動回路及び逆起電圧を検出する回路
を示す回路図。
FIG. 5 is a circuit diagram showing a motor driving circuit and a circuit for detecting a back electromotive voltage.

【図6】従来のモータの逆起電圧からモータの脱調を判
定する回路を示す回路図。
FIG. 6 is a circuit diagram showing a conventional circuit for determining motor out-of-step from a back electromotive voltage of the motor.

【図7】従来のヘッドギャップ測定装置において行われ
るヘッドギャップ測定処理の流れを示す図。
FIG. 7 is a diagram showing a flow of a head gap measuring process performed in a conventional head gap measuring device.

【図8】従来のモータの逆起電圧を検出する回路及びモ
ータの逆起電圧からモータの脱調を判定する回路の各点
における電流波形又は電圧波形を示す図。
FIG. 8 is a diagram showing a current waveform or a voltage waveform at each point of a conventional circuit for detecting a back electromotive voltage of a motor and a circuit for determining motor out-of-step from the back electromotive voltage of the motor.

【図9】従来のモータの逆起電圧からモータの脱調を判
定する回路におけるモータ通常駆動時及びモータ脱調時
の分圧出力波形と判定信号の波形とを示す図。
FIG. 9 is a diagram showing a divided voltage output waveform and a determination signal waveform during normal motor drive and motor step-out in a conventional circuit for determining motor step-out from a back electromotive voltage of the motor.

【図10】従来のモータの逆起電圧からモータの脱調を
判定する回路におけるプラテンのたわみ等のメカニカル
機構の負荷変動やモータのロッドのバラツキ等の原因に
よる変形した分圧出力波形と判定信号の波形の一例を示
す図。
FIG. 10 is a diagram showing a conventional divided voltage output waveform and a determination signal which are deformed due to a load fluctuation of a mechanical mechanism such as a deflection of a platen or a variation in a rod of a motor in a circuit for determining motor out-of-step from a back electromotive voltage of the motor. The figure which shows an example of the waveform of FIG.

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

1…印字ヘッド、 3…直線駆動プレート、 4…モータ、 5…プラテン、 7…用紙、 8…ホームポジションセンサ、 11…CPU、 14…逆起電圧判定回路、 21,22,25,26…定電圧ダイオード、 23,24,27,28,33,40…抵抗、 29,36…コンパレータ、 30,31,37,38…ダイオード、 32,39…コンデンサ。 DESCRIPTION OF SYMBOLS 1 ... Print head, 3 ... Linear drive plate, 4 ... Motor, 5 ... Platen, 7 ... Paper, 8 ... Home position sensor, 11 ... CPU, 14 ... Back electromotive voltage determination circuit, 21, 22, 25, 26 ... Constant Voltage diodes 23, 24, 27, 28, 33, 40 ... resistors, 29, 36 ... comparators, 30, 31, 37, 38 ... diodes, 32, 39 ... capacitors.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 励磁用トランジスタのオン・オフ動作で
複数の励磁コイルに通電することにより複数の励磁相を
発生させて駆動するモータと、 このモータの駆動によりプラテンに対して離れた位置か
ら接近して当接する接触部材と、 前記励磁コイルに生じる逆起電圧の波形の頭部を所定の
電圧値にクランプする逆起電圧検出回路と、 前記逆起電圧検出回路によりその頭部波形がクランプさ
れた逆起電圧の波形の変化を監視し、前記定電圧値から
の電圧下降を検出する電圧下降検出手段と、 記憶媒体の未供給時に前記電圧下降検出手段により電圧
下降が検出されたときの前記接触部材の位置又は予め記
憶されている前記プラテンの表面位置と記録媒体の供給
時に前記電圧下降検出手段により電圧下降が検出された
ときの前記接触部材の位置とからヘッドギャップを算出
するヘッドギャップ算出手段を設けたことを特徴とする
プリンタのヘッドギャップ測定装置。
1. A motor driven by generating and exciting a plurality of excitation phases by energizing a plurality of excitation coils by an on / off operation of an excitation transistor; A back electromotive voltage detection circuit that clamps the head of the waveform of the back electromotive voltage generated in the exciting coil to a predetermined voltage value; and the head waveform is clamped by the back electromotive voltage detection circuit. A voltage drop detecting means for monitoring a change in the waveform of the back electromotive voltage, and detecting a voltage drop from the constant voltage value, and the voltage drop detecting means when the voltage drop is detected by the voltage drop detecting means when the storage medium is not supplied. The position of the contact member or the surface position of the platen stored in advance and the position of the contact member when the voltage drop is detected by the voltage drop detecting means during supply of the recording medium. Head gap measuring device of the printer, characterized in that a head gap calculating means for calculating the Luo head gap.
【請求項2】 前記逆起電圧検出手段は、互いにカソー
ド端子を接続した一対の定電圧ダイオードと抵抗分圧回
路との直列回路を電源端子に接続して構成し、 前記逆
流防止用ダイオードは、そのアノード端子を前記励磁コ
イルと前記励磁用トランジスタとの接続点に接続し、そ
のカソード端子を前記逆起電圧検出回路の各定電圧ダイ
オードのカソード端子間に接続し、 前記電圧下降検出手段は、前記抵抗分圧回路の分圧出力
点を比較回路の反転入力端子に接続すると共に、2個の
ダイオードを双方向的に接続した並列回路とコンデンサ
との直列回路を介してグラウンドに接続し、前記並列回
路と前記コンデンサとの接続点を抵抗を介して前記比較
回路の非反転入力端子に接続する構成としたものである
ことを特徴とする請求項1記載のプリンタのヘッドギャ
ップ測定装置。
2. The back electromotive voltage detecting means is configured by connecting a series circuit of a pair of a constant voltage diode having a cathode terminal connected to each other and a resistance voltage dividing circuit to a power supply terminal. The anode terminal is connected to a connection point between the excitation coil and the excitation transistor, the cathode terminal is connected between the cathode terminals of the constant voltage diodes of the back electromotive voltage detection circuit, and the voltage drop detection means includes: A voltage dividing output point of the resistor voltage dividing circuit is connected to an inverting input terminal of a comparing circuit, and two diodes are connected to ground via a series circuit of a bidirectionally connected parallel circuit and a capacitor. 2. The printer according to claim 1, wherein a connection point between the parallel circuit and the capacitor is connected to a non-inverting input terminal of the comparison circuit via a resistor. Head gap measuring device.
JP5732096A 1996-03-14 1996-03-14 Printer head gap measuring device Expired - Fee Related JP3294757B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5732096A JP3294757B2 (en) 1996-03-14 1996-03-14 Printer head gap measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5732096A JP3294757B2 (en) 1996-03-14 1996-03-14 Printer head gap measuring device

Publications (2)

Publication Number Publication Date
JPH09240104A JPH09240104A (en) 1997-09-16
JP3294757B2 true JP3294757B2 (en) 2002-06-24

Family

ID=13052295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5732096A Expired - Fee Related JP3294757B2 (en) 1996-03-14 1996-03-14 Printer head gap measuring device

Country Status (1)

Country Link
JP (1) JP3294757B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006205480A (en) * 2005-01-27 2006-08-10 Toshiba Tec Corp Printer
JP7537294B2 (en) * 2021-01-29 2024-08-21 セイコーエプソン株式会社 Liquid ejection device

Also Published As

Publication number Publication date
JPH09240104A (en) 1997-09-16

Similar Documents

Publication Publication Date Title
US10239333B2 (en) Cutter, printer, and method of controlling cutter
EP0326344A2 (en) Print head-platen gap adjustment mechanism for a printer
US4866326A (en) Driver circuit for piezoelectric actuator, and impact dot-matrix printer using the driver circuit
US7230401B2 (en) Apparatus and method for controlling an electric motor
EP0945277B1 (en) Printing device with timing pulse generator
JP3294757B2 (en) Printer head gap measuring device
US5431502A (en) Carriage motor controller for printer
JP2002064996A (en) Method and device for controlling stepping motor and motor driver
JP3019129B2 (en) Automatic platen gap adjustment device for printer
US5772339A (en) Automatic adjusting device for adjusting platen gap
US5445458A (en) Automatic platen gap adjusting apparatus
US5598078A (en) Device for detecting step-out of a stepping motor
JP4058925B2 (en) Printing control apparatus and printing method
JP2959193B2 (en) Printing device
JP2724528B2 (en) Drive control device for DC motor
JP3371968B2 (en) Printer and printer control method
JP3267500B2 (en) Automatic gap adjustment device
JP3062970B2 (en) Printer device
JPH0958081A (en) Controlling device for stop of spacing motor
JP2000296946A (en) Paper thickness measurement method in printer
JP3330225B2 (en) Printing device
JP2580394B2 (en) DC servo motor control method
JPH06155853A (en) Automatic paper thickness adjusting device in serial dot impact printer
JP3019124B2 (en) Automatic platen gap adjustment device for printer
CN114290827A (en) Origin calibration method for carriage of printer and ink-jet printer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20080405

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

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20090405

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

Free format text: PAYMENT UNTIL: 20100405

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100405

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110405

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees