JP2023136019A - Motor controller - Google Patents

Motor controller Download PDF

Info

Publication number
JP2023136019A
JP2023136019A JP2022041415A JP2022041415A JP2023136019A JP 2023136019 A JP2023136019 A JP 2023136019A JP 2022041415 A JP2022041415 A JP 2022041415A JP 2022041415 A JP2022041415 A JP 2022041415A JP 2023136019 A JP2023136019 A JP 2023136019A
Authority
JP
Japan
Prior art keywords
motor
signal
rotation angle
correction value
value
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
JP2022041415A
Other languages
Japanese (ja)
Inventor
茂利 山口
Shigetoshi Yamaguchi
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.)
JTEKT Corp
Original Assignee
JTEKT 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 JTEKT Corp filed Critical JTEKT Corp
Priority to JP2022041415A priority Critical patent/JP2023136019A/en
Publication of JP2023136019A publication Critical patent/JP2023136019A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

To provide a motor controller capable of reducing an output error of a magnetic rotation angle sensor while suppressing an arithmetic operation load.SOLUTION: A controller 30 of a motor 20 comprises: a substrate facing an output shaft of the motor 20 in an axial direction; a magnetic rotation angle sensor 33 provided coaxially to the output shaft; and an MPU 31a provided on the substrate. The rotation angle sensor 33 generates an electric signal S1 along with rotation of the output shaft. The MPU 31a calculates a rotational angle θ of the motor 20 on the basis of the electric signal S1, and controls the motor 20 by using the rotational angle θ. The electric signal S1 is affected by a magnetic field generated due to currents Iu, Iv, Iw supplied to the motor 20. The MPU 31a multiplies values of the currents Iu, Iv, Iw supplied to the motor 20 by a defined proportional constant to calculate a correction value S2 for the electric signal S1, and corrects the electric signal S1 by using the correction value S2.SELECTED DRAWING: Figure 3

Description

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

たとえば特許文献1のモータ制御装置は、センサ出力補正回路を有している。センサ出力補正回路は、モータに内蔵された磁極位置センサの出力情報を補正する。センサ出力補正回路は、磁極位置センサの出力信号、および、電流センサの出力信号を取り込む。電流センサの出力信号は、モータの固定子巻線に供給される3相電流の検知信号である。センサ出力補正回路は、電流センサの出力信号に基づきセンサ出力補正情報を生成し、このセンサ出力補正情報に基づき磁極位置センサの出力信号を補正する。これにより、モータの固定子巻線が発生する漏洩磁束の影響による、磁極位置センサの出力誤差を低減することができる。 For example, the motor control device disclosed in Patent Document 1 includes a sensor output correction circuit. The sensor output correction circuit corrects output information from a magnetic pole position sensor built into the motor. The sensor output correction circuit takes in the output signal of the magnetic pole position sensor and the output signal of the current sensor. The output signal of the current sensor is a detection signal of the three-phase current supplied to the stator winding of the motor. The sensor output correction circuit generates sensor output correction information based on the output signal of the current sensor, and corrects the output signal of the magnetic pole position sensor based on this sensor output correction information. Thereby, it is possible to reduce the output error of the magnetic pole position sensor due to the influence of leakage magnetic flux generated by the stator winding of the motor.

特開2007-049862号公報Japanese Patent Application Publication No. 2007-049862

特許文献1のモータ制御装置は、電流センサの出力信号に基づきセンサ出力補正情報を、都度生成する必要がある。モータ制御装置には、演算負荷を抑えつつ、磁気位置センサの出力誤差を低減することが求められる。 The motor control device of Patent Document 1 needs to generate sensor output correction information each time based on the output signal of the current sensor. Motor control devices are required to reduce output errors of magnetic position sensors while suppressing calculation load.

上記課題を解決し得るモータ制御装置は、モータの出力軸に対して軸方向に対向する基板と、前記出力軸と同軸に設けられる回転角センサであって、前記出力軸の回転に応じた電気信号を生成する磁気式の回転角センサと、前記基板に設けられる制御回路であって、前記電気信号に基づき前記モータの回転角を演算し、前記回転角を使用して前記モータを制御する制御回路と、を備えている。前記電気信号は、前記モータに供給される電流に起因して発生する磁界の影響を受ける。前記制御回路は、前記モータに供給される電流の値に対して、定められた比例定数を乗算することにより前記電気信号に対する補正値を演算し、前記補正値を使用して前記電気信号を補正するように構成される。 A motor control device capable of solving the above problem includes a substrate facing the output shaft of the motor in the axial direction, and a rotation angle sensor provided coaxially with the output shaft. A magnetic rotation angle sensor that generates a signal, and a control circuit provided on the board, which calculates a rotation angle of the motor based on the electric signal and controls the motor using the rotation angle. It is equipped with a circuit. The electrical signal is influenced by a magnetic field generated due to the current supplied to the motor. The control circuit calculates a correction value for the electrical signal by multiplying the value of the current supplied to the motor by a predetermined proportionality constant, and uses the correction value to correct the electrical signal. configured to do so.

この構成によれば、モータに供給される電流の値に対して、定められた比例定数を乗算することにより、回転角センサにより生成される電気信号に対する補正値が演算される。比例定数をモータの電流値に乗算するだけ補正値が得られるため、制御回路の演算負荷を低減することができる。また、補正値を使用して回転角センサにより生成される電気信号を補正することにより、電気信号から磁界の影響を除去することができる。磁界の影響が除去された電気信号を使用することにより、より正確な回転角を演算することができる。 According to this configuration, the correction value for the electrical signal generated by the rotation angle sensor is calculated by multiplying the value of the current supplied to the motor by a predetermined proportionality constant. Since the correction value can be obtained by simply multiplying the motor current value by the proportionality constant, the calculation load on the control circuit can be reduced. Further, by correcting the electrical signal generated by the rotation angle sensor using the correction value, the influence of the magnetic field can be removed from the electrical signal. By using electrical signals from which the influence of the magnetic field has been removed, a more accurate rotation angle can be calculated.

上記のモータ制御装置において、前記補正値は、前記磁界の影響を受けることにより発生する前記電気信号の誤差成分であって、前記制御回路は、前記電気信号から前記補正値を減算することにより、前記電気信号を補正するように構成されてもよい。 In the above motor control device, the correction value is an error component of the electric signal generated due to the influence of the magnetic field, and the control circuit subtracts the correction value from the electric signal. The electrical signal may be configured to be corrected.

この構成によれば、電気信号から補正値を減算することにより、電気信号の誤差成分を除去することができる。電気信号から補正値を減算するだけでよいので、制御回路の演算負荷を低減することができる。 According to this configuration, the error component of the electrical signal can be removed by subtracting the correction value from the electrical signal. Since it is only necessary to subtract the correction value from the electrical signal, the calculation load on the control circuit can be reduced.

上記のモータ制御装置において、前記電気信号は、前記モータの回転に対して正弦状に変化する電気信号である正弦信号と、前記正弦信号に対して90°だけ位相が遅れた電気信号である余弦信号と、を含んでいてもよい。この場合、前記制御回路は、前記正弦信号に対する第1の補正値、および、前記余弦信号に対する第2の補正値を演算するようにしてもよい。また、前記制御回路は、前記正弦信号から前記第1の補正値を減算することにより前記正弦信号を補正するとともに、前記余弦信号から前記第2の補正値を減算することにより前記余弦信号を補正するようにしてもよい。また、制御回路は、前記正弦信号および前記余弦信号に基づき逆正接値を演算することにより、前記回転角を演算するように構成されてもよい。 In the above motor control device, the electric signal includes a sine signal that is an electric signal that changes sinusoidally with respect to the rotation of the motor, and a cosine signal that is an electric signal whose phase is delayed by 90 degrees with respect to the sine signal. It may include a signal. In this case, the control circuit may calculate a first correction value for the sine signal and a second correction value for the cosine signal. Further, the control circuit corrects the sine signal by subtracting the first correction value from the sine signal, and corrects the cosine signal by subtracting the second correction value from the cosine signal. You may also do so. Further, the control circuit may be configured to calculate the rotation angle by calculating an arctangent value based on the sine signal and the cosine signal.

この構成によれば、正弦信号から第1の補正値を減算することにより、磁界の影響による正弦信号の誤差成分を除去することができる。また、余弦信号から第2の補正値を減算することにより、磁界の影響による余弦信号の誤差成分を除去することができる。また、磁界の影響が除去された正弦信号および余弦信号を使用することにより、より正確な回転角を演算することができる。 According to this configuration, by subtracting the first correction value from the sine signal, it is possible to remove the error component of the sine signal due to the influence of the magnetic field. Furthermore, by subtracting the second correction value from the cosine signal, it is possible to remove error components of the cosine signal due to the influence of the magnetic field. Further, by using the sine signal and cosine signal from which the influence of the magnetic field has been removed, a more accurate rotation angle can be calculated.

上記のモータ制御装置において、前記モータの極対数が「Pn」であるとき、前記補正値は、前記電気信号の「Pn±1」次の誤差成分であってもよい。
モータの極対数が「Pn」であるとき、回転角センサにより生成される電気信号には、Pn次の高調波が重畳する。Pn次の高調波が重畳した電気信号を使用して回転角を演算すると、「Pn±1」次の誤差が発生する。上記の構成によれば、補正値を使用して電気信号を補正することにより、電気信号の「Pn±1」次の誤差成分を除去することができる。
In the above motor control device, when the number of pole pairs of the motor is "Pn", the correction value may be an error component of "Pn±1" order of the electric signal.
When the number of pole pairs of the motor is "Pn", Pn-order harmonics are superimposed on the electrical signal generated by the rotation angle sensor. When a rotation angle is calculated using an electrical signal on which Pn-order harmonics are superimposed, an error of "Pn±1" order occurs. According to the above configuration, by correcting the electrical signal using the correction value, it is possible to remove the "Pn±1" order error component of the electrical signal.

上記のモータ制御装置において、前記比例定数の値は、前記モータの電流値に比例するPn次の高調波が重畳する前記電気信号を使用して前記回転角を演算する予測モデルを使用して決定されるものであってもよい。この場合、前記予測モデルから得られる前記回転角の誤差が、実際に計測される前記回転角の誤差と一致するように、前記比例定数の値が設定されることが好ましい。 In the above motor control device, the value of the proportionality constant is determined using a prediction model that calculates the rotation angle using the electrical signal on which a Pn-order harmonic proportional to the current value of the motor is superimposed. It may be something that is done. In this case, it is preferable that the value of the proportionality constant is set so that the error in the rotation angle obtained from the prediction model matches the error in the rotation angle actually measured.

この構成によれば、回転角の予測モデルを使用することにより、比例定数の値を適切に設定することができる。
上記のモータ制御装置において、前記回転角センサは、前記出力軸の軸方向の端部に固定された磁石に対して軸方向に対向するように前記基板に設けられる磁気センサを有し、前記磁気センサは、前記磁石の回転に伴う磁界の変化に応じた電気信号を生成するように構成されてもよい。
According to this configuration, the value of the proportionality constant can be appropriately set by using the rotation angle prediction model.
In the above motor control device, the rotation angle sensor includes a magnetic sensor provided on the substrate so as to be axially opposed to a magnet fixed to an axial end of the output shaft, and The sensor may be configured to generate an electrical signal responsive to changes in the magnetic field as the magnet rotates.

