JPH01252182A - Control circuit for speed of motor - Google Patents

Control circuit for speed of motor

Info

Publication number
JPH01252182A
JPH01252182A JP63079257A JP7925788A JPH01252182A JP H01252182 A JPH01252182 A JP H01252182A JP 63079257 A JP63079257 A JP 63079257A JP 7925788 A JP7925788 A JP 7925788A JP H01252182 A JPH01252182 A JP H01252182A
Authority
JP
Japan
Prior art keywords
motor
output
value
speed
bits
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
JP63079257A
Other languages
Japanese (ja)
Inventor
Atsushi Nishimoto
敦 西本
Mutsuji Kobayashi
小林 睦司
Toshihiko Watanabe
利彦 渡辺
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63079257A priority Critical patent/JPH01252182A/en
Publication of JPH01252182A publication Critical patent/JPH01252182A/en
Pending legal-status Critical Current

Links

Landscapes

  • Motor And Converter Starters (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

PURPOSE:To start a motor rapidly by using an output value from an output means at the time of the start of the motor as a command value for forced acceleration. CONSTITUTION:A counter means 14 counting an encoder signal proportional to the rotational speed of a motor is set so that a specified bit is brought to '1' and bits of orders higher than that of the specified bit to '0' when the motor is rotated at an instructed speed. An output means 20 outputs the specified bit and the bits of the higher orders in all bits of the counter means 14 as speed error signals. An output means 22 adds a value displayed by the bits lower than the specified bit and an output from the output means 22, and outputs an added value as a phase error signal. A decision means 24 sets output values from the output means 20, 22 at fixed values when displacement from the range of a value capable of represented by the specified bit and the bits of the higher orders of the result of counting is decided.

Description

【発明の詳細な説明】 目    次 概   要  ・ ・ ・ ・ ・ ・ ・ ・ ・ 
・ ・ ・  4頁産業上の利用分野 ・・・・・・・
・ 6頁従来の技術 ・・・・・・・・・・・ 7頁発
明が解決しようとする課題 ・・・12頁課題を解決す
るための手段 ・・・・14頁作   用  ・ ・ 
・ ・ ・ ・ ・ ・ ・ ・ ・ ・ 16真実 
 施  例  ・ ・ ・ ・ ・ ・ ・ ・ ・ 
・ ・ 17頁発明の効果 ・・・・・・・・・・・2
1頁概要 モータの速度制御回路に関し、 モータの立ち上がり特性を改善したモータの速度制御回
路を提供することを目的とし、モータの回転速度に比例
したエンコーダ信号を用い、該エンコーダ信号の周期を
デジタル的に処理して速度誤差信号及び位相誤差信号を
得、これらの信号に基づいてモータの回転速度をフィー
ドバック制御するモータの速度制御回路において、エン
コーダ信号の周期をカウントするカウンタ手段と、カウ
ンタ手段のカウント値を速度誤差信号として出力する記
憶機能を有する第1出力手段と、カウンタ手段のカウン
ト値を累積的に加算する加算手段と、加算手段に入力す
るビットのうち最上位ビットの符号を反転する符号反転
手段と、加算手段の計算結果を位相誤差信号として出力
する記憶機能を有する第2出力手段と、カウンタ手段の
カウント結果が第1の出力手段で表現できる値よりも大
きいか否かを判定する判定手段と、判定手段が大きいと
判定した場合には、前記第1出力手段と第2出力手段の
出力値を、判定手段が大きいと判定しない範囲でカウン
ト結果が最大を示す値となるように選択する選択手段と
、前記第1出力手段及び第2出力手段の記憶内容更新の
タイミングを、エンコーダ信号が入力されて前記速度誤
差信号の値及び前記位相誤差信号の値が確定した後、又
は前記判定手段が大きいと判定したとき、前記第1出力
手段と前記第2出力手役の出力値を、該判定手段が大き
いと判定しない範囲でカウント結果が最大値となるよう
に前記選択手段で選択し、その選択が確定した後とする
記憶内容更新手段とを設けて構成する。
[Detailed description of the invention] Table of contents Overview ・ ・ ・ ・ ・ ・ ・ ・ ・
・ ・ ・ 4 pages Industrial application fields ・・・・・・・
・Page 6: Prior art ・・・Page 7: Problems to be solved by the invention ・Page 12: Means for solving the problem ・・Page 14: Effects ・ ・
・ ・ ・ ・ ・ ・ ・ ・ ・ ・ 16 truths
Example ・ ・ ・ ・ ・ ・ ・ ・ ・
・ ・ Page 17 Effects of the invention ・・・・・・・・・・・・2
1 page summary Regarding motor speed control circuits, the purpose of this project is to provide a motor speed control circuit with improved motor start-up characteristics, using an encoder signal proportional to the motor rotation speed, and converting the period of the encoder signal digitally. In a motor speed control circuit that processes the encoder signal to obtain a speed error signal and a phase error signal, and feedback-controls the rotational speed of the motor based on these signals, a counter means for counting the period of the encoder signal and a counter means for counting the period of the encoder signal are provided. a first output means having a memory function for outputting a value as a speed error signal; an addition means for cumulatively adding the count value of the counter means; and a code for inverting the sign of the most significant bit among the bits input to the addition means. an inverting means, a second output means having a storage function for outputting the calculation result of the addition means as a phase error signal, and determining whether or not the count result of the counter means is larger than a value that can be expressed by the first output means. and a determining means, and when the determining means determines that the size is large, the output values of the first output means and the second output means are set so that the count result becomes a maximum value within a range where the determining means does not determine that the size is large. The timing of updating the storage contents of the selection means and the first output means and the second output means is determined after the encoder signal is input and the value of the speed error signal and the value of the phase error signal are determined, or after the value of the speed error signal and the phase error signal are determined, or When the determining means determines that the move is large, the selecting means selects the output values of the first output means and the second output hand so that the count result becomes the maximum value within a range where the determining means does not determine that the move is large. and storage content updating means for updating the stored content after the selection is confirmed.

産業上の利用分野 本発明はモータの速度制御回路に関する。Industrial applications The present invention relates to a motor speed control circuit.

整流子の代わりに無接点で電子的に整流を行わせるブラ
シレスモーフは、寿命や電気雑音の面で信頼性が高く、
各種の機器への応用が進んでいる。
Brushless Morph, which uses non-contact electronic rectification instead of a commutator, is highly reliable in terms of lifespan and electrical noise.
Application to various devices is progressing.

このブラシレスモーフは構造上の自由度が高いので、軽
薄短小化を実現しやすいという特徴があり、機器とモー
タ間の相対的な機械精度が維持しやすダイレクトドライ
ブモータとして用途が拡大している。このようなモータ
は、例えば、カセット式%式% ビームプリンタのスキャナモータ等の高精度な定速回転
を必要とする用途に広く用いられている。
This brushless morph has a high degree of structural freedom, making it easy to make it lighter, thinner, shorter, and smaller, and its use as a direct drive motor is expanding because it makes it easier to maintain relative mechanical precision between the device and the motor. Such motors are widely used in applications that require highly accurate constant speed rotation, such as scanner motors for cassette type % beam printers.

そこで、モータを高精度で定速回転させるためのモータ
の速度制御回路が要望されている。
Therefore, there is a need for a motor speed control circuit that allows the motor to rotate at a constant speed with high precision.

従来の技術 ブラシレスモータを速度制御する回路において、モータ
の回転速度に比例したエンコーダ信号を用い、このエン
コーダ信号の周期をデジタル的に処理して速度誤差信号
と位相誤差信号を得、係る信号をデジタル/アナログ変
換(D/A変換)した後にモータの駆動回路にフィード
バックする方式が知られている。このような方式の従来
のモータの速度制御回路では、デジタル信号の処理をマ
イクロプロセッサで行っていた。しかしマイクロプロセ
ッサを採用すると価格が高価になると共に、専用回路で
ないために処理速度が遅いという問題があった。そこで
本発明者等は、従来マイクロプロセッサで実現していた
デジタル処理回路をIC化に適した回路として処理時間
の高速化をはかったモータの速度制御回路を先に提案し
た。
Conventional technology In a circuit that controls the speed of a brushless motor, an encoder signal proportional to the rotational speed of the motor is used, the period of this encoder signal is digitally processed to obtain a speed error signal and a phase error signal, and the signals are digitally processed. A method is known in which the data is fed back to the motor drive circuit after analog conversion (D/A conversion). In conventional motor speed control circuits of this type, digital signals are processed by a microprocessor. However, when a microprocessor is used, it becomes expensive and the processing speed is slow because it is not a dedicated circuit. Accordingly, the present inventors have previously proposed a motor speed control circuit which aims to speed up the processing time by converting the digital processing circuit, which has conventionally been implemented using a microprocessor, into a circuit suitable for IC.

第6図は本発明者等が提案した先願に係るモータの速度
制御回路のブロック図である。
FIG. 6 is a block diagram of a motor speed control circuit according to a prior application proposed by the present inventors.

第6図において、42は6ビツトのアップカウンタ、3
1.33.37はラッチ、34は上位ビットの符号を反
転する符号反転器、35はデジタル加算器、32.36
はデジタルマルチプレクサ、38.39は遅延回路、4
0はオーバフロー検出回路、43はデジタルコンパレー
タ、44はOR回路である。
In FIG. 6, 42 is a 6-bit up counter, 3
1.33.37 is a latch, 34 is a sign inverter that inverts the sign of the upper bit, 35 is a digital adder, 32.36
is a digital multiplexer, 38.39 is a delay circuit, 4
0 is an overflow detection circuit, 43 is a digital comparator, and 44 is an OR circuit.

以下第6図の従来例の動作について説明する。The operation of the conventional example shown in FIG. 6 will be explained below.

仮に、モータの指令回転速度をfsHz、実際のモータ
の回転速度をf、h、基準クロック発生器4の周波数を
FcHz、エンコーダ信号発生器2はモーター回転に一
回信号を出力するものとする。
Assume that the command rotational speed of the motor is fsHz, the actual rotational speed of the motor is f, h, the frequency of the reference clock generator 4 is FcHz, and the encoder signal generator 2 outputs a signal once every rotation of the motor.

基準クロック発生器4で発生されるクロック周波数f。Clock frequency f generated by reference clock generator 4.

は、モータの指令速度をf、とした場合、fc/ rs
がバイナリ表現でrl 11000J又はこれより小さ
な値となるように定める。rc/fsがrlllooo
」より小さな場合には、サミールスイッチ45にその分
を補正する適切な値を設定して、カウンタ42がエンコ
ーダ信号の周期をカウントする際にサミールスイッチ4
5に設定された値をカウンタ42に予めプリセットする
ようにしておく。これにより、モータが指令速度で回転
しているときにエンコーダ信号発生器2から出力される
信号の周期を基準クロック発生器4の周波数でカウント
した場合の値は、「111000」となるようにする。
If the commanded speed of the motor is f, then fc/rs
is determined to be rl 11000J or a smaller value in binary representation. rc/fs is rlllooo
'', the Samir switch 45 is set to an appropriate value to compensate for the difference, and the Samir switch 4 is set when the counter 42 counts the period of the encoder signal.
The value set to 5 is preset in the counter 42 in advance. As a result, when the period of the signal output from the encoder signal generator 2 is counted using the frequency of the reference clock generator 4 when the motor is rotating at the command speed, the value is "111000". .

エンコーダ信号発生器2からのエンコーダ信号は、同期
回路5で基準クロック発生器4の周波数で同期化された
後、カウンタ42のクリア信号、ラッチ31.33.3
7が入力信号をラッチするタイミング信号及びオーバフ
ロー検出回路40のリセット信号として用いられる。
The encoder signal from the encoder signal generator 2 is synchronized with the frequency of the reference clock generator 4 in the synchronization circuit 5, and then the clear signal of the counter 42, the latch 31.33.3
7 is used as a timing signal for latching an input signal and as a reset signal for the overflow detection circuit 40.

デジタルマルチプレクサ32にはカウンタ42の下位4
ビツトを入力する。一方、デジタル加算器35にはカウ
ンタ42の下位4ビツトのうち符号反転器34により最
上位ビットのみ反転した値を入力する。デジタル加算器
35にはさらに、ラッチ37の出力信号をフィードバッ
クして入力する。オーバフロー検出回路40はカウンタ
42がエンコーダ信号の周期をカウントした際にオーバ
フローを生じたか否かを検出するものであり、オーバフ
ローを検出した場合、データrl 111Jを、オーバ
フローを検出しない場合、データ「0000」をデジタ
ルマルチプレクサ32.36に送り出すと共に、OR回
路44にこの検出結果を入力する。
The digital multiplexer 32 has the lower 4 of the counter 42.
Enter bits. On the other hand, a value obtained by inverting only the most significant bit of the lower four bits of the counter 42 by the sign inverter 34 is input to the digital adder 35. Furthermore, the output signal of the latch 37 is fed back and input to the digital adder 35 . The overflow detection circuit 40 detects whether or not an overflow occurs when the counter 42 counts the period of the encoder signal. '' to the digital multiplexers 32 and 36, and also inputs this detection result to the OR circuit 44.

デジタルコンパレータ43は、カウンタ出力の上位2ビ
ツトが入力されて、この値が「11」に一致するか否か
を判定する回路であり、この判定結果をOR回路44に
入力している。モータが指令速度で回転する場合のカウ
ント値を前述したように定めているので、デジタルコン
パレータ43には大小を比較する機能を省くことができ
る。オーバフロー検出回路40の出力とカウンタの上位
2ビツトが「11」に一致したか否かを検出するデジタ
ルコンパレータ43の出力と、OR回路440組合せに
より、誤差信号を求める演算が正しく行われているかど
うかを知ることができるようになっている。
The digital comparator 43 is a circuit that receives the upper two bits of the counter output and determines whether this value matches "11" or not, and inputs the result of this determination to the OR circuit 44. Since the count value when the motor rotates at the commanded speed is determined as described above, the digital comparator 43 can omit the function of comparing the magnitudes. The output of the overflow detection circuit 40, the output of the digital comparator 43 that detects whether the upper two bits of the counter match "11", and the combination of the OR circuit 440 determine whether the calculation to obtain the error signal is performed correctly. It is now possible to know.

OR回路44の出力はデジタルマルチプレクサ32’、
36のデータセレクト信号として機能する。
The output of the OR circuit 44 is sent to the digital multiplexer 32',
It functions as a data select signal of 36.

即ち、オーバフロー検出回路40でオーバフローが検出
されるか、又は、デジタルコンパレータ43でカウンタ
42のカウント値の上位2ビツトが「11」に一致して
いないと判定された場合には、OR回路44は、先にオ
ーバフロー検出回路40からデジタルマルチプレクサ3
2.36に送られたデータ(オーバフローを検出した場
合「1111」、オーバフローを検出しない場合「00
00」)を選択する信号を出力する。一方、オーバフロ
ーが検出されず且つデジタルコンパレータ43が「11
」に一致していると判定した場合はモータが指令速度近
くで回転していることを意味し、この場合にはOR回路
44から、デジタルマルチプレクサ32.36がラッチ
31の出力やデジタル加算器35の出力を選択する信号
を出すようにしている。
That is, if the overflow detection circuit 40 detects an overflow, or if the digital comparator 43 determines that the upper two bits of the count value of the counter 42 do not match "11", the OR circuit 44 , first from the overflow detection circuit 40 to the digital multiplexer 3.
2. Data sent to 36 (“1111” if overflow is detected, “00” if no overflow is detected)
00'') is output. On the other hand, no overflow is detected and the digital comparator 43 is "11".
”, it means that the motor is rotating near the command speed. A signal is output to select the output.

