JP3112876B2 - Driving device and method for stepping motor, printer device using this driving device, and driving method therefor - Google Patents
Driving device and method for stepping motor, printer device using this driving device, and driving method thereforInfo
- Publication number
- JP3112876B2 JP3112876B2 JP32470897A JP32470897A JP3112876B2 JP 3112876 B2 JP3112876 B2 JP 3112876B2 JP 32470897 A JP32470897 A JP 32470897A JP 32470897 A JP32470897 A JP 32470897A JP 3112876 B2 JP3112876 B2 JP 3112876B2
- Authority
- JP
- Japan
- Prior art keywords
- clutch
- stepping motor
- motor
- buffer register
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 40
- 230000008569 process Effects 0.000 claims description 27
- 230000001133 acceleration Effects 0.000 claims description 14
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000006073 displacement reaction Methods 0.000 description 3
- RRLHMJHRFMHVNM-BQVXCWBNSA-N [(2s,3r,6r)-6-[5-[5-hydroxy-3-(4-hydroxyphenyl)-4-oxochromen-7-yl]oxypentoxy]-2-methyl-3,6-dihydro-2h-pyran-3-yl] acetate Chemical compound C1=C[C@@H](OC(C)=O)[C@H](C)O[C@H]1OCCCCCOC1=CC(O)=C2C(=O)C(C=3C=CC(O)=CC=3)=COC2=C1 RRLHMJHRFMHVNM-BQVXCWBNSA-N 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 101100524645 Toxoplasma gondii ROM5 gene Proteins 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005284 excitation Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Landscapes
- Connection Of Motors, Electrical Generators, Mechanical Devices, And The Like (AREA)
- Handling Of Sheets (AREA)
- Control Of Stepping Motors (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、クラッチを用いた
ステッピングモータの駆動装置に関し、特にプリンタ装
置、複写機、ファックス等に用いられるステッピングモ
ータの駆動装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a driving device for a stepping motor using a clutch, and more particularly to a driving device for a stepping motor used in a printer, a copying machine, a facsimile and the like.
【0002】[0002]
【従来の技術】プリンタ装置の給紙ローラをクラッチを
介してステッピングモータで駆動することが多い。ま
た、特開平−68884号公報には、ステッピングモー
タにクラッチ機構を介してフライホールを接続するプリ
ンタ用キャリッジ機構が記載されている。2. Description of the Related Art In many cases, a paper feed roller of a printer is driven by a stepping motor via a clutch. Further, Japanese Patent Application Laid-Open No. Hei 68884 describes a printer carriage mechanism for connecting a flyhole to a stepping motor via a clutch mechanism.
【0003】従来、このようにステッピングモータによ
りクラッチを介して給紙ローラ等を駆動する場合は、ス
テッピングモータの脱調を防ぐために、ステッピングモ
ータが停止中のみにクラッチの接続、切り離しを行い、
必ずクラッチを入れてから(接続してから)ステッピン
グモータを起動し、ステッピングモータが停止してから
クラッチを切り離すようにしていた。すなわち、ステッ
ピングモータの回転中にクラッチの接続、切り離しはで
きなかった。Conventionally, when a paper feed roller or the like is driven by a stepping motor via a clutch as described above, the clutch is connected and disconnected only when the stepping motor is stopped in order to prevent the stepping motor from falling out of synchronization.
The stepping motor was always started after the clutch was engaged (after connection), and the clutch was disconnected after the stepping motor stopped. That is, the clutch could not be connected or disconnected while the stepping motor was rotating.
【0004】[0004]
【発明が解決しようとする課題】従来のステッピングモ
ータの駆動装置は、ステッピングモータの回転中にクラ
ッチを入れたり、切り離したりすることができないとい
う問題点があった。The conventional driving device for a stepping motor has a problem that the clutch cannot be engaged or disengaged while the stepping motor is rotating.
【0005】その理由は、ステッピングモータの回転中
にクラッチを入れたり、切り離したりすると、ステッピ
ングモータの脱調を生じやすいからである。[0005] The reason is that if the clutch is engaged or disengaged while the stepping motor is rotating, the stepping motor tends to lose synchronism.
【0006】本発明は、ステッピングモータに連結され
たクラッチの接続/切り離しの切り換えをステッピング
モータの回転中に行っても脱調が生じないステッピング
モータの駆動装置および方法を提供し、クラッチの切り
換え前に従来、必要であったステッピングモータの減速
時間を排除することを目的とする。SUMMARY OF THE INVENTION The present invention provides a stepping motor driving apparatus and method which does not cause a step out even if switching of connection / disconnection of a clutch connected to the stepping motor is performed during rotation of the stepping motor. It is another object of the present invention to eliminate a stepping motor deceleration time which is conventionally required.
【0007】[0007]
【課題を解決するための手段】本発明のステッピングモ
ータの駆動方法は、ステッピングモータ(図1の2)
と、このステッピングモータの出力軸に連結されたクラ
ッチ(図1の3)と、前記ステッピングモータに出力す
るための相パターンを格納するモータ用バッファレジス
タ(図1の7)と、前記クラッチの接続/切り離し状態
を指示するためのクラッチ信号を格納するクラッチ用バ
ッファレジスタ(図1の9)と、格納している相パター
ンが前記ステッピングモータに出力されているモータ用
出力ラッチ(図1の8)と、格納しているクラッチ信号
が前記クラッチに出力されているクラッチ用出力ラッチ
(図1の10)とを含み、前記モータ用バッファレジス
タに格納されていた相パターンを前記モータ用出力ラッ
チに取り込むのと同時に、前記クラッチ用バッファレジ
スタに格納されていたクラッチ信号を前記クラッチ用出
力レジスタに取り込むことを特徴とし、プリンタ装置の
給紙用ローラを前記クラッチを介して前記ステッピング
モータに接続することができる。A method of driving a stepping motor according to the present invention comprises a stepping motor (2 in FIG. 1).
A clutch (3 in FIG. 1) connected to the output shaft of the stepping motor, a motor buffer register (7 in FIG. 1) for storing a phase pattern to be output to the stepping motor, and connection of the clutch. / A clutch buffer register (9 in FIG. 1) for storing a clutch signal for indicating a disconnection state, and a motor output latch (8 in FIG. 1) in which a stored phase pattern is output to the stepping motor. And a clutch output latch (10 in FIG. 1) in which a stored clutch signal is output to the clutch, and the phase pattern stored in the motor buffer register is taken into the motor output latch. At the same time, the clutch signal stored in the clutch buffer register is transferred to the clutch output register. Characterized by Mukoto, a paper feeding roller of the printer device via the clutch can be connected to the stepping motor.
【0008】本発明のステッピングモータの駆動方法
は、ステッピングモータ(図1の2)に接続されたクラ
ッチ(図1の3)の接続/切り離し状態を指示するクラ
ッチ信号の切り換えを前記ステッピングモータに出力す
る相パターンを切り換えるのと同時に行うことを特徴と
する。According to the method of driving a stepping motor of the present invention, a switching of a clutch signal for instructing a connection / disconnection state of a clutch (3 in FIG. 1) connected to the stepping motor (2 in FIG. 1) is output to the stepping motor. It is performed simultaneously with switching of the phase pattern to be performed.
【0009】本発明のステッピングモータの駆動装置
は、ステッピングモータ(図1の2)と、このステッピ
ングモータの出力軸に連結されたクラッチ(図1の3)
と、前記ステッピングモータに出力するための相パター
ンを格納するモータ用バッファレジスタ(図1の7)
と、前記クラッチの接続/切り離し状態を指示するため
のクラッチ信号を格納するクラッチ用バッファレジスタ
(図1の9)と、格納している相パターンが前記ステッ
ピングモータに出力されているモータ用出力ラッチ(図
1の8)と、格納しているクラッチ信号が前記クラッチ
に出力されているクラッチ用出力ラッチ(図1の10)
と、中央処理装置(図1の1)とを備え、前記中央処理
装置はステッピングモータ割り込みスタート(図2の2
1)を指示されるとステッピングモータ割り込み処理を
実行し、前記クラッチを接続するときはクラッチON要
求フラグをONにする処理(図2の23)を実行し、前
記クラッチを切り離すときは前記クラッチON要求フラ
グをOFFにする処理(図2の25)を実行し、前記ス
テッピングモータ割り込み処理の実行において前記クラ
ッチON要求フラグがONであれば前記クラッチ用バッ
ファレジスタに前記クラッチを接続させるクラッチ信号
を送出し(図3の32)、前記クラッチON要求フラグ
がOFFであれば前記クラッチ用バッファレジスタに前
記クラッチを切り離すクラッチ信号を送出してから(図
3の33)、予め設定された相パターンを前記モータ用
バッファレジスタに送出する加速処理(図3の35)、
定速処理(巣3の36)または減速処理(図3の37)
を実行し、この後に前記モータ用出力ラッチおよび前記
クラッチ用出力ラッチに前記モータ用バッファレジスタ
および前記クラッチ用バッファレジスタに格納されてい
る相パターンおよびクラッチ信号を同時に取り込ませ、
さらに前記加速処理、前記定速処理または前記減速処理
ごとに予め設定されたパルス時間の経過後、次のステッ
プモータ割り込み処理を実行することを繰り返すことを
特徴とする。 A driving device for a stepping motor according to the present invention.
Is a stepping motor (2 in FIG. 1) and a clutch (3 in FIG. 1) connected to an output shaft of the stepping motor.
And a motor buffer register (7 in FIG. 1) for storing a phase pattern to be output to the stepping motor.
A clutch buffer register (9 in FIG. 1) for storing a clutch signal for instructing a connection / disconnection state of the clutch; and a motor output latch for outputting a stored phase pattern to the stepping motor. (8 in FIG. 1) and a clutch output latch (10 in FIG. 1) in which a stored clutch signal is output to the clutch.
And a central processing unit (1 in FIG. 1). The central processing unit starts the stepping motor interrupt (2 in FIG. 2).
1) Run is instructed to the stepping motor interrupt processing, when connecting the clutch performs the processing of the ON clutch ON request flag (23 in FIG. 2), the clutch ON when disconnecting the clutch A process for turning off the request flag (25 in FIG. 2) is executed, and if the clutch ON request flag is ON in the execution of the stepping motor interrupt process, a clutch signal for connecting the clutch is sent to the clutch buffer register. If the clutch ON request flag is OFF (FIG. 3), a clutch signal for disengaging the clutch is sent to the clutch buffer register (33 in FIG. 3), and the preset phase pattern is changed to the above. Acceleration processing to be sent to the motor buffer register (35 in FIG. 3),
Constant speed processing (36 of nest 3) or deceleration processing (37 of FIG. 3)
After that, the motor output latch and the clutch output latch simultaneously capture the phase pattern and the clutch signal stored in the motor buffer register and the clutch buffer register,
Further, after a pulse time set in advance for each of the acceleration processing, the constant speed processing, or the deceleration processing, execution of the next step motor interrupt processing is repeated.
【0010】前記クラッチを介して前記ステッピングモ
ータに接続したプリンタ装置の給紙ローラを上述のステ
ッピングモータの駆動方法を用いて駆動することができ
る。The paper feed roller of the printer connected to the stepping motor via the clutch can be driven by using the above-described stepping motor driving method.
【0011】[0011]
【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。Next, embodiments of the present invention will be described with reference to the drawings.
【0012】図1は、本発明の実施の形態のステッピン
グモータの駆動装置のブロック図である。FIG. 1 is a block diagram of a driving device for a stepping motor according to an embodiment of the present invention.
【0013】図1において、CPU(中央処理装置)1
は、ROM(リードオンリーメモリ)4およびRAM
(ランダムアクセスメモリ)5に接続され、R0M4お
よびRAM5に格納されたプログラムに制御される。ま
た、CPU1は、内部バス6を介してモータ用バッファ
レジスタ7およびクラッチ用バッファレジスタ9に接続
され、モータ用バッファレジスタ7は、モータ用出力ラ
ッチ8に接続され、クラッチ用バッファレジスタ9は、
クラッチ用出力ラッチ10に接続されている。In FIG. 1, a CPU (central processing unit) 1
Are ROM (Read Only Memory) 4 and RAM
(Random access memory) 5 and is controlled by a program stored in R0M4 and RAM5. The CPU 1 is connected to the motor buffer register 7 and the clutch buffer register 9 via the internal bus 6, the motor buffer register 7 is connected to the motor output latch 8, and the clutch buffer register 9
It is connected to the clutch output latch 10.
【0014】ステッピングモータ2は、4相で、クラッ
チ3を介して給紙ローラ(図示略)を駆動するものであ
る。出力ラッチ8、10は、それぞれステッピングモー
タ2、クラッチ3の駆動回路(図示略)に接続されてい
る。The stepping motor 2 drives a paper feed roller (not shown) via the clutch 3 in four phases. The output latches 8 and 10 are connected to drive circuits (not shown) for the stepping motor 2 and the clutch 3, respectively.
【0015】CPU1は、ステッピングモータ2の各相
に印加するパルスを表す相パターンを出力し、ステッピ
ングモータ2は、この相パターンをモータ用出力ラッチ
8等を介して受けて回転する。クラッチ3もCPU1が
出力するON/OFFからなるクラッチ信号をクラッチ
用出力ラッチ10等を介して受けて接続、切り離しを行
う。The CPU 1 outputs a phase pattern representing a pulse applied to each phase of the stepping motor 2, and the stepping motor 2 receives this phase pattern via the motor output latch 8 and rotates. The clutch 3 is also connected and disconnected by receiving a clutch signal composed of ON / OFF output from the CPU 1 via the clutch output latch 10 or the like.
【0016】CPU1は、リアルタイム出力機能とマク
ロサービス機能を用い、ステッピングモータ2に加速、
定速、減速回転を行わせる。加速、定速、減速回転時の
ステッピングモータ2の各相に逐次、切り替えて与える
パルスからなる相パターンおよびこの相パターンを切り
替える出力タイミングを予め設定してROM4またはR
AM5に格納しておく。The CPU 1 uses a real-time output function and a macro service function to accelerate the stepping motor 2,
Perform constant speed and deceleration rotation. The ROM 4 or the ROM 4 is set in advance by setting in advance a phase pattern consisting of pulses to be sequentially switched and applied to each phase of the stepping motor 2 at the time of acceleration, constant speed, and deceleration rotation.
It is stored in AM5.
【0017】ステッピングモータ2を回転させる時は、
そのためのマクロサービスを起動する。マクロサービス
機能により、予め設定しておいた出力タイミングで設定
しておいた相パターンがCPU1から出力され内部バス
6を通り、モータ用バッファレジスタ7に格納される。When rotating the stepping motor 2,
Start the macro service for that. By the macro service function, a phase pattern set at a preset output timing is output from the CPU 1, passes through the internal bus 6, and is stored in the motor buffer register 7.
【0018】モータ用バッファレジスタ7からは、リア
ルタイム出力機能により設定したタイミングで相パター
ンが出力ラッチ8に転送され、ステッピングモータ2の
駆動回路に印加される。マクロサービス機能およびリア
ルタイム機能の2つの機能を使うことで、特別にプログ
ラムを作成することなくステッピングモータ2を回転、
停止させることができる。The phase pattern is transferred from the motor buffer register 7 to the output latch 8 at the timing set by the real-time output function, and is applied to the drive circuit of the stepping motor 2. By using the macro service function and the real-time function, the stepping motor 2 can be rotated without creating a special program.
Can be stopped.
【0019】図2は、図1のステッピングモータ2で給
紙ローラを回転させるプリンタ装置の動作を示すフロー
チャートである。FIG. 2 is a flowchart showing the operation of the printer for rotating the paper feed roller by the stepping motor 2 of FIG.
【0020】図2において、まずCPU1にステッピン
グモータ割り込みスタート(ステップ21)を指示する
と、図3に示すステッピングモータ割り込みがマクロサ
ービス機能により実行され、図2に示すプリンタ装置の
メイン部の動作とは関係なく、予め設定したタイミング
で図3のステッピングモータ割り込みが実行される。In FIG. 2, when the CPU 1 is instructed to start a stepping motor interrupt (step 21), the stepping motor interrupt shown in FIG. 3 is executed by the macro service function, and the operation of the main part of the printer shown in FIG. Regardless, the stepping motor interrupt of FIG. 3 is executed at a preset timing.
【0021】一方、図3のステッピングモータ割り込み
とは独立に図2のメイン部の処理が実行され、ステッピ
ングモータ割り込みスタートのステップ21の次に印刷
開始処理(ステップ22)が実行され、印刷するための
準備が行われる。On the other hand, the processing of the main section of FIG. 2 is executed independently of the stepping motor interrupt of FIG. 3, and the printing start processing (step 22) is executed after the step 21 of the stepping motor interrupt start to print. Preparations are made.
【0022】次に、RAM5の所定のアドレス等に記憶
されるクラッチON要求フラグをONの状態にする(ス
テップ23)。この後に図3のステッピングモータ割り
込みが実行されると、クラッチ3が接続されて給紙ロー
ラが回転し、プリンタ装置の用紙供給部から用紙を印刷
部へ送る(ステップ24)。Next, the clutch ON request flag stored at a predetermined address or the like in the RAM 5 is turned ON (step 23). Thereafter, when the stepping motor interrupt of FIG. 3 is executed, the clutch 3 is connected, the paper feed roller rotates, and the paper is fed from the paper supply unit of the printer to the printing unit (step 24).
【0023】次に、一定時間後、クラッチON要求フラ
グをOFFの状態にする(ステップ25)。この後に図
3のステッピングモータ割り込みが実行されるとクラッ
チ3が切り離され、給紙ローラが停止する。次に印刷処
理(ステップ26)を実行する。Next, after a predetermined time, the clutch ON request flag is turned off (step 25). Thereafter, when the stepping motor interrupt of FIG. 3 is executed, the clutch 3 is disengaged, and the sheet feeding roller stops. Next, a printing process (step 26) is executed.
【0024】ステップ23〜ステップ26を給紙して印
刷を行うごとに繰り返す。Steps 23 to 26 are repeated each time paper is fed and printed.
【0025】また、1まとまりの文書の印刷が完了し、
給紙が不要となったときには、ステッピングモータ2を
減速の後、停止させるモータ停止処理を実行する。Further, printing of a set of documents is completed,
When paper feeding becomes unnecessary, a motor stop process for stopping the stepping motor 2 after deceleration is executed.
【0026】次に、図3に示すステッピングモータ割り
込みの動作を説明する。Next, the operation of the stepping motor interrupt shown in FIG. 3 will be described.
【0027】図2中のステッピングモータ割り込みスタ
ート(ステップ21)を受けて、または後述のステップ
35、36または37で決定されたタイミングでステッ
ピングモータ割り込みを開始し、クラッチON要求フラ
グの状態を調べ(ステップ31)、ONの状態であれ
ば、クラッチ3を接続させるためのクラッチONの信号
を内部バス6を介してバッファレジスタ9に出力し(ス
テップ32)、OFFの状態であればクラッチ3を切り
離すためのクラッチOFFの信号を内部バス6を介して
バッファレジスタ9に出力する(ステップ33)。In response to the stepping motor interrupt start (step 21) in FIG. 2, or at the timing determined in step 35, 36 or 37 described later, the stepping motor interrupt is started and the state of the clutch ON request flag is checked ( Step 31) If ON, a clutch ON signal for connecting the clutch 3 is output to the buffer register 9 via the internal bus 6 (Step 32), and if OFF, the clutch 3 is disconnected. Is output to the buffer register 9 via the internal bus 6 (step 33).
【0028】次に、ステッピングモータ2の駆動状態が
加速、定速または減速のいずれかであるかを判断し(ス
テップ34)、加速であれば加速処理(ステップ35)
を実行し、定速であれば定速処理(ステップ36)を実
行し、減速であれば減速処理(ステップ37)を実行す
る。Next, it is determined whether the driving state of the stepping motor 2 is acceleration, constant speed or deceleration (step 34). If it is acceleration, acceleration processing (step 35)
If the speed is constant, a constant speed process (step 36) is executed. If the speed is decelerated, a deceleration process (step 37) is executed.
【0029】ステップ21のステッピングモータ割り込
みスタートを受けた時のステッピングモータ割り込みの
実行は、ステッピングモータ2を起動するときであり、
ステップ35の加速処理を実行する。その後、ステッピ
ングモータ割り込みを繰り返し実行してステッピングモ
ータ2を駆動加速して、予め設定した速度にステッピン
グモータ2の回転が達したならば、ステップ36の定速
処理を実行する。ステッピングモータ2を停止させるた
めに減速するときは、ステップ37の減速処理を実行す
る。The execution of the stepping motor interrupt when receiving the stepping motor interrupt start in step 21 is when the stepping motor 2 is started.
The acceleration processing of step 35 is executed. Thereafter, the stepping motor interrupt is repeatedly executed to drive and accelerate the stepping motor 2, and when the rotation of the stepping motor 2 reaches a preset speed, the constant speed process of step 36 is executed. When decelerating to stop the stepping motor 2, a deceleration process of step 37 is executed.
【0030】ステップ35〜37の加速、定速および減
速処理では、CPU1は、内部バス6を介してバッファ
レジスタ7に相パターンを送出し、出力ラッチ8がステ
ッピングモータ2の駆動回路に相パターンを送出するよ
うにする。この相パターンは、図4に示すような信号切
換時にいずれかの相の信号が切り換わる4相のステッピ
ングモータ用の周知のパルス信号の組み合わせで、これ
を予め設定しておく。相パターンは、信号切換時ごとに
順次に変化する。ステップ35〜37の処理ごとにCP
U1は、直前のステッピングモータ割り込みのステップ
35〜37の処理時の相パターンの次の相パターンを送
出し、ステッピングモータ割り込みを複数回、連続して
行うことにより、ステッピングモータ2に図4のような
波形群からなる駆動パルスが印加されるようにする。In the acceleration, constant speed and deceleration processes in steps 35 to 37, the CPU 1 sends the phase pattern to the buffer register 7 via the internal bus 6, and the output latch 8 sends the phase pattern to the drive circuit of the stepping motor 2. Send it out. This phase pattern is a combination of well-known pulse signals for a four-phase stepping motor in which a signal of any phase is switched at the time of signal switching as shown in FIG. 4 and is set in advance. The phase pattern changes sequentially each time the signal is switched. CP for each processing of steps 35 to 37
U1 sends the phase pattern next to the phase pattern at the time of the processing of steps 35 to 37 of the immediately preceding stepping motor interrupt, and continuously executes the stepping motor interrupt a plurality of times, so that the stepping motor 2 as shown in FIG. Drive pulses composed of various waveform groups are applied.
【0031】以後、ステップ35〜37の処理が終了し
てから予め設定された時間(これをパルス時間と言う)
が経過してから再度、ステッピングモータ割り込みを実
行することを繰り返していく。Thereafter, a preset time (this is called a pulse time) after the processing of steps 35 to 37 is completed.
After step elapses, the stepping motor interrupt is executed again.
【0032】ステッピングモータ2の相パターンを切り
換えるタイミングとして、ステップ36の定速処理に対
しては、一定のパルス時間を設定しておき、ステップ3
5の加速処理に対しては、順次に短くなるパルス時間の
列を設定しておき、ステップ37の減速処理に対して
は、順次に長くなるパルス時間の列を設定しておく。As a timing for switching the phase pattern of the stepping motor 2, a fixed pulse time is set for the constant speed process in step 36, and a step 3 is performed.
For the acceleration process of No. 5, a sequence of pulse times that becomes shorter in sequence is set, and for the deceleration process of Step 37, a sequence of pulse times that becomes longer in sequence is set.
【0033】ステップ36の定速処理を実行した時は、
常に定速処理に対し設定された一定のパルス時間を用い
る。ステップ35の加速処理を実行した時は、次のステ
ップモータ割り込みの実行のために、直前のステッピン
グモータ割り込み時に用いたステップ時間に対する加速
処理用に設定されたパルス時間列における次のパルス時
間(より短いパルス時間)を用いる。ステップ37の減
速処理を実行した時は、次のステップモータ割り込みの
実行のために、直前のステッピングモータ割り込み時に
用いたステップ時間に対する減速処理用に設定されたパ
ルス時間列における次のパルス時間(より長いパルス時
間)を用いる。When the constant speed process of step 36 is executed,
A constant pulse time set for constant speed processing is always used. When the acceleration process of step 35 is executed, the next pulse time in the pulse time train set for the acceleration process with respect to the step time used at the time of the previous stepping motor interrupt is executed to execute the next step motor interrupt. (Short pulse times). When the deceleration process in step 37 is executed, the next pulse time in the pulse time train set for the deceleration process with respect to the step time used at the time of the immediately preceding stepping motor interrupt is executed to execute the next step motor interrupt. Long pulse times).
【0034】ステップ35〜37の処理を実行した直後
にCPU1は、出力ラッチ8、10にラッチ信号が入力
されるようにし、バッファレジスタ7、9に格納されて
いる相パターンおよびONまたはOFFのクラッチ信号
を出力ラッチ8、10に取り込ませ、これらの相パター
ンおよびクラッチONまたはOFFの信号がステップモ
ータ2およびクラッチ3の駆動回路に印加されるように
する。Immediately after executing the processing of steps 35 to 37, the CPU 1 causes the latch signals to be input to the output latches 8 and 10, and sets the phase patterns stored in the buffer registers 7 and 9 and the ON or OFF clutch. The signals are taken into the output latches 8 and 10 so that the phase patterns and the clutch ON or OFF signals are applied to the drive circuits of the step motor 2 and the clutch 3.
【0035】上述のラッチ信号により、相パターンとク
ラッチONおよびOFF信号が出力ラッチ8、10に同
時に取り込まれるため、ステップ23でクラッチON要
求フラグONを実行した時、またはステップ25のクラ
ッチON要求フラグOFFを実行した時は、図4に示す
ようにステッピングモータ2およびクラッチ3の駆動回
路に印加される相パターンおよびクラッチ信号が同時に
切り換えられ、クラッチ3の接続または切り離しの切り
換えがステッピングモータ2の駆動パルスの切り換えと
同時に行われるようになる。Since the phase pattern and the clutch ON and OFF signals are simultaneously taken into the output latches 8 and 10 by the above-mentioned latch signal, when the clutch ON request flag is turned on in step 23 or the clutch ON request flag is turned on in step 25, When the OFF operation is performed, the phase pattern and the clutch signal applied to the drive circuits of the stepping motor 2 and the clutch 3 are simultaneously switched as shown in FIG. It is performed simultaneously with the switching of the pulse.
【0036】このようにクラッチ3の切り換えをステッ
ピングモータ2の駆動パルスの切り換えと同時に行うこ
とにより、ステッピングモータ2の脱調が防止できるこ
とを図5を用いて説明する。図5において、ステッピン
グモータ2の励磁コイル41が設けられたステータ歯4
0とロータ歯43との間の磁力線42を示している。The step-out of the stepping motor 2 can be prevented by performing the switching of the clutch 3 at the same time as the switching of the drive pulse of the stepping motor 2 as described with reference to FIG. In FIG. 5, the stator teeth 4 provided with the excitation coil 41 of the stepping motor 2 are shown.
The magnetic field lines 42 between 0 and the rotor teeth 43 are shown.
【0037】図5(a)は、ステッピングモータ2のス
テータ歯40とロータ歯43との間に変位xが生じてい
て、変位xを0にする方向の磁気力(トルク)Fが発生
している状態を示している。この状態でクラッチ3を切
り離しの状態から接続の状態に切り換えると、ステッピ
ングモータ2に負荷がいきなりかかり、トルクが即座に
変化し、脱調し易くなる。FIG. 5A shows that a displacement x is generated between the stator teeth 40 and the rotor teeth 43 of the stepping motor 2 and a magnetic force (torque) F is generated in a direction to make the displacement x zero. It shows the state where it is. In this state, when the clutch 3 is switched from the disengaged state to the connected state, a load is suddenly applied to the stepping motor 2, the torque is changed immediately, and the stepping-out is easily performed.
【0038】しかし、相パターンを切り換えるのと同時
にクラッチ3を切り離しから接続の状態に切り換える
と、図5(b)に示す変位xが0で、磁気力が0の状態
でクラッチ3を切り換えることになり、トルクは即座に
変化しない。従って、前者よりも後者の方がステッピン
グモータ2は、脱調しにくくなる。However, when the clutch 3 is switched from the disengaged state to the connected state at the same time as the phase pattern is switched, the clutch 3 is switched when the displacement x shown in FIG. 5B is 0 and the magnetic force is 0. And the torque does not change immediately. Therefore, the latter is less likely to lose synchronism in the latter than in the former.
【0039】以上のことを利用して、本発明では、ステ
ッピングモータ2の回転中でも脱調を起こさないクラッ
チの切り換えを可能にしている。By utilizing the above, in the present invention, it is possible to switch the clutch without step-out even while the stepping motor 2 is rotating.
【0040】なお、以上の説明でCPU1およびモータ
用バッファレジスタ7もモータ用出力ラッチ8と同様
に、ステップモータ1の各相に印加するパルスの組み合
わせからなる相パターンを出力し、格納するものとして
あるが、これらは相パターンの代わりに相パターンを表
すコード等からなる相データをCPU1が出力し、モー
タ用バッファレジスタ7に格納するようにし、この相デ
ータを相パターンに変換してモータ用出力ラッチ8に送
出することもできるのは言うまでもない。In the above description, similarly to the motor output latch 8, the CPU 1 and the motor buffer register 7 output and store a phase pattern composed of a combination of pulses applied to each phase of the step motor 1. However, in these, the CPU 1 outputs phase data consisting of codes representing the phase pattern instead of the phase pattern, and stores the phase data in the motor buffer register 7. The phase data is converted into the phase pattern and output to the motor. Needless to say, the data can be sent to the latch 8.
【0041】[0041]
【発明の効果】本発明の効果は、ステッピングモータに
連結されたクラッチの接続/切り離しをこのステッピン
グモータの回転中に切り換えることができることであ
る。従って、クラッチを入れる前にステッピングモータ
を停止させておく必要が無く、クラッチを介してステッ
ピングモータに接続したローラ等の減速、停止のための
時間が短縮される。The effect of the present invention is that the connection / disconnection of the clutch connected to the stepping motor can be switched during the rotation of the stepping motor. Therefore, there is no need to stop the stepping motor before the clutch is engaged, and the time for deceleration and stop of the rollers and the like connected to the stepping motor via the clutch is reduced.
【0042】その理由は、クラッチの接続/切り離しの
切り換えをステッピングモータの相パターンの切り換え
と同時に行うことにより、ステッピングモータの脱調を
防止しているからである。The reason is that the switching of the connection / disconnection of the clutch is performed simultaneously with the switching of the phase pattern of the stepping motor, thereby preventing the stepping motor from stepping out.
【図1】本発明の実施の形態のステッピングモータの駆
動装置のブロック図である。FIG. 1 is a block diagram of a driving device for a stepping motor according to an embodiment of the present invention.
【図2】図1中のステッピングモータ2で給紙ローラを
駆動するプリンタ装置の動作を示すフローチャートであ
る。FIG. 2 is a flowchart illustrating an operation of a printer device that drives a paper feed roller by a stepping motor 2 in FIG.
【図3】図2中のステップ21のステッピングモータ割
り込みスタートを受けて実行されるステッピングモータ
割り込みの処理を示すフローチャートである。FIG. 3 is a flowchart showing a stepping motor interrupt process executed in response to a stepping motor interrupt start in step 21 in FIG. 2;
【図4】図1中のステッピングモータ2に印加される駆
動パルスを示す波形図である。FIG. 4 is a waveform diagram showing a drive pulse applied to a stepping motor 2 in FIG.
【図5】ステッピングモータのトルク発生の原理を示す
図である。FIG. 5 is a diagram illustrating the principle of torque generation of a stepping motor.
1 CPU 2 ステッピングモータ 3 クラッチ 4 ROM 5 RAM 6 内部バス 7 モータ用バッファレジスタ 8 モータ用出力ラッチ 9 クラッチ用バッファレジスタ 10 クラッチ用出力ラッチ 40 ステータ歯 41 励磁コイル 42 磁力線 43 ロータ歯 DESCRIPTION OF SYMBOLS 1 CPU 2 Stepping motor 3 Clutch 4 ROM5 RAM 6 Internal bus 7 Motor buffer register 8 Motor output latch 9 Clutch buffer register 10 Clutch output latch 40 Stator tooth 41 Exciting coil 42 Magnetic field line 43 Rotor tooth
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H02P 8/00 H02P 15/00 B41J 11/42 B65H 23/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int. Cl. 7 , DB name) H02P 8/00 H02P 15/00 B41J 11/42 B65H 23/00
Claims (7)
グモータの出力軸に連結されたクラッチと、前記ステッ
ピングモータに出力するための相パターンを格納するモ
ータ用バッファレジスタと、前記クラッチの接続/切り
離し状態を指示するためのクラッチ信号を格納するクラ
ッチ用バッファレジスタと、格納している相パターンが
前記ステッピングモータに出力されているモータ用出力
ラッチと、格納しているクラッチ信号が前記クラッチに
出力されているクラッチ用出力ラッチとを含み、前記モ
ータ用バッファレジスタに格納されていた相パターンを
前記モータ用出力ラッチに取り込むのと同時に、前記ク
ラッチ用バッファレジスタに格納されていたクラッチ信
号を前記クラッチ用出力レジスタに取り込むことを特徴
とするステッピングモータの駆動装置。1. A stepping motor, a clutch connected to an output shaft of the stepping motor, a motor buffer register for storing a phase pattern to be output to the stepping motor, and an indication of a connection / disconnection state of the clutch. A clutch buffer register for storing a clutch signal for performing the operation, a motor output latch for outputting a stored phase pattern to the stepping motor, and a clutch for outputting a stored clutch signal to the clutch. Output latch, and the phase pattern stored in the motor buffer register is taken into the motor output latch, and at the same time, the clutch signal stored in the clutch buffer register is transferred to the clutch output register. Stepping characterized by capturing Motor drive.
チの接続/切り離し状態を指示するクラッチ信号の切り
換えを前記ステッピングモータに出力する相パターンを
切り換えるのと同時に行うことを特徴とするステッピン
グモータの駆動方法。2. A method for driving a stepping motor, wherein switching of a clutch signal for instructing a connection / disconnection state of a clutch connected to the stepping motor is performed simultaneously with switching of a phase pattern output to the stepping motor.
グモータの出力軸に連結されたクラッチと、前記ステッ
ピングモータに出力するための相パターンを格納するモ
ータ用バッファレジスタと、前記クラッチの接続/切り
離し状態を指示するためのクラッチ信号を格納するクラ
ッチ用バッファレジスタと、格納している相パターンが
前記ステッピングモータに出力されているモータ用出力
ラッチと、格納しているクラッチ信号が前記クラッチに
出力されているクラッチ用出力ラッチと、中央処理装置
とを備え、前記中央処理装置はステッピングモータ割り
込みスタートを指示されるとステッピングモータ割り込
み処理を実行し、前記クラッチを接続するときはクラッ
チON要求フラグをONにする処理を実行し、前記クラ
ッチを切り離すときは前記クラッチON要求フラグをO
FFにする処理を実行し、前記ステッピングモータ割り
込み処理の実行において前記クラッチON要求フラグが
ONであれば前記クラッチ用バッファレジスタに前記ク
ラッチを接続させるクラッチ信号を送出し、前記クラッ
チON要求フラグがOFFであれば前記クラッチ用バッ
ファレジスタに前記クラッチを切り離すクラッチ信号を
送出してから、予め設定された相パターンを前記モータ
用バッファレジスタに送出する加速処理、定速処理また
は減速処理を実行し、この後に前記モータ用出力ラッチ
および前記クラッチ用出力ラッチに前記モータ用バッフ
ァレジスタおよび前記クラッチ用バッファレジスタに格
納されている相パターンおよびクラッチ信号を同時に取
り込ませ、さらに前記加速処理、前記定速処理または前
記減速処理ごとに予め設定されたパルス時間の経過後、
次のステップモータ割り込み処理を実行することを繰り
返すことを特徴とするステップモータの駆動装置。3. A stepping motor, a clutch connected to an output shaft of the stepping motor, a motor buffer register for storing a phase pattern to be output to the stepping motor, and an indication of a connection / disconnection state of the clutch. A clutch buffer register for storing a clutch signal for performing the operation, a motor output latch for outputting a stored phase pattern to the stepping motor, and a clutch for outputting a stored clutch signal to the clutch. with a use output latch, a central processing unit, the central processing unit executes a stepping motor interrupt processing is instructed to the stepping motor interrupt start to oN clutch oN request flag when connecting the clutch process When the clutch is disengaged Sets the clutch ON request flag to O.
If the clutch ON request flag is ON during execution of the stepping motor interrupt processing, a clutch signal for connecting the clutch is transmitted to the clutch buffer register, and the clutch ON request flag is turned OFF. Then, after transmitting a clutch signal for disengaging the clutch to the clutch buffer register, an acceleration process, a constant speed process or a deceleration process for transmitting a preset phase pattern to the motor buffer register is executed. Later, the motor output latch and the clutch output latch simultaneously capture the phase pattern and the clutch signal stored in the motor buffer register and the clutch buffer register, and further perform the acceleration process, the constant speed process or the For each deceleration process After the lapse of the order set pulse time,
A driving device for a step motor, which repeats execution of a next step motor interrupt process.
記ステッピングモータに接続する請求項1記載のステッ
ピングモータの駆動装置を備えたことを特徴とするプリ
ンタ装置。4. A printer device comprising the stepping motor driving device according to claim 1, wherein a sheet feeding roller is connected to said stepping motor via said clutch.
モータに接続したプリンタ装置の給紙ローラを請求項2
記載のステッピングモータの駆動方法を用いて駆動する
ことを特徴とするプリンタ装置の駆動方法。5. Request paper feed roller of the printer device connected to the stepping motor via the clutch section 2
A driving method for a printer device, wherein the driving method is performed by using the driving method for a stepping motor described above .
グモータの出力軸に連結されたクラッチと、前記ステッ
ピングモータに出力するための相パターンを格納するモ
ータ用バッファレジスタと、前記クラッチの接続/切り
離し状態を指示するためのクラッチ信号を格納するクラ
ッチ用バッファレジスタと、格納している相パターンが
前記ステッピングモータに出力されているモータ用出力
ラッチと、格納しているクラッチ信号が前記クラッチに
出力されているクラッチ用出力ラッチと、中央処理装置
とを備え、前記中央処理装置にステッピングモータ割り
込みスタートを指示された時にステッピングモータ割り
込み処理を実行させ、前記クラッチを接続するときはク
ラッチON要求フラグをONにする処理を実行させ、前
記クラッチを切り離すときは前記クラッチON要求フラ
グをOFFにする処理を実行させ、前記ステッピングモ
ータ割り込み処理の実行において前記クラッチON要求
フラグがONであれば前記クラッチ用バッファレジスタ
に前記クラッチを接続させるクラッチ信号を送出させ、
前記クラッチON要求フラグがOFFであれば前記クラ
ッチ用バッファレジスタに前記クラッチを切り離すクラ
ッチ信号を送出させてから、予め設定された相パターン
を前記モータ用バッファレジスタに送出する加速処理、
定速処理または減速処理を実行させ、この後に前記モ ー
タ用出力ラッチおよび前記クラッチ用出力ラッチに前記
モータ用バッファレジスタおよび前記クラッチ用バッフ
ァレジスタに格納されている相パターンおよびクラッチ
信号を同時に取り込ませ、さらに前記加速処理、前記定
速処理または前記減速処理ごとに予め設定されたパルス
時間の経過後、次のステップモータ割り込み処理を実行
することを繰り返させることを特徴とするステップモー
タの駆動方法。 6. A stepping motor and a stepping motor.
A clutch connected to the output shaft of the
The motor that stores the phase pattern to be output to the ping motor
Data buffer register and connection / disconnection of the clutch
A clutch that stores a clutch signal for indicating a release state
Buffer register and the stored phase pattern
Motor output being output to the stepping motor
The latch and the stored clutch signal are applied to the clutch.
Output latch for clutch output and central processing unit
And the central processing unit is divided by a stepping motor.
Stepping motor split when
When the clutch is engaged, click
Execute the process of turning on the latch ON request flag, and
When disengaging the clutch,
Off the stepping mode.
In the execution of data interrupt processing, the clutch ON request
If the flag is ON, the clutch buffer register
Send a clutch signal to connect the clutch,
If the clutch ON request flag is OFF, the clutch
Clutch buffer to the clutch buffer register.
Switch signal, and then set the phase pattern
Acceleration processing for sending to the motor buffer register,
Constant speed processing or reduction processing is executed, the motor over to subsequent
The output latch for the clutch and the output latch for the clutch.
Motor buffer register and clutch buffer
Phase pattern and clutch stored in register
Signals at the same time.
Preset pulses for speed processing or deceleration processing
After the elapse of time, execute the next step motor interrupt processing
Step mode.
Data driving method.
モータに接続したプリンタ装置の給紙ローラを請求項6
記載のステッピングモータの駆動方法を用いて駆動する
ことを特徴とするプリンタ装置の駆動方法。 7. The stepping through the clutch.
7. A paper feed roller of a printer connected to a motor.
Drive using the described stepping motor driving method
A method for driving a printer device, comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32470897A JP3112876B2 (en) | 1997-11-26 | 1997-11-26 | Driving device and method for stepping motor, printer device using this driving device, and driving method therefor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32470897A JP3112876B2 (en) | 1997-11-26 | 1997-11-26 | Driving device and method for stepping motor, printer device using this driving device, and driving method therefor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH11164590A JPH11164590A (en) | 1999-06-18 |
| JP3112876B2 true JP3112876B2 (en) | 2000-11-27 |
Family
ID=18168830
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP32470897A Expired - Fee Related JP3112876B2 (en) | 1997-11-26 | 1997-11-26 | Driving device and method for stepping motor, printer device using this driving device, and driving method therefor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3112876B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6957991B2 (en) * | 2017-05-31 | 2021-11-02 | ブラザー工業株式会社 | Printing equipment, printing methods, and printing programs |
| JP6957992B2 (en) * | 2017-05-31 | 2021-11-02 | ブラザー工業株式会社 | bracket |
-
1997
- 1997-11-26 JP JP32470897A patent/JP3112876B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH11164590A (en) | 1999-06-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3438612B2 (en) | Stepping motor control device | |
| JP3112876B2 (en) | Driving device and method for stepping motor, printer device using this driving device, and driving method therefor | |
| JPH10164893A (en) | Motor drive for recording device | |
| US6312177B1 (en) | Line printer | |
| JP3287608B2 (en) | Sheet transport device | |
| JP2001275374A (en) | Motor control device and storage medium | |
| JP3800917B2 (en) | Motor control device and storage medium | |
| JP2632700B2 (en) | Test method of pulse motor for sub scanning drive | |
| JPH0822328A (en) | Driving motor controller | |
| JP3260832B2 (en) | Recording device | |
| JP3069308U (en) | Peripheral equipment | |
| JP4715397B2 (en) | Motor control device, electronic device and printer device | |
| JP3658190B2 (en) | Image forming apparatus | |
| JP2694691B2 (en) | Printer device | |
| JP3067212U (en) | Printer motor controller | |
| JPH07247044A (en) | Paper feeding motor control circuit and control method thereof | |
| JPS6311378A (en) | Print control method | |
| JPH0630598A (en) | Recorder | |
| JPS60120081A (en) | Carriage drive controller | |
| JPH063642U (en) | Thermal printer | |
| JPH03231869A (en) | thermal printer | |
| JP2000006479A (en) | Thermal printer | |
| JP3715708B2 (en) | Pulse motor control apparatus and method | |
| JPH01243893A (en) | Stepping motor control device | |
| JPH11180025A (en) | Printer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20000905 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080922 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080922 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090922 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090922 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100922 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110922 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120922 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130922 Year of fee payment: 13 |
|
| LAPS | Cancellation because of no payment of annual fees |