JPH02136083A - Motor speed controller using microcomputer - Google Patents

Motor speed controller using microcomputer

Info

Publication number
JPH02136083A
JPH02136083A JP63289296A JP28929688A JPH02136083A JP H02136083 A JPH02136083 A JP H02136083A JP 63289296 A JP63289296 A JP 63289296A JP 28929688 A JP28929688 A JP 28929688A JP H02136083 A JPH02136083 A JP H02136083A
Authority
JP
Japan
Prior art keywords
interrupt
motor
value
microcomputer
interruption
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
JP63289296A
Other languages
Japanese (ja)
Inventor
Kanji Kubo
久保 観治
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63289296A priority Critical patent/JPH02136083A/en
Publication of JPH02136083A publication Critical patent/JPH02136083A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

PURPOSE:To prevent runaway of program by prohibiting interruption processing when the frequency of a frequency generator(FG) signal increases abnormally due to noise and the like. CONSTITUTION:Upon start of main processing, a RAM9 is cleared and an initial value is set. Then a mode command signal 15 fed from a system control circuit 13 is decoded and a speed reference is selected and stored in the RAM9. Thereafter, it is judged whether interruption is allowable and a program is executed only when an interruption request flag is set. It is judged whether interruption is allowed by inspecting the interruption allowing pulse. If interruption is not allowed, abnormal rotation of a motor 1 is alarmed to the system control circuit 13, which then stops operation of the system entirely.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロコンピュータを用いたモータの速度制
御装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a motor speed control device using a microcomputer.

従来の技術 近年モータの回転速度制御技術は、アナログ制御技術か
らディジタル制御技術に移行し、さらにはマイクロコン
ピュータ(以下単にマイコンと称す)を用いた制御技術
へと発展している。
BACKGROUND ART In recent years, motor rotational speed control technology has shifted from analog control technology to digital control technology, and has further evolved to control technology using microcomputers (hereinafter simply referred to as microcomputers).