該データ及びOR回路44への検出結果の出力は、デジ
タルマルチプレクサ32.36の出力値がラッチ33.
37でラッチされた後に、カウンタ42をリセットする
信号を遅延回路38で遅延させた信号によりリセットさ
れる。
The output of the data and the detection result to the OR circuit 44 is based on the output value of the digital multiplexer 32.36 and the latch 33.36.
After being latched by the counter 37, the counter 42 is reset by a signal delayed by the delay circuit 38.

ラッチ33の値は、モータの回転速度fうと指令速度f
、の大小に応じて「1000」を中心に変化するので、
この信号をオフセットのある速度誤差信号とみなすこと
ができる。又、ラッチ37の示す値はオフセットのない
速度誤差信号を累積的に加算したものであり、位相誤差
信号を示している。
The value of the latch 33 is the motor rotational speed f and the command speed f.
It changes around "1000" depending on the size of , so
This signal can be regarded as a speed error signal with an offset. Further, the value indicated by the latch 37 is the cumulative addition of speed error signals without offset, and indicates a phase error signal.

ラッチ33から出力される速度誤差信号及びラッチ37
から出力される位相誤差信号は、それぞれD/A変換器
10.11によりデジタル/アナログ変換されて加算回
路12に入力される。加算回路12ではサーボ帯域等に
より定まるゲインで両信号を加算し、これをモータ駆動
回路3に入力することによりモータ1を定速制御する。
Speed error signal output from latch 33 and latch 37
The phase error signals outputted from the circuits are each subjected to digital/analog conversion by D/A converters 10 and 11 and input to the adder circuit 12 . The adder circuit 12 adds both signals with a gain determined by the servo band, etc., and inputs this to the motor drive circuit 3 to control the motor 1 at a constant speed.

