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
This startup method, with offsets recalibration disabled, is typical when resistance has changed but the offsets have not changed. An example of this condition is if the ambient temperature has changed, causing the stator resistance to change. Also, if the system has been in the field for a long time, it is recommended to run periodic updates to the stator resistance to make sure the software has an accurate representation of the motor model before startup up the motor in closed loop. Figure 11-5 shows the states before closing the loop when only the stator resistance (Rs) is recalibrated.
Figure 11-6 shows the current and output voltage waveforms when only Rs is recalibrated before running in closed loop.
The timing associated with the Rs recalibration state as well as the current used to recalibrate Rs is explained in detail in Section 7. In order to disable offset recalibration and enable Rs recalibration the following two functions must be called prior to enabling the controller:
// Disable Offset Recalibration
CTRL_setFlag_enableOffset(handle, FALSE);
// Enable Rs Recalibration
EST_setFlag_enableRsRecalc(obj->estHandle, TRUE);
The controller is enabled by calling the following function:
// enable the controller
CTRL_setFlag_enableCtrl(ctrlHandle, TRUE);