JPH03218288A - Motor controller - Google Patents

Motor controller

Info

Publication number
JPH03218288A
JPH03218288A JP2015358A JP1535890A JPH03218288A JP H03218288 A JPH03218288 A JP H03218288A JP 2015358 A JP2015358 A JP 2015358A JP 1535890 A JP1535890 A JP 1535890A JP H03218288 A JPH03218288 A JP H03218288A
Authority
JP
Japan
Prior art keywords
motor
speed
rotation speed
rotation
signal
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.)
Pending
Application number
JP2015358A
Other languages
Japanese (ja)
Inventor
Hiroyuki Harada
博之 原田
Tetsuji Kajitani
梶谷 哲司
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.)
Kyocera Mita Industrial Co Ltd
Original Assignee
Mita Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mita Industrial Co Ltd filed Critical Mita Industrial Co Ltd
Priority to JP2015358A priority Critical patent/JPH03218288A/en
Publication of JPH03218288A publication Critical patent/JPH03218288A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Direct Current Motors (AREA)

Abstract

PURPOSE:To detect rotational state of a motor accurately, even when the retional speed is low, by providing means for comparing a period data, calculated through a calculating means, with the content of a memory means and judging the number of revolution of the motor with reference to a target number of revolution of the motor. CONSTITUTION:A control section 14 makes a judgement whether the content of a capture register 134 and an up/down counter is updated. If it is updated, the count set in a down counter is decremented by 1. Then, a judgement is made whether the count in the down counter is 0, and if it is not 0 current processing is completed, whereas when the count in the down counter is 0 a next operation prohibiting flag is reset to L.

Description

【発明の詳細な説明】 く産業上の利用分野〉 この発明は、モータ制御装置に関し、特に、低速時にお
いて、モータの回転状態を正確に検出できるモータ制御
装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a motor control device, and particularly to a motor control device that can accurately detect the rotational state of a motor at low speeds.

く従来の技術〉 モータを所望の状態に制御するためには、その前提とし
て、モータの回転速度を正確に検出できなければならな
い。
BACKGROUND ART In order to control a motor to a desired state, it is necessary to be able to accurately detect the rotational speed of the motor.

従来のモータ回転速度検出装置は、一般に、たとえばモ
ータ回転軸に結合されたロータリエンコーダの出力パル
ス数に基づいて回転速度を検出していた。
Conventional motor rotational speed detection devices generally detect rotational speed based on, for example, the number of output pulses of a rotary encoder coupled to a motor rotation shaft.

く発明が解決しようとする課題〉 モータ回転速度が比較的高速の場合には、ロータリエン
コーダから出力されるパルス数か多いので、一定時間内
に出力されるパルス数に基づいて正確にモータの回転速
度を算出することができる。
Problems to be Solved by the Invention When the motor rotation speed is relatively high, the number of pulses output from the rotary encoder is large, so the rotation of the motor can be accurately determined based on the number of pulses output within a certain time. Speed can be calculated.

しかしながら、モータ回転速度が低速になればなる程、
ロークリエンコーダから出力されるパルスは少なくなる
ので、モータ回転速度の算出が難しくかつ不正確になる
However, as the motor rotation speed becomes slower,
Since fewer pulses are output from the low-resolution encoder, calculation of the motor rotational speed becomes difficult and inaccurate.

たとえば、一定間隔ごとに、その間隔内に出力されるロ
ークリエンコーダのパルス数を計数して、該パルス数に
基づいてモータ回転速度を算出する方法においては、検
出間隔よりもパルスの出力間隔が長くなると、モータが
完全に停止していないにも拘らず、モータは完全に停止
したと誤判断される恐れがある。
For example, in a method of counting the number of pulses of a low-return encoder output at regular intervals and calculating the motor rotation speed based on the number of pulses, the output interval of the pulses is smaller than the detection interval. If it is too long, there is a risk that it will be erroneously determined that the motor has stopped completely even though it has not.

この発明は、このような欠点を解消するためになされた
もので、モータ回転速度が低速になった場合においても
、モータの回転状態を正確に検出することのできるモー
タ制御装置を提供することを目的とする。
The present invention was made in order to eliminate such drawbacks, and it is an object of the present invention to provide a motor control device that can accurately detect the rotational state of the motor even when the motor rotational speed becomes low. purpose.