この構成によれば、磁気センサ、あるいは磁気センサが生成する電気信号は、モータに供給される電流に起因して発生する磁界の影響を受けるおそれがある。このため、制御回路は、補正値を使用して磁気センサにより生成される電気信号を補正することにより、電気信号から磁界の影響を除去する機能を有することが好ましい。 According to this configuration, the magnetic sensor or the electric signal generated by the magnetic sensor may be affected by the magnetic field generated due to the current supplied to the motor. Therefore, it is preferable that the control circuit has a function of removing the influence of the magnetic field from the electrical signal by correcting the electrical signal generated by the magnetic sensor using the correction value.

上記のモータ制御装置において、前記モータは、電動パワーステアリング装置の駆動源であって、ステアリングホイールの操作を補助するためのアシスト力を発生するアシストモータであってもよい。 In the above motor control device, the motor may be an assist motor that is a drive source of an electric power steering device and generates an assist force for assisting operation of a steering wheel.

電動パワーステアリング装置には、動作に対する信頼性が要求される。電気信号の補正機能を有する上記のモータ制御装置は、電動パワーステアリング装置に好適である。
上記のモータ制御装置において、前記モータは、ステアバイワイヤ方式の操舵装置の駆動源であって、転舵輪を転舵させるための転舵力を発生する転舵モータ、または、ステアリングホイールに付与する操舵反力を発生する反力モータであってもよい。
Electric power steering devices are required to have operational reliability. The above motor control device having an electric signal correction function is suitable for an electric power steering device.
In the above motor control device, the motor is a drive source of a steer-by-wire steering device, and is a steering motor that generates a steering force for steering steering wheels, or a steering motor that generates a steering force for steering steering wheels, or a steering motor that generates a steering force for steering steering wheels. It may also be a reaction force motor that generates a reaction force.

ステアバイワイヤ方式の操舵装置には、動作に対する信頼性が要求される。電気信号の補正機能を有する上記のモータ制御装置は、ステアバイワイヤ方式の操舵装置に好適である。 Steer-by-wire steering devices are required to have operational reliability. The above motor control device having an electric signal correction function is suitable for a steer-by-wire steering device.

本発明のモータ制御装置によれば、演算負荷を抑えつつ、磁気式の回転角センサの出力誤差を低減することができる。 According to the motor control device of the present invention, it is possible to reduce the output error of the magnetic rotation angle sensor while suppressing the calculation load.

モータ制御装置の一実施の形態を含むモータ装置の断面図。1 is a sectional view of a motor device including an embodiment of a motor control device. 一実施の形態にかかる回転角センサの斜視図。FIG. 1 is a perspective view of a rotation angle sensor according to an embodiment. モータ制御装置の一実施の形態の電気的構成を示すブロック図である。FIG. 1 is a block diagram showing the electrical configuration of an embodiment of a motor control device. モータの回転角に対する角度誤差の一例を示すグラフである。It is a graph which shows an example of the angle error with respect to the rotation angle of a motor. モータの回転角の補正処理に使用する比例定数の設定方法を示すフローチャートである。7 is a flowchart illustrating a method of setting a proportionality constant used in correction processing of a rotation angle of a motor.

以下、モータ制御装置の一実施の形態を説明する。
モータ制御装置は、モータの駆動を制御する。モータは、三相(U,V,W)のブラシレスモータであって、たとえば車両の電動パワーステアリング装置の動力源として使用される。モータは、ステアリングホイールの操作を補助するためのアシスト力を発生するアシストモータである。
An embodiment of a motor control device will be described below.
The motor control device controls driving of the motor. The motor is a three-phase (U, V, W) brushless motor, and is used, for example, as a power source for an electric power steering device of a vehicle. The motor is an assist motor that generates an assist force to assist the operation of the steering wheel.

<モータ装置>
図1に示すように、モータ装置10は、モータ20および制御装置30を有している。モータ20と制御装置30とは、一体的に設けられている。
<Motor device>
As shown in FIG. 1, the motor device 10 includes a motor 20 and a control device 30. The motor 20 and the control device 30 are provided integrally.

モータ20は、円筒状のハウジング21、ステータ22、出力軸23、およびロータ24を有している。ステータ22は、円筒状のステータコア22a、およびステータコア22aに設けられたステータコイル22bを有している。ステータコア22aは、ハウジング21の内周面に対して嵌められた状態で固定されている。出力軸23は、2つの軸受23a,23bを介してハウジング21に対して回転可能に支持されている。出力軸23の2つの端部は、それぞれハウジング21を軸方向に貫通している。ロータ24は、ステータ22の内部に設けられている。ロータ24は、出力軸23の外周面に固定された円柱状のロータコア24a、およびロータコア24aの表面に固定された円筒状の永久磁石24bを有している。 The motor 20 has a cylindrical housing 21, a stator 22, an output shaft 23, and a rotor 24. The stator 22 has a cylindrical stator core 22a and a stator coil 22b provided in the stator core 22a. The stator core 22a is fixed and fitted onto the inner peripheral surface of the housing 21. The output shaft 23 is rotatably supported by the housing 21 via two bearings 23a and 23b. The two ends of the output shaft 23 each pass through the housing 21 in the axial direction. The rotor 24 is provided inside the stator 22. The rotor 24 has a cylindrical rotor core 24a fixed to the outer peripheral surface of the output shaft 23, and a cylindrical permanent magnet 24b fixed to the surface of the rotor core 24a.

制御装置30は、基板31、回転角センサ33およびカバー34を有している。カバー34は、円筒状である。カバー34の一端は、軸方向に開口している。カバー34は、その開口をハウジング21へ向けた状態で、ハウジング21の第1の端部(図1中の上端部)に固定されている。カバー34の内部には、基板31および回転角センサ33がそれぞれ収容されている。基板31は、出力軸23の軸線に対して直交する姿勢で、カバー34に固定されている。基板31は、出力軸23の第1の端部に対して、軸方向に対向している。第1の端部は、カバー34の内部に位置する出力軸23の端部である。出力軸23の第2の端部は、ハウジング21の第2の端部を軸方向に貫通している。 The control device 30 includes a substrate 31, a rotation angle sensor 33, and a cover 34. The cover 34 has a cylindrical shape. One end of the cover 34 is open in the axial direction. The cover 34 is fixed to the first end (the upper end in FIG. 1) of the housing 21 with its opening facing toward the housing 21. A substrate 31 and a rotation angle sensor 33 are housed inside the cover 34, respectively. The board 31 is fixed to the cover 34 in a position perpendicular to the axis of the output shaft 23 . The substrate 31 faces the first end of the output shaft 23 in the axial direction. The first end is the end of the output shaft 23 located inside the cover 34. The second end of the output shaft 23 passes through the second end of the housing 21 in the axial direction.

基板31は、MPU(microprocessing unit)31a、およびインバータ回路31bを有している。インバータ回路31bは、複数のスイッチング素子を有する。これらスイッチング素子がMPU31aにより生成されるスイッチング指令に基づきスイッチングすることにより三相の交流電力が生成される。当該生成される交流電力は、図示しない給電経路を介して三相各相のステータコイル22bに供給される。回転角センサ33は、ロータ24の回転角を検出する。ロータ24の回転角は、モータ20の回転角である。MPU31aは、回転角センサ33を通じて検出されるロータ24の回転角に基づき、インバータ回路31bに対するスイッチング指令を生成する。スイッチング指令は、モータ20の駆動を制御するためのモータ制御信号である。 The board 31 includes an MPU (microprocessing unit) 31a and an inverter circuit 31b. Inverter circuit 31b has a plurality of switching elements. Three-phase AC power is generated by switching these switching elements based on switching commands generated by the MPU 31a. The generated AC power is supplied to the stator coils 22b of each of the three phases via a power supply path (not shown). The rotation angle sensor 33 detects the rotation angle of the rotor 24. The rotation angle of the rotor 24 is the rotation angle of the motor 20. The MPU 31a generates a switching command for the inverter circuit 31b based on the rotation angle of the rotor 24 detected through the rotation angle sensor 33. The switching command is a motor control signal for controlling the drive of the motor 20.

<回転角センサ>
つぎに、回転角センサ33の構成を説明する。回転角センサ33は、磁気式である。
図1に示すように、回転角センサ33は、円柱状のバイアス磁石41および磁気センサ42を有している。磁気センサ42は、たとえばMRセンサ(磁気抵抗効果センサ)である。バイアス磁石41は、出力軸23の第1の端部に固定されている。磁気センサ42は、基板31に設けられている。磁気センサ42は、バイアス磁石41に対して軸方向に対向している。
<Rotation angle sensor>
Next, the configuration of the rotation angle sensor 33 will be explained. The rotation angle sensor 33 is of a magnetic type.
As shown in FIG. 1, the rotation angle sensor 33 includes a cylindrical bias magnet 41 and a magnetic sensor 42. The magnetic sensor 42 is, for example, an MR sensor (magnetoresistive sensor). Bias magnet 41 is fixed to the first end of output shaft 23 . The magnetic sensor 42 is provided on the substrate 31. The magnetic sensor 42 faces the bias magnet 41 in the axial direction.

図2に示すように、バイアス磁石41は、その半径方向にN極およびS極が着磁された2極の永久磁石である。バイアス磁石41によって、磁気センサ42にはN極からS極へ向かう実線の矢印43で示される方向の磁界が付与される。たとえば出力軸23が図中の位置から矢印44で示される方向へ向けて回転角θだけ回転したとき、バイアス磁石41も矢印44で示される方向へ向けて回転角θだけ回転する。これにより、磁気センサ42に付与されるバイアス磁界の向きが、実線の矢印43で示される方向から軸線Oを中心として回転角θだけ回転した一点鎖線の矢印45で示される方向に変化する。このように、磁気センサ42に付与される磁界の方向は、出力軸23の回転角θに応じて変化する。磁気センサ42は、バイアス磁界の向きに応じた電気信号を生成する。MPU31aは、磁気センサ42により生成される電気信号に基づき、出力軸23、すなわちロータ24の回転角θを演算する。 As shown in FIG. 2, the bias magnet 41 is a two-pole permanent magnet with an N pole and an S pole magnetized in the radial direction. The bias magnet 41 applies a magnetic field to the magnetic sensor 42 in the direction indicated by a solid arrow 43 from the north pole to the south pole. For example, when the output shaft 23 rotates by a rotation angle θ from the position shown in the figure in the direction indicated by the arrow 44, the bias magnet 41 also rotates by the rotation angle θ in the direction indicated by the arrow 44. As a result, the direction of the bias magnetic field applied to the magnetic sensor 42 changes from the direction shown by the solid arrow 43 to the direction shown by the dashed-dotted arrow 45, which is rotated by the rotation angle θ about the axis O. In this way, the direction of the magnetic field applied to the magnetic sensor 42 changes depending on the rotation angle θ of the output shaft 23. The magnetic sensor 42 generates an electrical signal depending on the direction of the bias magnetic field. The MPU 31a calculates the rotation angle θ of the output shaft 23, that is, the rotor 24, based on the electric signal generated by the magnetic sensor 42.

<制御装置の電気的構成>
つぎに、制御装置30の電気的構成について説明する。
図3に示すように、制御装置30は、MPU31aおよびインバータ回路31bを有している。また、制御装置30は、メモリ(図示略)を有している。メモリは、コンピュータ(ここでは、MPU31a)により読み取り可能とされた媒体であって、コンピュータに対する処理あるいは命令を記述したプログラムを記憶している。メモリは、RAM(random access memory)およびROM(read only memory)を含む。
<Electrical configuration of control device>
Next, the electrical configuration of the control device 30 will be explained.
As shown in FIG. 3, the control device 30 includes an MPU 31a and an inverter circuit 31b. Further, the control device 30 has a memory (not shown). The memory is a medium readable by a computer (in this case, the MPU 31a), and stores a program that describes processing or instructions for the computer. Memory includes RAM (random access memory) and ROM (read only memory).