通常のモータの速度制御装置は、モータに取り付けられ
た周波数発電機(FG)から得られる、モータの回転数
に応じた周期のパルス信号(FG倍信号の周期を一定に
保つように、モータの回転数を制御する方法が用いられ
ている。
A normal motor speed control device uses a pulse signal with a period corresponding to the motor's rotation speed obtained from a frequency generator (FG) attached to the motor (to keep the period of the FG multiplied signal constant). A method of controlling the rotational speed is used.

マイコンを用いた従来の速度制御装置は、FG倍信号周
期を計測し、基準周期との差の値をマイコンで演算して
速度誤差量を得、この速度誤差量を基にモータの回転速
度の制御を行っている。そして、FG倍信号周期の計測
方法としては、FG倍信号エツジが検出される度に巡回
カウンタの値をラッチすると共に、マイコンに割り込み
パルスを発生させ、マイコンでは割り込みパルスが発生
する度に、割り込み処理ループ内でう・ソチされた巡回
カウンタの値を基にパルス信号の周期を計測する演算を
行っていた。そしてこの割り込み処理ループは比較的優
先度の高い割り込み処理ループで行われる。なぜならば
、モータの回転数制御においては、FG倍信号周波数が
高いほど制御の応答周波数を上げることができるためF
G倍信号周波数はできるだけ高く設定される。そしてF
G倍信号1周期内で周期計測等の演算を行うためには、
FG倍信号エツジが検出された時点ですぐ演算を行わな
ければ、演算処理時間が足らなくなってしまうからであ
る。
Conventional speed control devices using a microcomputer measure the FG double signal period, calculate the difference from the reference period using the microcomputer to obtain a speed error amount, and then adjust the motor rotation speed based on this speed error amount. is under control. The method for measuring the FG double signal period is to latch the value of the cyclic counter every time an FG double signal edge is detected, and also generate an interrupt pulse to the microcomputer. An operation was performed to measure the period of the pulse signal based on the value of the cyclic counter that was lied within the processing loop. This interrupt processing loop is performed as an interrupt processing loop with a relatively high priority. This is because when controlling the motor rotation speed, the higher the FG multiplier signal frequency, the higher the control response frequency.
The G-fold signal frequency is set as high as possible. and F
In order to perform calculations such as period measurement within one period of the G times signal,
This is because if the calculation is not performed immediately when the FG double signal edge is detected, the calculation processing time will not be enough.

発明が解決しようとする課題 しかしながら上記の従来の構成では、FG倍信号周波数
が異常に高くなったときには、比較的優先度の高い前記
割り込み処理ループの演算時間が追い付かず、割り込み
処理のみを絶えず行うことになり、他の比較的優先度の
低い各種の演算を行わない状態になることがある。この
状態をここでは暴走状態と呼ぶことにする。FG倍信号
周波数が異常に高くなる現象は、なんらかの原因でモー
タが暴走した時や、FG倍信号ノイズが重畳された時な
どに発生する。モータの回転数制御を必要とする装置、
例えば磁気記録再生装置などでは、1つのマイコンでい
くつかのモータの回転数制御を行う。例えば、ドラムモ
ータやキャプスタンモータ、リールモータなどの回転数
制御を行う。この時FG倍信号周波数が最も高いモータ
、例えばキャプスタンモータの速度処理ループが暴走し
たときには、キャプスタンモータとリールモータとの連
携がうまく動作せず、磁気テープに異常テンションがか
かったり、あるいは磁気テープかたるんでしまい磁気テ
ープを傷めてしまう問題がある。
Problems to be Solved by the Invention However, in the conventional configuration described above, when the FG double signal frequency becomes abnormally high, the calculation time of the interrupt processing loop, which has a relatively high priority, cannot keep up, and only interrupt processing is continuously performed. This may result in a state in which various other computations with relatively low priority are not performed. This state will be referred to as a runaway state here. A phenomenon in which the FG double signal frequency becomes abnormally high occurs when the motor runs out of control for some reason or when FG double signal noise is superimposed. Equipment that requires motor rotation speed control,
For example, in a magnetic recording/reproducing device, one microcomputer controls the rotational speed of several motors. For example, it controls the rotation speed of a drum motor, capstan motor, reel motor, etc. At this time, if the speed processing loop of the motor with the highest FG double signal frequency, such as the capstan motor, goes out of control, the coordination between the capstan motor and reel motor will not work properly, and abnormal tension will be applied to the magnetic tape, or the There is a problem in that the tape becomes slack and damages the magnetic tape.

また、各モータの制御と機器全体の動作を制御するシス
テムコントロール制御部を1つのマイコンで行う装置な
どにおいては、暴走状態において機器の操作が不可能に
なる問題がある。
Furthermore, in devices where a single microcomputer is used as a system control unit that controls each motor and the operation of the entire device, there is a problem that the device cannot be operated in a runaway state.

マイコンを用いた従来のモータの速度制御装置では、こ
の種の暴走に対する対策は施されていなかった。
Conventional motor speed control devices using microcomputers have no measures against this type of runaway.

本発明は、FG倍信号周波数が異常に高くなったときの
暴走を検知し、特定のループ内だけの演算が行われる暴
走状態を回避するマイクロコンピュータを用いたモータ
の制御装置を提供することを目的とする。
The present invention provides a motor control device using a microcomputer that detects runaway when the FG double signal frequency becomes abnormally high and avoids a runaway state in which calculations are performed only within a specific loop. purpose.

課題を解決するための手段 この目的を達成するために本発明のマイクロコンピュー
タを用いたモータの速度制御装置では、モータの回転数
に応じたパルス信号を発生するパルス信号発生手段と、
このパルス信号の立ち上がりエツジもしくは立ち下がり
エツジで割り込みパルスを発生する割り込み信号発生手
段と、前記割り込みパルスが発生する度に巡回カウンタ
の値をう、チするラッチ手段と、このラッチされた値を
基に前記モータの回転速度誤差量等の演算処理を行うマ
イクロコンピュータ及び、前記回転速度誤差量に応じて
モータを駆動するモータ駆動回路とを備え、前記割り込
み信号到来時に各種の演算を行う第1の演算ループと、
前記第1の演算ループよりも低い優先度で各種の演算を
行う第2の演算ループとを備え、前記第1の演算ループ
では第1の演算が行われる毎にインクリメントされる割
り込み回数計測手段と、この割り込み回数計測手段の計
測値が一定の値以上になったときに前記第1の演算ルー
プの各演算を禁止する手段とを備え、前記第2の演算ル
ープ内には、前記割り込み回数計測手段の計測値を一定
の値にセットする手段を備えた構成を何している。
Means for Solving the Problem In order to achieve this object, a motor speed control device using a microcomputer according to the present invention includes a pulse signal generating means for generating a pulse signal according to the rotation speed of the motor;
Interrupt signal generation means for generating an interrupt pulse at the rising edge or falling edge of this pulse signal; latch means for overwriting the value of a cyclic counter each time the interrupt pulse is generated; a first microcomputer that performs arithmetic processing such as the amount of rotational speed error of the motor; and a motor drive circuit that drives the motor according to the amount of rotational speed error, and that performs various calculations when the interrupt signal arrives. arithmetic loop,
a second calculation loop that performs various calculations with a lower priority than the first calculation loop, and an interrupt count measuring means that is incremented each time the first calculation is performed in the first calculation loop; , means for inhibiting each operation of the first calculation loop when the measured value of the interrupt count measurement unit exceeds a certain value, and the second calculation loop includes a unit for measuring the number of interruptions. What is the configuration that includes means for setting the measured value of the means to a constant value?

作用 本発明は上記の構成により、正常動作時には第1の演算
ループと第2の演算ループの各処理が実行されるため、
第1の演算ループ内でインクリメントされる割り込み回
数計測手段の値は第2の演算ループ内で常に一定の値に
再セットされる。このため割り込み回数計測手段の値は
一定の値以上になることはない。また、異常動作時には
第1の演算ループ内の処理のみが行われるために、割り
込み回数計測手段の値は増加していく。このため割り込
み回数計測手段の値が一定値以上になれば第1の演算ル
ープの各処理が禁止され、第2の演算ループ内でこのこ
とを検知して機器の動作を安全な方向にもっていくこと
ができる。
Effect The present invention has the above-described configuration, so that each process of the first calculation loop and the second calculation loop is executed during normal operation.
The value of the interrupt count measuring means that is incremented in the first calculation loop is always reset to a constant value in the second calculation loop. Therefore, the value of the interrupt count measuring means never exceeds a certain value. Moreover, since only the processing within the first calculation loop is performed during abnormal operation, the value of the interrupt count measuring means increases. Therefore, if the value of the interrupt count measurement means exceeds a certain value, each process in the first calculation loop is prohibited, and this is detected in the second calculation loop to bring the operation of the device in a safe direction. be able to.

実施例 以下本発明の一実施例について、図面を参照しながら説
明する。
EXAMPLE An example of the present invention will be described below with reference to the drawings.

第1図は本発明の具体実施例を示すブロック図である。FIG. 1 is a block diagram showing a specific embodiment of the present invention.

同図において1はモータであり、2はモータの回転数に
応じた周波数の信号を発生する周波数発電機(FG)で
ある。FGからとりだされたFG倍信号増幅回路3にて
増幅され、マイコン4に入力される。マイコン4はラッ
チ回路5、巡回カウンタ6、中央演算処理装置(CPU
)7、ROM8、RAM9、及びD/A変換器10など
で構成されている。巡回カウンタ6はクロック信号11
をカウントし、オーバーフローすれば零から再度カウン
トを開始するカウンタである。ランチ回路5は、FG倍
信号例えば立ち上がりエツジで巡回カウンタ6のカウン
ト値をラッチする。またFG倍信号立ち上がりエツジは
、CPUの割り込み信号12として用いられる。13は
システムコントロール回路であり、端子14から入力さ
れるキー人力信号から現在の動作モードを決定し、モー
ド指令信号15をマイコン14に供給する。
In the figure, 1 is a motor, and 2 is a frequency generator (FG) that generates a signal with a frequency corresponding to the number of rotations of the motor. The signal is taken out from the FG, is amplified by the FG double signal amplification circuit 3, and is input to the microcomputer 4. The microcomputer 4 includes a latch circuit 5, a cyclic counter 6, and a central processing unit (CPU).
) 7, ROM 8, RAM 9, and D/A converter 10. The cyclic counter 6 receives the clock signal 11
It is a counter that counts , and starts counting again from zero if it overflows. The launch circuit 5 latches the count value of the cyclic counter 6 at the rising edge of the FG multiplied signal, for example. Further, the rising edge of the FG double signal is used as an interrupt signal 12 for the CPU. Reference numeral 13 denotes a system control circuit, which determines the current operating mode from a key input signal inputted from a terminal 14 and supplies a mode command signal 15 to the microcomputer 14.

マイコン14ではこのモード指令信号を基に速度基準値
を作成し、FG倍信号周期が速度基準値と等しくなるよ
うに、速度誤差信号16をD/A変換器10を介して出
力する。17はモータ駆動回路であり、速度誤差信号1
6を基にモータ1を駆動する。また、マイコン4からは
モータの回転数が異常であることを示す信号18を、シ
ステムコントロール回路13に供給する。
The microcomputer 14 creates a speed reference value based on this mode command signal, and outputs a speed error signal 16 via the D/A converter 10 so that the FG multiplied signal period is equal to the speed reference value. 17 is a motor drive circuit, and speed error signal 1
Motor 1 is driven based on 6. Further, the microcomputer 4 supplies a signal 18 indicating that the rotation speed of the motor is abnormal to the system control circuit 13.

なお、本例ではシステムコントロール回路13を別口路
として示しであるが、マイコン4のROM容量及び演算
速度が十分であれば、システムコントロール回路13を
マイコン4内に内蔵してもよい。
Although the system control circuit 13 is shown as a separate route in this example, the system control circuit 13 may be built into the microcomputer 4 if the ROM capacity and calculation speed of the microcomputer 4 are sufficient.

次にマイコン4の処理手順について第2図及び第3図を
用いて説明する。
Next, the processing procedure of the microcomputer 4 will be explained using FIGS. 2 and 3.