尚、6はスタートスイッチであり、電源役人後このスタ
ートスイッチ6をオンにすることによりモータの回転が
開始される。
Note that 6 is a start switch, and when the start switch 6 is turned on after the power source is turned on, the rotation of the motor is started.

発明が解決しようとする課題 ところが上述したような回路構成では、第7図のタイム
チャートに示すように、モータのスタート時において、
モータスタート信号入力時からエンコーダ信号発生器2
によって最初のラッチ信号を発生するまでの期間、ラッ
チ33.37の出力値は電源の投入状態により不定であ
った。また、カウンタ42はエンコーダ信号の周期をカ
ウントするものであるから、エンコーダ信号発生器2に
よって2回目のラッチ信号を発生するまでの期間、ラッ
チ33.37の出力値には誤りがある場合があった。即
ち第7図において、aの間に破線で示す如くカウンタの
オーバフローがあった場合には、上述した期間の出力値
として正しい出力値が得られるが、オーバフローが無い
場合には出力値に誤りがある場合があった。このように
従来の制御回路では、ラッチ信号が2回発生されるまで
、正しい出力が得られず、これがモータの立ち上がり特
性を阻害する原因となっていた。
Problems to be Solved by the Invention However, in the circuit configuration as described above, as shown in the time chart of FIG. 7, when the motor starts,
Encoder signal generator 2 from when motor start signal is input
During the period until the first latch signal is generated, the output values of the latches 33 and 37 are undefined depending on the power-on state. Furthermore, since the counter 42 counts the period of the encoder signal, there may be errors in the output values of the latches 33 and 37 until the encoder signal generator 2 generates the second latch signal. Ta. That is, in FIG. 7, if there is an overflow of the counter as shown by the broken line between a, a correct output value will be obtained as the output value for the above-mentioned period, but if there is no overflow, the output value will be incorrect. There was a case. As described above, in the conventional control circuit, a correct output cannot be obtained until the latch signal is generated twice, and this has been a cause of inhibiting the start-up characteristics of the motor.

