SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
extern _iq EST_getLr_pu(EST_Handle handle);
Gets the rotor inductance value in per unit (pu), IQ30.
The per units value of the rotor inductance can be used as an alternative way of calculating the rotor inductance of an induction motor using fixed point math. An example showing how this is done is shown here:
#define VarShift(var,nshift) (((nshift) < 0) ? ((var)>>(-(nshift))) : ((var)<<(nshift)))
#define MATH_PI (3.1415926535897932384626433832795)
#define USER_IQ_FULL_SCALE_VOLTAGE_V (300.0)
#define USER_IQ_FULL_SCALE_CURRENT_A (10.0)
#define USER_VOLTAGE_FILTER_POLE_Hz (335.648)
#define USER_VOLTAGE_FILTER_POLE_rps (2.0 * MATH_PI * USER_VOLTAGE_FILTER_POLE_Hz)
uint_least8_t Lr_qFmt = EST_getLr_qFmt(handle);
_iq fullScaleInductance = _IQ(USER_IQ_FULL_SCALE_VOLTAGE_V/(USER_IQ_FULL_SCALE_CURRENT_A * USER_VOLTAGE_FILTER_POLE_rps));
_iq Lr_pu = _IQ30toIQ(EST_getLr_pu(handle));
_iq pu_to_h_sf = VarShift(fullScaleInductance, 30 - Lr_qFmt);
_iq Lr_H = _IQmpy(Lr_pu, pu_to_h_sf);
The estimator (EST) handle
The rotor inductance value, pu