The advantages of using FOC to control AC motors include:
- Torque and flux controlled directly and separately
- Accurate transient and steady-state management
- Similar performance compared to DC motors
The Controller_Algorithm subsystem contains all three PI controllers. The outer-loop PI
controller regulates the speed of the motor. The two inner-loop PI controllers control the
d-axis and q-axis currents separately. The command from the outer loop PI controller
directly feeds to the q-axis to control torque. The command for the d-axis is zero for
PMSM because the rotor flux is fixed with a permanent magnet for this type of AC motor.
Before tuning controllers, examine the speed responses with the original controllers, and
save the simulation results to a MAT-file, SystunedSpeed.mat. The existing speed PI
controller has gains of P = 0.08655 and I = 0.1997. The current PI controllers both have
gains of P = 1 and I = 200.
scdfocmotorSystuneOriginalResponse
Tune Field-Oriented Controllers Using SYSTUNE