[go: up one dir, main page]

JPH1066394A - Method and device for driving pulse motor and recording medium - Google Patents

Method and device for driving pulse motor and recording medium

Info

Publication number
JPH1066394A
JPH1066394A JP24001996A JP24001996A JPH1066394A JP H1066394 A JPH1066394 A JP H1066394A JP 24001996 A JP24001996 A JP 24001996A JP 24001996 A JP24001996 A JP 24001996A JP H1066394 A JPH1066394 A JP H1066394A
Authority
JP
Japan
Prior art keywords
drive
changing
driving
waveform
pulse motor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP24001996A
Other languages
Japanese (ja)
Other versions
JP3782522B2 (en
Inventor
Taeko Tanaka
妙子 田中
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP24001996A priority Critical patent/JP3782522B2/en
Publication of JPH1066394A publication Critical patent/JPH1066394A/en
Application granted granted Critical
Publication of JP3782522B2 publication Critical patent/JP3782522B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)
  • Control By Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce the noise of a pulse motor when the driving of the motor is started or the motor is stopped by changing the shape of the waveform of the driving current of the motor by changing the driving speed of the motor for a fixed period of time at the time of starting the driving of the motor or stopping the motor. SOLUTION: A microcomputer 7 inputs signals outputted from the output terminals E and F of a PWM unit 7a to driver circuits 1 and 2 at a fixed frequency. Since the frequency is high, the electric currents corresponding to the PWM duty ratio flow to motor windings 3 and 4 due to the influences of the inductances of the windings 3 and 4. Therefore, when the PWM duty ratio is changed to a sine-wave state, a pulse motor 5 can be driven in a sine-wave driving mode in which the vibration and noise of the motor 5 are considered to become less. The PWM duty ratio is decided by successively reading out duty ratio data by interrupting the microcomputer 7 in accordance with a timer. When the motor 5 is accelerated or decelerated at the time of starting the driving of the motor 5 and stopping the motor 5 by interrupting the microcomputer 7, the waveform of the driving current of the motor 5 becomes smoother and the noise of the motor 5 can be reduced.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、パルスモータを駆
動制御するパルスモータ駆動制御方法及び装置並びに該
パルスモータ駆動制御装置を制御するプログラムを格納
した記憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pulse motor drive control method and device for controlling a pulse motor, and a storage medium storing a program for controlling the pulse motor drive control device.

【0002】[0002]

【従来の技術】従来、パルスモータは回転角度及び回転
速度をオープン制御で正確に制御できるため、OA(オ
フィスオートメーション)機器等の駆動源として用いら
れている。
2. Description of the Related Art Conventionally, a pulse motor has been used as a drive source for OA (office automation) equipment and the like because a rotation angle and a rotation speed can be accurately controlled by open control.

【0003】また、パルスモータは歩進パルス数に対す
る回転角度が一定なために、歩進パルスをそのままイン
クリメントして位置検出が行え、該位置検出のためのエ
ンコーダを必要としないので、近年ではビデオカメラ等
の撮像装置のレンズ制御源としても用いられている。
In addition, since the rotation angle of the pulse motor with respect to the number of stepping pulses is constant, the position of the stepping pulse can be detected by incrementing the stepping pulse as it is, and an encoder for the position detection is not required. It is also used as a lens control source of an imaging device such as a camera.

【0004】しかしながら、パルスモータの駆動時には
騒音が大きくなるという問題点があり、パルスモータの
駆動電流波形を図22の(b)の矩形波から、図22の
(a)に示すような正弦波形にすることにより、騒音を
小さくするようにしている。
However, there is a problem that the noise is increased when the pulse motor is driven, and the driving current waveform of the pulse motor is changed from the rectangular wave of FIG. 22B to the sine waveform as shown in FIG. By doing so, the noise is reduced.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記従
来例では騒音を小さくするために、パルスモータの駆動
電流波形を正弦波にしているが、パルスモータの駆動開
始時と停止時には、図22の(c)に示すように正弦波
駆動でも滑らかな波形でなくなり、騒音の原因となる。
However, in the above-mentioned prior art, the driving current waveform of the pulse motor is set to a sine wave in order to reduce the noise. As shown in c), the waveform is not smooth even with the sine wave drive, which causes noise.

【0006】特に、撮影装置のレンズ駆動時にはフォー
カス動作をする際に、レンズの駆動及び停止を短期間の
間に繰り返すような図22の(d)に示すような駆動パ
ターンがあり、このようなときは、レンズの駆動及び停
止が何回も繰り返されるために、騒音が大きな問題とな
る。
In particular, there is a driving pattern as shown in FIG. 22D in which the driving and stopping of the lens are repeated in a short period of time when the focusing operation is performed when driving the lens of the photographing apparatus. Sometimes, driving and stopping the lens are repeated many times, so that noise becomes a serious problem.

【0007】本発明は上述した従来技術の問題点を解消
するためになされたもので、その第1の目的とするとこ
ろは、モータの駆動開始時或いは停止時の騒音を低減す
ることができるパルスモータ制御方法及び装置を提供す
ることにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems of the prior art, and a first object of the present invention is to provide a pulse which can reduce noise at the start or stop of driving of a motor. An object of the present invention is to provide a motor control method and device.

【0008】また、本発明の第2の目的とするところ
は、本発明のパルスモータ制御装置を円滑に制御するこ
とができるプログラムを格納した記憶媒体を提供するこ
とにある。
Another object of the present invention is to provide a storage medium storing a program capable of smoothly controlling the pulse motor control device of the present invention.

【0009】[0009]

【課題を解決するための手段】上記第1の目的を達成す
るため本発明の請求項1記載のパルスモータ駆動制御方
法は、パルスモータを略正弦波駆動する駆動ステップ
と、該駆動ステップを制御する駆動制御ステップと、駆
動開始時或いは停止時に一定期間駆動速度を変更するこ
とで駆動電流波形の形を変更する波形変更ステップとを
有することを特徴とするものである。
According to a first aspect of the present invention, there is provided a pulse motor drive control method, comprising the steps of: driving a pulse motor in a substantially sinusoidal wave; and controlling the drive step. And a waveform changing step of changing the shape of the drive current waveform by changing the drive speed for a certain period when the drive is started or stopped.

【0010】また、上記第1の目的を達成するため本発
明の請求項2記載のパルスモータ駆動制御方法は、請求
項1記載のパルスモータ駆動制御方法において、駆動速
度に応じて駆動開始時或いは停止時に駆動速度を変更し
駆動電流波形の形を変更する時間を変更する時間変更ス
テップを有することを特徴とするものである。
According to a second aspect of the present invention, there is provided a pulse motor drive control method according to the first aspect of the present invention. The method further comprises a time changing step of changing the time for changing the shape of the drive current waveform by changing the drive speed when the motor is stopped.

【0011】また、上記第1の目的を達成するため本発
明の請求項3記載のパルスモータ駆動制御方法は、請求
項1記載のパルスモータ駆動制御方法において、駆動位
相位置に応じて駆動開始時或いは停止時に駆動速度を変
更することで駆動電流波形の形を変更する波形変更ステ
ップを有することを特徴とするものである。
According to a third aspect of the present invention, there is provided a pulse motor drive control method according to the first aspect of the present invention, comprising the steps of: Alternatively, the method has a waveform changing step of changing the shape of the drive current waveform by changing the drive speed at the time of stop.

【0012】また、上記第1の目的を達成するため本発
明の請求項4記載のパルスモータ駆動制御方法は、PW
M(パルス幅変調)信号を発生するデューティ比設定可
能な少なくとも2つのPWM信号発生ステップと、パル
スモータを前記PWM信号発生ステップからの出力信号
により略正弦波駆動する駆動ステップと、該駆動ステッ
プを制御する駆動制御ステップと、駆動開始時或いは停
止時に一定期間PWMのデューティ比を変更することで
駆動電流波形の形を変更する波形変更ステップとを有す
ることを特徴とするものである。
According to a fourth aspect of the present invention, there is provided a pulse motor drive control method for achieving the first object.
At least two PWM signal generating steps capable of setting a duty ratio for generating an M (pulse width modulation) signal, a driving step of driving a pulse motor with a substantially sinusoidal wave using an output signal from the PWM signal generating step, It is characterized by comprising a drive control step of controlling and a waveform changing step of changing the shape of the drive current waveform by changing the duty ratio of PWM for a certain period at the start or stop of driving.

【0013】また、上記第1の目的を達成するため本発
明の請求項5記載のパルスモータ駆動制御方法は、請求
項4記載のパルスモータ駆動制御方法において、駆動速
度に応じて駆動開始時或いは停止時にPWMのデューテ
ィ比及び駆動速度を変更することで駆動電流波形の形を
変更する波形変更ステップを有することを特徴とするも
のである。
According to a fifth aspect of the present invention, there is provided a pulse motor drive control method according to the fourth aspect of the present invention. It is characterized by having a waveform changing step of changing the shape of the drive current waveform by changing the PWM duty ratio and the drive speed at the time of stop.

【0014】また、上記第1の目的を達成するため本発
明の請求項6記載のパルスモータ駆動制御方法は、請求
項4記載のパルスモータ駆動制御方法において、駆動速
度に応じて駆動開始時或いは停止時にPWMのデューテ
ィ比を変更することで駆動電流波形の形を変更する期間
を変更する期間変更ステップを有することを特徴とする
ものである。
According to a sixth aspect of the present invention, there is provided a pulse motor drive control method according to the fourth aspect of the present invention. It has a period changing step of changing a period for changing the shape of the drive current waveform by changing the duty ratio of the PWM at the time of stop.

【0015】また、上記第1の目的を達成するため本発
明の請求項7記載のパルスモータ駆動制御方法は、請求
項4記載のパルスモータ駆動制御方法において、駆動位
相位置に応じて駆動開始時或いは停止時にPWMのデュ
ーティ比を変更することで駆動電流波形の形を変更する
波形変更ステップを有することを特徴とするものであ
る。
According to a seventh aspect of the present invention, there is provided a pulse motor drive control method according to the fourth aspect of the present invention, wherein when the drive is started in accordance with the drive phase position. Alternatively, it has a waveform changing step of changing the shape of the drive current waveform by changing the duty ratio of the PWM at the time of stop.

【0016】また、上記第1の目的を達成するため本発
明の請求項8記載のパルスモータ駆動制御方法は、パル
スモータを略正弦波駆動する駆動ステップと、該駆動ス
テップを制御する駆動制御ステップと、駆動速度或いは
駆動開始及び停止位相に応じて駆動開始時或いは停止時
に駆動期間及びPWMのデューティ比及び駆動速度を変
更することで駆動電流波形の形を変更する波形変更ステ
ップとを有することを特徴とするものである。
In order to achieve the first object, a pulse motor drive control method according to claim 8 of the present invention provides a drive step of driving a pulse motor with a substantially sine wave, and a drive control step of controlling the drive step. And a waveform changing step of changing the shape of the drive current waveform by changing the drive period and the duty ratio and the drive speed of the PWM at the start or stop of the drive according to the drive speed or the drive start and stop phases. It is a feature.

【0017】また、上記第1の目的を達成するため本発
明の請求項9記載のパルスモータ駆動制御装置は、パル
スモータと、該パルスモータを略正弦波駆動する駆動手
段と、該駆動手段を制御する駆動制御手段と、駆動開始
時或いは停止時に一定期間駆動速度を変更することで駆
動電流波形の形を変更する波形変更手段とを具備したこ
とを特徴とするものである。
In order to achieve the first object, a pulse motor drive control device according to a ninth aspect of the present invention includes a pulse motor, a drive unit for driving the pulse motor with a substantially sine wave, and a drive unit for driving the pulse motor. It is characterized by comprising drive control means for controlling, and waveform changing means for changing the shape of the drive current waveform by changing the drive speed for a certain period at the start or stop of driving.

【0018】また、上記第1の目的を達成するため本発
明の請求項10記載のパルスモータ駆動制御装置は、請
求項9記載のパルスモータ駆動制御装置において、駆動
速度に応じて駆動開始時或いは停止時に駆動速度を変更
し駆動電流波形の形を変更する時間を変更する時間変更
手段を具備したことを特徴とするものである。
According to a tenth aspect of the present invention, there is provided a pulse motor drive control device according to the ninth aspect of the present invention, wherein the pulse motor drive control device according to the ninth aspect has a function of: It is characterized by comprising time changing means for changing the drive speed and changing the time for changing the shape of the drive current waveform when stopped.

【0019】また、上記第1の目的を達成するため本発
明の請求項11記載のパルスモータ駆動制御装置は、請
求項9記載のパルスモータ駆動制御装置において、駆動
位相位置に応じて駆動開始時或いは停止時に駆動速度を
変更することで駆動電流波形の形を変更する波形変更手
段を具備したことを特徴とするものである。
In order to achieve the first object, a pulse motor drive control device according to claim 11 of the present invention is the pulse motor drive control device according to claim 9, wherein the drive start time according to the drive phase position. Alternatively, there is provided a waveform changing means for changing the shape of the drive current waveform by changing the drive speed at the time of stop.

【0020】また、上記第1の目的を達成するため本発
明の請求項12記載のパルスモータ駆動制御装置は、パ
ルスモータと、PWM信号を発生するデューティ比設定
可能な少なくとも2つのPWM信号発生手段と、前記パ
ルスモータを前記PWM信号発生手段からの出力信号に
より略正弦波駆動する駆動手段と、該駆動手段を制御す
る駆動制御手段と、駆動開始時或いは停止時に一定期間
PWMのデューティ比を変更することで駆動電流波形の
形を変更する波形変更手段とを具備したことを特徴とす
るものである。
According to a twelfth aspect of the present invention, there is provided a pulse motor drive control apparatus according to a twelfth aspect of the present invention, comprising: a pulse motor; and at least two PWM signal generating means capable of setting a duty ratio for generating a PWM signal. A driving means for driving the pulse motor in a substantially sinusoidal manner with an output signal from the PWM signal generating means, a driving control means for controlling the driving means, and changing a duty ratio of the PWM for a certain period at the time of starting or stopping the driving. And a waveform changing means for changing the shape of the drive current waveform.

【0021】また、上記第1の目的を達成するため本発
明の請求項13記載のパルスモータ駆動制御装置は、請
求項12記載のパルスモータ駆動制御装置において、駆
動速度に応じて駆動開始時或いは停止時にPWMのデュ
ーティ比及び駆動速度を変更することで駆動電流波形の
形を変更する波形変更手段を具備したことを特徴とする
ものである。
According to a thirteenth aspect of the present invention, there is provided a pulse motor drive control device according to the twelfth aspect of the present invention, wherein the drive is started at the start of the drive or in accordance with the drive speed. Waveform changing means for changing the shape of the drive current waveform by changing the PWM duty ratio and the drive speed when the motor is stopped is provided.

【0022】また、上記第1の目的を達成するため本発
明の請求項14記載のパルスモータ駆動制御装置は、請
求項12記載のパルスモータ駆動制御装置において、駆
動速度に応じて駆動開始時或いは停止時にPWMのデュ
ーティ比を変更することで駆動電流波形の形を変更する
期間を変更する期間変更手段を具備したことを特徴とす
るものである。
According to a fourteenth aspect of the present invention, there is provided a pulse motor drive control device according to the twelfth aspect of the present invention, wherein the pulse motor drive control device according to the twelfth aspect of the present invention is provided at the start of drive or at the start of drive according to the drive speed. A period changing means for changing a period during which the shape of the drive current waveform is changed by changing the duty ratio of the PWM at the time of stoppage is provided.

【0023】また、上記第1の目的を達成するため本発
明の請求項15記載のパルスモータ駆動制御装置は、請
求項12記載のパルスモータ駆動制御装置において、駆
動位相位置に応じて駆動開始時或いは停止時にPWMの
デューティ比を変更することで駆動電流波形の形を変更
する波形変更手段を具備したことを特徴とするものであ
る。
According to a fifteenth aspect of the present invention, there is provided a pulse motor drive control device according to the twelfth aspect of the present invention, wherein a drive is started in accordance with a drive phase position. Alternatively, there is provided a waveform changing means for changing the shape of the drive current waveform by changing the PWM duty ratio at the time of stop.

