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_krpm_to_pu_sf(EST_Handle handle);
Gets the krpm to pu scale factor in per unit (pu), IQ24. This function is needed when a user needs to scale a value of the motor speed from kpm (kilo revolutions per minute) to a per units 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(USER_MOTOR_NUM_POLE_PAIRS * 1000.0 / (60.0 * USER_IQ_FULL_SCALE_FREQ_Hz));
_iq Speed_krpm = EST_getSpeed_krpm(handle);
_iq Speed_krpm_to_pu_sf = EST_get_krpm_to_pu_sf(handle);
_iq Speed_pu = _IQmpy(Speed_krpm,Speed_krpm_to_pu_sf);
The estimator (EST) handle
The krpm to pu scale factor. This value is in IQ24