Device and method for controlling rotary electric machine
11863107 ยท 2024-01-02
Assignee
Inventors
Cpc classification
H02P6/153
ELECTRICITY
International classification
Abstract
A control device for controlling a rotary electric machine, the control device includes a current command unit, a voltage conversion device, a current conversion device, a signal demodulation device, an error compensation unit, an adding device and a position estimation device. The current command unit provides a d-axis current command and a q-axis current command. The current conversion device converts a current of the rotary electric machine to a synchronous reference coordinate current. The signal demodulation device computes a current variation of a high-frequency synchronous reference coordinate current. The error compensation device outputs a first correction value. The adding device adds the current variation of the high-frequency synchronous reference coordinate current and the first correction value to generate a second correction value. Based on the second correction value, the position estimation device adjusts a phase estimation value for the current conversion device and the voltage conversion device.
Claims
1. A control device for controlling a rotary electric machine, the control device comprising: a current command unit, configured to provide a d-axis current command and a q-axis current command; a voltage conversion device, electrically coupled to the current command unit and the rotary electric machine; a current conversion device, converting a rotary electric machine current passing through the rotary electric machine into a synchronous reference coordinate current; a signal demodulation device, receiving the synchronous reference coordinate current and computing a high-frequency current variation of the synchronous reference coordinate current; an error compensation unit, configured to output a first correction value corresponding to the d-axis current command and the q-axis current command, based on the d-axis current command and the q-axis current command respectively; an adding device, receiving the high-frequency current variation of the synchronous reference coordinate current and adding the high-frequency current variation of the synchronous reference coordinate current and the first correction value to generate a second correction value to estimate a rotor position of the rotary electric machine; a position estimation device, adjusting a phase estimation value to the voltage conversion device and the current conversion device based on the second correction value to perform a coordinate transformation calculation; an encoder device, measuring the rotor position of the rotary electric machine to output a phase measurement value; a subtraction device subtracting the phase estimation value from the phase measurement value to generate a phase error; and an error controller, when the rotary electric machine operates in a test mode, continuously receiving the phase error and generating a revised value to the adding device based on the phase error, wherein when the phase error falls within a target range, the revised value corresponding to the phase error is assigned as the first correction value, and then the error compensation unit stores the revised value and the d-axis current command and the q-axis current command correspond to the revised value.
2. The control device of claim 1, wherein when in the test mode, and when the phase error falls within the target range each time, the error compensation unit stores the first correction value corresponding to the d-axis current command and the q-axis current command to build a table.
3. The control device of claim 1, wherein: a current variation of a high-frequency torque current, a current variation of a high-frequency magnetic flux current or a combination of the current variation of the high-frequency torque current and the current variation of the high-frequency magnetic flux current represent as the high-frequency current variation of the synchronous reference coordinate current, and the high-frequency torque current is a current signal of a q-axis current flowing through the rotary electric machine, and the high-frequency magnetic flux current is a current signal of a d-axis current flowing through the rotary electric machine.
4. The control device of claim 1, wherein the adding device is directly connected to the position estimation device to directly provide the second correction value to the position estimation device.
5. The control device of claim 1, further comprising: a first switch coupled between the error compensation unit and the adding device; a second switch coupled between the error controller and the adding device; and a third switch coupled between the error controller and the error compensation unit, wherein: when the rotary electric machine operates in the test mode, the first switch is turned off, and the second switch and the third switch are turned on, when the rotary electric machine exits the test mode, the first switch is turned on, and the second switch and the third switch are turned off.
6. The control device of claim 1, wherein the synchronous reference coordinate current comprises a torque current and a magnetic flux current.
7. The control device of claim 6, wherein computing the high-frequency current variation of the synchronous reference coordinate current comprises: computing a high-frequency torque current and a current variation of the high-frequency torque current; and computing a high-frequency magnetic flux current and a current variation of the high-frequency magnetic flux current.
8. The control device of claim 7, further comprising a high-frequency signal generator, generating and inputting a high-frequency signal for computing the high-frequency torque current and the high-frequency magnetic flux current.
9. The control device of claim 8, further comprising a controller, configured to simultaneously receive the high-frequency signal, the d-axis current command and the q-axis current command, and then correspondingly output a d-axis voltage and a q-axis voltage on a synchronous reference coordinate.
10. The control device of claim 9, further comprising a speed control device, providing the q-axis current command to the controller, and then the voltage conversion device generating three-phase voltages (Va, Vb, Vc) based on outputs of the controller.
11. A control method for a rotary electric machine, the control method comprising steps of: providing a d-axis current command and a q-axis current command; converting a rotary electric machine current passing through the rotary electric machine into a synchronous reference coordinate current; computing a high-frequency current variation of the synchronous reference coordinate current; according to the d-axis current command and the q-axis current command, outputting a first correction value corresponds to the d-axis current command and the q-axis current command; adding the high-frequency current variation of the synchronous reference coordinate current and the first correction value to generate a second correction value to estimate a rotor position of the rotary electric machine; outputting a phase estimation value based on the second correction value to perform a coordinate transformation calculation; measuring the rotor position of the rotary electric machine to output a phase measurement value: subtracting the phase estimation value from the phase measurement value to generate a phase error; and continuously generating a revised value based on the phase error, and then adding the phase error and the high-frequency current variation of the synchronous reference coordinate current to generate the second correction value when the rotary electric machine operates in a test mode, wherein when the phase error falls within a target range, the revised value is assigned as the first correction value, and the revised value, the d-axis current command and the q-axis current command correspond to the revised value are stored.
12. The control method of claim 11, wherein when the rotary electric machine operates in the test mode, and when the phase error falls within the target range each time, the first correction value corresponding to the d-axis current command and the q-axis current command are stored to build a table.
13. The control method of claim 11, wherein the synchronous reference coordinate current comprises a torque current and a magnetic flux current.
14. The control method of claim 13, wherein the step of computing the high-frequency current variation of the synchronous reference coordinate current comprises steps of: computing a high-frequency torque current and a current variation of the high-frequency torque current; and computing a high-frequency magnetic flux current and a current variation of the high-frequency magnetic flux current.
15. The control method of claim 14, further comprising a step of: inputting a high-frequency signal to compute the high-frequency torque current and the high-frequency magnetic flux current.
16. The control method of claim 15, further comprising a step of: receiving the high-frequency signal, the d-axis current command and the q-axis current command simultaneously, and then correspondingly outputting a d-axis voltage and a q-axis voltage on a synchronous reference coordinate.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION OF THE INVENTION
(7) The present invention is described with reference to the attached figures, where like reference numerals are used throughout the figures to designate similar or equivalent elements. The figures are not drawn to scale and are provided merely to illustrate the instant invention. Several aspects of the invention are described below with reference to example applications for illustration. It should be understood that numerous specific details, relationships, and methods are set forth to provide a full understanding of the invention. One having ordinary skill in the relevant art, however, will readily recognize that the invention can be practiced without one or more of the specific details, or with other methods. In other instances, well-known structures or operations are not shown in detail to avoid obscuring the invention. The present invention is not limited by the illustrated ordering of acts or events, as some acts may occur in different orders and/or concurrently with other acts or events. Furthermore, not all illustrated acts or events are required to implement a methodology in accordance with the present invention.
(8) The following description is an embodiment of the present invention. The purpose of the present invention is to exemplify the general principles of the invention and should not be construed as limiting the scope of the invention, which is defined by the scope of the claims.
(9)
(10) For solving the problems mentioned above, the present invention proposes a control device of the electric machine for promoting the accuracy of estimating the rotary electric machine's rotor positions. The control device provided by the present invention can be operated in a more simplified manner to promote the accuracy of estimating the rotary electric machine's rotor positions. The operation principle and procedure of the present invention will be described in detail below.
(11)
(12) In the present invention, the voltage conversion device 132 is electrically coupled to the current command unit 110 and the rotary electric machine 200. At first, the current command unit 110 in the control device 100 is configured to provide the d-axis current command Id and the q-axis current command Iq. The controller 130 receives the d-axis current command Id, the q-axis current command Iq and a high-frequency signal generated and inputted by a high-frequency signal generator 120, and then the controller 130 correspondingly outputs the d-axis voltage Vd and the q-axis voltage Vq on the synchronous coordinate. Then, by using the voltage conversion device 132, the d-axis voltage Vd and the q-axis voltage Vq are converted to three-phase voltages (Va, Vb, Vc) on the stationary coordinate for rotating the rotary electric machine 200.
(13) In this embodiment, the voltage conversion device 132 in the present invention includes synchronous/stationary axis converter, stationary/three-phase axis converter and inverter . . . etc. However, the present invention is not limited to this. In some embodiments of the present invention, the rotary electric machine 200 is a three-phase permanent magnet synchronous motor (three-phase PMSM), and the control of this kind of motors is usually based on the synchronous coordinate. As a result, if the voltage conversion device 132 mentioned above makes use of a synchronous/stationary axis converter, the d-axis voltage Vd and the q-axis voltage Vq output from the controller 130 could be converted to the d-axis voltage and the q-axis voltage on the stationary coordinate. By using a stationary/three-phase axis converter, the d-axis voltage and the q-axis voltage on the stationary coordinate could be further converted to three-phase voltages Va, Vb, Vc. In this embodiment, the voltage conversion device 132 can also include an inverter for adjusting the amplitude and frequency of the three-phase voltages Va, Vb, Vc to the rotary electric machine 200. One having ordinary skill in the art will comprehend the operation principles of the synchronous/stationary axis converter and the stationary/three-phase axis converter and inverter, and the present disclosure does not repeatedly recite the description herein and does not show them in
(14) In the present invention, the current conversion device 134 retrieves the rotary electric machine currents Ia, Ib, Ic passing through the rotary electric machine 200, and then converts the rotary electric machine currents Ia, Ib, Ic to a synchronous reference coordinate current. The rotary electric machine currents Ia, Ib, Ic can be individually defined as a magnetic flux current i.sub.d and a torque current i.sub.q for the components of d-axis and q-axis current on the synchronous coordinate. As a result, through a coordinate transformation, the rotary electric machine currents Ia, Ib, Ic can be converted to the synchronous reference coordinate current. The synchronous reference coordinate current further can be resolved into the magnetic flux current i.sub.d and the torque current i.sub.q. The three-phase rotary electric machine currents Ia, Ib, Ic are the stator current of the rotary electric machine 200, and the magnetic flux current i.sub.d and the torque current i.sub.q are the currents on the synchronous coordinate. Because of the different references of coordinate systems, the current conversion device 134 includes a three-phase/stationary axis converter and a stationary/synchronous axis converter. The current conversion device 134 can convert the rotary electric machine currents Ia, Ib, Ic on the stationary coordinate to the magnetic flux current i.sub.d and the torque current i.sub.q on the synchronous coordinate. After the magnetic flux current i.sub.d and the torque current i.sub.q are processed by a high-pass filter (not shown) in the signal demodulation device 140, the high-frequency magnetic flux current i.sub.dh and the high-frequency torque current i.sub.qh can be generated. One having ordinary skill in the art will comprehend that the operation principles of the three-phase/stationary axis converter and the stationary/synchronous axis converter, the present disclosure does not depict the same in
(15) In this embodiment, the signal demodulation device 140 receives the magnetic flux current i.sub.d and the torque current i.sub.q output from the current conversion device 134, and then generates the high-frequency magnetic flux current i.sub.dh and the high-frequency torque current i.sub.qh by using a motor mathematical model (or a high-frequency current equation) and the high-pass filter. The high-frequency current equation is shown below:
(16)
wherein the i.sub.qh is the high-frequency torque current, i.sub.dh is the high-frequency magnetic flux current, p is a differential operator, L.sub.dq is a cross-coupling inductance, L.sub.d is a d-axis inductance, L.sub.q is a q-axis inductance, and wherein L.sub.d and L.sub.q are measured values. Additionally, the cross-coupling inductance L.sub.dq is the main factor causing the reduction of the accuracy of rotary electric machine's rotor position estimated by the control device 100 of rotary electric machine 200. The value of cross-coupling inductance L.sub.dq is proportional to the high-frequency torque current value i.sub.qh. The high-frequency torque current value i.sub.qh becomes larger, and the cross-coupling inductance L.sub.dq is increased. The operation of the control device 100 to reduce the effect of the cross-coupling inductance L.sub.dq is described in detail below.
(17) In this embodiment, the signal demodulation device 140 of the control device 100 is electrically coupled to the current conversion device 134, and includes a high-pass filter (not shown). The signal demodulation device 140 receives the magnetic flux current i.sub.d and the torque current i.sub.q output from the current conversion device 134. The signal demodulation device 140 further computes a current variation i.sub.qh of the high-frequency torque current i.sub.qh and a current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh according to a demodulation equation shown below:
(18)
Wherein v.sub.h is a high-frequency signal, and value of v.sub.h can be positive or negative. In this embodiment, the high-frequency signal can be a square wave signal, but the invention is not limited thereto. It should be noted that the cross-coupling inductance L.sub.dq can be discovered in the current variation i.sub.qh of the high-frequency torque current i.sub.qh and the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh so that the cross-coupling inductance L.sub.dq can be considered as a DC offset current of the position estimation error. The main technique of the present invention is to eliminate the effects that the cross-coupling inductance L.sub.dq influences the current variation i.sub.qh of the high-frequency torque current i.sub.qh, the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh and the control device 100 of the rotary electric machine 200.
(19) In addition, the current variation i output by the signal demodulation device 140 is the high-frequency current variation on the synchronous coordinate mentioned above. The current variation i.sub.qh of the high-frequency torque current i.sub.qh, the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh, or a combination of both can represent as the high-frequency current variation i on the synchronous coordinate. In order to briefly illustrate the following embodiments, the current variation i is only used to represent the current variation i.sub.qh of the high-frequency torque current i.sub.qh, the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh, or a combination of both, but the present invention is not limited to this.
(20) In this embodiment, the error compensation unit 190 is electrically coupled to the current command unit 110, and receives the d-axis current command Id and the q-axis current command Iq from the current command unit 110. The error compensation unit 190 outputs a first correction value C1 based on the d-axis current command Id and the q-axis current command Iq. In this embodiment, there is at least one table to be configured and built in the error compensation unit 190, and the error compensation unit 190 searches, look-up, or indexes the table to acquire a first correction value C1 that corresponds to the d-axis current command Id and the q-axis current command Iq at present. Then, the error compensation unit 190 outputs the searched first correction value C1 corresponding to the d-axis current command Id and the q-axis current command Iq at present to the adding device 145. The Table 1 shown below is an example that configured and built in the error compensation unit 190, and it only shows part of the first correction values C1. The d-axis current command Id and the q-axis current command Iq corresponding to each of the related first correction value C1 are not fully identical. For example, as shown in Table 1, C1(Id1,Iq1) means that the first correction value C1 corresponds the d-axis current command Id1 and the q-axis current command Iq1; while C1(Id2,Iq2) means that the first correction value C1 corresponds the d-axis current command Id2 and the q-axis current command Iq2; . . . and so on. However, the present invention is not limited to this.
(21) TABLE-US-00001 TABLE 1 q-axis current command d-axis current command Iq1 Iq2 Iq3 Id1 C1 (Id1, Iq1) C1 (Id1, Iq2) C1 (Id1, Iq3) Id2 C1 (Id2, Iq1) C1 (Id2, Iq2) C1 (Id2, Iq3) Id3 C1 (Id3, Iq1) C1 (Id3, Iq2) C1 (Id3, Iq3) Id4 C1 (Id4, Iq1) C1 (Id4, Iq2) C1 (Id4, Iq3)
(22) In this embodiment, the adding device 145 is electrically coupled to the error compensation unit 190, the signal demodulation device 140 and the position estimation device 170. The adding device 145 is used for adding the current variation i and the first correction value C1 to generate a second correction value C2. The adding device 145 then outputs the generated second correction value C2 to the position estimation device 170. Eventually, according to the second correction value C2, the position estimation device 170 adjusts a phase estimation value .sub.a to the current conversion device 134 and the voltage conversion device 132 for adjusting the magnetic flux current i.sub.d and the torque current i.sub.q respectively. The phase estimation value .sub.a is the estimated position of the rotor. According to the phase estimation value .sub.a, the current conversion device 134 performs a coordinate transformation calculation to acquire the magnetic flux current i.sub.d and the torque current i.sub.q; afterwards, the adjusted magnetic flux current i.sub.d and torque current i.sub.q can be delivered to the controller 130 for modifying the values of d-axis voltage Vd and q-axis voltage Vq. The voltage conversion device 132 then receives the signals mentioned above to indirectly adjust the three-phase voltages Va, Vb, Vc. As a result, the rotor position of rotary electric machine 200 can be adjusted, oscillation when the rotary electric machine 200 rotates at low speed can be reduced effectively, and the efficiency of operation of the rotary electric machine 200 can be increased.
(23) In summary, the error compensation unit 190 outputs the first correction value C1 corresponding to the d-axis current command and the q-axis current command by searching the table. Then, the adding device 145 adds the searched first correction value C1 and the current variation i to acquire the second correction value C2. As a result, the position estimation device 170 can perform the calculation based on the acquired second correction value C2 for effectively controlling and increasing the accuracy of phase estimation value .sub.a. The procedure of building the table in the error compensation unit 190 is described in detail as below.
(24)
(25) In this embodiment, the switches 182 and 184 in the control device 100 are turned on, and the switch 195 is turned off. The encoder device 150 is used to measure the rotor position of the rotary electric machine 200 for outputting an actually measured phase measurement value .sub.r. The phase measurement value .sub.r that is a really measured value which can be considered as the real position of the rotor. At the same time, the position estimation device 170 continuously outputs the phase estimation value .sub.a to the current conversion device 134 and the subtraction device 160.
(26) In some embodiments, the subtraction device 160 is electrically coupled to the encoder device 150, the position estimation device 170 and the error controller 180. When the rotary electric machine 200 operates in the test mode, through the subtraction device 160, the phase estimation value .sub.a is subtracted from the actual measured phase measurement value .sub.r to generate a phase error for the error controller 180. As described above, the phase error output by the subtraction device 160 is the difference between the actual rotor position and the estimated rotor position.
(27) When the rotary electric machine 200 operates in the test mode, because of the switches 182 and 184 are turned on, the error controller 180 can continuously generate a revised value R1 to the adding device 145 based on the phase error . It should be noted that when the rotary electric machine 200 operates in the test mode, the switch 195 between the error compensation unit 190 and the adding device 145 is turned off so that the adding device 145 cannot receive the first correction value C1 output by the error compensation unit 190. When the phase error falls within a target range, the error controller 180 assigns the revised value R1 at present as the first correction value C1. Then, the error compensation unit 190 stores the revised value R1 which assigned as the first correction value C1, the d-axis current command Id and the q-axis current command corresponding to the first correction value C1.
(28) In some other embodiments, the error controller 180 can detect the phase error . In general conditions, if the error controller 180 detects that the phase error is not substantially equal to zero, the error controller 180 then outputs the revised value R1 to the adding device 145. The adding device 145 then adds the revised value R1 and the current variation i at present to generate the second correction value C2 for the position estimation device 170. Then, the position estimation device 170 then adjusts the phase estimation value .sub.a for the subtraction device 160 so that the phase error output by the subtraction device 160 is adjusted. When the error controller 180 detects that the phase error is within the target range (Ex: the target range is 2%-4%), the error controller 180 takes the revised value R1 as the redefined and assigned new first correction value C1 at present, and the error compensation unit 190 then stores the revised value R1. At this time, the error compensation unit 190 records the revised value R1 assigned as the first correction value C1 and records the corresponding d-axis current command Id and q-axis current command Iq at present simultaneously. In addition; on contrary, when the error controller 180 detects that the phase error is out of the target range, the control device 100 performs the previous procedures for searching another phase error , and the error controller 180 identifies whether it is in the target range again.
(29) When the current command unit 110 continuously provides different d-axis current command Id and q-axis current command Iq each time, the current variation i, for example, output by the signal demodulation device 140 can be directly or indirectly modified so that the phase error output by the subtraction device 160 is correspondingly modified. The error controller 180 will continuously adjust the revised value R1. When the error controller 180 detects that the phase error falls within the target range (Ex: the target range is 2%-4%), the error controller 180 stops adjusting the revised value R1 and then stores the revised value R1 at present in a table of the error compensation unit 190. The error compensation unit 190 stores each revised value R1 corresponding to the d-axis current command Id and q-axis current command Iq, and assigns the revised value R1 to be the redefined and assigned new first correction value C1 that corresponds to the present current commands continuously so as to build the table. As a result, the table includes a plurality of the tested first correction values C1, and each of the d-axis currents command Id and q-axis currents command Iq corresponding to the first correction values C1 is not fully identical.
(30)
(31) In step 420, according to the d-axis current command Id and the q-axis current command Iq output by the current command unit 110, the error compensation unit 190 outputs a first correction value C1 corresponding to the d-axis current command Id and the q-axis current command Iq at present. The error compensation unit 190 includes a table, as shown in Table 1 above. The error compensation unit 190 will finally find out a suitable first correction value C1 corresponding to the d-axis current command Id and the q-axis current command Iq at present in the Table 1, and then step 430 is executed.
(32) In step 430, when the rotary electric machine 200 starts to rotate, the current conversion device 134 retrieves the rotary electric machine currents Ia, Ib, Ic passing through the rotary electric machine 200, and then computes the magnetic flux current i.sub.d and the torque current i.sub.q, and then step 440 is executed.
(33) In step 440, the signal demodulation device 140 receives the magnetic flux current i.sub.d and the torque current i.sub.q, and then computes the high-frequency torque current i.sub.qh and the high-frequency magnetic flux current i.sub.dh based on a motor mathematical model or a high-frequency current equation. The motor mathematical model or the high-frequency current equation are identical with the description above, so the same descriptions will not be elaborated upon. The signal demodulation device 140 in the control device 100 also computes the current variation i.sub.qh of the high-frequency torque current i.sub.qh and/or the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh, according to the high-frequency torque current i.sub.qh and/or the high-frequency magnetic flux current i.sub.dh. The demodulation equation for computing the current variation i.sub.qh of the high-frequency torque current i.sub.qh and the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh is mentioned above, so the same will not be elaborated upon.
(34) After steps 420 and 440, the control device 100 starts to execute step 450. The adding device 145 in the control device 100 adds the current variation i.sub.qh of the high-frequency torque current i.sub.qh and/or the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh with the assigned first correction value C1 to generate the second correction value C2, and then the step 460 is executed.
(35) In step 460, the position estimation device 170 in the control device 100 adjusts the phase estimation value .sub.a based on the generated second correction value C2, and then delivers the adjusted phase estimation value .sub.a to the current conversion device 134, and then step 470 is executed.
(36) In step 470, according to the adjusted phase estimation value .sub.a, the current conversion device 134 performs a coordinate transformation calculation to acquire the magnetic flux current i.sub.d and the torque current i.sub.q, and then the current conversion device 134 delivers the magnetic flux current i.sub.d and the torque current i.sub.q to the controller 130. The controller 130 then can adjust the values of the d-axis voltage Vd and the q-axis voltage Vq based on the magnetic flux current i.sub.d and the torque current i.sub.q, and then the controller 130 delivers the signals mentioned previously to the voltage conversion device 132. Then, the voltage conversion device 132 performs the coordinate transformation calculation to indirectly adjust the three-phase voltages Va, Vb, Vc. As a result, the control device 100 can adjust the rotor position of the rotary electric machine 200, and the control device 100 can effectively reduce the oscillation caused by the rotary electric machine 200 rotating at low speed.
(37) According to the control method 400 in
(38)
(39) The control method 500 starts at step 510, and the rotary electric machine 200 remains a stationary status at this time. Also, by means of appropriate methods, the rotor is stopped from rotation. When the current command unit 110 starts to output the d-axis current command Id and the q-axis current command Iq, the controller 130 and the voltage conversion device 132 output the three-phase voltages Va, Vb, Vc based on the d-axis current command Id and the q-axis current command Iq output by the current command unit 110 for driving rotor of the rotary electric machine 200. In step 510, the current conversion device 134 retrieves the rotary electric machine currents Ia, Ib, Ic passing through the rotary electric machine 200, and performs the coordinate transformation calculation to acquire the magnetic flux current i.sub.d and the torque current i.sub.q, and then step 520 is executed.
(40) In step 520, according to the magnetic flux current i.sub.d and the torque current i.sub.q output from the current conversion device 134, the signal demodulation device 140 in the control device 100 computes the current variation i.sub.qh of the high-frequency torque current i.sub.qh and/or the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh to the adding device 145. The equations for computing the current variation i.sub.qh of the high-frequency torque current i.sub.qh and the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh are identical with the description provided above, so they are not repeatedly recited herein. At the same time, although the adding device 145 only receives the current variation i (the current variation i.sub.qh of the high-frequency torque current i.sub.qh and/or the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh), the adding device 145 still executes step 540: to add a revised value R1 of the error controller 180 and the current variation i (the current variation i.sub.qh of the high-frequency torque current i.sub.qh and/or the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh) to output a second correction value C2, and then step 550 is executed. It should be noted that when the control device 100 executes step 540 for the first time, the revised value R1 output by the error controller 180 is zero. As a result, at this time, the second correction value C2 output by the adding device 145 for the first time is in accordance with the current variation i (the current variation i.sub.qh of the high-frequency torque current i.sub.qh and the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh).
(41) In step 550, according to the second correction value C2, the position estimation device 170 outputs the phase estimation value .sub.a to the subtraction device 160, and then step 560 is executed.
(42) When the rotary electric machine 200 is controlled by the three-phase voltages Va, Vb, Vc, the control device 100 also executes step 530: the encoder device 150 in the control device 100 measures the rotor positions of the rotary electric machine 200 and outputs the actual measured phase measurement value .sub.r to the subtraction device 160, and then step 560 is executed.
(43) In step 560, the subtraction device 160 receives the phase estimation value .sub.a and the actual measured phase measurement value .sub.r from step 550 and step 530 respectively to compute the phase error between the phase estimation value .sub.a and the actual measured phase measurement value .sub.r. After computing the phase error , the control device 100 starts to perform step 570.
(44) In step 570, the error controller 180 detects whether the phase error falls within a target range. As a result, when the error controller 180 detects that the phase error falls within the target range, the control device 100 executes step 590 and the error controller 180 controls the error compensation unit 190 to store the revised value R1 at present as the redefined and assigned new first correction value C1, and simultaneously records the d-axis current command Id and the q-axis current command Iq corresponding to the first correction value C1 at present. However, when the error controller 180 detects that the phase error is not within the target range, the control device 100 executes step 580 and outputs the revised value R1 based on the phase error at present.
(45) It should be noted that, due to the previous step 540, the revised value R1 received by the adding device 145 in the initial step is zero, so when the control device 100 executes step 570 for the first time, the phase error received by the error controller 180 may possibly be outside the target range. As a result, the control device 100 will perform step 570 to step 580. After the error controller 180 outputs the revised value R1, the control device 100 performs step 540.
(46) When the control device 100 performs step 540 again, the adding device 145 adds the revised value R1 of the error controller 180 and current variation i (the current variation i.sub.qh of the high-frequency torque current i.sub.qh and/or the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh), and then adjusts the second correction value C2 to the position estimation device 170. The control device 100 continuously performs step 550.
(47) In step 550, according to the adjusted second correction value C2, the position estimation device 170 adjusts the phase estimation value .sub.a to the subtraction device 160. In step 560, the subtraction device 160 computes the phase error between the phase estimation value .sub.a and the actual measured phase measurement value .sub.r, then Step 570 is executed. In step 570, the error controller 180 detects whether the phase error falls within the target range again. If the error controller 180 detects that the phase error falls within the target range, the control device 100 performs step 590, and then the error controller 180 controls the error compensation unit 190 to store the revised value R1 as the redefined and assigned new first correction value C1, and simultaneously records the d-axis current command Id and the q-axis current command Iq corresponding to the first correction value C1 at present.
(48) As mentioned above, if the error controller 180 detects that the phase error is not within the target range, the control device 100 performs step 580, and the error controller 180 continuously adjusts the revised value R1 to the adding device 145 based on checking whether the phase error and the target range are matched. The control device 100 will uninterruptedly perform from the Steps 540 to 580 until the error controller 180 detects that the phase error falls within the target range in step 570.
(49) When the current command unit 110 modifies the d-axis current command Id and the q-axis current command Iq each time, the control device 100 performs the procedures of the control method 500 mentioned above. As a result, when the current command unit 110 continuously modifies the d-axis current command Id and the q-axis current command Iq a plurality of times or loops, the error compensation unit 190 can build the table. The operators can determine how many times or loops the control method 500 is performed, depending on demand. If the control device 100 performs the control method 500 more times or loops, there would be more sets of current commands recorded in the table of the error compensation unit 190. When the rotary electric machine 200 works normally, the rotor position of the rotary electric machine 200 estimated by the control device 100 becomes more accurate accordingly. As a result, it is much more effective to solve the phenomenon of the oscillation caused by the rotary electric machine 200 rotating at low speed, and increase the efficiency of the operation of the rotary electric machine 200.
(50)
(51) In one of the other embodiments, the speed control unit 115 further includes a speed controller 115a. The processors, micro-processors or other computing devices can provide a rotating speed command .sub.1 to the speed control unit 115. One having ordinary skill in the art will comprehend the techniques that the processors, micro-processors and other computing devices can provide with regard to the rotating speed command .sub.1, and it is not drawn in
(52) When the rotary electric machine 200 rotates based on the three-phase voltages Va, Vb, Vc, the current conversion device 134 receives the rotary electric machine currents Ia, Ib, Ic passing through the rotary electric machine 200, and then computes the torque current i.sub.q and the magnetic flux current i.sub.d. The current conversion device 134 includes a three-phase/stationary axis converter 134a, a stationary/synchronous axis converter 134b and a low-pass filter 134c. The three-phase/stationary axis converter 134a and the stationary/synchronous axis converter 134b in the current conversion device 134 can compute the torque current i.sub.q1 and the magnetic flux current i.sub.d1 on the synchronous coordinate. It should be noted that in this embodiment, the present invention simply selectively makes use of the torque current i.sub.q1 on the synchronous coordinate to perform the calculation for increasing the accuracy of position estimation, but the present invention is not limited to. The high-frequency current equations defined by the three-phase/stationary axis converter 134a and the stationary/synchronous axis converter 134b are as mentioned above, so is the same are not repeatedly recited herein.
(53) After the current conversion device 134 finished the computation of the torque current i.sub.q1 on the synchronous coordinate, the signal demodulation device 140 computes the high-frequency torque current i.sub.qh and the current variation i.sub.qh of the high-frequency torque current i.sub.qh. The signal demodulation device 140 includes a high-pass filter 140a and a high-frequency signal demodulation device 140b. The high-pass filter 140a computes the high-frequency torque current i.sub.qh based on the torque current i.sub.q1. The high-frequency signal demodulation device 140b has a demodulation equation therein for computing the current variation i.sub.qh. The demodulation equation is described above, so it will not be recited here again. When the rotary electric machine 200 is operated in the test mode, the method of building a table using the control device 100 has been described in detail previously, so the description will not be repeated.
(54) In conclusion, the present invention makes use of the error compensation unit 190 to receive the d-axis current command Id and the q-axis current command Iq for outputting the first correction value C1. Then, the present invention computes the current variation i.sub.qh of the high-frequency torque current i.sub.qh and/or the current variation i.sub.dh of the high-frequency magnetic flux current i.sub.dh for effectively controlling and increasing the accuracy of the phase estimation value .sub.a estimated by the position estimation device 170. Compared to the current techniques, the present invention greatly reduces the amount of (signal) calculation in the processor, and more effectively improves the operation efficiency of the control device of the rotary electric machine 200. In addition, the present invention can also solve the oscillating phenomenon generated when the rotary electric machine 200 is operated at a low speed, and improve the operating efficiency of the rotary electric machine 200.
(55) While the invention has been described above in terms of a preferred embodiment, it is not intended to limit the scope of the invention, and it should be understood by those of ordinary skill in the art without departing from the spirit and scope of the invention. Instead, the scope of the invention should be determined by the scope of the appended claims.
(56) The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms a, an, and the are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, to the extent that the terms including, includes, having, has, with, or variants thereof are used in either the detailed description and/or the claims, such terms are intended to be inclusive in a manner similar to the term comprising.