JP2015162922A - Motor control apparatus - Google Patents

Motor control apparatus Download PDF

Info

Publication number
JP2015162922A
JP2015162922A JP2014035307A JP2014035307A JP2015162922A JP 2015162922 A JP2015162922 A JP 2015162922A JP 2014035307 A JP2014035307 A JP 2014035307A JP 2014035307 A JP2014035307 A JP 2014035307A JP 2015162922 A JP2015162922 A JP 2015162922A
Authority
JP
Japan
Prior art keywords
phase
phase signal
rotor
motor
energized
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.)
Granted
Application number
JP2014035307A
Other languages
Japanese (ja)
Other versions
JP6357798B2 (en
Inventor
陵 小島
Ryo Kojima
陵 小島
智之 柏木
Tomoyuki Kashiwagi
智之 柏木
山田 純
Jun Yamada
山田  純
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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2014035307A priority Critical patent/JP6357798B2/en
Priority to DE102015203163.2A priority patent/DE102015203163A1/en
Publication of JP2015162922A publication Critical patent/JP2015162922A/en
Application granted granted Critical
Publication of JP6357798B2 publication Critical patent/JP6357798B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/08Reluctance motors
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/0004Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control
    • H02P23/0031Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control implementing a off line learning phase to determine and store useful data for on-line control
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/16Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the circuit arrangement or by the kind of wiring
    • H02P25/22Multiple windings; Windings for more than three phases

Abstract

PROBLEM TO BE SOLVED: To provide a motor control apparatus capable of more quickly identifying a rotational position of a rotor and shortening time required up to learning of a reference position of the rotor.SOLUTION: The motor control apparatus executes initial drive for performing two-phase conduction in open loop control over a predetermined period previously determined after turning on a power supply (S1 to S2), determines whether or not a combination of an A-phase signal and a B-phase signal coincides with a combination of an A-phase signal and a B-phase signal previously set correspondingly to a conduction phase performing two-phase conduction (S4), and when coincidence is determined (S4: YES), identifies a correction value previously set correspondingly to the coincident combination and learns the reference position of the rotor using the identified correction value (S5).

Description

本発明は、モータ制御装置に関する。   The present invention relates to a motor control device.

エンコーダから出力される例えばパルス信号をカウントし、そのカウント値に基づいてロータの回転位置を検出することで、ロータを目標位置まで回転駆動するモータ制御装置がある。そのようなモータを制御する場合には電源投入時にロータの回転位置を特定する必要があり、例えば特許文献1には、電源投入時の初期駆動中に通電相を切り換えることでロータの回転位置を特定し、その結果に基づいてロータの基準位置を学習するモータ制御装置が記載されている。   For example, there is a motor control device that counts, for example, pulse signals output from an encoder and detects the rotational position of the rotor based on the count value, thereby driving the rotor to a target position. When controlling such a motor, it is necessary to specify the rotational position of the rotor when the power is turned on. For example, Patent Document 1 discloses that the rotational position of the rotor is changed by switching the energized phase during the initial drive when the power is turned on. A motor control device that specifies and learns the reference position of the rotor based on the result is described.

特開2004−129451号公報JP 2004-129451 A

しかしながら、近年、電源投入後またはモータ制御開始前により早くロータの基準位置を学習したいという要望が増えつつある。
本発明は上記事情に鑑みてなされたものであり、その目的は、ロータの回転位置をより早く特定し、ロータの基準位置を学習するまでの時間を短縮することができるモータ制御装置を提供することにある。
However, in recent years, there is an increasing demand for learning the rotor reference position earlier after power-on or before starting motor control.
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a motor control device that can specify the rotational position of the rotor earlier and shorten the time until the reference position of the rotor is learned. There is.

請求項1記載の発明では、モータ制御装置は、電源投入後またはモータ制御開始前に予め定められている所定期間に渡ってオープンループ制御にて二相通電する初期駆動を実行し、A相信号およびB相信号の組み合わせが二相通電している通電相に対応して予め設定されているA相信号およびB相信号の組み合わせと一致するか否かを判定し、一致したと判定すると、当該一致した組み合わせに対応して予め設定されている補正値を特定し、特定した補正値を用いてロータの基準位置を学習する。これにより、初期駆動中に通電相を切り換えなくても、1回の通電によりロータの回転位置を特定することができる。したがって、ロータの基準位置を学習するまでの時間を短縮することができる。   According to the first aspect of the present invention, the motor control device executes initial driving for conducting two-phase energization by open loop control for a predetermined period after the power is turned on or before the motor control is started. And whether the combination of the B phase signal matches the preset combination of the A phase signal and the B phase signal corresponding to the energized phase in which the two phases are energized. A correction value set in advance corresponding to the matched combination is specified, and the reference position of the rotor is learned using the specified correction value. Thereby, the rotational position of the rotor can be specified by one energization without switching the energization phase during the initial drive. Therefore, it is possible to shorten the time until the reference position of the rotor is learned.

第1実施形態のモータ制御装置が制御するモータの駆動対象となるレンジ切換制御装置の構成を模式的に示す図The figure which shows typically the structure of the range switching control apparatus used as the drive object of the motor which the motor control apparatus of 1st Embodiment controls. モータの内部構成を模式的に示す図Diagram showing the internal configuration of the motor モータの駆動回路を模式的に示す図The figure which shows the drive circuit of the motor typically レンジ切換制御装置の電気的構成を模式的に示す図The figure which shows typically the electric constitution of a range switching control apparatus エンコーダと磁気検出素子との位置関係を模式的に示す図The figure which shows typically the positional relationship of an encoder and a magnetic detection element. エンコーダのロータリマグネットと磁気検出素子との位置関係を模式的に示す図The figure which shows typically the positional relationship of the rotary magnet of an encoder and a magnetic detection element. 通電相とエンコーダの出力との対応関係を示す図Diagram showing correspondence between energized phase and encoder output VW相に二相通電した場合のSRモータの状態を模式的に示す図その1A diagram schematically showing the state of the SR motor when the VW phase is energized in two phases Part 1 U相に一相通電した場合のSRモータの状態を模式的に示す図The figure which shows typically the state of SR motor at the time of carrying out 1 phase energization to U phase VW相に二相通電した場合のSRモータの状態を模式的に示す図その2Diagram 2 schematically showing the state of the SR motor when the VW phase is energized in two phases 通電相と補正値との対応関係を示す図Diagram showing correspondence between energized phase and correction value 基準位置学習処理の流れを示す図Diagram showing the flow of the reference position learning process 第2実施形態による基準位置学習処理の流れを示す図The figure which shows the flow of the reference | standard position learning process by 2nd Embodiment.

以下、本発明の複数の実施形態について、図面を参照しながら説明する。なお、各実施形態において実質的に共通する部位については共通する符号を付し、その詳細な説明は省略する。   Hereinafter, a plurality of embodiments of the present invention will be described with reference to the drawings. In addition, about the site | part substantially common in each embodiment, the common code | symbol is attached | subjected and the detailed description is abbreviate | omitted.

(第1実施形態)
以下、第1実施形態について、図1から図12を参照しながら説明する。
まず、図1に基づいて、本実施形態で制御対象となるレンジ切換機構11の構成を説明する。レンジ切換機構11の駆動源となるモータ12は、本実施形態ではスイッチドリラクタンスモータ(以下、SRモータとも称する)を採用している。このモータ12は、減速機構26(図4参照)を内蔵している。また、モータ12は、その出力軸13の回転位置を検出する出力軸センサ14が設けられている。この出力軸13には、ディテントレバー15が固定されている。
(First embodiment)
Hereinafter, the first embodiment will be described with reference to FIGS. 1 to 12.
First, based on FIG. 1, the structure of the range switching mechanism 11 used as a control object in this embodiment is demonstrated. In the present embodiment, a switched reluctance motor (hereinafter also referred to as an SR motor) is employed as the motor 12 that is a drive source of the range switching mechanism 11. The motor 12 includes a speed reduction mechanism 26 (see FIG. 4). The motor 12 is provided with an output shaft sensor 14 that detects the rotational position of the output shaft 13. A detent lever 15 is fixed to the output shaft 13.

ディテントレバー15には、L字形のパーキングロッド18が固定されている。このパーキングロッド18は、その先端部に設けられた円錐体19がロックレバー21に当接している。ロックレバー21は、円錐体19の位置に応じて軸22を中心にして上下動することで、パーキングギヤ20を回転可能または回転不能に切り換える。このパーキングギヤ20は、自動変速機27(図4参照)の出力軸に設けられている。そのため、パーキングギヤ20が回転可能であれば車両の駆動輪も回転可能である一方、パーキングギヤ20が回転不能となると車両の駆動輪も回転不能となる。   An L-shaped parking rod 18 is fixed to the detent lever 15. The parking rod 18 has a conical body 19 provided at the tip thereof in contact with the lock lever 21. The lock lever 21 moves up and down around the shaft 22 according to the position of the cone 19 to switch the parking gear 20 to be rotatable or non-rotatable. The parking gear 20 is provided on the output shaft of the automatic transmission 27 (see FIG. 4). Therefore, if the parking gear 20 can rotate, the drive wheels of the vehicle can also rotate. On the other hand, if the parking gear 20 cannot rotate, the drive wheels of the vehicle also cannot rotate.

このパーキングギヤ20の回転可能/回転不能の切り換えは、以下のようにして行われる。レンジ切換機構11には、ディテントレバー15をパーキングレンジ(以下「Pレンジ」と称する)あるいは他のレンジ(以下「NotPレンジ」と称する)に保持するためのディテントバネ23が設けられている。このディテントバネ23は、支持ベース17に固定されており、その先端に設けられている係合部23aがディテントレバー15に設けられている凹部と係合することで、ディテントレバー15の位置決めを行っている。具体的には、ディテントバネ23の係合部23aがディテントレバー15のPレンジ保持凹部24に係合したとき、ディテントレバー15は、Pレンジの位置に保持される。一方、ディテントバネ23の係合部23aがディテントレバー15のNotPレンジ保持凹部25に係合したとき、ディテントレバー15は、NotPレンジの位置に保持される。   Switching of the parking gear 20 between rotation / non-rotation is performed as follows. The range switching mechanism 11 is provided with a detent spring 23 for holding the detent lever 15 in a parking range (hereinafter referred to as “P range”) or another range (hereinafter referred to as “Not P range”). The detent spring 23 is fixed to the support base 17, and the engaging portion 23 a provided at the tip of the detent spring 23 engages with the concave portion provided in the detent lever 15, thereby positioning the detent lever 15. ing. Specifically, when the engaging portion 23a of the detent spring 23 is engaged with the P range holding recess 24 of the detent lever 15, the detent lever 15 is held at the P range position. On the other hand, when the engaging portion 23a of the detent spring 23 is engaged with the NotP range holding recess 25 of the detent lever 15, the detent lever 15 is held at the position of the NotP range.

Pレンジでは、パーキングロッド18がロックレバー21に接近する方向に移動している。このため、円錐体19の径大部がロックレバー21の下方に入り込み、ロックレバー21が押し上げられる。これにより、ロックレバー21の凸部21aがパーキングギヤ20に嵌まり込み、パーキングギヤ20が回転不能にロックされる。その結果、自動変速機27の出力軸つまりは駆動輪もロックされた状態となる。この状態が、いわゆるパーキング状態である。   In the P range, the parking rod 18 moves in a direction approaching the lock lever 21. For this reason, the large diameter part of the cone 19 enters below the lock lever 21, and the lock lever 21 is pushed up. Thereby, the convex part 21a of the lock lever 21 fits into the parking gear 20, and the parking gear 20 is locked so as not to rotate. As a result, the output shaft of the automatic transmission 27, that is, the drive wheels are also locked. This state is a so-called parking state.

一方、NotPレンジでは、パーキングロッド18がロックレバー21から離れる方向に移動する。このため、円錐体19の径大部がロックレバー21の下方から抜け出てロックレバー21が下降する。これにより、ロックレバー21の凸部21aがパーキングギヤ20から外れ、パーキングギヤ20のロックが解除される。その結果、自動変速機27の出力軸も回転可能な状態となる。この状態は、車両が走行可能な状態である。   On the other hand, in the NotP range, the parking rod 18 moves away from the lock lever 21. For this reason, the large diameter part of the cone 19 comes out from below the lock lever 21, and the lock lever 21 descends. Thereby, the convex part 21a of the lock lever 21 comes off from the parking gear 20, and the parking gear 20 is unlocked. As a result, the output shaft of the automatic transmission 27 is also rotatable. This state is a state in which the vehicle can travel.

なお、上記した出力軸センサ14は、モータ12の減速機構26の出力軸13の回転角度に応じた電圧を出力する回転センサによって構成されている。この回転センサは、例えばポテンショメータを採用することができる。そのため、回転センサからの出力電圧を検知することで、現在のレンジがPレンジであるかNotPレンジであるかを把握することができる。   The output shaft sensor 14 described above is configured by a rotation sensor that outputs a voltage corresponding to the rotation angle of the output shaft 13 of the speed reduction mechanism 26 of the motor 12. For example, a potentiometer can be adopted as the rotation sensor. Therefore, it is possible to grasp whether the current range is the P range or the NotP range by detecting the output voltage from the rotation sensor.

次に、モータ12の構成を説明する。
図2に示すように、モータ12は、一般的なSRモータと同様に、ステータ31に突極31aが設けられ、ロータ32に突極32aが設けられた突極構造となっている。このモータ12は、永久磁石が不要であるとともに、比較的簡易な構造で実現できるという利点がある。円筒状に形成されたステータ31は、その内周部に、本実施形態では12個の突極31aが等間隔に形成されている。つまり、突極31aは、ステータ31の内周側に30°間隔で設けられている。また、ステータ31の内周に配置されているロータ32には、その外周部に、本実施形態では8個の突極32aが等間隔に形成されている。つまり、突極32aは、ロータ32の外周側に45°間隔で設けられている。
Next, the configuration of the motor 12 will be described.
As shown in FIG. 2, the motor 12 has a salient pole structure in which a salient pole 31 a is provided on the stator 31 and a salient pole 32 a is provided on the rotor 32, similarly to a general SR motor. The motor 12 has an advantage that a permanent magnet is unnecessary and it can be realized with a relatively simple structure. The cylindrically formed stator 31 has twelve salient poles 31a formed at equal intervals in the inner peripheral portion in the present embodiment. That is, the salient poles 31 a are provided at an interval of 30 ° on the inner peripheral side of the stator 31. In the present embodiment, eight salient poles 32a are formed at equal intervals on the outer periphery of the rotor 32 disposed on the inner periphery of the stator 31. That is, the salient poles 32 a are provided on the outer peripheral side of the rotor 32 at 45 ° intervals.

ロータ32の各突極32aとステータ31の各突極31aとは、モータ12が駆動され、各相に通電されると、ロータ32の回転に伴って微小なギャップを介して順次対向する。なお、図2では、図面の簡略化のために、それぞれ2個の突極31aおよび突極32aにのみ符号を付している。なお、突極31aおよび突極32aの数は上記に限定されるものでは無く、後述するように突極31a、突極32a、エンコーダ46の磁気検出素子48、磁気検出素子49、磁気検出素子50(図5および図6参照)の互いの位置関係を充足する状態であれば、適宜その数を変更してもよい。   Each salient pole 32a of the rotor 32 and each salient pole 31a of the stator 31 face each other sequentially through a minute gap as the rotor 32 rotates when the motor 12 is driven and each phase is energized. In FIG. 2, only the two salient poles 31 a and the salient poles 32 a are denoted by reference numerals for simplification of the drawing. The number of salient poles 31a and salient poles 32a is not limited to the above. As will be described later, salient poles 31a, salient poles 32a, magnetic detection element 48 of encoder 46, magnetic detection element 49, and magnetic detection element 50. As long as the positional relationship is satisfied (see FIGS. 5 and 6), the number may be changed as appropriate.

ステータ31の各突極31aには、U相、V相、W相の合計6個のコイル33と、U’相、V’相、W’相の合計6個のコイル34が巻回されている。本実施形態の場合、コイル33、34は、ステータ31の12個の突極31aに対して、図示時計回りにV相→W相→U相→V相→W相→U相→V’相→W’相→U’相→V’相→W’相→U’相の順で巻回されている。
これらU相、V相、W相のコイル33およびU’相、V’相、W’相のコイル34は、図3に示すように、2系統のモータ励磁部35およびモータ励磁部36を構成するように結線されている。モータ励磁部35は、U相、V相、W相のコイル33がY結線により接続されている。このとき、同相の2個のコイル33は、それぞれ直列に接続されている。モータ励磁部36は、U’相、V’相、W’相のコイル34がY結線により接続されている。このとき、同相の2個のコイル34は、それぞれ直列に接続されている。これらのモータ励磁部35およびモータ励磁部36は、U相とU’相が同時に通電され、V相とV’相が同時に通電され、W相とW’相が同時に通電される。
A total of six coils 33 of U phase, V phase, and W phase and a total of six coils 34 of U ′ phase, V ′ phase, and W ′ phase are wound around each salient pole 31 a of the stator 31. Yes. In the case of this embodiment, the coils 33 and 34 are V-phase → W-phase → U-phase → V-phase → W-phase → U-phase → V′-phase clockwise with respect to the 12 salient poles 31 a of the stator 31. It is wound in the order of W ′ phase → U ′ phase → V ′ phase → W ′ phase → U ′ phase.
These U-phase, V-phase, and W-phase coils 33 and U'-phase, V'-phase, and W'-phase coils 34 constitute a two-system motor exciter 35 and motor exciter 36 as shown in FIG. Wired to do so. In the motor excitation unit 35, U-phase, V-phase, and W-phase coils 33 are connected by Y connection. At this time, the two coils 33 having the same phase are connected in series. In the motor excitation unit 36, U′-phase, V′-phase, and W′-phase coils 34 are connected by Y-connection. At this time, the two coils 34 having the same phase are connected in series. In the motor excitation unit 35 and the motor excitation unit 36, the U phase and the U ′ phase are energized simultaneously, the V phase and the V ′ phase are energized simultaneously, and the W phase and the W ′ phase are energized simultaneously.

モータ励磁部35およびモータ励磁部36は、車両に搭載されたバッテリ40を電源として、個別のモータドライバ37およびモータドライバ38によってそれぞれ駆動される。このように、モータ励磁部35およびモータ励磁部36とモータドライバ37およびモータドライバ38とを設け、2系統の励磁部を備えることで、一方の系統が故障したとしても、他方の系統にてモータ12を回転駆動させることができる。なお、本発明を実施する上では、モータ励磁部およびモータドライバは1系統であってもよい。
モータドライバ37およびモータドライバ38は、各相に例えばトランジスタやIGBT等のスイッチング素子39を1個ずつ設けたユニポーラ駆動方式の回路構成を採用している。なお、各相にスイッチング素子39を2個ずつ設けたバイポーラ駆動方式の回路構成を採用してもよい。
The motor excitation unit 35 and the motor excitation unit 36 are driven by an individual motor driver 37 and a motor driver 38, respectively, using a battery 40 mounted on the vehicle as a power source. Thus, by providing the motor excitation unit 35, the motor excitation unit 36, the motor driver 37, and the motor driver 38 and providing two excitation units, even if one of the systems fails, the motor in the other system 12 can be driven to rotate. In practicing the present invention, the motor excitation unit and the motor driver may be one system.
The motor driver 37 and the motor driver 38 employ a unipolar drive circuit configuration in which one switching element 39 such as a transistor or IGBT is provided for each phase. Note that a bipolar drive circuit configuration in which two switching elements 39 are provided for each phase may be employed.

モータドライバ37およびモータドライバ38は、ECU41によってスイッチング素子39のオン/オフが制御される。このECU41は、図4に示すように、モータ12を駆動するモータドライバ37、モータドライバ38とともに、本実施形態ではレンジ切換制御装置42に搭載されている。   In the motor driver 37 and the motor driver 38, the on / off of the switching element 39 is controlled by the ECU 41. As shown in FIG. 4, the ECU 41 is mounted on the range switching control device 42 in this embodiment, together with a motor driver 37 and a motor driver 38 that drive the motor 12.

レンジ切換制御装置42には、Pレンジへの切換操作を行うPレンジスイッチ43、NotPレンジへの切換操作を行うNotPレンジスイッチ44の操作信号が入力される。ユーザによりPレンジスイッチ43あるいはNotPレンジスイッチ44が操作されると、操作信号がレンジ切換制御装置42に入力されるとともに、選択されたレンジが車両のインストルメントパネル(図示省略)に設けられたレンジ表示部45に表示される。
モータ12には、ロータ32の回転位置を検出するためのエンコーダ46が設けられている。このエンコーダ46は、例えば磁気式のロータリエンコーダにより構成されている。これらモータ12、レンジ切換制御装置42およびエンコーダ46等により、モータ制御装置60が構成されている。
The range switching control device 42 receives operation signals from a P range switch 43 that performs a switching operation to the P range and a NotP range switch 44 that performs a switching operation to the NotP range. When the user operates the P range switch 43 or the NotP range switch 44, an operation signal is input to the range switching control device 42, and the selected range is provided in the instrument panel (not shown) of the vehicle. It is displayed on the display unit 45.
The motor 12 is provided with an encoder 46 for detecting the rotational position of the rotor 32. The encoder 46 is composed of, for example, a magnetic rotary encoder. The motor 12, the range switching control device 42, the encoder 46, and the like constitute a motor control device 60.

エンコーダ46は、図5に示すように、ロータ32と同軸に回転するロータリマグネット47、および、3個の磁気検出素子48、磁気検出素子49、磁気検出素子50により構成されている。ロータリマグネット47は、ロータ32に固定されており、図6に示すように、N極およびS極の磁極が周方向に交互に等ピッチで着磁された円環状に形成されている。磁気検出素子48〜50は、例えばホールICで構成されており、ロータリマグネット47に対向配置されている。   As shown in FIG. 5, the encoder 46 includes a rotary magnet 47 that rotates coaxially with the rotor 32, three magnetic detection elements 48, a magnetic detection element 49, and a magnetic detection element 50. The rotary magnet 47 is fixed to the rotor 32 and, as shown in FIG. 6, is formed in an annular shape in which N-pole and S-pole magnetic poles are alternately magnetized at equal pitches in the circumferential direction. The magnetic detection elements 48 to 50 are configured by, for example, Hall ICs, and are disposed to face the rotary magnet 47.

本実施形態では、ロータリマグネット47のN極とS極の着磁ピッチが7.5°に設定されている。このロータリマグネット47の着磁ピッチは、モータ12の励磁1回当たりのロータ32の回転角度と同じに設定されている。そのため、1相−2相励磁方式でモータ12の通電相の切り換えを6回行うと、全ての通電相の切り換えが一巡してロータ32とロータリマグネット47が一体的に7.5°×6=45°回転する。このロータリマグネット47の45°の回転角度範囲に存在するN極とS極の数は、合計6極となっている。   In this embodiment, the magnetization pitch of the N pole and S pole of the rotary magnet 47 is set to 7.5 °. The magnetizing pitch of the rotary magnet 47 is set to be the same as the rotation angle of the rotor 32 per excitation of the motor 12. For this reason, when the energized phase of the motor 12 is switched six times by the one-phase to two-phase excitation method, the switching of all the energized phases is completed and the rotor 32 and the rotary magnet 47 are integrally 7.5 ° × 6 = Rotate 45 °. The total number of N poles and S poles existing in the 45 ° rotation angle range of the rotary magnet 47 is six poles.

また、ロータ32の基準回転位置に相当する位置のN極(便宜的に、N’極と称する)、およびその両側に配置されるS極(便宜的に、S’極と称する)の着磁部分は、他の磁極よりも径方向の大きさが幅広に形成されている。本実施形態の場合、上記したようにモータ12の通電相の切り換えが一巡する間にロータ32とロータリマグネット47が一体に45°回転することから、ロータ32の基準回転位置に相当する幅広な着磁部分であるN’極およびS’極も45°ピッチで配置されている。つまり、ロータリマグネット47には、基準回転位置に相当する幅広な着磁部分が合計8個形成されている。   Magnetization of the N pole (referred to as N ′ pole for convenience) at the position corresponding to the reference rotation position of the rotor 32 and the S pole (referred to as S ′ pole for convenience) disposed on both sides thereof. The part is formed to have a larger radial size than the other magnetic poles. In the case of this embodiment, as described above, the rotor 32 and the rotary magnet 47 rotate together by 45 ° during the cycle of switching of the energized phase of the motor 12, so that a wide landing corresponding to the reference rotation position of the rotor 32 is obtained. The N ′ pole and S ′ pole, which are magnetic parts, are also arranged at a 45 ° pitch. That is, the rotary magnet 47 is formed with a total of eight wide magnetized portions corresponding to the reference rotation position.

3個の磁気検出素子48〜50は、ロータリマグネット47に対して、次のような位置関係で配置されている。A相信号を出力する磁気検出素子48とB相信号を出力する磁気検出素子49とは、ロータリマグネット47の幅狭な着磁部分(N極およびS極)と幅広な着磁部分(N’極およびS’極)の両方に対向し得る位置の同一円周上に配置されている。なお、着磁部分に対向し得る位置とは、磁気検出素子にて着磁部分の磁極を検出可能な位置である。磁気検出素子48および磁気検出素子49は、回転軸を中心とした中心角が48.75°となる位置に配置されている。   The three magnetic detection elements 48 to 50 are arranged with respect to the rotary magnet 47 in the following positional relationship. The magnetic detection element 48 that outputs an A-phase signal and the magnetic detection element 49 that outputs a B-phase signal include a narrow magnetized portion (N pole and S pole) and a wide magnetized portion (N ′) of the rotary magnet 47. Are arranged on the same circumference at positions that can face both the pole and the S ′ pole). The position that can face the magnetized portion is a position where the magnetic detection element can detect the magnetic pole of the magnetized portion. The magnetic detection element 48 and the magnetic detection element 49 are arranged at a position where the central angle about the rotation axis is 48.75 °.

