[go: up one dir, main page]

JPH07121605B2 - Automatic print head adjustment mechanism of the printer - Google Patents

Automatic print head adjustment mechanism of the printer

Info

Publication number
JPH07121605B2
JPH07121605B2 JP63276016A JP27601688A JPH07121605B2 JP H07121605 B2 JPH07121605 B2 JP H07121605B2 JP 63276016 A JP63276016 A JP 63276016A JP 27601688 A JP27601688 A JP 27601688A JP H07121605 B2 JPH07121605 B2 JP H07121605B2
Authority
JP
Japan
Prior art keywords
stepping motor
print head
pulse
detecting
slit
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 - Lifetime
Application number
JP63276016A
Other languages
Japanese (ja)
Other versions
JPH02122966A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63276016A priority Critical patent/JPH07121605B2/en
Publication of JPH02122966A publication Critical patent/JPH02122966A/en
Publication of JPH07121605B2 publication Critical patent/JPH07121605B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Common Mechanisms (AREA)
  • Control Of Stepping Motors (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、プリンタ装置に係り、特に、用紙の厚さにか
かわりなく、印字ヘツドと印字用紙間の距離を一定に保
つために用いて好適なプリンタの印字ヘツドの自動調整
機構に関する。
Description: TECHNICAL FIELD The present invention relates to a printer device, and is particularly suitable for use in keeping a constant distance between a print head and a print paper regardless of the thickness of the paper. Automatic print head adjustment mechanism for various printers.

[従来の技術] 印字ヘツドと印字用紙との間の距離を一定に保つための
従来技術として、例えば、特開昭59−153131号公報等に
記載された技術が知られている。
[Prior Art] As a conventional technology for keeping the distance between the printing head and the printing paper constant, for example, the technology described in JP-A-59-153131 is known.

この従来技術は、まず、印字ヘツド駆動用のステツピン
グモータを駆動し、印字ヘツドをプラテン側、すなわ
ち、印字用紙に向けて移動させ、印字ヘツドが印字用紙
に当接して移動できなくなり、ステツピングモータが脱
調しても、これを無視して一定量の駆動パルスをステツ
ピングモータに送り続け、その後、印字ヘツドがプラテ
ンから遠ざかる方向に移動するようにステツピングモー
タを駆動して、印字ヘツドを一定量だけ移動させること
により、印字ヘツドと印字用紙との間の距離を所定の大
きさに設定するものである。
In this prior art, first, the stepping motor for driving the print head is driven to move the print head toward the platen side, that is, toward the print paper, and the print head comes into contact with the print paper and cannot move. Even if the motor goes out of step, it is ignored and a certain amount of drive pulse is continuously sent to the stepping motor, and then the stepping motor is driven so that the print head moves away from the platen, and the print head is moved. Is moved by a certain amount to set the distance between the print head and the print paper to a predetermined size.

[発明が解決しようとする課題] 前記従来技術は、印字ヘツドが印字用紙に当接して、印
字ヘツド駆動用のステツピングモータが脱調した後に、
ステツピングモータに進相パルスを送り続けるため、印
字ヘツド位置を調整するときに、無駄な時間を要すると
ともに、ステツピングモータが脱調したときの振動によ
り騒音が発生するという問題点を有している。
[Problems to be Solved by the Invention] In the above-mentioned conventional technique, after the printing head comes into contact with the printing paper and the stepping motor for driving the printing head loses step,
Since the advance pulse is continuously sent to the stepping motor, there is a problem in that it takes unnecessary time when adjusting the print head position and noise is generated due to the vibration when the stepping motor is out of step. There is.

本発明の目的は、前記従来技術の問題点を解決し、無駄
な時間を排除し、騒音,振動を伴うことなく印字ヘツド
と印字用紙との間の距離を調整することのできるプリン
タの印字ヘツドの自動調整機構を提供することにある。
An object of the present invention is to solve the above-mentioned problems of the prior art, eliminate wasteful time, and adjust the distance between the print head and the print sheet without noise and vibration, and the print head of the printer. The purpose is to provide an automatic adjustment mechanism.

[課題を解決するための手段] 本発明によれば、前記目的は、印字ヘツドが印字用紙に
対して垂直な方向に移動している間、その移動に伴いパ
ルスを発生する検出素子と、この検出素子からのパルス
信号を処理することにより、印字ヘツド移動用のステツ
ピングモータの脱調を検出し、直ちに、該ステツピング
モータを、印字ヘツドを印字用紙から遠ざかる方向に駆
動し、印字ヘツドを所定距離だけ印字用紙から離れるよ
うにすることにより達成される。
[Means for Solving the Problems] According to the present invention, the above object is to provide a detection element that generates a pulse in accordance with the movement of a print head while the print head is moving in a direction perpendicular to a print sheet. By detecting the step out of the stepping motor for moving the print head by processing the pulse signal from the detection element, immediately drive the stepping motor in the direction of moving the print head away from the printing paper, and the print head is moved. This is achieved by leaving the print paper a predetermined distance.

[作用] 印字ヘツドは、駆動用のステツピングモータにより、印
字用紙に対して垂直方向に移動可能である。また、印字
ヘツドの移動を検出するための検出素子が、例えば、ス
テツピングモータ軸に設けられ、該検出素子は、印字ヘ
ツドの移動に伴いパルス信号を出力する。ヘツドの調整
時に、印字ヘツドが用紙方向に移動制御され、印字ヘツ
ドが印字用紙に当接し、印字ヘツド移動用ステツピング
モータが脱調すると、前記検出素子から出力されるパル
ス信号のパルス幅が非脱調時に対して変化する。検出素
子からのパルス信号を処理している制御部は、このパル
ス信号のパルス幅の変化を検出すると、直ちにステツピ
ングモータを一定量逆回転させ、印字ヘツドを印字用紙
から遠ざかる方向に移動させ、印字ヘツドと印字用紙と
の間隔を、印字用紙の厚さに関係なく一定となるように
設定する。
[Operation] The printing head can be moved in the vertical direction with respect to the printing paper by the driving stepping motor. Further, a detection element for detecting the movement of the print head is provided, for example, on the stepping motor shaft, and the detection element outputs a pulse signal in accordance with the movement of the print head. When the head is adjusted, the print head is controlled to move in the paper direction, the print head comes into contact with the print paper, and if the stepping motor for moving the print head goes out of step, the pulse width of the pulse signal output from the detection element becomes non-uniform. It changes with respect to a step out. When the control unit processing the pulse signal from the detection element detects a change in the pulse width of this pulse signal, it immediately reverses the stepping motor by a certain amount to move the print head in a direction away from the print sheet, The distance between the print head and the print paper is set to be constant regardless of the thickness of the print paper.

従つて、本発明によれば、ステツピングモータの脱調を
検出して、直ちにステツピングモータを逆回転させるの
で、時間の無駄をなくし、騒音を発生させることなく、
印字ヘツドの自動調整を行うことができる。
Therefore, according to the present invention, by detecting the step-out of the stepping motor and immediately rotating the stepping motor in the reverse direction, time is wasted and noise is not generated.
The print head can be automatically adjusted.

前述した検出素子を2個備えるようにしても、前述と同
様な作用を行うことができ、同様な効果を奏することが
できる。
Even if the two detection elements described above are provided, the same operation as described above can be performed and the same effect can be obtained.

この場合、2個の検出器のそれぞれは、例えば、ステツ
ピングモータの4相進相時に、ステツピングモータ2相
進相分のパルス幅のパルスを1個出力すると同時に、そ
の間に、それぞれの検出器の出力が、ステツピングモー
タの1相進相分位相がずれているような関係が成立する
ように配置され、これらの出力がバイナリコードに変換
される。一方、ステツピングモータが1相進相する毎に
変化する4進カウンタが設けられる。
In this case, each of the two detectors outputs, for example, one pulse having a pulse width corresponding to a two-phase advance of the stepping motor at the time of four-phase advance of the stepping motor, and at the same time, detects each of them. The outputs of the detectors are arranged so that a relationship in which the phase is shifted by one phase advance of the stepping motor is established, and these outputs are converted into a binary code. On the other hand, a quaternary counter that changes each time the stepping motor advances by one phase is provided.

制御部は、前記変換されたバイナリコードと、4進カウ
ンタの出力差を監視することにより、ステツピングモー
タの脱調を検出する。すなわち、前述の出力差は、ステ
ツピングモータの非脱調時においては常に一定の差とし
て与えられ、ステツピングモータが脱調すれば、検出素
子からの出力パルスが出なくなるか、または、その出力
タイミングが狂つてくるので、一定値からはずれること
になる。制御部は、これを検出して、ステツピングモー
タの脱調を検出し、ステツピングモータを逆回転させ、
印字ヘツドを印字用紙から所定の距離に調整することが
できる。
The control unit detects the step-out of the stepping motor by monitoring the converted binary code and the output difference of the quaternary counter. That is, the above-mentioned output difference is always given as a constant difference when the stepping motor is out of step, and if the stepping motor is out of step, the output pulse from the detection element stops or Since the timing becomes crazy, it will deviate from a certain value. The control unit detects this, detects stepping out of the stepping motor, and reversely rotates the stepping motor,
The print head can be adjusted to a predetermined distance from the print paper.

[実施例] 以下、本発明によるプリンタの印字ヘツドの自動調整機
構の実施例を図面により詳細に説明する。
[Embodiment] An embodiment of an automatic print head adjusting mechanism of a printer according to the present invention will be described below in detail with reference to the drawings.

第1図は本発明の第1の実施例の構成を示すブロツク
図、第2図,第3図は本発明を適用したプリンタ装置の
機構部を示す側面図及び正面図である。第1図〜第3図
において、1は印字ヘツド、2はキヤリア、3は上ガイ
ドレール、4は下ガイドレール、5はギア、6はピニオ
ン、7はスリツトデイスク、8はスリツト検出素子、9
はインクリボン、10は印字用紙、11はプラテン、12aは
左サイドフレーム、12bは右サイドフレーム、13はアン
ダーフレーム、14はステツピングモータ、15はステツピ
ングモータ駆動回路、16はパルス発生部、17,18はパル
ス幅測定部、19は脱調制御部、20はモータ回転指令部で
ある。
FIG. 1 is a block diagram showing the construction of a first embodiment of the present invention, and FIGS. 2 and 3 are a side view and a front view showing a mechanical portion of a printer device to which the present invention is applied. 1 to 3, 1 is a print head, 2 is a carrier, 3 is an upper guide rail, 4 is a lower guide rail, 5 is a gear, 6 is a pinion, 7 is a slit disk, 8 is a slit detecting element, 9
Is an ink ribbon, 10 is a printing paper, 11 is a platen, 12a is a left side frame, 12b is a right side frame, 13 is an underframe, 14 is a stepping motor, 15 is a stepping motor drive circuit, 16 is a pulse generator, 17, 18 is a pulse width measuring unit, 19 is a step-out control unit, and 20 is a motor rotation command unit.

本発明を適用したプリンタ装置は、第2図,第3図に示
すように、次のように構成されている。
The printer device to which the present invention is applied is configured as follows, as shown in FIGS.

すなわち、アンダーフレーム13には、左サイドフレーム
12a及び右サイドフレーム12bが固定されており、その上
部には、上ガイドレール3が固定されている。印字ヘツ
ド1を載置したキヤリア2は、上ガイドレール3と下ガ
イドレール4とにより案内され、第3図に矢印Bで示す
方向に移動できる。図示の状態で、印字ヘツド1を動作
させれば、図示プリンタ装置は、左サイドフレーム12a
と右サイドフレーム12bとの間に回転自在に固定された
プラテン11上にある印字用紙10上に、インクリボン9の
インクをドツト状に転写して印字を行うことができる。
That is, the under frame 13 includes the left side frame.
12a and the right side frame 12b are fixed, and the upper guide rail 3 is fixed to the upper part thereof. The carrier 2 on which the print head 1 is placed is guided by the upper guide rail 3 and the lower guide rail 4, and can move in the direction indicated by the arrow B in FIG. If the print head 1 is operated in the state shown in the drawing, the printer device shown in the drawing will move to the left side frame 12a.
The ink of the ink ribbon 9 can be transferred to the printing paper 10 on the platen 11 which is rotatably fixed between the right side frame 12b and the right side frame 12b for printing.

下ガイドレール4は、左サイドフレーム12a及び右サイ
ドフレーム12bに対して回転自在であり、右端にはギア
5が取り付けられており、下ガイドレール4の軸は、ギ
ア5の軸に対して偏心している。このため、ギア5が回
転すると、キヤリア2及び印字ヘツド1は、図示矢印A
の方向に移動し、印字ヘツド1の先端部とプラテン11と
の間隔が変化させられる。このギア5の駆動は、ステツ
ピングモータ14により、該モータ14の軸に取り付けられ
たピニオン6により行われる。また、ステツピングモー
タ14の軸には、スリツトデイスク7が取り付けられてお
り、印字ヘツド1の先端部の移動に伴つて回転する。こ
のスリツトデイスク7の両側には、光源及び光検出器等
によるスリツト検出素子8が備えられ、回転するスリツ
トデイスク7のスリツトを検出してパルス信号を出力す
る。
The lower guide rail 4 is rotatable with respect to the left side frame 12a and the right side frame 12b, and has a gear 5 attached to its right end. I have a heart. Therefore, when the gear 5 rotates, the carrier 2 and the print head 1 are moved to the arrow A in the figure.
And the distance between the tip of the print head 1 and the platen 11 is changed. The gear 5 is driven by a stepping motor 14 and a pinion 6 attached to the shaft of the motor 14. A slit disk 7 is attached to the shaft of the stepping motor 14 and rotates as the tip of the print head 1 moves. A slit detecting element 8 including a light source and a photodetector is provided on both sides of the slit disk 7, and detects the slit of the rotating slit disk 7 and outputs a pulse signal.

前述のように構成されるプリンタ装置の印字ヘツド1の
調整は、第1図に示すような、モータ回転指令部20、パ
ルス発生器16、ステツピングモータ駆動回路15、パルス
幅測定部17,18及び脱調判別部19を備える制御部によ
り、次に説明するように行われる。
The adjustment of the print head 1 of the printer apparatus configured as described above is performed by the motor rotation command section 20, the pulse generator 16, the stepping motor drive circuit 15, the pulse width measuring sections 17, 18 as shown in FIG. Also, the control unit including the step-out determination unit 19 performs the process as described below.

印字ヘツド1と印字用紙10との間の距離の調整時、ま
ず、モータ回転指令部20は、印字ヘツド1の先端部をプ
ラテン11の方向に移動させる指令を、例えば、所定の間
隔をもつた進相パルス信号により発生し、パルス発生部
16に与える。パルス発生部16は、この指令に基づき、ス
テツピングモータ駆動用のパルス信号を出力し、ステツ
ピングモータ駆動回路15を介して、ステツピングモータ
14を駆動する。ステツピングモータ14は、これにより、
印字ヘツド1の先端が印字用紙10に当接する方向に移動
させ、同時に、モータ軸に設けられた、検出器を構成す
るスリツトデイスク7が回転する。スリツト検出素子8
は、これにより、スリツトデイスク7のスリツトによ
り、パルス信号を生成して、パルス幅tf測定部18に出力
する。スリツト検出によるパルス信号は、オン,オフ比
50%のもので、このパルス幅tfが、パルス幅tf測定部18
により測定される。
When adjusting the distance between the print head 1 and the print sheet 10, first, the motor rotation command unit 20 issues a command to move the tip of the print head 1 toward the platen 11, for example, at a predetermined interval. Generated by a phase-advancing pulse signal
Give to 16. Based on this command, the pulse generator 16 outputs a pulse signal for driving the stepping motor, and the stepping motor drive circuit 15 outputs the pulse signal to the stepping motor.
Drive 14 The stepping motor 14 is
The leading end of the printing head 1 is moved in the direction in which it comes into contact with the printing paper 10, and at the same time, the slit disk 7 constituting the detector provided on the motor shaft rotates. Slit detection element 8
In this way, a pulse signal is generated by the slit of the slit disk 7 and is output to the pulse width t f measuring unit 18. The pulse signal by slit detection has an on / off ratio.
The pulse width t f is 50%, and the pulse width t f
Measured by

一方、モータ回転指令部20からの指令パルスのパルス間
隔が、パルス幅tc測定部17により測定されている。この
指令のパルス間隔と、前述したスリツトデイスク7より
得られるパルス幅とは、ステツピングモータ14が脱調せ
ずに正常に回転している場合、ほぼ同一となるように、
スリツトデイスク7のスリツト幅が定められている。
On the other hand, the pulse interval of the command pulse from the motor rotation command unit 20 is measured by the pulse width t c measuring unit 17. The pulse interval of this command and the pulse width obtained from the slit disk 7 are substantially the same when the stepping motor 14 is rotating normally without step-out,
The slit width of the slit disk 7 is defined.

パルス幅測定部17,18で測定されたパルス幅tc,tfの測定
値は、減算器により比較され、その差が演算されて、そ
の差tdが脱調判別部19に与えられる。該脱調判別部19
は、tdの絶対値が一定の値より大きくなつた場合に、ス
テツピングモータ14が脱調したと判断する。すなわち、
前述したように、ステツピングモータ14が脱調せずに正
常に回転している場合、モータ駆動指令部20からの指令
パルスのパルス間隔tcと、スリツト検出素子8から出力
される検出パルスのパルス幅tfとは、ほぼ同一になるよ
うに設定されているので、その差tdは、零または零に近
い値となる。しかし、ステツピングモータ14が脱調する
と、前記指令のパルス間隔は変わらないが、該モータの
振動または停止により、スリツト検出素子14から出力さ
れるパルスのパルス幅が変化することになる。このた
め、前記差tdの絶対値は、所定値より大きくなり、脱調
判別部19は、この差の値により、ステツピングモータ14
の脱調を検出できることになる。
The measured values of the pulse widths t c and t f measured by the pulse width measuring units 17 and 18 are compared by a subtracter, the difference between them is calculated, and the difference t d is given to the step-out determining unit 19. The step-out determination unit 19
Determines that the stepping motor 14 has stepped out when the absolute value of t d exceeds a certain value. That is,
As described above, when the stepping motor 14 is rotating normally without step-out, the pulse interval t c of the command pulse from the motor drive command unit 20 and the detection pulse output from the slit detection element 8 Since the pulse width t f is set to be almost the same, the difference t d becomes zero or a value close to zero. However, if the stepping motor 14 goes out of step, the pulse interval of the command does not change, but the pulse width of the pulse output from the slit detection element 14 changes due to vibration or stop of the motor. Therefore, the absolute value of the difference t d becomes larger than the predetermined value, and the step-out determination unit 19 determines the stepping motor 14 based on the difference value.
The out-of-step can be detected.

脱調判別部19からのステツピングモータ14が脱調したか
否かを示す信号は、モータ回転指令部20に与えられ、モ
ータ回転指令部20は、ステツピングモータ14が脱調して
いない間、印字ヘツド1の先端部が、プラテン11の方向
に移動するような指令を出力する。脱調判別部19がステ
ツピングモータ14が脱調したことを検出すると、モータ
回転指令部20は、印字ヘツド1の先端部がインクリボン
9を介して印字用紙10の面上に当接したと判断し、印字
ヘツド1がプラテン11から遠ざかる方向に一定量移動さ
せるために、ステツピングモータ14に一定量逆方向の回
転を行わせる指令を出力する。
A signal from the step-out determination unit 19 indicating whether or not the stepping motor 14 is out-of-step is given to the motor rotation command unit 20, and the motor rotation command unit 20 outputs the signal while the stepping motor 14 is out of step. , Outputs a command to move the tip of the print head 1 toward the platen 11. When the step-out determination section 19 detects that the stepping motor 14 has stepped out, the motor rotation command section 20 determines that the front end of the print head 1 has come into contact with the surface of the print sheet 10 via the ink ribbon 9. In order to move the print head 1 away from the platen 11 by a certain amount, the stepping motor 14 is instructed to rotate in the opposite direction by a certain amount.

前述したような動作を行うことにより、本発明の第1の
実施例は、印字ヘツド1の先端部と印字用紙10の上面と
の間の距離を印字用紙10の厚さに関係なく一定に設定す
ることが可能であり、かつ、ステツピングモータ14の脱
調後、直ちに次の動作に移るため、印字ヘツド調整のた
めに無駄な時間を不要とでき、ステツピングモータ14の
脱調に伴う騒音,振動の発生を防止することができる。
By performing the above-described operation, the first embodiment of the present invention sets the distance between the tip of the printing head 1 and the upper surface of the printing paper 10 constant regardless of the thickness of the printing paper 10. Since the stepping motor 14 goes out of step immediately after the stepping motor 14, it is possible to eliminate unnecessary time for adjusting the print head, and the stepping motor 14 goes out of step with noise. , It is possible to prevent the occurrence of vibration.

前述の本発明の第1の実施例において、パルス幅測定部
17は、モータ回転指令部20からのステツピングモータ14
の制御のための進相パルスの間隔tcを測定しているが、
前記進相パルスの間隔tcは、ステツピングモータに一定
周波数の進相パルスを与えて自起動で回転させる場合
は、予め定められており、一定であるので、特にこの間
隔を測定する必要はなく、本発明は、パルス幅測定部17
に代り、前述の間隔tcを直接出力できる機能部を備える
ようにしても、前述と同様に動作することができ、同様
な効果を奏することができる。
In the above-described first embodiment of the present invention, the pulse width measuring unit
17 is a stepping motor 14 from the motor rotation command unit 20.
Is measuring the interval t c of the advance pulse for the control of
The interval t c of the advance pulse is predetermined when the advance pulse of a constant frequency is supplied to the stepping motor to rotate the stepping motor by self-starting, and since it is constant, it is not necessary to measure this interval. In the present invention, the pulse width measuring unit 17
Instead of the above, even if a functional unit capable of directly outputting the above-mentioned interval t c is provided, the same operation as described above can be performed, and the same effect can be obtained.

また、本発明は、パルス幅測定部18により測定された、
スリツト検出素子8からの検出パルスの1つ前のパルス
の測定値を保持する保持部を、パルス幅測定部17の代り
に備えるようにしても、前述と同様にステツピングモー
タの脱調を検出することが可能であり、本発明の第1の
実施例と同様に動作し、同様な効果を奏することができ
る。
Further, the present invention is measured by the pulse width measuring unit 18,
Even if a holding unit for holding the measured value of the pulse immediately before the detection pulse from the slit detecting element 8 is provided instead of the pulse width measuring unit 17, the stepping motor out-of-step is detected in the same manner as described above. It is possible to operate the same as in the first embodiment of the present invention and to obtain the same effect.

第4図は本発明の第2の実施例の構成を示すブロツク
図、第5図はプリンタ機構部の構成を示す図、第6図は
2つのスリツト検出素子の出力波形を示す図、第7図は
グレイコード・バイナリコード変換回路を示す図、第8
図は第7図の回路の動作を説明する図、第9図はモータ
脱調時の2つのスリツト検出素子の出力波形を示す図で
ある。第4図,第5図において、8aはA相スリツト検出
素子、8bはB相スリツト検出素子、21は4進カウンタ、
22はグレイコード・バイナリコード変換部であり、その
他の符号は第1図〜第3図の場合と同一である。
FIG. 4 is a block diagram showing the configuration of the second embodiment of the present invention, FIG. 5 is a diagram showing the configuration of the printer mechanism portion, FIG. 6 is a diagram showing the output waveforms of two slit detecting elements, and FIG. The figure shows a Gray code / binary code conversion circuit.
FIG. 9 is a diagram for explaining the operation of the circuit of FIG. 7, and FIG. 9 is a diagram showing output waveforms of the two slit detection elements when the motor is out of synchronization. In FIGS. 4 and 5, 8a is an A-phase slit detecting element, 8b is a B-phase slit detecting element, 21 is a quaternary counter,
Reference numeral 22 denotes a Gray code / binary code conversion unit, and other symbols are the same as those in FIGS. 1 to 3.

本発明の第2の実施例は、そのプリンタ機構部が、第5
図に示した部分、すなわち、スリツト検出素子をA相ス
リツト検出素子8aとB相スリツト検出素子8bの2つにし
た点で本発明の第1の実施例と相違している。これらの
A相及びB相スリツト検出素子8a,8bは、第6図に示す
ように、いずれも、ステツピングモータ14が4ステツプ
進相する間に、2ステツプ分の“1"出力及び“0"出力を
発生するものであり、さらに、B相スリツト検出素子8b
の出力に対し、A相スリツト検出素子8aの出力が、90゜
の位相遅れとなるように配置されている。これにより、
ステツピングモータ14が脱調することなく、正常に動作
している場合、ステツピングモータ14が1ステツプ進相
する毎に、A相またはB相のスリツト検出素子からの出
力が変化することになる。この両検出素子8a,8bからの
出力(以下、A相出力,B相出力という)は、第7図に示
すようなグレイコード・バイナリコード変換回路に与え
られる。このグレイコード・バイナリコード変換回路
は、第8図に示すような真理値に従つた動作をして、A
相出力及びB相出力の組み合わせに従つたバイナリコー
ドを出力する。すなわち、このバイナリコードは、ステ
ツピングモータ14が1ステツプ進相する毎に、“1"ずつ
変化する信号となる。
In the second embodiment of the present invention, the printer mechanism section is the fifth embodiment.
This is different from the first embodiment of the present invention in that the portion shown in the figure, that is, the slit detecting element is composed of the A-phase slit detecting element 8a and the B-phase slit detecting element 8b. As shown in FIG. 6, these A-phase and B-phase slit detecting elements 8a, 8b are both "1" output and "0" for two steps while the stepping motor 14 is advanced by four steps. "It produces an output, and further the B-phase slit detection element 8b
The output of the A-phase slit detecting element 8a is arranged so as to have a phase delay of 90 ° with respect to the output of. This allows
When the stepping motor 14 is operating normally without stepping out, the output from the A-phase or B-phase slit detection element changes each time the stepping motor 14 advances by one step. . The outputs from both detection elements 8a and 8b (hereinafter referred to as A-phase output and B-phase output) are given to a Gray code / binary code conversion circuit as shown in FIG. This Gray code / binary code conversion circuit operates according to the truth value as shown in FIG.
The binary code according to the combination of the phase output and the B phase output is output. That is, this binary code is a signal that changes by "1" every time the stepping motor 14 advances by one step.

本発明の第2の実施例は、前述したような、2つのスリ
ツト検出素子8a,8bより得られるパルス信号に基づいた
バイナリコードにより、ステツピングモータの脱調を検
出するものであり、その構成が、第1の実施例における
パルス幅測定部17,18に代り、第4図に示すように、4
進カウンタ21と、グレイコード・バイナリコード変換部
22を備えるようにした点で、第1の実施例と相違する
が、他の部分は同様に構成され、次に説明するように動
作する。
The second embodiment of the present invention is to detect the step-out of the stepping motor by the binary code based on the pulse signals obtained from the two slit detecting elements 8a and 8b as described above. However, instead of the pulse width measuring units 17 and 18 in the first embodiment, as shown in FIG.
Binary counter 21 and Gray code / binary code converter
22 differs from the first embodiment in that it is provided with 22, but the other parts are configured in the same manner and operate as described below.

印字ヘツド1と印字用紙10との間の距離の調整時、ま
ず、モータ回路指令部20が、印字ヘツド1の先端部をプ
ラテン11の方向に移動させる指令を発し、パルス発生部
16が、ステツピングモータ駆動回路15を介してステツピ
ングモータ14を回転させ、印字ヘツド1を移動し、スリ
ツトデイスクを回転させるまでの動作は、前述した本発
明の第1の実施例と全く同様に行われる。
When adjusting the distance between the print head 1 and the print sheet 10, first, the motor circuit command unit 20 issues a command to move the front end of the print head 1 toward the platen 11, and the pulse generation unit.
The operation until 16 rotates the stepping motor 14 via the stepping motor drive circuit 15, moves the print head 1 and rotates the slit disk is completely the same as that of the first embodiment of the present invention described above. The same is done.

ステツピングモータ14が印字ヘツド1を移動するために
回転すれば、A相及びB相スリツト検出素子8a,8bは、
スリツトデイスク7のスリツトにより、第6図に示すよ
うなA相出力及びB相出力を発生し、これをグレイコー
ド・バイナリコード変換部22に送出する。このグレイコ
ード・バイナリコード変換部22は、前述した第7図に示
すような変換回路を備えており、A相出力及びB相出力
の組み合わせに応じたバイナリコードを出力する。
When the stepping motor 14 rotates to move the print head 1, the A-phase and B-phase slit detecting elements 8a and 8b are
The slits of the slit disk 7 generate the A-phase output and the B-phase output as shown in FIG. 6 and send them to the Gray code / binary code conversion section 22. The Gray code / binary code conversion unit 22 includes the conversion circuit as shown in FIG. 7 described above, and outputs a binary code corresponding to the combination of the A phase output and the B phase output.

一方、モータ回転指令部20からの指令パルスは、4進カ
ウンタ21に入力され、4進カウンタ21からは、2ビツト
のバイナリコードが周期的に出力されている。この4進
カウンタ21からのバイナリコードと、グレイコード・バ
イナリコード変換部22からのバイナリコードとは、減算
器により比較され、その差が演算された後、その差が脱
調判別部19に入力される。脱調判別部19は、この差に基
づいて、ステツピングモータ14が脱調したか否か判別
し、その判別結果をモータ回転指令部20に伝える。
On the other hand, the command pulse from the motor rotation command section 20 is input to the quaternary counter 21, and the quaternary counter 21 periodically outputs a 2-bit binary code. The binary code from the quaternary counter 21 and the binary code from the Gray code / binary code conversion unit 22 are compared by a subtractor, the difference is calculated, and the difference is input to the step-out determination unit 19. To be done. The step-out determination section 19 determines whether or not the stepping motor 14 has stepped out based on this difference, and notifies the motor rotation command section 20 of the determination result.

ステツピングモータ14が、脱調することなく正常に回転
している場合、該モータ14は、モータ回転指令部20から
の指令パルスに同期して、1ステツプ進相し、また、グ
レイコード・バイナリコード22の出力信号は、ステツピ
ングモータ14の1ステツプの進相毎に変化することにな
り、4進カウンタの出力もステツピングモータ14の1ス
テツプの進相毎に変化することになる。従つて、グレイ
コード・バイナリコード変換部22の出力と、4進カウン
タ21の出力との差は、ステツピングモータ14が脱調して
いない場合には、常に一定の値となる。ところが、ステ
ツピングモータ14が脱調を起すと、4進カウンタの出力
は、正常時と変わることがないが、A相及びB相スリツ
ト検出素子8a,8bからの出力パルスが、例えば、第9図
に示すように乱れ、このため、グレイコード・バイナリ
コード変換部22の出力の順序が変わつたり、変化時期に
ずれが生じたりする。このため、前述の差は、ステツピ
ングモータ14の脱調により変化することになる。すなわ
ち、脱調判別部19は、グレイコード・バイナリコード変
換部22の出力と、4進カウンタの出力との差が変化する
か否かにより、ステツピングモータ14が脱調したか否か
を検出することができ、その検出結果を受けるモータ回
転指令部20は、前述した本発明の第1の実施例の場合と
同様に、脱調検出後の処理を行うことができる。
When the stepping motor 14 is rotating normally without step-out, the motor 14 synchronizes with the command pulse from the motor rotation command section 20 to advance the phase by one step, and the gray code binary The output signal of the code 22 changes with each step advance of the stepping motor 14, and the output of the quaternary counter also changes with each step advance of the stepping motor 14. Therefore, the difference between the output of the Gray code / binary code conversion unit 22 and the output of the quaternary counter 21 is always a constant value when the stepping motor 14 is not out of step. However, when the stepping motor 14 goes out of step, the output of the quaternary counter does not change from the normal state, but the output pulses from the A-phase and B-phase slit detecting elements 8a and 8b are, for example, the ninth pulse. As shown in the figure, the disorder occurs, and therefore, the order of outputs of the Gray code / binary code conversion unit 22 is changed, or the change timing is deviated. Therefore, the difference described above changes due to the step-out of the stepping motor 14. That is, the step-out determination unit 19 detects whether or not the stepping motor 14 is out of step by determining whether or not the difference between the output of the Gray code / binary code conversion unit 22 and the output of the quaternary counter changes. The motor rotation command unit 20 that receives the detection result can perform the process after the step-out detection as in the case of the first embodiment of the present invention described above.

このような、本発明の第2の実施例によつても、前述し
た本発明の第1の実施例と同様な効果を奏することがで
きる。
According to the second embodiment of the present invention as described above, the same effect as that of the first embodiment of the present invention can be obtained.

なお、前述の本発明の2つの実施例において、ステツピ
ングモータ14は、公知の2相励磁駆動のものを使用する
ことが可能である。また、本発明の第2の実施例におけ
るA相及びB相スリツト検出素子の配置は、図示の例に
限らず、ステツピングモータ14が脱調せずに回転してい
る場合に、その出力パルスが第6図に示すような関係に
できれば、どのような配置であつてもよい。
In the above-described two embodiments of the present invention, the stepping motor 14 may be a known two-phase excitation drive type. The arrangement of the A-phase and B-phase slit detecting elements in the second embodiment of the present invention is not limited to the example shown in the figure, and the output pulse of the stepping motor 14 when it is rotating without step-out occurs. May have any arrangement as long as the relationship shown in FIG. 6 can be obtained.

また、前述した本発明の第1,第2の実施例において、ス
リツトデイスク7は、ガラス、アクリル等の透明板に印
刷されたスリツトを備えるものであつてよく、印字ヘツ
ドの駆動機構を構成するギア5の歯を代りに用いてもよ
い。さらに、スリツトデイスク7を回転磁石とし、スリ
ツト検出素子を磁気センサとしてもよい。
Further, in the above-described first and second embodiments of the present invention, the slit disk 7 may be provided with a slit printed on a transparent plate such as glass or acrylic, which constitutes a drive mechanism of the print head. Alternatively, the teeth of the gear 5 may be used. Further, the slit disk 7 may be a rotating magnet and the slit detecting element may be a magnetic sensor.

[発明の効果] 以上説明したように、本発明によれば、印字ヘツドの調
整時、印字ヘツドが印字用紙に当接後、直ちに、ステツ
ピングモータを逆回転駆動することができるので、動作
時間の無駄をなくし、脱調に伴う騒音,振動を防止する
ことができる。
As described above, according to the present invention, when the print head is adjusted, the stepping motor can be driven to rotate in the reverse direction immediately after the print head comes into contact with the print sheet. It is possible to eliminate waste and to prevent noise and vibration caused by step-out.

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

第1図は本発明の第1の実施例の構成を示すブロツク
図、第2図,第3図は本発明が適用されるプリンタ装置
の機構部を示す側面図及び正面図、第4図は本発明の第
2の実施例の構成を示すブロツク図、第5図はプリンタ
機構部の構成を示す図、第6図は2つのスリツト検出素
子の出力波形を示す図、第7図はグレイコード・バイナ
リコード変換回路を示す図、第8図は第7図の回路の動
作を説明する図、第9図はモータ脱調時の2つのスリツ
ト検出素子の出力波形を示す図である。 1……印字ヘツド、2……キヤリア、3……上サポート
レール、4……下サポートレール、5……ギア、6……
ピニオン、7……スリツトデイスク、8,8a,8b……スリ
ツト検出素子、9……インクリボン、10……印字用紙、
11……プラテン、12a,12b……左及び右サイドフレー
ム、13……アンダーフレーム、14……ステツピングモー
タ、15……ステツピングモータ駆動回路、16……パルス
発生部、17,18……パルス幅測定部、19……脱調判別
部、20……モータ回転指令部、21……4進カウンタ、22
……グレイコード・バイナリコード変換部。
FIG. 1 is a block diagram showing a configuration of a first embodiment of the present invention, FIGS. 2 and 3 are side and front views showing a mechanical portion of a printer to which the present invention is applied, and FIG. A block diagram showing the configuration of the second embodiment of the present invention, FIG. 5 is a diagram showing the configuration of the printer mechanism section, FIG. 6 is a diagram showing output waveforms of two slit detecting elements, and FIG. 7 is a gray code. A diagram showing a binary code conversion circuit, FIG. 8 is a diagram for explaining the operation of the circuit of FIG. 7, and FIG. 9 is a diagram showing output waveforms of two slit detection elements when the motor is out of synchronization. 1 ... Printing head, 2 ... Carrier, 3 ... Upper support rail, 4 ... Lower support rail, 5 ... Gear, 6 ...
Pinion, 7 ... slit disk, 8, 8a, 8b ... slit detection element, 9 ... ink ribbon, 10 ... printing paper,
11 …… Platen, 12a, 12b …… Left and right side frames, 13 …… Underframe, 14 …… Stepping motor, 15 …… Stepping motor drive circuit, 16 …… Pulse generator, 17,18 …… Pulse width measuring unit, 19 ... step-out determination unit, 20 ... motor rotation command unit, 21 ... quaternary counter, 22
...... Gray code / binary code converter.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】プラテンに印字用紙を装着し、印字ヘッド
をプラテン軸方向に移動させながら前記印字用紙に印字
を行うプリンタにおいて、前記印字ヘッドを印字用紙に
対して垂直方向に移動させるステッピングモータと、前
記印字ヘッドの移動に伴って発生するパルスを検出する
検出素子と、前記印字ヘッドが初期位置からプラテン方
向に移動制御され、印字用紙に当接したことにより、前
記ステッピングモータが脱調し始めたことを検出する脱
調検出手段とを備え、該脱調検出手段は、前記検出素子
で検出されたパルスのパルス幅の変化を、前記ステッピ
ングモータの駆動を制御する進相パルスのパルス間隔
と、前記検出素子で検出されたパルスのパルス幅との差
に基づいて検出することによりステッピングモータの脱
調を検出し、前記脱調検出手段によるステッピングモー
タの脱調検出後、前記印字ヘッドを一定量プラテンから
遠ざかる方向に移動させることを特徴とするプリンタの
印字ヘッドの自動調整機構。
1. A printer in which a printing paper is mounted on a platen and printing is performed on the printing paper while moving the printing head in the platen axis direction, the stepping motor moving the printing head in a direction perpendicular to the printing paper. The stepping motor starts to step out due to the detection element for detecting the pulse generated with the movement of the print head and the print head being controlled to move in the platen direction from the initial position and contacting the print sheet. Out-of-step detection means for detecting that the step-out detection means, the change in the pulse width of the pulse detected by the detection element, and the pulse interval of the advance pulse for controlling the drive of the stepping motor A stepping motor step-out is detected by detecting it based on the difference between the pulse width detected by the detection element and the pulse width, After out detection of the stepping motor by the detection means, an automatic adjustment mechanism of the print head of the printer, characterized in that to move away the print head from a certain amount platen.
【請求項2】プラテンに印字用紙を装着し、印字ヘッド
をプラテン軸方向に移動させながら前記印字用紙に印字
を行うプリンタにおいて、前記印字ヘッドを印字用紙に
対して垂直方向に移動させるステッピングモータと、前
記印字ヘッドの移動に伴って発生するパルスを、前記ス
テッピングモータが4相進相する毎にデューティ50%の
パルスとして、相互に90゜だけ位相をずらして検出する
2個の検出素子と、前記ステッピングモータが脱調し始
めたことを、前記2つの検出素子で検出されたパルスの
相互関係が、前記ステッピングモータの駆動を制御する
進相パルスに同期して変化しなくなることにより検出す
る脱調検出手段とを備え、ステッピングモータの脱調検
出後、前記印字ヘッドを一定量プラテンから遠ざかる方
向に移動させることを特徴とするプリンタの印字ヘッド
の自動調整機構。
2. A printer in which a printing paper is mounted on a platen, and printing is performed on the printing paper while moving the printing head in the platen axis direction, a stepping motor for moving the printing head in a direction perpendicular to the printing paper. , Two detection elements for detecting a pulse generated with the movement of the print head as a pulse having a duty of 50% each time the stepping motor advances by four phases and shifting the phases by 90 ° from each other. Detecting that the stepping motor has begun to step out by detecting that the mutual relationship between the pulses detected by the two detection elements does not change in synchronization with the advance pulse that controls the driving of the stepping motor. Adjusting step means, and moving the print head in a direction away from the platen by a certain amount after detecting step-out of the stepping motor. Automatic print head adjustment mechanism for printers.
【請求項3】前記脱調検出手段による、前記2つの検出
素子で検出されたパルスの相互関係が、進相パルスに同
期して変化しなくなることの検出は、前記2つの検出素
子で検出されたパルスをグレイコード・パイナリコード
変換手段により変換したバイナリコードと、前記進相パ
ルスを4進カウンタによりコード化したバイナリコード
との差に基づいて行われることを特徴とする特許請求の
範囲第2項記載のプリンタの印字ヘッドの自動調整機
構。
3. The detection by the out-of-step detecting means that the mutual relationship between the pulses detected by the two detecting elements does not change in synchronization with the phase advance pulse is detected by the two detecting elements. 7. The method according to claim 1, wherein the pulse is generated based on a difference between a binary code obtained by converting the pulse with a Gray code / Pinary code converting means and a binary code obtained by encoding the advance pulse with a quaternary counter. An automatic adjustment mechanism for the print head of the printer according to item 2.
【請求項4】前記検出素子は、前記ステッピングモータ
の軸に設けられたスリットデイスクのスリットを検出す
る素子であることを特徴とする特許請求の範囲第1項、
第2項または第3項記載のプリンタの印字ヘッドの自動
調整機構。
4. The device according to claim 1, wherein the detection element is an element for detecting a slit of a slit disk provided on the shaft of the stepping motor.
An automatic adjusting mechanism for a print head of the printer according to the item 2 or 3.
【請求項5】前記スリットディスクは、ガラス,アクリ
ル等の透明板に印刷されたスリットを備えることを特徴
とする特許請求の範囲第4項記載のプリンタの印字ヘッ
ドの自動調整機構。
5. The automatic adjusting mechanism for a print head of a printer according to claim 4, wherein the slit disk has a slit printed on a transparent plate such as glass or acrylic.
【請求項6】前記スリットディスクに代り、印字ヘッド
を駆動する歯車を用い、スリットに代りその歯を用いる
ことを特徴とする特許請求の範囲第4項記載のプリンタ
の印字ヘッドの自動調整機構。
6. The automatic adjusting mechanism for a print head of a printer according to claim 4, wherein a gear for driving the print head is used in place of the slit disk, and its teeth are used in place of the slit.
【請求項7】前記検出素子は、回転磁石による磁束変化
を検出する素子であることを特徴とする特許請求の範囲
第1項、第2項または第3項記載のプリンタの印字ヘッ
ドの自動調整機構。
7. The automatic adjustment of a print head of a printer according to claim 1, 2 or 3, wherein said detection element is an element for detecting a change in magnetic flux due to a rotating magnet. mechanism.
JP63276016A 1988-11-02 1988-11-02 Automatic print head adjustment mechanism of the printer Expired - Lifetime JPH07121605B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63276016A JPH07121605B2 (en) 1988-11-02 1988-11-02 Automatic print head adjustment mechanism of the printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63276016A JPH07121605B2 (en) 1988-11-02 1988-11-02 Automatic print head adjustment mechanism of the printer

Publications (2)

Publication Number Publication Date
JPH02122966A JPH02122966A (en) 1990-05-10
JPH07121605B2 true JPH07121605B2 (en) 1995-12-25

Family

ID=17563613

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63276016A Expired - Lifetime JPH07121605B2 (en) 1988-11-02 1988-11-02 Automatic print head adjustment mechanism of the printer

Country Status (1)

Country Link
JP (1) JPH07121605B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2816569B2 (en) * 1989-07-18 1998-10-27 株式会社小森コーポレーション Actuator control method and device
JP5328693B2 (en) * 2010-02-26 2013-10-30 キヤノン株式会社 Printing apparatus and sheet processing apparatus
JP2014128070A (en) 2012-12-25 2014-07-07 Minebea Co Ltd Motor controller and method for controlling stepping motor

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5416612A (en) * 1977-07-07 1979-02-07 Fujitsu Ltd Oscillating condition detecting device of pulse motor
JPS6056077B2 (en) * 1981-07-31 1985-12-07 シャープ株式会社 Pulse motor step-out correction device
JPS60119415A (en) * 1983-11-30 1985-06-26 Matsushita Electric Works Ltd Optical rotary encoder
JPS60141255U (en) * 1984-02-29 1985-09-19 ブラザー工業株式会社 printer
JPS61155719U (en) * 1985-03-20 1986-09-27
JPS61262161A (en) * 1985-05-17 1986-11-20 Oki Electric Ind Co Ltd Mechanism for automatically adjusting printing head of printer
JPS6299814U (en) * 1985-12-12 1987-06-25
JPS62195489A (en) * 1986-02-20 1987-08-28 Akaishi Kinzoku Kogyo Kk Magnetic type rotary encoder fan
JPS62277098A (en) * 1986-05-23 1987-12-01 Fujitsu Ltd Electronic blackboard driving device
JPS63148116A (en) * 1986-12-11 1988-06-21 Fuji Electric Co Ltd Rotary encoder
JPS63210621A (en) * 1987-02-27 1988-09-01 Optic Daiichi Denko Co Ltd Rotary encoder

Also Published As

Publication number Publication date
JPH02122966A (en) 1990-05-10

Similar Documents

Publication Publication Date Title
EP0300823B1 (en) Incremental positioning system
GB2127193A (en) Control system for a serial printer
EP1175011B1 (en) Digital encoder control method and apparatus
JP3521569B2 (en) Printing control device
JPH07121605B2 (en) Automatic print head adjustment mechanism of the printer
JP3866067B2 (en) DC motor driving method, DC motor driving apparatus, sheet feeding method, sheet feeding apparatus, image forming apparatus, and image reading apparatus
JPH0459267A (en) Recording device
US7855522B2 (en) Motor control method and motor control apparatus
JP3027974B2 (en) Automatic platen gap adjustment device for printer
JPH07304222A (en) Medium transport device for printer
JPH07156503A (en) Automatic Platen Gap Adjuster for Printer
JPH05221080A (en) Printer print head automatic adjustment mechanism
JP2611226B2 (en) Image recording device
JPH02261678A (en) Printer with function to correct misaligned print position in forward/backward printing process
JP3019124B2 (en) Automatic platen gap adjustment device for printer
CA1300969C (en) Position transducer for use with a printer or plotter
JPH0852864A (en) Method and device for controlling estimation
JPH035173A (en) Motor controller
JPH05338308A (en) Control method for carriage motor of printer
JPH03169665A (en) Platen gap adjustment device
JPH08132680A (en) Serial printer
JP2008086150A (en) Motor control device, document reading device, and motor control method
JP3675236B2 (en) Paper feeder
JPS61258777A (en) Printer
JPH035183A (en) Automatic regulating mechanism for gap of printing head