JP2002142481A - Method for controlling rotation of dc motor - Google Patents

Method for controlling rotation of dc motor

Info

Publication number
JP2002142481A
JP2002142481A JP2000332000A JP2000332000A JP2002142481A JP 2002142481 A JP2002142481 A JP 2002142481A JP 2000332000 A JP2000332000 A JP 2000332000A JP 2000332000 A JP2000332000 A JP 2000332000A JP 2002142481 A JP2002142481 A JP 2002142481A
Authority
JP
Japan
Prior art keywords
motor
input
rotation
microcomputer
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
JP2000332000A
Other languages
Japanese (ja)
Inventor
Katsuhiko Okazaki
克彦 岡▲崎▼
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 JP2000332000A priority Critical patent/JP2002142481A/en
Publication of JP2002142481A publication Critical patent/JP2002142481A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Direct Current Motors (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve a problem of follow-up of rotation being not measured at the time of high speed rotation of a motor exceeding a predetermined level when the motor is rotated at a high speed by monitoring the rotational speed of the motor normally at the input. SOLUTION: When a DC motor 1 is started, a positional detection signal from a Hall element (photocoupler) 2 is synchronized with the edge of an input pulse by an OR circuit 3 and inputted, as one input, to an interruption circuit 5. Using that signal, an output pattern control block 7 determines a feedback output to UVW (/UVW) phases. On the other hand, with regard to a voltage command, input capture data 8 triggered by an interruption signal 5 is converted, at a voltage command section 9, into a PWM output.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロコンピュ
ータなどを使用してモータの回転数を検出し、高速回転
時にもなめらかな可変速制御ができるように回転数を3
相入力のORを割り込みを使用してデータとして取り込
み、また、モータ1回転内の回転速度を検出したり、マ
イクロコンピュータのハードウエア資源を最小限に抑え
てモータを効率よく回すモータ制御方法に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention uses a microcomputer or the like to detect the number of rotations of a motor and to reduce the number of rotations to 3 so that smooth variable speed control can be performed even during high-speed rotation.
A motor control method that captures the OR of a phase input as data using an interrupt, detects the rotation speed within one rotation of the motor, and minimizes the hardware resources of the microcomputer to efficiently rotate the motor. It is.

【0002】[0002]

【従来の技術】以下、従来のDCモータ制御に関する方
法について説明する。
2. Description of the Related Art A conventional DC motor control method will be described below.

【0003】図1に全体の構成図を示す。また、図2に
そのソフトウエアの流れを示す。
FIG. 1 shows an overall configuration diagram. FIG. 2 shows the flow of the software.

【0004】図1においてDCモータが何らかの起動に
より回転を始めると、モータに設置されたモータ位置検
出器(フォトカプラにて構成される)より、3相(UV
W)入力パターンが得られる。この時、マイクロコンピ
ュータによって、図2に示すアルゴリズムのように、マ
イクロコンピュータのI/Oに接続されたレベルを読み
返す。
In FIG. 1, when the DC motor starts rotating by some starting, a three-phase (UV) is detected by a motor position detector (constituted by a photocoupler) installed on the motor.
W) An input pattern is obtained. At this time, the microcomputer reads back the level connected to the I / O of the microcomputer as in the algorithm shown in FIG.

【0005】この結果、図3に示すように3相入力の変
化点を認識することで、現在のモータ位置を検出し、そ
の入力パターンに対応した3相出力を行うことでモータ
を回転させていた。また、回転方向を検出するため、他
のポートに回転方向情報を入力する必要があった。
As a result, as shown in FIG. 3, the current motor position is detected by recognizing a change point of the three-phase input, and the three-phase output corresponding to the input pattern is performed to rotate the motor. Was. Further, in order to detect the rotation direction, it is necessary to input the rotation direction information to another port.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来の構成においては、モータの回転信号を通常入力にて
監視している為、モータを高速で回転する場合、ある一
定速度を超えるモータの高速回転時に、回転の追従が測
れないことがあった。
However, in the above-mentioned conventional configuration, since the rotation signal of the motor is monitored by a normal input, when the motor is rotated at a high speed, the rotation speed of the motor exceeding a certain fixed speed is high. At times, it was not possible to measure the rotation.

【0007】また、モータの位置検出を行う場合、図3
に示すような変化点の監視では、マイクロコンピュータ
のハードウエア資源を多く消費することが確認されてい
る。
When detecting the position of the motor, FIG.
It has been confirmed that the monitoring of the change point as shown in (1) consumes a lot of hardware resources of the microcomputer.

【0008】[0008]

【課題を解決するための手段】この目的を達成する為
に、本発明のDCモータ回転制御方法では、図4に示す
ように3相の入力をOR回路にて1入力の信号としマイ
クロコンピュータの外部割り込み信号として認識させ
る。
In order to achieve this object, according to the DC motor rotation control method of the present invention, as shown in FIG. Recognize it as an external interrupt signal.