また、Z相信号を出力する磁気検出素子50は、ロータリマグネット47の幅狭な着磁部分よりも径方向外側または内側の位置であって、且つ、幅広な着磁部分にのみに対向し得る位置に配置されている。すなわち、磁気検出素子50は、幅狭な着磁部分とは対向しない位置に配置されている。本実施形態では、磁気検出素子50は、幅狭な着磁部分よりも径方向外側に設けられている。この磁気検出素子50は、磁気検出素子49からみて、磁気検出素子48と反対側に中心角が30°となる位置に配置されている。   Further, the magnetic detection element 50 that outputs the Z-phase signal is located at a position radially outside or inside the narrow magnetized portion of the rotary magnet 47 and can face only the wide magnetized portion. Placed in position. That is, the magnetic detection element 50 is disposed at a position that does not face the narrow magnetized portion. In the present embodiment, the magnetic detection element 50 is provided on the radially outer side than the narrow magnetized portion. The magnetic detection element 50 is disposed on the opposite side of the magnetic detection element 48 from the magnetic detection element 49 at a center angle of 30 °.

A相信号を出力する磁気検出素子48とB相信号を出力する磁気検出素子49との間隔は、A相信号とB相信号の位相差が電気角で90°(機械角では3.75°)となるように設定されている。ここで、“電気角”とは、A相信号およびB相信号の発生周期を1周期(360°)とした場合の角度で、“機械角”は機械的な角度(ロータ32の1回転を360°とした場合の角度)である。そのため、A相信号の立ち下がりからB相信号の立ち下がりまで、あるいは、A相信号の立ち上がりからB相信号の立ち上がりまでにロータ32が回転する角度が、A相信号とB相信号の位相差の機械角に相当する。また、Z相信号を出力する磁気検出素子50は、Z相信号と本実施形態ではB相信号との位相差が0となるように配置されている。なお、Z相信号とA相信号との位相差が0となるように配置してもよい。   The interval between the magnetic detection element 48 that outputs the A phase signal and the magnetic detection element 49 that outputs the B phase signal is such that the phase difference between the A phase signal and the B phase signal is 90 ° in electrical angle (3.75 ° in mechanical angle). ). Here, the “electrical angle” is an angle when the generation period of the A-phase signal and the B-phase signal is one period (360 °), and the “mechanical angle” is a mechanical angle (one rotation of the rotor 32). 360 °). Therefore, the angle at which the rotor 32 rotates from the fall of the A phase signal to the fall of the B phase signal, or from the rise of the A phase signal to the rise of the B phase signal is the phase difference between the A phase signal and the B phase signal. It corresponds to the mechanical angle. Further, the magnetic detection element 50 that outputs the Z-phase signal is arranged so that the phase difference between the Z-phase signal and the B-phase signal in this embodiment is zero. The phase difference between the Z-phase signal and the A-phase signal may be 0.