本発明はこのような点に鑑みてなされたものであり、そ
の目的とするところは、モータの立ち上がり特性を改善
したモータの速度制御回路を提供することで・ある。
The present invention has been made in view of these points, and an object thereof is to provide a speed control circuit for a motor that improves the start-up characteristics of the motor.

課題を解決するための手段 第1図に本発明の原理ブロック図を示す。Means to solve problems FIG. 1 shows a block diagram of the principle of the present invention.

モータが指令速度で回転する場合、カウント値をバイナ
リ表現で所定のビットが「1」でそれより下位のビット
が「0」となるように設定した、モータの回転速度に比
例したエンコーダ信号の周期をカウントするカウンタ手
段14を設ける。また、カウンタ手段14の全ビットの
うち前記所定のビット及び該ビットより下位のビットを
速度誤差信号として出力する記憶機能を有する第1出力
手段20を設ける。
When the motor rotates at the commanded speed, the cycle of the encoder signal proportional to the motor's rotational speed is set so that the count value is expressed in binary so that the predetermined bit is "1" and the lower bits are "0". A counter means 14 is provided for counting. Further, a first output means 20 is provided which has a storage function to output the predetermined bit and bits lower than the predetermined bit among all the bits of the counter means 14 as a speed error signal.

更に、前記カウンタ手段14からのビットのうち前記所
定ビットの符号を反転する符号反転手段16と、該符号
反転手段16の出力ビット及び前記カウンタ手段14の
出力ビットのうち前記所定のビットより下位のビットか
らなるビット列の示す値と第2出力手段22の出力値と
を加算する加算手段18と、該加算手段18の計算結果
を位相誤差信号として出力する記憶機能を有する第2出
力手段22を設けると共に、前記エンコーダ信号の周期
のカウント結果が前記所定のビット及びそれより下位の
ビットで表現できる値の範囲を外れているか否かを判定
する判定手段24を設ける。
Further, sign inverting means 16 inverts the sign of the predetermined bit among the bits from the counter means 14, and sign inverting means 16 for inverting the sign of the predetermined bit among the bits from the counter means 14, and a sign inverting means 16 for inverting the sign of the predetermined bit among the bits output from the counter means 14, and an output bit of the sign inverting means 16 and an output bit of the counter means 14 lower than the predetermined bit. Adding means 18 for adding the value indicated by the bit string consisting of bits and the output value of the second output means 22, and a second output means 22 having a storage function for outputting the calculation result of the adding means 18 as a phase error signal are provided. Additionally, a determining means 24 is provided for determining whether or not the result of counting the period of the encoder signal is out of the range of values that can be expressed by the predetermined bits and bits lower than the predetermined bits.

