Simulink Control Design™ - MathWorks

(Tuis.) #1

Tune Field-Oriented Controllers Using Closed-Loop PID


Autotuner Block


This example shows how to use the Closed-Loop PID Autotuner block to tune Field-
Oriented Control (FOC) for a permanent magnet synchronous machine (PMSM) in just
one simulation.

Introduction of Field-Oriented Control

In this example, field-oriented control (FOC) for a permanent magnet synchronous
machine (PMSM) is modeled in Simulink® using Simscape™ Electrical™ components.

mdl = 'scdfocmotorPIDTuning';
open_system(mdl)

Field-oriented control (FOC) controls 3-phase stator currents as a vector. FOC is based on
projections, which transform a 3-phase time- and speed-dependent system into a two
coordinate time-invariant system. These transformations are the Clarke Transformation,
Park Transformation, and their respective inverse transforms. These transformations are
implemented as blocks within the Controller_Algorithm subsystem.

8 PID Autotuning

Free download pdf