JPH0556690A - Current setting method for stepping motor - Google Patents

Current setting method for stepping motor

Info

Publication number
JPH0556690A
JPH0556690A JP3210793A JP21079391A JPH0556690A JP H0556690 A JPH0556690 A JP H0556690A JP 3210793 A JP3210793 A JP 3210793A JP 21079391 A JP21079391 A JP 21079391A JP H0556690 A JPH0556690 A JP H0556690A
Authority
JP
Japan
Prior art keywords
stepping motor
current
drive current
setting
reference voltage
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.)
Withdrawn
Application number
JP3210793A
Other languages
Japanese (ja)
Inventor
Isamu Miki
勇 三木
Tadanao Murayama
忠直 村山
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3210793A priority Critical patent/JPH0556690A/en
Publication of JPH0556690A publication Critical patent/JPH0556690A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

PURPOSE:To suppress noise and vibration by a constitution wherein a stepping motor is driven by preset number of pulses with a small drive current in order to check the operation thereof and the drive current is increased when a decision is made that the stepping motor has stepped out. CONSTITUTION:Selection can be made from a plurality of reference voltages VREF by modifying a set signal and drive current is increased sequentially by modifying the reference voltage VREF so that a stepping motor is operated by a number of pulses preset based on the drive current at that time. Normal operation is checked every time when the operation of the stepping motor ends and a decision is made whether the stepping motor has stepped out based on the check results. If a decision is made that the stepping motor has not stepped out, the drive current is increased. Since a correct drive current is fed, noise and vibration can be suppressed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ステッピングモータの
電流設定方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a stepping motor current setting method.

【0002】[0002]

【従来の技術】従来、例えば、プリンタ装置において媒
体を搬送したり、磁気ヘッド駆動装置において磁気ヘッ
ドを移動するために、一般にステッピングモータが使用
され、その駆動制御方法としては、2電源駆動方法が採
用されることが多い。図2は2電源駆動方法を示す図、
図3は2電源駆動方法のタイムチャートである。
2. Description of the Related Art Conventionally, for example, a stepping motor is generally used to convey a medium in a printer device or to move a magnetic head in a magnetic head driving device. Often adopted. FIG. 2 is a diagram showing a dual power source driving method,
FIG. 3 is a time chart of the dual power supply driving method.

【0003】図において、相ドライブ信号LDAがハイ
レベルになってトランジスタTr2がオンになった時
に、それと同時に電圧切替信号ODがハイレベルになる
とトランジスタTr1がオンになり、高い電圧V1 の電
源とアース間のコイルLn に電流が流れ、ステッピング
モータの駆動力を得ることができる。この場合、電圧切
替信号ODがハイレベルになってトランジスタTr1が
オンになるのは、相ドライブ信号LDAがハイレベルに
なった後の最初のタイミングだけであり、ステッピング
モータに適当な回転力が与えられた後は、電圧切替信号
ODをローレベルにして、トランジスタTr1をオフに
し、低い電圧V2 (V1 >V2 )の電源とアース間の逆
流防止ダイオードD1が順方向にバイアスされ、低電圧
2 の電源とアース間のコイルLn に電流が流れる。
In the figure, when the phase drive signal LDA becomes high level and the transistor Tr2 is turned on, and at the same time when the voltage switching signal OD becomes high level, the transistor Tr1 is turned on and the power source of high voltage V 1 is supplied. A current flows through the coil L n between the grounds, and the driving force of the stepping motor can be obtained. In this case, the voltage switching signal OD becomes the high level and the transistor Tr1 is turned on only at the first timing after the phase drive signal LDA becomes the high level, and the stepping motor is provided with an appropriate rotational force. After that, the voltage switching signal OD is set to the low level to turn off the transistor Tr1, and the backflow prevention diode D1 between the low voltage V 2 (V 1 > V 2 ) power supply and the ground is biased in the forward direction and set to the low level. A current flows through the coil L n between the power supply of voltage V 2 and the ground.

【0004】上記2電源駆動方法は、高い電圧V1 を用
い、電流を素早く立ち上げることによってトルク特性を
改善するとともに、高速回転を可能にしているが、この
方法の場合、二つの電源を用いなければならない。そこ
で、一つの電源で効率を向上させる方法が提供されてい
る。図4は定電流チョッパ駆動方法を示す図、図5は定
電流チョッパ駆動方法におけるタイムチャートである。
図5の(a)はOPアンプの入力波形を、(b)はOP
アンプの出力波形を、(c)はコイル電流波形を示して
いる。
In the two-power source driving method, a high voltage V 1 is used, and the current characteristics are rapidly raised to improve the torque characteristics and enable high speed rotation. In this method, two power sources are used. There must be. Therefore, a method of improving efficiency with one power source is provided. FIG. 4 is a diagram showing a constant current chopper driving method, and FIG. 5 is a time chart in the constant current chopper driving method.
5A shows the input waveform of the OP amplifier, and FIG. 5B shows the OP waveform.
The output waveform of the amplifier is shown, and (c) shows the coil current waveform.

【0005】図において、相信号DAがハイレベルにな
り電源が印加されると、抵抗r1,r2で分圧して得ら
れる基準電圧VREF よりも電流検出抵抗RSによる電流
検出電圧VS が低いので、コンパレータCOMの出力は
ハイレベルになり、トランジスタTr2がオンになる。
そして、トランジスタTr1のベース電流が流れ、トラ
ンジスタTr1がオンになり、ステッピングモータのコ
イルLn に電流が流れる。その結果、電流検出抵抗RS
による電流検出電圧VS が上昇する。電流検出電圧VS
と基準電圧VREF が同じ値になるまでトランジスタTr
1に電流が流れ続ける。電流検出電圧VS が基準電圧V
REF より高くなると、コンパレータCOMの出力はロー
レベルになり、トランジスタTr2とトランジスタTr
1は共にオフになる。
In the figure, when the phase signal DA becomes high level and power is applied, the current detection voltage V S by the current detection resistor RS is lower than the reference voltage V REF obtained by dividing by the resistors r1 and r2. , The output of the comparator COM becomes high level, and the transistor Tr2 is turned on.
Then, the base current of the transistor Tr1 flows, the transistor Tr1 is turned on, and the current flows through the coil L n of the stepping motor. As a result, the current detection resistor RS
The current detection voltage V S due to Current detection voltage V S
Until the reference voltage V REF becomes the same value as the transistor Tr
Current continues to flow to 1. The current detection voltage V S is the reference voltage V
When it becomes higher than REF , the output of the comparator COM becomes low level, and the transistors Tr2 and Tr
Both 1 are off.

【0006】この時、コンパレータCOMの出力電圧が
ほぼ0[V]であると、基準電圧V REF は VREF =VR ・R3 /(R2 +R3 ) VR :抵抗r1,r2による電圧V1 の分圧 になり、コンパレータCOMの出力がハイレベルである
ときの基準電圧VREF よりも低くなる。さらに、トラン
ジスタTr1がオフになる瞬間、コイルLn には逆起電
力が発生し、電流検出抵抗RS及びフライホイールダイ
オードDFを通って循環電流IOFF が流れる。そして、
循環電流IOFF が減少するに従って、電流検出電圧VS
も降下して電流検出電圧VS が基準電圧VREF より低く
なると、再びコンパレータCOMの出力がハイレベルに
なり、トランジスタTr2及びトランジスタTr1がオ
ンになって電源からの電流がコイルLn に流れる。
At this time, the output voltage of the comparator COM is
When it is almost 0 [V], the reference voltage V REFIs VREF= VR・ R3/ (R2+ R3) VR: Voltage V due to resistors r1 and r21The output of the comparator COM is high level.
Reference voltage VREFWill be lower than. In addition, Tran
At the moment when the transistor Tr1 turns off, the coil LnBack electromotive force
Force is generated, current detection resistor RS and flywheel die
Circulating current I through Ode DFOFFFlows. And
Circulating current IOFFCurrent detection voltage VS
Also drops and current detection voltage VSIs the reference voltage VREFLower
Then, the output of the comparator COM goes high again.
And the transistors Tr2 and Tr1 are turned off.
The current from the power supply becomes coil LnFlow to.

【0007】コンパレータCOMの出力がハイレベルで
あるときのコンパレータCOMの出力側の電圧をVOH
すると、基準電圧VREF の電圧は VOH>VR の関係から、コンパレータCOMの出力側の電圧VOH
電圧V1の分圧VR の電位差をR2 とR3 で分圧した形
になる。すなわち、 VREF =VR +(VOH−VR )〔R2 /(R2 +R3 )〕 このように、基準電圧VREF はトランジスタTr1がオ
フの時より高い電圧となり、電流検出電圧VS が基準電
圧VREF になるまでコイルLn に電流が流れる。その結
果、トランジスタTr1はオン・オフを繰り返し、コイ
ルLn にリプルを含んだ電流が流れる。この時、基準電
圧VREF の電圧変化が小さいほどオン・オフを多く繰り
返す。このように、ステッピングモータには一定の駆動
電流IC が流れる。上記ステッピングモータのコイルL
n に加わる平均電圧VL は、 VL =V・TON/(TON+TOFF ) になる。また、電源からコイルLn に流れる平均電流I
S も IS =IC ・TON/(TON+TOFF ) になり、定電流チョッパ駆動となる。また、ステッピン
グモータに流れる駆動電流IC は、分圧VR R (=V1 ・r2/(r2+r1)) によって決定される。このように定電流チョッパ駆動方
法の場合、ステッピングモータに流れる駆動電流I
C は、抵抗r1,r2による電圧V1の分圧VR によっ
てほぼ決定され、どのような環境下でも同一となる。
When the output side voltage of the comparator COM when the output of the comparator COM is high level is V OH , the voltage of the reference voltage V REF is V OH > V R. The potential difference between V OH and the partial voltage V R of the voltage V 1 is divided by R 2 and R 3 . That is, V REF = V R + (V OH −V R ) [R 2 / (R 2 + R 3 )] As described above, the reference voltage V REF becomes a voltage higher than that when the transistor Tr1 is off, and the current detection voltage V A current flows through the coil L n until S reaches the reference voltage V REF . As a result, the transistor Tr1 is repeatedly turned on and off, and a current including ripple flows in the coil L n . At this time, the smaller the voltage change of the reference voltage V REF , the more ON / OFF is repeated. Thus, a constant drive current I C flows through the stepping motor. Coil L of the above stepping motor
The average voltage V L applied to n is V L = V · T ON / (T ON + T OFF ). Also, the average current I flowing from the power source to the coil L n
S also becomes I S = I C · T ON / (T ON + T OFF ), which is constant current chopper drive. Further, the drive current I C flowing through the stepping motor is determined by the partial pressure V R V R (= V 1 · r2 / (r2 + r1)). As described above, in the case of the constant current chopper driving method, the driving current I flowing in the stepping motor is
C is substantially determined by the partial voltage V R of the voltage V 1 due to the resistors r1 and r2, and is the same under any environment.

