The present invention relates to a control system for a motor, and more particularly to a control system for a motor that determines a reference d-axis current and a reference q-axis current.
The output torque of an interior permanent magnet synchronous motor (IPMSM) may be determined by a voltage command and a phase advance angle. A specific output torque of the IPMSM is determined by first selecting a specific quadrature axis (also referred to as the q-axis) reference current and a direct axis (also referred to as the d-axis) reference current, and then determining the voltage command and the phase advance angle based on the selected quadrature axis reference current and the direct axis reference current.
In one embodiment, a motor control system for determining a reference d-axis current and a reference q-axis current is provided. The motor control system includes a motor having measured motor speed, a DC power source and DC input lines, and a current command controller. The DC power source generates a bridge voltage across the DC input lines. The current command controller is in communication with the motor and the DC input lines. The current command controller is configured to monitor the bridge voltage and a torque reference command. The current command controller is configured to calculate the reference q-axis current based on a torque reference command. The current command controller is configured to calculate the reference d-axis current based on a magnitude of the reference q-axis current.
In another embodiment, a method for determining a reference d-axis current and a reference q-axis current is provided. The method includes monitoring a bridge voltage and a torque reference command sent to a current command controller. The method also includes calculating the reference q-axis current based on the torque reference command. The method also includes calculating the reference d-axis current based on a first region of operation if a magnitude of the reference q-axis current is less than or equal to a predetermined reference q-axis current value, and if a magnitude of a voltage command value is less than the bridge voltage.
These and other advantages and features will become more apparent from the following description taken in conjunction with the drawings.
The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other features, and advantages of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
Referring now to the Figures, where the invention will be described with reference to specific embodiments, without limiting same,
In the embodiment as shown in
For feedback control purposes, the phase currents ia and ib transmitted to the motor 32 by lines 50 and 52 may be detected to determine the instantaneous current flow to the motor 32. Specifically, a transducer 56 may be used to monitor the phase current ia on the line 50, and a transducer 58 may be used to monitor the phase current ib on the line 52. It should be noted that although transducer 56 and transducer 58 are illustrated, only one of the lines 50 or 52 may be monitored to measure either phase current ia or phase current ib. A control signal 60 representing the measured phase current ia may be sent to the a-axis current amplifier 40 from the transducer 56, and a control signal 62 representing the measured phase current ib may be sent to the b-axis current amplifier 42 from the transducer 58. An augmented or amplified value of the phase current ia is then sent to the a-axis ADC 44 from the a-axis current amplifier 40, and an amplified value of the phase current ib 62 is sent to the b-axis ADC 46 from the b-axis current amplifier 42. The a-axis ADC 44 converts the amplified value of the phase current ia into a digital value 64. The digital value 64 represent the magnitude of the phase current ia. The b-axis ADC 46 converts the amplified value of the phase current ib into a digital value 66. The digital value 66 represents the magnitude of the phase current ib.
The transform controller 38 receives as input the digital value 64 from the ADC 44 and the digital value 66 from the ADC 46. In one embodiment, the transform controller 38 is a three-phase to two-phase transformation controller where measured values for the AC current (e.g., the digital value 64 representing the phase current ia and the digital value 66 representing the phase current ib) are converted into equivalent measured DC current components, which are a measured d-axis current IdMEASURED and a measured q-axis current IqMEASURED. The measured d-axis current IdMEASURED is sent to a subtractor 70 and the measured q-axis current IqMEASURED is sent to a subtractor 72.
The current command controller 20 receives as input a torque reference command Te, an angular speed ωm, and the control signal 53 representing the bridge voltage Vecu from the transducer 51. The torque reference command Te represents a commanded torque value, and may be derived from another controller (not shown), or may correspond to a torque value generated by an operator. The angular speed ωm is measured by the speed sensor 36. The speed sensor 36 may include, for example, an encoder and a speed calculation circuit for calculating the angular speed of a rotor (not shown) of the motor 32 based on a signal received by the encoder. The current command controller 20 calculates a reference d-axis current Id
The subtractor 70 receives the measured d-axis current IdMEASURED and the reference d-axis current Id
The d-axis PI controller 22 receives as input the d-axis error signal 74 from the subtractor 70. The d-axis PI controller 22 calculates a d-axis voltage signal VD. The d-axis voltage signal VD is based on a d-axis proportional gain KP, and a d-axis integral gain Ki. Likewise, the q-axis PI controller 23 receives as input the q-axis error signal 76 from the subtractor 72. The q-axis PI controller 23 calculates a q-axis voltage signal VQ. The q-axis voltage signal VQ is based on a q-axis proportional gain KP, and a q-axis integral gain Ki.
The polar conversion controller 24 receives as input the d-axis voltage signal VD from the d-axis PI controller 22 and the q-axis voltage signal VQ from the q-axis PI controller 23. Based on the inputs, the polar conversion controller 24 determines a voltage command Vcmd and a phase advance angle δ. The PWM inverter controller 26 receives as inputs the voltage command Vcmd and the phase advance angle δ from the polar conversion controller 24. The PWM inverter controller 26 also receives a rotor angle value θr measured by the motor position sensor 34. In one exemplary embodiment, the PWM inverter controller 26 may include an over-modulation space vector PWM unit to generate three respective duty cycle values Da, Db, and Dc. The duty cycle values Da, Db, and Dc are used to drive gate drive circuits (not shown) of the inverter 28 that energize phases of the of the motor 32.
Determining the reference d-axis current Id
The current command controller 20 first determines the reference q-axis current Iq
I
q
REF=(2*Te)/(√{square root over (3)}*Ke) Equation 1
where Ke is the motor constant. The current command controller 20 may then compare a magnitude of the reference q-axis current Iq
I
q
REF
MAX
=I
REF
MAX*cos(αMAX) Equation 2
where TREF
The smoothening function is used to determine the reference d-axis current Id
I
d
REF
=K1*(abs(ωm)+k—K2*abs(Te)−k—K3) Equation 3
K1=ka2*(Te)2+k—a1*(Te)+k—a0 Equation 4
where k_a0, k_a1, k_a2, k_K1, and k_K2 are constants derived from parameters of the motor 32. Once the reference d-axis current Id
if Id
else if Id
where Id
I
d
REF
MAX
=I
REF
MAX*sin(αMAX) Equation 5
where if the reference d-axis current Id
In the first region of operation RI, the reference d-axis current Id
I
q
REF=(Te/(sqrt(3)/2*Ke*Iq
where k_P is the number of poles of the motor 32, Lq is the q-axis inductance, and Ld is the d-axis inductance.
In the second region of operation RII, the reference d-axis current Id
I
d
REF=(Te−sqrt(3)/2*Ke*Iq
Specifically, the current command controller 20 selects the greatest value between the reference d-axis current Id
The current command controller 20 determines the voltage command Vcmd. In one embodiment, the voltage command Vcmd is determined by Equations 8-12:
V
QFF
=R*I
q
REF*√{square root over (3)}*Ke*ωm−2*Xd*Id
V
DFF
=R*I
d
REF+2*Xq*Id
X
q=(k—P/2)*ωm*Iq Equation 10
X
d=(k—P/2)*ωm*Ld Equation 11
V
cmd=√{square root over (VQFF2+VDFF2)} Equation 12
where VQFF is the feed forward q-axis voltage, VDFF is the feed forward d-axis voltage, R is resistance per phase of the motor 32, Xd is a d-axis reactance, and Xq is a q-axis reactance.
Once the voltage command Vcmd is determined, the current command controller 20 compares the magnitude of the voltage command Vcmd with the bridge voltage Vecu, and determines if the reference d-axis current Id
According to Table 1, if the magnitude of the reference q-axis current Iq
If the third region of operation RIII is selected, either the smoothening function as described above or the target voltage circle calculation may be used to determine the reference d-axis current Id
Z
q
sqr
=R
2
+X
q
2 Equation 13
Z
d
sqr
=R
2
+X
d
2 Equation 14
B
Dax
=I
q
REF
*R*(Xq−Xd)−2*Ke/√{square root over (3)}*ωm*Xd Equation 15
C
Dax
=I
q
REF
2
*Z
q
sqr
+Ke/√{square root over (3)}*ωm*R*Iqref+(Ke/√{square root over (3)}*ωm)2−Vecu2/3 Equation 16
S
Dax
=B
Dax
2−4*Zd
where Zq
If SDax>=0, then Id
Else
I
d
REF(−BDax)/(2*Zd
where the reference d-axis current Id
After the reference d-axis current Id
Once the reference d-axis current Id
I
PEAK
CURRENT=√{square root over (Iq
Once the voltage command Vcmd is re-calculated and the peak current IPEAK
The current command controller 20 may re-calculate the reference q-axis current Iq
B
Qax
=I
Q
REF
*R*(Xq−Xd)+2*Ke/√{square root over (3)}*ωm*R Equation 19
C
Qax
=I
d
REF
2
*Z
d
sqr
−Ke/√{square root over (3)}*ωm*Xd*Idref+(Ke/√{square root over (3)}*ωm)2−Vecu2/3 Equation 20
S
Qax
=B
Qax
2−4*Zq
where Id
If SQax>=0, then Iq
Else
I
q
REF=(−BQax)/(2*Zq
Once the reference q-axis current Iq
In block 204, the current command controller 20 determines the reference q-axis current Iq
In block 206, the current command controller 20 determines if the magnitude of the reference q-axis current Iq
In block 212, the current command controller 20 determines if the magnitude of the voltage command Vcmd is greater than or equal to than the bridge voltage Vecu. If the answer is yes, then method 200 may proceed to block 214. If the answer is no, then either the first region of operation RI or the second region of operation RII is selected, and method 200 may proceed to block 224.
In block 214, the third region of operation ME is selected. Method 200 may then proceed to block 216.
In block 216, the current command controller 20 determines the d-axis current Id
In block 218, the current command controller 20 re-calculates the voltage command Vcmd using Equations 6-10 as described above. The current command controller 20 also determines the peak current IPEAK
In block 220, the current command controller 20 determines if either the magnitude of the voltage command Vcmd is greater than or equal to the bridge voltage Vecu (Vcmd≧Vee), or if a maximum current value Max_Current is greater than the peak current IPEAK
In block 222, the current command controller 20 may re-calculate the reference q-axis current Iq
In block 224, the current command controller 20 may re-calculate the feed forward q-axis voltage VQFF and the feed forward d-axis voltage VDFF according to Equations 8-9 above, and save the feed forward q-axis voltage VQFF and the feed forward d-axis voltage VDFF in memory. Method 200 may then repeat, or terminate.
The current command controller 20 as described above determines the reference d-axis current Id
While the invention has been described in detail in connection with only a limited number of embodiments, it should be readily understood that the invention is not limited to such disclosed embodiments. Rather, the invention can be modified to incorporate any number of variations, alterations, substitutions or equivalent arrangements not heretofore described, but which are commensurate with the spirit and scope of the invention. Additionally, while various embodiments of the invention have been described, it is to be understood that aspects of the invention may include only some of the described embodiments. Accordingly, the invention is not to be seen as limited by the foregoing description.