【0024】また、上記第1の目的を達成するため本発
明の請求項16記載のパルスモータ駆動制御装置は、パ
ルスモータと、該パルスモータを略正弦波駆動する駆動
手段と、該駆動手段を制御する駆動制御手段と、駆動速
度或いは駆動開始及び停止位相に応じて駆動開始時或い
は停止時に駆動期間及びPWMのデューティ比及び駆動
速度を変更することで駆動電流波形の形を変更する波形
変更手段とを具備したことを特徴とするものである。
In order to achieve the first object, a pulse motor drive control device according to a sixteenth aspect of the present invention comprises: a pulse motor; a drive unit for driving the pulse motor substantially in a sine wave; Drive control means for controlling, and waveform changing means for changing the shape of the drive current waveform by changing the drive period, the duty ratio of PWM and the drive speed at the start or stop of the drive according to the drive speed or the drive start and stop phases And characterized in that:

【0025】また、上記第2の目的を達成するため本発
明の請求項17記載の記憶媒体は、パルスモータ駆動制
御装置を制御するプログラムを格納する記憶媒体であっ
て、パルスモータを略正弦波駆動する駆動ステップの駆
動モジュールと、該駆動ステップを制御する駆動制御ス
テップの駆動制御モジュールと、駆動開始時或いは停止
時に一定期間駆動速度を変更することで駆動電流波形の
形を変更する第1の波形変更ステップの第1の波形変更
モジュールとを有するプログラムを格納したことを特徴
とするものである。
In order to achieve the second object, a storage medium according to a seventeenth aspect of the present invention is a storage medium for storing a program for controlling a pulse motor drive control device. A driving module of a driving step to be driven, a driving control module of a driving control step for controlling the driving step, and a first method of changing the shape of the driving current waveform by changing the driving speed for a certain period at the time of starting or stopping driving. A program having a first waveform changing module in a waveform changing step is stored.

【0026】また、上記第2の目的を達成するため本発
明の請求項18記載の記憶媒体は、請求項17記載の記
憶媒体において、前記プログラムは、駆動速度に応じて
駆動開始時或いは停止時に駆動速度を変更し駆動電流波
形の形を変更する時間を変更する時間変更ステップの時
間変更モジュールを有することを特徴とするものであ
る。
In order to achieve the second object, a storage medium according to claim 18 of the present invention is the storage medium according to claim 17, wherein the program is executed at the time of starting or stopping the driving according to the driving speed. It has a time changing module of a time changing step of changing the time for changing the shape of the drive current waveform by changing the drive speed.

【0027】また、上記第2の目的を達成するため本発
明の請求項19記載の記憶媒体は、請求項17記載の記
憶媒体において、前記プログラムは、駆動位相位置に応
じて駆動開始時或いは停止時に駆動速度を変更すること
で駆動電流波形の形を変更する第2の波形変更ステップ
の第2の波形変更モジュールを有することを特徴とする
ものである。
In order to achieve the second object, a storage medium according to a nineteenth aspect of the present invention is the storage medium according to the seventeenth aspect, wherein the program starts or stops driving according to a driving phase position. A second waveform changing module in a second waveform changing step of changing the shape of the driving current waveform by changing the driving speed at times.

【0028】また、上記第2の目的を達成するため本発
明の請求項20記載の記憶媒体は、PWM(パルス幅変
調)信号を発生するデューティ比設定可能な少なくとも
2つのPWM信号発生ステップのPWM信号発生モジュ
ールと、パルスモータを前記PWM信号発生ステップか
らの出力信号により略正弦波駆動する駆動ステップの駆
動モジュールと、該駆動ステップを制御する駆動制御ス
テップの駆動制御モジュールと、駆動開始時或いは停止
時に一定期間PWMのデューティ比を変更することで駆
動電流波形の形を変更する第1の波形変更ステップの第
1の波形変更モジュールとを有するプログラムを格納し
たことを特徴とするものである。
In order to achieve the second object, a storage medium according to a twentieth aspect of the present invention provides a storage medium having at least two PWM signal generation steps capable of setting a duty ratio for generating a PWM (pulse width modulation) signal. A signal generation module, a drive module of a drive step for driving the pulse motor with a substantially sinusoidal wave by an output signal from the PWM signal generation step, a drive control module of a drive control step for controlling the drive step, and a start or stop of drive A program having a first waveform changing module of a first waveform changing step for changing the shape of the drive current waveform by changing the duty ratio of the PWM for a certain period of time is stored.

【0029】また、上記第2の目的を達成するため本発
明の請求項21記載の記憶媒体は、請求項20記載の記
憶媒体において、前記プログラムは、駆動速度に応じて
駆動開始時或いは停止時にPWMのデューティ比及び駆
動速度を変更することで駆動電流波形の形を変更する第
2の波形変更ステップの第2の波形変更モジュールを有
することを特徴とするものである。
In order to achieve the second object, a storage medium according to claim 21 of the present invention is the storage medium according to claim 20, wherein the program is executed at the time of starting or stopping the driving according to the driving speed. A second waveform changing module of a second waveform changing step of changing the shape of the driving current waveform by changing the duty ratio and the driving speed of the PWM is characterized in that the module has a second waveform changing module.

【0030】また、上記第2の目的を達成するため本発
明の請求項22記載の記憶媒体は、請求項20記載の記
憶媒体において、前記プログラムは、駆動速度に応じて
駆動開始時或いは停止時にPWMのデューティ比を変更
することで駆動電流波形の形を変更する期間を変更する
期間変更ステップの期間変更モジュールを有することを
特徴とするものである。
In order to achieve the second object, the storage medium according to claim 22 of the present invention is the storage medium according to claim 20, wherein the program is executed at the time of starting or stopping the driving according to the driving speed. It is characterized by having a period changing module of a period changing step of changing a period for changing the shape of the drive current waveform by changing the duty ratio of the PWM.

【0031】また、上記第2の目的を達成するため本発
明の請求項23記載の記憶媒体は、請求項20記載の記
憶媒体において、前記プログラムは、駆動位相位置に応
じて駆動開始時或いは停止時にPWMのデューティ比を
変更することで駆動電流波形の形を変更する第3の波形
変更ステップの第3の波形変更モジュールを有すること
を特徴とするものである。
In order to achieve the second object, the storage medium according to claim 23 of the present invention is the storage medium according to claim 20, wherein the program starts or stops driving according to a driving phase position. A third waveform changing module of a third waveform changing step of changing the shape of the drive current waveform by sometimes changing the duty ratio of the PWM.

【0032】また、上記第2の目的を達成するため本発
明の請求項24記載の記憶媒体は、パルスモータを略正
弦波駆動する駆動ステップの駆動モジュールと、該駆動
ステップを制御する駆動制御ステップの駆動制御モジュ
ールと、駆動速度或いは駆動開始及び停止位相に応じて
駆動開始時或いは停止時に駆動期間及びPWMのデュー
ティ比及び駆動速度を変更することで駆動電流波形の形
を変更する波形変更ステップの波形変更モジュールとを
有するプログラムを格納したことを特徴とするものであ
る。
In order to achieve the second object, a storage medium according to a twenty-fourth aspect of the present invention includes a drive module having a drive step for driving a pulse motor with a substantially sinusoidal wave, and a drive control step for controlling the drive step. And a waveform changing step of changing the shape of the drive current waveform by changing the drive period and the PWM duty ratio and the drive speed at the start or stop of the drive according to the drive speed or the drive start and stop phases. A program having a waveform changing module is stored.

【0033】[0033]

【発明の実施の形態】以下、本発明の各実施の形態を図
1〜図21に基づき説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to FIGS.

【0034】(第1の実施の形態)まず、本発明の第1
の実施の形態を図1〜図9に基づき説明する。図1は本
発明の第1の実施の形態に係るパルスモータ制御装置の
構成を示すブロック図である。図1において、1及び2
はドライバ回路、3及び4は2相パルスモータ5のモー
タ巻線、5は2相パルスモータ、6は2相パルスモータ
5のマグネット、7は2相パルスモータ5の制御を行う
マイクロコンピュータ(以下、マイコンと記述する)
で、周波数とデューティ比を設定可能なパルス信号
(E,F)を出力するPWM(パルス幅変調)ユニット
7aと、プログラム可能なタイマーユニット7bと、
“H(ハイ)”信号及び“L(ロー)”信号を出力可能
な出力ポート(A,B)と、2相パルスモータ5の駆動
速度やPWMのデューティ比等のデータを格納したRO
M(リードオンリーメモリ)7cとを内蔵している。
(First Embodiment) First, the first embodiment of the present invention will be described.
The embodiment will be described with reference to FIGS. FIG. 1 is a block diagram showing a configuration of the pulse motor control device according to the first embodiment of the present invention. In FIG. 1, 1 and 2
Is a driver circuit, 3 and 4 are motor windings of a two-phase pulse motor 5, 5 is a two-phase pulse motor, 6 is a magnet of the two-phase pulse motor 5, and 7 is a microcomputer (hereinafter referred to as a microcomputer) for controlling the two-phase pulse motor 5. , Described as microcomputer)
A PWM (pulse width modulation) unit 7a for outputting a pulse signal (E, F) capable of setting a frequency and a duty ratio, a programmable timer unit 7b,
Output ports (A, B) capable of outputting “H (high)” and “L (low)” signals, and an RO storing data such as the driving speed of the two-phase pulse motor 5 and the duty ratio of PWM.
M (read only memory) 7c.

【0035】図2はドライバ回路1、2の内部構成を示
すブロック図である。図2において、8及び9はPNP
トランジスタ、10及び11はNPNトランジスタ、1
2、13、14、15はダイオード、16、17、1
8、19は抵抗、20、21はANDゲート、22はN
OTゲートである。図2において、入力端子EN1が
“H”レベルで入力IN1が“L”レベルのとき、トラ
ンジスタ(以下、Trと記述する)8及びTr11はオ
ン(ON)状態となり、Tr9及びTr10はオフ(O
FF)状態となる。従って、モータ巻線3には出力端子
OUT1から出力端子OUT2の方向に電流が流れる。
入力端子EN1が“H”レベルで、入力端子IN1が
“L”レベルのとき、Tr9及びTr10はON状態と
なり、Tr8及びTr11はOFF状態となる。従っ
て、モータ巻線3には出力端子OUT2から出力端子O
UT1の方向に電流が流れる。 また、入力端子EN1
が“L”レベルのときは、入力端子IN1の入力レベル
に拘らずTr8〜Tr11はOFF状態となり、出力端
子OUT1から出力端子OUT2はハイインピーダンス
状態となる。図3はこれらの入力と出力の関係を示す図
であり、入力端子IN2、入力端子EN2、出力端子O
UT3、出力端子OUT4も同じである。また、マイコ
ン7からドライバ回路1及び2へ、PWMユニット7a
の出力端子Eからの出力信号はドライバ回路1の入力端
子IN1に、PWMユニット7aの出力端子Fからの出
力信号はドライバ回路2の入力端子IN2にそれぞれ入
力される。また、ドライバ回路1の入力端子EN1及び
ドライバ回路2の入力端子EN2は、図1に示すように
マイコン7の出力ポートA,Bにそれぞれ接続し、
“H”、“L”をコントロールしてもよいが、マイコン
7に接続せずに“H”レベル固定にしてもよい。次に、
PWMユニット7aの出力端子E,Fからの出力信号に
よるモータ巻線電流の制御方法を説明する。図1のマイ
コン7はPWMユニット7aの出力端子E,Fからの出
力信号を一定の周波数fpでドライバ回路1,2に入力
する。このPWMの“H”“L”により上述した論理で
モータ巻線3,4は駆動されるが、周波数fpが高いた
め、モータ巻線3,4のインダクタンスの影響でモータ
巻線3,4には、図4に示すようなデューティ比に応じ
た電流が流れる。図4の(a)はPWMユニット7aの
出力端子Eからの出力信号と時間の関係を、図4の
(b)は巻線電流と時間の関係をそれぞれ示す。従っ
て、振動、騒音の小さいとされる正弦波駆動を行うため
には、このPWMデューティ比の変化を略正弦波的にす
ればよく、更に効率よくモータ駆動を行うためには、前
記正弦波の振幅を回転速度に応じて変化させるようにP
WMデューティ比変化を調整すればよい。このデューテ
ィ比調整方法について図5を用いて以下に述べる。図5
の(a)は最大値$FF、最小値$00とした基本デュ
ーティ比データ(Dn)を、図5の(b)は最大値$F
F、最小値$00とした駆動開始及び停止時のデューテ
ィ比データ(Dn)をそれぞれ示す。図5の(a)に示
す最大値$FF、最小値$00とした基本デューティ比
データ(Dn)を図1のROM7cに格納しておく。こ
のデューティ比データは、例えば1周期の正弦波信号を
64分割したものである。上列の0〜63は便宜的に付
けたROM7cのアドレスであり、下列の数値は各アド
レスに格納されたデューティ比データである。このデュ
ーティ比データをマイコン7のタイマー割り込みによっ
て順次読み出し、PWMのデューティ比とする。このタ
イマー割り込みの時間(Tt)を操作することにより、
パルスモータ5の回転速度を調整することができる。ま
た、PWMユニット7aの出力端子EとPWMユニット
7aの出力端子Fは、読み出しROMアドレスを16ず
らして90deg位相のずれた関係とする。そして、パ
ルスモータ5の駆動を停止させる際には、PWMユニッ
ト7aの出力端子E,Fからの出力を停止すればよい。
図6は本発明を実施するためのパルスモータ5の駆動開
始と停止の際のマイコン7の動作フローを示すフローチ
ャートである。同図のステップS601で、外部からの
情報により、駆動するべき速度(Vt)、パルス数aを
設定する。これは外部からのスイッチや通信等、マイコ
ン7に駆動速度とパルス数を入力できればよい。ここ
で、a=bとして、bを設定する。次に、ステップS6
02で駆動速度に応じたタイマー割り込み時間Ttを設
定する。これは駆動速度が速ければ短く、遅ければ長く
なる。
FIG. 2 is a block diagram showing the internal configuration of the driver circuits 1 and 2. In FIG. 2, 8 and 9 are PNP
Transistors 10 and 11 are NPN transistors, 1
2, 13, 14, 15 are diodes, 16, 17, 1,
8, 19 are resistors, 20, 21 are AND gates, 22 is N
OT gate. In FIG. 2, when the input terminal EN1 is at the “H” level and the input IN1 is at the “L” level, the transistors (hereinafter referred to as Tr) 8 and Tr11 are turned on (ON), and the transistors Tr9 and Tr10 are turned off (O
FF) state. Therefore, a current flows through the motor winding 3 from the output terminal OUT1 to the output terminal OUT2.
When the input terminal EN1 is at “H” level and the input terminal IN1 is at “L” level, Tr9 and Tr10 are turned on, and Tr8 and Tr11 are turned off. Therefore, the motor winding 3 is connected to the output terminal O2 from the output terminal OUT2.
A current flows in the direction of UT1. Also, the input terminal EN1
Is at the "L" level, Tr8 to Tr11 are in the OFF state regardless of the input level of the input terminal IN1, and the output terminal OUT1 to the output terminal OUT2 are in the high impedance state. FIG. 3 is a diagram showing the relationship between these inputs and outputs. The input terminal IN2, the input terminal EN2, and the output terminal O
The same applies to UT3 and output terminal OUT4. Also, the PWM unit 7a is sent from the microcomputer 7 to the driver circuits 1 and 2.
The output signal from the output terminal E is input to the input terminal IN1 of the driver circuit 1, and the output signal from the output terminal F of the PWM unit 7a is input to the input terminal IN2 of the driver circuit 2. The input terminal EN1 of the driver circuit 1 and the input terminal EN2 of the driver circuit 2 are connected to output ports A and B of the microcomputer 7 as shown in FIG.
“H” and “L” may be controlled, but the “H” level may be fixed without connecting to the microcomputer 7. next,
A method of controlling the motor winding current based on output signals from the output terminals E and F of the PWM unit 7a will be described. The microcomputer 7 shown in FIG. 1 inputs output signals from the output terminals E and F of the PWM unit 7a to the driver circuits 1 and 2 at a constant frequency fp. The motor windings 3 and 4 are driven by the above logic based on the PWM “H” and “L”. However, since the frequency fp is high, the motor windings 3 and 4 are affected by the inductance of the motor windings 3 and 4. Flows a current corresponding to the duty ratio as shown in FIG. FIG. 4A shows the relationship between the output signal from the output terminal E of the PWM unit 7a and time, and FIG. 4B shows the relationship between the winding current and time. Therefore, in order to perform a sine wave drive that is considered to have small vibration and noise, the change in the PWM duty ratio may be made substantially sinusoidal. In order to drive the motor more efficiently, the sine wave P to change the amplitude according to the rotation speed
What is necessary is just to adjust the change of the WM duty ratio. This duty ratio adjustment method will be described below with reference to FIG. FIG.
(A) shows the basic duty ratio data (Dn) with the maximum value $ FF and the minimum value 、 00, and FIG. 5B shows the maximum value $ F
F, duty ratio data (Dn) at the start and stop of driving with the minimum value of $ 00 are shown. Basic duty ratio data (Dn) with the maximum value $ FF and the minimum value $ 00 shown in FIG. 5A are stored in the ROM 7c of FIG. The duty ratio data is obtained, for example, by dividing one cycle of a sine wave signal into 64 parts. 0 to 63 in the upper row are the addresses of the ROM 7c attached for convenience, and the numerical values in the lower row are the duty ratio data stored in each address. The duty ratio data is sequentially read out by a timer interrupt of the microcomputer 7 and is set as a PWM duty ratio. By manipulating the timer interruption time (Tt),
The rotation speed of the pulse motor 5 can be adjusted. The output terminal E of the PWM unit 7a and the output terminal F of the PWM unit 7a are shifted from each other by 90 in the read ROM address so as to have a 90 deg phase shift. Then, when stopping the driving of the pulse motor 5, the output from the output terminals E and F of the PWM unit 7a may be stopped.
FIG. 6 is a flowchart showing an operation flow of the microcomputer 7 when starting and stopping the driving of the pulse motor 5 for carrying out the present invention. In step S601 in the figure, the speed (Vt) to be driven and the number of pulses a are set based on external information. This only needs to be able to input the driving speed and the number of pulses to the microcomputer 7 such as an external switch and communication. Here, b is set as a = b. Next, step S6
In 02, a timer interruption time Tt according to the driving speed is set. This is short if the driving speed is fast, and long if the driving speed is slow.