インバータ回路31bは、モータ駆動回路である。インバータ回路31bの電力変換方式は、PWM(pulse width modulation)方式である。インバータ回路31bは、直列に接続された一対のスイッチング素子を含む3つのアームを有している。スイッチング素子は、たとえば電界効果型トランジスタ(FET:field effect transistor)である。各アームは、三相の各相に対応する。3つのアームは、並列に接続されている。MPU31aが生成するスイッチング指令は、各スイッチング素子のデューティ比を規定する。スイッチング指令は、各スイッチング素子のゲート端子に印加される。スイッチング指令に応答して各スイッチング素子がオンオフすることにより、車載されるバッテリ53の直流電圧が三相の交流電力に変換される。交流電力は、モータ20に供給される。交流電力は、モータ20の駆動電力である。 The inverter circuit 31b is a motor drive circuit. The power conversion method of the inverter circuit 31b is a PWM (pulse width modulation) method. The inverter circuit 31b has three arms including a pair of switching elements connected in series. The switching element is, for example, a field effect transistor (FET). Each arm corresponds to each of the three phases. The three arms are connected in parallel. The switching command generated by the MPU 31a defines the duty ratio of each switching element. A switching command is applied to the gate terminal of each switching element. By turning on and off each switching element in response to a switching command, the DC voltage of the battery 53 mounted on the vehicle is converted into three-phase AC power. AC power is supplied to motor 20. The alternating current power is the driving power for the motor 20.

MPU31aは、メモリに記憶されたプログラムを、定められた演算周期で実行することによって各種の制御を実行する制御回路あるいは処理部である。MPU31aは、車載のトルクセンサ(図示略)を通じて検出される操舵トルクTh、および、車載の車速センサ(図示略)を通じて検出される車速Vを取り込む。また、MPU31aは、3つの電流センサ54u,54v,54wを通じて検出されるモータ20の三相各相の電流Iu,Iv,Iwの値を取り込む。電流センサ54u,54v,54wは、インバータ回路31bとモータ20との間の給電経路に設けられている。また、MPU31aは、回転角センサ33により生成される電気信号S1を取り込む。MPU31aは、電気信号S1を使用して、ロータ24の回転角θを演算する。 The MPU 31a is a control circuit or a processing unit that executes various controls by executing a program stored in a memory at a predetermined calculation cycle. The MPU 31a takes in a steering torque Th detected through a vehicle-mounted torque sensor (not shown) and a vehicle speed V detected through a vehicle-mounted vehicle speed sensor (not shown). Furthermore, the MPU 31a takes in the values of the currents Iu, Iv, and Iw of each of the three phases of the motor 20 detected through the three current sensors 54u, 54v, and 54w. Current sensors 54u, 54v, and 54w are provided on a power supply path between inverter circuit 31b and motor 20. Furthermore, the MPU 31a takes in the electrical signal S1 generated by the rotation angle sensor 33. The MPU 31a calculates the rotation angle θ of the rotor 24 using the electric signal S1.

MPU31aは、操舵トルクTh、車速V、モータ20の電流Iu,Iv,Iwの値、およびロータ24の回転角θに基づき、モータ20への給電を制御する。MPU31aは、たとえば、ステアリングホイールの操作状態、あるいは車両の走行状態に応じた適切なアシスト力が得られるように、モータ20への給電を制御する。制御装置30は、2相の回転座標系であるdq座標系で記述されるベクトル制御によりモータ20を制御する。 The MPU 31a controls power supply to the motor 20 based on the steering torque Th, the vehicle speed V, the values of the currents Iu, Iv, and Iw of the motor 20, and the rotation angle θ of the rotor 24. The MPU 31a controls power supply to the motor 20 so that an appropriate assist force is obtained depending on, for example, the operating state of the steering wheel or the driving state of the vehicle. The control device 30 controls the motor 20 by vector control described in a dq coordinate system, which is a two-phase rotational coordinate system.

<MPUの詳細構成>
つぎに、MPU31aの構成を詳細に説明する。
図2に示されるように、MPU31aは、回転角演算部61、回転速度演算部62、電流指令値演算部63、三相/二相座標変換部64、フィードバック制御部65、二相/三相座標変換部66、および制御信号生成部67を有している。
<Detailed configuration of MPU>
Next, the configuration of the MPU 31a will be explained in detail.
As shown in FIG. 2, the MPU 31a includes a rotation angle calculation section 61, a rotation speed calculation section 62, a current command value calculation section 63, a three-phase/two-phase coordinate conversion section 64, a feedback control section 65, a two-phase/three-phase It has a coordinate conversion section 66 and a control signal generation section 67.

回転角演算部61は、回転角センサ33により生成される電気信号S1に基づき、ロータ24の回転角θを演算する。電気信号S1は、正弦信号Ssinおよび余弦信号Scosを含む。 The rotation angle calculating section 61 calculates the rotation angle θ of the rotor 24 based on the electric signal S1 generated by the rotation angle sensor 33. The electrical signal S1 includes a sine signal S sin and a cosine signal S cos .

正弦信号Ssinは、ロータ24の回転角θに対して、正弦状に変化する電気信号であって、つぎの数式(1)で表される。 The sine signal S sin is an electric signal that changes sinusoidally with respect to the rotation angle θ of the rotor 24, and is expressed by the following equation (1).

Figure 2023136019000002
Figure 2023136019000002

ただし、「R」は振幅である。
余弦信号Scosは、正弦信号Ssinに対して90°だけ位相が遅れた電気信号であって、つぎの数式(2)で表される。
However, "R" is the amplitude.
The cosine signal S cos is an electrical signal whose phase is delayed by 90° with respect to the sine signal S sin , and is expressed by the following equation (2).

Figure 2023136019000003
Figure 2023136019000003

ただし、「R」は振幅である。
回転角演算部61は、つぎの数式(3)で表されるように、正弦信号Ssinおよび余弦信号Scosに基づき逆正接値を演算することによりロータ24の回転角θを演算する。
However, "R" is the amplitude.
The rotation angle calculation unit 61 calculates the rotation angle θ of the rotor 24 by calculating an arctangent value based on the sine signal S sin and the cosine signal S cos , as expressed by the following equation (3).

Figure 2023136019000004
Figure 2023136019000004

ただし、「Atan」は、「Arctan」を略記したものであって、逆正接関数であることを示す。
回転速度演算部62は、微分器であって、回転角演算部61により演算されるロータ24の回転角θを時間で微分することによりロータ24の回転速度ωを演算する。
However, "Atan" is an abbreviation of "Arctan" and indicates an arctangent function.
The rotational speed calculation unit 62 is a differentiator, and calculates the rotational speed ω of the rotor 24 by differentiating the rotational angle θ of the rotor 24 calculated by the rotational angle calculation unit 61 with respect to time.

電流指令値演算部63は、q軸電流指令値演算部71およびd軸電流指令値演算部72を有している。
q軸電流指令値演算部71は、トルクセンサを通じて検出される操舵トルクThおよび車速センサを通じて検出される車速Vに基づき、基本アシストトルクを演算する。q軸電流指令値演算部71は、操舵トルクThの絶対値が大きいほど、また車速Vが遅いほど、より絶対値の大きい目標アシストトルクを演算する。また、q軸電流指令値演算部71は、回転速度演算部62により演算されるロータ24の回転速度ωを使用して、基本アシストトルクに対する補償値を演算する。補償値は、たとえば、操舵角に比例して大きくなるステアリングホイールの中立位置への復帰力と、ロータ24の回転速度ωに比例して大きくなるステアリングホイールの回転に対する抵抗力に対応した戻しトルクとの和である。q軸電流指令値演算部71は、基本アシストトルクと補償値との和を目標アシストトルクとして設定する。q軸電流指令値演算部71は、目標アシストトルクをトルク定数で除算することにより、dq座標系におけるq軸電流指令値Iqを演算する。
The current command value calculation section 63 has a q-axis current command value calculation section 71 and a d-axis current command value calculation section 72.
The q-axis current command value calculation unit 71 calculates the basic assist torque based on the steering torque Th detected through the torque sensor and the vehicle speed V detected through the vehicle speed sensor. The q-axis current command value calculating section 71 calculates a target assist torque having a larger absolute value as the absolute value of the steering torque Th becomes larger and as the vehicle speed V becomes slower. Furthermore, the q-axis current command value calculation unit 71 uses the rotational speed ω of the rotor 24 calculated by the rotational speed calculation unit 62 to calculate a compensation value for the basic assist torque. The compensation value is, for example, a force for returning the steering wheel to the neutral position, which increases in proportion to the steering angle, and a return torque corresponding to a resistance force against rotation of the steering wheel, which increases in proportion to the rotational speed ω of the rotor 24. is the sum of The q-axis current command value calculation unit 71 sets the sum of the basic assist torque and the compensation value as the target assist torque. The q-axis current command value calculation unit 71 calculates the q-axis current command value Iq * in the dq coordinate system by dividing the target assist torque by the torque constant.

d軸電流指令値演算部72は、回転速度演算部62により演算されるロータ24の回転速度ωに基づき、dq座標系におけるd軸電流指令値Idを演算する。d軸電流指令値演算部72は、ロータ24の回転速度ωに応じてd軸電流指令値Idを負の値とする弱め界磁制御を実行する。詳述すると、ロータ24の回転速度ωが増大するにつれて各相のステータコイル22bに生ずる誘起電圧(逆起電力)が増大する。しかし、ロータ24の回転速度には上限(基底速度)がある。そこで、d軸電流指令値Idを負の値、すなわち負方向のd軸電流を流すことにより、d軸電機子反作用による減磁起磁力を利用してd軸方向の磁束を減少させて誘起電圧を低く抑えることが可能である。これにより、基底速度を超えた高速領域までロータ24の運転範囲(回転領域)を拡張することが可能となる。 The d-axis current command value calculation unit 72 calculates the d-axis current command value Id * in the dq coordinate system based on the rotational speed ω of the rotor 24 calculated by the rotational speed calculation unit 62. The d-axis current command value calculation unit 72 executes field-weakening control in which the d-axis current command value Id * is set to a negative value in accordance with the rotational speed ω of the rotor 24. Specifically, as the rotational speed ω of the rotor 24 increases, the induced voltage (back electromotive force) generated in the stator coil 22b of each phase increases. However, the rotational speed of the rotor 24 has an upper limit (base speed). Therefore, by setting the d-axis current command value Id * to a negative value, that is, by passing the d-axis current in the negative direction, the magnetic flux in the d-axis direction is reduced and induced using the demagnetizing magnetomotive force caused by the d-axis armature reaction. It is possible to keep the voltage low. This makes it possible to extend the operating range (rotation range) of the rotor 24 to a high speed range exceeding the base speed.

三相/二相座標変換部64は、回転角演算部61により演算されるロータ24の回転角θ、および電流センサ54u,54v,54wを通じて検出されるモータ20の三相各相の電流Iu,Iv,Iwの値を取り込む。三相/二相座標変換部64は、ロータ24の回転角θに基づき、モータ20の三相各相の電流Iu,Iv,Iwの値をdq座標系における二相の電流であるq軸電流値Iqおよびd軸電流値Idに変換する。 The three-phase/two-phase coordinate conversion unit 64 calculates the rotation angle θ of the rotor 24 calculated by the rotation angle calculation unit 61, and the current Iu of each of the three phases of the motor 20 detected through the current sensors 54u, 54v, and 54w. Take in the values of Iv and Iw. The three-phase/two-phase coordinate conversion unit 64 converts the values of the currents Iu, Iv, and Iw of the three phases of the motor 20 into q-axis currents, which are two-phase currents in the dq coordinate system, based on the rotation angle θ of the rotor 24. It is converted into a value Iq and a d-axis current value Id.