【0009】また、この入力により発生する割り込み信
号をトリガとして、ソフトウエアで3相入力の変化点を
認識しフィードバックする3相出力パターンを作り込む
ブロックで成り立っている。また、入力を1本としてい
る為、回転方向は割り込み処理内でのパターン認識によ
り決定される形態をとる。
Further, the block comprises a block for generating a three-phase output pattern for recognizing and feeding back a change point of the three-phase input by software using an interrupt signal generated by this input as a trigger. Further, since there is one input, the rotation direction is determined by pattern recognition in the interrupt processing.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照しながら説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0011】図5は本発明の実施の形態におけるDCモ
ータ回転制御方法を示すブロック図である。図5におい
て、1はDCモータの等価ブロック、2はモータの位置
検出器(フォトカプラで構成)、3は3相入力を1入力
に変換するためのOR回路、4はそれらを処理するマイ
クロコンピュータ全体、5は外部割り込み回路、6はタ
イマブロック、7は3相の出力パターンを制御するブロ
ック、8は外部割り込みのタイミングで取り込んだタイ
マ(バイナリカウンタ)の値を時間成分変換するブロッ
ク、9は時間変換されたデータをモータへの電圧指令と
して演算し出力するブロックである。まず、DCモータ
1を始動した場合、ホール素子(フォトカプラ)2から
位置検出の信号が入ってくる。このときの3相の信号を
OR回路3にて入力パルスのエッジに同期して1入力の
信号としてマイクロコンピュータ4の周辺機能である外
部割り込み回路5へと入力される。この信号を利用して
出力パターン制御ブロック7にてUVW(/UVW)相
へのフィードバック出力を決定する。また一方で電圧指
令については、割り込み信号を5トリガとしたインプッ
トキャプチャのブロック8をタイマ6でコントロールし
電圧指令部9にてPWM出力へと変換する。
FIG. 5 is a block diagram showing a DC motor rotation control method according to the embodiment of the present invention. In FIG. 5, 1 is an equivalent block of a DC motor, 2 is a motor position detector (constituted by a photocoupler), 3 is an OR circuit for converting a three-phase input into one input, and 4 is a microcomputer for processing them. 5 is an external interrupt circuit, 6 is a timer block, 7 is a block that controls a three-phase output pattern, 8 is a block that converts the value of a timer (binary counter) captured at the timing of an external interrupt into a time component, and 9 is This block calculates and outputs the time-converted data as a voltage command to the motor. First, when the DC motor 1 is started, a position detection signal is input from the Hall element (photocoupler) 2. The three-phase signal at this time is input to the external interrupt circuit 5 which is a peripheral function of the microcomputer 4 as one input signal in synchronization with the edge of the input pulse by the OR circuit 3. Using this signal, the output pattern control block 7 determines the feedback output to the UVW (/ UVW) phase. On the other hand, with regard to the voltage command, the input capture block 8 using the interrupt signal as a trigger is controlled by the timer 6 and converted into the PWM output by the voltage command unit 9.

【0012】[0012]

【発明の効果】以上のように実施の形態によれば、従来
モータを高速回転する場合に、図6のような1秒間で1
000rpmを回転させるモータでは急激回転数変化の
ため速度が追従できなかったものが、図7のように平均
速度の変化に対応して速度の追従が可能となった。ま
た、図5に示すようシステム構成がシンプルになりマイ
クロコンピュータのI/O削減に効果的となった。
As described above, according to the embodiment, when the conventional motor is rotated at a high speed, one second per second as shown in FIG.
In the motor that rotates at 000 rpm, the speed could not be followed due to the rapid rotation speed change, but the speed could be followed in response to the change in the average speed as shown in FIG. Further, as shown in FIG. 5, the system configuration was simplified, and the I / O of the microcomputer was effectively reduced.

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

【図1】従来方式によるDCモータ回転制御構成図FIG. 1 is a configuration diagram of a DC motor rotation control according to a conventional method.

【図2】従来方式によるソフトウエアの流れ図FIG. 2 is a flowchart of software according to a conventional method.

【図3】3相入力パターン図FIG. 3 is a three-phase input pattern diagram

【図4】本発明における3相入力をOR回路で取り込む
FIG. 4 is a diagram in which a three-phase input according to the present invention is captured by an OR circuit;

【図5】本発明におけるDCモータ回転制御構成図FIG. 5 is a configuration diagram of a DC motor rotation control according to the present invention.

【図6】従来方式で高速モータ回転が追従できない図FIG. 6 is a diagram in which the high-speed motor rotation cannot follow the conventional method.

