JPH0328159B2 - - Google Patents
Info
- Publication number
- JPH0328159B2 JPH0328159B2 JP60058909A JP5890985A JPH0328159B2 JP H0328159 B2 JPH0328159 B2 JP H0328159B2 JP 60058909 A JP60058909 A JP 60058909A JP 5890985 A JP5890985 A JP 5890985A JP H0328159 B2 JPH0328159 B2 JP H0328159B2
- Authority
- JP
- Japan
- Prior art keywords
- counter
- signal
- value
- microprocessor
- predetermined
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P8/00—Arrangements for controlling dynamo-electric motors rotating step by step
- H02P8/36—Protection against faults, e.g. against overheating or step-out; Indicating faults
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Stepping Motors (AREA)
Description
【発明の詳細な説明】
〔概要〕
パルスモータの停止時における駆動を監視する
方式である。所定周期のパルス信号によつて、励
磁電流の通電時間率を制御して、いわゆる弱励磁
を行う場合に、そのパルス信号によつて動作する
カウンタを監視用に設け、そのカウンタ値が変化
するか否かを監視することにより、励磁状態の異
常を検出する。[Detailed Description of the Invention] [Summary] This is a method for monitoring the drive of a pulse motor when it is stopped. When performing so-called weak excitation by controlling the energization time rate of the excitation current using a pulse signal of a predetermined period, a counter operated by the pulse signal is provided for monitoring, and the counter value changes. An abnormality in the excitation state is detected by monitoring whether or not the excitation state is abnormal.
本発明は、パルスモータの焼損等を防止するた
めに、停止時の励磁電流の駆動状態を監視する方
式に関する。
The present invention relates to a method for monitoring the driving state of an excitation current when a pulse motor is stopped, in order to prevent burnout or the like of a pulse motor.
パルスモータは公知のように、例えば4相の線
輪による励磁電流を、所定の順序に順次切り換え
て通電することにより回転する。 As is well known, a pulse motor is rotated by, for example, switching excitation current from four-phase coils in a predetermined order.
この回転を、所要の回転角度において正しく停
止するために、停止時は所要の1相を継続して励
磁する必要があるが、回転時の駆動電流を、同一
線輪に連続通電すると温度上昇が大きく、電流消
費も大きいので、停止中は適当な周期のパルス信
号による制御により、断続して通電することによ
り、平均電流を低下する方法がとられる。このよ
うな通電状態による励磁を弱励磁という。 In order to stop this rotation correctly at the required rotation angle, it is necessary to continuously excite the required one phase when stopping, but if the drive current during rotation is continuously applied to the same wire wheel, the temperature will rise. Since the power consumption is large and the current consumption is large, a method is used in which the average current is reduced by intermittently energizing the motor under control using a pulse signal of an appropriate period while the motor is stopped. Excitation caused by such an energized state is called weak excitation.
従つて、何等かの制御上の故障によつて、弱励
磁が行われずに、連続通電が行われると、モータ
の焼損を発生する可能性があり、このような状態
の発生時には、最小限の処置として、早急に電源
を切断することが望まれる。 Therefore, if continuous energization is performed without weak excitation due to some kind of control failure, there is a possibility that the motor will burn out. As a countermeasure, it is desirable to immediately turn off the power.
第2図は、パルスモータ制御部の一構成例を示
すブロツク図である。
FIG. 2 is a block diagram showing an example of the configuration of a pulse motor control section.
制御部はマイクロプロセツサ1による、マイク
ロプログラム制御方式によつて制御される。 The control section is controlled by a microprogram control system by a microprocessor 1.
まず、マイクロプロセツサ1はレジスタ2に所
定の値を設定することにより、レジスタ2の出力
線3をオンにする。 First, the microprocessor 1 sets a predetermined value in the register 2, thereby turning on the output line 3 of the register 2.
この信号により、電源部が制御され、パルスモ
ータ4を駆動するための、例えば+24ボルトが、
所要部分に供給される。 This signal controls the power supply unit, and for example, +24 volts to drive the pulse motor 4.
Supplied to the required parts.
パルスモータ4は何相の場合でも同様である
が、こゝでは駆動線8−1,8−2,8−3,8
−4によつて駆動される、4相の駆動線輪を有す
るものとする。 The pulse motor 4 is the same regardless of the phase, but here the drive lines 8-1, 8-2, 8-3, 8
It has a four-phase drive line wheel driven by -4.
マイクロプロセツサ1はパルスモータの駆動に
おいて、タイマ部5に所要の時間を設定し、該時
間の経過によつて、タイマ部5から発生される、
割り込み信号6により、割り込みを発生するごと
に起動し、レジスタ7を所要の内容に設定するこ
とによつて、パルスモータの駆動を制御する。 When driving the pulse motor, the microprocessor 1 sets the required time in the timer section 5, and as the time elapses, the timer section 5 generates a
The pulse motor is activated by the interrupt signal 6 every time an interrupt is generated, and the register 7 is set to the required contents, thereby controlling the drive of the pulse motor.
通常の回転駆動時において、マイクロプロセツ
サ1は、例えば4ミリ秒ごとに割り込みを発生す
るように、タイマ部5をセツトし、この割り込み
によつて起動する制御プログラムによつて、レジ
スタ7を設定することにより、レジスタ7の出力
の信号線9−1,9−2,9−3,9−4の隣接
する2線を、各割り込みごとに順次1線づつずら
してオンにし(信号線9−4の次に9−1が続く
ものとみなす)、他をオフにする。又この間、信
号線10はオフにする。 During normal rotational driving, the microprocessor 1 sets the timer unit 5 to generate an interrupt every 4 milliseconds, and sets the register 7 by a control program activated by this interrupt. By doing this, the two adjacent signal lines 9-1, 9-2, 9-3, and 9-4 of the output of the register 7 are turned on by sequentially shifting one line at a time for each interrupt (signal lines 9-1, 9-2, 9-3, and 9-4) 4 is assumed to be followed by 9-1), and the others are turned off. Also, during this time, the signal line 10 is turned off.
従つて、論理積ゲート11−1〜11−4のう
ちの隣接2ゲートの出力のみオンとなり、駆動線
8−1〜8−4のうちの、このオン信号に対応す
る2駆動線に、ドライブ回路12によつて、駆動
電流が流れる。 Therefore, only the outputs of two adjacent AND gates 11-1 to 11-4 are turned on, and two drive lines corresponding to this on signal among drive lines 8-1 to 8-4 are driven. A drive current flows through the circuit 12.
以上の制御を繰り返すことにより、パルスモー
タ4は所要の方向に回転する。 By repeating the above control, the pulse motor 4 rotates in the desired direction.
このパルスモータを停止する場合には、マイク
ロプロセツサ1がレジスタ7を設定して、信号線
9−1〜9−4のうちの、停止角度により定まる
1線のみをオンにし、又信号線10をオンにす
る。 When stopping this pulse motor, the microprocessor 1 sets the register 7 to turn on only one of the signal lines 9-1 to 9-4 determined by the stopping angle, and also turns on the signal line 10. Turn on.
同時に、タイマ部5を制御し、信号線13に所
要の繰り返しパルス信号を送出する。この信号
は、例えば50マイクロ秒周期で、オン/オフ比1
の繰り返しパルス信号とする。 At the same time, the timer section 5 is controlled to send out a required repetitive pulse signal to the signal line 13. This signal has a cycle of, for example, 50 microseconds and an on/off ratio of 1.
This is a repetitive pulse signal.
信号線10の信号がオンであるので、論理積ゲ
ート11−1〜11−4は信号線13の信号で制
御され、ドライブ回路12を経て、駆動線8−1
〜8−4の1線のみに、断続した駆動電流が流れ
る。 Since the signal on the signal line 10 is on, the AND gates 11-1 to 11-4 are controlled by the signal on the signal line 13, and the signal is passed through the drive circuit 12 to the drive line 8-1.
An intermittent drive current flows only through one line 8-4.
この状態では、パルスモータの1駆動線輪に流
れる平均電流は、回転時駆動電流より減少され、
連続してこの状態に同一線輪が通電されても、温
度上昇は、焼損を生じない低い範囲内に抑えられ
る。 In this state, the average current flowing through one drive line of the pulse motor is reduced compared to the drive current during rotation,
Even if the same wire is continuously energized in this state, the temperature rise is suppressed within a low range that does not cause burnout.
しかし、この制御状態において、何等かの故障
によつて、信号線13が連続してオフ信号状態に
保持される等の状態が生じると、パルスモータの
1線輪に駆動電流が連続して流れ、正常な停止制
御時より大きな発熱量となり、そのような通電状
態が続けば、焼損の可能性がある。 However, in this control state, if a condition occurs such as the signal line 13 being continuously held in the OFF signal state due to some kind of failure, the drive current will continue to flow through one wire of the pulse motor. , the amount of heat generated will be greater than during normal stop control, and if such a energized state continues, there is a possibility of burnout.
従つて、このような異常状態になつた場合に
は、なるべく早くモータの駆動電流を切断するこ
とが望まれるが、従来はこのような状態を直接検
出する簡単な方法が無かつたので、焼損の危険を
孕んで使用されていた。 Therefore, when such an abnormal condition occurs, it is desirable to cut off the motor drive current as soon as possible, but in the past, there was no easy way to directly detect this condition, so burnout could occur. It was used with the danger of
第1図は、本発明の構成を示すブロツク図であ
る。
FIG. 1 is a block diagram showing the configuration of the present invention.
パルス信号発生手段であるタイマ部5、カウン
タ20、及び制御手段であるマイクロプロセツサ
1を有し、タイマ部5は、パルスモータの停止の
ための励磁電流の通電時間率を制御するように、
所定周期のパルス信号を発生し、カウンタ20は
マイクロプロセツサ1によつて設定される設定値
を該パルス信号ごとに減数し、該減数の結果の計
数値が所定値に達したとき所定の電源切断信号2
2を発生し、マイクロプロセツサ1は所定周期ご
とに、該周期より長い所定の該設定値をカウンタ
20に設定し、該周期後にカウンタ20の計数値
が該設定値から所定値以上減数されていないこと
を検出することによつて、所定のエラー処理を開
始するように構成される。 It has a timer section 5 as a pulse signal generating means, a counter 20, and a microprocessor 1 as a control means, and the timer section 5 controls the energization time rate of the excitation current for stopping the pulse motor.
A counter 20 generates a pulse signal of a predetermined period, subtracts a set value set by the microprocessor 1 for each pulse signal, and when the count value as a result of the subtraction reaches a predetermined value, a predetermined power supply is activated. Cut signal 2
2, the microprocessor 1 sets the predetermined setting value longer than the period in the counter 20 at each predetermined period, and determines whether the counted value of the counter 20 has been subtracted from the predetermined value by a predetermined value or more after the period. The configuration is configured to initiate predetermined error handling upon detecting that there is no such error.
マイクロプロセツサ1は、パルスモータ4の停
止制御において、監視のためにカウンタ20に所
定の値を設定する。
In controlling the stop of the pulse motor 4, the microprocessor 1 sets a predetermined value in the counter 20 for monitoring.
カウンタ20は、信号線21を経て入力する、
信号線13のパルス信号で、設定値から例えばカ
ウントダウンするように構成する。 The counter 20 receives input via a signal line 21.
For example, it is configured to count down from a set value using a pulse signal on the signal line 13.
この設定値は、マイクロプロセツサ1が、カウ
ンタ20をチエツクする周期より若干長い時間
で、例えば“0”にカウントダウンされるように
選定する。 This set value is selected so that the microprocessor 1 counts down to, for example, "0" in a slightly longer time than the period at which the counter 20 is checked.
マイクロプロセツサ1は周期的にカウンタ20
の内容を読み取り、その計数値が設定値より所定
量減少していれば、パルス信号13が正常に発生
しているものとして、カウンタ20を再設定す
る。 The microprocessor 1 periodically registers the counter 20.
If the count value is decreased by a predetermined amount from the set value, it is assumed that the pulse signal 13 is generated normally, and the counter 20 is reset.
もし、カウンタ20の計数値が、設定値から変
化していなければ、信号線13にパルス信号が発
生されていない異常状態と判定して、所要のエラ
ー処理を開始する。 If the count value of the counter 20 does not change from the set value, it is determined that there is an abnormal state in which no pulse signal is generated on the signal line 13, and necessary error processing is started.
又、カウンタ20はカウントダウンによつて計
数値が例えば0になるのを検出して信号線22に
電源切断信号を上げる。即ち、マイクロプロセツ
サ1による再設定が行われない状態が続くと、電
源切断信号が発生されて電源を強制的に切断す
る。 Further, the counter 20 detects that the count value becomes 0, for example, by counting down, and sends a power cutoff signal to the signal line 22. That is, if the microprocessor 1 continues to not perform resetting, a power cutoff signal is generated and the power is forcibly cut off.
以上の監視方式により、弱励磁状態の異常を早
期に検出して適切な処理をすることができ、又マ
イクロプロセツサが暴走する等で監視が正常に処
理されない場合でも、電源供給を強制的に切断す
ることによつて、最小限モータ焼損等の事故の発
生を抑えることができる。 By using the above monitoring method, abnormalities in the weak excitation state can be detected early and appropriate processing can be carried out.Also, even if the monitoring cannot be processed normally due to a runaway of the microprocessor, the power supply can be forcibly interrupted. By cutting, it is possible to minimize the occurrence of accidents such as motor burnout.
第1図において、マイクロプロセツサ1は従来
と同様に、パルスモータの回転/停止制御を実行
する。
In FIG. 1, a microprocessor 1 executes rotation/stop control of a pulse motor as in the conventional case.
しかし、停止制御において、マイクロプロセツ
サ1はカウンタ20に一定の値を設定する。 However, in the stop control, the microprocessor 1 sets the counter 20 to a constant value.
カウンタ20は、信号線21から入力するパル
ス信号によつて、設定値から“0”まで減数する
計数回路によつて構成され、減数により“0”に
なつたとき、信号線22をオフにする。 The counter 20 is composed of a counting circuit that decrements a set value to "0" by a pulse signal input from a signal line 21, and turns off the signal line 22 when the value reaches "0" due to the subtraction. .
信号線22の信号は、図示のように信号線3の
信号を阻止して、パルスモータの電源を切断し、
又マイクロプロセツサ1へ、割り込みマスクの不
可能な種類の割り込み信号を発生する。 The signal on the signal line 22 blocks the signal on the signal line 3 as shown in the figure to cut off the power to the pulse motor,
It also generates an interrupt signal to the microprocessor 1 that cannot be masked.
これらは、以下にのべるマイクロプロセツサ1
の監視動作が正常に実行されなかつた場合の、保
護手段として有効になる。 These are the microprocessor 1 described below.
This is effective as a protection measure in case the monitoring operation is not executed properly.
前記のように、マイクロプロセツサ1によりカ
ウンタ20に設定された値は、信号線13に繰り
返しパルス信号が正常に発生されている場合に
は、該パルス信号が信号線21からカウンタ20
に入力して、カウンタ20を減数する。 As mentioned above, the value set in the counter 20 by the microprocessor 1 is determined by the value set in the counter 20 by the pulse signal from the signal line 21 when the pulse signal is normally generated repeatedly on the signal line 13.
, and the counter 20 is decremented.
例えば、マイクロプロセツサ1は、前記のよう
に、4ミリ秒ごとにタイマ部5から割り込みを発
生するように設定しているものとすると、タイマ
20には、例えば6ミリ秒で“0”に減数される
ように計数値を設定する。 For example, if the microprocessor 1 is set to generate an interrupt from the timer unit 5 every 4 milliseconds as described above, the timer 20 will have a timer 20 that is set to "0" every 6 milliseconds. Set the count value to be subtracted.
このようにして、マイクロプロセツサ1は4ミ
リ秒ごとの割り込みにおいて、カウンタ20の計
数値を読む。計数値が最初の設定値より減少して
いれば、信号線13に正常なパルス信号が出てい
るものとみなし、前回と同じ計数値をカウンタ2
0に設定して、改めて監視を再開する。 In this manner, the microprocessor 1 reads the count value of the counter 20 at an interrupt every 4 milliseconds. If the count value has decreased from the initial set value, it is assumed that a normal pulse signal is being output to the signal line 13, and the same count value as the previous time is sent to the counter 2.
Set it to 0 and restart monitoring again.
もし、カウンタ20から読み取つた計数値が、
設定した値から減少していなければ、信号線13
には、例えばオン又はオフの連続信号が出ている
等で、異常状態であるので、マイクロプロセツサ
1は直ちにエラー処理を開始する。 If the count value read from the counter 20 is
If the value has not decreased from the set value, signal line 13
Since this is an abnormal state, for example, a continuous ON or OFF signal is output, the microprocessor 1 immediately starts error processing.
エラー処理において、マイクロプロセツサ1
は、少なくともレジスタ2及びレジスタ7をリセ
ツトすることによつて、パルスモータの駆動電源
を切断する。 In error handling, microprocessor 1
By resetting at least register 2 and register 7, the drive power of the pulse motor is cut off.
もしも、パルスモータ停止制御を行つた後、マ
イクロプロセツサ1が停止又は暴走して、前記の
カウンタ20の監視処理をしなかつた場合には、
カウンタ20は4ミリ秒経過時の再設定がなされ
ないので、例えば6ミリ秒経過時に、計数値は
“0”に達する。従つてこの状態を示す信号線2
2を、前記のように、マイクロプロセツサ1の割
り込みマスク不可能な割り込み信号の発生及び電
源切断に使用すれば、カウンタ20をマイクロプ
ロセツサ1の監視に兼ねることができる。 If the microprocessor 1 stops or runs out of control after performing pulse motor stop control and does not perform the monitoring process for the counter 20,
Since the counter 20 is not reset when 4 milliseconds have elapsed, the count value reaches "0" when, for example, 6 milliseconds have elapsed. Therefore, signal line 2 indicating this state
If counter 2 is used to generate a non-maskable interrupt signal for microprocessor 1 and to turn off the power, as described above, counter 20 can also be used to monitor microprocessor 1.
以上の説明から明らかなように、本発明によれ
ば、カウンタの追加により、容易にパルスモータ
の焼損を防止でき、更にこのカウンタは、マイク
ロプロセツサの監視にも利用できるので、パルス
モータ駆動制御の信頼性を向上するという著しい
工業的効果がある。
As is clear from the above description, according to the present invention, burnout of the pulse motor can be easily prevented by adding a counter, and furthermore, this counter can also be used to monitor the microprocessor, so the pulse motor drive control It has a significant industrial effect of improving reliability.
第1図は本発明の一実施例構成のブロツク図、
第2図は従来の一構成例ブロツク図である。
図において、1はマイクロプロセツサ、2,7
はレジスタ、4はパルスモータ、5はタイマ部、
8−1〜8−4は駆動線、20はカウンタを示
す。
FIG. 1 is a block diagram of an embodiment of the present invention.
FIG. 2 is a block diagram of an example of a conventional configuration. In the figure, 1 is a microprocessor, 2, 7
is a register, 4 is a pulse motor, 5 is a timer section,
8-1 to 8-4 are drive lines, and 20 is a counter.
Claims (1)
制御手段1を有し、 該パルス信号発生手段5は、パルスモータの停
止のための励磁電流の通電時間率を制御するよう
に、所定周期のパルス信号を発生し、 該カウンタ20は該制御手段1によつて設定さ
れる設定値を該パルス信号ごとに減数し、該減数
の結果の計数値が所定値に達したとき所定の電源
切断信号22を発生し、 該制御手段1は所定周期ごとに、該周期より長
い所定の該設定値を該カウンタに設定し、該周期
後に該カウンタの計数値が該設定値から所定値以
上減数されていないことを検出することによつ
て、所定のエラー処理を開始するように構成され
ていることを特徴とするパルスモータ駆動監視方
式。[Claims] 1. A pulse signal generating means 5, a counter 20, and a control means 1, wherein the pulse signal generating means 5 is configured to control the energization time rate of the excitation current for stopping the pulse motor. , generates a pulse signal of a predetermined period, the counter 20 decrements the set value set by the control means 1 for each pulse signal, and when the count value as a result of the subtraction reaches a predetermined value, The control means 1 sets the predetermined setting value longer than the period in the counter every predetermined period, and after the period, the count value of the counter changes from the predetermined value to the predetermined value. 1. A pulse motor drive monitoring method, characterized in that the method is configured to start predetermined error processing by detecting that the number has not been reduced.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5890985A JPS61221595A (en) | 1985-03-22 | 1985-03-22 | Pulse motor drive monitoring system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5890985A JPS61221595A (en) | 1985-03-22 | 1985-03-22 | Pulse motor drive monitoring system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61221595A JPS61221595A (en) | 1986-10-01 |
| JPH0328159B2 true JPH0328159B2 (en) | 1991-04-18 |
Family
ID=13097938
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5890985A Granted JPS61221595A (en) | 1985-03-22 | 1985-03-22 | Pulse motor drive monitoring system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61221595A (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008294786A (en) * | 2007-05-25 | 2008-12-04 | Nippon Seiki Co Ltd | Pulse generator |
| US8332448B2 (en) * | 2007-10-12 | 2012-12-11 | Sanyo Semiconductor Co., Ltd. | Semiconductor integrated circuit having a random number and oscillator circuit for variably controlling stored data |
| CN102064715A (en) * | 2009-11-17 | 2011-05-18 | 鸿富锦精密工业(深圳)有限公司 | PWM controller phase adjusting system and adjusting method |
| JP5560453B1 (en) * | 2013-03-22 | 2014-07-30 | 株式会社アクセル | PWM output device, PWM output method, and game machine |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5743596A (en) * | 1980-08-29 | 1982-03-11 | Honda Motor Co Ltd | Drive control device for pulse motor |
-
1985
- 1985-03-22 JP JP5890985A patent/JPS61221595A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61221595A (en) | 1986-10-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH05213208A (en) | Motor-operated power steering device | |
| JPH0328159B2 (en) | ||
| JP3246792B2 (en) | Control circuit for brushless DC motor | |
| JP3590899B2 (en) | Electric power steering device | |
| JPH05122801A (en) | Controller for electric automobile | |
| JPS59112308A (en) | Numerical controller | |
| JP2003032879A (en) | Method for detecting failure of holding brake of motor drive device | |
| JP2694609B2 (en) | Electric power steering device | |
| JP3500517B2 (en) | Electric power steering device | |
| JP2698914B2 (en) | Electric power steering device | |
| JP2970453B2 (en) | Robot system | |
| JPH0429589A (en) | Method of judging lock condition of dc motor | |
| JPH0326640B2 (en) | ||
| JP2000295761A (en) | Stepping motor protection device | |
| JP2001075603A (en) | Fail safe mechanism | |
| JPH0241476Y2 (en) | ||
| JPS61135395A (en) | Self-diagnostic circuit for motor drive circuit | |
| JPH09327121A (en) | Overload detection circuit in motor drive and control circuit | |
| JP2002351579A (en) | Error monitor | |
| JPS6076382A (en) | Self-diagnostic device for printer | |
| JPH04156285A (en) | Method for sensing abnormality of circuit for driving motor | |
| JPH0228062A (en) | Electrically driven power steering device | |
| JPS6059447A (en) | Microcomputer system | |
| JPS62131344A (en) | Microcomputer self-diagnosis device | |
| JPH03119441A (en) | Detection system for abnormality of account timer |