第2図はメイン処理のフローチャートである。FIG. 2 is a flowchart of the main processing.

このメイン処理は、電源投入時に処理が開始される比較
的低優先度の低い低い処理ルーチンである。
This main processing is a relatively low priority processing routine that starts processing when the power is turned on.

同図において21はメイン処理の開始を示す記号である
。22はRAMをクリアする処理であり、23は初期値
を設定する処理である。24はシステムコントロール回
路13から供給されるモード指令信号15を解読する処
理であり、25はこの解読されたモードに応じて速度基
準値を選択し、RAM (VS)に速度基準値を格納す
る処理である。 0付きの記号はRAMのアドレスを示
す記号であり、RAM (VS)を以後単に(vS)と
記す。26は割り込みが許可されているか否かを判別す
る処理である。割り込み処理は割り込み許可フラグがセ
ットされ、かつ、割り込みパルスが到来することによっ
てセットされる割り込み要求フラグがセットされたとき
に初めて実施される。
In the figure, 21 is a symbol indicating the start of main processing. 22 is a process for clearing the RAM, and 23 is a process for setting initial values. 24 is a process for decoding the mode command signal 15 supplied from the system control circuit 13, and 25 is a process for selecting a speed reference value according to the decoded mode and storing the speed reference value in the RAM (VS). It is. The symbol with 0 is a symbol indicating the address of the RAM, and RAM (VS) will hereinafter be simply written as (vS). 26 is a process for determining whether or not interrupts are permitted. Interrupt processing is first performed when an interrupt permission flag is set and an interrupt request flag, which is set by the arrival of an interrupt pulse, is set.

このためいずれか片方のフラグがセy)されていなけれ
ば、割り込み処理は実行されない。また割り込み許可フ
ラグはプログラムで設定が可能であり、かつ、現在の割
り込み許可フラグの状態を知ることもできる。判別処理
26はこの割り込み許可フラグを調べることによって、
割り込みが許可されているか否かを判別することができ
る。割り込みが許可されていれば、処理27を実行する
Therefore, unless either one of the flags is set to "Say", the interrupt processing will not be executed. Furthermore, the interrupt permission flag can be set by a program, and the current state of the interrupt permission flag can also be known. The determination process 26 checks this interrupt permission flag to
It is possible to determine whether or not interrupts are permitted. If interrupts are permitted, process 27 is executed.