磁気検出素子48〜50は、N極およびN’極と対向したときにハイレベル“1”を出力し、S極およびS’極と対向したときにローレベル“0”を出力する。なお、Z相信号用の磁気検出素子50は、ロータ32の基準回転位置に相当する幅広なN’極に対向する毎にハイレベル“1”を出力し、それ以外の位置ではローレベル“0”を出力する。
ECU41は、A相信号とB相信号の立ち上がりおよび立ち下がりの両方のエッジをカウントし、そのエンコーダカウント値に応じてモータ12の通電相を切り換えることでロータ32を回転駆動する。このとき、A相信号とB相信号の発生順序によってロータ32の回転方向を判定し、正回転(Pレンジ→NotPレンジの回転方向)ではエンコーダカウント値をカウントアップし、逆回転(NotPレンジ→Pレンジの回転方向)ではエンコーダカウント値をカウントダウンする。
The magnetic detection elements 48 to 50 output a high level “1” when facing the N pole and the N ′ pole, and output a low level “0” when facing the S pole and the S ′ pole. The Z-phase signal magnetic detection element 50 outputs a high level “1” every time it faces a wide N ′ pole corresponding to the reference rotational position of the rotor 32, and outputs a low level “0” at other positions. "Is output.
The ECU 41 counts both rising and falling edges of the A-phase signal and the B-phase signal, and rotates the rotor 32 by switching the energized phase of the motor 12 according to the encoder count value. At this time, the rotation direction of the rotor 32 is determined based on the generation order of the A-phase signal and the B-phase signal, the encoder count value is counted up in the normal rotation (P range → NotP range rotation direction), and the reverse rotation (NotP range → In the P range rotation direction), the encoder count value is counted down.

これにより、ロータ32が正回転あるいは逆回転のいずれの方向に回転したとしても、エンコーダカウント値とロータ32の回転位置との対応関係が維持される。したがって、ロータ32が正回転および逆回転のいずれの回転方向で回転したとしても、エンコーダカウント値に基づいてロータ32の回転位置(回転角度)を検出でき、その回転位置に対応した相のコイル33、コイル34に通電することでロータ32を回転駆動することができる。   Thereby, even if the rotor 32 rotates in either the forward rotation direction or the reverse rotation direction, the correspondence relationship between the encoder count value and the rotation position of the rotor 32 is maintained. Therefore, even if the rotor 32 rotates in either the forward rotation direction or the reverse rotation direction, the rotation position (rotation angle) of the rotor 32 can be detected based on the encoder count value, and the phase coil 33 corresponding to the rotation position. The rotor 32 can be rotationally driven by energizing the coil 34.

具体的には、レンジ切換制御装置42は、逆回転方向(NotPレンジ→Pレンジの回転方向)と正回転方向(Pレンジ→NotPレンジの回転方向)のいずれの場合でも、ロータ32が7.5°回転する毎に一相通電と二相通電とを交互に切り換える。例えば、レンジ切換制御装置42は、ロータ32が45°回転する間にU相通電→UW相通電→W相通電→VW相通電→V相通電→UV相通電の順序で通電相の切り換えを一巡するようになっている。このとき、周知のように、ロータ32の突極32aは、通電された突極31aにまず引き寄せられ、通電相が切り替わることで次の突極31aに引き寄せられ、それが繰り返されてロータ32が回転することになる。   Specifically, in the range switching control device 42, the rotor 32 is set to 7 in any of the reverse rotation direction (NotP range → P range rotation direction) and the normal rotation direction (P range → NotP range rotation direction). One-phase energization and two-phase energization are alternately switched every 5 ° rotation. For example, the range switching control device 42 makes a round of switching of energized phases in the order of U phase energization → UW phase energization → W phase energization → VW phase energization → V phase energization → UV phase energization while the rotor 32 rotates 45 °. It is supposed to be. At this time, as is well known, the salient pole 32a of the rotor 32 is first attracted to the energized salient pole 31a, and when the energized phase is switched, it is attracted to the next salient pole 31a. Will rotate.

磁気検出素子48および磁気検出素子49に対向するロータリマグネット47の磁極は、通電相の切り換え毎にロータ32が7.5°ずつ回転することから、N極→S極(N’極→S’極等も含む)またはS極→N極(S’極→N’極等も含む)に変化する。そして、この磁極の切り替わりに応じて、A相信号およびB相信号のレベルが交互に反転する。その結果、ロータ32が7.5°回転する毎に、エンコーダカウント値が2ずつカウントアップまたはカウントダウンされる。また、通電相の切り換えが一巡してロータ32が45°回転する毎に、Z相用の磁気検出素子50がロータ32の基準回転位置に相当する幅広なN’極に対向して、Z相信号がハイレベル“1”となる。   The magnetic poles of the rotary magnet 47 facing the magnetic detection element 48 and the magnetic detection element 49 are N pole → S pole (N ′ pole → S ′) because the rotor 32 rotates by 7.5 ° every time the energized phase is switched. Change to S pole → N pole (including S ′ pole → N ′ pole, etc.). Then, according to the switching of the magnetic poles, the levels of the A phase signal and the B phase signal are alternately inverted. As a result, every time the rotor 32 rotates 7.5 °, the encoder count value is incremented or decremented by two. In addition, every time the energized phase is switched and the rotor 32 rotates 45 °, the Z-phase magnetic detection element 50 faces the wide N ′ pole corresponding to the reference rotation position of the rotor 32, and the Z-phase The signal becomes high level “1”.

