This example shows how to control the torque in an electrical-traction drive based on a five-phase permanent magnet synchronous machine (PMSM). A DC voltage source feeds the PMSM through a controlled five-phase converter. The PMSM operates in both motoring and generating modes according to the load. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the PMSM torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to a relevant q-axis current reference. The current control is PI-based. The simulation uses several torque steps in both motor and generator modes. The Scopes subsystem contains scopes that allow you to see the simulation results.
The plot below shows the requested and measured torque for the test, as well as the phase currents in the electric drive.