27は後述する割り込み処理の回数を格納した(CTI
)に一定の値を格納する処理であり、本例では零の値を
格納する例を示している。割り込みが許可されていなけ
れば処理28を実行する。28では、モータの回転が異
常であることをシステムコントロール回路13に知らせ
る処理である。
27 stores the number of interrupt processing to be described later (CTI
), and this example shows an example in which a value of zero is stored. If interrupts are not permitted, process 28 is executed. Step 28 is a process for notifying the system control circuit 13 that the rotation of the motor is abnormal.

システムコントロール回路13ではこの異常信号を受信
すると、装置全体の動作を停止するなどの処置を行う。
When the system control circuit 13 receives this abnormality signal, it takes measures such as stopping the operation of the entire device.

29は安全処理であり、例えばモータ1の回転を停止さ
せる等の処理を行う。メイン処理は、割り込み処理が行
われるまで24以降の各処理を実行する。
Reference numeral 29 denotes a safety process, in which, for example, a process such as stopping the rotation of the motor 1 is performed. The main process executes each process from 24 onwards until the interrupt process is performed.

第3図は割り込み処理の手順を示すフローチャートであ
る。割り込み処理は、割り込み許可フラグがセットされ
た状態で割り込みパルスが到来したときに、メイン処理
を中断して行われる。
FIG. 3 is a flowchart showing the procedure of interrupt processing. Interrupt processing is performed by interrupting main processing when an interrupt pulse arrives with the interrupt permission flag set.

同図において、31は割り込み処理の開始を示す記号で
ある。32は割り込み処理の回数を計測する(CT I
 )の値をインクリメントする処理である。 (CTI
)に格納されたこの値は、既に説明したようにメイン処
理で行われる27の処理で零に設定されるため、メイン
処理が実行されるかぎり一定の値を越すことはない。し
かし、ノイズ等によってFG倍信号周波数が異常に高く
なったときには、比較的優先度の高い割り込み処理のみ
が実行され、 (CTI)に格納されている値が増加す
ることになる。33は(CT I )の値が一定値Nよ
りも小さいか否かを判別する処理である。
In the figure, 31 is a symbol indicating the start of interrupt processing. 32 measures the number of interrupt processing (CT I
) is the process of incrementing the value. (CTI
) is set to zero in the process 27 performed in the main process as described above, so it will never exceed a certain value as long as the main process is executed. However, when the FG double signal frequency becomes abnormally high due to noise or the like, only interrupt processing with relatively high priority is executed, and the value stored in (CTI) increases. 33 is a process of determining whether the value of (CT I ) is smaller than a constant value N or not.

このNの値は、各動作モードにおいて最も多く割り込み
処理が行われる値よりも、多少大きな値に設定される。
The value of N is set to a value somewhat larger than the value at which interrupt processing is performed most frequently in each operation mode.

 (CT I )の値がNよりも小さいときには、34
以降の処理を実行する。34は5のラッチ回路でラッチ
されたカウント値を(CTN)に格納する処理である。
When the value of (CT I ) is smaller than N, 34
Execute the following processing. 34 is a process of storing the count value latched by the latch circuit 5 in (CTN).

35は、 (CTN)の値から(CTO)に格納されて
いる前回ラッチしたカウント値を減算し、減算結果を(
CT)に格納する処理である。36では(VS)に格納
されている速度基準値から(CT)の値を減じ、(vE
)に格納する。37は、次の割り込み処理時に現在のカ
ウント値を前回のカウント値とすべく、(CTo)に(
CTN)の値を格納する処理である。
35 subtracts the last latched count value stored in (CTO) from the value of (CTN), and converts the subtraction result to (
CT). In 36, the value of (CT) is subtracted from the speed reference value stored in (VS), and (vE
). 37 sets (CTo) to (CTo) in order to set the current count value to the previous count value during the next interrupt processing.
This is the process of storing the value of CTN).

38は(VE)の値を基にディジタルフィルタの演算を
する処理であり、39ではこの演算結果をモータの駆動
電圧値きして出力する処理である。
38 is a process for calculating a digital filter based on the value of (VE), and 39 is a process for outputting the result of this calculation as a motor drive voltage value.