このようなエンコーダ46が設けられているモータ12でレンジ切換制御を行う場合、目標位置となる指令シフトレンジがPレンジからNotPレンジまたはその反対方向に切り換えられる毎に、ロータ32が回転駆動される。具体的には、エンコーダカウント値に基づいてモータ12の通電相を順次切り換えることでロータ32を目標位置に向かって回転駆動するフィードバック制御(以下「F/B制御」と称する)が実行される。そして、エンコーダカウント値が目標位置に応じて設定された目標カウント値に到達した時点で、ロータ32の回転位置が目標位置に到達したと判断してF/B制御を終了し、ロータ32を目標位置で停止させるようにしている。このように、ECU41は、エンコーダカウント手段および制御手段を構成している。   When range switching control is performed by the motor 12 provided with such an encoder 46, the rotor 32 is rotationally driven each time the command shift range as the target position is switched from the P range to the NotP range or the opposite direction. . Specifically, feedback control (hereinafter referred to as “F / B control”) is executed to rotationally drive the rotor 32 toward the target position by sequentially switching the energized phase of the motor 12 based on the encoder count value. Then, when the encoder count value reaches the target count value set according to the target position, it is determined that the rotational position of the rotor 32 has reached the target position, the F / B control is terminated, and the rotor 32 is moved to the target. It stops at the position. Thus, ECU41 comprises the encoder count means and the control means.

さて、ECU41がカウントするエンコーダカウント値は、例えばRAM等に記憶される。このため、ECU41の電源がオフされると、エンコーダカウント値が消去される。その場合、ECU41の電源投入直後のエンコーダカウント値は、初期値の0となっており、実際のロータ32の回転位置に対応したものとなっていない。そのため、上記したようにエンコーダカウント値に基づいて通電相を切り換えるためには、電源投入後にエンコーダカウント値と実際のロータ32の回転位置とを対応させ、エンコーダカウント値と通電相とを対応させる必要がある。   The encoder count value counted by the ECU 41 is stored in, for example, a RAM. For this reason, when the power of the ECU 41 is turned off, the encoder count value is deleted. In this case, the encoder count value immediately after the ECU 41 is turned on is an initial value of 0 and does not correspond to the actual rotational position of the rotor 32. Therefore, in order to switch the energized phase based on the encoder count value as described above, it is necessary to make the encoder count value correspond to the actual rotational position of the rotor 32 after power-on, and to make the encoder count value correspond to the energized phase. There is.

そこで、本実施形態では、以下のようにして電源投入後の初期状態におけるロータ32の回転位置を特定している。
まず、本実施形態の構成における通電相とA相信号およびB相信号の出力との対応関係について、図7を参照しながら説明する。この通電相とA相信号およびB相信号の出力との対応関係は、対象となる通電相にオープンループ制御にて通電した際、上記したステータ31およびロータ32の構成や磁気検出素子48および磁気検出素子49の配置といった機械的な要因により決定されるものである。換言すると、本実施形態のようにステータ31に12個の突極31aを設け、ロータ32に8個の突極32aを設け、ロータリマグネット47のN極とS極の着磁ピッチを7.5°に設定し、磁気検出素子48と磁気検出素子49とのなす角を48.75°となるように配置し、コイル33およびコイル34を上記した図2に示す順で配置した場合、オープンループ制御にて通電する通電相とA相信号およびB相信号との対応関係は、一義的に決定される。以下、これら本実施形態の機械的な要因を、便宜的に機械的要因と称する。
Therefore, in the present embodiment, the rotational position of the rotor 32 in the initial state after the power is turned on is specified as follows.
First, the correspondence relationship between the energized phase and the output of the A phase signal and the B phase signal in the configuration of the present embodiment will be described with reference to FIG. The correspondence relationship between the energized phase and the output of the A-phase signal and the B-phase signal is such that when the current energized phase is energized by the open loop control, the configuration of the stator 31 and the rotor 32, the magnetic detection element 48, and the magnetism. This is determined by mechanical factors such as the arrangement of the detection elements 49. In other words, as in the present embodiment, twelve salient poles 31 a are provided on the stator 31, eight salient poles 32 a are provided on the rotor 32, and the magnetization pitch of the N and S poles of the rotary magnet 47 is 7.5. If the angle between the magnetic detection element 48 and the magnetic detection element 49 is set to 48.75 °, and the coil 33 and the coil 34 are arranged in the order shown in FIG. The correspondence between the energized phase energized by the control and the A-phase signal and B-phase signal is uniquely determined. Hereinafter, these mechanical factors of the present embodiment are referred to as mechanical factors for convenience.

この図7には、特定の通電相に通電した場合におけるA相信号およびB相信号の出力状態が示されている。より平易に言えば、ある相に通電をし、ロータ32の突極32aがステータ31の通電されている突極31aに1対1で引きつけられた状態、つまり、ロータ32が静止した状態におけるA相信号およびB相信号の出力状態が示されている。
例えば、通電相がVW相の二相通電の場合、図8(A)に示すようにロータ32の突極32aが、ステータ31の通電中の突極31aに1対1で引きつけられて静止したとする。より詳細には、図8(B)に示すように、ロータ32の8個の突極32aが、通電されているVW相の8個の突極31aに1対1で引きつけられたとする。なお、図8(B)には、二相通電時に突極32aが突極31aに1対1で引きつけられている部位を領域R1として示している。この場合、本実施形態では、A相信号およびB相信号は、上記した機械的要因により共に1が出力される。つまり、図7に示すように、通電相がVW相である場合、A相信号およびB相信号の出力は共に1となっている。
FIG. 7 shows the output states of the A phase signal and the B phase signal when a specific energized phase is energized. More simply speaking, a state in which a certain phase is energized and the salient poles 32a of the rotor 32 are attracted to the salient poles 31a energized by the stator 31 on a one-to-one basis, that is, in a state where the rotor 32 is stationary. The output states of the phase signal and the B phase signal are shown.
For example, when the energized phase is the two-phase energization of the VW phase, as shown in FIG. 8A, the salient pole 32a of the rotor 32 is attracted one-to-one to the salient pole 31a during energization of the stator 31 and is stationary. And More specifically, as shown in FIG. 8B, it is assumed that the eight salient poles 32a of the rotor 32 are attracted one-to-one to the eight salient poles 31a of the VW phase that are energized. FIG. 8B shows a region R1 where the salient pole 32a is attracted to the salient pole 31a on a one-to-one basis during two-phase energization. In this case, in this embodiment, 1 is output for both the A-phase signal and the B-phase signal due to the mechanical factors described above. That is, as shown in FIG. 7, when the energized phase is the VW phase, the outputs of the A phase signal and the B phase signal are both 1.

あるいは、通電相がU相のみの一相通電の場合、図9(A)に示すようにロータ32の突極32aが、ステータ31のU相の突極31aに引きつけられて静止したとする。より詳細には、図9(B)に示すように、ロータ32の4個の突極32aが、通電されているU相の4個の突極31aに1対1で引きつけられたとする。なお、図9(B)には、一相通電時に突極32aが突極31aに1対1で引きつけられている部位を、領域R2として示している。この場合、本実施形態では、A相信号およびB相信号は、上記した機械的要因により共に0が出力される。つまり、図7に示すように、通電相がU相である場合、A相信号およびB相信号の出力は共に0となっている。   Alternatively, when the energized phase is single-phase energized only for the U phase, it is assumed that the salient pole 32a of the rotor 32 is attracted to the U-phase salient pole 31a of the stator 31 and is stationary as shown in FIG. More specifically, as shown in FIG. 9B, it is assumed that the four salient poles 32a of the rotor 32 are attracted to the four U-phase salient poles 31a that are energized on a one-to-one basis. FIG. 9B shows a region R2 where the salient pole 32a is attracted to the salient pole 31a on a one-to-one basis during one-phase energization. In this case, in this embodiment, 0 is output for both the A phase signal and the B phase signal due to the mechanical factors described above. That is, as shown in FIG. 7, when the energized phase is the U phase, the outputs of the A phase signal and the B phase signal are both 0.

同様に、A相信号およびB相信号は、上記した機械的要因により、W相の一相通電時およびV相の一相通電時には共に0が出力され、UW相の二相通電時およびUV相の二相通電時には共に1が出力される。このため、特定の相に一相通電または二相通電を行い、通電相とA相信号およびB相信号の出力状態とが図7に示す対応関係を満たしていれば、ロータ32の回転位置を特定することができる。   Similarly, the A-phase signal and the B-phase signal are both output as 0 when the W-phase is energized and when the V-phase is energized due to the above-described mechanical factors. 1 is output during both two-phase energization. For this reason, if one phase energization or two phase energization is performed for a specific phase and the energized phase and the output state of the A phase signal and the B phase signal satisfy the correspondence shown in FIG. Can be identified.

ところで、例えばUW相に二相通電した場合、上記した図8のように突極32aが突極31aに1対1で引きつけられる状態以外の状態となることがある。具体的には、図10(A)に示すように、ロータ32の1個の突極32aが、ステータ31の通電されている2個の突極31aに引きつけられる状態が起こり得る。この場合、図10(B)に示すように、ロータ32の4個の突極32aが、通電されているVW相の突極31a間の4箇所に引きつけられることになる。なお、図10(B)には、突極32aが2個の突極31aの間に引きつけられている部位を、領域R3として示している。   By the way, for example, when two-phase energization is performed in the UW phase, the salient pole 32a may be in a state other than the one in which the salient pole 32a is attracted to the salient pole 31a as shown in FIG. Specifically, as shown in FIG. 10A, a state in which one salient pole 32a of the rotor 32 is attracted to two salient poles 31a to which the stator 31 is energized may occur. In this case, as shown in FIG. 10B, the four salient poles 32a of the rotor 32 are attracted to four locations between the energized VW-phase salient poles 31a. In FIG. 10B, a region where the salient pole 32a is attracted between the two salient poles 31a is shown as a region R3.

この場合、本実施形態では、A相信号およびB相信号は、上記した機械的な要因により共に0が出力される。ただし、この図10(B)に示す状態は、上記した図9(B)に示すU相に一相通電して突極32aが突極31aに1対1で引きつけられた状態に正に一致する。すなわち、VW相に二相通電した際、A相信号およびB相信号の出力が共に0であったならば、ロータ32は、U相に一層通電し1対1で突極32aが突極31aに1対1で引きつけられた状態の回転位置であると特定することができる。   In this case, in this embodiment, 0 is output for both the A-phase signal and the B-phase signal due to the mechanical factors described above. However, the state shown in FIG. 10 (B) is exactly the same as the state in which the U-phase shown in FIG. 9 (B) is one-phase energized and the salient pole 32a is attracted to the salient pole 31a on a one-to-one basis. To do. That is, when the two-phase energization is performed in the VW phase, if both the output of the A-phase signal and the B-phase signal are 0, the rotor 32 is further energized in the U-phase and the salient pole 32a has a salient pole 31a. It can be specified that the rotation position is in a state of being attracted one-to-one.

なお、図示は省略するが、上記した機械的要因により、UV相に二相通電し、突極32aが2個の突極31aに引きつけられた場合には、ロータ32は、W相に一層通電し、突極32aが突極31aに1対1で引きつけられた状態と同じ回転位置となる。また、UW相に二相通電し、突極32aが2個の突極31aに引きつけられた場合には、ロータ32は、V相に一層通電し、突極32aが突極31aに1対1で引きつけられた状態と同じ回転位置となる。   Although illustration is omitted, when the two-phase current is applied to the UV phase due to the mechanical factors described above and the salient poles 32a are attracted to the two salient poles 31a, the rotor 32 further energizes the W-phase. The salient pole 32a is in the same rotational position as the one in which the salient pole 32a is attracted to the salient pole 31a. When the UW phase is energized in two phases and the salient poles 32a are attracted to the two salient poles 31a, the rotor 32 further energizes the V phase, and the salient poles 32a are in one-to-one correspondence with the salient poles 31a. The rotation position is the same as the state attracted by.