【0008】このように、定電流チョッパ駆動方法によ
れば、1電源で駆動することが可能であり、逆起電力も
利用しているため電源効率が良好になる。
As described above, according to the constant current chopper driving method, it is possible to drive with one power source, and since the counter electromotive force is also used, the power source efficiency is improved.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記構
成のステッピングモータの電流設定方法においては、実
験や経験によって駆動電流IC を設定し、抵抗r1,r
2の抵抗値を決めて駆動電流IC を固定化しているが、
必ずしも最適な駆動電流IC を得ることができない。す
なわち、ステッピングモータの駆動電流IC を大きく設
定し過ぎると、騒音、振動が発生するだけでなく、電流
が無駄に流れ、しかも、電流容量の大きい電源が必要と
なる。逆に、駆動電流IC を小さく設定し過ぎると、温
度条件、負荷等の外部環境の影響を受け、トルクが不足
し、脱調してしまうことがある。
However, in the method of setting the current of the stepping motor having the above-described structure, the driving current I C is set by experiments and experience, and the resistances r1 and r are set.
The drive current I C is fixed by determining the resistance value of 2.
It is not always possible to obtain the optimum drive current I C. That is, if the drive current I C of the stepping motor is set too large, not only noise and vibration will occur, but also the current will flow unnecessarily, and a power supply with a large current capacity is required. On the other hand, if the drive current I C is set too small, the torque may become insufficient due to the influence of the external environment such as the temperature condition and the load, and the step may be lost.

【0010】また、設定後に駆動電流IC を設定し直す
ためには、抵抗r1,r2を取り替えなければならな
い。本発明は、上記従来のステッピングモータの電流設
定方法の問題点を解決して、駆動電流を容易に設定する
ことができ、駆動電流が無駄に流れることがなく、外部
環境の変化に対応して駆動電流の設定値を変えることが
できるステッピングモータの電流設定方法を提供するこ
とを目的とする。
Further, in order to reset the drive current I C after setting, the resistors r1 and r2 must be replaced. The present invention solves the above-mentioned problems of the current setting method for a stepping motor, allows the drive current to be easily set, prevents the drive current from flowing unnecessarily, and responds to changes in the external environment. An object of the present invention is to provide a current setting method for a stepping motor that can change the set value of the drive current.

【0011】[0011]

【課題を解決するための手段】そのために、本発明のス
テッピングモータの電流設定方法においては、コイルに
流れる電流を検出して得られる検出電圧と、基準電圧を
コンパレータによって比較し、かつ、基準電圧を上記コ
ンパレータの出力に対応して変更することによってコイ
ルに流れる電流を一定にするようになっている。
Therefore, in the stepping motor current setting method of the present invention, the reference voltage is compared with the detection voltage obtained by detecting the current flowing through the coil, and the reference voltage is compared. Is changed according to the output of the comparator to make the current flowing through the coil constant.

【0012】そのため第1の発明においては、設定信号
を変更することによって上記基準電圧を複数個選択可能
とし、上記基準電圧を変更して駆動電流を順次大きく
し、その時の駆動電流であらかじめ設定されたパルス数
によるステッピングモータの動作を行う。このステッピ
ングモータの動作が終了するごとに、動作が正常に行わ
れたか否かの動作チェックを行う。そして、該動作チェ
ックの結果によってステッピングモータが脱調している
か否かを判断する。
Therefore, in the first aspect of the invention, a plurality of the reference voltages can be selected by changing the setting signal, the reference voltage is changed to increase the drive current sequentially, and the drive current at that time is set in advance. The stepping motor operates according to the number of pulses. Every time the operation of the stepping motor is completed, an operation check is performed to determine whether the operation is normally performed. Then, based on the result of the operation check, it is determined whether or not the stepping motor is out of step.

【0013】ステッピングモータが脱調している場合に
は必要なトルクが得られていないので、上記駆動電流を
大きくして再びステッピングモータの動作を行う。この
ように、ステッピングモータの動作と動作チェックを繰
り返し、脱調しない状態になった時の駆動電流の限界値
に基づいて、ステッピングモータの駆動電流の設定値を
求める。
Since the required torque is not obtained when the stepping motor is out of step, the driving current is increased and the operation of the stepping motor is performed again. In this manner, the operation of the stepping motor and the operation check are repeated, and the set value of the drive current of the stepping motor is obtained based on the limit value of the drive current when the step-out state is not reached.

【0014】第2の発明においては、電源立上げ時に、
前回の電源オフ時における上記設定信号をバッテリバッ
クアップメモリから読み出し、該設定信号に対応する駆
動電流の設定値でステッピングモータを駆動する。電源
立上げ後、ステッピングモータの脱調によるエラーが発
生した場合に上記第1の発明の各処理を行い、ステッピ
ングモータの駆動電流の設定値を求める。この時の設定
信号を、電源オフ時にバッテリバックアップメモリに格
納する。
In the second invention, when the power source is turned on,
The above-mentioned setting signal at the previous power-off time is read from the battery backup memory, and the stepping motor is driven by the set value of the drive current corresponding to the setting signal. After the power is turned on, when an error occurs due to stepping out of the stepping motor, each processing of the first invention is performed to obtain the set value of the drive current of the stepping motor. The setting signal at this time is stored in the battery backup memory when the power is turned off.

【0015】第3の発明においては、ステッピングモー
タの周囲温度を検出し、該周囲温度に対応して上記設定
信号を変更し、該設定信号に対応する基準電圧を選択し
て駆動電流の設定値を求める。第4の発明においては、
設定位置にセンサを配設し、該センサをステッピングモ
ータによって移動させられる部材が通過した通過回数を
計数する。そして、該通過回数を積算して、バッテリバ
ックアップメモリに総回数として格納し、該総回数の値
に対応して上記設定信号を変更し、該設定信号に対応す
る基準電圧を選択して駆動電流の設定値を求める。
In the third invention, the ambient temperature of the stepping motor is detected, the setting signal is changed according to the ambient temperature, and the reference voltage corresponding to the setting signal is selected to set the drive current. Ask for. In the fourth invention,
A sensor is arranged at the set position, and the number of times the member moved by the stepping motor has passed is counted. Then, the number of times of passage is integrated and stored as a total number in the battery backup memory, the setting signal is changed according to the value of the total number, and the reference voltage corresponding to the setting signal is selected to select the drive current. Calculate the setting value of.

【0016】[0016]

【作用】本発明によれば、上記のようにコイルに流れる
電流を検出して得られる検出電圧と、基準電圧がコンパ
レータに入力されて比較され、該コンパレータの出力に
よってコイルの電流が制御される。この場合、上記基準
電圧は上記コンパレータの出力に対応して変更され、コ
イルに流れる電流が一定にされる。
According to the present invention, the detection voltage obtained by detecting the current flowing through the coil as described above and the reference voltage are input to the comparator for comparison and the output of the comparator controls the current of the coil. .. In this case, the reference voltage is changed according to the output of the comparator, and the current flowing through the coil is made constant.

【0017】上記基準電圧は、設定信号を変更すること
によって複数個選択することができるようになってい
る。すなわち、上記設定信号を変えることによって上記
基準電圧を変更し、該基準電圧に対応する駆動電流を得
ることができる。第1の発明においては、ステッピング
モータの駆動電流を適正なものに設定するために、最初
は駆動電流を小さくする。そして、該駆動電流によって
ステッピングモータをあらかじめ設定されたパルス数だ
け動作させ、例えばプリンタ装置においては印字ヘッド
を移動させる。
A plurality of reference voltages can be selected by changing the setting signal. That is, it is possible to change the reference voltage by changing the setting signal and obtain a drive current corresponding to the reference voltage. In the first invention, in order to set the drive current of the stepping motor to a proper value, the drive current is reduced first. Then, the stepping motor is operated by the drive current by a preset number of pulses, and the print head is moved in a printer, for example.

【0018】このステッピングモータの動作が終了する
ごとに、動作が正常に行われたか否かの動作チェックを
行う。そして、該動作チェックの結果によってステッピ
ングモータが脱調しているか否かを判断する。すなわ
ち、動作が正常に行われていない場合には、ステッピン
グモータが脱調していると判断する。ステッピングモー
タが脱調している場合には必要なトルクが得られていな
いので、上記駆動電流を大きくして再びステッピングモ
ータの動作を行う。このように、ステッピングモータの
動作と動作チェックを繰り返す。そして、脱調しない状
態になった時の駆動電流は、ステッピングモータの限界
値と見なすことができ、この時の駆動電流に基づいて、
ステッピングモータの駆動電流の設定値を求める。
Each time the operation of the stepping motor is completed, an operation check is made to see if the operation was performed normally. Then, based on the result of the operation check, it is determined whether or not the stepping motor is out of step. That is, when the operation is not normally performed, it is determined that the stepping motor is out of step. When the stepping motor is out of step, the required torque is not obtained, so the drive current is increased and the operation of the stepping motor is performed again. In this way, the operation of the stepping motor and the operation check are repeated. Then, the drive current when the step-out state is not reached can be regarded as the limit value of the stepping motor, and based on the drive current at this time,
Obtain the set value of the drive current of the stepping motor.

【0019】第2の発明においては、電源立上げ時に、
前回の電源オフ時における上記設定信号をバッテリバッ
クアップメモリから読み出し、該設定信号に対応する駆
動電流の設定値でステッピングモータを駆動する。電源
立上げ後、ステッピングモータの脱調によるエラーが発
生した場合に上記第1の発明の各処理を行い、ステッピ
ングモータの駆動電流の設定値を求める。ステッピング
モータの脱調によるエラーが発生しない場合には、前回
の電源オフ時の駆動電流によってステッピングモータを
駆動する。
In the second invention, when the power is turned on,
The above-mentioned setting signal at the previous power-off time is read from the battery backup memory, and the stepping motor is driven by the set value of the drive current corresponding to the setting signal. After the power is turned on, when an error occurs due to stepping out of the stepping motor, each processing of the first invention is performed to obtain the set value of the drive current of the stepping motor. If no error occurs due to step-out of the stepping motor, the stepping motor is driven by the drive current when the power was turned off last time.

【0020】この時の設定信号は、電源オフ時にバッテ
リバックアップメモリに格納しておく。第3の発明にお
いては、ステッピングモータの周囲温度を検出し、該周
囲温度に対応して上記設定信号を変更し、該設定信号に
対応する基準電圧を選択して駆動電流の設定値を求め
る。周囲温度が変わると、それに対応した適正な駆動電
流が設定される。
The setting signal at this time is stored in the battery backup memory when the power is turned off. In the third invention, the ambient temperature of the stepping motor is detected, the setting signal is changed according to the ambient temperature, and the reference voltage corresponding to the setting signal is selected to obtain the set value of the drive current. When the ambient temperature changes, an appropriate drive current corresponding to it changes.

【0021】第4の発明においては、所定位置にセンサ
を配設しておき、該センサを例えば磁気ヘッド機構が通
過した通過回数を計数する。そして、該通過回数を積算
して、バッテリバックアップメモリに総回数として格納
しておく。そして、該総回数の値に対応して上記設定信
号を変更し、該設定信号に対応する基準電圧を選択して
駆動電流の設定値を求める。
In the fourth aspect of the invention, a sensor is arranged at a predetermined position and the number of times the magnetic head mechanism has passed through the sensor is counted. Then, the number of times of passage is integrated and stored as a total number in the battery backup memory. Then, the setting signal is changed according to the value of the total number of times, the reference voltage corresponding to the setting signal is selected, and the setting value of the drive current is obtained.