また、判定手段24が外れていると判定した場合には、
前記第1出力手段20と第2出力手段22の出力値を大
小いずれの方に外れているかに応じて前記範囲内でカウ
ント結果が最大あるいは最小を示す値となるように選択
する選択手段26を設けると共に、前記第1出力手段2
0及び第2出力手段22の記憶内容更新のタイミングを
、エンコーダ信号が入力されて前記速度誤差信号の値及
び前記位相誤差信号の値が確定した後、またはモータの
回転速度が指令速度よりも遅く、且つ前記カウンタ手段
14の出力値が前記第1出力手段20で表すことのでき
る値よりも大きいと前記判定手段24が判定して、前記
選択手段26がモータの回転速度が指令速度に対して最
も遅いことを表す値を選択した後とする記憶内容更新手
段28とを設けて構成する。
In addition, when the determining means 24 determines that it is out of order,
a selection means 26 for selecting the output values of the first output means 20 and the second output means 22 so that the count results will be the maximum or minimum value within the range depending on whether the output values are out of the range; and the first output means 2
0 and the storage contents of the second output means 22 are updated after the encoder signal is input and the value of the speed error signal and the value of the phase error signal are determined, or the rotation speed of the motor is slower than the command speed. , and the determination means 24 determines that the output value of the counter means 14 is larger than the value that can be expressed by the first output means 20, and the selection means 26 determines that the rotation speed of the motor is higher than the command speed. The storage content updating means 28 selects the value representing the slowest value and then updates the stored content.

作   用 上述したようにカウンタ手段14は、モータが指令速度
で回転した場合のカウント値が特別の値を取るように設
定したものである。例えば、カウンタ手段14のビット
長を6、D/A変換器10゜11への出力を4ビツト、
カウンタ手段14をダウンカウンタとして用いる場合、
モータが指令速度で回転した場合のカウント値を、例え
ば「001000Jに設定する。カウンタ手段14をア
ップカウンタとして用いる場合には、カウント値を、例
えばrlllooo」に設定する。また、カウンタ手段
14のビット長とD/A変換器10.11への入力ビッ
ト長とが4ビツトで等しい場合は、カウント値を、例え
ば「1000」に設定する。
Function As described above, the counter means 14 is set so that the count value when the motor rotates at the commanded speed takes a special value. For example, the bit length of the counter means 14 is 6, the output to the D/A converter 10°11 is 4 bits,
When using the counter means 14 as a down counter,
The count value when the motor rotates at the commanded speed is set to, for example, "001000J." When the counter means 14 is used as an up counter, the count value is set to, for example, rlllooo. Further, if the bit length of the counter means 14 and the input bit length to the D/A converter 10.11 are equal at 4 bits, the count value is set to, for example, "1000".

カウンタ手段14のカウント値をこのように設定するこ
とにより、モータの回転速度に応じたエンコーダ信号の
周期のカウント値から、速度誤差信号と、この速度誤差
信号を累積的に加算した位相誤差信号を求める加算手段
18や加算が正しく行われる範囲を定める判定手段24
の構成を容易にすることができる。
By setting the count value of the counter means 14 in this way, a speed error signal and a phase error signal obtained by cumulatively adding the speed error signal can be obtained from the count value of the period of the encoder signal corresponding to the rotational speed of the motor. Addition means 18 for determining and determination means 24 for determining the range in which addition is correctly performed.
can be easily configured.