つまり、VW相に二相通電した場合には、A相信号およびB相信号が共に1となる状態と、U相に一相通電して1対1で引きつけられている場合と同じくA相信号およびB相信号が共に0となる状態とが発生し得る。また、UV相に二相通電した場合には、A相信号およびB相信号が共に1となる状態と、W相に一相通電して1対1で引きつけられている場合と同じくA相信号およびB相信号が共に0となる状態とが発生し得る。また、UW相に二相通電した場合には、A相信号およびB相信号が共に1となる状態と、V相に一相通電して1対1で引きつけられている場合と同じくA相信号およびB相信号が共に0となる状態とが発生し得る。その一方で、二相通電した場合には、上記した機械的要因により、上記以外のA相信号とB相信号との組み合わせが発生することは無い。   That is, when two-phase energization is performed in the VW phase, the A-phase signal and the B-phase signal are both 1, and the A-phase signal is the same as when the U-phase is one-phase energized and attracted 1: 1. And a state in which both of the B phase signals are 0 may occur. When the UV phase is energized in two phases, the A phase signal and the B phase signal are both 1, and the A phase signal is the same as when the W phase is attracted one-to-one by energizing the W phase. And a state in which both of the B phase signals are 0 may occur. When the UW phase is energized in two phases, the A phase signal and the B phase signal are both 1, and the A phase signal is the same as when the V phase is energized one-to-one and attracted 1: 1. And a state in which both of the B phase signals are 0 may occur. On the other hand, when two-phase energization is performed, a combination of the A phase signal and the B phase signal other than those described above does not occur due to the mechanical factors described above.

そのため、二相通電時におけるA相信号およびB相信号の出力状態が図7に示した対応関係と一致すれば、そのままロータ32の回転位置を特定することができる。一方、仮にA相信号およびB相信号の出力状態が図7に示した対応関係と一致していなくても、A相信号およびB相信号が共に0を出力すれば、ロータ32の回転位置を一義的に特定することができるのである。   Therefore, if the output states of the A-phase signal and the B-phase signal at the time of two-phase energization coincide with the correspondence shown in FIG. 7, the rotational position of the rotor 32 can be specified as it is. On the other hand, even if the output states of the A-phase signal and the B-phase signal do not match the correspondence shown in FIG. 7, if both the A-phase signal and the B-phase signal output 0, the rotational position of the rotor 32 is changed. It can be uniquely identified.

次に、ロータ32の電源投入時の回転位置を特定する具体的な流れについて説明する。
図11は、通電相と対応する補正値との対応関係を示している。例えば、ロータ32を正回転の方向に回転駆動するために、通電シーケンスとしてVW相(Seq1)→W相(Seq2)→UW相(Seq3)→V相(Seq4)→UV相(Seq5)→V相(Seq6)の順で通電されるとする。この場合、上記したように、エンコーダカウント値は2ずつカウントアップ(またはカウントダウン)されることから、最初の通電シーケンスでは、最終的に2カウントされることになる。
Next, a specific flow for specifying the rotational position of the rotor 32 when the power is turned on will be described.
FIG. 11 shows the correspondence between the energized phase and the corresponding correction value. For example, in order to rotationally drive the rotor 32 in the forward rotation direction, the energization sequence is VW phase (Seq1) → W phase (Seq2) → UW phase (Seq3) → V phase (Seq4) → UV phase (Seq5) → V It is assumed that energization is performed in the order of phases (Seq6). In this case, as described above, the encoder count value is counted up (or counted down) by two, so that in the first energization sequence, it is finally counted as two.

このため、電源投入後またはF/B制御によるモータ制御開始前の初期状態においてVW相に二相通電し、その状態でロータ32が静止し、図7に示したようにVW相通電時にA相信号およびB相信号が共に1となっていれば、補正値としてエンコーダカウント値の「2」が選択される。同様に、通電相とA相信号およびB相信号の出力状態とが一致すれば、W相の一相通電であれば補正値として「4」が選択され、UW相の二相通電であれば補正値として「6」が選択され、U相の一相通電であれば補正値として「8」が選択され、UV相の二相通電であれば補正値として「10」が選択され、V相の一相通電であれば補正値として「12」が選択されることになる。   Therefore, two-phase energization is performed in the VW phase in the initial state after power-on or before the start of motor control by F / B control, and the rotor 32 is stationary in this state. If both the signal and the B-phase signal are 1, the encoder count value “2” is selected as the correction value. Similarly, if the energized phase matches the output state of the A phase signal and the B phase signal, “4” is selected as the correction value if the W phase is one phase energization, and if the UW phase is the two phase energization, “6” is selected as the correction value, “8” is selected as the correction value if the U-phase is one-phase energization, “10” is selected as the correction value if the two-phase energization is the UV phase, and the V-phase If the current is one-phase energization, “12” is selected as the correction value.

以下、ロータ32の回転位置を特定して基準位置に対する学習値(後述するGcnt)を求めるための基準位置学習処理について、VW相に二相通電する場合を例にしながら説明する。なお、以下の処理はレンジ切換制御装置42のECU41により行われるものであるが、説明の簡略化のため、モータ制御装置60を主体として説明する。
モータ制御装置60は、電源投入後の初期駆動時に、図12に示す基準位置学習処理を繰り返し実行している。この基準位置学習処理において、モータ制御装置60は、まず、オープンループ制御により所定の通電相へ二相通電を行う(S1)。本実施形態では、VW相へ二相通電している。そして、モータ制御装置60は、通電を開始してから経過した時間である通電時間を、通電時間カウンタ(CT)によりカウントする(S2)。本実施形態では、このステップS2において、CT=CT+1と1msec単位でインクリメントすることで通電時間を計時している。つまり、この基準位置学習処理では、特定の通電相に通電が継続される。
Hereinafter, reference position learning processing for specifying the rotational position of the rotor 32 and obtaining a learning value (Gcnt described later) with respect to the reference position will be described with reference to an example in which two-phase energization is performed in the VW phase. Although the following processing is performed by the ECU 41 of the range switching control device 42, the motor control device 60 will be mainly described for simplicity of explanation.
The motor control device 60 repeatedly executes the reference position learning process shown in FIG. 12 at the time of initial driving after power-on. In this reference position learning process, the motor control device 60 first performs two-phase energization to a predetermined energized phase by open loop control (S1). In this embodiment, two-phase energization is performed to the VW phase. Then, the motor control device 60 counts the energization time, which is the time elapsed since the start of energization, using the energization time counter (CT) (S2). In this embodiment, in step S2, the energization time is counted by incrementing CT = CT + 1 and 1 msec. That is, in this reference position learning process, energization is continued in a specific energized phase.

次に、モータ制御装置60は、通電を開始してから所定期間が経過したか否か、つまり、CT>所定期間となったか否かを判定する(S3)。ここで、所定期間は、オープンループ制御を行う期間として予め設定されている。例えば、所定期間は、二相通電を開始した後、ロータ32が静止すると予想される時間等を考慮して設定されている。より具体的には、例えばVW相を最初の通電相とするのであれば、ロータ32が最も遠い回転位置にあると仮定し、そのロータ32が上記した図8(B)あるいは図10(B)のような状態で静止するまでに予想される期間を設定することが考えられる。
モータ制御装置60は、CT>所定期間でないと判定すると(S3:NO)、そのままリターンし、次の基準位置学習処理のサイクルを実行する。なお、基準位置学習処理は繰り返し実行されるため、既に通電が開始されていれば、ステップS1は実質的に省略される。
Next, the motor control device 60 determines whether or not a predetermined period has elapsed since the start of energization, that is, whether or not CT> predetermined period is satisfied (S3). Here, the predetermined period is set in advance as a period for performing the open loop control. For example, the predetermined period is set in consideration of the time when the rotor 32 is expected to be stationary after starting the two-phase energization. More specifically, for example, if the VW phase is the first energized phase, it is assumed that the rotor 32 is at the farthest rotational position, and the rotor 32 is in the above-described FIG. 8B or FIG. It is conceivable to set an expected period until the camera stops in such a state.
If the motor control device 60 determines that CT is not greater than the predetermined period (S3: NO), the motor control device 60 returns as it is and executes the next reference position learning process cycle. Since the reference position learning process is repeatedly executed, step S1 is substantially omitted if energization has already started.

一方、モータ制御装置60は、CT>所定期間であると判定すると(S3:YES)、そのときのA相信号=1且つB相信号=1であるかを判定する(S4)。そして、モータ制御装置60は、A相信号=1且つB相信号=1であると判定すると(S4:YES)、つまり、通電相とA相信号およびB相信号の出力状態とが図7に示す対応関係を満たしていると判定すると、ロータ32の初期位置を特定し、GcntにVW相の補正値を設定する(S5)。   On the other hand, when determining that CT> predetermined period (S3: YES), the motor control device 60 determines whether the A phase signal = 1 and the B phase signal = 1 at that time (S4). If the motor control device 60 determines that the A phase signal = 1 and the B phase signal = 1 (S4: YES), that is, the energized phase, the output state of the A phase signal, and the B phase signal are shown in FIG. If it is determined that the correspondence relationship shown is satisfied, the initial position of the rotor 32 is specified, and a correction value for the VW phase is set in Gcnt (S5).

ここで、ロータ32の初期位置は、初期駆動が終了した時点におけるロータ32の回転位置に相当する。この場合、A相信号およびB相信号が共に1であることから、通電相とA相信号およびB相信号との対応関係は、図7に示したVW相の対応関係と一致する。そのため、ロータの回転位置は、図8(B)に示したように突極32aが1個の突極31aに引きつけられた状態であると特定できる。   Here, the initial position of the rotor 32 corresponds to the rotational position of the rotor 32 when the initial driving is completed. In this case, since the A-phase signal and the B-phase signal are both 1, the correspondence relationship between the energized phase, the A-phase signal, and the B-phase signal matches the correspondence relationship of the VW phase shown in FIG. Therefore, the rotational position of the rotor can be specified as a state in which the salient pole 32a is attracted to one salient pole 31a as shown in FIG.

また、Gcntは、ロータ32の基準位置に対する学習値、つまり、基準位置からのずれに相当するエンコーダカウント値である。このGcntに基づいて、モータ制御装置60は、初期駆動終了後のF/B制御時にエンコーダカウント値をGcntで補正することで、正しい通電相を選択できるようにしている。例えば、F/B制御時の目標位置のエンコーダカウント値が100であったとすると、Gcntを特定した時点でのロータ32の回転位置は基準位置からGcntだけずれていることになる。そのため、正回転であればロータ32をエンコーダカウント値=100−Gcntとなるまで回転させることで、目標位置まで回転駆動することができる。なお、基準位置から逆方向にGcntだけずれていることになるため、逆回転であれば、ロータ32をエンコーダカウント値=100+Gcntとなるまで回転させることで、目標位置まで回転駆動することができる。   Gcnt is a learning value with respect to the reference position of the rotor 32, that is, an encoder count value corresponding to a deviation from the reference position. Based on this Gcnt, the motor control device 60 makes it possible to select the correct energized phase by correcting the encoder count value with Gcnt during the F / B control after the end of the initial drive. For example, if the encoder count value of the target position during F / B control is 100, the rotational position of the rotor 32 at the time when Gcnt is specified is shifted by Gcnt from the reference position. Therefore, if the rotation is positive, the rotor 32 can be rotated to the target position by rotating until the encoder count value = 100−Gcnt. In addition, since it is shifted by Gcnt in the reverse direction from the reference position, in the case of reverse rotation, the rotor 32 can be rotated to the target position by rotating until the encoder count value = 100 + Gcnt.

