SLAU927B June 2024 – November 2024 MSPM0G3507
The FOC Algorithm uses an integrated speed control loop /Power Control Loop that helps maintain a constant speed/ Constant power over varying operating conditions. The Kp and Ki coefficients are configured through speedLoopKp and speedLoopKi in the "System Configurations" section on the Motor Tuning page. The output of the speed loop / power Loop is used to generate the current reference for torque control. The output of the speed loop /power Loop is limited by configuring iLIMIT in the closedLoop1 configuration in the Register Map page of GUI. When output of the speed loop / Power Loop saturates, the integrator is disabled to prevent integral wind-up.
To tune the Kp and Ki values for speed loop:
The following table shows general guidelines to change controller gains.
Parameter | Rise Time | Overshoot | Settling Time | Stead State Error | Stability |
---|---|---|---|---|---|
Kp | Decreases | Increases | Small Change | Decreases | Degrades |
Ki | Decreases | Increases | Increases | Eliminates | Degrades |