なお、38及び39の各処理は第3図に示す割り込み処
理で必ずしも行う必要はなく、この割り込み処理よりも
優先順位の低いタイマ割り込み処理などで行ってもよい
。40は割り込みを再許可するために、割り込み許可フ
ラグをセットする処理である。通常のマイコンでは、−
度割り込みが入ると自動的にその割り込み処理の許可フ
ラグをリセットする構成になっているため、割り込み処
理を行う毎に割り込み許可フラグを再セットする必要が
ある。41は割り込み処理を終える記号である。
Note that the processes 38 and 39 do not necessarily need to be performed in the interrupt process shown in FIG. 3, and may be performed in a timer interrupt process, etc., which has a lower priority than this interrupt process. 40 is a process of setting an interrupt enable flag in order to re-enable interrupts. In a normal microcontroller, −
When an interrupt occurs, the interrupt processing permission flag is automatically reset, so it is necessary to reset the interrupt permission flag every time an interrupt is processed. 41 is a symbol for ending interrupt processing.

(CT I )の値がNよりも太きいか等しいときには
、判別処理33で41の処理に分岐し、割り込み処理を
終える。この時、割り込み許可フラグは再セy)されな
いために、次からは第3図に示す割り込み処理は行われ
ないことになる。
If the value of (CT I ) is greater than or equal to N, the process branches to process 41 in determination process 33, and the interrupt process ends. At this time, since the interrupt permission flag is not set again, the interrupt processing shown in FIG. 3 will not be performed from now on.

発明の効果 以上の説明で明らかなように、本発明によれば、割り込
み処理が行われる毎にインクリメントされる割り込み回
数計測手段と、この計測値が一定値以上になったときに
割り込み処理を停止する処理とを割り込み処理内に設け
、かつ、メインの処理では、前記の割り込み回数を一定
値に再セットする処理を行うために、ノイズ等の原因で
FG倍信号周波数が異常に高くなったときには、割り込
み処理を禁止してプログラムが暴走することを押さえ、
装置全体を安全な動作モードに変更することができる効
果を存する。
Effects of the Invention As is clear from the above explanation, according to the present invention, there is provided a means for measuring the number of interrupts that is incremented each time an interrupt process is performed, and a means for measuring the number of interrupts that is incremented each time an interrupt process is performed, and stopping the interrupt process when this measured value exceeds a certain value. In order to perform processing to reset the number of interrupts to a constant value in the main processing, when the FG double signal frequency becomes abnormally high due to noise etc. , prevent the program from running out of control by disabling interrupt processing,
This has the effect of changing the entire device to a safe operating mode.

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

第1図は本発明の具体実施例を示すブロック図、第2図
は本発明によるメイン処理の手順を示すフローチャート
、第3図は本発明による割り込み処理手順を示すフロー
チャートである。 2・・・周波数発電機、  4・・・マイコン、  5
・・・ラッチ回路、  7・・・中央演算部FfU装置
、(VS)・・・速度基準値を格納するR A Ml(
CTI)・・・割り込み処理回数を格納するRAM、(
CTN)・・・現在のカウント値を格納するRAM。 (CTO)・・・前回のカウント値を格納するRAM。 (CT)・・・現在のカウント値と前回のカウント値と
の差の値を格納するR A Ml (VE)・・・速度誤差mを格納するR A M。 代理人の氏名 弁理士 粟野 重孝 はか1名第 】 図 キ ζ力 第 図
FIG. 1 is a block diagram showing a specific embodiment of the present invention, FIG. 2 is a flowchart showing a main processing procedure according to the invention, and FIG. 3 is a flowchart showing an interrupt processing procedure according to the invention. 2... Frequency generator, 4... Microcomputer, 5
... Latch circuit, 7 ... Central processing unit FfU device, (VS) ... R A Ml (for storing speed reference value)
CTI)...RAM that stores the number of interrupt processing, (
CTN)...RAM that stores the current count value. (CTO)...RAM that stores the previous count value. (CT)...R A Ml that stores the difference value between the current count value and the previous count value. (VE)...R A M that stores the speed error m. Name of agent: Patent attorney Shigetaka Awano (No. 1)

Claims (1)