く課題を解決するための手段〉 この発明は、モータの回転軸に連結され、モータの回転
に連動して周期的に変化する信号を出力する回転信号出
力手段、回転信号出力手段から出力される信号の変化を
検出する検出手段、検出手段の出力に基づいて信号の周
期データを算出する算出手段、および、目標回転数に対
応する周期データが予め記憶された記憶手段を有し、算
出手段によって算出された周期データを記憶手段の内容
と比較して、モータ回転数が目標回転数に対してどのよ
うな状態かを判別する判別手段を含むことを特徴とする
モータ制御装置である。
Means for Solving the Problems This invention provides a rotation signal output means that is connected to a rotation shaft of a motor and outputs a signal that changes periodically in conjunction with the rotation of the motor, and a rotation signal output means that outputs a signal that changes periodically in conjunction with the rotation of the motor. It has a detection means for detecting a change in the signal, a calculation means for calculating period data of the signal based on the output of the detection means, and a storage means in which period data corresponding to the target rotation speed is stored in advance. The motor control device is characterized in that it includes a determining means that compares the calculated cycle data with the contents of the storage means and determines what state the motor rotation speed is with respect to the target rotation speed.

また、この発明は、さらに、検出手段が一定間隔の間に
全く信号の変化を検出しなかったときに所定の値だけ計
数値が変化される計数手段、および、計数手段の計数値
が予め定める値に達したときに、モータ回転数が所定の
回転数まで低下したことを判別する判別手段を含むこと
を特徴とするものである。
Further, the present invention further provides a counting means whose count value is changed by a predetermined value when the detection means does not detect any change in the signal during a fixed interval, and a count value of the counting means is predetermined. The present invention is characterized in that it includes a determining means for determining that the motor rotation speed has decreased to a predetermined rotation speed when the motor rotation speed reaches a predetermined rotation speed.

く作用〉 検出手段により検出される回転信号の変化、たとえばバ
ルスの立上りエッジに基づいて信号の周期データ、たと
えばパルス幅データが算出される。
Effects> Based on the change in the rotation signal detected by the detection means, such as the rising edge of a pulse, period data of the signal, such as pulse width data, is calculated.

算出された周期データは、記憶手段に予め記憶された目
標回転数に対応する周期データと比較され、算出された
周期データが目標回転数に対応する周期データよりも大
きい場合には、モータ回転数が目標回転数よりも低速に
なったと判別され、小さい場合には目標回転数よりも高
速であると判別され、両者が一致した場合には、モータ
回転数が目標回転数であると判別される。
The calculated period data is compared with period data corresponding to the target rotation speed stored in advance in the storage means, and if the calculated period data is larger than the period data corresponding to the target rotation speed, the motor rotation speed is It is determined that the motor rotation speed is lower than the target rotation speed, if it is smaller, it is determined that the motor rotation speed is higher than the target rotation speed, and when the two match, it is determined that the motor rotation speed is the target rotation speed. .

また、この発明の好ましい態様によれば、一定間隔の間
に、全く信号の変化が検出されないときは、計数手段の
計数値が所定値だけ変化され、その所定値が一定値に達
した場合に、モータは停止したと判別される。
Further, according to a preferred aspect of the present invention, when no change in the signal is detected at all during a fixed interval, the count value of the counting means is changed by a predetermined value, and when the predetermined value reaches a fixed value, , the motor is determined to have stopped.

く実施例〉 以下には、この発明の一実施例として、複写機の光学系
(照明ユニットおよび反射ミラー)駆動用のDCサーボ
モー夕の制御装置を例にとって説5 明をする。
Embodiment A control device for a DC servo motor for driving an optical system (illumination unit and reflection mirror) of a copying machine will be described below as an embodiment of the present invention.

第1図は、複写機の光学系を駆動するためのDCサーボ
モー夕の制御回路の構成例を示すブロック図である。こ
の制御回路では、DCサーボモー夕への印加電圧として
PWM(pulse width modulatio
n)信号が使用されている。
FIG. 1 is a block diagram showing an example of the configuration of a control circuit for a DC servo motor for driving an optical system of a copying machine. This control circuit uses PWM (pulse width modulation) as the voltage applied to the DC servo motor.
n) signals are used.

このDCサーボモーター0は永久磁石フィールド形であ
って、ドライバ部11によって回転駆動され、光学系1
7を移動させる。
This DC servo motor 0 is of a permanent magnet field type, and is rotationally driven by a driver section 11.
Move 7.

サーボモーター0の回転軸にはロータリエンコーダ12
が連結されている。ロータリエンコーダ12は、既に公
知の通り、サーボモーター0が予め定める微小角度回転
するごとに速度検出パルスを出力するものである。この
実施例のロータリエンコーダ12からは、互いに周期が
等しくかつ位相が90度ずれたA相とB相の速度検出パ
ルス(速度検出信号)が出力され、サーボモーター0が
1回転することにより、各相、たとえば200個の速度
検出パルスが出力される。
Rotary encoder 12 is installed on the rotation axis of servo motor 0.
are connected. As already known, the rotary encoder 12 outputs a speed detection pulse every time the servo motor 0 rotates by a predetermined minute angle. The rotary encoder 12 of this embodiment outputs A-phase and B-phase speed detection pulses (speed detection signals) that have the same period and are out of phase by 90 degrees, and when the servo motor 0 rotates once, each For example, 200 speed detection pulses are output.