その後、モータ制御装置60は、リターンする。この場合、初期位置が特定され、Gcntも設定されたことから、初期駆動は終了となる。
これに対して、モータ制御装置60は、A相信号=1且つB相信号=1でないと判定すると(S4:NO)、つまり、A相信号またはB相信号のうち少なくとも一方が0であると判定すると、初期位置を特定し、GcntにU相の補正値を設定する(S6)。本実施形態の機械的要因によれば、上記したようにVW相に二相通電した場合に発生し得るロータ32の回転位置は、図8(B)に示す状態か、図10(B)に示す状態のいずれかである。このため、VW相の二相通電においてA相信号=1且つB相信号=1でない場合、ロータ32は、図10(B)に示した回転位置にあると判断できる。
Thereafter, the motor control device 60 returns. In this case, since the initial position is specified and Gcnt is also set, the initial drive ends.
On the other hand, when the motor control device 60 determines that the A phase signal = 1 and the B phase signal = 1 are not satisfied (S4: NO), that is, at least one of the A phase signal and the B phase signal is 0. If determined, the initial position is specified, and a U-phase correction value is set in Gcnt (S6). According to the mechanical factor of the present embodiment, as described above, the rotational position of the rotor 32 that can be generated when the two-phase energization is performed in the VW phase is in the state shown in FIG. 8B or in FIG. 10B. One of the states shown. Therefore, when the A-phase signal = 1 and the B-phase signal = 1 are not satisfied in the two-phase energization of the VW phase, it can be determined that the rotor 32 is at the rotational position shown in FIG.

そのため、ステップS6では、ロータ32の初期位置が図8(B)ではない状態、すなわち、図10(B)に示すようにU相に一層通電して突極32aが突極31aに1対1で対応している状態(図9(B)参照)であると特定される。これにより、Gcntには、VW相の二相通電においてVW相に対応する通電相であるU相の補正値(図11参照)が設定される。
このように、モータ制御装置60は、通電相とA相信号およびB相信号の出力状態との対応関係に基づいて、ロータ32の初期位置を特定し、通電した相に対応して予め設定されている補正値を特定および設定することで、ロータ32の基準位置の学習、より詳細には、ロータ32の初期位置が基準位置からどれだけずれているかの学習を行っている。
Therefore, in step S6, the initial position of the rotor 32 is not in FIG. 8B, that is, as shown in FIG. 10B, the U phase is further energized and the salient poles 32a have a one-to-one correspondence with the salient poles 31a. Are identified (see FIG. 9B). As a result, a correction value (see FIG. 11) of the U phase that is the energized phase corresponding to the VW phase in the two-phase energization of the VW phase is set in Gcnt.
Thus, the motor control device 60 identifies the initial position of the rotor 32 based on the correspondence relationship between the energized phase and the output states of the A-phase signal and the B-phase signal, and is preset according to the energized phase. By specifying and setting the correction value, the learning of the reference position of the rotor 32, more specifically, how much the initial position of the rotor 32 deviates from the reference position is performed.

以上説明した本実施形態によれば、次のような効果を得ることができる。
モータ制御装置60は、電源投入後またはモータ制御開始前に予め定められている所定期間に渡ってオープンループ制御にて二相通電する初期駆動を実行し、当該初期駆動中におけるA相信号およびB相信号の組み合わせが二相通電している通電相に対応して予め設定されているA相信号およびB相信号の組み合わせと一致するか否かを判定する。モータ制御装置60は、組み合わせが一致したと判定すると、当該一致した組み合わせに対応して予め設定されている補正値を特定する。そして、モータ制御装置60は、特定した補正値を用いてロータの基準位置を学習する。
According to this embodiment described above, the following effects can be obtained.
The motor control device 60 executes an initial drive in which two-phase energization is performed by an open loop control over a predetermined period after the power is turned on or before the start of the motor control, and the A phase signal and B during the initial drive are executed. It is determined whether or not the combination of the phase signals matches the combination of the A phase signal and the B phase signal set in advance corresponding to the energized phase in which the two phases are energized. When the motor control device 60 determines that the combination matches, the motor control device 60 specifies a correction value set in advance corresponding to the matched combination. Then, the motor control device 60 learns the reference position of the rotor using the specified correction value.

つまり、モータ制御装置60は、オープンループ制御による二相通電を電源投入時に一度行うことで、ロータ32の回転位置(初期位置)が基準位置からどれだけずれているかを把握することができる。また、モータ制御装置60は、通電相を切り換えることなく、ロータ32の初期位置を特定することができる。したがって、従来のように通電相を切り換えてロータ32の初期位置を特定する場合に比べて、基準位置を学習するまでの時間を大幅に、且つ、確実に短縮することができる。また、学習時間が短くなることにより、モータ12のF/B制御を素早く立ち上げることができる。   That is, the motor control device 60 can grasp how much the rotational position (initial position) of the rotor 32 deviates from the reference position by performing two-phase energization by open loop control once when the power is turned on. Further, the motor control device 60 can specify the initial position of the rotor 32 without switching the energized phase. Therefore, compared with the conventional case where the energized phase is switched to specify the initial position of the rotor 32, the time until the reference position is learned can be significantly and reliably shortened. Further, the F / B control of the motor 12 can be quickly started up by shortening the learning time.

モータ制御装置60は、初期駆動中におけるA相信号およびB相信号の組み合わせがオープンループ制御にて二相通電(例えばVW相)した際の組み合わせと一致しないと判定すると、当該組み合わせが他の相(本実施形態では、通電相がVW相であればU相)に通電した際の組み合わせに一致すると、当該一致した他の相の組み合わせに対応して予め設定されている補正値を特定し、当該特定した補正値を用いてロータ32の基準位置を学習する。   If the motor control device 60 determines that the combination of the A-phase signal and the B-phase signal during the initial drive does not match the combination when the two-phase energization (for example, VW phase) is performed in the open loop control, the combination is the other phase. (In the present embodiment, when the energized phase is the VW phase, the U phase is matched), the correction value set in advance corresponding to the matched other phase combination is identified, The reference position of the rotor 32 is learned using the specified correction value.

本実施形態の機械的要因によれば、二相通電したときのロータ32の回転位置は、突極32aが突極31aに1対1で引きつけられた状態(例えば図8(B)参照)、あるいは、突極32aが2個の突極31a間に引きつけられた状態(例えば図10(B)参照)のいずれかとなる。つまり、例えばVW相に二相通電した際にA相信号およびB相信号の組み合わせが図7に示した対応関係に一致しない場合、ロータ32は、図10(B)つまりは図9(B)に示すように、U相に一層通電して突極32aが突極31aに1対1で引きくけられた状態となる。そのため、二相通電した際にA相信号およびB相信号の組み合わせが一致しない場合であっても、通電相を切り換えることなく、ロータの初期位置を特定することができる。   According to the mechanical factor of the present embodiment, the rotational position of the rotor 32 when two-phase energization is performed is a state in which the salient poles 32a are attracted to the salient poles 31a on a one-to-one basis (see, for example, FIG. 8B). Alternatively, the state is one in which the salient poles 32a are attracted between the two salient poles 31a (see, for example, FIG. 10B). That is, for example, when the combination of the A-phase signal and the B-phase signal does not coincide with the correspondence shown in FIG. 7 when two-phase energization is performed in the VW phase, the rotor 32 is configured as shown in FIG. As shown in FIG. 5, the U phase is further energized, and the salient poles 32a are drawn to the salient poles 31a on a one-to-one basis. Therefore, even when the combination of the A-phase signal and the B-phase signal does not match when two-phase energization is performed, the initial position of the rotor can be specified without switching the energized phases.

モータ12としてスイッチドリラクタンスモータを採用しているので、永久磁石が不要で構造が簡単であり、安価且つ温度環境等に対する耐久性・信頼性を高くすることができる。
モータ制御装置60は、車両の自動変速機27のレンジを切り換えるレンジ切換機構11を駆動するモータの制御に適用されている。一般的に、レンジ切換機構11は、起動後に基準位置の学習を行い、いわゆる壁当てを経て現在のシフト位置を確定させている。その場合、本実施形態のモータ制御装置60のように基準位置を学習するまでの時間を短縮することができれば、起動後にシフト位置の情報を用いて処理を行う車両用システムに対していち早くシフト情報を提供することができ、利便性を向上させることができる。
Since a switched reluctance motor is employed as the motor 12, a permanent magnet is unnecessary, the structure is simple, and durability and reliability against temperature environment and the like can be increased.
The motor control device 60 is applied to control the motor that drives the range switching mechanism 11 that switches the range of the automatic transmission 27 of the vehicle. In general, the range switching mechanism 11 learns the reference position after activation and determines the current shift position through a so-called wall pad. In that case, if the time until the reference position is learned can be shortened as in the motor control device 60 of the present embodiment, the shift information can be quickly obtained with respect to the vehicle system that performs processing using the information on the shift position after activation. Can be provided, and convenience can be improved.

(第2実施形態)
以下、第2実施形態について、図13を参照しながら説明する。第2実施形態は、基準位置学習処理の流れが第1実施形態と異なっている。なお、モータ制御装置の構成は第1実施形態と共通するので、同一の符号を付して説明する。また、通電相とA相信号およびB相信号との対応関係、および通電相に対応する補正値も第1実施形態と共通するため、図7および図11等も参照しながら説明する。
(Second Embodiment)
Hereinafter, the second embodiment will be described with reference to FIG. The second embodiment is different from the first embodiment in the flow of the reference position learning process. Since the configuration of the motor control device is the same as that of the first embodiment, the same reference numerals are used for description. Further, since the correspondence relationship between the energized phase, the A phase signal and the B phase signal, and the correction value corresponding to the energized phase are also common to the first embodiment, description will be given with reference to FIGS.

第2実施形態のモータ制御装置60は、電源投入後の初期駆動中に、図13に示す基準位置学習処理を繰り返し実行しており、初期通電相をVW相に設定してオープンループ制御にて二相通電を行う(S10)。ここで、初期通電相とは、初期駆動中に通電される最初の通電相に相当する。続いて、モータ制御装置60は、通電時間を通電時間カウンタ(CT)によりカウントする(S11)。なお、本実施形態でも、基準位置学習処理は1msecごとに繰り返されている。   The motor control device 60 of the second embodiment repeatedly executes the reference position learning process shown in FIG. 13 during the initial drive after the power is turned on, and sets the initial energization phase to the VW phase and performs the open loop control. Two-phase energization is performed (S10). Here, the initial energization phase corresponds to the first energization phase energized during the initial drive. Subsequently, the motor control device 60 counts the energization time by the energization time counter (CT) (S11). In this embodiment, the reference position learning process is repeated every 1 msec.