更に、記憶内容更新手段28を設けて、第1出力手段2
0及び第2出力手段22の記憶内容更新のタイミングを
、エンコーダ信号が入力されたときのみでなく、カウン
タ手段14の出力値が第1出力手段20で表すことので
きる値よりも大きいと判定手段24が判定した場合にも
取るようにしたので、モータの立ち上がり時にモータを
急速に立ち上がらせることができ、立ち上がり特性を顕
著に改善することができる。
Furthermore, a memory content updating means 28 is provided, and the first output means 2
0 and the timing of updating the storage contents of the second output means 22 not only when the encoder signal is input, but also when the output value of the counter means 14 is larger than the value that can be expressed by the first output means 20. 24 is determined, the motor can be started up quickly when the motor starts up, and the start-up characteristics can be significantly improved.

実  施  例 以下本発明を図面に示す実施例に基づいて詳細に説明す
る。実施例の説明において、第6図に示した従来回路と
同一構成部分については同一符号を付し、その説明を省
略することにする。
Embodiments The present invention will be explained in detail below based on embodiments shown in the drawings. In the description of the embodiment, the same components as those of the conventional circuit shown in FIG. 6 will be denoted by the same reference numerals, and the description thereof will be omitted.

第2図は本発明の一実施例ブロック図である。FIG. 2 is a block diagram of an embodiment of the present invention.

同図において、7はスタートスイッチ6のオンと同時に
パルスを発生するパルス発生器、46.47はOR回路
である。OR回路46は、カウンタ42からオーバフロ
ー信号が入力されるか、エンコーダ信号発生器2から同
期回路5を介して信号が入力されるか、あるいはパルス
発生器7からのパルスが入力された場合に、遅延回路3
9を介してラッチ33.37にラッチ信号を発生する。
In the figure, 7 is a pulse generator that generates a pulse at the same time as the start switch 6 is turned on, and 46 and 47 are OR circuits. The OR circuit 46 receives an overflow signal from the counter 42, receives a signal from the encoder signal generator 2 via the synchronization circuit 5, or receives a pulse from the pulse generator 7, Delay circuit 3
A latch signal is generated to latches 33 and 37 through 9.

OR回路47は、モータスタート時にパルス発生器7か
ら1言号が入力され、オーバフロー検出器40を強制的
にオーバフローを検出した状態にするものである。その
他の部分の構成及び作用は第6図に示した従来回路と同
様であるのでその説明を省略する。
The OR circuit 47 receives one word from the pulse generator 7 when the motor starts, and forces the overflow detector 40 into a state in which an overflow is detected. The structure and operation of other parts are the same as the conventional circuit shown in FIG. 6, so their explanation will be omitted.

第4図は上述した実施例のタイムチャートである。電源
投入後所定時間す経過してスタートスイッチ6がオンさ
れてモータスタート信号が発生されるのと同時に、パル
ス発生器7からパルスが発生される。このパルスはOR
回路47を介してオーバフロー検出器40に入力され、
オーバフロー検出器40を秀制的にオーバフローを検出
した状態にする。これによりデジタルマルチプレクサ3
2,36にデータ「1111」が送られ、このデータが
OR回路44からの信号により選択される。
FIG. 4 is a time chart of the above-described embodiment. At the same time that the start switch 6 is turned on and a motor start signal is generated after a predetermined period of time has elapsed after the power is turned on, the pulse generator 7 generates a pulse. This pulse is OR
is input to the overflow detector 40 via a circuit 47;
The overflow detector 40 is brought into a state in which an overflow is detected. This allows digital multiplexer 3
Data "1111" is sent to the terminals 2 and 36, and this data is selected by the signal from the OR circuit 44.

パルス発生器7からの信号はOR回路46にも入力され
ているため、デジタルマルチプレクサ32゜36が選択
したデータ「1111」は所定の遅延時間をもってラッ
チ33.37にラッチされる。
Since the signal from the pulse generator 7 is also input to the OR circuit 46, the data "1111" selected by the digital multiplexer 32.36 is latched into the latch 33.37 with a predetermined delay time.

このためスタートスイッチ6をオンしたのとほぼ同時に
ラッチ33.37から正しい出力が得られ、モータのス
タートを速やかに行うことができる。
Therefore, the correct output can be obtained from the latches 33 and 37 almost at the same time as the start switch 6 is turned on, and the motor can be started quickly.

なお第4図に於いて破線で示されているカウンクノオー
バフロー信号は、オーバフローが発生する場合もあるし
発生しない場合もあることを示しており、オーバフロー
が発生した場合には、データ「1111Jを所定の遅延
時間でもってラッチすることができるため、モータスタ
ート時には正しい出力を発生できる状態にあることを示
している。しかし、所定期間す内にカウンタのオーバフ
ローが発生しない場合には、パルス発生器7からの信号
に基づいてデータ「1111jをラッチして初めて正し
い出力を得ることができる。以上のように構成すること
により、スタート信号印加時から、ラッチ33.37は
モータを正常な回転方向に速やかに加速する出力をする
The overflow signal indicated by a broken line in FIG. 4 indicates that an overflow may or may not occur, and when an overflow occurs, the data "1111J" Since it can be latched with a predetermined delay time, it indicates that the motor is ready to generate the correct output when starting.However, if the counter does not overflow within the predetermined period, the pulse generator Correct output can only be obtained by latching data 1111j based on the signal from 7. With the above configuration, latches 33 and 37 will rotate the motor in the normal rotation direction from the time the start signal is applied. Produces output that accelerates quickly.