【特許請求の範囲】[Claims] モータの回転数に応じたパルス信号を発生するパルス信
号発生手段と、このパルス信号の立ち上がりエッジもし
くは立ち下がりエッジで割り込みパルスを発生する割り
込み信号発生手段と、前記割り込みパルスが発生する度
に巡回カウンタの値をラッチするラッチ手段と、このラ
ッチされた値を基に前記モータの回転速度誤差量等の演
算処理を行うマイクロコンピュータ及び、前記回転速度
誤差量に応じてモータを駆動するモータ駆動回路とを備
え、前記割り込み信号到来時に各種の演算を行う第1の
演算ループと、前記第1の演算ループよりも低い優先度
で各種の演算を行う第2の演算ループとを備え、前記第
1の演算ループでは第1の演算が行われる毎にインクリ
メントされる割り込み回数計測手段と、この割り込み回
数計測手段の計測値が一定の値以上になったときに前記
第1の演算ループの各演算を禁止する手段とを備え、前
記第2の演算ループ内には、前記割り込み回数計測手段
の計測値を一定の値にセットする手段を備えたことを特
徴とするマイクロコンピュータを用いたモータの速度制
御装置。
pulse signal generating means for generating a pulse signal according to the rotational speed of the motor; interrupt signal generating means for generating an interrupt pulse at the rising edge or falling edge of this pulse signal; and a cyclic counter each time the interrupt pulse is generated. , a microcomputer that performs arithmetic processing such as a rotational speed error amount of the motor based on the latched value, and a motor drive circuit that drives the motor in accordance with the rotational speed error amount. a first calculation loop that performs various calculations when the interrupt signal arrives; and a second calculation loop that performs various calculations with a lower priority than the first calculation loop; The arithmetic loop includes an interrupt count measuring means that is incremented each time a first arithmetic operation is performed, and each arithmetic operation of the first arithmetic loop is prohibited when the measured value of the interrupt count measuring means exceeds a certain value. A motor speed control device using a microcomputer, characterized in that the second calculation loop includes means for setting the measured value of the interrupt count measuring means to a constant value. .
JP63289296A 1988-11-16 1988-11-16 Motor speed controller using microcomputer Pending JPH02136083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63289296A JPH02136083A (en) 1988-11-16 1988-11-16 Motor speed controller using microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63289296A JPH02136083A (en) 1988-11-16 1988-11-16 Motor speed controller using microcomputer

Publications (1)

Publication Number Publication Date
JPH02136083A true JPH02136083A (en) 1990-05-24

Family

ID=17741346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63289296A Pending JPH02136083A (en) 1988-11-16 1988-11-16 Motor speed controller using microcomputer

Country Status (1)

Country Link
JP (1) JPH02136083A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04162245A (en) * 1990-10-26 1992-06-05 Hitachi Ltd Microprocessor control device for recording-reproducing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04162245A (en) * 1990-10-26 1992-06-05 Hitachi Ltd Microprocessor control device for recording-reproducing apparatus

Similar Documents

Publication Publication Date Title
US4680515A (en) Digital speed control of motors
JPH02136083A (en) Motor speed controller using microcomputer
JPH07122639B2 (en) Speed calculation control method
JPS61169468A (en) Elevator device
KR100255546B1 (en) Compensating method for a capstan slip error of vcr
JPS61102171A (en) Retry controller for inverter
JPH04367012A (en) Controller for temperature abnormality of computer
JPH0540668A (en) Program runaway preventing system
JP2718709B2 (en) Error handling method for power converter
JPH10105207A (en) Microcomputer
JP2735353B2 (en) Elevator control method
JPS5975328A (en) Detecting device of abnormality of electric power source
JPH06153560A (en) Device for detecting abnormality in motor rotation speed
JPS59193366A (en) Apparatus for detecting momentary interruption of ac power source
JPH10341582A (en) Regenerated excessive energy detector, and motor controller equipped with that detector
JPH05164768A (en) Speed controller for dc motor
JPS61165143A (en) Malfunction preventing system of cpu
JPH0318455Y2 (en)
JPH0733222B2 (en) Elevator control equipment
JPH05136692A (en) All digital power supply synchronization phase fixing device
JPH044436A (en) Digital operation processor
JPWO2019207647A1 (en) Brake deterioration determination device and brake deterioration determination system
JPS62171413A (en) Motor protection method
JPH05227775A (en) Speed controller
JPH05108415A (en) Abnormality processor for micro computer