なお、ロータリエンコーダ12の代わりに、サ6 ーボモータ10の回転に連動して周期的に変化する信号
を出力する他の機器を用いてもよい。
Note that instead of the rotary encoder 12, another device that outputs a signal that periodically changes in conjunction with the rotation of the servo motor 10 may be used.

ロークリエンコーダ12から出力される速度検出パルス
は、エンコーダ信号入力部13へ与えられる。エンコー
ダ信号入力部13は、後に詳述するように、ロータリエ
ンコーダ12から与えられる速度検出パルスに基づいて
、ザーボモータ10の回転速度を検出するための回路で
ある。エンコーダ信号入力部13の出力は制御部14へ
与えられる。
The speed detection pulse output from the low-resolution encoder 12 is given to the encoder signal input section 13. The encoder signal input unit 13 is a circuit for detecting the rotational speed of the servo motor 10 based on the speed detection pulse given from the rotary encoder 12, as will be described in detail later. The output of the encoder signal input section 13 is given to the control section 14.

制御部14には、CPU,プログラムなどを記憶するR
OM,必要なデータを記憶するRAMなどが備えられて
おり、指令速度と検出速度との差の算出処理、速度指令
信号と速度検出信号との位相差の算出処理、ザーボモー
タ10を制御するためのPWMデータの算出処理などが
行われる。
The control unit 14 includes a CPU, an R for storing programs, etc.
It is equipped with an OM, a RAM for storing necessary data, etc., and is used to calculate the difference between the command speed and the detected speed, calculate the phase difference between the speed command signal and the speed detection signal, and to control the servo motor 10. PWM data calculation processing and the like are performed.

制御部14には、複写機本体の制御部(図示せず)から
、動作指令信号および速度指令信号(速度指令クロツク
)が与えられる。速度指令クロックは、速度指令信号入
力部15で信号処理されてから制御部14へり−えられ
る。
The control section 14 is given an operation command signal and a speed command signal (speed command clock) from a control section (not shown) of the main body of the copying machine. The speed command clock is signal-processed by the speed command signal input section 15 and then returned to the control section 14.

PWMユニット16は、制御部14から与えられるPW
Mデータに応じたパルス幅(出力デューティ)のPWM
信号を発生するためのユニットである。PWMユニット
16から出力されるPWM信号によってザーボモータ1
0の回転速度が制御される。
The PWM unit 16 receives PW from the control unit 14.
PWM of pulse width (output duty) according to M data
This is a unit for generating signals. The servo motor 1 is activated by the PWM signal output from the PWM unit 16.
0 rotation speed is controlled.

ドライバ部11は、制御部14から与えられるドライバ
部駆動信号に基づいて、サーボモータ10の回転方向を
決めたり、ブレーキングしたりする。
The driver section 11 determines the rotation direction of the servo motor 10 and performs braking based on a driver section drive signal given from the control section 14 .

次に、サーボモータ10の回転速度の検出に関するこの
実施例の構成について説明をする。
Next, the configuration of this embodiment regarding detection of the rotational speed of the servo motor 10 will be explained.

第2図は、エンコーダ信号入力部13の構成例を示す図
である。第2図を参照して説明すると、エンコーダ信号
入力部13には、ロータリエンコーダ12から送られて
《るA相の速度検出パルスの立上りエッジを検出する立
上り検出回路131、基準クロツクをアップカウントす
るたとえば16ビット構成のフリーランニングカウンタ
133および立上り検出回路131の立上り検出出力を
キャプチャ信号とし、該キャプチャ信号をトリガとして
フリーランニングカウンター33のカウント数を読取保
持するキャプチャレジスター34か備えられている。
FIG. 2 is a diagram showing an example of the configuration of the encoder signal input section 13. To explain with reference to FIG. 2, the encoder signal input section 13 includes a rising edge detection circuit 131 that detects the rising edge of the A-phase speed detection pulse sent from the rotary encoder 12, and a rising edge detection circuit 131 that up-counts the reference clock. For example, a 16-bit free running counter 133 and a rise detection output of the rise detection circuit 131 are used as capture signals, and a capture register 34 is provided which reads and holds the count of the free running counter 33 using the capture signal as a trigger.

基準クロックは、第1図に示す回路全体の動作タイミン
グの基準となる基準クロックであり、回路がマイクロコ
ンピュータで構成されている場合はマシンクロックが利
用される。また、そのような基準クロックがない場合は
、基準クロツク発生回路を設ければよい。
The reference clock is a reference clock that serves as a reference for the operation timing of the entire circuit shown in FIG. 1, and when the circuit is composed of a microcomputer, a machine clock is used. Furthermore, if such a reference clock does not exist, a reference clock generation circuit may be provided.