フィードバック制御部65は、電流指令値演算部63により演算されるq軸電流指令値Iqおよびd軸電流指令値Idを取り込む。また、フィードバック制御部65は、三相/二相座標変換部64により演算されるq軸電流値Iqおよびd軸電流値Idを取り込む。フィードバック制御部65は、q軸電流指令値Iqとq軸電流値Iqとの差の値であるq軸電流偏差、ならびにd軸電流指令値Idとd軸電流値Idとの差の値であるd軸電流偏差を演算する。フィードバック制御部65は、q軸電流値Iqをq軸電流指令値Iqに追従させるべくq軸電圧指令値Vqを演算する。フィードバック制御部65は、d軸電流値Idをd軸電流指令値Idに追従させるべくd軸電圧指令値Vdを演算する。フィードバック制御部65は、たとえばq軸電流偏差およびd軸電流偏差に所定のフィードバックゲインを乗ずることによってq軸電圧指令値Vqおよびd軸電圧指令値Vdを演算する。 The feedback control unit 65 takes in the q-axis current command value Iq * and the d-axis current command value Id * calculated by the current command value calculation unit 63. Further, the feedback control unit 65 takes in the q-axis current value Iq and the d-axis current value Id calculated by the three-phase/two-phase coordinate conversion unit 64. The feedback control unit 65 controls the q-axis current deviation, which is the difference between the q-axis current command value Iq * and the q-axis current value Iq, and the difference between the d-axis current command value Id * and the d-axis current value Id. The d-axis current deviation is calculated. Feedback control unit 65 calculates q-axis voltage command value Vq * in order to cause q-axis current value Iq to follow q-axis current command value Iq* . Feedback control unit 65 calculates d-axis voltage command value Vd * in order to cause d-axis current value Id to follow d-axis current command value Id* . The feedback control unit 65 calculates the q-axis voltage command value Vq * and the d-axis voltage command value Vd * by multiplying the q-axis current deviation and the d-axis current deviation by a predetermined feedback gain, for example.

二相/三相座標変換部66は、フィードバック制御部65により演算されるq軸電圧指令値Vqおよびd軸電圧指令値Vdを取り込む。二相/三相座標変換部66は、回転角演算部61により演算されるロータ24の回転角θに応じてq軸電圧指令値Vqおよびd軸電圧指令値Vdを3相の電圧指令値Vu,Vv,Vwに変換する。 The two-phase/three-phase coordinate conversion section 66 takes in the q-axis voltage command value Vq * and the d-axis voltage command value Vd * calculated by the feedback control section 65. The two-phase/three-phase coordinate conversion unit 66 converts the q-axis voltage command value Vq * and the d-axis voltage command value Vd * into three-phase voltage commands according to the rotation angle θ of the rotor 24 calculated by the rotation angle calculation unit 61. Convert to values Vu * , Vv * , Vw * .

制御信号生成部67は、二相/三相座標変換部66により演算される三相の電圧指令値Vu,Vv,Vwを取り込む。制御信号生成部67は、電圧指令値Vu,Vv,Vwに基づき、モータ制御信号Du,Dv,Dwを生成する。モータ制御信号Du,Dv,Dwは、電圧指令値Vu,Vv,Vwに対応するデューティ比を有するPWM信号である。これらモータ制御信号Du,Dv,Dwに基づきインバータ回路31bの各スイッチング素子がスイッチング動作を行うことにより、目標アシストトルクに応じた電流がモータ20へ供給される。 The control signal generation section 67 takes in the three-phase voltage command values Vu * , Vv * , Vw * calculated by the two-phase/three-phase coordinate conversion section 66. Control signal generation section 67 generates motor control signals Du, Dv, and Dw based on voltage command values Vu * , Vv * , and Vw * . Motor control signals Du, Dv, and Dw are PWM signals having duty ratios corresponding to voltage command values Vu * , Vv * , and Vw * . Each switching element of the inverter circuit 31b performs a switching operation based on these motor control signals Du, Dv, and Dw, so that a current corresponding to the target assist torque is supplied to the motor 20.

<磁界の影響>
モータ装置は、つぎの懸念事項を有する。
モータ20の三相各相のステータコイル22bは、三相各相のバスバーを介して、基板31に接続されている。三相各相のバスバーは、基板31に設けられるパターン配線を介して、インバータ回路31bの三相各相のアームに接続されている。バスバーおよびパターン配線は、インバータ回路31bとモータ20との間の給電経路を構成する。インバータ回路31bおよび給電経路の周囲には、電流の値に比例する磁界が発生する。
<Effect of magnetic field>
The motor device has the following concerns.
The stator coils 22b of each of the three phases of the motor 20 are connected to the board 31 via the bus bars of each of the three phases. The bus bars for each of the three phases are connected to the arms for each of the three phases of the inverter circuit 31b via pattern wiring provided on the board 31. The bus bar and the pattern wiring constitute a power feeding path between the inverter circuit 31b and the motor 20. A magnetic field proportional to the current value is generated around the inverter circuit 31b and the power supply path.

インバータ回路31bおよび給電経路には、大電流が流れるため、インバータ回路31bおよび給電経路の周囲には、より強い磁界が発生する。このため、たとえば制御装置30の小型化に伴い、インバータ回路31bあるいは給電経路が回転角センサ33(磁気センサ42およびバイアス磁石41)の近傍に位置する場合、磁気センサ42がインバータ回路31bあるいは給電経路の周囲に形成される磁界の影響を受けるおそれがある。 Since a large current flows through the inverter circuit 31b and the power supply path, a stronger magnetic field is generated around the inverter circuit 31b and the power supply path. Therefore, for example, as the control device 30 becomes smaller, if the inverter circuit 31b or the power supply path is located near the rotation angle sensor 33 (magnetic sensor 42 and bias magnet 41), the magnetic sensor 42 may be affected by the magnetic field formed around the

たとえばバイアス磁石41からの理想的な磁束以外にも、インバータ回路31bあるいは給電経路からの磁束が磁気センサ42に印加されることが考えられる。また、インバータ回路31bあるいは給電経路からの磁束がバイアス磁石41からの磁束に干渉することによって、バイアス磁石41の磁界が歪められることも考えられる。この場合、磁気センサ42を通じて検出されるロータ24の回転角θと実際の回転角θとの間に誤差が生じることが懸念される。 For example, in addition to the ideal magnetic flux from the bias magnet 41, magnetic flux from the inverter circuit 31b or the power supply path may be applied to the magnetic sensor 42. It is also conceivable that the magnetic flux from the inverter circuit 31b or the power supply path interferes with the magnetic flux from the bias magnet 41, thereby distorting the magnetic field of the bias magnet 41. In this case, there is a concern that an error may occur between the rotation angle θ of the rotor 24 detected through the magnetic sensor 42 and the actual rotation angle θ.

図2に示すように、たとえば、出力軸23が図中の位置から矢印44で示される方向へ向けて回転角θだけ回転したとき、本来であれば磁気センサ42に付与されるバイアス磁界の向きは実線の矢印43で示される方向から軸線Oを中心として回転角θだけ回転した一点鎖線の矢印45で示される方向に変化する。 As shown in FIG. 2, for example, when the output shaft 23 is rotated by a rotation angle θ from the position shown in the figure in the direction indicated by the arrow 44, the direction of the bias magnetic field that would normally be applied to the magnetic sensor 42 is changes from the direction shown by the solid arrow 43 to the direction shown by the dashed-dotted arrow 45, which is rotated by the rotation angle θ about the axis O.

しかし、磁気センサ42あるいはバイアス磁石41からの理想的な磁束が、インバータ回路31bあるいは給電経路からの磁束の影響を受ける場合、磁気センサ42に付与されるバイアス磁界の向きは矢印45で示される本来の方向ではなく、たとえば、二点鎖線の矢印46で示される方向となる。この矢印46で示される方向は、図2に実線の矢印43で示される方向から回転角θよりも大きな回転角θ1だけ回転した方向になることもあるし、回転角θよりも小さな回転角θ2だけ回転した方向になることもある。このため、磁気センサ42は本来の回転角θではなく、回転角θ1または回転角θ2に応じた電気信号を生成する。したがって、MPU31aは、回転角θ1または回転角θ2に応じた電気信号に基づき、誤ったロータ24の回転角θ1または回転角θ2を演算する。 However, if the ideal magnetic flux from the magnetic sensor 42 or the bias magnet 41 is influenced by the magnetic flux from the inverter circuit 31b or the power supply path, the direction of the bias magnetic field applied to the magnetic sensor 42 will change from the original direction indicated by the arrow 45. For example, the direction is not the direction shown by the dashed double-dashed arrow 46. The direction indicated by this arrow 46 may be a direction rotated by a rotation angle θ1 larger than the rotation angle θ from the direction indicated by the solid line arrow 43 in FIG. 2, or a direction indicated by a rotation angle θ2 smaller than the rotation angle θ. Sometimes the direction is rotated. Therefore, the magnetic sensor 42 generates an electric signal according to the rotation angle θ1 or the rotation angle θ2 instead of the original rotation angle θ. Therefore, the MPU 31a calculates the incorrect rotation angle θ1 or rotation angle θ2 of the rotor 24 based on the electrical signal corresponding to the rotation angle θ1 or rotation angle θ2.

図4のグラフに示すように、誤って演算される回転角θ1,θ2は、実際の回転角θに対して誤差Δθを含む。誤差Δθは、つぎの数式(4)または数式(5)で表される。誤差Δθは、機械角誤差である。 As shown in the graph of FIG. 4, the incorrectly calculated rotation angles θ1 and θ2 include an error Δθ with respect to the actual rotation angle θ. The error Δθ is expressed by the following equation (4) or equation (5). The error Δθ is a mechanical angle error.

Figure 2023136019000005
Figure 2023136019000005

Figure 2023136019000006
Figure 2023136019000006

モータ20の極対数が「Pn」であるとき、正弦信号および余弦信号には、Pn次の高調波が重畳する。Pn次の高調波が重畳した正弦信号および余弦信号を使用して回転角θを演算すると、「Pn±1」次/revの誤差Δθが発生する。たとえば、モータ20の極対数Pnが「5」である場合、4次/revおよび6次/revの誤差Δθが発生する。誤差Δθは、モータ20の三相各相の電流Iu,Iv,Iwの値の大きさに比例して大きくなる。 When the number of pole pairs of the motor 20 is "Pn", Pn-order harmonics are superimposed on the sine signal and the cosine signal. When the rotation angle θ is calculated using a sine signal and a cosine signal on which Pn-order harmonics are superimposed, an error Δθ of “Pn±1” order/rev occurs. For example, when the number of pole pairs Pn of the motor 20 is "5", errors Δθ of the fourth order/rev and the sixth order/rev occur. The error Δθ increases in proportion to the values of the currents Iu, Iv, and Iw of the three phases of the motor 20.

