What is Field-Oriented Control of Synchronous Motors?

Field-Oriented Control (FOC), also known as vector control, is the standard technique for high-performance control of Permanent Magnet Synchronous Motors (PMSM) and Brushless DC (BLDC) machines. FOC transforms three-phase sinusoidal stator currents into an orthogonal two-coordinate rotating reference frame ($d$-$q$) locked to the rotor flux angle.

By enforcing the direct-axis current $i_d = 0$ for non-salient surface-mounted PMSMs, stator current produces pure torque-producing quadrature current $i_q$. This completely decouples torque generation from magnetic flux, granting AC synchronous machines the rapid dynamic response and linear torque characteristics of a separately excited DC machine.

Mathematical Coordinate Transformations

FOC executes through two successive mathematical coordinate mappings:

1. Clarke Transformation (Three-Phase to Two-Phase Stationary)

The Clarke transformation maps three-phase balanced stator currents $i_a, i_b, i_c$ onto a stationary orthogonal two-axis reference frame ($lpha$-$eta$):

$$egin{bmatrix} i_lpha \ i_eta \end{bmatrix} = rac{2}{3} egin{bmatrix} 1 & - rac{1}{2} & - rac{1}{2} \ 0 & rac{\sqrt{3}}{2} & - rac{\sqrt{3}}{2} \end{bmatrix} egin{bmatrix} i_a \ i_b \ i_c \end{bmatrix}$$

2. Park Transformation (Stationary to Synchronous Rotating Frame)

The Park transformation rotates the stationary $lpha$-$eta$ frame into the rotor-aligned reference frame using electrical rotor angle $ heta_e$:

$$egin{bmatrix} i_d \ i_q \end{bmatrix} = egin{bmatrix} \cos heta_e & \sin heta_e \ -\sin heta_e & \cos heta_e \end{bmatrix} egin{bmatrix} i_lpha \ i_eta \end{bmatrix}$$

Here $ heta_e = p \cdot heta_m$, where $p$ is the motor pole-pair count and $ heta_m$ is the mechanical shaft angle measured by an optical encoder or resolver.

PMSM Mathematical State Equations in the d-q Frame

The dynamic voltage equations governing the stator in the synchronous rotating frame are:

$$v_d = R_s i_d + L_d rac{d i_d}{dt} - \omega_e L_q i_q$$

$$v_q = R_s i_q + L_q rac{d i_q}{dt} + \omega_e L_d i_d + \omega_e \lambda_m$$

Where $R_s$ is stator phase resistance, $L_d$ and $L_q$ are direct and quadrature inductances, $\omega_e$ is electrical angular velocity, and $\lambda_m$ is the permanent magnet flux linkage. The electromagnetic torque generated is:

$$T_e = rac{3}{2} p \left[ \lambda_m i_q + (L_d - L_q) i_d i_q ight]$$

For surface-mounted PMSMs where $L_d pprox L_q$, the reluctance torque term vanishes and torque simplifies to a linear function of quadrature current: $T_e = rac{3}{2} p \lambda_m i_q$.

Analytical PI Controller Tuning via Pole-Zero Cancellation

FOC implements a cascaded control architecture: an outer speed loop operating at 1 kHz, and two fast inner current loops ($i_d$ and $i_q$) executing at the inverter PWM switching frequency (typically 10 kHz to 20 kHz).

For the inner current loops, the transfer function from voltage to current is $G_i(s) = rac{1}{L_q s + R_s}$. Using a standard proportional-integral controller $C(s) = K_p + rac{K_i}{s} = rac{K_p s + K_i}{s}$, we cancel the motor electrical plant pole by matching the controller zero:

$$ rac{K_i}{K_p} = rac{R_s}{L_q} \implies K_p = L_q \cdot \omega_{bw}, \quad K_i = R_s \cdot \omega_{bw}$$

Where $\omega_{bw}$ is the desired closed-loop current bandwidth in radians per second, typically selected as one-tenth of the switching frequency ($\omega_{bw} = 2 \pi \cdot f_{sw} / 10$).

Cross-Coupling Decoupling Feedforward

The cross-coupling terms ($-\omega_e L_q i_q$ in the $d$-axis and $\omega_e L_d i_d + \omega_e \lambda_m$ in the $q$-axis) act as state-dependent disturbances that deteriorate performance at high shaft speeds. In Simulink, feedforward compensation terms are added directly to the PI outputs:

$$v_d^* = u_d - \omega_e L_q i_q, \quad v_q^* = u_q + \omega_e L_d i_d + \omega_e \lambda_m$$

Space Vector Pulse Width Modulation (SVPWM)

The reference voltages $v_lpha^*$ and $v_eta^*$ generated by the inverse Park transform are mapped to a three-phase two-level voltage source inverter (VSI). SVPWM synthesizes the reference voltage vector by modulating eight discrete switching states (six active vectors $V_1$ to $V_6$ and two zero vectors $V_0, V_7$), reducing current total harmonic distortion (THD) and utilizing up to 15.5% higher DC bus voltage compared to sinusoidal SPWM.