- Detail the complete closed-loop signal architecture and dataflow of Field-Oriented Control (FOC).
- Formulate the cross-coupling dynamic terms (\omega_e L_q I_q and \omega_e L_d I_d) in the d-q synchronous frame.
- Derive the feedforward cross-coupling decoupling network to enforce true SISO control channels.
- Synthesize PI current regulator gains ($K_p, K_i$) via analytical pole-placement matching motor parameters ($R_s, L_d, L_q$).
- Manage 10–20 kHz discrete sampling delays and ensure ISO 26262 ASIL-D torque plausibility safety.
MOTOR-17 — Field-Oriented Control (FOC)
FACT — In virtually every modern road-going electric vehicle (Tesla, Porsche, Hyundai, BYD), the Motor Control Unit (MCU) runs Field-Oriented Control (FOC) at its core. By decoupling complex AC dynamics into orthogonal magnetic flux and electromagnetic torque axes, FOC translates driver pedal demands into instantaneous, ripple-free wheel torque within fractions of a millisecond.
In this lesson, we examine the complete closed-loop architecture of FOC, the dynamics of cross-coupling decoupling, and analytical PI loop tuning for high-performance automotive traction:
- FOC Closed-Loop Architecture & Signal Flow
- Synchronous Voltage State Equations
- Cross-Coupling Dynamics & Feedforward Decoupling Networks
- Current Loop Synthesis & Analytical PI Tuning ()
- Managing 10–20 kHz Discrete Sampling & Execution Delays
- Inverter Integration & ISO 26262 ASIL-D Plausibility Monitoring
1. FOC Architecture and Closed-Loop Signal Flow
The core principle of FOC is to orient the stator current vector relative to the rotor magnetic field.
The signal chain executes cyclically:
- Current Sensing: Stator phase currents () are sampled simultaneously by isolated Hall-effect or shunt sensors.
- Rotor Angle Synchronization: A Resolver-to-Digital Converter (RDC) provides rotor electrical angle ().
- Clarke & Park: Currents are mapped into the synchronous rotating frame, yielding DC quantities and .
- Current Regulators: Dedicated PI controllers compare feedback currents () against torque-derived setpoints ().
- Decoupling Network: Speed-dependent coupling voltages are cancelled via feedforward injection.
- Inverse Park & SVPWM: Demanded voltages () are rotated into coordinates and modulated onto the physical inverter switches via Space Vector PWM.
FOC Signal Flow:
Torque Request ---> [ MTPA Table ] ---> I_d*, I_q*
|
+---------------------------------------+
|
v
I_d* --(+)--> [ PI_d ] --(+)--> V_d* -----\
^ - ^ + \
| | \
I_d -w_e*L_q*I_q (Decoupling) \
| \
| +--> [ Inv. Park ] ---> [ SVPWM ] ---> [ Inverter ] ---> Motor
| / ^
I_q +w_e*(L_d*I_d + psi_m) / |
| | / theta_e
v - v + / |
I_q* --(+)--> [ PI_q ] --(+)--> V_q* -----/ |
|
[ ia, ib ] ----> [ Clarke ] ----> [ Park ] <------------+ [ Resolver: theta_e ]
2. PMSM Voltage Equations in the Frame
In the synchronously rotating reference frame, the dynamic voltage equations of a PMSM are expressed as:
Where:
- : Stator phase resistance ()
- : Direct and quadrature inductances ()
- : Stator electrical angular velocity ()
- : Rotor permanent magnet flux linkage ()
3. Cross-Coupling Dynamics and Feedforward Decoupling
Notice the speed-dependent cross-coupling terms:
- The equation contains ().
- The equation contains ().
At high rotor speeds (), these mutual coupling terms dominate. If left uncompensated:
- Step commands in (acceleration) induce severe voltage disturbances across the -axis, corrupting the flux state.
- The two axes cross-interfere, leading to regulator fighting, severe current overshoot, and potential inverter overcurrent tripping.
Feedforward Decoupling Synthesis:
To present the linear PI regulators with purely uncoupled, first-order plants, the cross-coupling terms are cancelled feedforward:
This decoupling cancels the nonlinearities, yielding two perfectly uncoupled SISO linear plants:
4. Current Loop Synthesis & Analytical PI Tuning
With the plant decoupled into a standard first-order lag, controller synthesis proceeds via pole-zero cancellation:
The PI regulator transfer function:
Placing the controller zero directly over the motor electrical pole ():
The open-loop transfer function reduces to a pure integrator:
The resulting closed-loop transfer function exhibits clean first-order low-pass filter dynamics:
Where is the targeted angular closed-loop current bandwidth ().
The PI gains are calculated analytically:
EXAMPLE — For a traction e-motor with and , selecting a closed-loop current bandwidth () yields:
5. Discrete Sampling and Timing Delays
Automotive traction inverters typically switch at ( for Silicon Carbide).
In digital embedded execution, discrete time delays inevitably affect phase margin:
- Sampling & Hold Delay (): Currents are sampled at the PWM carrier midpoint to avoid switching noise.
- Computational Processing Delay (): Transform calculations and PI loops execute during the cycle and update the PWM registers at the next carrier boundary.
The total effective delay is approximately ( at ). To maintain robust stability margins ( phase margin), the current loop bandwidth is rule-of-thumb constrained to:
6. ISO 26262 ASIL-D Safety Architecture
Under automotive functional safety requirements, the MCU executes continuous plausibility monitoring:
- Torque Plausibility Check: Estimated instantaneous shaft torque () is compared against driver demand. Discrepancies exceeding safety limits trigger an automatic shutdown into Active Short Circuit (ASC) within .
- Voltage Circle Limiter: When demanded vector voltage exceeds physical DC rail capability (), the voltage vector is scaled down radially to maintain stability without windup.
7. Summary
- FOC provides decoupled, high-dynamic control of magnetic flux () and electromagnetic torque ().
- Feedforward decoupling cancels speed-induced cross-coupling terms ( and ), converting coupled nonlinear dynamics into linear SISO plants.
- Analytical pole-placement matches PI gains directly to motor electrical constants (, ).
- Executing at , the current loop delivers millisecond-grade torque responsiveness, maximum drive-cycle efficiency, and smooth traction control.
Next Lesson
- MOTOR-18 — Space Vector PWM (SVPWM): Modulating voltage commands into physical inverter switching times, DC bus utilization benefits, and dead-time distortion compensation.
Technical Diagrams
Quiz
What does Iq control in FOC?
Iq is the torque component; FOC controls torque with it.
What are the inner loops in FOC?
FOC has fast inner Id/Iq current loops.
What is a common current reference strategy for SPMSM?
For SPMSM (Ld≈Lq), Id=0 is common; torque is produced only from Iq.
What does MTPA aim for?
MTPA (Maximum Torque Per Ampere) aims for maximum torque with minimum current.
Why is Id made negative in field weakening?
Negative Id reduces the magnet flux, lowering the back EMF and widening the speed range.
What is the main benefit of FOC?
FOC separates torque and flux, providing DC-machine-like independent control.
Glossary
| English Term | Definition |
|---|---|
| Field-Oriented Control | A vector control method that drives an AC motor by separately controlling the current components that produce torque and flux, yielding DC-motor-like control. |
| Space Vector PWM (SVPWM) | A modulation technique that synthesizes a reference voltage vector by time-weighting the inverter's eight switching vectors (6 active + 2 zero); it extracts roughly 15.5% more usable DC-bus voltage than sinusoidal PWM. |