【0036】次に、ステップS603で次の外部からの
駆動情報が来るまで待機し、駆動情報が来たら前記ステ
ップS601へ戻る。このように図6の処理動作を繰り
返しながらパルスモータ5を駆動させる。図7は実際に
駆動するためのPWMユニット7aの出力を制御してい
る割り込み処理ルーチン内の動作フローを示すフローチ
ャートである。同図のステップS701で図6のメイン
ルーチン内で設定される駆動パルス数aが0か否かを判
断する。そして、駆動パルス数aが0であればパルスモ
ータ5を駆動しないことなので、ステップS702でP
WMユニット7aの出力端子E,Fからの出力を停止し
てパルスモータ5の駆動を停止した後、本処理動作を終
了する。また、駆動パルス数aが0でなければ、ステッ
プS703で図5(a)の基本デューティ比データか
ら、そのときのパルスモータ5の位相状態を示すカウン
タA(例えば0〜63)でのデューティ比を読み出す。
次に、ステップS704でカウンタA≠63か否かを判
断し、カウンタA≠63ならばステップS705でカウ
ンタAをインクリメントしてステップS707へ進む。
また、カウンタA≠63でなければステップS706で
カウンタAを0にしてステップS707へ進む。このカ
ウンタAにより、正弦波の1周期を64分割した内の現
在の位相位置が分かる。ステップS707では、カウン
タAが8の倍数か否かを判断する。1周期を64分割し
た内の8の倍数のところが1パルス分となり、1周期分
が8パルスとなる。従って、ステップS707において
8の倍数でなければ、1パルス分の移動途中なので、そ
のまま本処理動作を終了する。また、前記ステップS7
07においてカウンタAが8の倍数ならばステップS7
08に進み、b=aか否かを判断する。そして、b=a
であれば駆動開始タイミングであることが分かり、ステ
ップS710へ進む。また、前記ステップS708にお
いてb=aでない場合は、ステップS709でb=1か
否かを判断する。そして、b=1であれば、あと1パル
スで停止なので、停止準備タイミングであることが分か
り、ステップS710へ進む。このステップS710で
は、上記図6のステップS602において設定したタイ
マーの割り込み時間をTtの2倍に設定して、ステップ
S714へ進む。これにより、駆動開始時と停止準備時
には、1パルス分の時間だけ駆動速度が遅くなる。この
ときの波形を表わしたのが図8であり、同図において、
横軸は時間を、縦軸は電流をそれぞれ示す。しかし、図
8は停止時のみしか上記動作を行っていない。また、図
8において、Xは停止時に遅くしなかったときの波形
で、Yが上記図7の動作のように、停止時に速度を遅く
したときの波形である。再び図7に戻って、前記ステッ
プS709においてb=1でなければ、ステップS71
1でb≠0か否かを判断し、b≠0であればステップS
712で上記図6のステップ602において設定したタ
イマー割り込み時間Ttを設定して(図8の〜)、
ステップS714へ進む。また、前記ステップS711
においてb≠0でなければ、ステップS713でPWM
ユニット7aの出力端子E,Fからの出力を停止しパル
スモータ5の駆動を停止した後、本処理動作を終了す
る。ステップS714ではbから1を引いた後、本処理
動作を終了する。図9は図7の動作フローに従い、駆動
速度600ppsで8パルス駆動させるときの波形の状
態を示す図である。同図の(a)は従来の駆動方法であ
り、同図の(b)は本発明の駆動方法である。上記図7
では、パルスモータ5の駆動開始時と停止時とで同じ速
度に変更するようにステップS710においてタイマー
割り込み時間を設定しているが、パルスモータ5の駆動
開始時と停止時とで異なる速度になるようにタイマー割
り込み時間を設定してもよい。また、上記図7では駆動
電流波形の形を決定するデューティ比データの分割数を
64に設定したが、これは、分割数が多ければ駆動電流
波形がより正弦波に近くなることを示し、64分割でな
くてもよい。また、上記図7ではパルスモータ5の駆動
開始と停止時の両方で速度の変更を行ったが、どちらか
片方だけで速度の変更を行ってもよい。以上詳述したよ
うに、マイコン7の割り込みの中で1パルス単位でパル
スモータ5の駆動開始時と停止時に、駆動速度を加速ま
たは減速することで、パルスモータ5の駆動開始時と停
止時の駆動電流波形が滑らかになり、パルスモータ5の
騒音を軽減することができる。また、図7では、パルス
モータ5の駆動開始時と停止時の1パルス間の速度を図
8のY波形のように変更したが、図8のZ波形のように
64分割のパルスモータ5の位相位置によって、1パル
ス間のタイマーの割り込み時間を徐々に遅くし、減速す
ることによって、より駆動電流波形を滑らかにすること
ができる。
Next, in step S603, the process waits until the next drive information from the outside comes, and when drive information comes, the process returns to step S601. Thus, the pulse motor 5 is driven while repeating the processing operation of FIG. FIG. 7 is a flowchart showing an operation flow in the interrupt processing routine for controlling the output of the PWM unit 7a for actually driving. In step S701 of the figure, it is determined whether the number of drive pulses a set in the main routine of FIG. 6 is 0 or not. If the number of drive pulses a is 0, the pulse motor 5 is not driven.
After the output from the output terminals E and F of the WM unit 7a is stopped and the driving of the pulse motor 5 is stopped, this processing operation ends. If the number of drive pulses a is not 0, the duty ratio of the counter A (for example, 0 to 63) indicating the phase state of the pulse motor 5 at that time is obtained from the basic duty ratio data of FIG. Is read.
Next, it is determined in step S704 whether or not the counter A ≠ 63. If the counter A ≠ 63, the counter A is incremented in step S705, and the flow advances to step S707.
If the counter A is not equal to 63, the counter A is set to 0 in step S706, and the process proceeds to step S707. With this counter A, the current phase position within one cycle of a sine wave divided into 64 can be determined. In step S707, it is determined whether or not the counter A is a multiple of eight. A multiple of 8 of one cycle divided into 64 is one pulse, and one cycle is eight pulses. Therefore, if it is not a multiple of 8 in step S707, it is in the middle of movement for one pulse, and thus this processing operation is terminated as it is. Step S7
If the counter A is a multiple of 8 at 07, step S7
In step 08, it is determined whether or not b = a. And b = a
If so, it is known that it is the drive start timing, and the process proceeds to step S710. If b = a is not satisfied in step S708, it is determined in step S709 whether b = 1. If b = 1, the operation is stopped in one more pulse, so that it is determined that the stop preparation timing is reached, and the process proceeds to step S710. In this step S710, the interruption time of the timer set in step S602 in FIG. 6 is set to twice the time Tt, and the process proceeds to step S714. As a result, at the start of driving and during the preparation for stopping, the driving speed is reduced by the time corresponding to one pulse. FIG. 8 shows the waveform at this time.
The horizontal axis indicates time, and the vertical axis indicates current. However, in FIG. 8, the above operation is performed only at the time of stop. In FIG. 8, X is a waveform when the speed is not slowed down when stopped, and Y is a waveform when the speed is slowed down when stopped as in the operation of FIG. Returning to FIG. 7 again, if b = 1 in step S709, step S71
It is determined whether or not b ≠ 0 at 1; if b ≠ 0, step S
At 712, the timer interruption time Tt set at the step 602 of FIG. 6 is set (see FIG. 8).
Proceed to step S714. Also, the step S711
If b ≠ 0 is not satisfied in step S713, the PWM
After the output from the output terminals E and F of the unit 7a is stopped and the driving of the pulse motor 5 is stopped, the processing operation ends. In step S714, 1 is subtracted from b, and this processing operation ends. FIG. 9 is a diagram showing a waveform state when eight pulses are driven at a driving speed of 600 pps according to the operation flow of FIG. FIG. 3A shows a conventional driving method, and FIG. 3B shows a driving method of the present invention. FIG. 7 above
In step S710, the timer interrupt time is set so that the speed is changed to the same speed when the pulse motor 5 starts driving and when the pulse motor 5 stops, but the speed differs between when the pulse motor 5 starts driving and when the pulse motor 5 stops. The timer interrupt time may be set as described above. In FIG. 7, the number of divisions of the duty ratio data for determining the shape of the drive current waveform is set to 64. This means that the drive current waveform becomes closer to a sine wave when the number of divisions is larger. It does not have to be a division. Further, in FIG. 7 described above, the speed is changed both when the driving of the pulse motor 5 is started and when the pulse motor 5 is stopped, but the speed may be changed only by either one of them. As described in detail above, the drive speed is accelerated or decelerated in units of one pulse during the interruption of the microcomputer 7 at the start and stop of the pulse motor 5, so that the drive of the pulse motor 5 is started and stopped. The drive current waveform becomes smooth, and the noise of the pulse motor 5 can be reduced. Further, in FIG. 7, the speed between one pulse at the time of starting and stopping the driving of the pulse motor 5 is changed as shown by the Y waveform in FIG. 8, but as shown by the Z waveform in FIG. The drive current waveform can be made smoother by gradually delaying and decelerating the interruption time of the timer between one pulse depending on the phase position.

【0037】(第2の実施の形態)次に、本発明の第2
の実施の形態を図10及び図11に基づき説明する。な
お、本実施の形態に係るパルスモータ制御装置の基本的
な構成は、上述した第1の実施の形態における図1及び
図2と同一であるから、両図を流用して説明する。
(Second Embodiment) Next, a second embodiment of the present invention will be described.
The embodiment will be described with reference to FIGS. Note that the basic configuration of the pulse motor control device according to the present embodiment is the same as that in FIGS. 1 and 2 in the first embodiment described above, and therefore will be described with reference to both drawings.

【0038】上述した第1の実施の形態では、パルスモ
ータ5の駆動開始時或いは停止時に、距離として1パル
ス分だけ加速または減速をする方法を例示したが、高速
で駆動しているときは、1パルス分では加速または減速
距離として短すぎるので、本実施の形態は速度に応じて
数パルス分の加速または減速を行うようにしたものであ
る。
In the above-described first embodiment, the method of accelerating or decelerating by one pulse as a distance at the time of starting or stopping the driving of the pulse motor 5 has been described. Since the acceleration or deceleration distance for one pulse is too short, the present embodiment is designed to accelerate or decelerate for several pulses according to the speed.

【0039】図10は本実施の形態に係るパルスモータ
制御装置におけるマイコン7内の割り込み動作フローを
示すフローチャートである。メインルーチンは上述した
第1の実施の形態における図6と同様である。割り込み
内での処理を以下に説明する。
FIG. 10 is a flowchart showing an interrupt operation flow in the microcomputer 7 in the pulse motor control device according to the present embodiment. The main routine is the same as FIG. 6 in the first embodiment. The processing in the interrupt will be described below.

【0040】図10において、ステップS1001で駆
動パルス数a=0か否かを判断し、駆動パルス数a=0
であれば、ステップS1002でPWMユニット7aの
出力端子E,Fからの出力を停止させて、パルスモータ
5の駆動を停止させた後、本処理動作を終了する。ま
た、駆動パルス数a=0でなければ、ステップS100
3で駆動速度(Vt)に応じた加速或いは減速するべき
距離(パルス換算)cを設定する。この距離cは駆動速
度(Vt)が高速ほど多くなり、低速時には少なくな
る。この値はパルスモータ5の開始時と停止時とで異な
ってもよい。異なる場合は、開始用の距離c1、停止用
の距離c2を設定することになる。
In FIG. 10, in step S1001, it is determined whether the number of drive pulses a = 0 or not.
If so, in step S1002, the output from the output terminals E and F of the PWM unit 7a is stopped to stop the driving of the pulse motor 5, and then this processing operation is ended. If the number of drive pulses a is not 0, step S100
In step 3, the distance (pulse conversion) c to be accelerated or decelerated according to the driving speed (Vt) is set. This distance c increases as the driving speed (Vt) increases, and decreases as the driving speed (Vt) decreases. This value may be different between when the pulse motor 5 starts and when it stops. If they are different, a start distance c1 and a stop distance c2 are set.

【0041】次に、ステップS1004で図5(a)の
基本デューティ比データから、そのときのパルスモータ
5の位相状態を示すカウンタA(例えば0〜63)での
デューティ比を読み出す。次に、ステップS1005で
カウンタA≠63か否かを判断し、カウンタA≠63で
あれば、ステップS1006でカウンタAをインクリメ
ントしてステップS1008へ進む。また、カウンタA
≠63でなければ、ステップS1007でカウンタAを
0にしてステップS1008へ進む。このカウンタAに
より、正弦波の1周期を64分割した内の、現在の位相
位置が分かる。
Next, in step S1004, the duty ratio of the counter A (for example, 0 to 63) indicating the phase state of the pulse motor 5 at that time is read from the basic duty ratio data of FIG. Next, it is determined in step S1005 whether or not the counter A ≠ 63. If the counter A ≠ 63, the counter A is incremented in step S1006, and the process proceeds to step S1008. Also, counter A
If not $ 63, the counter A is set to 0 in step S1007, and the flow advances to step S1008. With this counter A, the current phase position within one cycle of the sine wave divided into 64 can be determined.

【0042】ステップS1008ではカウンタAが8の
倍数か否かを判断する。1周期を64分割した内の8の
倍数のところが1パルス分となり、1周期分が8パルス
となる。従って、前記ステップS1008においてカウ
ンタAが8の倍数でなければ、1パルス分の移動途中な
ので、そのまま本処理動作を終了する。
In step S1008, it is determined whether or not the counter A is a multiple of eight. A multiple of 8 of one cycle divided into 64 is one pulse, and one cycle is eight pulses. Therefore, if the counter A is not a multiple of 8 in step S1008, it is in the process of moving for one pulse, and thus the processing operation is terminated.