【図7】本発明により高速回転でモータが追従する様子
を表した図
FIG. 7 is a diagram showing a state in which a motor follows a high-speed rotation according to the present invention.

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

1 DCモータの等価ブロック 2 モータの位置検出器(フォトカプラ) 3 3相入力を1入力に変換するためのOR回路 4 演算処理を行うマイクロコンピュータ全体 5 外部割り込み回路 6 タイマブロック 7 3相の出力パターンを制御するブロック 8 外部割り込みのタイミングで取り込んだタイマ(バ
イナリカウンタ)の値を時間成分変換するブロック 9 時間変換されたデータをモータへの電圧指令として
演算し出力するブロック
Reference Signs List 1 Equivalent block of DC motor 2 Motor position detector (photocoupler) 3 OR circuit for converting three-phase input to one input 4 Whole microcomputer performing arithmetic processing 5 External interrupt circuit 6 Timer block 7 Three-phase output Block that controls the pattern 8 Block that converts the value of the timer (binary counter) captured at the timing of the external interrupt into a time component 9 Block that calculates and outputs the time-converted data as a voltage command to the motor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 8ビットマイクロコンピュータ等を使用
して、DCモータを駆動する場合に、モータの位置検出
器からの3相信号入力をOR回路等を使用して1本の入
力パターンを形成し、モータ高速回転動作になめらかに
追従できるようにマイクロコンピュータの外部割り込み
処理内で、フィードバックの出力パターンを決定するD
Cモータ回転制御方法。
When driving a DC motor using an 8-bit microcomputer or the like, a three-phase signal input from a motor position detector is formed into one input pattern using an OR circuit or the like. In order to smoothly follow the motor high-speed rotation operation, the output pattern of feedback is determined in the external interrupt processing of the microcomputer.
C motor rotation control method.
【請求項2】 外部の3相入力信号を、マイクロコンピ
ュータのインプットキャプチャ機能を使用して、モータ
1回転内の回転速度を検出する。マイクロコンピュータ
などの入力端子が不足する時など、3相入力を1本の割
り込み入力に割り付け、割り込みパターンの認識により
安易な回路で構成するDCモータ回転制御方法。
2. A rotation speed within one rotation of a motor is detected from an external three-phase input signal by using an input capture function of a microcomputer. A DC motor rotation control method in which a three-phase input is assigned to one interrupt input when an input terminal of a microcomputer or the like is insufficient, and a simple circuit is configured by recognizing an interrupt pattern.
JP2000332000A 2000-10-31 2000-10-31 Method for controlling rotation of dc motor Pending JP2002142481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000332000A JP2002142481A (en) 2000-10-31 2000-10-31 Method for controlling rotation of dc motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000332000A JP2002142481A (en) 2000-10-31 2000-10-31 Method for controlling rotation of dc motor

Publications (1)

Publication Number Publication Date
JP2002142481A true JP2002142481A (en) 2002-05-17

Family

ID=18808267

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000332000A Pending JP2002142481A (en) 2000-10-31 2000-10-31 Method for controlling rotation of dc motor

Country Status (1)

Country Link
JP (1) JP2002142481A (en)

Similar Documents

Publication Publication Date Title
JP4085112B2 (en) Motor control method and motor control apparatus
EP1612925B1 (en) A brushless DC motor controller
WO2012032571A1 (en) Ac motor rotation direction detecting method and electric power conversion device for ac motor using same
JP2002142481A (en) Method for controlling rotation of dc motor
JPH06253580A (en) Protective system for inverter
JP4820053B2 (en) Motor rotation stop detection device
JP6758494B2 (en) Rotation angle detector and AC rotor control device
JP2006166678A (en) Rotation information detecting device of dc motor
JPH1023783A (en) Dc brushless motor drive method and device
JP2002010669A (en) Inverter unit
CN220857953U (en) Hall phase-loss controller for DC brushless motor
JP4967782B2 (en) Brushless motor starting method, brushless motor control device, and electric pump including the brushless motor control device
JP3102520B2 (en) Drive device for brushless motor
JP4265395B2 (en) Inverter device
KR100319137B1 (en) Method and apparatus for speed control of a brushless DC motor
JPH04105585A (en) Dc brushless motor drive controller
KR20040036364A (en) Locking detection method for sensorless bldc motor
JPH1032996A (en) Device for detecting negative phase of motor driving inverter
JPH11235089A (en) Inertial rotation information detecting method and device for ac motor, and motor driving method
JPH08140391A (en) Driver for brushless motor
JPH10290521A (en) Motor runaway detection method and speed controller
JP2012070489A (en) Drive control device and drive control method for motor
KR100690641B1 (en) Forward/reverse rotation change timing point detection method for bldc motor
KR20240109325A (en) Sensorless control device and control method of synchronous motor for power tool
CN116865634A (en) Inductive control method and control device for brushless DC motor