そこで、本実施の形態では、インバータ回路31bあるいは給電経路からの磁束の影響を補償するために、つぎの構成を採用している。
<補正処理部>
図3に示すように、MPU31aは、補正処理部68を有している。補正処理部68は、回転角センサ33により生成される電気信号S1から、インバータ回路31bあるいは給電経路からの磁束の影響を除去するための処理を実行する。
Therefore, in this embodiment, the following configuration is adopted in order to compensate for the influence of magnetic flux from the inverter circuit 31b or the power supply path.
<Correction processing section>
As shown in FIG. 3, the MPU 31a includes a correction processing section 68. The correction processing unit 68 executes processing for removing the influence of magnetic flux from the inverter circuit 31b or the power supply path from the electrical signal S1 generated by the rotation angle sensor 33.

補正処理部68は、補正値演算部68aおよび減算器68bを有している。
補正値演算部68aは、電流センサ54u,54v,54wを通じて検出されるモータ20の三相各相の電流Iu,Iv,Iwの値を取り込む。つぎの数式(6)に示すように、補正値演算部68aは、取り込まれる三相各相の電流Iu,Iv,Iwの値に、定められた比例定数を乗算することにより、電気信号S1に対する補正値S2を演算する。
The correction processing section 68 includes a correction value calculation section 68a and a subtracter 68b.
The correction value calculation unit 68a takes in the values of the currents Iu, Iv, and Iw of each of the three phases of the motor 20 detected through the current sensors 54u, 54v, and 54w. As shown in the following equation (6), the correction value calculation unit 68a multiplies the values of the currents Iu, Iv, and Iw of each of the three phases taken in by a predetermined proportionality constant to calculate the value for the electric signal S1. A correction value S2 is calculated.

Figure 2023136019000007
Figure 2023136019000007

ただし、「MUC」,「MUS」は、U相の電流Iuに対する比例定数である。「MVC」,「MVS」は、V相の電流Ivに対する比例定数である。「MWC」,「MWS」は、W相の電流Iwに対する比例定数である。 However, “M UC ” and “M US ” are proportional constants with respect to the U-phase current Iu. " MVC " and " MVS " are proportional constants for the V-phase current Iv. “ MWC ” and “ MWS ” are proportional constants with respect to the W-phase current Iw.

比例定数は、モータ20の回転角θを予測する予測モデルを使用して決定される。予測モデルは、モータ20の電流値に比例するPn次の高調波が重畳した電気信号S1を使用して、モータ20の回転角θを演算するモデルである。このため、予測モデルから得られる回転角θは、「Pn±1」次/revの誤差Δθを含む。この予測モデルから得られる誤差Δθが実際に計測される誤差Δθと一致するように、比例定数の値が設定される。比例定数は、制御装置30の不揮発性メモリに記憶されている。比例定数の設定方法については、後に詳述する。 The proportionality constant is determined using a prediction model that predicts the rotation angle θ of the motor 20. The prediction model is a model that calculates the rotation angle θ of the motor 20 using the electrical signal S1 on which a Pn-order harmonic proportional to the current value of the motor 20 is superimposed. Therefore, the rotation angle θ obtained from the prediction model includes an error Δθ of “Pn±1” order/rev. The value of the proportionality constant is set so that the error Δθ obtained from this prediction model matches the actually measured error Δθ. The proportionality constant is stored in a non-volatile memory of the control device 30. The method of setting the proportionality constant will be described in detail later.

補正値S2は、正弦信号Ssinに対する第1の補正値S21、および余弦信号Scosに対する第2の補正値S22を含む。第1の補正値S21は、インバータ回路31bあるいは給電経路からの磁束の影響による正弦信号Ssinの変化に対応する値を有する。第2の補正値S22は、インバータ回路31bあるいは給電経路からの磁束の影響による余弦信号Scosの変化に対応する値を有する。第1の補正値S21および第2の補正値S22の値は、電圧値である。 The correction value S2 includes a first correction value S21 for the sine signal S sin and a second correction value S22 for the cosine signal S cos . The first correction value S21 has a value corresponding to a change in the sine signal S sin due to the influence of magnetic flux from the inverter circuit 31b or the power supply path. The second correction value S22 has a value corresponding to a change in the cosine signal S cos due to the influence of magnetic flux from the inverter circuit 31b or the power supply path. The values of the first correction value S21 and the second correction value S22 are voltage values.

第1の補正値S21は、つぎの数式(7)で表される。 The first correction value S21 is expressed by the following equation (7).

Figure 2023136019000008
Figure 2023136019000008

ただし、「MUS・Iu」は、U相の電流Iuの値に応じた正弦信号Ssinの誤差成分である。「MVS・Iv」は、V相の電流Ivの値に応じた正弦信号Ssinの誤差成分である。「MWS・Iw」は、W相の電流Iwの値に応じた正弦信号Ssinの誤差成分である。 However, "M US · Iu" is an error component of the sine signal S sin according to the value of the U-phase current Iu. "M VS · Iv" is an error component of the sine signal S sin according to the value of the V-phase current Iv. “M WS ·Iw” is an error component of the sine signal S sin according to the value of the W-phase current Iw.

第2の補正値S22は、つぎの数式(8)で表される。 The second correction value S22 is expressed by the following equation (8).

Figure 2023136019000009
Figure 2023136019000009

ただし、「MUC・Iu」は、U相の電流Iuの値に応じた余弦信号Scosの誤差成分である。「MVC・Iv」は、V相の電流Ivの値に応じた余弦信号Scosの誤差成分である。「MWC・Iw」は、W相の電流Iwの値に応じた余弦信号Scosの誤差成分である。 However, "M UC · Iu" is an error component of the cosine signal S cos according to the value of the U-phase current Iu. “M VC ·Iv” is an error component of the cosine signal S cos according to the value of the V-phase current Iv. “M WC ·Iw” is an error component of the cosine signal S cos according to the value of the W-phase current Iw.

減算器68bは、回転角センサ33により生成される電気信号S1から、補正値演算部68aにより演算される補正値S2を減算することにより、モータ20の制御に使用する最終的な電気信号S3を演算する。最終的な電気信号S3は、正弦信号Ssinおよび余弦信号Scosを含む。 The subtracter 68b subtracts the correction value S2 calculated by the correction value calculation unit 68a from the electric signal S1 generated by the rotation angle sensor 33, thereby obtaining the final electric signal S3 used for controlling the motor 20. calculate. The final electrical signal S3 includes a sine signal S sin and a cosine signal S cos .

減算器68bは、回転角センサ33により生成される正弦信号Ssinから第1の補正値S21を減算することにより、モータ20の制御に使用する最終的な正弦信号Ssinを演算する。最終的な正弦信号Ssinは、つぎの数式(9)で表される。 The subtracter 68b subtracts the first correction value S21 from the sine signal S sin generated by the rotation angle sensor 33 to calculate the final sine signal S sin used for controlling the motor 20. The final sine signal S sin is expressed by the following equation (9).

Figure 2023136019000010
Figure 2023136019000010

ただし、「θ」はロータ24の回転角であって、添字「M」は機械角であることを示す。
減算器68bは、回転角センサ33により生成される余弦信号Scosから第2の補正値S22を減算することにより、モータ20の制御に使用する最終的な余弦信号Scosを演算する。最終的な余弦信号Scosは、つぎの数式(10)で表される。
However, "θ M " is the rotation angle of the rotor 24, and the subscript "M" indicates the mechanical angle.
The subtracter 68b calculates the final cosine signal S cos used to control the motor 20 by subtracting the second correction value S22 from the cosine signal S cos generated by the rotation angle sensor 33. The final cosine signal S cos is expressed by the following equation (10).

Figure 2023136019000011
Figure 2023136019000011

ただし、「θ」はロータ24の回転角であって、添字「M」は機械角であることを示す。
回転角演算部61は、減算器68bにより演算される最終的な正弦信号Ssinおよび最終的な余弦信号Scosを使用して、ロータ24の回転角θを演算する。最終的な正弦信号Ssin、および最終的な余弦信号Scosは、三相の電流Iu,Iv,Iwの値に応じた誤差成分を含まない電気信号である。このため、最終的な正弦信号Ssinおよび最終的な余弦信号Scosを使用して得られる回転角θは、誤差Δθを含まない正確な値を有する。
However, "θ M " is the rotation angle of the rotor 24, and the subscript "M" indicates the mechanical angle.
The rotation angle calculating section 61 calculates the rotation angle θ of the rotor 24 using the final sine signal S sin and the final cosine signal S cos calculated by the subtracter 68b. The final sine signal S sin and the final cosine signal S cos are electrical signals that do not include error components depending on the values of the three-phase currents Iu, Iv, and Iw. Therefore, the rotation angle θ obtained using the final sine signal S sin and the final cosine signal S cos has an accurate value that does not include the error Δθ.

<比例定数の設定方法>
つぎに、比例定数の設定方法について説明する。比例定数は、制御装置30とは異なる外部のコンピュータ装置を使用したシミュレーションによって決定される。
<How to set the proportionality constant>
Next, a method of setting the proportionality constant will be explained. The proportionality constant is determined by simulation using an external computer device different from the control device 30.

図5のフローチャートに示すように、コンピュータ装置は、誤差Δθを測定する三相の電流Iu,Iv,Iwの値を取り込む(ステップS101)。三相の電流Iu,Iv,Iwの値は、コンピュータ装置のキーボードなどの入力装置を介して入力される。実測条件として、三相の電流Iu,Iv,Iwの値は、所定の値に設定される。 As shown in the flowchart of FIG. 5, the computer device takes in the values of three-phase currents Iu, Iv, and Iw for measuring the error Δθ (step S101). The values of the three-phase currents Iu, Iv, and Iw are input via an input device such as a keyboard of a computer device. As actual measurement conditions, the values of three-phase currents Iu, Iv, and Iw are set to predetermined values.

三相の電流Iu,Iv,Iwは、つぎの数式(11)で表される。 The three-phase currents Iu, Iv, and Iw are expressed by the following equation (11).

Figure 2023136019000012
Figure 2023136019000012

ただし、「θe」はロータ24の回転角であって、添字「e」は電気角であることを示す。「Id」は、d軸電流値である。「Iq」は、q軸電流値である。
つぎに、コンピュータ装置は、予測モデルを使用して、モータ20の回転角θを演算する(ステップS102)。コンピュータ装置は、ステップS101で取り込まれる三相の電流Iu,Iv,Iwの値を予測モデルに適用する。予測モデルは、つぎの数式(12)で表される。
However, "θe" is the rotation angle of the rotor 24, and the subscript "e" indicates the electrical angle. "Id" is the d-axis current value. "Iq" is the q-axis current value.
Next, the computer device uses the prediction model to calculate the rotation angle θ of the motor 20 (step S102). The computer device applies the values of the three-phase currents Iu, Iv, and Iw taken in step S101 to the prediction model. The prediction model is expressed by the following equation (12).

Figure 2023136019000013
Figure 2023136019000013

ただし、「θ」はロータ24の回転角であって、添字「M」は機械角であることを示す。「Atan」は、「Arctan」を略記したものであって、逆正接関数であることを示す。「Ssin」は、正弦信号である。「Scos」は余弦信号である。 However, "θ M " is the rotation angle of the rotor 24, and the subscript "M" indicates the mechanical angle. "Atan" is an abbreviation of "Arctan" and indicates an arctangent function. “S sin ” is a sine signal. “S cos ” is a cosine signal.

予測モデルの正弦信号Ssinは、三相の電流Iu,Iv,Iwの値に応じた誤差成分を含んでいる。予測モデルの正弦信号Ssinは、つぎの数式(13)で表される。 The sine signal S sin of the prediction model includes error components corresponding to the values of the three-phase currents Iu, Iv, and Iw. The sine signal S sin of the prediction model is expressed by the following equation (13).

