Vector Control
Field-Oriented Control (FOC), helps you achieve high-performance dynamics in both Permanent Magnet Synchronous Motors (PMSM) and Induction Motors. The fundamental principle of FOC is the decoupling of stator current vectors into two orthogonal components: one for magnetic flux and the other for torque production. This decoupling is facilitated by mathematical abstractions known as the Clarke and Park transformations. First, the Clarke transformation converts the three-phase stationary current signals into a two-phase stationary alpha-beta frame. Subsequently, the Park transformation rotates these stationary vectors into a synchronous d-q frame that rotates in alignment with the rotor's magnetic field. By converting complex AC waveforms into DC-like quantities, FOC allows for the independent and precise control of torque and flux.
The Simulink model that you create using Motor Control Blockset can be used to integrate the power inverter, the motor’s mathematical representation, and the FOC algorithm consisting of nested Proportional-Integral (PI) control loops. You can simulate FOC for both PMSM and Induction Motors by adjusting the machine block parameters and the specific flux estimation logic required for each motor type.
Motor Control Blockset also supports Direct torque control (DTC), which is a vector motor control technique that implements motor speed control by directly controlling the flux and torque of the motor. Unlike field-oriented control (FOC) that controls d- and q-axis motor currents, the DTC algorithm estimates the torque and flux values from the motor position and currents. Then it uses PI controllers to control the motor torque and flux to eventually generate the optimum voltages that run the motor.
Note
The blocks listed here are compliant with the MISRA C™ guidelines.
Functions
mcb.PMSMCharacteristics | Compute and plot PMSM drive characteristics and constraint curves (Since R2022b) |
mcb.ACIMCharacteristics | Compute and plot ACIM characteristic curves (Since R2022a) |
mcb.getPIControllerParameters | Compute gains for PI controller in field-oriented control |
mcb.calcFOCGains | Compute gains and transfer functions for PI controller in field-oriented control of PMSM (Since R2025a) |
mcb.getMotorControlAnalysis | Frequency-domain analysis plots for PI controller of field-oriented control |
Blocks
Topics
- Field-Oriented Control
Implement speed control for PMSM and induction motor by using field-oriented control.
- Design Field-Oriented Control Algorithm
Design and integrate the torque-control and speed-control subsystems.
- Field-Weakening Control
Implement control for speeds above base speed for PMSM and induction motor by using field-weakening control.
- Code Verification and Profiling Using PIL Testing
This example explains PIL profiling on Texas Instruments® LAUNCHXL-F28379D hardware board.
- How to Use Single Shunt FOC Library Blocks
This example shows how to use the Simulink blocks for single shunt FOC available with Motor Control Blockset™.
- Direct Torque Control (DTC)
Implement speed control for PMSM by controlling motor flux and torque.