第3図は本発明の他の実施例ブロック図を示しており、
第2図に示した実施例からパルス発生器7及びOR回路
47を省略したものであり、他の構成は第2図に示した
実施例と全く同様である。
FIG. 3 shows a block diagram of another embodiment of the present invention,
The pulse generator 7 and OR circuit 47 are omitted from the embodiment shown in FIG. 2, and the other configurations are completely the same as the embodiment shown in FIG.

第5図のタイムチャートに示すように、本実施例は電源
投入後モータをスタートさせるまでの間にカウンタ42
がオーバフロー信号を発生することが分かっている場合
に有効であり、実際の応用例においてはほとんどの場合
にモータをスタートさせる前にカウンタ42は少なくと
も一度オーバフロー信号を発生しているものである。従
って本実施例は実際の回路においてほとんどの場合に有
効であり、スタート信号印加時から、ラッチ33゜37
はモータを正常な回転方向に速やかに加速をするための
出力をする。
As shown in the time chart of FIG. 5, in this embodiment, the counter 42 is
This is effective when it is known that the counter 42 will generate an overflow signal, and in most practical applications, the counter 42 will generate an overflow signal at least once before starting the motor. Therefore, this embodiment is effective in most cases in actual circuits, and from the time the start signal is applied, the latch 33°37
outputs an output to quickly accelerate the motor in the normal rotational direction.

発明の効果 以上詳述したように、本発明によればモータ起動時にお
ける第1出力手段及び第2出力手段の出力値を強制的に
加速を行う指令値とすることにより、モータを速やかに
スタートさせることができるという効果を奏する。
Effects of the Invention As detailed above, according to the present invention, by setting the output values of the first output means and the second output means at the time of starting the motor as a command value for forcibly accelerating the motor, the motor can be started quickly. This has the effect of making it possible to

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例ブロック図、第3図は本発明
の他の実施例ブロック図、第4図は第2図の実施例タイ
ムチャート、第5図は第3図の実施例タイムチャート、
第6図は従来例のブロック図、 第7図は従来例のタイムチャートである。 1・・・モータ、 2・・・エンコーダ信号発生器、 3・・・駆動回路、 4・・・基準クロック発生器、 7・・・パルス発生器、   14・・・カウンタ手段
、16・・・符号反転手段、 18・・・加算手段20
・・・第1出力手段、 22・・・第2出力手役、24
・・・判定手段、    26・・・選択手段、28・
・・記憶内容更新手段、 31.33.37・・・ラッチ、 32.36・・・デジタルマルチプレクサ、3.4・・
・符号反転器、   35・・・デジタル加算器40・
・・オーバフロー検出回路、 42・・・カウンタ、 43・・・デジタルコンパレータ、 募2図0×プ芭例タイムナイート 第4図
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a block diagram of an embodiment of the invention, Fig. 3 is a block diagram of another embodiment of the invention, and Fig. 4 is a time chart of the embodiment of Fig. 2. , FIG. 5 is a time chart of the embodiment of FIG. 3,
FIG. 6 is a block diagram of the conventional example, and FIG. 7 is a time chart of the conventional example. DESCRIPTION OF SYMBOLS 1...Motor, 2...Encoder signal generator, 3...Drive circuit, 4...Reference clock generator, 7...Pulse generator, 14...Counter means, 16... sign inversion means, 18...addition means 20
...first output means, 22...second output move, 24
...determination means, 26.. selection means, 28.
...Memory content update means, 31.33.37...Latch, 32.36...Digital multiplexer, 3.4...
・Sign inverter, 35...Digital adder 40・
...Overflow detection circuit, 42...Counter, 43...Digital comparator, Recruitment 2 figure 0x example time night figure 4

Claims (2)