エンコーダ信号入力部13は、さらに、アップダウン検
出部135およびアップダウンカウンタ136を備えて
いる。アップダウン検出部135は、立上り検出回路1
31からA相の速度検出パルスの立上り検出出力が与え
られた時にB相の回転パルスのレベルを判断し、B相の
回転パルスがハイレベルかローレベルかによって、サー
ボモータ10(第1図)が正転しているか逆転している
かを判別するものである。アップダウンカウンタ9 136は、アップダウン検出部135の判別出力に基づ
いて、立上り検出回路131の検出出力をアップカウン
トまたはダウンカウントするものである。
The encoder signal input section 13 further includes an up/down detection section 135 and an up/down counter 136. The up/down detection section 135 includes a rise detection circuit 1
When the rising detection output of the A-phase speed detection pulse is given from 31, the level of the B-phase rotation pulse is determined, and depending on whether the B-phase rotation pulse is high level or low level, the servo motor 10 (Fig. 1) This is to determine whether the motor is rotating forward or backward. The up/down counter 9 136 counts up or down the detection output of the rising edge detection circuit 131 based on the determined output of the up/down detection section 135.

次に、第2図の回路の動作説明をする。Next, the operation of the circuit shown in FIG. 2 will be explained.

キャプチャレジスタ134の内容は、キャプチャ信号、
すなわちA相の速度検出パルスの立上りエッジが検出さ
れるごとに更新されていく。また、アップダウンカウン
タ136は、速度検出パルスの立上り検出回数、言い換
えれば速度検出パルス数をカウントする。
The contents of the capture register 134 include the capture signal,
That is, it is updated every time the rising edge of the A-phase speed detection pulse is detected. Further, the up/down counter 136 counts the number of times the rising edge of the speed detection pulse is detected, in other words, the number of speed detection pulses.

それゆえ、所定のサンプル時間ΔT内において、アップ
ダウンカウンタ136て、速度検出パルスがn個カウン
トされ、その間にフリーランニングカウンタ133でカ
ウントされる基準クロツクのカウント数を計測すれば、
それに基づいて回転数Nを算出することができる。
Therefore, if n speed detection pulses are counted by the up/down counter 136 within a predetermined sampling time ΔT, and the number of reference clocks counted by the free running counter 133 during that period is measured, then
Based on this, the rotation speed N can be calculated.

