Compute reference currents for Maximum Torque Per Ampere (MTPA) and field-weakening operation
Motor Control Blockset / Controls / Control Reference
The MTPA Control Reference block computes the d-axis and q-axis reference current values for MTPA and field-weakening operations. The computed reference current values results in efficient output for the Permanent Magnet Synchronous Motor (PMSM).
The block accepts the reference torque and feedback mechanical speed of the rotor and outputs the reference d and q axis phase current values for MTPA and field-weakening operations.
The block computes the reference current values by solving mathematical relationships. The calculations use SI unit system. When working with the Per-Unit (PU) system, the block converts PU input signals to SI units to perform computations, and converts them back to PU values at the output.
These equations describe the computation of reference d-axis and q-axis current values by the block:
These model equations describe dynamics of PMSM in the rotor flux reference frame:
where:
is the d-axis voltage.
is the q-axis voltage.
is the d-axis current.
is the q-axis current.
is the stator phase winding resistance.
is the permanent magnet flux linkage.
is the d-axis flux linkage.
is the q-axis flux linkage.
is the rotor electrical speed.
is the rotor mechanical speed.
is the d-axis winding inductance.
is the q-axis winding inductance.
is the electromechanical torque produced by PMSM.
is the load torque.
is the number of motor pole pairs.
is the inertia coefficient.
is the friction coefficient.
These equations describe the computation of the motor base speed:
If , is zero. Therefore, we compute the d-axis and q-axis voltages as:
where:
is the rotor electrical speed.
is the maximum motor speed outside field weakening region.
is the d-axis current.
is the q-axis current.
is the d-axis voltage when is zero.
is the q-axis voltage when is zero.
is the d-axis winding inductance.
is the q-axis winding inductance.
is the stator phase winding resistance.
is the permanent magnet flux linkage.
is the d-axis voltage.
is the q-axis voltage.
is the maximum voltage that the inverter can provide.
is the DC bus voltage.
is the maximum current that the inverter can provide.
For a surface PMSM, you can achieve maximum torque by using zero d-axis current when the motor is below the base speed. For field-weakening operation, the reference d-axis current is computed by Constant-voltage-constant-power control (CVCP) algorithm defined by these equations:
If :
If :
The saturation function used to compute is described below:
If ,
If ,
If ,
The block outputs the following values:
where:
is the rotor electrical speed.
is the rotor mechanical speed.
is the maximum motor speed outside field weakening region.
is the maximum electrical speed of motor outside the field weakening region.
is the d-axis phase current MTPA.
is the q-axis phase current MTPA.
is the reference torque (block input).
is the number of motor pole pairs.
is the permanent magnet flux linkage.
is the d-axis field weakening current.
is the q-axis field weakening current.
is the d-axis winding inductance.
is the maximum current that the inverter can provide.
is the d-axis saturation current.
is the q-axis saturation current.
is the d-axis current component corresponding to the reference torque and reference speed (block inputs).
is the q-axis current component corresponding to the reference torque and reference speed (block inputs).
For an interior PMSM, you can achieve maximum torque by computing the d-axis and q-axis reference currents from the torque equation.
If ,
If ,
If ,
If ,
For negative reference torque values, the sign of and are updated and equations are modified accordingly.
where:
is the estimated maximum current to produce the reference torque.
is the saturated value of estimated maximum current.
is the maximum permissible d-axis current.
is the maximum permissible q-axis current.
is the reference torque (block input).
is the d-axis current component corresponding to the reference torque and reference speed (block inputs).
is the q-axis current component corresponding to the reference torque and reference speed (block inputs).
is the number of motor pole pairs.
is the permanent magnet flux linkage.
is the d-axis phase current MTPA.
is the q-axis phase current MTPA.
is the d-axis winding inductance.
is the q-axis winding inductance.
is the maximum current that the inverter can provide.
is the maximum voltage that the inverter can provide.
is the d-axis voltage when is zero.
is the q-axis voltage when is zero.
is the rotor electrical speed.
is the d-axis current.
is the q-axis current.
is the d-axis field weakening current.
is the q-axis field weakening current.
is the maximum motor speed outside the field weakening region.