【特許請求の範囲】[Claims] (1)モータの回転速度に比例したエンコーダ信号を用
い、該エンコーダ信号の周期をデジタル的に処理して速
度誤差信号及び位相誤差信号を得、これらの信号に基づ
いてモータの回転速度をフィードバック制御するモータ
の速度制御回路において、 モータが指令速度で回転する場合、カウント値をバイナ
リ表現で所定のビットが「1」で該ビットより下位のビ
ットが全て「0」、該ビットより上位のビットが全て「
0」又は全て「1」となるように設定した、前記エンコ
ーダ信号の周期をカウントするカウンタ手段(14)と
、 前記カウンタ手段(14)の出力ビットのうち前記所定
のビット及び該ビットより下位のビットを速度誤差信号
として出力する記憶機能を有する第1出力手段(20)
と、 前記カウンタ手段(14)の出力ビットのうち前記所定
ビットの符号を反転する符号反転手段(16)と、該符
号反転手段(16)の出力ビット及び前記カウンタ手段
(14)の出力ビットのうち前記所定のビットより下位
ビットからなるビット列の示す値と位相誤差信号とを加
算する加算手段(18)と、該加算手段(18)の計算
結果を前記位相誤差信号として出力する記憶機能を有す
る第2出力手段(22)と、 前記エンコーダ信号の周期のカウント結果が前記所定の
ビット及びそれより下位のビットで表現できる値の範囲
を外れているか否かを判定する判定手段(24)と、 該判定手段(24)が外れていると判定した場合には、
前記第1出力手段(20)と第2出力手段(22)の出
力値を、大小何れの方に外れているかに応じて前記範囲
内でカウント結果が最大あるいは最小を示す値となるよ
うに選択する選択手段(26)と、前記第1出力手段(
20)及び第2出力手段(22)の記憶内容更新のタイ
ミングを、エンコーダ信号が入力されて前記速度誤差信
号の値及び前記位相誤差信号の値が確定した後、又はモ
ータの回転速度が指令速度よりも遅く、且つ前記カウン
タ手段(14)の出力値が前記第1出力手段(20)で
表すことのできる値よりも大きいと前記判定手段(24
)が判定して、前記選択手段(26)がモータの回転速
度が指令速度に対して最も遅いことを表す値を選択した
後とする記憶内容更新手段(28)とを具備したことを
特徴とするモータの速度制御回路。
(1) Using an encoder signal proportional to the motor rotation speed, digitally process the cycle of the encoder signal to obtain a speed error signal and a phase error signal, and feedback control the motor rotation speed based on these signals. In a motor speed control circuit, when the motor rotates at a commanded speed, the count value is expressed in binary, with a predetermined bit being "1", all bits lower than that bit being "0", and bits higher than that bit being "0". all"
a counter means (14) for counting the cycle of the encoder signal, which is set to be "0" or all "1"; First output means (20) having a memory function to output bits as a speed error signal
and sign inverting means (16) for inverting the sign of the predetermined bit among the output bits of the counter means (14); It has an addition means (18) for adding a value indicated by a bit string consisting of lower bits than the predetermined bits and a phase error signal, and a storage function for outputting the calculation result of the addition means (18) as the phase error signal. a second output means (22); a determination means (24) for determining whether the count result of the period of the encoder signal is out of the range of values that can be expressed by the predetermined bit and lower bits; If the determination means (24) determines that the determination is off,
The output values of the first output means (20) and the second output means (22) are selected so that the count results are the maximum or minimum value within the range, depending on whether the deviation is large or small. a selection means (26) for selecting, and the first output means (
20) and the second output means (22) after the encoder signal is input and the value of the speed error signal and the phase error signal are determined, or after the rotational speed of the motor is at the command speed. and the output value of the counter means (14) is larger than the value that can be represented by the first output means (20), the determination means (24)
), and the selection means (26) selects a value indicating that the rotational speed of the motor is the slowest relative to the commanded speed. motor speed control circuit.
(2)モータのスタート信号が入力されたとき、前記カ
ウンタ手段(14)の値にかかわらず、前記カウンタ手
段(14)の値が大きい方に外れていると前記判定手段
(24)が強制的に判定するように信号を該判定手段(
24)に入力する手段をさらに設けたことを特徴とする
請求項1記載のモータの速度制御回路。
(2) When a motor start signal is input, regardless of the value of the counter means (14), if the value of the counter means (14) is off to a larger value, the determination means (24) The signal is determined by the determining means (
24. The motor speed control circuit according to claim 1, further comprising means for inputting to the motor speed control circuit.
JP63079257A 1988-03-31 1988-03-31 Control circuit for speed of motor Pending JPH01252182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63079257A JPH01252182A (en) 1988-03-31 1988-03-31 Control circuit for speed of motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63079257A JPH01252182A (en) 1988-03-31 1988-03-31 Control circuit for speed of motor

Publications (1)

Publication Number Publication Date
JPH01252182A true JPH01252182A (en) 1989-10-06

Family

ID=13684803

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63079257A Pending JPH01252182A (en) 1988-03-31 1988-03-31 Control circuit for speed of motor

Country Status (1)

Country Link
JP (1) JPH01252182A (en)

Similar Documents

Publication Publication Date Title
US5420546A (en) Variable frequency oscillator having an output frequency that is controllable
JPH04270570A (en) Digital phase-locked loop circuit
JPH11251909A (en) Analog/digital converter
JPH01252182A (en) Control circuit for speed of motor
JP3170961B2 (en) Pulse phase difference encoding circuit
JPH11178380A (en) Motor speed controller
JPH01238486A (en) Speed control circuit for motor
US6104327A (en) Interface circuit for serial D-A converter
JPH09182487A (en) Circuit and method for starting brushless motor
JPH0634684A (en) Phase difference digital conversion circuit
KR960013427B1 (en) Motor rotation servo control apparatus
JPH06104740A (en) Measuring circuit for edge time of input signal and digital pll device
JP3070109B2 (en) Absolute position detection method and device
JPH06104741A (en) Didital pll device
JP2760126B2 (en) Period comparison circuit and phase comparison circuit
JPH065175B2 (en) Absolute type encoder
JPH07301685A (en) Clock circuit
JPH06188693A (en) Digital controlled oscillator
JP2000060177A (en) Speed controller for dc brushless motor
KR100213584B1 (en) Frequency multiplying circuit and method for pulse signal train
JP3227712B2 (en) Digital servo method for rotating body
JPH0226472B2 (en)
JPS5856101A (en) Digital servo device
JPH053232B2 (en)
JP3832116B2 (en) Motor control device