次に、モータ制御装置60は、通電を開始してから所定期間が経過したか否か、つまり、CT>所定期間となったか否かを判定する(S12)。このとき、モータ制御装置60は、CT>所定期間となったと判定し(S12:YES)、A相信号=1且つB相信号=1であると判定すると(S13:YES)、第1実施形態と同様にロータ32の初期位置を特定し、Gcntに通電中の相の補正値、つまり、今回はVW相の補正値(図11参照)を設定する。   Next, the motor control device 60 determines whether or not a predetermined period has elapsed since the start of energization, that is, whether or not CT> predetermined period is satisfied (S12). At this time, the motor control device 60 determines that CT> predetermined period has been reached (S12: YES), and determines that the A phase signal = 1 and the B phase signal = 1 (S13: YES), the first embodiment. The initial position of the rotor 32 is specified in the same manner as described above, and the correction value for the energized phase, that is, the correction value for the VW phase (see FIG. 11) this time is set in Gcnt.

さて、本実施形態の場合、モータ制御装置60は、ステップS12においてCT>所定期間でないと判定すると(S12:NO)、エンコーダ出力が前回値と一致するか否かをさらに判定する(S18)。ここで、エンコーダ出力値とは、A相信号およびB相信号の出力状態であり、前回値とは、前回の基準位置学習処理が実行された際のエンコーダ出力値である。なお、前回値は、記憶手段としてのRAM等に記憶されており、電源投入後の初回に実行された基準位置学習処理では前回値が記憶されていない。   In the case of the present embodiment, when the motor control device 60 determines in step S12 that CT is not greater than the predetermined period (S12: NO), it further determines whether the encoder output matches the previous value (S18). Here, the encoder output value is the output state of the A-phase signal and the B-phase signal, and the previous value is the encoder output value when the previous reference position learning process is executed. Note that the previous value is stored in a RAM or the like as a storage unit, and the previous value is not stored in the reference position learning process executed for the first time after the power is turned on.

さて、モータ制御装置60は、基準位置学習処理を繰り返し実行した結果、通電時間カウンタがインクリメントされ(S11)、CT>所定期間ではない状態において(S12:NO)、エンコーダ出力が前回値と一致したと判定すると(S18:YES)、一致回数≧所定回数となったか否かをさらに判定する(S19)。ここで、所定回数は、ロータが静止したと判断できる値が、基準位置学習処理が1msecごとに繰り返されることを考慮して予め設定されている。なお、一致回数≧所定回数を判断するのは、初期駆動時に通電されてロータ32が回転した際、静止する前の状態で誤って誤検知されることを防止するためである。モータ制御装置60は、一致回数が≧所定回数となっていないと判定すると(S19:NO)、そのままリターンする。   As a result of the repeated execution of the reference position learning process, the motor control device 60 increments the energization time counter (S11), and when CT> not a predetermined period (S12: NO), the encoder output matches the previous value. If it is determined (S18: YES), it is further determined whether or not the number of matches is equal to or greater than the predetermined number (S19). Here, the predetermined number of times is set in advance in consideration of the fact that the reference position learning process is repeated every 1 msec. Note that the number of coincidence times ≧ predetermined number is determined in order to prevent erroneous detection in the state before stopping when the rotor 32 is rotated by being energized during initial driving. If the motor control device 60 determines that the number of coincidence is not ≧ predetermined number (S19: NO), it returns directly.

これに対して、モータ制御装置60は、一致回数が≧所定回数となっていると判定すると(S19:YES)、つまり、所定期間は経過していないもののロータ32が静止していると判断できる状態になると、ステップS13に移行する。
そして、モータ制御装置60は、A相信号=1且つB相信号=1であると判定した場合には(S13:YES)、上記したように初期位置の特定およびGcntの設定を行う(S14)。
On the other hand, if the motor control device 60 determines that the number of coincidences is ≧ predetermined number (S19: YES), that is, it can be determined that the rotor 32 is stationary although the predetermined period has not elapsed. If it becomes a state, it will transfer to step S13.
If it is determined that the A phase signal = 1 and the B phase signal = 1 (S13: YES), the motor control device 60 specifies the initial position and sets Gcnt as described above (S14). .

一方、モータ制御装置60は、A相信号=1且つB相信号=1でないと判定した場合には(S13:NO)、A相信号=0且つB相信号=0であるかをさらに判定する(S15)。なお、本実施形態では、上記の通り機械的要因によりA相信号=1且つB相信号=1でなければ、A相信号=0且つB相信号=0となるはずであるが、本実施形態では、モータ12や駆動回路等の故障を考慮して、A相信号=0且つB相信号=0であるか否かを判定している。   On the other hand, when it is determined that the A phase signal = 1 and the B phase signal = 1 are not satisfied (S13: NO), the motor control device 60 further determines whether the A phase signal = 0 and the B phase signal = 0. (S15). In the present embodiment, if the A phase signal = 1 and the B phase signal = 1 are not set due to mechanical factors as described above, the A phase signal = 0 and the B phase signal = 0 should be obtained. Then, it is determined whether or not the A-phase signal = 0 and the B-phase signal = 0 in consideration of a failure of the motor 12 or the drive circuit.

モータ制御装置60は、A相信号=0且つB相信号=0であると判定すると(S15:YES)、A相信号およびB相信号の組み合わせが図7に示す対応関係と一致することから、第1実施形態と同様に、初期位置を特定し、通電相(例えばVW相)に対応する相(通電相がVW相であればU相)の補正値をGcntに設定する(S16)。
このように、本実施形態のモータ制御装置60は、所定期間が経過する前であっても、ロータ32が静止したと判定できる状態となれば、所定期間の経過を待機することなく、初期位置の特定、およびGcntへの補正値の設定を行っている。
When the motor control device 60 determines that the A phase signal = 0 and the B phase signal = 0 (S15: YES), the combination of the A phase signal and the B phase signal matches the correspondence shown in FIG. Similar to the first embodiment, the initial position is specified, and the correction value of the phase corresponding to the energized phase (for example, the VW phase) (the U phase if the energized phase is the VW phase) is set to Gcnt (S16).
As described above, the motor control device 60 according to the present embodiment does not wait for the elapse of the predetermined period and waits for the elapse of the predetermined period if the rotor 32 can be determined to be stationary even before the predetermined period elapses. And a correction value is set to Gcnt.

また、モータ制御装置60は、ステップS15においてA相信号=0且つB相信号=0でもないと判定すると(S15:NO)、つまり、初期位置が特定されずに基準位置を学習できなかったとすると、例外処理を実行する(S17)。なお、ステップS15:NOとなる状態は、モータ制御装置60に何らかの故障が生じた場合、あるいは、ステップS18〜S19の判定が誤判定であった場合のいずれかであると考えられる。そのため、モータ制御装置60は、例外処理において、その対処を行っている。   If the motor control device 60 determines in step S15 that the A-phase signal = 0 and the B-phase signal = 0 are not satisfied (S15: NO), that is, if the initial position is not specified and the reference position cannot be learned. Exception processing is executed (S17). Note that the state of step S15: NO is considered to be either when some failure occurs in the motor control device 60 or when the determinations in steps S18 to S19 are erroneous determinations. For this reason, the motor control device 60 takes measures in exception processing.

例えば、例外処理としては、通電時間カウンタを初期化する処理が考えられる。この場合、基準位置学習処理は、通電を開始するところから再度実行されることになる。これにより、例えば誤判定であったとすると、再実行された基準位置学習処理により正しい判定を行うことができる可能性がある。
あるいは、例外処理としては、通電時間カウンタを初期化するとともに、通電相を切り換える処理が考えられる。この場合、基準位置学習処理が通電を開始するところから、且つ、最初の通電相とは異なる状態で再度実行されることになる。これにより、例えばVW相への二相通電では初期位置を特定できず、UW相への二相通電であれば初期位置が特定できたとすると、V相について何らかの異常が発生している可能性を把握できる。
For example, as the exception process, a process for initializing the energization time counter can be considered. In this case, the reference position learning process is executed again from where energization is started. Accordingly, for example, if it is an erroneous determination, there is a possibility that a correct determination can be made by the re-executed reference position learning process.
Alternatively, as the exceptional process, a process of initializing the energization time counter and switching the energized phase can be considered. In this case, the reference position learning process is executed again from the start of energization and in a state different from the initial energization phase. Thus, for example, if the initial position cannot be specified by two-phase energization to the VW phase, and if the initial position can be specified if two-phase energization to the UW phase, there is a possibility that some abnormality has occurred in the V phase. I can grasp.

もちろん、例外処理としては、初期位置を特定できなかった旨を報知する異常報知処理であってもよい。また、異常報知処理と上記した再実行とを組み合わせてもよい。
このように、本実施形態のモータ制御装置60は、機械的要因によりロータ32が取り得る状態が決まっていたとしても、それが正しいかをさらに判定し、正しくない可能性がある場合には、その対処を例外処理にて行っている。
Of course, the exception process may be an abnormality notification process for notifying that the initial position cannot be specified. Further, the abnormality notification process and the re-execution described above may be combined.
Thus, even if the possible state of the rotor 32 is determined by mechanical factors, the motor control device 60 of the present embodiment further determines whether it is correct, and if there is a possibility that it is not correct, This is handled by exception handling.

以上、説明した本実施形態のモータ制御装置60によれば、第1実施形態による効果に加えて、次のような効果を得ることができる。
モータ制御装置60は、初期駆動中におけるA相信号およびB相信号の組み合わせがオープンループ制御にて二相通電した際の組み合わせと一致しないと判定したとき、当該組み合わせが他の相に通電した際の組み合わせに一致するか否かをさらに判定し、一致したと判定すると、当該一致した他の相の組み合わせに対応して予め設定されている補正値を特定し、当該特定した補正値を用いてロータの基準位置を学習する。これにより、ロータ32の初期位置が通電相(例えばVW相)に対応する相(本実施形態では通電相がVW相であればU相)に引きつけられている状態であることを確認することができ、信頼性を向上させることができる。
As described above, according to the motor control device 60 of the present embodiment described above, the following effects can be obtained in addition to the effects of the first embodiment.
When the motor control device 60 determines that the combination of the A-phase signal and the B-phase signal during the initial drive does not match the combination when the two-phase energization is performed in the open loop control, when the combination energizes the other phase If it is determined whether or not the combination matches, and if it is determined to match, a correction value set in advance corresponding to the combination of the other matched phases is specified, and the specified correction value is used. Learn the reference position of the rotor. Accordingly, it can be confirmed that the initial position of the rotor 32 is attracted to the phase corresponding to the energized phase (for example, the VW phase) (in this embodiment, the U phase if the energized phase is the VW phase). And reliability can be improved.

また、短い学習時間で信頼性の高い基準位置の学習を行うことができるため、安全性が重視される車両への適用において好適である。
モータ制御装置60は、初期駆動中にA相信号およびB相信号の組み合わせが一致するか否かの判定を繰り返し実行しており、所定期間が経過する前にロータが静止したと判断できる状態となれば、所定期間の経過を待機することなく一致した組み合わせに対応して予め設定されている補正値を用いてロータの基準位置を学習する。これにより、より迅速にロータ32の初期位置の特定、ひいては基準位置の学習が完了するまでの時間を短縮することができる。
Further, since the reference position with high reliability can be learned in a short learning time, it is suitable for application to vehicles in which safety is important.
The motor control device 60 repeatedly determines whether or not the combination of the A-phase signal and the B-phase signal matches during the initial drive, and can determine that the rotor is stationary before the predetermined period has elapsed. If this is the case, the reference position of the rotor is learned using a correction value set in advance corresponding to the matched combination without waiting for the elapse of the predetermined period. As a result, it is possible to shorten the time until the initial position of the rotor 32 and the learning of the reference position are completed more quickly.

