Documentation Home Page ◇ OPAL-RT Schematic Editor Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
Permanent Magnet Synchronous Machine 3-phase Open-end Winding
This block implements a permanent magnet synchronous machine with an open-end winding.
The PMSM block implements a three-phase Permanent Magnet Synchronous Motors Open-end Winding (PMSM OEW) model with resolvers and encoders.
Equations & Characteristics
General PMSM Solver Equation
The equation of the PMSM model can be expressed as follows:
where Labc is the time-varying inductance matrix (global inductance for DQ0 and VDQ models), Iabc is the stator current inside the winding, R is the stator resistance, Vabc is the voltage across the stator windings and ψabc defines the magnet flux linked into the stator windings.
The solver computes the outputs in phase domain, using phase domain states. The integration type used is Backward Euler.
Standard DQ0 Motor Characteristics
Under normal conditions, the ideal sinusoidal stator voltages of the PMSM, back-EMFs, and inductances all have sinusoidal shapes. One can transform the equation using the Park transformation with a referential locked on the rotor position θ using the following two equations:
and
The Park transform (also called ‘DQ’ transform) reduces sinusoidal varying quantities of inductances, flux, current, and voltage to constant values in the D-Q frame thus greatly facilitating the analysis and control of the device under study.
It is important to note that there are many different types of Park transforms and this often leads to confusion when interpreting the motor states inside the D-Q frame. The one used here presents the advantage of being amplitude-invariant which means that the peak amplitude of the signals in the D-Q frame by performing a transformation will be numerically equal to the one computed in the phase domain.
The corresponding equations in the DQ0 domain, for representation, are:
With this transform (and only this transform) the PMSM torque can be expressed by the following equation, where pp is the number of pole pairs.
where
same for Phase b and c.
and ua is the unit vector template of the BackEMF profile and is the flux linkage constant.
The synchronous component of Torque includes impact due to Zero Sequence Current.
Figure 1 explains the principle of the Park transform. Considering fixed ABC referential with all quantities ( Vbemf, motor current I) rotating at the electric frequency ω, if we observe these quantities in a D-Q frame turning at the same speed we can see that the motor quantities will be constant.
This is easy to see for the Back-EMF voltage Vbemf that directly follows the Q-axis (because the magnet flux is on the D-axis by definition). In Figure 1, I leads the Q-axis by an angle called β (beta). The modulus of the vector I is called Iamp. In the figure below, θ is the rotor angle, aligned with the D-axis.
Parameters & Measurements
The PMSM's parameters and measurements are separated in 4 different tabs, Electrical, Mechanical, Resolver and Encoder.
Electrical Parameters & Measurements
Symbol | Name | Description | Unit | Type |
|---|---|---|---|---|
Type | Motor type | Type of motor : Constant DQ or Variable DQ (see https://opal-rt.atlassian.net/wiki/spaces/SED/pages/1230766325/Permanent+Magnet+Synchronous+Machine+3-phase+Open-end+Winding#Limitations ) In Variable DQ mode, electrical input parameters are hidden and a resource file must be provided. |
| Input |
Mconf | Motor configuration type | Type of motor : Constant DQ or Variable DQ (see https://opal-rt.atlassian.net/wiki/spaces/SED/pages/1230766325/Permanent+Magnet+Synchronous+Machine+3-phase+Open-end+Winding#Limitations ) In Variable DQ mode, electrical input parameters are hidden and a resource file must be provided. |
| Input |
Rsabc | Stator resistances | Resistances of the stator windings specified for every phase, A, B and C. | Ω | Input |
Ldq | Stator inductances (DQ) | d and q axis inductances | H | Input |
dΦ/dθ | Back EMF profile | Profile of the back EMF, either Sinusoidal or User defined (see https://opal-rt.atlassian.net/wiki/spaces/SED/pages/1230766325/Permanent+Magnet+Synchronous+Machine+3-phase+Open-end+Winding#Limitations ) |
| Input |
EMFfile | Back EMF profile table | Field only visible in User defined mode. Allows to import a back EMF resource file. |
| Input |
λm1 | Permanent magnet flux linkage | Amplitude of the rotor permanent magnet flux | Wb | Input |
L0 | Zero Sequence Inductance | Zero Sequence Inductance Value If L0 is unknown, retain the default value of 1e15. | H | Input |
pp | Number of pole pairs | Number of pole pairs |
| Input |
dq0 | DQ Transform | Amplitude Invariant or Power Invariant (see https://opal-rt.atlassian.net/wiki/spaces/SED/pages/1230766325/Permanent+Magnet+Synchronous+Machine+3-phase+Open-end+Winding#Limitations ) |
| Input |
θdq0 | DQ Transform Angle | A aligned to D / A aligned to Q (see https://opal-rt.atlassian.net/wiki/spaces/SED/pages/1230766325/Permanent+Magnet+Synchronous+Machine+3-phase+Open-end+Winding#Limitations ) |
| Input |
is | Stator currents | Currents measured at phases A, B and C of the stator | A | Measurement |
isdq | Stator currents (DQ) | Currents measured of axis d, q and 0 sequence current | A | Measurement |
Vs | Stator voltages | Voltages measured at phases A, B and C of the stator | V | Measurement |
Bemf | Back EMF voltages | Phase to neutral voltage generated from the permanent magnet flux linkage | V | Measurement |
θe | Electrical rotor position | Position of the rotor from 0 to 360 degrees | ° | Measurement |
Rs | Snubber resistance | Resistances of the snubber on phase A, B and C | Ω | Input |
Cs | Snubber capacitance | Capacitance of the snubber on phase A, B and C | F | Input |
Mechanical Parameters & Measurements
Symbol | Name | Description | Unit | Type |
|---|---|---|---|---|
J | Rotor inertia | Moment of inertia of the rotor (only available when Torque Mode is selected) | kg*m2 | Input |
Fv | Viscous friction coefficient | Viscous friction (only available when Torque Mode is selected) | N*m*s/rad | Input |
Fs | Static friction torque | Static friction | N*m | Input |
ctrl | Mechanical control mode | Control mode of the mechanical model. Has two possible values: speed or torque. In speed mode, the mechanical model is bypassed and the speed command is sent directly. In torque mode, the torque command is used to measure the speed using the mechanical parameters of the machine. |
| Input |
T | Torque command | Torque command sent to the mechanical model | N*m | Input |
ωr0 | Initial Rotor Speed Command | Setpoint for Initial Rotor speed | rpm | Input |
ωrc | Rotor speed command | Speed command sent to the mechanical model | rpm | Input |
ωr | Rotor speed | Speed of the rotor | rpm | Measurement |
θ0 | Initial rotor angle | Rotor position at time t = 0 | ° | Input |
θ | Rotor angle | Rotor position from 0 to 360 degrees | ° | Measurement |
Te | Electromagnetic torque | Torque measured at the rotor | N*m | Measurement |
Resolver Parameters & Measurements
Symbol | Name | Description | Unit | Type |
|---|---|---|---|---|
Ren | Enable resolver | Whether or not to enable the resolver | N/A | Input |
Rsc | Resolver feedback signals | The two two-phase windings producing a sine and cosine feedback current proportional to the sine and cosine of the angle of the motor | N/A | Measurement |
Rpp | Number of resolver pole pairs | Number of pole pairs of the resolver | N/A | Input |
Rdir | Direction of the sensor rotation | Direction in which the sensor is turning, either clockwise or counterclockwise | N/A | Input |
Rθ | Angle offset Δθ ( Sensor- Rotor ) | Angle offset between the resolver and the rotor position from 0 to 360 degrees | ° | Input |
Rk1 | Resolver sine cosine gains | The sine/cosine modulation output sine/cosine component amplitude. Default value are 1, 0, 0 and 1. When the double excitation is selected, the default values shall be set 0, 1, 1, and 0. | N/A | Input |
Rk2 | Resolver sine cosine gains for the second excitation | The sine/cosine modulation output sine/cosine component amplitude for the second excitation. Default value are -1, 0, 0 and 1 | N/A | Input |
Etype | Excitation source type | The source from which the excitation of the resolver is generated. Can either be AC, which is generated inside the FPGA with the specified frequency, DC (only for single excitation), and External, which is generated from outside the model | N/A | Input |
Ef | Excitation frequency | Frequency of the excitation when in AC mode. When in Double excitation, the second excitation signal has the same frequency and is 90º leading. (see https://opal-rt.atlassian.net/wiki/spaces/SED/pages/1230766325/Permanent+Magnet+Synchronous+Machine+3-phase+Open-end+Winding#Limitations ) | Hz | Input |
Esrc1 | Excitation source | Source of the external excitation source when in External mode | N/A | Input |
Esrc2 | Second excitation source | Source of the second external excitation source when in External mode and Double excitation | N/A | Input |
Ets | Excitation time shift | This parameter is used to compensate the time offset between the carrier generation's input in the system and modulated signals' output | s | Input |
Emod | Excitation mode | Number of resolver excitation windings. Can either be single (just one excitation signal) or double (two excitation signals) | N/A | Input |
Encoder Parameters & Measurements
Symbol | Name | Description | Unit | Type |
|---|---|---|---|---|
Encen | Enable encoder | Whether or not to enable the encoder | N/A | Input |
Enctype | Encoder type | Encoder type, either Quadrature or Hall Effect | N/A | Input |
QABZ | A B Z encoder signals | A B and Z signals of the encoder | N/A | Measurement |
Qppr | Number of pulses per revolution | Number of pulses in one full revolution of the encoder | N/A | Input |
Qdir | Direction of the sensor rotation |
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter