MATLAB Examples

IPMSM Outer Loop Controller Evaluation

This example shows how to control the rotor angular velocity in an interior permanent magnet synchronous machine (IPMSM) based electrical-traction drive. For evaluation of the outer loop velocity controller, the inner loop current controller is replaced by a three-phase controlled current source. An ideal torque source provides the load. The Scopes subsystem contains scopes that allow you to see the simulation results. The Control subsystem includes a PI-based outer loop controller. During the three-seconds simulation, the angular velocity demand is -1000, 2000, 3000, 4000, and then 5000 rpm. Above 1630 rpm, the IPMSM enters the field weakening mode.

Contents

Model

Simulation Results from Simscape Logging

The plot below shows the requested and measured speed for the test, as well as the phase currents in the electric drive.