Figure 2023136019000014
Figure 2023136019000014

ただし、「R」は、振幅である。「θ」はロータ24の回転角であって、添字「M」は機械角であることを示す。「MUS・Iu」は、U相の電流Iuの値に応じた正弦信号Ssinの誤差成分である。「MVS・Iv」は、V相の電流Ivの値に応じた正弦信号Ssinの誤差成分である。「MWS・Iw」は、W相の電流Iwの値に応じた正弦信号Ssinの誤差成分である。 However, "R" is the amplitude. “θ M ” is the rotation angle of the rotor 24, and the subscript “M” indicates the mechanical angle. "M US · Iu" is an error component of the sine signal S sin according to the value of the U-phase current Iu. "M VS · Iv" is an error component of the sine signal S sin according to the value of the V-phase current Iv. “M WS ·Iw” is an error component of the sine signal S sin according to the value of the W-phase current Iw.

なお、シミュレーションの実行開始時、比例定数MUS,MVS,MWSの値は、所定の初期値に設定されている。
予測モデルの余弦信号Scosは、三相の電流Iu,Iv,Iwの値に応じた誤差成分を含んでいる。予測モデルの余弦信号Scosは、つぎの数式(14)で表される。
Note that at the start of execution of the simulation, the values of the proportionality constants M US , M VS , and M WS are set to predetermined initial values.
The cosine signal S cos of the prediction model includes error components depending on the values of the three-phase currents Iu, Iv, and Iw. The cosine signal S cos of the prediction model is expressed by the following equation (14).

Figure 2023136019000015
Figure 2023136019000015

ただし、「R」は、振幅である。「θ」はロータ24の回転角であって、添字「M」は機械角であることを示す。「MUC・Iu」は、U相の電流Iuの値に応じた余弦信号Scosの誤差成分である。「MVC・Iv」は、V相の電流Ivの値に応じた余弦信号Scosの誤差成分である。「MWC・Iw」は、W相の電流Iwの値に応じた余弦信号Scosの誤差成分である。 However, "R" is the amplitude. “θ M ” is the rotation angle of the rotor 24, and the subscript “M” indicates the mechanical angle. "M UC · Iu" is an error component of the cosine signal S cos according to the value of the U-phase current Iu. “M VC ·Iv” is an error component of the cosine signal S cos according to the value of the V-phase current Iv. “M WC ·Iw” is an error component of the cosine signal S cos according to the value of the W-phase current Iw.

なお、シミュレーションの実行開始時、比例定数MUC,MVC,MWCの値は、所定の初期値に設定されている。
つぎに、コンピュータ装置は、ステップS102で演算されるモータ20の回転角θについて、FFT分析(Fast Fourier Transform Analysis)を実行する(ステップS103)。FFT分析は、時間領域の電気信号を周波数領域の電気信号へ変換することにより、時刻軸上の電気信号に含まれる周波数成分と、周波数成分ごとの大きさ(レベル)とを検出する処理である。
Note that at the start of execution of the simulation, the values of the proportionality constants M UC , M VC , and M WC are set to predetermined initial values.
Next, the computer device performs FFT analysis (Fast Fourier Transform Analysis) on the rotation angle θ M of the motor 20 calculated in step S102 (step S103). FFT analysis is a process that detects the frequency components included in the electrical signal on the time axis and the magnitude (level) of each frequency component by converting the electrical signal in the time domain to the electrical signal in the frequency domain. .

FFT分析によって、ステップS102で演算されるモータ20の回転角θは、各周波数成分に分解される。各周波数成分は、さらに、余弦波成分である実部と、正弦波成分である虚部とに分解することができる。コンピュータ装置は、「Pn±1」次/revの周波数成分の余弦波成分である実部と、正弦波成分である虚部とを抽出する。モータ20の極対数Pnが「5」である場合、コンピュータ装置は、4次/revおよび6次/revの周波数成分の余弦波成分である実部と、正弦波成分である虚部とを抽出する。コンピュータ装置は、抽出した余弦波成分の振幅および位相を演算する。また、コンピュータ装置は、抽出した正弦波成分の振幅および位相を演算する。 By FFT analysis, the rotation angle θ M of the motor 20 calculated in step S102 is decomposed into each frequency component. Each frequency component can be further decomposed into a real part, which is a cosine wave component, and an imaginary part, which is a sine wave component. The computer device extracts the real part, which is a cosine wave component, and the imaginary part, which is a sine wave component, of the "Pn±1" order/rev frequency component. When the number of pole pairs Pn of the motor 20 is "5", the computer device extracts the real part, which is a cosine wave component, and the imaginary part, which is a sine wave component, of the 4th/rev and 6th/rev frequency components. do. The computer device calculates the amplitude and phase of the extracted cosine wave component. The computer device also calculates the amplitude and phase of the extracted sine wave component.

つぎに、コンピュータ装置は、予測モデルから得られる回転角θに含まれる「Pn±1」次/revの誤差Δθが、実測の回転角θに含まれる「Pn±1」次/revの誤差Δθと一致するかどうかを判定する(ステップS104)。 Next, the computer device determines that the "Pn±1" order/rev error Δθ included in the rotation angle θ M obtained from the prediction model is the "Pn±1" order/rev error included in the actual rotation angle θ. It is determined whether it matches Δθ (step S104).

実測のモータ20の回転角θは、モータ装置10を実際に駆動させた状態で制御装置30が演算する回転角θである。実測条件として、モータ20には、先のステップS101で予測モデルに適用される三相の電流Iu,Iv,Iwと同じ値の三相の電流Iu,Iv,Iwが供給される。コンピュータ装置は、制御装置30が演算する回転角θを、定められたサンプリング周期で取得する。取得されるロータ24の1回転分の回転角θと、理想的なロータ24の1回転分の回転角θとの差の値が、実測の回転角θに含まれる誤差Δθである。 The actually measured rotation angle θ of the motor 20 is the rotation angle θ calculated by the control device 30 while the motor device 10 is actually driven. As an actual measurement condition, the motor 20 is supplied with three-phase currents Iu, Iv, and Iw having the same values as the three-phase currents Iu, Iv, and Iw applied to the prediction model in step S101. The computer device acquires the rotation angle θ calculated by the control device 30 at a predetermined sampling period. The value of the difference between the acquired rotation angle θ for one rotation of the rotor 24 and the ideal rotation angle θ for one rotation of the rotor 24 is the error Δθ included in the actually measured rotation angle θ.

コンピュータ装置は、実測の回転角θにおける「Pn±1」次/revの周波数成分の余弦波成分の振幅および位相を記憶している。また、コンピュータ装置は、実測の回転角θにおける「Pn±1」次/revの周波数成分の正弦波成分の振幅および位相を記憶している。これら振幅および位相は、つぎのようにして得られる。 The computer device stores the amplitude and phase of the cosine wave component of the "Pn±1" order/rev frequency component at the actually measured rotation angle θ. The computer device also stores the amplitude and phase of the sine wave component of the "Pn±1" order/rev frequency component at the actually measured rotation angle θ. These amplitudes and phases are obtained as follows.

コンピュータ装置は、取得されるロータ24の1回転分の回転角θ、すなわち「0°~360°」を2個のデータに線形補間する。「n」は自然数であって、たとえば、ロータ24の回転速度ωに応じて設定される。コンピュータ装置は、補間した2個のデータについて、FFT分析を実行することにより、実測の回転角θを各周波数成分に分解するとともに、各周波数成分の余弦波成分である実部と、正弦波成分である虚部とを取得する。 The computer device linearly interpolates the acquired rotation angle θ of one rotation of the rotor 24, ie, “0° to 360°” into 2 n pieces of data. “n” is a natural number, and is set depending on the rotational speed ω of the rotor 24, for example. By performing FFT analysis on the 2n interpolated data, the computer device decomposes the actually measured rotation angle θ into each frequency component, and extracts the real part, which is a cosine wave component, and the sine wave component of each frequency component. The imaginary part, which is the component, is obtained.

コンピュータ装置は、「Pn±1」次/revの周波数成分における余弦波成分および正弦波成分を抽出する。コンピュータ装置は、抽出した余弦波成分の振幅および位相を演算する。また、コンピュータ装置は、抽出した正弦波成分の振幅および位相を演算する。コンピュータ装置は、抽出した余弦波成分の振幅および位相、ならびに、抽出した正弦波成分の振幅および位相を、自己の不揮発性のメモリに記憶する。 The computer device extracts a cosine wave component and a sine wave component in the "Pn±1" order/rev frequency component. The computer device calculates the amplitude and phase of the extracted cosine wave component. The computer device also calculates the amplitude and phase of the extracted sine wave component. The computer device stores the amplitude and phase of the extracted cosine wave component and the amplitude and phase of the extracted sine wave component in its own non-volatile memory.

コンピュータ装置は、つぎの2つの条件(A1),(A2)の両方が満たされるとき、予測モデルから得られる回転角θに含まれる「Pn±1」次/revの誤差Δθが、実測の回転角θに含まれる「Pn±1」次/revの誤差Δθと一致すると判定する(ステップS104でYES)。このとき予測モデルで使用された比例定数が、補正値演算部68aで使用される比例定数として、制御装置30の不揮発性メモリに記憶される。 The computer device determines that when both of the following two conditions (A1) and (A2) are satisfied, the error Δθ of "Pn±1" order/rev included in the rotation angle θ M obtained from the prediction model is equal to that of the actual measurement. It is determined that the error Δθ of "Pn±1" order/rev included in the rotation angle θ matches the error Δθ (YES in step S104). At this time, the proportionality constant used in the prediction model is stored in the nonvolatile memory of the control device 30 as a proportionality constant used by the correction value calculation section 68a.

(A1)ステップS103で得られた予想モデルに基づく回転角θにおける「Pn±1」次/revの余弦波成分の振幅および位相が、コンピュータ装置に記憶されている実測の回転角θにおける「Pn±1」次/revの余弦波成分の振幅および位相と一致すること。 (A1) The amplitude and phase of the "Pn±1" order/rev cosine wave component at the rotation angle θ M based on the predicted model obtained in step S103 are the same as those at the actually measured rotation angle θ M stored in the computer device. Must match the amplitude and phase of the "Pn±1" order/rev cosine wave component.

(A2)ステップS103で得られた予想モデルに基づく回転角θにおける「Pn±1」次/revの正弦波成分の振幅および位相が、コンピュータ装置に記憶されている実測の回転角θにおける「Pn±1」次/revの正弦波成分の振幅および位相と一致すること。 (A2) The amplitude and phase of the "Pn±1" order/rev sine wave component at the rotation angle θ M based on the predicted model obtained in step S103 are the same as those at the actually measured rotation angle θ M stored in the computer device. Must match the amplitude and phase of the "Pn±1" order/rev sine wave component.

コンピュータ装置は、2つの条件(A1),(A2)の少なくとも一方を満たさないとき、予測モデルから得られる回転角θに含まれる「Pn±1」次/revの誤差Δθが、実測の回転角θに含まれる「Pn±1」次/revの誤差Δθと一致しないと判定する(ステップS104でNO)。 When at least one of the two conditions (A1) and (A2) is not satisfied, the computer device determines that the error Δθ of "Pn±1" order/rev included in the rotation angle θ M obtained from the prediction model is equal to the actually measured rotation. It is determined that it does not match the error Δθ of "Pn±1" order/rev included in the angle θ (NO in step S104).