【0043】また、前記ステップS1008においてカ
ウンタAが8の倍数であればステップS1009に進
み、b≧a−cであるか否かを判断する。そして、前記
ステップS1003において駆動開始時用としてc1が
設定されている場合はbをa−c1と比較する。そし
て、前記ステップS1009においてb≧a−cであれ
ば、駆動開始タイミングの加速距離内であることが分か
り、ステップS1011に進む。また、前記ステップS
1009においてb≧a−cでなければ、ステップS1
010でb≦cか否かを判断する。そして、前記ステッ
プS1003において停止時用としてc2が設定されて
いる場合はbをc2と比較する。そして、前記ステップ
S1010においてb≦cであれば、あとcパルスで停
止なので停止準備タイミングであることが分かり、ステ
ップS1011に進む。このステップS1011では、
前記図6のステップS602において設定したタイマー
の割り込み時間をTtの2倍に設定して、ステップS1
015へ進む。これにより、駆動開始時と停止準備時に
は、cパルス分の時間だけ駆動速度が遅くなる。
If it is determined in step S1008 that the counter A is a multiple of 8, the flow advances to step S1009 to determine whether b ≧ ac. If c1 is set for the start of driving in step S1003, b is compared with a-c1. If b ≧ ac in step S1009, it is understood that the current time is within the acceleration distance of the drive start timing, and the process proceeds to step S1011. The step S
If b ≧ ac is not satisfied in step 1009, step S1
At 010, it is determined whether or not b ≦ c. Then, if c2 is set for stopping at step S1003, b is compared with c2. If b ≦ c in step S1010, it is determined that it is the stop preparation timing because the stop is performed at the end of the c pulse, and the process proceeds to step S1011. In this step S1011,
The interruption time of the timer set in step S602 in FIG. 6 is set to twice Tt, and step S1
Go to 015. As a result, at the time of driving start and at the time of preparation for stopping, the driving speed is reduced by the time corresponding to the c pulse.

【0044】このときの波形を表わしたのが図11で、
同図において、横軸は時間を、縦軸は電流をそれぞれ表
わす。しかし、図11においては停止時のみしか上記動
作を行っていない。また、図11において、Xは停止時
に遅くしなかったときの波形であり、Yは上述した第1
の実施の形態における図7の動作のように、停止時に1
パルス間だけ速度を遅くしたときの波形である。更に、
図11において、Zは図10の動作のように、速度に応
じて減速する距離(パルス数)を可変にし、ここでは2
パルス分の減速を行っているときの波形である。
FIG. 11 shows the waveform at this time.
In the figure, the horizontal axis represents time, and the vertical axis represents current. However, in FIG. 11, the above operation is performed only at the time of stop. In FIG. 11, X is a waveform when the delay is not made at the time of stopping, and Y is the first waveform described above.
As in the operation of FIG.
This is a waveform when the speed is reduced only between pulses. Furthermore,
In FIG. 11, Z changes the deceleration distance (number of pulses) according to the speed as in the operation of FIG.
This is a waveform when deceleration for a pulse is being performed.

【0045】再び図10に戻って、前記ステップS10
10においてb≦cでなければ、ステップS1012で
b≠0か否かを判断し、b≠0であれば、ステップS1
013で前記図6のステップS602において設定した
タイマー割り込み時間Ttを設定し(図11の〜
)、ステップS1015へ進む。このステップS10
15ではbから1を減じた後、本処理動作を終了する。
また、前記ステップS1012においてb≠0でなけれ
ば、ステップS1014でPWMユニット7aの出力端
子E,Fからの出力を停止し、パルスモータ5の駆動を
停止した後、本処理動作を終了する。
Returning again to FIG. 10, step S10
If it is not b ≦ c in 10, it is determined in step S1012 whether or not b ≠ 0.
In step 013, the timer interruption time Tt set in step S602 in FIG.
), And proceed to step S1015. This step S10
At 15, after subtracting 1 from b, this processing operation ends.
If b ≠ 0 is not satisfied in step S1012, the output from the output terminals E and F of the PWM unit 7a is stopped in step S1014, and the drive of the pulse motor 5 is stopped.

【0046】図10のステップS1011においては、
モータ駆動開始時と停止時とで同じ速度に変更するよう
にタイマー割り込みを設定しているが、開始時と停止時
とで異なる速度になるように設定してもよい。また、図
10では駆動電流波形の形を決定するデューティ比デー
タの分割数を64に設定したが、これは、分割数が多け
れば駆動電流波形がより正弦波に近くなることを示し、
64分割でなくてもよい。また、図10ではモータ駆動
開始時と停止時の両方で速度の変更を行ったが、どちら
か片方だけで速度の変更を行ってもよい。
In step S1011 of FIG.
Although the timer interrupt is set so as to change to the same speed when the motor drive starts and when the motor stops, the timer interrupt may be set to be different between the start and the stop. Also, in FIG. 10, the number of divisions of the duty ratio data for determining the shape of the drive current waveform is set to 64, which indicates that the drive current waveform becomes closer to a sine wave as the number of divisions increases.
It does not have to be 64 divisions. Further, in FIG. 10, the speed is changed at both the start and the stop of the motor driving, but the speed may be changed at only one of them.

【0047】以上のように、マイコン7の割り込みの中
で、メインルーチン内で決定された駆動速度に応じて数
パルス単位で、駆動開始時と停止時に、駆動速度を加速
または減速することで、高速駆動しているときの駆動開
始時と停止時とにおける駆動電流波形が滑らかになり、
パルスモータ5の騒音を軽減することができる。
As described above, during the interruption of the microcomputer 7, the drive speed is accelerated or decelerated at the start and stop of the drive in units of several pulses in accordance with the drive speed determined in the main routine. The drive current waveform at the time of driving start and stop at the time of high-speed driving becomes smooth,
The noise of the pulse motor 5 can be reduced.

【0048】(第3の実施の形態)次に、本発明の第3
の実施の形態を図12〜図17に基づき説明する。な
お、本実施の形態に係るパルスモータ制御装置の基本的
な構成は、上述した第1の実施の形態における図1及び
図2と同一であるから、両図を流用して説明する。
(Third Embodiment) Next, a third embodiment of the present invention will be described.
The embodiment will be described with reference to FIGS. Note that the basic configuration of the pulse motor control device according to the present embodiment is the same as that in FIGS. 1 and 2 in the first embodiment described above, and therefore will be described with reference to both drawings.

【0049】第1及び第2の実施の形態では、パルスモ
ータ5の駆動開始時と停止時とにおいて、ある期間だけ
加速または減速をする方法を例示したが、正弦波駆動し
ているときは、駆動の位相位置により速度の変更をしな
くても滑らかな駆動開始及び停止のできる位相がある。
また、速度を大きく変更しなくてはならない位相もあ
る。従って、本実施の形態では、駆動開始時と停止時に
おける駆動位相によって速度を変更するようにしたもの
である。
In the first and second embodiments, the method of accelerating or decelerating the pulse motor 5 for a certain period at the time of starting and stopping the driving of the pulse motor 5 has been described. There is a phase in which the driving can be started and stopped smoothly without changing the speed depending on the driving phase position.
There are also phases where the speed has to be changed significantly. Therefore, in the present embodiment, the speed is changed according to the drive phase at the time of starting and at the time of stopping.

【0050】図12は本実施の形態に係るパルスモータ
制御装置におけるマイコン7内の割り込み動作フローを
示すフローチャートであり、メインルーチンは上述した
第1の実施の形態における図6と同一である。
FIG. 12 is a flowchart showing an interrupt operation flow in the microcomputer 7 in the pulse motor control device according to the present embodiment. The main routine is the same as that in FIG. 6 in the first embodiment.

【0051】割り込み内での処理動作について以下に説
明する。
The processing operation in the interrupt will be described below.

【0052】図12のステップS1201で駆動パルス
数a=0か否かを判断し、駆動パルス数a=0であれば
ステップS1202でPWMユニット7aの出力端子
E,Fからの出力を停止させパルスモータの駆動を停止
させた後、本処理動作を終了する。また、前記ステップ
S1201において駆動パルス数a=0でなければステ
ップS1403で、図5の(a)に示す基本デューティ
比データから、そのときのパルスモータ5の位相状態を
示すカウンタA(例えば0〜63)でのデューティ比を
読み出す。次に、ステップS1204でカウンタA≠6
3か否かを判断し、カウンタA≠63であればステップ
S1205でカウンタAをインクリメントした後、ステ
ップS1207へ進む。また、前記ステップS1204
においてカウンタA≠63でなければステップS120
6でカウンタAを0にした後、ステップS1207へ進
む。このカウンタAにより、正弦波の1周期を64分割
した内の、現在の位相位置が分かる。
It is determined in step S1201 in FIG. 12 whether the number of drive pulses a = 0 or not. If the number of drive pulses a = 0, the output from the output terminals E and F of the PWM unit 7a is stopped in step S1202 to change the pulse. After the driving of the motor is stopped, this processing operation ends. If the number of drive pulses a is not 0 in step S1201, a counter A (for example, 0 to 0) indicating the phase state of the pulse motor 5 at that time is obtained in step S1403 from the basic duty ratio data shown in FIG. The duty ratio in step 63) is read. Next, in step S1204, the counter A # 6
It is determined whether it is 3 or not. If the counter A is not equal to 63, the counter A is incremented in step S1205, and then the process proceeds to step S1207. Also, the step S1204
If the counter A is not 63 at step S120
After setting the counter A to 0 in step 6, the process proceeds to step S1207. With this counter A, the current phase position within one cycle of the sine wave divided into 64 can be determined.

【0053】ステップS1207では、カウンタAが8
の倍数か否かを判断する。1周期を64分割した内の8
の倍数のところが1パルス分となり、1周期分が8パル
スとなる。従って、ステップS1207においてカウン
タAが8の倍数でなければ、1パルス分の移動途中なの
で、そのまま本処理動作を終了する。また、前記ステッ
プS1207においてカウンタAが8の倍数ならばステ
ップS1208に進み、b=aか否かを判断する。そし
て、b=aであれば、駆動開始タイミングの加速距離内
であることが分かり、ステップS1210へ進む。ま
た、前記ステップS1208においてb=aでなけれ
ば、ステップS1209でb=1か否かを判断する。そ
して、b=1であれば、あと1パルスで停止なので、停
止準備タイミングであることが分かり、ステップS12
10へ進む。
In step S1207, the counter A is set to 8
Judge whether it is a multiple of. 8 out of 64 divided 1 cycle
A multiple of is one pulse, and one cycle is eight pulses. Therefore, if the counter A is not a multiple of 8 in step S1207, it is in the process of moving for one pulse, and thus the present processing operation ends. If it is determined in step S1207 that the counter A is a multiple of 8, the flow advances to step S1208 to determine whether b = a. Then, if b = a, it is found that it is within the acceleration distance of the drive start timing, and the process proceeds to step S1210. If it is not b = a in step S1208, it is determined in step S1209 whether b = 1. If b = 1, the operation is stopped in one more pulse, so that it is determined that the stop preparation timing is reached, and step S12 is performed.
Proceed to 10.

【0054】このステップS1210では、位相カウン
タAが8、16、40、48のいずれか否かを判断す
る。ここで位相カウンタAの値と位相の関係を図17に
示す。前記ステップS1210においてA=8,16,
40,48のいずれかであれば、正弦波波形の中でもっ
とも傾きが急なところなので、ステップS1211に進
み、タイマ割り込みをTrの4倍に設定し、通常速度の
1/4にし、十分波形の傾きをなだらかにした後、ステ
ップS1212へ進む。
In this step S1210, it is determined whether or not the phase counter A is 8, 16, 40 or 48. FIG. 17 shows the relationship between the value of the phase counter A and the phase. In step S1210, A = 8, 16,
If it is any of 40 and 48, since the slope is the steepest in the sine wave waveform, the flow advances to step S1211 to set the timer interrupt to four times Tr and set it to 1/4 of the normal speed to obtain a sufficient waveform. Then, the process proceeds to step S1212.

【0055】このときの波形を表わしたのが図13であ
り、同図において、横軸は時間を、縦軸は電流をそれぞ
れ示す。しかし、図13においては停止時のみしか上記
動作を行っていない。また、図13において、Xは停止
時に遅くしなかったときの波形であり、Yは図12の動
作のように、停止時に1パルス間だけ速度を遅くしたと
きの波形である。
FIG. 13 shows the waveform at this time, in which the horizontal axis represents time and the vertical axis represents current. However, in FIG. 13, the above operation is performed only at the time of stop. In FIG. 13, X is a waveform when the speed is not delayed when stopped, and Y is a waveform when the speed is reduced for one pulse during the stop as in the operation of FIG.

【0056】前記ステップS1210においてA=8,
16,40,48のいずれでもない(位相の位置が異な
る)場合は、ステップS1213で位相カウンタAが
0、32のいずれか否かを判断する。そして、位相カウ
ンタAが0、32のいずれかであれば、ステップS12
14でタイマー割り込みをTrの2倍に設定し、通常速
度の1/2にし、十分波形の傾きをなだらかにした後、
ステップS1212へ進む。
In step S1210, A = 8,
If it is not any one of 16, 40, and 48 (the position of the phase is different), it is determined whether the phase counter A is 0 or 32 in step S1213. If the phase counter A is either 0 or 32, step S12
At 14, the timer interrupt is set to twice the Tr, to half the normal speed, and the waveform is gently sloped.
Proceed to step S1212.

【0057】このときの波形を表わしたのが図14であ
り、同図において、横軸は時間を、縦軸は電流をそれぞ
れ示す。しかし、図14は停止時のみしか上記動作を行
っていない。図14において、Xは停止時に遅くしなか
ったときの波形であり、Yは図12の動作のように、停
止時に1パルス間だけ速度を遅くしたときの波形であ
る。
FIG. 14 shows the waveform at this time, in which the horizontal axis represents time and the vertical axis represents current. However, in FIG. 14, the above operation is performed only at the time of stop. In FIG. 14, X is a waveform when the speed is not delayed when stopped, and Y is a waveform when the speed is reduced by one pulse during the stop as in the operation of FIG.

【0058】前記ステップS1213において位相カウ
ンタAが0、32のいずれでもない(位相が異なる)場
合は、つまりA=24、56のいずれかのときは、正弦
波波形の十分なだらかなところなので、速度の変更は必
要ないからステップS1216でメインルーチンの図6
のステップS602において設定した通常タイマー割り
込み時間Trを設定した後、ステップS1212へ進
む。
If the phase counter A is not 0 or 32 (different phases) in step S1213, that is, if A = 24 or 56, the sine wave waveform is a sufficiently gentle place, so Since no change is required, the main routine shown in FIG.
After setting the normal timer interruption time Tr set in step S602, the process proceeds to step S1212.

【0059】この時の波形を表わしたのが図15であ
り、同図において、横軸は時間を、縦軸は電流をそれぞ
れ示す。しかし、図15は停止時のみしか上記動作を行
っていないと共に、停止時に速度の変化はない。
FIG. 15 shows the waveform at this time. In FIG. 15, the horizontal axis represents time, and the vertical axis represents current. However, in FIG. 15, the above operation is performed only at the time of stop, and there is no change in speed at the time of stop.

【0060】一方、前記ステップS1209においてb
=1でなければ、ステップS1215でb≠0か否かを
判断し、b≠0であれば、ステップS1216で図6の
ステップS602において設定したタイマー割り込み時
間Ttを設定する。また、前記ステップS1215にお
いてb≠0でなければ、ステップS1417でPWMユ
ニット7aの出力端子E,Fからの出力を停止し、モー
タの駆動を停止した後、本処理動作を終了する。また、
このステップS1212ではbから1を減じた後、本処
理動作を終了する。
On the other hand, in step S1209, b
If it is not = 1, it is determined whether or not b で 0 in step S1215. If b ≠ 0, the timer interruption time Tt set in step S602 in FIG. 6 is set in step S1216. If b ≠ 0 is not satisfied in step S1215, the output from the output terminals E and F of the PWM unit 7a is stopped in step S1417, the driving of the motor is stopped, and this processing operation ends. Also,
In this step S1212, after subtracting 1 from b, this processing operation ends.

【0061】図16は図12の動作フローに従い、駆動
速度600ppsで8パルス駆動させたときの波形の様
子を示す図である。同図の(a)は従来の駆動方法であ
り、(b)が本実施の形態に係る駆動方法である。
FIG. 16 is a diagram showing a waveform when eight pulses are driven at a driving speed of 600 pps in accordance with the operation flow of FIG. FIG. 3A shows a conventional driving method, and FIG. 3B shows a driving method according to the present embodiment.

