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_get_pu_to_krpm_sf(EST_Handle handle);
Gets the pu to krpm scale factor in per unit (pu), IQ24. This function is needed when a user needs to scale a value of the motor speed from per units to krpm (kilo revolutions per minute) value.
This scale factor is calculated and used as shown below:
#define USER_MOTOR_NUM_POLE_PAIRS (2)
#define USER_IQ_FULL_SCALE_FREQ_Hz (500.0)
_iq scale_factor = IQ(60.0 * USER_IQ_FULL_SCALE_FREQ_Hz / (USER_MOTOR_NUM_POLE_PAIRS * 1000.0));
_iq Speed_pu = EST_getFm_pu(handle);
_iq Speed_pu_to_krpm_sf = EST_get_pu_to_krpm_sf(handle);
_iq Speed_krpm = _IQmpy(Speed_krpm,Speed_krpm_to_pu_sf);
The estimator (EST) handle
The krpm to pu scale factor. This value is in IQ24