つまり、サーボモータ10の回転数N[rpm]は、基
準クロックの周波数をf[Hzl、サーボモータ10が
1回転することによりロータリエン10 コーダ12から出力されるA相の速度検出パルス数をC
[ppr]、今回のキャプチャレジスタ131の内容を
CPTn,前回のキャプチャレジスタ131の内容をC
PTn,前回のキャプチャレジスタ131の内容をCP
T.−+とすると、f ・・・ (1) で算出することができる。
In other words, the rotation speed N [rpm] of the servo motor 10 is the frequency of the reference clock f [Hzl], and the number of A-phase speed detection pulses output from the rotary encoder 10 and the coder 12 when the servo motor 10 rotates once is C.
[ppr], the contents of the current capture register 131 are CPTn, and the contents of the previous capture register 131 are CPTn.
PTn, CP the contents of the previous capture register 131
T. -+, it can be calculated as f... (1).

ここで、式(1)は、基準クロツク周波数fと速度検出
パルス数Cとが定数であるから、N=     n A
      =匹A ・・・(2)CPT,−CPT,
−, X 但し、A:LX60 C X : CPT,   CPT0−+ となる。
Here, in equation (1), since the reference clock frequency f and the speed detection pulse number C are constants, N=n A
= Animal A...(2) CPT, -CPT,
-, X However, A: LX60 C X: CPT, CPT0-+.

第3図は、制御部14がキャプチャレジスタ134およ
びアップダウンカウンタ136の内容を11 サンプル時間Δtごとに読出して回転数データNを算出
するための回転数検出処理手順を示している。
FIG. 3 shows a rotation speed detection processing procedure in which the control unit 14 reads out the contents of the capture register 134 and the up/down counter 136 every 11 sample times Δt to calculate the rotation speed data N.

サンプル時間Δtは、 Δt≧X=CPT.,−CPT,−+ ・= (3)を
満足する適当な時間が設定されている。
The sample time Δt is Δt≧X=CPT. , -CPT, -+ ·= An appropriate time that satisfies (3) is set.

次に、第2図および第3図を参照して説明をする。Next, explanation will be given with reference to FIGS. 2 and 3.

制御部14では、内部タイマが一定のサンプル時間Δt
に達するごとに(ステップS1)、タイマがリセットさ
れる(ステップS2)。そして、キャプチャレジスタ1
34およびアップダウンヵウンタ136の内容を読出す
(ステップS3)。
In the control unit 14, an internal timer keeps a constant sampling time Δt.
Each time the timer reaches (step S1), the timer is reset (step S2). And capture register 1
34 and the contents of the up/down counter 136 are read out (step S3).

次いで、今回読出したキャプチャレジスタ134のカウ
ント数CPTll (nは自然数であり、検出タイミン
グごとに1.2,3,・・・と増加していく。)から、
すでに記憶されている前回読出されたキャプチャレジス
タ134のカウント数CPT。−1を減じることにより
、1サンプル時間Δt内の基準クロック数Xが求められ
た後、CPTfiが12 記憶される(ステップS4)。
Next, from the count number CPTll of the capture register 134 read this time (n is a natural number and increases as 1.2, 3, etc. at each detection timing),
The previously stored count number CPT of the capture register 134 that was read last time. After the reference clock number X within one sample time Δt is determined by subtracting -1, CPTfi is stored as 12 (step S4).

また、今回読出されたアップダウンカウンタ136のカ
ウント数UDC。(nは自然数であり、検出タイミング
ごとに1.2,3,・・・と増加していく。)から、す
でに記憶されている前回読出されたアップダウンカウン
タ136のカウント数UD C n−1を減じることに
より、1サンプル時間Δt内の回転パルス数nが求めら
れた後、UDC,が記憶される(ステップS5)。
Also, the count number UDC of the up/down counter 136 read this time. (n is a natural number and increases as 1.2, 3, etc. at each detection timing.) From this, the count number of the up/down counter 136 that is already stored and read last time UD C n-1 After the number n of rotational pulses within one sample time Δt is determined by subtracting Δt, UDC is stored (step S5).

その後、上述した式(2)に基づいて、サーボモータ1
0の回転数Nが求められる(ステップS6)。
Then, based on the above equation (2), the servo motor 1
The rotation speed N of 0 is determined (step S6).

以上は、サーボモータ10の回転数データNの算出方法
の説明である。
The above is an explanation of the method for calculating the rotation speed data N of the servo motor 10.

今度は、サーボモータ10を停止させる場合または逆転
させる場合の制御を説明する。この実施例では、サーボ
モータ10の回転数が予め定める極めて低い回転数以下
になるまでは、急に停止または逆転を行わず、減速制御
を続ける。
Next, control when stopping or reversing the servo motor 10 will be explained. In this embodiment, the deceleration control is continued without suddenly stopping or reversing the servo motor 10 until the rotation speed of the servo motor 10 falls below a predetermined extremely low rotation speed.

つまり、サーボモータ10を、たとえば停止さ13 せる場合には、制御部14はPWM信号を調整して、ま
ず、サーボモータ]0の回転数を減速させる。そして、
サーボモータ10の回転数が予め定める回転数以下に低
下するまでは、サーボモータ10の回転を完全に停止さ
せることを禁止して、サーボモータ10の急激な停止に
伴なう振動の発生や光学系のランプ切れや光学系移動用
の摺動部材の摩耗を少なくするのである。
That is, when stopping the servo motor 10, for example, the control section 14 adjusts the PWM signal to first reduce the rotational speed of the servo motor 10. and,
Until the rotational speed of the servomotor 10 falls below a predetermined rotational speed, it is prohibited to completely stop the rotation of the servomotor 10. This reduces the risk of lamp burnout in the system and wear of the sliding members used to move the optical system.

より具体的に第4図を参照して説明すると、減速制御時
において、制御部14では、所定の割込みタイミング等
でキャプチャレジスタ134およびアップダウンカウン
タ136(第2図参照)の内容の更新があったか否かの
判別がされる(ステップS11)。
More specifically, referring to FIG. 4, during deceleration control, the control unit 14 determines whether the contents of the capture register 134 and up/down counter 136 (see FIG. 2) have been updated at a predetermined interrupt timing, etc. A determination is made as to whether this is the case (step S11).

キャプチャレジスタ134およびアップダウンカウンタ
136の内容の更新があった場合には、所定の減算カウ
ンタに予め定める数Zが設定され(ステップS12)、
更新後のキャプチャレジスタ134およびアップダウン
カウンタ136の内容に基づいてパルス幅W,(nは自
然数であり、14 算出タイミングごとに1.2,3,・・・と増加してい
く。)の算出か行われる(ステップ813)。
When the contents of the capture register 134 and the up/down counter 136 are updated, a predetermined number Z is set in a predetermined subtraction counter (step S12);
Calculate the pulse width W, (n is a natural number and increases as 1.2, 3, etc. every 14 calculation timings) based on the updated contents of the capture register 134 and up/down counter 136. is performed (step 813).

パルス幅W0の算出は、次式に基づいてなされる。The pulse width W0 is calculated based on the following equation.

Wfi=X/n            ・・・(4)
但し、X = C P T ,,C P T o− +
n=UDco−UDCo つまり、パルス幅W0は、従来装置のように、一定時間
、たとえばザンプル時間Δt内に検出される速度検出パ
ルスの個数によって算出されているのではなく、ある回
転検出パルスの立上りエッジから次の回転パルスの立上
りエッジまでの幅が基準クロックの数で表わされ、該基
準クロックの数がパルス幅W。とされている。従って、
従来の装置に比べて、パルス幅W。が極めて正確に算出
され、モータの回転速度が正確に検出されている。
Wfi=X/n...(4)
However, X = C P T ,, C P T o− +
n = UDco - UDCo In other words, the pulse width W0 is not calculated based on the number of speed detection pulses detected within a certain period of time, for example, sample time Δt, as in conventional devices, but is calculated based on the rise of a certain rotation detection pulse. The width from the edge to the rising edge of the next rotational pulse is expressed by the number of reference clocks, and the number of reference clocks is the pulse width W. It is said that Therefore,
Pulse width W compared to conventional equipment. is calculated extremely accurately, and the rotational speed of the motor is detected accurately.

そして、パルス幅Wnが予め定める値W。と比較され、
W,<W。の場合には(ステップS14でYES)、次
の動作、たとえばサーボモータ10を完全に停止させる
ための動作を禁止する次動15 作禁止フラグが“H”にセットされる(ステップS15
)。
Then, the pulse width Wn is a predetermined value W. compared to
W, <W. In this case (YES in step S14), the next operation 15 prohibition flag that prohibits the next operation, for example, the operation to completely stop the servo motor 10, is set to "H" (step S15).
).

一方、パルス幅かW。≧Woの場合(ステップS14で
No)には、次動作禁止フラグが“L”にリセットされ
る(ステップS16)。
On the other hand, the pulse width is W. If ≧Wo (No in step S14), the next operation prohibition flag is reset to "L" (step S16).

この結果、制御部14では、次動作禁止フラグが“H”
にセットされている場合、複写機本体の制御部(図示せ
ず)から停止命令、反転命令等が与えられた場合におい
ても、直ちに停止制御等は行イっれず、次動作禁止フラ
グが“L”にリセットされるまで、換言すればサーボモ
ータ10の回転速度が所定速度以下になるまで、停止制
御等が一時保留される。
As a result, in the control unit 14, the next operation prohibition flag is set to “H”.
, even if a stop command, reverse command, etc. is given from the control unit (not shown) of the copier main body, the stop control etc. cannot be performed immediately, and the next operation prohibition flag is set to "L". In other words, the stop control etc. are temporarily suspended until the rotational speed of the servo motor 10 becomes equal to or less than a predetermined speed.

よって、サーボモータ10が予め定める所定速度以上で
ある場合においては、サーボモータ10が直ちに停止さ
れたり、反転されたりすることがないので、停止時や反
転時に発生していたショックや振動等をはとんとなくす
ることができるか、または、極めて小さくすることがで
きる。
Therefore, when the servo motor 10 is at a predetermined speed or higher, the servo motor 10 is not immediately stopped or reversed, so that shocks, vibrations, etc. that occur when the servo motor 10 is stopped or reversed are eliminated. It can be random or extremely small.

従って、複写機においては、特に、連続コピー16 の場合等に、次のコピーの先端部に画像乱れが生じるこ
とがない。
Therefore, in the copying machine, image distortion does not occur at the leading edge of the next copy, especially in the case of continuous copying 16.

ところで、ステップSllにおいて、キャプチャレジス
タ134およびアップダウンヵウンタ136の値が更新
されていない場合、従来の制御装置であれば、直ちにザ
ーボモータ]0は停止したものと判別されていた。
By the way, in step Sll, if the values of the capture register 134 and the up/down counter 136 are not updated, a conventional control device would immediately determine that the servo motor ]0 has stopped.

しかしながら、この実施例においては、次に説明するス
テップ817〜S19の処理によって、ザーボモータ1
0が完全に停止されたか否がの判別が正確に行われてい
る。
However, in this embodiment, the servo motor 1 is
It is accurately determined whether or not 0 has been completely stopped.

ステップSllにおいてNOの場合には、減算カウンタ
に設定されたカウント値Zが「1」デクリメンl・され
る(ステップS17)。そして、この減算カウンタのカ
ウント値が「0」か否かの判別がされ(ステップ818
)、減算カウンタのカウン1・値が「0」でない場合に
はそのまま今回の処理は終了され、減算カウンタのカウ
ント値か「0」と判別された場合には、次動作禁止フラ
グが“L”にリセットされて、次の動作、っまりザ17 ーボモータ10を完全に停止させる処理が可能な状態に
される(ステップs19)。
If NO in step Sll, the count value Z set in the subtraction counter is decremented by "1" (step S17). Then, it is determined whether the count value of this subtraction counter is "0" (step 818).
), if the count 1 value of the subtraction counter is not "0", the current process is terminated, and if it is determined that the count value of the subtraction counter is "0", the next operation prohibition flag is set to "L". , and the next operation, which is to completely stop the motor 10, is made possible (step s19).

換言すれば、一定時間(この一定時間は、この実施例で
は、たとえば所定の割込み時間幅であるが、これに代え
、第3図のザンプル時間Δtであってもよい。)内にロ
ータリエンコーダ12がら速度検出パルスの立上りエッ
ジが出刀されず、キャプチャレジスタ].34の内容が
更新されない状態が連続的に所定回数続き、一定時間の
所定倍の時間内において、速度検出パルスの立上りエッ
ジが検出されない場合に、制御部14は次の動作、たと
えばサーボモータ1oを完全に停止させるという動作を
行うことができるのである。
In other words, the rotation of the rotary encoder 12 within a certain period of time (in this embodiment, the certain period of time is, for example, a predetermined interrupt time width, but instead may be the sample time Δt in FIG. 3). However, the rising edge of the speed detection pulse is not output, and the capture register]. If the contents of 34 are not updated a predetermined number of times and the rising edge of the speed detection pulse is not detected within a predetermined times the predetermined time, the control unit 14 performs the next operation, for example, the control of the servo motor 1o. It is possible to perform the action of completely stopping the machine.

以上の実施例では、減速制御時において、キャプチャレ
ジスタ134およびアップダウンヵウンタ136の内容
の更新があったが否がか判別され(ステップS11)、
更新があった場合にも、更新がなかった場合にも、それ
ぞれ、所定の処理がなされるようにされているが、内容
の更新があった場合の処理たけ、すなわちステップSl
l,S18 12,S13,S14,S15,S16の処理からなる
減速制御であってもよい。
In the above embodiment, during deceleration control, it is determined whether or not the contents of the capture register 134 and up/down counter 136 have been updated (step S11);
Predetermined processing is performed both when there is an update and when there is no update, but the processing when there is an update of the contents, that is, step Sl
The deceleration control may include the processes of 1, S18 12, S13, S14, S15, and S16.

あるいはまた、内容の更新がなかった場合の処理、すな
わちステップSll,S17,S18.S19の処理の
みからなる減速制御としてもよい。
Alternatively, the process when the contents are not updated, that is, steps Sll, S17, S18. The deceleration control may include only the processing in S19.

この発明は、複写機の光学系制御用に限らず、ファクシ
ミリ装置の読取装置制御用モータや、その他の一般的な
モータ制御回路に採用できる。
The present invention is applicable not only to control of the optical system of a copying machine but also to a motor for controlling a reading device of a facsimile machine and other general motor control circuits.

また、この発明は、PWM信号以外で印加電圧を算出す
る場合にも適用できる。
Further, the present invention can be applied to the case where the applied voltage is calculated using other than PWM signals.

く発明の効果〉 この発明は、以上のように構成されているので、モータ
が低速回転になってから停止するまでの状態を正確に判
断することができ、目標とする停止速度または停止と見
做し得る回転速度を正確に検知することができる。
Effects of the Invention> Since the present invention is configured as described above, it is possible to accurately judge the state from when the motor rotates at a low speed until it stops, and it is possible to accurately judge the state from when the motor rotates at a low speed until it stops, and to determine whether the motor is at the target stopping speed or when the motor is stopped. The possible rotational speed can be detected accurately.

また、この発明によれば、極めて低速の回転状態を正確
に判断できるため、モータを停止制御する場合やブレー
キング制御する場合に安定した制御、振動やショックの
発生を抑えた制御を行うこ19 とができる。
Furthermore, according to the present invention, since it is possible to accurately judge the rotational state at extremely low speeds, it is possible to perform stable control and control that suppresses the generation of vibrations and shocks when controlling the motor to stop or perform braking control. I can do that.

さらに、この発明によれば、分解能の余り高くないエン
コーダ等のモータの回転に連動して周期的に変化する信
号を出力する回転信号出力手段が用いられている場合に
おいても、モータの低速状態を正確に判別することがで
きる。
Further, according to the present invention, even when a rotation signal output means that outputs a signal that periodically changes in conjunction with the rotation of the motor, such as an encoder with not very high resolution, is used, the low speed state of the motor can be detected. Can be accurately determined.

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

第1図は、この発明の実施例が適用された光学系駆動用
DCサーボモー夕の駆動制御回路の電気的構成を示すブ
ロック図である。 第2図は、この発明の実施例に係るエンコーダ入力部の
電気的構成を示す回路ブロック図である。 第3図は、この発明の実施例における回転速度検出処理
手順を表わすフローチャートである。 第4図は、制御部14によって行われる減速制御処理の
内容を表わすフローチャートである。 図において、10・・・DCサーボモータ、]1・・・
ドライバ部、12・・・ロータリエンコーダ、13・・
・エンコーダ信号入力部、14・・・制御部、15・・
・速度指令信号入力部、16・・・PWMユニット、を
示20 す。 21
FIG. 1 is a block diagram showing the electrical configuration of a drive control circuit of a DC servo motor for driving an optical system to which an embodiment of the present invention is applied. FIG. 2 is a circuit block diagram showing the electrical configuration of the encoder input section according to the embodiment of the invention. FIG. 3 is a flowchart showing the rotational speed detection processing procedure in the embodiment of the present invention. FIG. 4 is a flowchart showing the details of the deceleration control process performed by the control section 14. In the figure, 10...DC servo motor, ]1...
Driver section, 12... Rotary encoder, 13...
・Encoder signal input section, 14...control section, 15...
・Speed command signal input section, 16... PWM unit, 20 is shown. 21

Claims (1)

【特許請求の範囲】 1、モータの回転軸に連結され、モータの回転に連動し
て周期的に変化する信号を出力する回転信号出力手段、 回転信号出力手段から出力される信号の変化を検出する
検出手段、 検出手段の出力に基づいて信号の周期データを算出する
算出手段、および 目標回転数に対応する周期データが予め記憶された記憶
手段を有し、算出手段によって算出された周期データを
記憶手段の内容と比較して、モータ回転数が目標回転数
に対してどのような状態かを判別する判別手段、 を含むことを特徴とするモータ制御装置。 2、請求項第1項記載のモータ制御装置は、さらに、 検出手段が一定間隔の間に全く信号の変化を検出しなか
ったときに所定の値だけ計数値が変化される計数手段、
および 計数手段の計数値が予め定める値に達したときに、モー
タ回転数が所定の回転数まで低下したことを判別する判
別手段、 を含むことを特徴とするものである。
[Claims] 1. Rotation signal output means connected to the rotation shaft of the motor and outputting a signal that changes periodically in conjunction with the rotation of the motor; detecting changes in the signal output from the rotation signal output means; A detection means for calculating period data of the signal based on the output of the detection means, and a storage means in which period data corresponding to the target rotation speed is stored in advance, and the period data calculated by the calculation means is stored in advance. A motor control device comprising: determining means for determining the state of the motor rotation speed relative to a target rotation speed by comparing the contents of the storage means. 2. The motor control device according to claim 1 further comprises: counting means for changing the count value by a predetermined value when the detection means does not detect any change in the signal during a certain interval;
and determining means for determining that the motor rotation speed has decreased to a predetermined rotation speed when the count value of the counting means reaches a predetermined value.
JP2015358A 1990-01-24 1990-01-24 Motor controller Pending JPH03218288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015358A JPH03218288A (en) 1990-01-24 1990-01-24 Motor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015358A JPH03218288A (en) 1990-01-24 1990-01-24 Motor controller

Publications (1)

Publication Number Publication Date
JPH03218288A true JPH03218288A (en) 1991-09-25

Family

ID=11886580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015358A Pending JPH03218288A (en) 1990-01-24 1990-01-24 Motor controller

Country Status (1)

Country Link
JP (1) JPH03218288A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05173647A (en) * 1991-12-25 1993-07-13 Matsushita Electric Ind Co Ltd Speed controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05173647A (en) * 1991-12-25 1993-07-13 Matsushita Electric Ind Co Ltd Speed controller

Similar Documents

Publication Publication Date Title
JP5539002B2 (en) Motor control device
JP3068358B2 (en) Image forming apparatus having fan motor failure detecting means and image forming apparatus
JPH03218288A (en) Motor controller
US5130626A (en) Device for controlling rotational speed of motor
JPH03218289A (en) Motor controller
JP2820757B2 (en) Motor control device
JP2781232B2 (en) Steady-state reach detection device in motor controller
JP2957216B2 (en) Motor control device
JPH04322198A (en) Bidirectional drive by step motor
JP2670162B2 (en) Motor rotation speed control device
JP2820747B2 (en) Steady-state reach detection device in motor controller
JPH07208976A (en) Rotational-position detection apparatus
JPH03198681A (en) Motor controller
JP2820755B2 (en) Motor control device
JP2735324B2 (en) Motor rotation speed control device
JP2820724B2 (en) Drive control device for servo motor of image reading device
JPH099666A (en) Speed controller for motor
JPH03218281A (en) Motor controller
JPH03218282A (en) Motor controller
JP2525249B2 (en) Motor control voltage calculation method
JP2820756B2 (en) Motor control device
JPH0454951B2 (en)
JPH03198677A (en) Motor controller
JPH03173385A (en) Rotating speed controller for motor
JPH03198680A (en) Motor controller