【0062】図12のステップ1211、1212、1
215において、パルスモータ5の駆動開始時と停止時
とで同じ速度に変更するようにタイマー割り込みを設定
しているが、パルスモータ5の駆動開始時と停止時とで
異なる速度になるように設定してもよい。また、図12
では駆動電流波形の形を決定するデューティ比データの
分割数を64に設定したが、これは、分割数が多ければ
駆動電流波形がより正弦波に近くなることを示し、64
分割でなくてもよい。また、図12ではパルスモータ5
の駆動開始時と停止時の両方で速度の変更を行ったが、
どちらか片方だけで速度の変更を行ってもよい。
Steps 1211, 1212, 1 in FIG.
In 215, the timer interrupt is set so that the speed is changed to the same speed when the pulse motor 5 starts and stops, but the speed is set to be different between when the pulse motor 5 starts and stops. May be. FIG.
Has set the number of divisions of the duty ratio data for determining the shape of the drive current waveform to 64, which means that the drive current waveform becomes closer to a sine wave when the number of divisions is larger.
It does not have to be a division. Also, in FIG.
Speed was changed both at the start and stop of the drive,
The speed may be changed by only one of them.

【0063】以上のように、マイコン7の割り込みの中
で、駆動位相位置に応じて、必要な位相でのみ、駆動開
始時或いは停止時に駆動速度を加速または減速すること
で、高速駆動しているときの駆動開始時と停止時の駆動
電流波形がより滑らかになり、パルスモータ5の騒音を
軽減することができる。
As described above, during the interruption of the microcomputer 7, the driving speed is accelerated or decelerated at the start or stop of the driving only at a necessary phase according to the driving phase position, thereby performing high-speed driving. In this case, the drive current waveforms at the start and stop of the drive become smoother, and the noise of the pulse motor 5 can be reduced.

【0064】(第4の実施の形態)次に、本発明の第4
の実施の形態ついて図18及び図19に基づき説明す
る。なお、本実施の形態に係るパルスモータ制御装置の
基本的な構成は、上述した第1の実施の形態における図
1及び図2と同一であるから、両図を流用して説明す
る。
(Fourth Embodiment) Next, a fourth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG. 18 and FIG. Note that the basic configuration of the pulse motor control device according to the present embodiment is the same as that in FIGS. 1 and 2 in the first embodiment described above, and therefore will be described with reference to both drawings.

【0065】上述した第1及び第2の実施の形態では、
パルスモータ5の駆動開始時と停止時に、あるパルス分
だけタイマー割り込みの時間を変更して、加速または減
速をする方法を例示したが、この方法の場合、図8及び
図11に示すように、減速しないときの目的位置に達
するのが、減速したことにより′、″のように遅く
なってしまう。そこで、本実施の形態では、タイマー割
り込み時間を変更して駆動速度を遅くして、駆動開始時
と停止時の駆動電流波形を滑らかにし、パルスモータ5
の騒音を軽減する方法ではなく、マイコン7のROM7
c内に記憶しているデューティ比を可変にして、駆動電
流波形の形を変更して、駆動開始時と停止時の駆動電流
波形を滑らかにし、駆動速度を変えることなく、パルス
モータ5の騒音を軽減するようにしたものである。
In the first and second embodiments described above,
At the time of starting and stopping the driving of the pulse motor 5, the method of changing the timer interrupt time by a certain pulse to accelerate or decelerate is exemplified. In the case of this method, as shown in FIGS. Reaching the target position when the vehicle is not decelerated is delayed as indicated by ',' due to the deceleration. Therefore, in the present embodiment, the timer interrupt time is changed to reduce the driving speed, and the driving is started. The drive current waveform at the time of stop and stop,
It is not a method to reduce the noise of the
By changing the duty ratio stored in c, changing the shape of the drive current waveform, smoothing the drive current waveform at the start and stop of the drive, and reducing the noise of the pulse motor 5 without changing the drive speed. Is to be reduced.

【0066】図18は本実施の形態に係るパルスモータ
制御装置におけるマイコン7内の割り込み動作フローを
示すフローチャートであり、メインルーチンは上述した
第1の実施の形態における図6と同一である。割り込み
内での処理を以下に説明する。
FIG. 18 is a flowchart showing an interrupt operation flow in the microcomputer 7 in the pulse motor control device according to the present embodiment, and the main routine is the same as that in FIG. 6 in the first embodiment. The processing in the interrupt will be described below.

【0067】図18のステップS1801で駆動パルス
数a=0か否かを判断し、駆動パルス数a=0であれ
ば、ステップS1802でPWMユニット7aの出力端
子E,Fからの出力を停止させ、パルスモータ5の駆動
を停止させた後、本処理動作を終了する。また、前記ス
テップS1801において駆動パルス数a=0でなけれ
ば、ステップS1803でカウンタA≠63か否かを判
断し、カウンタA≠63であれば、ステップS1804
でカウンタAをインクリメントし、ステップS1805
へ進む。また、前記ステップS1803においてカウン
タA≠63でなければステップS1805でカウンタA
を0にした後、ステップS1805へ進む。このカウン
タAにより、正弦波の1周期を64分割した内の、現在
の位相位置が分かる。
It is determined in step S1801 in FIG. 18 whether the number of drive pulses a = 0 or not. If the number of drive pulses a = 0, output from the output terminals E and F of the PWM unit 7a is stopped in step S1802. After the driving of the pulse motor 5 is stopped, this processing operation is terminated. If the number of drive pulses a is not 0 in step S1801, it is determined in step S1803 whether or not the counter A ≠ 63. If the counter A ≠ 63, the process proceeds to step S1804.
In step S1805, the counter A is incremented.
Proceed to. If the counter A is not equal to 63 in step S1803, the counter A is determined in step S1805.
Is set to 0, and the process proceeds to step S1805. With this counter A, the current phase position within one cycle of the sine wave divided into 64 can be determined.

【0068】図5の(a)に示す基本デューティ比デー
タから、そのときのパルスモータ5の位相状態を示すカ
ウンタA(例えば、0〜63)でのデューティ比を図1
0のステップS1004で読み出す。次に、ステップS
1005でカウンタA≠63か否かを判断し、カウンタ
A≠63であればステップS1006でカウンタAをイ
ンクリメントし、カウンタA≠63でなければステップ
S1007でカウンタAを0にする。このカウンタAに
より、正弦波の1周期を64分割した内の、現在の位相
位置が分かる。
From the basic duty ratio data shown in FIG. 5A, the duty ratio of the counter A (for example, 0 to 63) indicating the phase state of the pulse motor 5 at that time is shown in FIG.
0 is read in step S1004. Next, step S
In step 1005, it is determined whether or not the counter A ≠ 63. If the counter A ≠ 63, the counter A is incremented in step S1006. If the counter A ≠ 63, the counter A is set to 0 in step S1007. With this counter A, the current phase position within one cycle of the sine wave divided into 64 can be determined.

【0069】図18に戻って、ステップS1805で
は、b=aか否かを判断し、b=aであれば、駆動開始
タイミングのであることが分かり、ステップS1806
へ進む。また、前記ステップS1805においてb=a
でなければ、ステップS1810でb=1か否かを判断
する。そして、b=1であれば、1パルスで停止なの
で、停止準備タイミングであることが分かり、ステップ
S1806へ進む。このステップS1806では、マイ
コン7内に、駆動開始時及び停止時用デューティ比デー
タとして記憶している図5の(b)に示すデータテーブ
ルから、そのときのパルスモータ5の位相状態を示すカ
ウンタA(例えば、0〜63)でのデューティ比を読み
出した後、ステップS1807へ進む。
Returning to FIG. 18, in step S1805, it is determined whether or not b = a. If b = a, it is determined that the drive start timing is reached, and step S1806 is performed.
Proceed to. In step S1805, b = a
If not, it is determined in step S1810 whether or not b = 1. If b = 1, the operation is stopped by one pulse, so that it is determined that it is the stop preparation timing, and the process proceeds to step S1806. In this step S1806, a counter A indicating the phase state of the pulse motor 5 at that time is obtained from the data table shown in FIG. 5B stored in the microcomputer 7 as the duty ratio data for driving start and stop. After reading the duty ratio (for example, 0 to 63), the process proceeds to step S1807.

【0070】一方、前記ステップS1810においてb
=1でなければ、ステップS1811でb≠0か否かを
判断し、b≠0であればステップS1812でマイコン
7内に通常のデューティ比データとして記憶している図
5(a)に示すデータテーブルから、そのときのパルス
モータ5の位相状態を示すカウンタA(例えば、0〜6
3)でのデューティ比を読み出し(図19の〜)、
ステップS1807へ進む。また、前記ステップS18
11においてb≠0でなければ1813でPWMユニッ
ト7aの出力端子E,Fからの出力を停止し、パルスモ
ータ5の駆動を停止した後、本処理動作を終了する。
On the other hand, in step S1810, b
If it is not = 1, it is determined in step S1811 whether b ≠ 0. If b で あ れ ば 0, the data shown in FIG. 5A stored in the microcomputer 7 as normal duty ratio data in step S1812. From the table, a counter A (for example, 0 to 6) indicating the phase state of the pulse motor 5 at that time is displayed.
Read the duty ratio in 3) (-in FIG. 19),
Proceed to step S1807. Step S18
If b ≠ 0 is not satisfied in 11, the output from the output terminals E and F of the PWM unit 7 a is stopped in 1813, the driving of the pulse motor 5 is stopped, and the processing operation is terminated.

【0071】ステップS1807では、カウンタAが8
の倍数か否かを判断する。1周期を64分割した内の8
の倍数のところが1パルス分となり、1周期分が8パル
スとなる。従って、ステップS1807においてカウン
タAが8の倍数でなければ、1パルス分の移動途中なの
で、そのまま本処理動作をを終了する。また、前記ステ
ップS1807においてカウンタAが8の倍数ならば、
ステップS1808でb=b−1を計算し、図6のステ
ップS601において設定した駆動パルスaに対して、
あと何パルス駆動するかをbに設定した後、本処理動作
を終了する。
In step S1807, the counter A is set to 8
Judge whether it is a multiple of. 8 out of 64 divided 1 cycle
A multiple of is one pulse, and one cycle is eight pulses. Therefore, if the counter A is not a multiple of 8 in step S1807, it is in the process of moving for one pulse, and thus this processing operation is terminated. If the counter A is a multiple of 8 in the step S1807,
In step S1808, b = b-1 is calculated, and the driving pulse a set in step S601 in FIG.
After the number of pulses to be driven is set to b, the processing operation ends.

【0072】このときの波形を表わしたのが図19であ
り、同図において、横軸は時間を、縦軸は電流をそれぞ
れ示す。しかし、図19は停止時のみしか上記動作を行
っていない。図19において、Xは停止時に駆動電流波
形の形を変更しなかったときの波形であり、Zは本実施
の形態の図18の動作のように、停止時に1パルス間だ
け駆動電流波形の形を変更したときの波形である。
FIG. 19 shows the waveform at this time. In FIG. 19, the horizontal axis represents time, and the vertical axis represents current. However, in FIG. 19, the above operation is performed only at the time of stop. In FIG. 19, X is the waveform when the shape of the drive current waveform is not changed at the time of stop, and Z is the shape of the drive current waveform for only one pulse at the time of stop, as in the operation of FIG. 18 of the present embodiment. Is a waveform when is changed.

【0073】図18のステップS1806においては、
パルスモータ5の駆動開始時と停止時とで同じ波形の形
に変更するようにデューティ比のデータ読み出しを行っ
ているが、パルスモータ5の駆動開始時と停止時とで異
なる波形になるようにマイコン7のROM7c内に駆動
開始用と停止用のデューティ比データを記憶してもよ
い。また、図18では駆動電流波形の形を決定するデュ
ーティ比データの分割数を64に設定したが、これは、
分割数が多ければ駆動電流波形がより正弦波に近くなる
ことを示し、64分割でなくてもよい。また、図18で
はパルスモータ5の駆動開始時と停止時の両方で波形の
変更を行ったが、どちらか片方だけで波形の変更を行っ
てもよい。
In step S1806 in FIG. 18,
Although the duty ratio data is read so as to change to the same waveform at the start and stop of the driving of the pulse motor 5, the waveform is different between the start and the stop of the driving of the pulse motor 5. The duty ratio data for driving start and stop may be stored in the ROM 7c of the microcomputer 7. In FIG. 18, the number of divisions of the duty ratio data for determining the shape of the drive current waveform is set to 64.
If the number of divisions is large, it indicates that the drive current waveform is closer to a sine wave. In FIG. 18, the waveform is changed both when the driving of the pulse motor 5 is started and when it is stopped. However, the waveform may be changed by only one of them.

【0074】以上のように、マイコン7の割り込みの中
で、パルスモータ5の駆動開始時と停止時とにおいて駆
動電流波形の形を変更し、パルスモータ5の駆動開始時
と停止時の駆動電流波形を滑らかにすることで、パルス
モータ5の駆動時間を変えることなく、パルスモータ5
の騒音を軽減することができる。
As described above, during the interruption of the microcomputer 7, the shape of the driving current waveform is changed between when the driving of the pulse motor 5 is started and when it is stopped, and the driving current when the driving of the pulse motor 5 is started and when it is stopped is changed. By smoothing the waveform, the pulse motor 5 can be driven without changing the drive time of the pulse motor 5.
Noise can be reduced.

【0075】(第5の実施の形態)次に、本発明の第5
の実施の形態について説明する。上述した第4の実施の
形態では、パルスモータ5の駆動開始時と停止時に駆動
電流波形の形を変更して、パルスモータ5の駆動開始時
と停止時の駆動電流波形を滑らかにする方法を例示した
が、高速で駆動しているときは、駆動電流波形の形だけ
の変更では波形が滑らかにならない。そこで、本実施の
形態においては、上述した第1の実施の形態の動作を行
うと、駆動開始時と停止時には駆動電流波形の形を変更
すると共に、駆動速度を遅くすることにより、より滑ら
かな騒音のない駆動を実現できるようにしたものであ
る。
(Fifth Embodiment) Next, a fifth embodiment of the present invention will be described.
An embodiment will be described. In the above-described fourth embodiment, a method of changing the shape of the drive current waveform at the time of starting and stopping the driving of the pulse motor 5 to smooth the driving current waveform at the time of starting and stopping the driving of the pulse motor 5 is described. As illustrated, when driving at high speed, changing the shape of the drive current waveform alone does not make the waveform smooth. Therefore, in the present embodiment, when the operation of the above-described first embodiment is performed, the shape of the drive current waveform is changed at the time of starting and stopping the driving, and the driving speed is reduced, so that a smoother operation is achieved. This makes it possible to realize noiseless driving.

【0076】このときの波形を表わしたのが図19で、
同図において、横軸は時間を、縦軸は電流をそれぞれ示
す。しかし、図19は停止時のみしか上記動作を行って
いない。図19において、Yは第1の実施の形態の動作
を行い、駆動速度を遅くしたときの波形である。また、
図19において、Wは第5の実施の形態の動作のよう
に、停止時に1パルス間だけ駆動電流波形の形と速度を
変更したときの波形である。
FIG. 19 shows the waveform at this time.
In the figure, the horizontal axis represents time, and the vertical axis represents current. However, in FIG. 19, the above operation is performed only at the time of stop. In FIG. 19, Y is a waveform when the operation of the first embodiment is performed and the driving speed is reduced. Also,
In FIG. 19, W is a waveform when the shape and speed of the drive current waveform are changed only for one pulse at the time of stop, as in the operation of the fifth embodiment.

【0077】(第6の実施の形態)次に、本発明の第6
の実施の形態について説明する。上述した第4の実施の
形態では、パルスモータ5の駆動開始時と停止時に駆動
電流波形の形を変更して、駆動開始時と停止時の駆動電
流波形を滑らかにする方法を例示したが、高速で駆動し
ているときは、駆動電流波形の形だけの変更では、波形
が滑らかにならない。そこで、第4の実施の形態におい
て第2の実施の形態の動作を行い、駆動速度に応じた期
間だけ駆動開始時と停止時に駆動電流波形の形を変更す
ることにより、より滑らかな騒音のない駆動を実現でき
る。
(Sixth Embodiment) Next, the sixth embodiment of the present invention will be described.
An embodiment will be described. In the above-described fourth embodiment, the method of changing the shape of the drive current waveform at the time of starting and stopping the driving of the pulse motor 5 and smoothing the driving current waveform at the time of starting and stopping the driving is exemplified. When driving at high speed, changing the shape of the drive current waveform alone does not make the waveform smooth. Therefore, the operation of the second embodiment is performed in the fourth embodiment, and the shape of the drive current waveform is changed at the start and stop of the drive only for a period corresponding to the drive speed, so that smoother noise is eliminated. Driving can be realized.

