Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This block implements a doubly-fed induction machine (DFIM) with magnetizing inductance saturation in the stationary (stator) reference frame along with the temperature effects on the stator and rotor resistances.

...

Mathblock
alignmentleft
b={T_{s}}*(\frac{F_{v}}{J})


where ωm is the rotor speed, Te is the electromagnetic torque, Tm is the torque command, Fv is the viscous friction coefficient, J is the inertia and Ts the time step. There is a dead-zone implementation with the static friction torque, if the electromagnetic doesn't exceed the static friction torque, the speed remains zero.

In speed mode, the rotor speed is directly set to the speed command ωrc.

Resolver Encoder Model

...

Mathblock
alignmentleft
\text { sine }=\text { Excitation } \times\left(\cos \left(\theta_{\text {res}}\right) * R_{k_{c c}}+\sin \left(\theta_{\text {res}}\right) * R_{k_{s c}}\right)


where θres is the resolver angle, θmec is the mechanical angle of the machine, θoffset is the angle offset, Rpp is the Number of pole pairs of the resolver and Rk are the resolver sine cosine gains.

...

Symbol

Name

Description

Unit

Type

RsnomStator resistanceStator winding resistance of phase a, b, and cΩInput
Rrnom'Rotor resistanceEquivalent rotor winding resistance referred to the stator of phase a, b, and cΩInput

Δθ

Temperature differenceTemperature difference w.r.t the initial temperature of stator and rotor windings°CInput
αcondstatorStator temperature coefficient of resistanceTemperature coefficient of resistance of stator winding°C-1Input
αcondrotor Rotor temperature coefficient of resistanceTemperature coefficient of resistance of rotor winding°C-1Input
LlsStatorleakage inductance Stator winding leakage inductance of phase a, b, and cHInput
Llr'Rotor leakage inductance Equivalent rotor winding leakage inductance referred to the stator of phase a, b, and cHInput
EsatElectrical saturation profile input

Choose your saturation profile between (More details)

  • Stator Voltage Line to Line vs. Stator Current
  • Magnetizing Inductance vs. Magnetizing Flux
N/ADropdown
VsllStator voltage line to line tableNo Load saturation curve parametersVFile
LmMagnetizing inductance tableStator-rotor mutual (magnetizing) inductance of phase a, b, and cHFile
NsrTurns ratioStator to rotor windings turns ratioN/AInput
ppNumber of pole pairsNumber of pole pairsN/AInput
isStator phase currentsStator currents measured at phases a, b and cAMeasurement
irRotor phase currentsRotor equivalent phase a, b, and c currents, referred to the statorAMeasurement
iβStator αβcurrentsStator currents in αβ frameAMeasurement
isqdStator qd currentsStator currents in qd frame (αβ frame)AMeasurement
iβRotor αβ currentsRotor currents in αβ frame, referred to the statorAMeasurement
irqdRotor qd currentsRotor currents in qd frame, referred to the stator (αβ frame)AMeasurement
Vsαβ Stator αβ voltagesStator voltages in αβ frameVMeasurement
ΦsαβStator αβ fluxesStator fluxes in αβ frameWbMeasurement
ΦrαβRotor αβ fluxesRotor fluxes in αβ frame, referred to the statorWbMeasurement
RsnSnubber resistanceResistances of the snubber on phase A, B and CΩInput
CsnSnubber capacitanceCapacitance of the snubber on phase A, B and CFInput

...

Symbol

Name

Description

Unit

Type

JRotor inertiaMoment of inertia of the rotorkg*m2Input
FvViscous friction coefficientViscous frictionN*m*s/radInput
FsStatic friction torqueStatic frictionN*mInput
ctrlMechanical control modeControl 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
TTorque commandTorque command sent to the mechanical modelN*mInput
ωrcRotor speed commandSpeed command sent to the mechanical modelrpmInput
ωrRotor speedSpeed of the rotorrpmMeasurement
TeElectromagnetic torqueTorque measured at the rotorN*mMeasurement
θ0Initial rotor angleRotor position at time t = 0°Input
θRotor angleRotor position from 0 to 360 degrees°Measurement

image2019-12-4_14-40-39.png

Resolver Parameters and Measurements

Symbol

Name

Description

Unit

Type

RenEnable resolverWhether or not to enable the resolverN/AInput
RscResolver feedback signalsThe two two-phase windings producing a sine and cosine feedback current proportional to the sine and cosine of the angle of the motorN/AMeasurement
RppNumber of resolver pole pairsNumber of pole pairs of the resolverN/AInput
RdirDirection of the sensor rotationDirection in which the sensor is turning, either clockwise or counterclockwiseN/AInput
RθAngle offset Δθ ( Sensor-  Rotor )Angle offset between the resolver and the rotor position from 0 to 360 degrees°Input
RkResolver sine cosine gainsThe sine/cosine modulation output sine/cosine component amplitude. Default value are 1, 0, 0 and 1N/AInput
EtypeExcitation source typeThe 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, which is generated with a 90° from the rotor and External, which is generated from outside the modelN/AInput
EfExcitation frequencyFrequency of the excitation when in AC modeHzInput
EsrcExcitation sourceSource of the external excitation source when in External modeN/AInput
EtsExcitation time shiftThis parameter is used to compensate the time offset between the carrier generation's input in the system and modulated signals' outputsInput

...

Symbol

Name

Description

Unit

Type

EncenEnable encoderWhether or not to enable the encoderN/AInput
EnctypeEncoder typeEncoder type, either Quadrature or Hall EffectN/AInput
QABZA B Z encoder signalsA B and Z signals of the encoderN/AMeasurement
QpprNumber of pulses per revolutionNumber of pulses in one full revolution of the encoderN/AInput
QdirDirection of the sensor rotationDirection in which the sensor is turning, either A leads B or B leads AN/AInput
QθAngle offset Δθ ( Sensor - Rotor )Angle offset between the encoder and the rotor position from 0 to 360 degrees°Input
QratEncoder speed ratio ( sensor to mechanical position )

Mechanical to encoder ratio. Angle of Encoder = Qrat * machine mechanical angle. 

N/AInput
HθHall effect sensor positionPosition of sensor phases A, B and C in Hall effect mode°Input

Visualization of Resolver Encoder Parameters Effects

...