このとき、コンピュータ装置は、予測モデルの比例定数の値を変更し(ステップS105)、先のステップS102へ処理を移行する。コンピュータ装置は、予測モデルの比例定数の現在値に対して所定の値を加算または減算することにより、予測モデルの比例定数の値を変更する。ステップS102~ステップS105の処理は、先の2つの条件(A1),(A2)の両方が満たされるまで繰り返し実行される。 At this time, the computer device changes the value of the proportionality constant of the prediction model (step S105), and moves the process to the previous step S102. The computer device changes the value of the proportionality constant of the predictive model by adding or subtracting a predetermined value to or from the current value of the proportionality constant of the predictive model. The processes from step S102 to step S105 are repeatedly executed until both of the previous two conditions (A1) and (A2) are satisfied.

<実施の形態の効果>
本実施の形態によれば、以下の効果を得ることができる。
(1)MPU31aは、モータ20に供給される電流の値に対して、定められた比例定数を乗算することにより電気信号S1に対する補正値S2を演算し、補正値S2を使用して電気信号S1を補正する。モータに供給される電流の値に対して、定められた比例定数を乗算することにより、電気信号S1に対する補正値が得られるため、MPU31aの演算負荷を低減することができる。また、補正値S2を使用して電気信号S1を補正することにより、電気信号S1から磁界の影響を除去することができる。磁界の影響が除去された補正後の電気信号S3を使用することにより、誤差Δθを含まない、より正確な回転角θを演算することができる。
<Effects of the embodiment>
According to this embodiment, the following effects can be obtained.
(1) The MPU 31a calculates a correction value S2 for the electric signal S1 by multiplying the value of the current supplied to the motor 20 by a predetermined proportionality constant, and uses the correction value S2 to calculate the correction value S2 for the electric signal S1. Correct. By multiplying the value of the current supplied to the motor by a predetermined proportionality constant, a correction value for the electrical signal S1 can be obtained, so that the calculation load on the MPU 31a can be reduced. Furthermore, by correcting the electrical signal S1 using the correction value S2, the influence of the magnetic field can be removed from the electrical signal S1. By using the corrected electrical signal S3 from which the influence of the magnetic field has been removed, it is possible to calculate a more accurate rotation angle θ that does not include the error Δθ.

なお、回転角センサ33により生成される電気信号S1に対してローパスフィルタ処理を施すことにより、磁界の影響による電気信号S1の誤差成分を除去することが考えられる。しかし、ロータ24の回転速度が遅いときには、電気信号S1が限りなく低周波の信号になる。また、応答速度も低下する。このため、ローパスフィルタのみでは、磁界の影響による電気信号S1の誤差成分を除去することができないおそれがある。 Note that it is possible to remove error components of the electrical signal S1 due to the influence of the magnetic field by performing low-pass filter processing on the electrical signal S1 generated by the rotation angle sensor 33. However, when the rotational speed of the rotor 24 is slow, the electric signal S1 becomes an infinitely low frequency signal. Furthermore, the response speed also decreases. Therefore, there is a possibility that the error component of the electric signal S1 due to the influence of the magnetic field cannot be removed using only the low-pass filter.

(2)補正値S2は、磁界の影響を受けることにより発生する電気信号S1の誤差成分である。MPU31aは、電気信号S1から補正値S2を減算することにより、電気信号S1を補正する。電気信号S1から補正値S2を減算することにより、電気信号の誤差成分を除去することができる。また、電気信号S1から補正値S2を減算するだけでよいので、MPU31aの演算負荷を低減することができる。 (2) The correction value S2 is an error component of the electric signal S1 generated due to the influence of the magnetic field. The MPU 31a corrects the electrical signal S1 by subtracting the correction value S2 from the electrical signal S1. By subtracting the correction value S2 from the electrical signal S1, the error component of the electrical signal can be removed. Furthermore, since it is only necessary to subtract the correction value S2 from the electrical signal S1, the calculation load on the MPU 31a can be reduced.

(3)電気信号S1は、正弦信号Ssinと余弦信号Scosとを含んでいる。MPU31aは、正弦信号Ssinに対する第1の補正値S21、および、余弦信号Scosに対する第2の補正値S22を演算する。MPU31aは、正弦信号Ssinから第1の補正値S21を減算することにより正弦信号Ssinを補正する。すなわち、正弦信号Ssinから第1の補正値S21を減算することにより、磁界の影響による正弦信号Ssinの誤差成分を除去することができる。MPU31aは、余弦信号Scosから第2の補正値S22を減算することにより余弦信号Scosを補正する。すなわち、余弦信号Scosから第2の補正値S22を減算することにより、磁界の影響による余弦信号Scosの誤差成分を除去することができる。そして、MPU31aは、磁界の影響が除去された正弦信号Ssinおよび余弦信号Scosを使用することにより、より正確な回転角θを演算することができる。 (3) The electrical signal S1 includes a sine signal S sin and a cosine signal S cos . The MPU 31a calculates a first correction value S21 for the sine signal S sin and a second correction value S22 for the cosine signal S cos . The MPU 31a corrects the sine signal S sin by subtracting the first correction value S21 from the sine signal S sin . That is, by subtracting the first correction value S21 from the sine signal S sin , it is possible to remove the error component of the sine signal S sin due to the influence of the magnetic field. The MPU 31a corrects the cosine signal S cos by subtracting the second correction value S22 from the cosine signal S cos . That is, by subtracting the second correction value S22 from the cosine signal S cos , it is possible to remove the error component of the cosine signal S cos due to the influence of the magnetic field. Then, the MPU 31a can calculate a more accurate rotation angle θ by using the sine signal S sin and the cosine signal S cos from which the influence of the magnetic field has been removed.

(4)モータ20の極対数が「Pn」であるとき、補正値S2は、電気信号S1の「Pn±1」次の誤差成分である。
モータ20の極対数が「Pn」であるとき、回転角センサ33により生成される電気信号S1には、Pn次の高調波が重畳する。Pn次の高調波が重畳した電気信号S1を使用して回転角θを演算すると、「Pn±1」次の誤差が発生する。この点、補正値S2を使用して電気信号S1を補正することにより、電気信号S1の「Pn±1」次の誤差成分を除去することができる。
(4) When the number of pole pairs of the motor 20 is "Pn", the correction value S2 is an error component of the order "Pn±1" of the electric signal S1.
When the number of pole pairs of the motor 20 is "Pn", a Pn-order harmonic is superimposed on the electrical signal S1 generated by the rotation angle sensor 33. When the rotation angle θ is calculated using the electric signal S1 on which Pn-order harmonics are superimposed, an error of “Pn±1” order occurs. In this regard, by correcting the electrical signal S1 using the correction value S2, it is possible to remove the "Pn±1" order error component of the electrical signal S1.

なお、「Pn±1」次/revの補正マップを使用して、回転角センサ33により生成される電気信号S1を補正することが考えられる。この場合、演算周期毎に補正マップを参照して、電気信号S1の適切な振幅および位相を取得する。電気信号S1は、ロータ24の回転角θに応じて、「Pn±1」次/revのサインテーブルを参照して補正される。サインテーブルは、たとえば、Rsin{(Pn-1)θ+φ1}、および、Rsin{(Pn+1)θ+φ2}である。「Pn」は極対数、「R1,R2」は振幅、「φ1,φ2」は位相である。 Note that it is conceivable to correct the electrical signal S1 generated by the rotation angle sensor 33 using the "Pn±1" order/rev correction map. In this case, the appropriate amplitude and phase of the electrical signal S1 are obtained by referring to the correction map every calculation cycle. The electric signal S1 is corrected according to the rotation angle θ of the rotor 24 with reference to a sine table of "Pn±1" order/rev. The sine tables are, for example, R 1 sin {(Pn-1)θ+φ1} and R 2 sin{(Pn+1)θ+φ2}. "Pn" is the number of pole pairs, "R1, R2" is the amplitude, and "φ1, φ2" is the phase.

しかし、この補正処理を実行する場合、MPU31aの演算負荷が増加するおそれがある。また、メモリの消費量も増加するおそれがある。このため、より高性能なMPU31aが必要となることにより、製品コストの増加が懸念される。この点、本実施の形態によれば、三相の電流に応じた補正マップを作成する必要がない。また、新テーブルを参照する必要もない。このため、MPU31aの演算負荷を低減することができる。また、メモリの使用量も抑えることができる。したがって、製品コストを低減することができる。 However, when executing this correction process, there is a possibility that the calculation load on the MPU 31a increases. Furthermore, memory consumption may also increase. Therefore, since a higher performance MPU 31a is required, there is a concern that the product cost will increase. In this regard, according to the present embodiment, there is no need to create a correction map according to the three-phase currents. Also, there is no need to refer to a new table. Therefore, the calculation load on the MPU 31a can be reduced. Furthermore, memory usage can also be reduced. Therefore, product costs can be reduced.

(5)比例定数の値は、モータ20の電流値に比例するPn次の高調波が重畳する電気信号S1を使用して回転角θを演算する予測モデルを使用して決定される。予測モデルから得られる回転角θの誤差Δθが、実際に計測される回転角θの誤差Δと一致するように、比例定数の値が設定される。このように、回転角θの予測モデルを使用することにより、比例定数の値を適切に設定することができる。 (5) The value of the proportionality constant is determined using a prediction model that calculates the rotation angle θ using the electric signal S1 on which a Pn-order harmonic proportional to the current value of the motor 20 is superimposed. The value of the proportionality constant is set so that the error Δθ in the rotation angle θ obtained from the prediction model matches the error Δ in the actually measured rotation angle θ. In this way, by using the prediction model of the rotation angle θ, the value of the proportionality constant can be appropriately set.

(6)回転角センサ33は、磁気センサ42を有している。磁気センサ42は、モータ20の出力軸23の軸方向の端部に固定されたバイアス磁石41に対して軸方向に対向するように、基板31に設けられている。磁気センサ42は、バイアス磁石41の回転に伴う磁界の変化に応じた電気信号S1を生成する。磁気センサ42、あるいは磁気センサが生成する電気信号S1は、モータ20に供給される電流に起因して発生する磁界の影響を受けるおそれがある。このため、MPU31aは、補正値S2を使用して電気信号S1を補正することにより、電気信号S1から磁界の影響を除去する機能を有することが好ましい。 (6) The rotation angle sensor 33 has a magnetic sensor 42. The magnetic sensor 42 is provided on the substrate 31 so as to face in the axial direction a bias magnet 41 fixed to an axial end of the output shaft 23 of the motor 20 . The magnetic sensor 42 generates an electric signal S1 in response to changes in the magnetic field as the bias magnet 41 rotates. The magnetic sensor 42 or the electric signal S1 generated by the magnetic sensor may be affected by the magnetic field generated due to the current supplied to the motor 20. Therefore, it is preferable that the MPU 31a has a function of removing the influence of the magnetic field from the electrical signal S1 by correcting the electrical signal S1 using the correction value S2.

(7)モータ20は、電動パワーステアリング装置の駆動源であって、ステアリングホイールの操作を補助するためのアシスト力を発生するアシストモータである。電動パワーステアリング装置には、動作に対する信頼性が要求される。電気信号S1の補正機能を有する制御装置30は、電動パワーステアリング装置に好適である。 (7) The motor 20 is a drive source of the electric power steering device, and is an assist motor that generates an assist force to assist the operation of the steering wheel. Electric power steering devices are required to have operational reliability. The control device 30 having the function of correcting the electric signal S1 is suitable for an electric power steering device.