【0078】(第7の実施の形態)次に、本発明の第7
の実施の形態について説明する。上述した第4の実施の
形態では、パルスモータ5の駆動開始時と停止時に駆動
電流波形の形を変更して、駆動開始時と停止時の駆動電
流波形を滑らかにする方法を例示したが、高速駆動時に
は駆動電流波形の形だけの変更では、波形が滑らかにな
らない。そこで、第5及び第6の実施の形態を示した。
しかし、第5の実施の形態では、駆動時間が変更され、
駆動速度を変更した分だけ時間が多くかかってしまう。
また、第6の実施の形態では、駆動電流波形の形を変更
して滑らかにした分だけ駆動トルクが小さくなってしま
う。従って、必要な位相だけで第4の実施の形態の動作
を行うと、トルクを最小限だけ変更することで、駆動電
流波形をより滑らかにすることができる。
(Seventh Embodiment) Next, a seventh embodiment of the present invention will be described.
An embodiment will be described. In the above-described fourth embodiment, the method of changing the shape of the drive current waveform at the time of starting and stopping the driving of the pulse motor 5 and smoothing the driving current waveform at the time of starting and stopping the driving is exemplified. At the time of high-speed driving, changing the shape of the driving current waveform alone does not make the waveform smooth. Therefore, the fifth and sixth embodiments have been described.
However, in the fifth embodiment, the driving time is changed,
It takes much time to change the drive speed.
Further, in the sixth embodiment, the drive torque is reduced by the amount by which the shape of the drive current waveform is changed and smoothed. Therefore, when the operation of the fourth embodiment is performed only with the necessary phase, the drive current waveform can be made smoother by changing the torque only to the minimum.

【0079】そこで、第4の実施の形態において第3の
実施の形態の動作を行うと、駆動位相位置に応じて、駆
動開始時と停止時に駆動電流波形の形を変更することに
より、より滑らかな騒音のない駆動を実現できる。
Therefore, when the operation of the third embodiment is performed in the fourth embodiment, the shape of the drive current waveform is changed at the start and stop of the drive according to the drive phase position, thereby providing a smoother operation. Driving without noise can be realized.

【0080】(第8の実施の形態)次に、本発明の第8
の実施の形態について図20に基づき説明する。図20
は本発明の第8の実施の形態に係るパルスモータ制御装
置を有するビデオカメラ等の撮像装置の構成を示すブロ
ック図である。同図において、100はインナーフォー
カスタイプのレンズシステムで、固定の前玉レンズ群1
01、変倍を行うための第2のレンズ群(以下、変倍レ
ンズと記述する)102、絞り103、固定の第3のレ
ンズ群104及びコンペ機能とフォーカシングの機能を
兼ね備えた第4のレンズ群(以下、フォーカスコンペレ
ンズと記述する)105により構成されている。このレ
ンズシステム100を透過した映像光は,撮像素子(以
下、CCDと記述する)106面上で結像され、光電変
換により映像信号に変換される。107は増幅器または
インピーダンス変換器、108はカメラ信号処理回路で
あり、ここで処理された映像信号は増幅器109で規定
レベルまで増幅され、LCD表示回路110で処理され
た後、LCD(液晶表示器)111で撮像画像を表示す
る。
(Eighth Embodiment) Next, an eighth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG. FIG.
FIG. 21 is a block diagram illustrating a configuration of an imaging device such as a video camera having a pulse motor control device according to an eighth embodiment of the present invention. In the figure, reference numeral 100 denotes an inner focus type lens system, and a fixed front lens group 1
01, a second lens group for performing zooming (hereinafter, referred to as a zooming lens) 102, an aperture 103, a fixed third lens group 104, and a fourth lens having both a competing function and a focusing function A group (hereinafter, referred to as a focus competition lens) 105 is provided. The image light transmitted through the lens system 100 forms an image on the surface of an image sensor (hereinafter, referred to as a CCD) 106 and is converted into a video signal by photoelectric conversion. Reference numeral 107 denotes an amplifier or impedance converter, and reference numeral 108 denotes a camera signal processing circuit. The video signal processed here is amplified to a specified level by an amplifier 109, processed by an LCD display circuit 110, and then converted to an LCD (liquid crystal display). At 111, the captured image is displayed.

【0081】一方、増幅器107で増幅された映像信号
は、絞り制御回路112、AF(オートフォーカス)評
価値処理回路114に送られる。絞り制御回路112で
は、映像信号入力レベルに応じて、IGドライバ113
及びIGメータ114を駆動することにより絞り103
を制御し、光量調節を行っている。
On the other hand, the video signal amplified by the amplifier 107 is sent to an aperture control circuit 112 and an AF (auto focus) evaluation value processing circuit 114. The iris control circuit 112 controls the IG driver 113 according to the video signal input level.
By driving the IG meter 114 and the aperture 103
Is controlled to adjust the amount of light.

【0082】AF評価値処理回路115では測距枠生成
回路117からのゲート信号に応じて、測距枠内の輝度
信号の高周波成分の抽出処理を行っている。116はA
Fマイクロコンピュータ(以下、AFマイコンと記述す
る)であり、AF評価信号強度に応じて、レンズの駆動
制御及び測距エリアを変更するための測距枠制御を行っ
ている。また、116はシステムコントロールマイコン
(以下、シスコンと記述する)122と通信を行ってお
り、シスコン122がA(アナログ)/D(デジタル)
変換等により読み込むズームスイッチ(SW)ユニット
123(ユニット化されたズームSWで、操作部材の回
転角度に応じた電圧が出力される。この出力電圧に応じ
て可変速ズームがなされる)の情報や、AFマイコン1
16が制御するズーム時のズーム方向や焦点距離等の変
倍動作情報等を互いにやりとりしている。
The AF evaluation value processing circuit 115 performs a process of extracting a high-frequency component of a luminance signal in the distance measurement frame according to the gate signal from the distance measurement frame generation circuit 117. 116 is A
An F microcomputer (hereinafter, referred to as an AF microcomputer) performs lens drive control and distance measurement frame control for changing a distance measurement area in accordance with the AF evaluation signal intensity. Reference numeral 116 communicates with a system control microcomputer (hereinafter, referred to as a syscon) 122, and the syscon 122 has an A (analog) / D (digital)
Information of a zoom switch (SW) unit 123 (a unitized zoom SW that outputs a voltage corresponding to the rotation angle of the operation member. A variable speed zoom is performed according to the output voltage) is read by conversion or the like. , AF microcomputer 1
The zoom operation information such as the zoom direction and the focal length at the time of zooming controlled by the zoom lens 16 is exchanged with each other.

【0083】118、120はそれぞれAFマイコン1
16から出力される変倍レンズ102及びフォーカスコ
ンペレンズ105の駆動命令に従って駆動エネルギーを
レンズ駆動用モータ119,121に出力するためのド
ライバ、119、121はそれぞれ変倍レンズ102及
びフォーカスコンペレンズ105を駆動するためのモー
タである。
Reference numerals 118 and 120 denote the AF microcomputer 1
Drivers 119 and 121 for outputting driving energy to the lens driving motors 119 and 121 according to the driving commands of the variable power lens 102 and the focus compensating lens 105 output from the zoom lens 102 and the focus compensating lens 105 respectively. It is a motor for driving.

【0084】次に、レンズ駆動用のモータ119,12
1がパルスモータであるとして、モータの駆動方法を説
明する。
Next, the lens driving motors 119 and 12
Assuming that 1 is a pulse motor, a driving method of the motor will be described.

【0085】AFマイコン116は、プログラム処理に
より変倍レンズモータ119、フォーカスコンペレンズ
モータ121の駆動速度を決定し、各パルスモータの回
転周波数信号として、変倍レンズモータ119駆動用の
変倍レンズドライバ118、フォーカスコンペレンズモ
ータ121駆動用のフォーカスコンペレンズドライバ1
20に送る。また、両モータ119、121の駆動/停
止命令及び回転方向命令を各ドライバ118、120に
送っている。その駆動/停止信号及び回転方向信号は、
変倍レンズモータ119に関しては主としてズームSW
ユニット123の状態に応じて、フォーカスコンペレン
ズモータ119に関しては、AF時及びズーム時にマイ
コン116内の処理で決定する駆動命令に応じている。
モータドライバ118,120は、回転方向信号に応じ
て4相のモータ励磁相の位相を順回転及び逆回転の位相
に設定し且つ受信した回転周波数信号に応じて4つのモ
ータ励磁相の印加電圧(または電流)を変化させながら
出力することにより、モータ119,121の回転方向
と回転周波数とを制御しつつ、駆動/停止命令に応じ
て、モータ119,121への出力をオン(ON)/オ
フ(OFF)制御している。
The AF microcomputer 116 determines the driving speeds of the variable power lens motor 119 and the focus compensating lens motor 121 by program processing, and outputs a variable frequency lens driver for driving the variable power lens motor 119 as a rotation frequency signal of each pulse motor. 118, focus competition lens driver 1 for driving focus competition lens motor 121
Send to 20. Further, a drive / stop command and a rotation direction command for both motors 119 and 121 are sent to the respective drivers 118 and 120. The drive / stop signal and the rotation direction signal are
The zoom lens motor 119 mainly includes a zoom switch
In accordance with the state of the unit 123, the focus compensation lens motor 119 responds to a drive command determined by processing in the microcomputer 116 during AF and zoom.
The motor drivers 118 and 120 set the phases of the four motor excitation phases to forward rotation and reverse rotation in accordance with the rotation direction signal, and apply the applied voltages of the four motor excitation phases (in accordance with the received rotation frequency signal). Or while changing the current), the output to the motors 119 and 121 is turned on / off in response to the drive / stop command while controlling the rotation direction and rotation frequency of the motors 119 and 121. (OFF) is controlled.

【0086】図21は本実施の形態に係るパルスモータ
制御装置における制御フローを示すフローチャートであ
り、AFマイコン116内で処理される。
FIG. 21 is a flowchart showing a control flow in the pulse motor control device according to the present embodiment, which is processed in the AF microcomputer 116.

【0087】図21において、ステップS2101は初
期設定ルーチンであり、AFマイコン116内のRAM
や各種ポートの処理を行う。ステップS2102はシス
コン122との相互通信ルーチンであり、ここでズーム
SWユニット123の情報や、変倍レンズ102の位置
等の変倍動作情報のやりとりを行っている。ステップS
2103はAF処理ルーチンであり、AF評価値処理回
路115から得られた信号によりAF評価信号の鮮鋭度
信号を加工し、評価信号の変化に応じ自動焦点調節処理
を行っている。ステップS2104はズーム処理ルーチ
ンであり、変倍動作時において、合焦を維持するための
コンペ動作の処理ルーチンであり、カム軌跡をトレース
するためのフォーカスコンペレンズ105の駆動方向及
び駆動速度を算出する。ステップS2105は、駆動方
向、速度選択ルーチンであり、AF時や変倍動作時等に
応じて算出される変倍レンズ102やフォーカスコンペ
レンズ105の駆動方向や駆動速度のうち、いずれを使
用するのかを選択し、レンズ102,105のメカ端に
当たらないようにソフト的に設けているテレ端よりテレ
側、ワイド端よりワイド側、至近端より至近側、無限端
より無限側には駆動しないように設定するルーチンであ
る。ステップS2106では、ステップS2105にお
いて定めた、ズーム及びフォーカス用の駆動方向及び駆
動速度情報に応じて、モータドライバ118及び120
に制御信号を出力し、レンズ102,15の駆動/停止
を制御する。このステップS2106の処理終了後は、
前記ステップS2102へ戻る。
In FIG. 21, step S2101 is an initial setting routine, which is a RAM in the AF microcomputer 116.
And processing of various ports. Step S2102 is a mutual communication routine with the system controller 122. Here, information of the zoom SW unit 123 and magnification operation information such as the position of the magnification lens 102 are exchanged. Step S
Reference numeral 2103 denotes an AF processing routine, which processes a sharpness signal of the AF evaluation signal using a signal obtained from the AF evaluation value processing circuit 115, and performs automatic focus adjustment processing according to a change in the evaluation signal. Step S2104 is a zoom processing routine, which is a processing routine of a competition operation for maintaining focus during the magnification operation, and calculates a driving direction and a driving speed of the focus competition lens 105 for tracing a cam track. . Step S2105 is a drive direction and speed selection routine. Which one of the drive direction and the drive speed of the variable power lens 102 and the focus competition lens 105 is to be used, which is calculated according to the AF operation, the variable power operation, and the like? Is selected, and the lens is not driven to the tele side from the tele end, the wide side from the wide end, the near side from the close end, and the infinite side from the infinite end provided in software so as not to hit the mechanical ends of the lenses 102 and 105. This is a routine for setting. In step S2106, the motor drivers 118 and 120 are driven according to the drive direction and drive speed information for zoom and focus determined in step S2105.
To control the driving / stopping of the lenses 102 and 15. After the end of the processing in step S2106,
The process returns to step S2102.

【0088】尚、図21の一連の処理は垂直同期期間に
同期して実行される(ステップS21の処理の中で、次
の垂直同期信号が来るまで、待機する)。
The series of processes shown in FIG. 21 are executed in synchronization with the vertical synchronization period (the process waits until the next vertical synchronization signal comes in the process of step S21).

【0089】図21におけるステップS2105が図6
の動作にあたり、ここで設定された、駆動速度及び駆動
パルスによって、上述した図7、図10、図12及び図
18に示したような割り込み処理を行い、フォーカスコ
ンペレンズ105のように、駆動及び停止を繰り返すよ
うな騒音に不利な動きをするときでも、その騒音を軽減
することができる。
Step S2105 in FIG. 21 corresponds to FIG.
In the operation of, the interrupt processing as shown in FIGS. 7, 10, 12, and 18 is performed by the drive speed and the drive pulse set here, and the drive and the drive are performed as in the focus competition lens 105. Even when the user makes a motion that is disadvantageous to noise that repeatedly stops, the noise can be reduced.

【0090】(第9の実施の形態)次に、本発明のパル
スモータ制御方法及び装置に用いる記憶媒体について、
図22〜図24を用いて説明する。
(Ninth Embodiment) Next, a storage medium used in the pulse motor control method and apparatus of the present invention will be described.
This will be described with reference to FIGS.

【0091】本発明の第1のパルスモータ制御装置を制
御するための制御プログラムを格納する記憶媒体には、
図22に示すように、少なくとも「駆動モジュール」、
「駆動制御モジュール」、「第1の波形変更モジュー
ル」、「第2の波形変更モジュール」及び「時間変更モ
ジュール」の各モジュールのプログラムコードを格納す
ればよい。
A storage medium for storing a control program for controlling the first pulse motor control device of the present invention includes:
As shown in FIG. 22, at least the “drive module”,
What is necessary is just to store the program code of each module of a "drive control module", a "first waveform change module", a "second waveform change module", and a "time change module".

【0092】ここで、「駆動モジュール」は、パルスモ
ータを略正弦波駆動するためのプログラムモジュールで
ある。また、「駆動制御モジュール」は、駆動ステップ
を制御するためのプログラムモジュールである。また、
「第1の波形変更モジュール」は、駆動開始時或いは停
止時に一定期間駆動速度を変更することで駆動電流波形
の形を変更するためのプログラムモジュールである。ま
た、「第2の波形変更モジュール」は、駆動位相位置に
応じて駆動開始時或いは停止時に駆動速度を変更するこ
とで駆動電流波形の形を変更するためのプログラムモジ
ュールである。更に、「時間変更モジュール」は、駆動
速度に応じて駆動開始時或いは停止時に駆動速度を変更
し駆動電流波形の形を変更する時間を変更するためのプ
ログラムモジュールである。
Here, the "drive module" is a program module for driving the pulse motor in a substantially sinusoidal manner. The “drive control module” is a program module for controlling a drive step. Also,
The “first waveform change module” is a program module for changing the shape of the drive current waveform by changing the drive speed for a certain period at the start or stop of the drive. The “second waveform change module” is a program module for changing the shape of the drive current waveform by changing the drive speed at the start or stop of the drive according to the drive phase position. Further, the "time change module" is a program module for changing the drive speed at the start or stop of the drive according to the drive speed and changing the time for changing the shape of the drive current waveform.