モータ制御装置60は、初期駆動中に基準位置を学習できなかったとき、基準位置の学習を再度実行する、あるいは、通電相を切り換えた上で基準位置の学習を実行する。これにより、誤判定や故障等への対応を取ることができ、モータ制御装置60の信頼性を向上させることができる。   When the reference position cannot be learned during the initial drive, the motor control device 60 executes the reference position learning again, or executes the reference position learning after switching the energized phase. As a result, it is possible to cope with misjudgment, failure, and the like, and to improve the reliability of the motor control device 60.

(その他の実施形態)
本発明は、上記した各実施形態にて例示したものに限定されることなく、その範囲を逸脱しない範囲で任意に変形あるいは拡張することができる。
各実施形態ではPレンジとNotPレンジの2つのレンジを切り換える構成を例示したが、本発明は、例えばディテントレバーの回動動作に連動して自動変速機のレンジ切換弁とマニュアルバルブを切り換え、自動変速機のP、R、N、D等の各レンジを切り換えるレンジ切換機構にも適用することができる。
(Other embodiments)
The present invention is not limited to those exemplified in the above-described embodiments, and can be arbitrarily modified or expanded without departing from the scope thereof.
In each embodiment, the configuration of switching between the two ranges of the P range and the NotP range has been exemplified. The present invention can also be applied to a range switching mechanism that switches each range of P, R, N, D, etc. of the transmission.

本発明が対象とするモータは、各実施形態にて例示したモータ12に限定されるものではなく、エンコーダの出力信号のカウント値に基づいてロータの回転位置を検出してモータの通電相を順次切り換えるブラシレス型のモータであれば、SRモータ以外のブラシレス型のモータへも適用できる。
本発明は、各実施形態で例示したレンジ切換制御装置42への適用に限定されるものではなく、SRモータ等のブラシレス型のモータを駆動源とする各種の装置に適用することができる。
The motor targeted by the present invention is not limited to the motor 12 illustrated in each embodiment, but detects the rotational position of the rotor based on the count value of the output signal of the encoder and sequentially sets the energized phase of the motor. Any brushless motor that can be switched is applicable to brushless motors other than SR motors.
The present invention is not limited to application to the range switching control device 42 exemplified in each embodiment, but can be applied to various devices using a brushless type motor such as an SR motor as a drive source.

エンコーダは、各実施形態で例示した磁気式のエンコーダ46に限定されるものではなく、例えば光学式のエンコーダやブラシ式のエンコーダを採用してもよい。
第1実施形態では、A相信号=1且つB相信号=1でなければA相信号=0且つB相信号=0と判定したが、図12に示す第1実施形態での基準位置学習処理に、図13に示す第2実施形態の基準位置学習処理のステップS15やS16の処理を加えてもよい。
The encoder is not limited to the magnetic encoder 46 exemplified in each embodiment, and for example, an optical encoder or a brush encoder may be adopted.
In the first embodiment, if the A-phase signal = 1 and the B-phase signal = 1, it is determined that the A-phase signal = 0 and the B-phase signal = 0. However, the reference position learning process in the first embodiment shown in FIG. In addition, the processes of steps S15 and S16 of the reference position learning process of the second embodiment shown in FIG. 13 may be added.

図面中、11はレンジ切換機構、12はモータ、27は自動変速機、31はステータ、32はロータ、33はコイル、34はコイル、41はECU(エンコーダカウント手段、制御手段)、42はレンジ切換制御装置(モータ制御装置)、46はエンコーダ、60はモータ制御装置を示す。   In the drawing, 11 is a range switching mechanism, 12 is a motor, 27 is an automatic transmission, 31 is a stator, 32 is a rotor, 33 is a coil, 34 is a coil, 41 is an ECU (encoder counting means, control means), and 42 is a range. A switching control device (motor control device), 46 is an encoder, and 60 is a motor control device.

Claims (6)

制御対象を回転駆動する複数相のコイル(33、34)を有するモータ(12)のロータ(32)の回転に同期して所定の位相差を有するA相信号およびB相信号を出力するエンコーダ(46)と、
前記エンコーダ(46)のA相信号およびB相信号の立ち上がりおよび立ち下がりのエッジをカウントするエンコーダカウント手段(41)と、
前記エンコーダカウント手段(41)のカウント値に基づいて前記ロータ(32)の回転位置を検出し、前記モータ(12)の通電相を順次切り換えることで前記ロータ(32)を目標位置まで回転駆動する制御手段(41)と、を備え、
前記制御手段(41)は、電源投入後またはモータ制御開始前に予め定められている所定期間に渡ってオープンループ制御にて二相通電する初期駆動を実行し、A相信号およびB相信号の組み合わせが二相通電している通電相に対応して予め設定されているA相信号およびB相信号の組み合わせと一致するか否かを判定し、一致したと判定すると、当該一致した組み合わせに対応して予め設定されている補正値を特定し、特定した補正値を用いて前記ロータ(12)の基準位置を学習することを特徴とするモータ制御装置。
An encoder that outputs an A-phase signal and a B-phase signal having a predetermined phase difference in synchronization with the rotation of the rotor (32) of the motor (12) having a plurality of coils (33, 34) that rotationally drive the controlled object. 46) and
Encoder counting means (41) for counting rising and falling edges of the A phase signal and the B phase signal of the encoder (46);
The rotational position of the rotor (32) is detected based on the count value of the encoder count means (41), and the rotor (32) is rotationally driven to the target position by sequentially switching the energized phase of the motor (12). Control means (41),
The control means (41) executes initial driving for two-phase energization by open loop control over a predetermined period after power is turned on or before the start of motor control, and the A phase signal and B phase signal It is determined whether or not the combination matches the preset combination of the A phase signal and the B phase signal corresponding to the energized phase in which the two-phase energization is performed. Then, a preset correction value is specified, and the reference position of the rotor (12) is learned using the specified correction value.
前記制御手段(41)は、前記初期駆動中におけるA相信号およびB相信号の組み合わせがオープンループ制御にて二相通電した際の組み合わせと一致しないと判定したとき、当該組み合わせが他の相に通電した際の組み合わせに一致するか否かをさらに判定し、一致したと判定すると、当該一致した他の相の組み合わせに対応して予め設定されている補正値を特定し、当該特定した補正値を用いて前記ロータの基準位置を学習することを特徴とする請求項1記載のモータ制御装置。   When the control means (41) determines that the combination of the A-phase signal and the B-phase signal during the initial drive does not match the combination when the two-phase energization is performed in the open loop control, the combination is changed to another phase. It is further determined whether or not it matches the combination when energized, and if it is determined that it matches, the correction value set in advance corresponding to the combination of the other matched phases is specified, and the specified correction value The motor control device according to claim 1, wherein the reference position of the rotor is learned using a motor. 前記制御手段(41)は、初期駆動中にA相信号およびB相信号の組み合わせが一致するか否かの判定を繰り返し実行しており、前記所定期間が経過する前に前記ロータ(32)が静止したと判断できる状態となれば、前記所定期間の経過を待機することなく一致した組み合わせに対応して予め設定されている補正値を用いて前記ロータ(32)の基準位置を学習することを特徴とする請求項1または2記載のモータ制御装置。   The control means (41) repeatedly determines whether or not the combination of the A-phase signal and the B-phase signal matches during initial driving, and the rotor (32) is turned on before the predetermined period elapses. If it becomes a state where it can be determined that it is stationary, the reference position of the rotor (32) is learned using a correction value set in advance corresponding to the matched combination without waiting for the elapse of the predetermined period. The motor control device according to claim 1, wherein the motor control device is a motor control device. 前記制御手段(41)は、前記初期駆動中に基準位置を学習できなかったとき、基準位置の学習を再度実行する、あるいは、通電相を切り換えた上で基準位置の学習を実行することを特徴とする請求項1から3のいずれか一項記載のモータ制御装置。   The control means (41) performs learning of the reference position again when the reference position cannot be learned during the initial drive, or performs learning of the reference position after switching the energized phase. The motor control device according to any one of claims 1 to 3. 前記モータ(12)は、スイッチドリラクタンスモータであることを特徴とする請求項1から4のいずれか一項記載のモータ制御装置。   The motor control device according to any one of claims 1 to 4, wherein the motor (12) is a switched reluctance motor. 前記モータは、車両の自動変速機(27)のレンジを切り換えるレンジ切換機構(11)を駆動することを特徴とする請求項1から5のいずれか一項記載のモータ制御装置。   6. The motor control device according to claim 1, wherein the motor drives a range switching mechanism (11) that switches a range of an automatic transmission (27) of the vehicle.
JP2014035307A 2014-02-26 2014-02-26 Motor control device Active JP6357798B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2014035307A JP6357798B2 (en) 2014-02-26 2014-02-26 Motor control device
DE102015203163.2A DE102015203163A1 (en) 2014-02-26 2015-02-23 Motor control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014035307A JP6357798B2 (en) 2014-02-26 2014-02-26 Motor control device

Publications (2)

Publication Number Publication Date
JP2015162922A true JP2015162922A (en) 2015-09-07
JP6357798B2 JP6357798B2 (en) 2018-07-18

Family

ID=53782708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014035307A Active JP6357798B2 (en) 2014-02-26 2014-02-26 Motor control device

Country Status (2)

Country Link
JP (1) JP6357798B2 (en)
DE (1) DE102015203163A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112602265A (en) * 2018-09-03 2021-04-02 株式会社电装 Shift gear control device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7021045B2 (en) * 2018-10-10 2022-02-16 株式会社デンソー Shift range controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000069779A (en) * 1998-08-26 2000-03-03 Nissan Motor Co Ltd Matching method for rotating angle sensor of switched reluctance motor
JP2013126346A (en) * 2011-12-16 2013-06-24 Denso Corp Motor control device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4082164B2 (en) 2002-10-07 2008-04-30 株式会社デンソー Motor control device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000069779A (en) * 1998-08-26 2000-03-03 Nissan Motor Co Ltd Matching method for rotating angle sensor of switched reluctance motor
JP2013126346A (en) * 2011-12-16 2013-06-24 Denso Corp Motor control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112602265A (en) * 2018-09-03 2021-04-02 株式会社电装 Shift gear control device
CN112602265B (en) * 2018-09-03 2023-12-05 株式会社电装 Gear shifting control device

Also Published As

Publication number Publication date
JP6357798B2 (en) 2018-07-18
DE102015203163A1 (en) 2015-08-27

Similar Documents

Publication Publication Date Title
JP5454962B2 (en) Motor control device
US6992451B2 (en) Motor control apparatus operable in fail-safe mode
JP4936069B2 (en) Motor control device
JP5648854B2 (en) Motor control device
US10122305B2 (en) Motor control apparatus
JP5831766B2 (en) Control device and shift-by-wire system using the same
US8421396B2 (en) Motor controlling device
JP5929878B2 (en) Control device and shift-by-wire system using the same
JP2005198448A (en) Controller of motor
JP3800529B2 (en) Motor control device
JP6357798B2 (en) Motor control device
JP2004023890A (en) Motor controller
JP4082164B2 (en) Motor control device
JP4189953B2 (en) Position switching control device
JP2017161455A (en) Control device
JP2004056857A (en) Motor controller
JP2004056856A (en) Motor controller
JP3871130B2 (en) Motor control device
JP3849627B2 (en) Motor control device
JP3849629B2 (en) Motor control device
JP3888278B2 (en) Motor control device
JP2004023889A (en) Motor controller
JP2004023931A (en) Motor controller
JP2012095407A (en) Motor controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160622

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170321

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171222

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180522

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180604

R151 Written notification of patent or utility model registration

Ref document number: 6357798

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250