<他の実施の形態>
本実施の形態は、つぎのように変更して実施してもよい。
・バッテリ53からの直流電力は、バスバーを介して基板31に供給される。このため、磁気センサ42が、バスバーの周囲に形成される磁界の影響を受けるおそれがある。この直流電力に起因する電気信号S1の誤差成分も、本実施の形態と同様にして除去することができる。ただし、この場合、直流電流が余弦信号Scosおよび正弦信号Ssinに与える影響を考慮するため、2つの比例定数を追加する必要がある。すなわち、合計8つの比例定数が必要となる。
<Other embodiments>
This embodiment may be modified and implemented as follows.
- DC power from the battery 53 is supplied to the board 31 via the bus bar. Therefore, the magnetic sensor 42 may be affected by the magnetic field formed around the bus bar. The error component of the electrical signal S1 caused by this DC power can also be removed in the same manner as in this embodiment. However, in this case, it is necessary to add two proportionality constants in order to consider the influence of the direct current on the cosine signal S cos and the sine signal S sin . That is, a total of eight proportionality constants are required.

・回転角センサ33は、磁気式のレゾルバであってもよい。レゾルバは、磁気センサであって、モータ20と同軸に設けられる。このため、レゾルバにより生成される電気信号が、三相の電流Iu,Iv,Iwに起因して発生する磁界の影響を受けるおそれがある。 - The rotation angle sensor 33 may be a magnetic resolver. The resolver is a magnetic sensor and is provided coaxially with the motor 20. Therefore, the electrical signal generated by the resolver may be affected by the magnetic field generated due to the three-phase currents Iu, Iv, and Iw.

・モータ20は、ステアリングホイールと転舵輪との間の動力伝達が分離されたステアバイワイヤ方式の操舵装置の駆動源であってもよい。たとえば、モータ20は、ステアリングホイールに付与する操舵反力を発生する反力モータであってもよい。また、モータ20は、転舵輪を転舵させるための転舵力を発生する転舵モータであってもよい。ステアバイワイヤ方式の操舵装置には、動作に対する信頼性が要求される。電気信号S1の補正機能を有する制御装置30は、ステアバイワイヤ方式の操舵装置に好適である。 - The motor 20 may be a drive source of a steer-by-wire steering device in which power transmission between the steering wheel and steered wheels is separated. For example, the motor 20 may be a reaction force motor that generates a steering reaction force to be applied to the steering wheel. Further, the motor 20 may be a steering motor that generates a steering force for steering the steered wheels. Steer-by-wire steering devices are required to have operational reliability. The control device 30 having a function of correcting the electric signal S1 is suitable for a steer-by-wire steering device.

・モータ20は、車両の操舵装置の駆動源にかぎらず、各種の機械装置の駆動源であってもよい。機械装置は、たとえばモータにより駆動する工作機械であってもよい。 - The motor 20 is not limited to a drive source for a vehicle steering device, but may be a drive source for various mechanical devices. The mechanical device may be a machine tool driven by a motor, for example.

20…モータ
23…出力軸
30…制御装置(モータ制御装置)
31…基板
31a…MPU(制御回路)
33…回転角センサ
41…バイアス磁石(永久磁石)
42…磁気センサ
US,MVS,MWS…正弦信号に対する比例定数
UC,MVC,MWC…余弦信号に対する比例定数
S1…電気信号
S2…補正値
S21…第1の補正値
S22…第2の補正値
sin…正弦信号
cos…余弦信号
20...Motor 23...Output shaft 30...Control device (motor control device)
31... Board 31a... MPU (control circuit)
33...Rotation angle sensor 41...Bias magnet (permanent magnet)
42...Magnetic sensor MUS , MVS , MWS ...Proportionality constant for sine signal MUC , MVC , MWC ...Proportionality constant for cosine signal S1...Electric signal S2...Correction value S21...First correction value S22...First correction value 2 correction value S sin ...Sine signal S cos ...Cosine signal

Claims (8)

モータの出力軸に対して軸方向に対向する基板と、
前記出力軸と同軸に設けられる回転角センサであって、前記出力軸の回転に応じた電気信号を生成する磁気式の回転角センサと、
前記基板に設けられる制御回路であって、前記電気信号に基づき前記モータの回転角を演算し、前記回転角を使用して前記モータを制御する制御回路と、を備え、
前記電気信号は、前記モータに供給される電流に起因して発生する磁界の影響を受け、
前記制御回路は、前記モータに供給される電流の値に対して、定められた比例定数を乗算することにより前記電気信号に対する補正値を演算し、前記補正値を使用して前記電気信号を補正するように構成されるモータ制御装置。
a board facing the output shaft of the motor in the axial direction;
a magnetic rotation angle sensor that is provided coaxially with the output shaft and generates an electrical signal in accordance with the rotation of the output shaft;
a control circuit provided on the substrate, the control circuit calculating a rotation angle of the motor based on the electric signal and controlling the motor using the rotation angle;
The electrical signal is influenced by a magnetic field generated due to the current supplied to the motor,
The control circuit calculates a correction value for the electrical signal by multiplying the value of the current supplied to the motor by a predetermined proportionality constant, and uses the correction value to correct the electrical signal. A motor control device configured to.
前記補正値は、前記磁界の影響を受けることにより発生する前記電気信号の誤差成分であって、
前記制御回路は、前記電気信号から前記補正値を減算することにより、前記電気信号を補正するように構成される請求項1に記載のモータ制御装置。
The correction value is an error component of the electrical signal that occurs due to the influence of the magnetic field,
The motor control device according to claim 1, wherein the control circuit is configured to correct the electrical signal by subtracting the correction value from the electrical signal.
前記電気信号は、前記モータの回転に対して正弦状に変化する電気信号である正弦信号と、
前記正弦信号に対して90°だけ位相が遅れた電気信号である余弦信号と、を含み、
前記制御回路は、前記正弦信号に対する第1の補正値、および、前記余弦信号に対する第2の補正値を演算し、
前記正弦信号から前記第1の補正値を減算することにより前記正弦信号を補正するとともに、前記余弦信号から前記第2の補正値を減算することにより前記余弦信号を補正し、
前記正弦信号および前記余弦信号に基づき逆正接値を演算することにより、前記回転角を演算するように構成される請求項2に記載のモータ制御装置。
The electric signal is a sine signal that is an electric signal that changes sinusoidally with respect to the rotation of the motor;
a cosine signal which is an electrical signal whose phase is delayed by 90° with respect to the sine signal,
The control circuit calculates a first correction value for the sine signal and a second correction value for the cosine signal,
correcting the sine signal by subtracting the first correction value from the sine signal, and correcting the cosine signal by subtracting the second correction value from the cosine signal;
The motor control device according to claim 2, wherein the rotation angle is calculated by calculating an arctangent value based on the sine signal and the cosine signal.
前記モータの極対数が「Pn」であるとき、前記補正値は、前記電気信号の「Pn±1」次の誤差成分である請求項1~請求項3のうちいずれか一項に記載のモータ制御装置。 The motor according to any one of claims 1 to 3, wherein when the number of pole pairs of the motor is "Pn", the correction value is an error component of "Pn±1" order of the electric signal. Control device. 前記比例定数の値は、前記モータの電流値に比例するPn次の高調波が重畳する前記電気信号を使用して前記回転角を演算する予測モデルを使用して決定されるものであって、
前記予測モデルから得られる前記回転角の誤差が、実際に計測される前記回転角の誤差と一致するように、前記比例定数の値が設定される請求項4に記載のモータ制御装置。
The value of the proportionality constant is determined using a prediction model that calculates the rotation angle using the electrical signal on which a Pn-order harmonic proportional to the current value of the motor is superimposed,
The motor control device according to claim 4, wherein the value of the proportionality constant is set so that the error in the rotation angle obtained from the prediction model matches the error in the rotation angle actually measured.
前記回転角センサは、前記出力軸の軸方向の端部に固定された磁石に対して軸方向に対向するように前記基板に設けられる磁気センサを有し、
前記磁気センサは、前記磁石の回転に伴う磁界の変化に応じた電気信号を生成するように構成される請求項1~請求項5のうちいずれか一項に記載のモータ制御装置。
The rotation angle sensor includes a magnetic sensor provided on the substrate so as to be axially opposed to a magnet fixed to an axial end of the output shaft,
The motor control device according to any one of claims 1 to 5, wherein the magnetic sensor is configured to generate an electric signal in response to a change in the magnetic field as the magnet rotates.
前記モータは、電動パワーステアリング装置の駆動源であって、ステアリングホイールの操作を補助するためのアシスト力を発生するアシストモータである請求項1~請求項6のうちいずれか一項に記載のモータ制御装置。 The motor according to any one of claims 1 to 6, wherein the motor is a drive source of an electric power steering device and is an assist motor that generates an assist force to assist operation of a steering wheel. Control device. 前記モータは、ステアバイワイヤ方式の操舵装置の駆動源であって、転舵輪を転舵させるための転舵力を発生する転舵モータ、または、ステアリングホイールに付与する操舵反力を発生する反力モータである請求項1~請求項6のうちいずれか一項に記載のモータ制御装置。 The motor is a drive source of a steer-by-wire steering device, and is a steering motor that generates a steering force for steering steered wheels, or a reaction force that generates a steering reaction force to be applied to a steering wheel. The motor control device according to any one of claims 1 to 6, which is a motor.
JP2022041415A 2022-03-16 2022-03-16 Motor controller Pending JP2023136019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022041415A JP2023136019A (en) 2022-03-16 2022-03-16 Motor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022041415A JP2023136019A (en) 2022-03-16 2022-03-16 Motor controller

Publications (1)

Publication Number Publication Date
JP2023136019A true JP2023136019A (en) 2023-09-29

Family

ID=88145455

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022041415A Pending JP2023136019A (en) 2022-03-16 2022-03-16 Motor controller

Country Status (1)

Country Link
JP (1) JP2023136019A (en)

Similar Documents

Publication Publication Date Title
JP5200628B2 (en) Motor control device and electric power steering device
Hwang et al. Compensation of amplitude imbalance and imperfect quadrature in resolver signals for PMSM drives
JP5310815B2 (en) Motor drive control device and electric power steering device using the same
US9112436B2 (en) System for controlling controlled variable of rotary machine
JP4039317B2 (en) Electric power steering device
EP3243728B1 (en) Motor control device, electric power steering device, and vehicle
KR20060120015A (en) Electric power steering device
JP5273451B2 (en) Motor control device
Raja et al. Effect of position sensor error on the performance of permanent magnet machine drives
EP1583217B1 (en) Motor drive-controlling device and electric power-steering device
JP2009171726A (en) Motor control unit and electric power steering system
JP6710994B2 (en) Rotation angle detector
JP3804686B2 (en) Motor drive control device and electric power steering device
JP2009136034A (en) Motor control device
JP4269278B2 (en) Rotation torque direction detection device for brushless motor
JP2020043643A (en) Control device for three-phase rotary electric machine
JP7090812B2 (en) Control device for AC rotary electric machine and electric power steering device
US11736048B1 (en) Feedforward current control for dual wound synchronous motor drives
JP2023136019A (en) Motor controller
CN117178471A (en) Motor control device and motor control method
JP5952009B2 (en) Electric power steering device
JP2008155683A (en) Electric power steering device
Hwang et al. Compensation of position error due to amplitude imbalance in resolver signals
Kwon et al. Compensation of amplitude imbalance of resolver signal for PMSM drives
US20230249742A1 (en) Controller for rotary electric machine, and electric power steering apparatus