【0093】また、本発明の第2のパルスモータ制御装
置を制御するための制御プログラムを格納する記憶媒体
には、図23に示すように、少なくとも第1及び第2の
「PWM信号発生ジュール」、「駆動モジュール」、
「駆動制御モジュール」、「第1の波形変更モジュー
ル」、「第2の波形変更モジュール」、「第3の波形変
更モジュール」及び「期間変更モジュール」の各モジュ
ールのプログラムコードを格納すればよい。
As shown in FIG. 23, at least the first and second "PWM signal generation modules" are stored in a storage medium for storing a control program for controlling the second pulse motor control device of the present invention. , "Drive module",
What is necessary is just to store the program code of each module of a "drive control module", a "1st waveform change module", a "2nd waveform change module", a "3rd waveform change module", and a "period change module".

【0094】ここで、第1及び第2の「PWM信号発生
ジュール」は、デューティ比設定可能なPWM信号を発
生するためのプログラムモジュールである。また、「駆
動モジュール」は、パルスモータをPWM信号発生ステ
ップからの出力信号により略正弦波駆動するためのプロ
グラムモジュールである。また、「駆動制御モジュー
ル」は、駆動ステップを制御するためのプログラムモジ
ュールである。また、「第1の波形変更モジュール」
は、駆動開始時或いは停止時に一定期間PWMのをデュ
ーティ比を変更することで駆動電流波形の形を変更する
ためのプログラムモジュールである。「第2の波形変更
モジュール」は、駆動速度を変更することで駆動電流波
形の形を変更するためのプログラムモジュールである。
「第3の波形変更モジュール」は、駆動位相位置に応じ
て駆動開始時期或いは停止時に駆動期間及びPWMのデ
ューティ比及び駆動速度を変更することで駆動電流波形
の形を変更するためのプログラムモジュールである。
「期間変更モジュール」は、駆動速度に応じて駆動開始
時或いは停止時にPWMのデューティ比を変更すること
で駆動電流波形の形を変更するためのプログラムモジュ
ールである。
Here, the first and second "PWM signal generation modules" are program modules for generating a PWM signal whose duty ratio can be set. Further, the “drive module” is a program module for driving the pulse motor with a substantially sinusoidal wave based on an output signal from the PWM signal generation step. The “drive control module” is a program module for controlling a drive step. Also, "first waveform changing module"
Is a program module for changing the shape of the drive current waveform by changing the duty ratio of the PWM for a certain period at the start or stop of driving. The “second waveform change module” is a program module for changing the shape of the drive current waveform by changing the drive speed.
The “third waveform change module” is a program module for changing the shape of the drive current waveform by changing the drive period, the duty ratio of PWM, and the drive speed at the start or stop of the drive according to the drive phase position. is there.
The “period change module” is a program module for changing the shape of the drive current waveform by changing the PWM duty ratio at the start or stop of driving according to the drive speed.

【0095】更に、本発明の第3のパルスモータ制御装
置を制御するための制御プログラムを格納する記憶媒体
には、図24に示すように、少なくとも「駆動モジュー
ル」、「駆動制御モジュール」及び「波形変更モジュー
ル」の各モジュールのプログラムコードを格納すればよ
い。
Further, as shown in FIG. 24, at least a “drive module”, a “drive control module” and a “drive control module” are stored in a storage medium for storing a control program for controlling the third pulse motor control device of the present invention. What is necessary is just to store the program code of each module of "waveform change module".

【0096】ここで、「駆動モジュール」は、パルスモ
ータを略正弦波駆動するためのプログラムモジュールで
ある。また、「駆動制御モジュール」は、駆動ステップ
を制御するためのプログラムモジュールである。更に、
「波形変更モジュール」は、駆動速度或いは駆動開始及
び停止位相に応じて駆動開始時或いは停止時に駆動期間
及びPWMのデューティ比及び駆動速度を変更すること
で駆動電流波形の形を変更するためのプログラムモジュ
ールである。
Here, the "drive module" is a program module for driving the pulse motor in a substantially sinusoidal manner. The “drive control module” is a program module for controlling a drive step. Furthermore,
The "waveform change module" is a program for changing the shape of the drive current waveform by changing the drive period, the duty ratio of PWM, and the drive speed at the start or stop of the drive according to the drive speed or the drive start and stop phases. Module.

【0097】[0097]

【発明の効果】以上詳述したきたように、本発明のパル
スモータ制御方法及び装置によれば、以下のような効果
が得られる。
As described above, according to the pulse motor control method and apparatus of the present invention, the following effects can be obtained.

【0098】1.パルスモータを正弦波駆動する際に、
駆動及び停止を繰り返すときに、駆動開始時或いは停止
時に、一定期間駆動速度を遅くすることで、駆動開始時
或いは停止時の駆動電流波形が滑らかになり、パルスモ
ータの駆動開始時或いは停止時の騒音を軽減できる。
1. When driving a sine wave pulse motor,
When the drive and stop are repeated, the drive current waveform at the start or stop of the drive is smoothed by reducing the drive speed for a certain period at the start or stop of the drive, and the drive current at the start or stop of the pulse motor is reduced. Noise can be reduced.

【0099】2.パルスモータを正弦波駆動する際に、
駆動及び停止を繰り返すときに、駆動開始時或いは停止
時に、駆動速度に応じた期間だけ駆動速度を遅くするこ
とで、駆動開始時或いは停止時の駆動電流波形がより滑
らかになり、高速駆動時のパルスモータの駆動開始時或
いは停止時の騒音を軽減できる。
2. When driving a sine wave pulse motor,
When driving and stopping are repeated, when the driving is started or stopped, the driving current is slowed down by a period corresponding to the driving speed, so that the driving current waveform at the time of starting or stopping the driving becomes smoother and the driving current is stopped. Noise at the time of starting or stopping the driving of the pulse motor can be reduced.

【0100】3.パルスモータを正弦波駆動する際に、
駆動及び停止を繰り返すときに、駆動開始時或いは停止
時に、駆動位相位置に応じて駆動速度を遅くすること
で、駆動開始時或いは停止時の駆動電流波形が滑らかで
ない駆動電流波形のみが滑らかになり、高速駆動時のパ
ルスモータの駆動開始時或いは停止時の騒音を軽減でき
る。
3. When driving a sine wave pulse motor,
When driving and stopping are repeated, when the driving is started or stopped, the driving speed is reduced according to the driving phase position, so that only the driving current waveform at the time of starting or stopping driving is not smooth becomes smooth. Also, noise at the time of starting or stopping the driving of the pulse motor during high-speed driving can be reduced.

【0101】4.パルスモータを正弦波駆動する際に、
駆動及び停止を繰り返すときに、駆動開始時或いは停止
時に、一定期間駆動電流波形の形を緩やかになるように
変更することで、駆動開始時或いは停止時の駆動電流波
形が滑らかになり、駆動時間を長くすることなく、パル
スモータの駆動開始或いは停止時の騒音を軽減できる。
4. When driving a sine wave pulse motor,
When the drive and stop are repeated, the drive current waveform at the start or stop of the drive becomes smooth by changing the shape of the drive current waveform to be gentle for a certain period of time at the start or stop of the drive. , The noise at the start or stop of the driving of the pulse motor can be reduced.

【0102】5.パルスモータを正弦波駆動する際に、
駆動及び停止を繰り返すときに、駆動開始時或いは停止
時に、一定期間駆動電流波形の形を緩やかになるように
変更し、駆動速度も遅くすることで、駆動開始時或いは
停止時の駆動電流波形がより滑らかになり、パルスモー
タの駆動開始時或いは停止時の騒音を軽減できる。
5. When driving a sine wave pulse motor,
When driving and stopping are repeated, at the time of starting or stopping driving, the shape of the driving current waveform is changed so as to be gentle for a certain period of time, and the driving speed is also reduced, so that the driving current waveform at the time of starting or stopping driving is changed. It becomes smoother, and noise at the time of starting or stopping the driving of the pulse motor can be reduced.

【0103】6.パルスモータを正弦波駆動する際に、
駆動及び停止を繰り返すときに、駆動開始時或いは停止
時に、駆動速度に応じた期間駆動電流波形の形を緩やか
になるように変更することで、駆動開始時或いは停止時
の駆動電流波形がより滑らかになり、パルスモータの駆
動開始時或いは停止時の騒音を軽減できる。
6. When driving a sine wave pulse motor,
When the drive and stop are repeated, the drive current waveform at the start or stop of the drive is smoother by changing the shape of the drive current waveform during the start or stop of the drive so that the shape of the drive current waveform is gradual according to the drive speed. Thus, the noise at the time of starting or stopping the driving of the pulse motor can be reduced.

【0104】7.パルスモータを正弦波駆動する際に、
駆動及び停止を繰り返すときに、駆動開始時或いは停止
時に、駆動位相位置に応じて駆動電流波形の形を緩やか
になるように変更することで、駆動開始時或いは停止時
の駆動電流波形が滑らかでない駆動電流波形のみが滑ら
かになり、高速駆動時のパルスモータの駆動開始時或い
は停止時の騒音を軽減できる。
7. When driving a sine wave pulse motor,
When the drive and stop are repeated, the drive current waveform at the start or stop of the drive is not smooth by changing the shape of the drive current waveform to be gentle according to the drive phase position at the start or stop of the drive. Only the driving current waveform becomes smooth, and noise at the time of starting or stopping the driving of the pulse motor during high-speed driving can be reduced.

【0105】更に、本発明の記憶媒体によれば、本発明
のパルスモータ制御装置を円滑に制御することができ
る。
Further, according to the storage medium of the present invention, the pulse motor control device of the present invention can be controlled smoothly.

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

【図1】本発明の第1の実施の形態に係るパルスモータ
制御装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a pulse motor control device according to a first embodiment of the present invention.

【図2】同装置におけるドライバ回路の内部構成を示す
ブロック図である。
FIG. 2 is a block diagram showing an internal configuration of a driver circuit in the device.

【図3】同装置におけるドライバ回路の入力端子EN
1、IN1及び各トランジスタTrの入力と出力との関
係を示す図である。
FIG. 3 shows an input terminal EN of a driver circuit in the device.
FIG. 2 is a diagram illustrating a relationship between the input and the output of each of the transistors IN1, IN1, and each transistor Tr.

【図4】同装置におけるPWMユニットの出力端子Eの
出力及び巻線電流の状態を示す図である。
FIG. 4 is a diagram showing a state of an output of an output terminal E of a PWM unit and a winding current in the device.

【図5】同装置におけるPWMユニットのROM内に格
納されたデューティー比データを示す図である。
FIG. 5 is a diagram showing duty ratio data stored in a ROM of a PWM unit in the same device.

【図6】同装置におけるマイコンの動作フローを示すフ
ローチャートである。
FIG. 6 is a flowchart showing an operation flow of a microcomputer in the device.

【図7】同装置におけるマイコン内の割り込み動作フロ
ーを示すフローチャートである。
FIG. 7 is a flowchart showing an interrupt operation flow in the microcomputer in the device.

【図8】同装置における駆動電流波形を示す図である。FIG. 8 is a diagram showing a drive current waveform in the device.

【図9】同装置における駆動電流波形を示す図である。FIG. 9 is a diagram showing a drive current waveform in the device.

【図10】本発明の第2の実施の形態に係るパルスモー
タ制御装置におけるマイコン内の割り込み動作フローを
示すフローチャートである。
FIG. 10 is a flowchart showing an interrupt operation flow in a microcomputer in the pulse motor control device according to the second embodiment of the present invention.

【図11】同装置における駆動電流波形を示す図であ
る。
FIG. 11 is a diagram showing a drive current waveform in the device.

【図12】本発明の第3の実施の形態に係るパルスモー
タ制御装置におけるマイコン内の割り込み動作フローを
示すフローチャートである。
FIG. 12 is a flowchart showing an interrupt operation flow in the microcomputer in the pulse motor control device according to the third embodiment of the present invention.

【図13】同装置における駆動電流波形を示す図であ
る。
FIG. 13 is a diagram showing a drive current waveform in the device.

【図14】同装置における駆動電流波形を示す図であ
る。
FIG. 14 is a diagram showing a drive current waveform in the same device.

【図15】同装置における駆動電流波形を示す図であ
る。
FIG. 15 is a diagram showing a drive current waveform in the same device.

【図16】同装置における駆動電流波形を示す図であ
る。
FIG. 16 is a diagram showing a drive current waveform in the same device.

【図17】同装置における位相カウンタの値と位相との
関係を示す図である。
FIG. 17 is a diagram showing a relationship between a value of a phase counter and a phase in the same device.

【図18】本発明の第4の実施の形態に係るパルスモー
タ制御装置におけるマイコン内の割り込み動作フローを
示すフローチャートである。
FIG. 18 is a flowchart showing an interrupt operation flow in the microcomputer in the pulse motor control device according to the fourth embodiment of the present invention.

【図19】同装置における駆動電流波形を示す図であ
る。
FIG. 19 is a diagram showing a drive current waveform in the same device.

【図20】本発明の第8の実施の形態に係るパルスモー
タ制御装置を具備した撮像装置の構成を示すブロック図
である。
FIG. 20 is a block diagram illustrating a configuration of an imaging device including a pulse motor control device according to an eighth embodiment of the present invention.

【図21】同装置におけるAFマイコンの動作フローを
示すフローチャートである。
FIG. 21 is a flowchart showing an operation flow of an AF microcomputer in the same device.

【図22】本発明の記憶媒体に格納するプログラムモジ
ュールを示す図である。
FIG. 22 is a diagram showing a program module stored in a storage medium of the present invention.

【図23】本発明の記憶媒体に格納するプログラムモジ
ュールを示す図である。
FIG. 23 is a diagram showing a program module stored in the storage medium of the present invention.

【図24】本発明の記憶媒体に格納するプログラムモジ
ュールを示す図である。
FIG. 24 is a diagram showing a program module stored in a storage medium of the present invention.

【図25】パルスモータの駆動電流波形を示す図であ
る。
FIG. 25 is a diagram showing a drive current waveform of a pulse motor.

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

1 ドライバ回路 2 ドライバ回路 3 モータ巻線 4 モータ巻線 5 パルスモータ 6 マグネット 7 マイコン(マイクロコンピュータ) 7a PWMユニット 7b タイマーユニット 7c ROM 8 トランジスタ 9 トランジスタ 10 トランジスタ 11 トランジスタ 12 ダイオード 13 ダイオード 14 ダイオード 15 ダイオード 16 抵抗 17 抵抗 18 抵抗 19 抵抗 20 ANDゲート 21 ANDゲート 22 NOTゲート 101 固定の第1レンズ群 102 第2のレンズ群(変倍レンズ) 103 絞り 104 固定の第3レンズ群 105 第4のレンズ群(フォーカスコンペレンズ) 106 CCD(撮像素子) 107 増幅器(AMP) 108 カメラ信号処理回路 109 増幅器(AMP) 110 LED表示回路 111 LED 112 絞り制御回路 113 IGドライバ 114 IGメータ 115 AF評価値処理回路 116 AFマイコン(AFマイクロコンピュータ) 117 枠生成回路 118 変倍レンズドライバ 119 変倍レンズモータ 120 フォーカスコンペレンズドライバ 121 フォーカスコンペレンズモータ 122 シスコン(システムコントローラ) 123 ズームスイッチ(SW)ユニット 1 Driver Circuit 2 Driver Circuit 3 Motor Winding 4 Motor Winding 5 Pulse Motor 6 Magnet 7 Microcomputer 7a PWM Unit 7b Timer Unit 7c ROM 8 Transistor 9 Transistor 10 Transistor 11 Transistor 12 Diode 13 Diode 14 Diode 15 Diode 16 Resistance 17 Resistance 18 Resistance 19 Resistance 20 AND gate 21 AND gate 22 NOT gate 101 Fixed first lens group 102 Second lens group (magnifying lens) 103 Aperture 104 Fixed third lens group 105 105 Fourth lens group ( Focus Compensation Lens) 106 CCD (Imaging Device) 107 Amplifier (AMP) 108 Camera Signal Processing Circuit 109 Amplifier (AMP) 110 LED Display Circuit 111 LED Reference Signs List 12 aperture control circuit 113 IG driver 114 IG meter 115 AF evaluation value processing circuit 116 AF microcomputer (AF microcomputer) 117 frame generation circuit 118 variable-magnification lens driver 119 variable-magnification lens motor 120 focus-compensation lens driver 121 focus-compensation lens motor 122 syscon (System controller) 123 Zoom switch (SW) unit

Claims (24)

