PMSM
3-phase Permanent Magnet Synchronous Motor model
Library
GMCLIB
Description
The PMSM model is done in d-q coordinate system. Inputs and outputs are then transformed to 3-phase values using Clark's and Park's transformations. The stator voltage equations in d-q coordinate system are:
And internal motor torque equation:
Parameters and dialog box
The Motor pane of the PMSM block dialog box appears as follows:
Rs - stator resistance [Ohm]
Ld - direct axis inductance [H]
Lq - quadrature axis inductance [H]
Psi - BackEMF constant [V.sec/rad]
p - number of pole pairs [-]
J - inertia [kg.m^2]
F - coefficient of friction [-]
Th0 - initial position [rad]
Brake active? - if checked, the motor is braked and will NOT move.
The ADC pane of the PMSM block dialog box appears as follows:
In this pane it is possible to quantize the output currents with desired range [A] and resolution [bits] of ADC. If the ADC range is higher than maximum input signal to ADC, the output is not limited, the quantization step remains but the resolution increases.
ADC on? - enables (disables) A/D conversion (quantization) of the output currents
ADC range - range of the A/D converter if the converter is enabled
ADC resolution - resolution of the A/D converter if the converter is enabled
Inputs and outputs
Inputs:
Uabc - 3 phase input voltages [V]
Mz - external mechanical load [N.m]
Outputs:
w_r - mechanical speed of the rotor [rad/s]
Me - moment of force produced by the motor [N.m]
Iabc - output currents [A]
Th_r - mechanical angle of the rotor (NOT to be used for Park's transformation) [rad]