【0022】[0022]

【実施例】以下、本発明の実施例について図面を参照し
ながら詳細に説明する。図1は本発明のステッピングモ
ータの電流設定方法が適用される電流値可変回路図、図
6は本発明のステッピングモータの電流設定方法が適用
されるステッピングモータ駆動装置のブロック図であ
る。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a current value variable circuit diagram to which the stepping motor current setting method of the present invention is applied, and FIG. 6 is a block diagram of a stepping motor drive device to which the stepping motor current setting method of the present invention is applied.

【0023】図6において、11はCPU、12はメモ
リ、13は出力ポート、14は該出力ポート13から設
定信号s1〜s3を受け、該設定信号s1〜s3に対応
する電流をステッピングモータのコイルLn に流す電流
値可変回路である。上記設定信号s1〜s3は、CPU
11からのI/O命令などによってラッチ出力される。
15は印字ヘッドのホームポジションを検出するための
ホームポジションセンサ、16は入力ポート、17はプ
ログラム書込みFD媒体、18はディスク駆動装置であ
る。上記設定信号s1〜s3を、CPU11からの出力
によらず、プログラム書込みFD媒体17に格納された
プログラムによって変更することができる。
In FIG. 6, 11 is a CPU, 12 is a memory, 13 is an output port, 14 is setting signals s1 to s3 from the output port 13, and the current corresponding to the setting signals s1 to s3 is applied to the coil of the stepping motor. It is a current value variable circuit that is passed through L n . The setting signals s1 to s3 are the CPU
The data is latched and output by the I / O command from 11.
Reference numeral 15 is a home position sensor for detecting the home position of the print head, 16 is an input port, 17 is a program writing FD medium, and 18 is a disk drive device. The setting signals s1 to s3 can be changed by the program stored in the program writing FD medium 17 regardless of the output from the CPU 11.

【0024】次に、上記電流値可変回路14について図
1に基づいて説明する。図1において、r1〜r5は電
圧V1 を分圧するための抵抗であり、抵抗r3,r4間
にゲートG1が、抵抗r2,r3間にゲートG2が、抵
抗r1,r2間にゲートG3が接続され、抵抗r4,r
5間に分圧VR が得られる。上記ゲートG1〜G3には
上記設定信号s1〜s3が入力される。
Next, the current value varying circuit 14 will be described with reference to FIG. In Figure 1, r1 to r5 are resistors for dividing the voltage V 1, the gate G1 between the resistor r3, r4 is the gate G2 between the resistor r2, r3 is, a gate G3 is connected to between the resistors r1, r2 And resistances r4, r
A partial pressure V R is obtained during 5. The setting signals s1 to s3 are input to the gates G1 to G3.

【0025】R1はコンパレータCOMの負極側に接続
される抵抗であり、電流検出抵抗RSによる電流検出電
圧VS をコンパレータCOMに入力する。また、R2は
上記抵抗r4,r5間とコンパレータCOMの正極側に
接続される抵抗、R3はコンパレータCOMの出力側と
コンパレータCOMの正極側間に接続される抵抗であ
る。コンパレータCOMの正極側には、上記抵抗R2,
R3によって得られる基準電圧VREF が入力される。
R1 is a resistor connected to the negative side of the comparator COM, and inputs the current detection voltage V S by the current detection resistor RS to the comparator COM. Further, R2 is a resistor connected between the resistors r4 and r5 and the positive electrode side of the comparator COM, and R3 is a resistor connected between the output side of the comparator COM and the positive electrode side of the comparator COM. The resistor R2 is provided on the positive electrode side of the comparator COM.
The reference voltage V REF obtained by R3 is input.

【0026】上記コンパレータCOMの出力側には、抵
抗R4を介してトランジスタTr2が接続され、該トラ
ンジスタTr2 のコレクタには、抵抗R5を介してトラ
ンジスタTr1が接続される。なお、R6はバイアス用
の抵抗である。Tr3は相信号DAが入力されるトラン
ジスタ、Ln はトランジスタTr1,Tr3間に接続さ
れるコイルで、DFは循環電流を流すためのフライホイ
ールダイオードである。
A transistor Tr2 is connected to the output side of the comparator COM via a resistor R4, and a transistor Tr1 is connected to the collector of the transistor Tr2 via a resistor R5. Note that R6 is a bias resistor. Transistor Tr3 to the phase signal DA is input, L n is a coil connected between the transistors Tr1, Tr3, DF is a flywheel diode for passing a circulating current.

【0027】上記構成の電流値可変回路14において、
コイルLn に流れる電流IL はコンパレータCOMの正
極側に入力される基準電圧VREF の設定値が高いほど大
きくなる。そこで、基準電圧VREF を変化させるために
上記設定信号s1〜s3がオープンコレクタICのゲー
トG1〜G3を介して出力される。例えば、 (s1,s2,s3)=(H,H,H) の場合、基準電圧VREF は近似的に (r1+r2+r3+r4)V1 /(r1+r2+r3+r4+r5) となり、 (s1,s2,s3)=(L,L,L) の場合、基準電圧VREF は近似的に (r4・V1 )/(r4+r5) となる。
In the variable current value circuit 14 having the above structure,
The current I L flowing through the coil L n increases as the set value of the reference voltage V REF input to the positive side of the comparator COM increases. Therefore, the setting signals s1 to s3 are output via the gates G1 to G3 of the open collector IC in order to change the reference voltage V REF . For example, when (s1, s2, s3) = (H, H, H), the reference voltage V REF is approximately (r1 + r2 + r3 + r4) V 1 / (r1 + r2 + r3 + r4 + r5), and (s1, s2, s3) = (L, In the case of (L, L), the reference voltage V REF is approximately (r4 · V 1 ) / (r4 + r5).

【0028】図7は設定信号に対応する電流の大小比較
図である。図に示すように、設定信号s1〜s3を設定
することによってステッピングモータのコイルLn に流
れる電流IL を変化させることが可能となる。次に、図
8に基づいてステッピングモータを使用したキャリッジ
駆動装置について説明する。
FIG. 7 is a magnitude comparison diagram of currents corresponding to setting signals. As shown in the figure, by setting the setting signals s1 to s3, it becomes possible to change the current I L flowing through the coil L n of the stepping motor. Next, a carriage drive device using a stepping motor will be described with reference to FIG.

【0029】図8はキャリッジ駆動装置を示す図であ
る。図の(a)はキャリッジ駆動装置の概略図、(b)
はステッピングモータのパルスに対応する印字ヘッドの
位置を示す図である。図の(a)において、21は印字
ヘッド、22は印字ヘッド21を搭載したキャリッジ、
23はステッピングモータ、15はキャリッジ22のホ
ームポジションを検出するためのホームポジションセン
サである。該ホームポジションセンサ15は光学センサ
から成り、原点出しなどの印字ヘッド21の位置決めを
行うために使用される。25は上記キャリッジ22とス
テッピングモータ23間に架設されていて、該ステッピ
ングモータ23の駆動によってキャリッジ22を往復動
させる駆動ベルト、26はステッピングモータ23の回
転を駆動ベルト25に伝達するギヤである。
FIG. 8 is a diagram showing a carriage driving device. (A) of the figure is a schematic view of the carriage driving device, (b)
FIG. 6 is a diagram showing the position of the print head corresponding to the pulse of the stepping motor. In FIG. 1A, 21 is a print head, 22 is a carriage on which the print head 21 is mounted,
Reference numeral 23 is a stepping motor, and 15 is a home position sensor for detecting the home position of the carriage 22. The home position sensor 15 is composed of an optical sensor and is used for positioning the print head 21 such as origin setting. Reference numeral 25 denotes a drive belt which is installed between the carriage 22 and the stepping motor 23 and drives the stepping motor 23 to reciprocate the carriage 22, and 26 denotes a gear which transmits the rotation of the stepping motor 23 to the drive belt 25.

【0030】図の(b)において、斜線部分は印字ヘッ
ド21の移動限界を示す範囲である。印字ヘッド21は
0パルスから1419パルスまでの範囲を移動する。ホ
ームポジションから4パルスの位置が原点出し停止位置
となる。また、印字ヘッド21は40パルスでホームポ
ジションから必ず脱出することができる。上記構成のキ
ャリッジ駆動装置において、ステッピングモータ23の
回転は、ギヤ26を介して駆動ベルト25に伝達され、
該駆動ベルト25に取り付けられたキャリッジ22が左
右に移動するようになっている。
In FIG. 3B, the shaded area is the range showing the movement limit of the print head 21. The print head 21 moves in the range from 0 pulse to 1419 pulses. The position of 4 pulses from the home position is the origin search stop position. Further, the print head 21 can always escape from the home position with 40 pulses. In the carriage driving device having the above structure, the rotation of the stepping motor 23 is transmitted to the driving belt 25 via the gear 26,
The carriage 22 attached to the drive belt 25 moves left and right.

【0031】次に、図9及び図10に基づいて本発明の
ステッピングモータの電流設定方法の動作について説明
する。まず、プリンタ装置の電源を立ち上げると原点出
し動作が行われ、印字ヘッド21は初期位置に移動す
る。この場合、原点出し動作の開始前にステッピングモ
ータ23の駆動電流を、比較的小さな、ほとんど脱調す
ると思われる値にする。そして、印字ヘッド21の移動
動作を所定パルス分行うごとにホームポジションセンサ
15を利用して、印字ヘッド21を移動しようとする位
置と現在の印字ヘッド21の位置との比較チェックを行
う。この比較チェックでNGとなった場合にはステッピ
ングモータ23が脱調していると認識し、駆動電流を最
初の値よりも1段階高い値に変更して上記動作を繰り返
す。この場合、前の動作においてステッピングモータ2
3が脱調して印字ヘッド21の位置がずれていても原点
出しのためのものであるため制限を受けない。
Next, the operation of the current setting method of the stepping motor of the present invention will be described with reference to FIGS. 9 and 10. First, when the power source of the printer device is turned on, the origin search operation is performed and the print head 21 moves to the initial position. In this case, the driving current of the stepping motor 23 is set to a relatively small value, which is considered to be almost out of step, before the start of the origin search operation. Then, each time the print head 21 is moved for a predetermined number of pulses, the home position sensor 15 is used to make a comparison check between the position where the print head 21 is to be moved and the current position of the print head 21. If the comparison check results in NG, it is recognized that the stepping motor 23 is out of step, the drive current is changed to a value one step higher than the initial value, and the above operation is repeated. In this case, in the previous operation, the stepping motor 2
Even if the position of the print head 21 is deviated due to step 3 and the print head 21 is out of position, there is no limitation because it is for origin origin.

【0032】以上の動作を繰り返し、駆動電流をある値
にした時に比較チェックがOKになると、原点出しが正
規に行われたことになる。その時の駆動電流をステッピ
ングモータ23が脱調しない限界値とみなすことができ
る。しかし、ここで、この限界値をそのままステッピン
グモータ23の駆動電流として設定すると、わずかな外
的環境によって脱調する可能性がある。そこで、ある程
度のマージンを持たせるため駆動電流をもう一段階上の
値に変更して、それを設定値とする。なお、この時のマ
ージンの持たせ方は、個々のプリンタ装置に対応させて
変えることができる。
If the comparison check is OK when the above operation is repeated and the drive current is set to a certain value, it means that the origin search is normally performed. The drive current at that time can be regarded as a limit value at which the stepping motor 23 does not step out. However, if this limit value is set as the drive current of the stepping motor 23 as it is, there is a possibility of step-out due to a slight external environment. Therefore, the drive current is changed to a value one step higher in order to have a certain margin, and this is set as the set value. It should be noted that the manner of providing the margin at this time can be changed in accordance with each printer device.

【0033】図9は本発明のステッピングモータの電流
設定方法の第1のフローチャート、図10は本発明のス
テッピングモータの電流設定方法の第2のフローチャー
トである。 ステップS1 ステッピングモータ23の電流値をAに
する。Aは低電流値とする。 ステップS2 ホームポジションセンサ15がオンか否
かを判断する。オンの場合はステップS10に、オフの
場合はステップS3に進む。 ステップS3 往方向に移動指定する。 ステップS4 1430パルス設定する。図8で説明し
たように、印字ヘッド21は0パルスから1419パル
スまでの範囲を移動するが、キャリッジ22を手などで
1419パルスの位置より復方向に移動させてしまった
時のことを考慮して、11パルス分のマージンを加え、
1430パルスを設定している。 ステップS5 1パルス分の動作を行う(カウント数を
1アップする。)。 ステップS6 カウント数が1430以上か否かの判断
を行い、1430以上の場合は脱調していると判断して
ステップS21に、1430より小さい場合は、ステッ
プS7に進む。 ステップS7 ホームポジジョンセンサ15がオンか否
かの判断を行い、オンの場合はステップS8に、オフの
場合はステップS5に進み再び1パルス分の動作を行
う。 ステップS8 4パルス分の動作を行い、原点出しを終
了する。 ステップS9 マージンを考慮して現在設定されている
電流値の1段階上の値に再設定する。 ステップS10 復方向に移動指定する。 ステップS11 40パルス設定する。上述したよう
に、キャリッジ22を往方向に移動させた場合、ホーム
ポジションから4パルスの位置でホームポジションセン
サ15はオンになる。また、ホームポジションセンサ1
5がオンになる最大領域は40パルスである。したがっ
て、キャリッジ22を手などでホームポジションより更
に往方向に移動させてしまった場合でも、印字ヘッド2
1は40パルスの動作で必ずホームポジションから脱出
することができる。 ステップS12 1パルス分の動作を行う(カウント数
を1アップする。)。 ステップS13 カウント数が40以上か否かの判断を
行い、40以上の場合は脱調していると判断してステッ
プS21に、40より少ない場合はステップS14に進
む。 ステップS14 ホームポジションセンサ15がオンか
否かの判断を行い、オンの場合はステップS12に進み
再び1パルス分の動作を行う。オフの場合はステップS
15に進む。 ステップS15 48パルス分の動作を行う。この動作
によって印字ヘッド21は復方向に48パルス分移動
し、停止することになる。この48のパルス数は、移動
するのに時間がかからず、かつ、キャリッジ22の動作
を円滑にするのに十分なパルス数であり、実験によって
求める。 ステップS16 往方向に移動指定する。 ステップS17 60パルス設定する。復方向に48パ
ルス分移動した印字ヘッド21を往方向に戻すために
は、本来48パルスでよいが、ステッピングモータ23
のバックラッシュなどの誤差マージンを加え60パルス
を設定している。 ステップS18 1パルス分の動作を行う(カウント数
を1アップする。)。 ステップS19 カウント数が60以上か否かの判断を
行い、60以上の場合は脱調していると判断してステッ
プS21に、60より少ない場合はステップS20に進
む。 ステップS20 ホームポジションセンサ15がオンか
否かの判断を行い、オンの場合はステップS8に、オフ
の場合はステップS18に進む。 ステップS21 ステッピングモータ23の電流値を1
段階上げる。
FIG. 9 is a first flowchart of the stepping motor current setting method of the present invention, and FIG. 10 is a second flowchart of the stepping motor current setting method of the present invention. Step S1 The current value of the stepping motor 23 is set to A. A is a low current value. In step S2, it is determined whether the home position sensor 15 is on. If it is on, the process proceeds to step S10, and if it is off, the process proceeds to step S3. In step S3, the movement is designated in the forward direction. In step S4 1430 pulses are set. As described with reference to FIG. 8, the print head 21 moves in the range from 0 pulse to 1419 pulses, but in consideration of the case where the carriage 22 is moved in the backward direction from the position of 1419 pulses by hand or the like. And add a margin for 11 pulses,
1430 pulses are set. In step S5, the operation for one pulse is performed (the count number is incremented by 1). In step S6, it is determined whether or not the count number is 1430 or more. If it is 1430 or more, it is determined that the step is out of step, and if it is less than 1430, the process proceeds to step S7. In step S7, it is determined whether the home position sensor 15 is on. If it is on, the process proceeds to step S8, and if it is off, the process proceeds to step S5, and the operation for one pulse is performed again. In step S8, the operation for four pulses is performed, and the home search is completed. In step S9, the margin is taken into consideration and the current value is reset to a value one step higher than the current value. Step S10: Designate movement in the backward direction. In step S11, 40 pulses are set. As described above, when the carriage 22 is moved in the forward direction, the home position sensor 15 turns on at the position of 4 pulses from the home position. In addition, the home position sensor 1
The maximum area where 5 turns on is 40 pulses. Therefore, even if the carriage 22 is moved further from the home position by the hand or the like, the print head 2
1 can always escape from the home position by the operation of 40 pulses. In step S12, the operation for one pulse is performed (the count number is incremented by 1). In step S13, it is determined whether or not the count number is 40 or more. If it is 40 or more, it is determined that the step is out of step, and if it is less than 40, the process proceeds to step S14. In step S14, it is determined whether the home position sensor 15 is on. If it is on, the process proceeds to step S12 and the operation for one pulse is performed again. If off, step S
Proceed to 15. In step S15, 48 pulses are operated. By this operation, the print head 21 is moved by 48 pulses in the backward direction and stopped. The number of pulses of 48 is a number of pulses that does not take time to move and is sufficient to make the operation of the carriage 22 smooth, and is obtained by an experiment. In step S16, the movement is designated in the forward direction. In step S17, 60 pulses are set. In order to return the print head 21 that has moved 48 pulses in the backward direction to the forward direction, 48 pulses are originally required, but the stepping motor 23
60 pulses are set by adding an error margin such as backlash. In step S18, the operation for one pulse is performed (the count number is incremented by 1). In step S19, it is determined whether or not the count number is 60 or more. If it is 60 or more, it is determined that the step is out of step, and if it is less than 60, the process proceeds to step S20. In step S20, it is determined whether the home position sensor 15 is on. If it is on, the process proceeds to step S8, and if it is off, the process proceeds to step S18. Step S21 Set the current value of the stepping motor 23 to 1
Step up.

【0034】ところで、上記ステッピングモータ23の
電流設定方法によれば、電源立上げ時に駆動電流を低く
設定して原点出しのイニシャル動作を行わせ、脱調を検
出した場合は駆動電流の設定値を1段階ずつ上げるよう
にしているので、各装置ごとの特性のばらつきや外部環
境を考慮して最適な駆動電流を設定することができる
が、電源立上げ時に必ず低い設定値から原点出しを開始
しなければならず、リトライ動作が何度も必要となり、
立上げ時間が長くなってしまう。また、原点出しを行っ
た後に外部環境などが変化してステッピングモータ23
のトルクが不足すると、再度電源の立上げを行わなけれ
ばならず、ハードディスク(HD)からのプログラムダ
ウンロードを伴う装置においては、電源を再立上げする
だけでも相当な時間を要する。
By the way, according to the current setting method of the stepping motor 23, when the power is turned on, the drive current is set low to perform the initial operation for home search, and when the step-out is detected, the set value of the drive current is set. Since it is set to increase one step at a time, it is possible to set the optimum drive current in consideration of the variation in the characteristics of each device and the external environment. However, when the power is turned on, the origin search is always started from a low setting value. Must be repeated, and retry operation is required many times,
The startup time will be long. In addition, after the origin is set, the external environment changes and the stepping motor 23
If the torque of 1 is insufficient, the power supply must be restarted, and in a device that involves downloading a program from a hard disk (HD), just restarting the power supply requires a considerable amount of time.

【0035】そこで、本発明の第2の実施例において
は、通常の電源立上げの場合は、前回設定された駆動電
流の値をそのまま保持し、ステッピングモータ23の動
作エラーが発生するなどの特別の場合だけ駆動電流を再
び設定するようにしている。図11は本発明の第2の実
施例が適用されるステッピングモータ駆動装置のブロッ
ク図である。
Therefore, in the second embodiment of the present invention, in the case of normal power-on, the value of the drive current set last time is held as it is, and an operation error of the stepping motor 23 occurs. Only in case of, the drive current is set again. FIG. 11 is a block diagram of a stepping motor drive device to which the second embodiment of the present invention is applied.

【0036】図において、11はCPU、13は出力ポ
ート、14は該出力ポート13から設定信号s1〜s3
を受け、該設定信号s1〜s3に対応する電流をステッ
ピングモータ23(図8)のコイルLn に流す電流値可
変回路である。上記設定信号s1〜s3は、CPU11
からのI/O命令などによってラッチ出力される。15
は印字ヘッド21のホームポジションを検出するための
ホームポジションセンサ、16は入力ポート、17はプ
ログラム書込みFD媒体、18はディスク駆動装置であ
る。上記設定信号s1〜s3を、CPU11からの出力
によらず、プログラム書込みFD媒体17に格納された
プログラムで変更することができる。28は設定信号s
1〜s3を格納するレジスタNを有するDRAM、29
は電源をオフにした場合でも記憶可能なBBM(バッテ
リバックアップメモリ)であり、現在設定されている駆
動電流の設定値を電源オフ時に格納する。
In the figure, 11 is a CPU, 13 is an output port, and 14 is the setting signals s1 to s3 from the output port 13.
It is a current value variable circuit that receives the current and sends a current corresponding to the setting signals s1 to s3 to the coil L n of the stepping motor 23 (FIG. 8). The setting signals s1 to s3 are sent to the CPU 11
It is latched and output by an I / O command from the. 15
Is a home position sensor for detecting the home position of the print head 21, 16 is an input port, 17 is a program writing FD medium, and 18 is a disk drive device. The setting signals s1 to s3 can be changed by the program stored in the program writing FD medium 17 regardless of the output from the CPU 11. 28 is a setting signal s
A DRAM having a register N for storing 1 to s3, 29
Is a BBM (battery backup memory) that can be stored even when the power is turned off, and stores the set value of the drive current that is currently set when the power is turned off.

【0037】上記構成のステッピングモータ駆動装置に
おいて、電源を立ち上げると、BBM29から前回電源
をオフする直前に書き込まれた設定信号s1〜s3が読
み出され、上記レジスタNの値によってステッピングモ
ータ23の駆動電流が設定される。したがって、通常は
前回のままの駆動電流でステッピングモータ23が動作
するため、原点出しに必要な時間が長くならない。ただ
し、ステッピングモータ駆動装置にエラーが発生した場
合は、該エラーがステッピングモータ23の脱調による
ものか否かを判断し、脱調によるエラーの場合にだけ図
9,10に示すステッピングモータ23の脱調検出イニ
シャル処理に移行する。
In the stepping motor driving device having the above-mentioned configuration, when the power is turned on, the setting signals s1 to s3 written immediately before the power is turned off last time are read from the BBM 29, and the value of the register N causes the stepping motor 23 to operate. The drive current is set. Therefore, normally, the stepping motor 23 operates with the same drive current as the previous time, and the time required for origin search does not become long. However, when an error occurs in the stepping motor driving device, it is judged whether or not the error is due to the step-out of the stepping motor 23, and only in the case of the error due to the step-out, the stepping motor 23 shown in FIGS. The process shifts to the out-of-step detection initial process.

【0038】また、ステッピングモータ駆動装置の電源
がオフの時には、現在の設定信号s1〜s3をBBM2
9に格納し、そのまま保持する。なお、上記実施例にお
いて、ステッピングモータ23の脱調によるエラーか否
かの判断は、ステッピングモータ23の作動中において
所定のタイミングで行われる。例えば、プリンタ装置に
おいては、印字中の所定のタイミングでステッピングモ
ータ23をあらかじめ設定したパルスだけ駆動して印字
ヘッド21を往復動させ、戻った位置をホームポジショ
ンセンサ15によってチェックする方法をとる。この脱
調によるエラーか否かの判断は、各種の方法によって行
うことができる。
When the power of the stepping motor driving device is off, the current setting signals s1 to s3 are set to BBM2.
9 and stores it as it is. In the above embodiment, the determination as to whether or not there is an error due to step-out of the stepping motor 23 is made at a predetermined timing while the stepping motor 23 is operating. For example, in the printer device, the stepping motor 23 is driven by a preset pulse at a predetermined timing during printing to reciprocate the print head 21, and the home position sensor 15 checks the returned position. The determination as to whether or not this is an error due to step-out can be performed by various methods.

【0039】また、上記実施例においては、エラー発生
時にのみ駆動電流の再設定を行うが、他の要因で行うよ
うにしてもよい。図12は本発明の第2の実施例におけ
るフローチャートである。 ステップS31 設定信号s1〜s3をBBM29から
DRAM28に読み出す。 ステップS32 レジスタNの値で電流値を設定する。 ステップS33 ステッピングモータ23の動作が開始
しているか否かを判断する。 ステップS34 エラーが発生したか否かを判断する。
エラーが発生した場合はステップS35に、発生してい
ない場合はステップS38に進む。 ステップS35 ステッピングモータ23の脱調による
エラーか否かの判断を行い、ステッピングモータ23の
脱調によるエラーの場合はステップS37に、他のエラ
ーの場合はステップS36に進む。 ステップS36 エラー処理を行う。 ステップS37 図9及び図10のステッピングモータ
23の脱調検出イニシャル処理を行う。 ステップS38 電源がオフか否かを判断する。オンの
場合はステップS33に、オフの場合はステップS39
に進む。 ステップS39 現在の設定信号s1〜s3をBBM2
9に書き込む。
In the above embodiment, the drive current is reset only when an error occurs, but it may be reset by another factor. FIG. 12 is a flow chart in the second embodiment of the present invention. Step S31 The setting signals s1 to s3 are read from the BBM 29 to the DRAM 28. In step S32, the current value is set by the value of the register N. In step S33, it is determined whether or not the operation of the stepping motor 23 has started. In step S34, it is determined whether an error has occurred.
If an error has occurred, the process proceeds to step S35, and if not, the process proceeds to step S38. Step S35: It is judged whether or not there is an error due to step-out of the stepping motor 23. If the error is due to the step-out of the stepping motor 23, step S37 follows. If there is another error, step S36 follows. In step S36, error processing is performed. Step S37 The step-out detection initial process of the stepping motor 23 of FIGS. 9 and 10 is performed. In step S38, it is determined whether the power is off. If it is on, the process goes to step S33, and if it is off, the process goes to step S39.
Proceed to. In step S39, the current setting signals s1 to s3 are set to BBM2.
Write to 9.

【0040】次に、周囲温度などの温度条件が変化した
場合におけるステッピングモータ23の電流設定方法に
ついて説明する。図13は本発明の第3の実施例が適用
されるプリンタ装置のブロック図である。図において、
11はCPU、12はメモリ、13は出力ポート、14
は該出力ポート13から設定信号s1〜s3を受け、該
設定信号s1〜s3に対応する電流をステッピングモー
タ23(図8)のコイルLn に流す電流値可変回路であ
る。上記設定信号s1〜s3は、CPU11からのI/
O命令などによってラッチ出力される。17はプログラ
ム書込みFD媒体、18はディスク駆動装置である。上
記設定信号s1〜s3を、CPU11からの出力によら
ず、プログラム書込みFD媒体17に格納されたプログ
ラムによって変更することができる。31はプリンタ装
置の周囲温度を検出するための周囲温度検出回路、32
は該周囲温度検出回路31に接続された入力ポートであ
る。上記周囲温度検出回路31は、検出した温度に対応
して信号TEMPA−N〜TEMPC−Nを出力する。
Next, a method of setting the current of the stepping motor 23 when the temperature condition such as the ambient temperature changes will be described. FIG. 13 is a block diagram of a printer device to which the third embodiment of the present invention is applied. In the figure,
11 is a CPU, 12 is a memory, 13 is an output port, 14
Is a current value variable circuit which receives the setting signals s1 to s3 from the output port 13 and causes a current corresponding to the setting signals s1 to s3 to flow through the coil L n of the stepping motor 23 (FIG. 8). The setting signals s1 to s3 are I / O signals from the CPU 11.
Latch output by an O command or the like. Reference numeral 17 is a program writing FD medium, and 18 is a disk drive device. The setting signals s1 to s3 can be changed by the program stored in the program writing FD medium 17 regardless of the output from the CPU 11. Reference numeral 31 denotes an ambient temperature detection circuit for detecting the ambient temperature of the printer device, and 32.
Is an input port connected to the ambient temperature detection circuit 31. The ambient temperature detection circuit 31 outputs signals TEMPA-N to TEMPC-N corresponding to the detected temperature.

【0041】図14は周囲温度検出回路の回路図、図1
5はサーミスタの温度特性図、図16は周囲温度とコン
パレータから出力される信号の関係を示す図である。図
14において、THは周囲温度を検出して抵抗を変える
サーミスタ、RAは上記サーミスタTHで電圧V1 の分
圧VA を得るための抵抗、RB〜REは基準電圧VB
D を得るための抵抗、COM1〜COM3は分圧VA
と各基準電圧VB 〜VD を比較するためのコンパレータ
である。
FIG. 14 is a circuit diagram of an ambient temperature detecting circuit, FIG.
5 is a temperature characteristic diagram of the thermistor, and FIG. 16 is a diagram showing the relationship between the ambient temperature and the signal output from the comparator. In FIG. 14, TH is a thermistor that changes the resistance by detecting the ambient temperature, RA is a resistance for obtaining the divided voltage V A of the voltage V 1 by the thermistor TH, and RB to RE are reference voltages V B to.
Resistors for obtaining V D , COM1 to COM3 are partial pressures VA
And a reference voltage V B to V D.

【0042】上記構成の周囲温度検出回路31におい
て、上記サーミスタTHは温度によって抵抗値を変化さ
せることを特徴とするデバイスであり、一般的に図15
に示すように低温下で高抵抗に、高温下で低抵抗になる
ように変化する。上記コンパレータCOM1〜COM3
の負極側に入力される上記分圧VA は、サーミスタの抵
抗値をx〔Ω〕、電源の電圧をV1 とすると、 VA =x・V1 /(x+RA) となる。それに対し、コンパレータCOM1の正極側に
入力される基準電圧VB は VB =(RE+RD+RC)V1 /(RE+RD+RC+RB) となる。そして、周囲温度が高い時は抵抗値xが低くな
るため、 VA <VB となり、コンパレータCOM1の出力側の信号TEMP
A−Nはハイレベルとなる。そして、周囲温度が低くな
り、抵抗値xが徐々に高くなると、 VA >VB となり、信号TEMPA−Nはローレベルに変化する。
以上の動作は他のコンパレータCOM2,COM3の場
合も同じであり、COM1〜COM3の出力が変化する
時の温度をA〔°C〕,B〔°C〕,C〔°C〕(A<
B<C)とすると、図16に示すような信号TEMPA
−N〜TEMPC−Nが得られる。なお、該信号TEM
PA−N〜TEMPC−Nは、入力ポート32に割り付
けられ、CPU11によって任意に検出することができ
る。
In the ambient temperature detecting circuit 31 having the above structure, the thermistor TH is a device whose resistance value changes according to temperature, and is generally a device shown in FIG.
As shown in, the resistance changes to high resistance at low temperature and low resistance at high temperature. The comparators COM1 to COM3
When the resistance value of the thermistor is x [Ω] and the voltage of the power source is V 1 , the partial voltage V A input to the negative electrode side of the above becomes VA = x · V 1 / (x + RA). On the other hand, the reference voltage V B input to the positive side of the comparator COM1 is V B = (RE + RD + RC) V 1 / (RE + RD + RC + RB). Then, when the ambient temperature is high, the resistance value x becomes low, so that V A <V B , and the signal TEMP on the output side of the comparator COM1 is obtained.
An becomes high level. Then, the ambient temperature is low, the resistance value x increases gradually, V A> V B, and the signal TEMPA-N is changed to a low level.
The above operation is the same for the other comparators COM2 and COM3, and the temperatures when the outputs of COM1 to COM3 change are A [° C], B [° C], C [° C] (A <
If B <C), the signal TEMPA as shown in FIG.
-N to TEMPC-N are obtained. The signal TEM
PA-N to TEMPC-N are assigned to the input port 32 and can be arbitrarily detected by the CPU 11.

【0043】上記構成のプリンタ装置においては、ま
ず、CPU11は、ステッピングモータ23(図8)の
駆動動作を開始する前に、周囲の温度を検出し、図16
に示すように温度を4段階に区分する。そして、CPU
11は各段階に応じてI/O命令などによって駆動電流
の設定信号s1〜s3を出力する。なお、上記実施例に
おいては、周囲温度が低いほど駆動電流の設定値を高く
している。これは、ステッピングモータ23の油の粘性
などによるメカ的負荷は、低温になるにつれて大きくな
ることを前提にしており、その時の負荷の状況によって
設定を変えることができる。
In the printer device having the above-described structure, first, the CPU 11 detects the ambient temperature before starting the driving operation of the stepping motor 23 (FIG. 8),
As shown in, the temperature is divided into four stages. And CPU
Reference numeral 11 outputs drive current setting signals s1 to s3 in response to an I / O command or the like in accordance with each stage. In the above embodiment, the lower the ambient temperature, the higher the set value of the drive current. This is premised on that the mechanical load due to the viscosity of the oil of the stepping motor 23 increases as the temperature decreases, and the setting can be changed depending on the load condition at that time.

【0044】図17は本発明の第3の実施例におけるフ
ローチャートである。 ステップS41 ステッピングモータ23の動作が開始
されたか否かを判断する。 ステップS42 周囲の温度を検出する。 ステップS43 周囲の温度がA°C以下か否かを判断
する。A°C以下の場合はステップ44に、A°Cより
高い場合はステップS45に進む。 ステップS44 設定信号s1〜s3をハイレベルにす
る。 ステップS45 周囲の温度がA〜B°Cか否かを判断
する。A〜B°Cの場合はステップS46に、B°Cよ
り高い場合はステップS47に進む。 ステップS46 設定信号s1,s2をハイレベルに、
設定信号s3をローレベルにする。 ステップS47 周囲の温度がB〜C°Cか否かを判断
する。B〜C°Cの場合はステップS48に、C°Cよ
り高い場合は、ステップS49に進む。 ステップS48 設定信号s1をハイレベルに、設定信
号s1,s2をローレベルにする。 ステップS49 設定信号s1〜s3をローレベルにし
てステッピングモータ23を動作させる。
FIG. 17 is a flow chart in the third embodiment of the present invention. In step S41, it is determined whether or not the operation of the stepping motor 23 has started. In step S42, the ambient temperature is detected. In step S43, it is determined whether the ambient temperature is A ° C or lower. When it is lower than A ° C, the process proceeds to step 44, and when it is higher than A ° C, the process proceeds to step S45. In step S44, the setting signals s1 to s3 are set to high level. In step S45, it is determined whether the ambient temperature is A to B ° C. If A to B ° C, the process proceeds to step S46, and if higher than B ° C, the process proceeds to step S47. Step S46: Set the setting signals s1 and s2 to high level,
The setting signal s3 is set to low level. In step S47, it is determined whether the ambient temperature is B to C ° C. If it is B to C ° C, the process proceeds to step S48, and if it is higher than C ° C, the process proceeds to step S49. In step S48, the setting signal s1 is set to high level and the setting signals s1 and s2 are set to low level. In step S49, the setting signals s1 to s3 are set to low level to operate the stepping motor 23.

【0045】次に、ステッピングモータを磁気ヘッド駆
動装置に使用した場合について説明する。図18は本発
明の第4の実施例が適用される磁気ヘッド駆動装置の概
略図、図19は本発明の第4の実施例が適用される磁気
ヘッド駆動装置のブロック図である。
Next, the case where the stepping motor is used in the magnetic head driving device will be described. FIG. 18 is a schematic diagram of a magnetic head drive device to which the fourth embodiment of the present invention is applied, and FIG. 19 is a block diagram of a magnetic head drive device to which the fourth embodiment of the present invention is applied.

【0046】図18において、41は磁気ヘッド機構、
42は該磁気ヘッド機構41を移動させるためのステッ
ピングモータ、43は駆動ベルト、44は該駆動ベルト
43を介して上記ステッピングモータ42の回転を受け
て回転する駆動連結回転棒である。該駆動連結回転棒4
4には、ねじが形成されていて、上記磁気ヘッド機構4
1と噛合する。45は該駆動連結回転棒44に平行に配
設され、上記磁気ヘッド機構41を水平方向に案内する
固定軸棒、46は光学センサで構成されるホームポジシ
ョンセンサ(HPS)、47は光学センサで構成される
リアマージンセンサ(RMS)である。
In FIG. 18, 41 is a magnetic head mechanism,
42 is a stepping motor for moving the magnetic head mechanism 41, 43 is a drive belt, and 44 is a drive connecting rotary rod which is rotated by the rotation of the stepping motor 42 via the drive belt 43. The drive connecting rotary rod 4
A screw is formed on the magnetic head mechanism 4
Mesh with 1. Reference numeral 45 designates a fixed shaft rod which is arranged in parallel with the drive connecting rotary rod 44 and which guides the magnetic head mechanism 41 in the horizontal direction, 46 designates a home position sensor (HPS) constituted by an optical sensor, and 47 designates an optical sensor. A configured rear margin sensor (RMS).

【0047】上記構成の磁気ヘッド駆動装置において、
ステッピングモータ42が駆動ベルト43を介して駆動
連結回転棒44を回転させると、磁気ヘッド機構41が
水平方向に移動する。ここで、上記磁気ヘッド機構41
は水平方向にAB間を移動し、AからBまで移動する間
にライト動作を、BからAまで移動する間にリード動作
を行うようになっている。また、B側の動作リミッタ地
点には、ホームポジションセンサ46があり、A側の動
作リミッタ地点には、リアマージンセンサ47が設けら
れている。したがって、ライト動作又はリード動作にお
けるステッピングモータ42の動作の開始時と終了時に
おいては、ホームポジションセンサ46又はリアマージ
ンセンサ47が必ずオンになる。
In the magnetic head driving device having the above structure,
When the stepping motor 42 rotates the drive connecting rotary rod 44 via the drive belt 43, the magnetic head mechanism 41 moves in the horizontal direction. Here, the magnetic head mechanism 41
Moves horizontally between AB, and performs a write operation while moving from A to B and a read operation while moving from B to A. A home position sensor 46 is provided at the operation limiter point on the B side, and a rear margin sensor 47 is provided at the operation limiter point on the A side. Therefore, the home position sensor 46 or the rear margin sensor 47 is always turned on at the start and end of the operation of the stepping motor 42 in the write operation or the read operation.

【0048】ところで、ステッピングモータ42の負荷
トルクは、磁気ヘッド機構41と駆動連結回転棒44間
の摩擦力、及び磁気ヘッド機構41と固定軸棒45間の
摩擦力に影響されることが多く、磁気ヘッド機構41の
往復動作回数が多くなると、バリなどが削られることに
よって上記二つの摩擦力は小さくなる。すなわち、磁気
ヘッド機構41の往復動作の少ない時にステッピングモ
ータ42の駆動電流を設定すると、使用を繰り返してい
る間に磁気ヘッド機構41の摩擦力が減少してステッピ
ングモータ42の負荷トルクが減少し、駆動電流が過剰
になって、騒音、振動を発生させることがある。
By the way, the load torque of the stepping motor 42 is often influenced by the frictional force between the magnetic head mechanism 41 and the drive coupling rotary rod 44 and the frictional force between the magnetic head mechanism 41 and the fixed shaft rod 45. When the number of reciprocating operations of the magnetic head mechanism 41 increases, burrs and the like are scraped off, so that the two frictional forces become smaller. That is, when the drive current of the stepping motor 42 is set when the magnetic head mechanism 41 has few reciprocating movements, the frictional force of the magnetic head mechanism 41 decreases during repeated use, and the load torque of the stepping motor 42 decreases. Excessive drive current may cause noise and vibration.

【0049】そこで、磁気ヘッド機構41の往復動作回
数に対応してステッピングモータ42の駆動電流の設定
値を変更する。図19において、46は磁気ヘッド機構
41のホームポジションを検出するためのホームポジシ
ョンセンサ、47は磁気ヘッド機構41のリアマージン
を検出するためのリアマージンセンサ、51はCPU、
53は出力ポート、54は該出力ポート53から設定信
号s1〜s3を受け、該設定信号s1〜s3に対応する
電流をステッピングモータ42のコイルLn に流す電流
値可変回路である。上記設定信号s1〜s3は、CPU
51からのI/O命令などによってラッチ出力される。
57は入力ポート、58はプログラム書込みFD媒体、
59はディスク駆動装置である。上記設定信号s1〜s
3を、CPU51からの出力によらず、プログラム書込
みFD媒体58に格納されたプログラムによって変更す
ることができる。61はレジスタを有するDRAM、6
2は電源をオフにした場合でも記憶可能なBBM(バッ
テリバックアップメモリ)であり、リチウム電池などを
有している。該BBM62は、磁気ヘッド機構41が通
過した総回数を格納する。
Therefore, the set value of the drive current of the stepping motor 42 is changed according to the number of reciprocating operations of the magnetic head mechanism 41. In FIG. 19, 46 is a home position sensor for detecting the home position of the magnetic head mechanism 41, 47 is a rear margin sensor for detecting the rear margin of the magnetic head mechanism 41, 51 is a CPU,
Reference numeral 53 is an output port, and 54 is a current value variable circuit which receives the setting signals s1 to s3 from the output port 53 and causes a current corresponding to the setting signals s1 to s3 to flow through the coil L n of the stepping motor 42. The setting signals s1 to s3 are the CPU
It is latched and output by the I / O command from 51.
57 is an input port, 58 is a program writing FD medium,
Reference numeral 59 is a disk drive device. The setting signals s1 to s
3 can be changed by the program stored in the program writing FD medium 58 regardless of the output from the CPU 51. 61 is a DRAM having a register, 6
Reference numeral 2 denotes a BBM (battery backup memory) that can be stored even when the power is turned off, and has a lithium battery or the like. The BBM 62 stores the total number of times the magnetic head mechanism 41 has passed.

【0050】上記構成の磁気ヘッド駆動装置において、
まず、電源の立上げによって磁気ヘッド機構41がホー
ムポジションセンサ46又はリアマージンセンサ47を
通過した総回数nをBBM62から読み出し、DRAM
61にマッピングされたレジスタNに格納する。次に、
ステッピングモータ42が動作を開始すると、そのレジ
スタNの内容、すなわち総回数nの値を判断し、総回数
nが1000回以下、1000〜3000回、3000
回〜10000回、及び10000回より多い回数に区
分し、各区分に対応して設定信号(s1,s2,s3)
を(H,H,H),(H,H,L),(H,L,L),
(L,L,L)のように変更し、駆動電流を設定する。
この場合、総回数nの値が大きくなるほど駆動電流は小
さくされる。なお、上記実施例においては、総回数nの
値を1000,3000及び10000で区分している
が、磁気ヘッド機構41の摩耗量などに対応して適宜変
更することができる。
In the magnetic head driving device having the above structure,
First, the total number n of times the magnetic head mechanism 41 has passed the home position sensor 46 or the rear margin sensor 47 due to the start-up of the power supply is read from the BBM 62, and the DRAM is read.
It stores in the register N mapped to 61. next,
When the stepping motor 42 starts operating, the content of the register N, that is, the value of the total number n is judged, and the total number n is 1000 times or less, 1000 to 3000 times, 3000 times.
Set signals (s1, s2, s3) corresponding to each division by dividing into 1 to 10000 times and more than 10000 times.
(H, H, H), (H, H, L), (H, L, L),
Change as (L, L, L) and set the drive current.
In this case, the larger the total number n, the smaller the drive current. In the above embodiment, the value of the total number of times n is divided into 1000, 3000, and 10000, but it can be appropriately changed depending on the wear amount of the magnetic head mechanism 41.

【0051】次に、ステッピングモータ42を起動す
る。磁気ヘッド機構41が最初の位置から逆側に移動し
てホームポジションセンサ46又はリアマージンセンサ
47がオンすると、そこでレジスタNの総回数nの値を
一つアップする。すなわち、レジスタNの総回数nの値
は磁気ヘッド機構41が片方向に移動するたびに1アッ
プする。そして、ステッピングモータ42の動作が完了
すると、DRAM61のレジスタNの内容をBBM62
に書き込み、次の処理に移る。
Next, the stepping motor 42 is activated. When the magnetic head mechanism 41 moves from the initial position to the opposite side and the home position sensor 46 or the rear margin sensor 47 is turned on, the value of the total number n of the register N is increased by one. That is, the value of the total number n of the register N is incremented by 1 each time the magnetic head mechanism 41 moves in one direction. Then, when the operation of the stepping motor 42 is completed, the contents of the register N of the DRAM 61 is changed to the BBM 62.
, And move on to the next processing.

【0052】図20は本発明の第4の実施例における第
1のフローチャート、図21は本発明の第4の実施例に
おける第2のフローチャートである。 ステップS50 電源を立ち上げる。 ステップS51 ホームポジションセンサ46又はリア
マージンセンサ47を通過した総回数nをBBM62か
らDRAM61に読み出す。 ステップS52 ステッピングモータ42の動作が開始
されたか否かを判断する。 ステップS53 総回数nが1000回以下か否かを判
断する。1000回以下の場合はステップS54に、1
000回より多い場合はステップS55に進む。 ステップS54 設定信号s1〜s3をハイレベルにす
る。 ステップS55 総回数nが3000回以下か否かを判
断する。3000回以下の場合はステップS56に、3
000回より多い場合はステップS57に進む。 ステップS56 設定信号s1,s2をハイレベルに、
設定信号s3をローレベルにする。 ステップS57 総回数nが10000回以下か否かを
判断する。10000回以下の場合はステップS58
に、10000回より多い場合はステップS59に進
む。 ステップS58 設定信号s1をハイレベルに、設定信
号s2,s3をローレベルにする。 ステップS59 設定信号s1〜s3をローレベルにす
る。 ステップS60 ホームポジションセンサ46がオフか
否かを判断する。オフの場合はステップS61に、オン
の場合はステップS62に進む。 ステップS61,S62 ステッピングモータ42を起
動する。 ステップS63 ホームポジションセンサ46がオンか
否かを判断する。 ステップS64 リアマージンセンサ47がオンか否か
を判断する。 ステップS65 総回数nを1アップする。 ステップS66 ステッピングモータ42の動作が完了
したか否かを判断する。完了している場合はステップS
67に、動作中の場合はステップS53に進む。 ステップS67 ホームポジションセンサ46又はリア
マージンセンサ47を通過した総回数nをDRAM61
からBBM62に書き込み、次の処理へ進む。
FIG. 20 is a first flow chart in the fourth embodiment of the present invention, and FIG. 21 is a second flow chart in the fourth embodiment of the present invention. Step S50 Turn on the power supply. In step S51, the total number n of passes of the home position sensor 46 or the rear margin sensor 47 is read from the BBM 62 to the DRAM 61. In step S52, it is determined whether the operation of the stepping motor 42 has started. In step S53, it is determined whether the total number n is 1000 or less. If it is 1000 times or less, 1 in step S54.
If it is more than 000 times, the process proceeds to step S55. In step S54, the setting signals s1 to s3 are set to high level. In step S55, it is determined whether the total number n is 3000 or less. If it is 3000 times or less, go to step S56
If it is more than 000 times, the process proceeds to step S57. Step S56: Set signals s1 and s2 to high level,
The setting signal s3 is set to low level. In step S57, it is determined whether the total number n is 10,000 or less. If 10,000 times or less, step S58
If it is more than 10,000 times, the process proceeds to step S59. In step S58, the setting signal s1 is set to high level and the setting signals s2 and s3 are set to low level. In step S59, the setting signals s1 to s3 are set to low level. In step S60, it is determined whether the home position sensor 46 is off. If it is off, the process proceeds to step S61, and if it is on, the process proceeds to step S62. Steps S61 and S62 Start the stepping motor 42. In step S63, it is determined whether the home position sensor 46 is on. In step S64, it is determined whether the rear margin sensor 47 is on. Step S65 The total number n is incremented by 1. In step S66, it is determined whether or not the operation of the stepping motor 42 is completed. Step S if completed
If 67, the process proceeds to step S53. In step S67, the total number of times n of passing the home position sensor 46 or the rear margin sensor 47 is calculated by the DRAM 61.
To BBM62 and proceed to the next processing.

【0053】なお、本発明は上記実施例に限定されるも
のではなく、本発明の趣旨に基づいて種々変形すること
が可能であり、これらを本発明の範囲から排除するもの
ではない。
The present invention is not limited to the above embodiments, but various modifications can be made based on the spirit of the present invention, and these are not excluded from the scope of the present invention.

【0054】[0054]

【発明の効果】以上詳細に説明したように、第1の発明
によれば、ステッピングモータの駆動電流を適正なもの
に設定するために、最初に駆動電流を小さくし、該駆動
電流によってステッピングモータをあらかじめ設定され
たパルス数だけ動作させ、動作チェックを行う。そし
て、該動作チェックによってステッピングモータが脱調
しているか否かを判断し、駆動電流を大きくするように
している。
As described above in detail, according to the first aspect of the invention, in order to set the drive current of the stepping motor to an appropriate value, the drive current is first reduced and the stepping motor is driven by the drive current. Is operated for a preset number of pulses to check the operation. Then, by the operation check, it is determined whether or not the stepping motor is out of step, and the drive current is increased.

【0055】したがって、適正な駆動電流が設定される
ため、騒音や振動が発生するのを防止することができ、
電流が無駄に流れることがなく、電源の電流容量を小さ
くすることができる。また、脱調することがなくなる。
第2の発明においては、電源立上げ時に、前回の電源オ
フ時における設定信号をバッテリバックアップメモリか
ら読み出し、該設定信号に対応する駆動電流の設定値で
ステッピングモータを駆動する。電源立上げ後、ステッ
ピングモータの脱調によるエラーが発生した場合にのみ
駆動電流の再設定を行うようにしているので、電源立上
げ後の処理時間を短くすることができる。
Therefore, since an appropriate drive current is set, it is possible to prevent noise and vibration from occurring.
The current does not flow unnecessarily, and the current capacity of the power supply can be reduced. Also, there is no step out.
According to the second aspect of the present invention, when the power is turned on, the setting signal when the power was turned off last time is read from the battery backup memory, and the stepping motor is driven by the set value of the drive current corresponding to the setting signal. After the power is turned on, the drive current is reset only when an error occurs due to stepping out of the stepping motor, so that the processing time after the power is turned on can be shortened.

【0056】第3の発明においては、ステッピングモー
タの周囲温度を検出し、該周囲温度に対応して上記設定
信号を変更し、該設定信号に対応する基準電圧を選択し
て駆動電流の設定値を求める。周囲温度が変わると、そ
れに対応した適正な駆動電流が設定される。したがっ
て、メカ的負荷が小さい高温時などにおいて大きい駆動
電流を流すことがなくなり、電流が無駄に流れることが
なくなる。
In the third invention, the ambient temperature of the stepping motor is detected, the setting signal is changed according to the ambient temperature, and the reference voltage corresponding to the setting signal is selected to set the drive current. Ask for. When the ambient temperature changes, an appropriate drive current corresponding to it changes. Therefore, a large drive current does not flow when the mechanical load is small and the temperature is high, and the current does not wastefully flow.

【0057】第4の発明においては、所定位置にセンサ
を配設しておき、該センサをステッピングモータによっ
て駆動される部材が通過した通過回数を計数する。そし
て、該通過回数を積算して総回数を求め、該総回数の値
に対応して駆動電流の設定値を求める。したがって、ス
テッピングモータが搭載された装置の使用程度に応じた
適正な駆動電流を設定することができる。
In the fourth aspect of the invention, the sensor is arranged at a predetermined position, and the number of times the member driven by the stepping motor has passed through the sensor is counted. Then, the number of times of passage is integrated to obtain the total number of times, and the set value of the drive current is obtained corresponding to the value of the total number of times. Therefore, it is possible to set an appropriate drive current according to the degree of use of the device equipped with the stepping motor.

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

【図1】本発明のステッピングモータの電流設定方法が
適用される電流値可変回路図である。
FIG. 1 is a current value variable circuit diagram to which a stepping motor current setting method of the present invention is applied.

【図2】2電源駆動方法を示す図である。FIG. 2 is a diagram showing a dual power supply driving method.

【図3】2電源駆動方法のタイムチャートである。FIG. 3 is a time chart of a dual power supply driving method.

【図4】定電流チョッパ駆動方法を示す図である。FIG. 4 is a diagram showing a constant current chopper driving method.

【図5】定電流チョッパ駆動方法におけるタイムチャー
トである。
FIG. 5 is a time chart in a constant current chopper driving method.

【図6】本発明のステッピングモータの電流設定方法が
適用されるステッピングモータ駆動装置のブロック図で
ある。
FIG. 6 is a block diagram of a stepping motor drive device to which the method for setting a current of a stepping motor according to the present invention is applied.

【図7】設定信号に対応する電流の大小比較図である。FIG. 7 is a magnitude comparison diagram of currents corresponding to setting signals.

【図8】キャリッジ駆動装置を示す図である。FIG. 8 is a diagram showing a carriage driving device.

【図9】本発明のステッピングモータの電流設定方法の
第1のフローチャートである。
FIG. 9 is a first flowchart of a stepping motor current setting method of the present invention.

【図10】本発明のステッピングモータの電流設定方法
の第2のフローチャートである。
FIG. 10 is a second flowchart of the method for setting the current of the stepping motor of the present invention.

【図11】本発明の第2の実施例が適用されるステッピ
ングモータ駆動装置のブロック図である。
FIG. 11 is a block diagram of a stepping motor drive device to which a second embodiment of the present invention is applied.

【図12】本発明の第2の実施例におけるフローチャー
トである。
FIG. 12 is a flowchart in the second embodiment of the present invention.

【図13】本発明の第3の実施例が適用されるプリンタ
装置のブロック図である。
FIG. 13 is a block diagram of a printer device to which a third embodiment of the present invention is applied.

【図14】周囲温度検出回路の回路図である。FIG. 14 is a circuit diagram of an ambient temperature detection circuit.

【図15】サーミスタの温度特性図である。FIG. 15 is a temperature characteristic diagram of the thermistor.

【図16】周囲温度とコンパレータから出力される信号
の関係を示す図である。
FIG. 16 is a diagram showing a relationship between ambient temperature and a signal output from a comparator.

【図17】本発明の第3の実施例におけるフローチャー
トである。
FIG. 17 is a flowchart in the third embodiment of the present invention.

【図18】本発明の第4の実施例が適用される磁気ヘッ
ド駆動装置の概略図である。
FIG. 18 is a schematic diagram of a magnetic head drive device to which a fourth embodiment of the present invention is applied.

【図19】本発明の第4の実施例が適用される磁気ヘッ
ド駆動装置のブロック図である。
FIG. 19 is a block diagram of a magnetic head driving device to which a fourth embodiment of the present invention is applied.

【図20】本発明の第4の実施例における第1のフロー
チャートである。
FIG. 20 is a first flowchart in the fourth embodiment of the present invention.

【図21】本発明の第4の実施例における第2のフロー
チャートである。
FIG. 21 is a second flowchart according to the fourth embodiment of the present invention.

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

23,42 ステッピングモータ 29,62 BBM(バッテリバックアップメモリ) COM,COM1〜COM3 コンパレータ Ln コイル VREF ,VB 〜VD 基準電圧 s1〜s3 設定信号23,42 Stepping motor 29,62 BBM (battery backup memory) COM, COM1 to COM3 Comparator L n coil V REF , V B to V D Reference voltage s1 to s3 Setting signal

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 コイルに流れる電流を検出して得られる
検出電圧と、基準電圧をコンパレータによって比較し、
かつ、該基準電圧を上記コンパレータの出力に対応して
変更することによってコイルに流れる電流を一定にする
ステッピングモータの電流設定方法において、 (a)設定信号を変更することによって上記基準電圧を
複数個選択可能とし、 (b)上記基準電圧を変更して駆動電流を順次大きく
し、 (c)各駆動電流であらかじめ設定されたパルス数によ
るステッピングモータの動作を行い、 (d)上記動作が終了するごとに、動作チェックを行っ
てステッピングモータが脱調しているか否かを判断し、 (e)脱調している場合に、上記駆動電流を大きくして
ステッピングモータの動作を繰り返し、 (f)脱調しない状態になった時の駆動電流の限界値に
基づいて、ステッピングモータの駆動電流の設定値を求
めることを特徴とするステッピングモータの電流設定方
法。
1. A comparator compares a detection voltage obtained by detecting a current flowing through a coil with a reference voltage,
In addition, in a method of setting a current of a stepping motor in which a current flowing through a coil is made constant by changing the reference voltage corresponding to an output of the comparator, (a) a plurality of the reference voltages are changed by changing a setting signal. Selectable, (b) the reference voltage is changed to increase the drive current sequentially, (c) the stepping motor is operated with a preset number of pulses at each drive current, and (d) the above operation is completed. Each time, an operation check is performed to determine whether or not the stepping motor is out of step. (E) If the stepping motor is out of step, the drive current is increased and the operation of the stepping motor is repeated, (f) A stepping step characterized in that the set value of the drive current of the stepping motor is obtained based on the limit value of the drive current when the step-out state is not reached. Current method of setting the Gumota.
【請求項2】 コイルに流れる電流を検出して得られる
検出電圧と、基準電圧をコンパレータによって比較し、
かつ、該基準電圧を上記コンパレータの出力に対応して
変更することによってコイルに流れる電流を一定にする
ステッピングモータの電流設定方法において、 (a)設定信号を変更することによって上記基準電圧を
複数個選択可能とし、 (b)電源立上げ時に、前回の電源オフ時における上記
設定信号をバッテリバックアップメモリから読み出し、
該設定信号に対応する駆動電流の設定値でステッピング
モータを駆動し、 (c)電源立上げ後、ステッピングモータの脱調による
エラーが発生した場合に上記基準電圧を変更して駆動電
流を順次大きくし、 (d)各駆動電流であらかじめ設定されたパルス数によ
るステッピングモータの動作を行い、 (e)上記動作が終了するごとに、動作チェックを行っ
てステッピングモータが脱調しているか否かを判断し、 (f)脱調している場合に、上記駆動電流を大きくして
ステッピングモータの動作を繰り返し、 (g)脱調しない状態になった時の駆動電流の限界値に
基づいて、ステッピングモータの駆動電流の設定値を求
め、 (h)電源オフ時に、現在の設定信号をバッテリバック
アップメモリに格納することを特徴とするステッピング
モータの電流設定方法。
2. A comparator compares the detected voltage obtained by detecting the current flowing through the coil with a reference voltage,
In addition, in a method of setting a current of a stepping motor in which a current flowing through a coil is made constant by changing the reference voltage corresponding to an output of the comparator, (a) a plurality of the reference voltages are changed by changing a setting signal. Selectable, (b) at power-on, read the above setting signal from the previous power-off from the battery backup memory,
The stepping motor is driven by the set value of the drive current corresponding to the set signal, and (c) after the power is turned on, when an error occurs due to step-out of the stepping motor, the reference voltage is changed to increase the drive current sequentially. Then, (d) the stepping motor is operated with a preset number of pulses at each drive current, and (e) each time the above operation is completed, an operation check is performed to check whether the stepping motor is out of step. (F) Stepping motor operation is repeated by increasing the drive current when step out is performed, and (g) Stepping is performed based on the limit value of drive current when step out is not achieved. The stepping mode is characterized in that the set value of the motor drive current is obtained, and (h) the current setting signal is stored in the battery backup memory when the power is turned off. The method of the current setting.
【請求項3】 コイルに流れる電流を検出して得られる
検出電圧と、基準電圧をコンパレータによって比較し、
かつ、該基準電圧を上記コンパレータの出力に対応して
変更することによってコイルに流れる電流を一定にする
ステッピングモータの電流設定方法において、 (a)設定信号を変更することによって上記基準電圧を
複数個選択可能とし、 (b)ステッピングモータの周囲温度を検出し、 (c)該周囲温度に対応して上記設定信号を変更し、該
設定信号に対応する基準電圧を選択して駆動電流の設定
値を求めることを特徴とするステッピングモータの電流
設定方法。
3. A comparator compares a reference voltage with a detection voltage obtained by detecting a current flowing through the coil,
In addition, in a method of setting a current of a stepping motor in which a current flowing through a coil is made constant by changing the reference voltage corresponding to an output of the comparator, (a) a plurality of the reference voltages are changed by changing a setting signal. Selectable, (b) the ambient temperature of the stepping motor is detected, (c) the setting signal is changed according to the ambient temperature, and the reference voltage corresponding to the setting signal is selected to set the drive current. A stepping motor current setting method, characterized by:
【請求項4】 コイルに流れる電流を検出して得られる
検出電圧と、基準電圧をコンパレータによって比較し、
かつ、該基準電圧を上記コンパレータの出力に対応して
変更することによってコイルに流れる電流を一定にする
ステッピングモータの電流設定方法において、 (a)設定信号を変更することによって上記基準電圧を
複数個選択可能とし、 (b)設定位置に配設されたセンサをステッピングモー
タによって移動させられる部材が通過した通過回数を計
数し、 (c)上記通過回数を積算して、バッテリバックアップ
メモリに総回数として格納し、 (d)該総回数の値に対応して上記設定信号を変更し、
該設定信号に対応する基準電圧を選択して駆動電流の設
定値を求めることを特徴とするステッピングモータの電
流設定方法。
4. A comparator compares a reference voltage with a detection voltage obtained by detecting a current flowing through the coil,
In addition, in a method of setting a current of a stepping motor in which a current flowing through a coil is made constant by changing the reference voltage corresponding to an output of the comparator, (a) a plurality of the reference voltages are changed by changing a setting signal. It is selectable, (b) the number of times the member moved by the stepping motor passes through the sensor arranged at the set position is counted, and (c) the above-mentioned number of times of passage is integrated, and the total number is stored in the battery backup memory. Storing, (d) changing the setting signal according to the value of the total number of times,
A stepping motor current setting method, characterized in that a reference voltage corresponding to the set signal is selected to obtain a set value of a drive current.
JP3210793A 1991-08-22 1991-08-22 Current setting method for stepping motor Withdrawn JPH0556690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3210793A JPH0556690A (en) 1991-08-22 1991-08-22 Current setting method for stepping motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3210793A JPH0556690A (en) 1991-08-22 1991-08-22 Current setting method for stepping motor

Publications (1)

Publication Number Publication Date
JPH0556690A true JPH0556690A (en) 1993-03-05

Family

ID=16595228

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3210793A Withdrawn JPH0556690A (en) 1991-08-22 1991-08-22 Current setting method for stepping motor

Country Status (1)

Country Link
JP (1) JPH0556690A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0969453A1 (en) * 1998-07-03 2000-01-05 Deutsche Thomson-Brandt GmbH Fast and precise positioning of a reading and/or writing head in a data player and/or recorder
US6870701B2 (en) 2000-07-14 2005-03-22 Rohm Co., Ltd. Motor driving device and disk device
US6911800B2 (en) 2002-09-06 2005-06-28 Ricoh Company, Ltd. Stepping motor controller, scanning apparatus, and image forming apparatus
US7342690B2 (en) 2003-03-17 2008-03-11 Kabushiki Kaisha Toshiba Method and apparatus for reading image
JP2009201340A (en) * 2008-01-21 2009-09-03 Ricoh Co Ltd Stepping motor drive controller, sheet member post-treatment device, stepping motor inspection device, stepping motor inspection system, and method of detecting step-out of stepping motor
JP2009289344A (en) * 2008-05-29 2009-12-10 Sharp Corp Drive control device, drive control method, and optical pickup apparatus
CN112913342A (en) * 2018-12-07 2021-06-04 株式会社富士 Unit management device and unit management method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0969453A1 (en) * 1998-07-03 2000-01-05 Deutsche Thomson-Brandt GmbH Fast and precise positioning of a reading and/or writing head in a data player and/or recorder
WO2000002198A1 (en) * 1998-07-03 2000-01-13 Deutsche Thomson Brandt Gmbh Fast and precise positioning of a reading and/or writing head in a data player and/or recorder
US6873577B1 (en) 1998-07-03 2005-03-29 Thomson Licensing S.A. Optical head position control for optical recording device
US6870701B2 (en) 2000-07-14 2005-03-22 Rohm Co., Ltd. Motor driving device and disk device
US6911800B2 (en) 2002-09-06 2005-06-28 Ricoh Company, Ltd. Stepping motor controller, scanning apparatus, and image forming apparatus
US7342690B2 (en) 2003-03-17 2008-03-11 Kabushiki Kaisha Toshiba Method and apparatus for reading image
JP2009201340A (en) * 2008-01-21 2009-09-03 Ricoh Co Ltd Stepping motor drive controller, sheet member post-treatment device, stepping motor inspection device, stepping motor inspection system, and method of detecting step-out of stepping motor
JP2009289344A (en) * 2008-05-29 2009-12-10 Sharp Corp Drive control device, drive control method, and optical pickup apparatus
CN112913342A (en) * 2018-12-07 2021-06-04 株式会社富士 Unit management device and unit management method
CN112913342B (en) * 2018-12-07 2022-11-18 株式会社富士 Unit management device and unit management method

Similar Documents

Publication Publication Date Title
US6901012B2 (en) Semiconductor memory device having a power-on reset circuit
EP0452497B1 (en) Carriage controller of a printer
JP2001282371A (en) Voltage regulator
JPH0556690A (en) Current setting method for stepping motor
JPS6128516B2 (en)
US6995946B2 (en) Temperature compensation of seek profiles in data storage devices
US20040036439A1 (en) Apparatus and method of controlling a stepper motor
US3988652A (en) Stabilized brushless motor drive circuit
US5625268A (en) Stepping motor drive unit
JP2987824B2 (en) Ultrasonic motor drive circuit
US5621288A (en) Motor speed regulating circuit with starter and storage medium drive using the same
JPS6156715B2 (en)
JPH0778471A (en) Semiconductor integrated circuit
JP4082792B2 (en) Charge pump circuit
US6057978A (en) Disk driving device selectively using delayed step pulses
US5856889A (en) Magnetic data recording apparatus using pulse position modulation
JPH06296378A (en) Drive circuit of ultrasonic motor
JPH04319504A (en) Disk device
JP2009005546A (en) Control circuit of motor rotation, drive unit for movement, and control method of motor rotation
JPS6142351B2 (en)
JPH07219021A (en) Magnetic recorder for camera
JP2727497B2 (en) DC motor controller
JP2788830B2 (en) Thermal head
JP2849465B2 (en) Paper feed control device
JP4612662B2 (en) Ultrasonic motor drive controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981112