【特許請求の範囲】[Claims] 【請求項1】 パルスモータを略正弦波駆動する駆動ス
テップと、該駆動ステップを制御する駆動制御ステップ
と、駆動開始時或いは停止時に一定期間駆動速度を変更
することで駆動電流波形の形を変更する波形変更ステッ
プとを有することを特徴とするパルスモータ駆動制御方
法。
1. A driving step for driving a pulse motor in a substantially sinusoidal wave, a driving control step for controlling the driving step, and changing a driving current waveform by changing a driving speed for a certain period when starting or stopping driving. And a waveform changing step.
【請求項2】 駆動速度に応じて駆動開始時或いは停止
時に駆動速度を変更し駆動電流波形の形を変更する時間
を変更する時間変更ステップを有することを特徴とする
請求項1記載のパルスモータ駆動制御方法。
2. The pulse motor according to claim 1, further comprising a time changing step of changing the drive speed at the start or stop of the drive according to the drive speed to change the time for changing the shape of the drive current waveform. Drive control method.
【請求項3】 駆動位相位置に応じて駆動開始時或いは
停止時に駆動速度を変更することで駆動電流波形の形を
変更する波形変更ステップを有することを特徴とする請
求項1記載のパルスモータ駆動制御方法。
3. The pulse motor drive according to claim 1, further comprising a waveform changing step of changing the shape of the drive current waveform by changing the drive speed at the start or stop of the drive according to the drive phase position. Control method.
【請求項4】 PWM(パルス幅変調)信号を発生する
デューティ比設定可能な少なくとも2つのPWM信号発
生ステップと、パルスモータを前記PWM信号発生ステ
ップからの出力信号により略正弦波駆動する駆動ステッ
プと、該駆動ステップを制御する駆動制御ステップと、
駆動開始時或いは停止時に一定期間PWMのデューティ
比を変更することで駆動電流波形の形を変更する波形変
更ステップとを有することを特徴とするパルスモータ駆
動制御方法。
4. A step of generating at least two PWM signals capable of setting a duty ratio for generating a PWM (pulse width modulation) signal, and a driving step of driving a pulse motor with a substantially sine wave using an output signal from the PWM signal generating step. A drive control step for controlling the drive step;
A waveform changing step of changing the shape of the drive current waveform by changing the duty ratio of PWM for a certain period at the time of starting or stopping driving.
【請求項5】 駆動速度に応じて駆動開始時或いは停止
時にPWMのデューティ比及び駆動速度を変更すること
で駆動電流波形の形を変更する波形変更ステップを有す
ることを特徴とする請求項4記載のパルスモータ駆動制
御方法。
5. The method according to claim 4, further comprising the step of changing the shape of the drive current waveform by changing the PWM duty ratio and the drive speed when the drive is started or stopped according to the drive speed. Pulse motor drive control method.
【請求項6】 駆動速度に応じて駆動開始時或いは停止
時にPWMのデューティ比を変更することで駆動電流波
形の形を変更する期間を変更する期間変更ステップを有
することを特徴とする請求項4記載のパルスモータ駆動
制御方法。
6. The method according to claim 4, further comprising a period changing step of changing a period of changing a shape of the driving current waveform by changing a duty ratio of the PWM at the time of starting or stopping the driving according to the driving speed. The pulse motor drive control method described in the above.
【請求項7】 駆動位相位置に応じて駆動開始時或いは
停止時にPWMのデューティ比を変更することで駆動電
流波形の形を変更する波形変更ステップを有することを
特徴とする請求項4記載のパルスモータ駆動制御方法。
7. The pulse according to claim 4, further comprising a waveform changing step of changing the shape of the driving current waveform by changing the duty ratio of the PWM at the time of starting or stopping the driving according to the driving phase position. Motor drive control method.
【請求項8】 パルスモータを略正弦波駆動する駆動ス
テップと、該駆動ステップを制御する駆動制御ステップ
と、駆動速度或いは駆動開始及び停止位相に応じて駆動
開始時或いは停止時に駆動期間及びPWMのデューティ
比及び駆動速度を変更することで駆動電流波形の形を変
更する波形変更ステップとを有することを特徴とするパ
ルスモータ駆動制御方法。
8. A driving step for driving the pulse motor in a substantially sinusoidal wave, a driving control step for controlling the driving step, and a driving period and a PWM for starting or stopping the driving according to the driving speed or the driving start and stop phases. And a waveform changing step of changing the shape of the drive current waveform by changing the duty ratio and the drive speed.
【請求項9】 パルスモータと、該パルスモータを略正
弦波駆動する駆動手段と、該駆動手段を制御する駆動制
御手段と、駆動開始時或いは停止時に一定期間駆動速度
を変更することで駆動電流波形の形を変更する波形変更
手段とを具備したことを特徴とするパルスモータ駆動制
御装置。
9. A pulse motor, driving means for driving the pulse motor with a substantially sinusoidal wave, driving control means for controlling the driving means, and driving current by changing the driving speed for a certain period at the start or stop of driving. A pulse motor drive control device comprising: a waveform changing means for changing a shape of a waveform.
【請求項10】 駆動速度に応じて駆動開始時或いは停
止時に駆動速度を変更し駆動電流波形の形を変更する時
間を変更する時間変更手段を具備したことを特徴とする
請求項9記載のパルスモータ駆動制御装置。
10. The pulse according to claim 9, further comprising time changing means for changing the driving speed at the time of starting or stopping the driving according to the driving speed and changing the time for changing the shape of the driving current waveform. Motor drive control device.
【請求項11】 駆動位相位置に応じて駆動開始時或い
は停止時に駆動速度を変更することで駆動電流波形の形
を変更する波形変更手段を具備したことを特徴とする請
求項9記載のパルスモータ駆動制御装置。
11. A pulse motor according to claim 9, further comprising a waveform changing means for changing a drive speed at the start or stop of the drive according to the drive phase position to change the shape of the drive current waveform. Drive control device.
【請求項12】 パルスモータと、PWM信号を発生す
るデューティ比設定可能な少なくとも2つのPWM信号
発生手段と、前記パルスモータを前記PWM信号発生手
段からの出力信号により略正弦波駆動する駆動手段と、
該駆動手段を制御する駆動制御手段と、駆動開始時或い
は停止時に一定期間PWMのデューティ比を変更するこ
とで駆動電流波形の形を変更する波形変更手段とを具備
したことを特徴とするパルスモータ駆動制御装置。
12. A pulse motor, at least two PWM signal generating means capable of setting a duty ratio for generating a PWM signal, and driving means for driving the pulse motor substantially in a sine wave by an output signal from the PWM signal generating means. ,
A pulse motor comprising: a drive control means for controlling the drive means; and a waveform changing means for changing a shape of a drive current waveform by changing a duty ratio of PWM for a certain period of time when driving is started or stopped. Drive control device.
【請求項13】 駆動速度に応じて駆動開始時或いは停
止時にPWMのデューティ比及び駆動速度を変更するこ
とで駆動電流波形の形を変更する波形変更手段を具備し
たことを特徴とする請求項12記載のパルスモータ駆動
制御装置。
13. The apparatus according to claim 12, further comprising a waveform changing means for changing the shape of the drive current waveform by changing the PWM duty ratio and the drive speed when the drive is started or stopped according to the drive speed. The pulse motor drive control device according to the above.
【請求項14】 駆動速度に応じて駆動開始時或いは停
止時にPWMのデューティ比を変更することで駆動電流
波形の形を変更する期間を変更する期間変更手段を具備
したことを特徴とする請求項12記載のパルスモータ駆
動制御装置。
14. A system according to claim 1, further comprising a period changing means for changing a period for changing the shape of the driving current waveform by changing a duty ratio of the PWM at the time of starting or stopping the driving according to the driving speed. 13. The pulse motor drive control device according to claim 12.
【請求項15】 駆動位相位置に応じて駆動開始時或い
は停止時にPWMのデューティ比を変更することで駆動
電流波形の形を変更する波形変更手段を具備したことを
特徴とする請求項12記載のパルスモータ駆動制御装
置。
15. The apparatus according to claim 12, further comprising a waveform changing means for changing the shape of the drive current waveform by changing the duty ratio of the PWM at the start or stop of the drive according to the drive phase position. Pulse motor drive control device.
【請求項16】 パルスモータと、該パルスモータを略
正弦波駆動する駆動手段と、該駆動手段を制御する駆動
制御手段と、駆動速度或いは駆動開始及び停止位相に応
じて駆動開始時或いは停止時に駆動期間及びPWMのデ
ューティ比及び駆動速度を変更することで駆動電流波形
の形を変更する波形変更手段とを具備したことを特徴と
するパルスモータ駆動制御装置。
16. A pulse motor, driving means for driving the pulse motor substantially in a sine wave, drive control means for controlling the driving means, and when driving is started or stopped according to the driving speed or the driving start and stop phases. A pulse motor drive control device comprising: a waveform change unit that changes a shape of a drive current waveform by changing a drive period, a duty ratio of PWM, and a drive speed.
【請求項17】 パルスモータ駆動制御装置を制御する
プログラムを格納する記憶媒体であって、パルスモータ
を略正弦波駆動する駆動ステップの駆動モジュールと、
該駆動ステップを制御する駆動制御ステップの駆動制御
モジュールと、駆動開始時或いは停止時に一定期間駆動
速度を変更することで駆動電流波形の形を変更する第1
の波形変更ステップの第1の波形変更モジュールとを有
するプログラムを格納したことを特徴とする記憶媒体。
17. A storage medium for storing a program for controlling a pulse motor drive control device, the drive module having a drive step of driving a pulse motor with a substantially sine wave,
A drive control module of a drive control step for controlling the drive step, and a first method for changing the shape of the drive current waveform by changing the drive speed for a certain period when the drive is started or stopped.
A storage medium storing a program having a first waveform change module of the waveform change step.
【請求項18】 前記プログラムは、駆動速度に応じて
駆動開始時或いは停止時に駆動速度を変更し駆動電流波
形の形を変更する時間を変更する時間変更ステップの時
間変更モジュールを有することを特徴とする請求項17
記載の記憶媒体。
18. The program according to claim 18, wherein the program has a time changing module of a time changing step of changing the driving speed at the time of starting or stopping the driving according to the driving speed and changing the time of changing the shape of the driving current waveform. Claim 17
The storage medium according to the above.
【請求項19】 前記プログラムは、駆動位相位置に応
じて駆動開始時或いは停止時に駆動速度を変更すること
で駆動電流波形の形を変更する第2の波形変更ステップ
の第2の波形変更モジュールを有することを特徴とする
請求項17載の記憶媒体。
19. The program according to claim 19, wherein the program changes a drive waveform at a start or a stop of the drive according to a drive phase position to change a shape of the drive current waveform. 18. The storage medium according to claim 17, comprising:
【請求項20】 PWM(パルス幅変調)信号を発生す
るデューティ比設定可能な少なくとも2つのPWM信号
発生ステップのPWM信号発生モジュールと、パルスモ
ータを前記PWM信号発生ステップからの出力信号によ
り略正弦波駆動する駆動ステップの駆動モジュールと、
該駆動ステップを制御する駆動制御ステップの駆動制御
モジュールと、駆動開始時或いは停止時に一定期間PW
Mのデューティ比を変更することで駆動電流波形の形を
変更する第1の波形変更ステップの第1の波形変更モジ
ュールとを有するプログラムを格納したことを特徴とす
る記憶媒体。
20. A PWM signal generating module of at least two PWM signal generating steps capable of setting a duty ratio for generating a PWM (pulse width modulation) signal, and a pulse motor is driven by a substantially sinusoidal wave by an output signal from the PWM signal generating step. A drive module of a drive step to drive;
A drive control module for a drive control step for controlling the drive step;
A storage medium storing a program having a first waveform changing module in a first waveform changing step of changing a shape of a drive current waveform by changing a duty ratio of M.
【請求項21】 前記プログラムは、駆動速度に応じて
駆動開始時或いは停止時にPWMのデューティ比及び駆
動速度を変更することで駆動電流波形の形を変更する第
2の波形変更ステップの第2の波形変更モジュールを有
することを特徴とする請求項20記載の記憶媒体。
21. The second program in a second waveform changing step of changing the shape of the drive current waveform by changing the PWM duty ratio and the drive speed at the start or stop of the drive according to the drive speed. The storage medium according to claim 20, further comprising a waveform changing module.
【請求項22】 前記プログラムは、駆動速度に応じて
駆動開始時或いは停止時にPWMのデューティ比を変更
することで駆動電流波形の形を変更する期間を変更する
期間変更ステップの期間変更モジュールを有することを
特徴とする請求項20記載の記憶媒体。
22. The program has a period changing module of a period changing step of changing a period for changing the shape of the drive current waveform by changing the duty ratio of the PWM at the time of starting or stopping the driving according to the driving speed. 21. The storage medium according to claim 20, wherein:
【請求項23】 前記プログラムは、駆動位相位置に応
じて駆動開始時或いは停止時にPWMのデューティ比を
変更することで駆動電流波形の形を変更する第3の波形
変更ステップの第3の波形変更モジュールを有すること
を特徴とする請求項20記載の記憶媒体。
23. The third waveform changing step of the third waveform changing step of changing the shape of the driving current waveform by changing the PWM duty ratio at the time of starting or stopping the driving according to the driving phase position. 21. The storage medium according to claim 20, comprising a module.
【請求項24】 パルスモータを略正弦波駆動する駆動
ステップの駆動モジュールと、該駆動ステップを制御す
る駆動制御ステップの駆動制御モジュールと、駆動速度
或いは駆動開始及び停止位相に応じて駆動開始時或いは
停止時に駆動期間及びPWMのデューティ比及び駆動速
度を変更することで駆動電流波形の形を変更する波形変
更ステップの波形変更モジュールとを有するプログラム
を格納したことを特徴とする記憶媒体。
24. A drive module of a drive step for driving a pulse motor substantially in a sine wave, a drive control module of a drive control step for controlling the drive step, and a drive start or a drive start or stop phase depending on a drive speed or a drive start and stop phase A storage medium storing a program having a waveform change module of a waveform change step of changing a shape of a drive current waveform by changing a drive period, a duty ratio of PWM, and a drive speed when stopped.
JP24001996A 1996-08-23 1996-08-23 Pulse motor drive control method and apparatus Expired - Fee Related JP3782522B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24001996A JP3782522B2 (en) 1996-08-23 1996-08-23 Pulse motor drive control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24001996A JP3782522B2 (en) 1996-08-23 1996-08-23 Pulse motor drive control method and apparatus

Publications (2)

Publication Number Publication Date
JPH1066394A true JPH1066394A (en) 1998-03-06
JP3782522B2 JP3782522B2 (en) 2006-06-07

Family

ID=17053263

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24001996A Expired - Fee Related JP3782522B2 (en) 1996-08-23 1996-08-23 Pulse motor drive control method and apparatus

Country Status (1)

Country Link
JP (1) JP3782522B2 (en)

Also Published As

Publication number Publication date
JP3782522B2 (en) 2006-06-07

Similar Documents

Publication Publication Date Title
EP0579404B1 (en) Lens control apparatus
JPH09311265A (en) Autofocusing device for image pickup device and method for correcting zoom tracking curve
JPH1051678A (en) Lens control method, its device and storage medium
JPH04242208A (en) Optical instrument provided with lens position controller
US20010000435A1 (en) Video camera system
US5519465A (en) Camera lens barrel having both pulse drive control and microstep drive control
JPH05188267A (en) Optical equipment
JPH1066394A (en) Method and device for driving pulse motor and recording medium
JPH0419606A (en) Lens driving device
JP4136074B2 (en) Lens drive control apparatus and method
JPH1169887A (en) Pulse motor driving controller and lens controller therewith
JP3177013B2 (en) Automatic focusing device
JP3697051B2 (en) Imaging apparatus and lens control method thereof
JP3513167B2 (en) Lens control device
JPH0530403A (en) Lens controller
JP3144507B2 (en) Stepping motor driving apparatus and method
JP2979868B2 (en) Autofocus device
JP3507086B2 (en) camera
JP4072224B2 (en) Lens control apparatus, method, and computer-readable recording medium
JPH08286096A (en) Lens controller
JP3937562B2 (en) Imaging method and apparatus, and storage medium
JPH07107362A (en) Video camera
JPH0545566A (en) Lens driving controller for camera
JP3177006B2 (en) Lens control device
JP2863551B2 (en) Camera with automatic focusing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050712

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050912

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060203

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060307

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060310

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110317

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120317

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130317

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140317

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees