import DisplayFormula from '@/components/content/DisplayFormula.astro';
Six-step square-wave commutation is simple and direct, but it produces large torque ripple and poor low-speed smoothness. FOC (field-oriented control, also called vector control) uses coordinate transforms to "translate" the three-phase AC current into two DC quantities that are controlled separately, giving an AC motor a control quality close to that of a DC motor. The performance gap between servo drives, electric-vehicle traction drives, and precision fans lies to a large extent in the quality of the FOC implementation.
Why it matters
The three phase currents combine in space into a rotating current vector whose direction and magnitude both keep changing, making direct closed-loop control difficult. FOC's approach is to "pin" the coordinate system to the rotor and rotate with it — in that frame, the rotating current vector becomes two slowly varying DC quantities that can be closed-loop controlled separately, just like a DC motor. This is the dividing line between AC motor control that "works" and AC motor control that "works well," and it is the technical source of servo performance, EV range, and low-speed smoothness.
Core concepts and formulas
The two d–q components. The coordinate system follows the rotor field direction: the d axis points along the magnetic poles, and the q axis is perpendicular to it.
- i_d (d-axis current): the component along the field direction; in surface-mounted permanent-magnet motors it is usually controlled to 0 and takes no part in producing torque;
- i_q (q-axis current): the component perpendicular to the field, which directly determines the electromagnetic torque.
For a surface-mounted permanent-magnet motor with i_d = 0, the electromagnetic torque is approximately proportional to the q-axis current i_qIn implementation, the three-phase currents first undergo the Clarke transform to obtain two-phase stationary quantities, then the Park transform with the rotor position angle yields i_d and i_q; the closed-loop output is transformed back into a target voltage vector and handed to PWM synthesis — for the modulation stage, see PWM control: principles and motor speed regulation.
Implementing FOC requires these blocks.
| Block | Role |
|---|---|
| Current sampling | At least two phase currents, combined with the bus voltage, restore the three-phase currents |
| Rotor position | Encoder/resolver, Hall sensors, or a sensorless observer (back-EMF/flux linkage) |
| Coordinate transform | Clarke/Park and their inverses, computed in real time from the position angle |
| Current loop | Independent PI regulation on the d/q axes, outputting the target voltage |
| PWM output | Space-vector modulation and similar methods synthesize the target voltage |
Field weakening for speed extension. As speed rises, the back-EMF approaches the DC bus voltage, and raising the speed further requires a negative i_d to cancel part of the permanent-magnet flux linkage (field weakening), at the cost of lower torque. This characteristic is why the permanent-magnet synchronous motor (PMSM) loses torque in the high-speed range; it is also a standard technique in high-speed spindle and traction-drive design.
Common misconceptions
- FOC requires a high-resolution encoder: the feedback form follows the accuracy requirement — fan applications can use a sensorless observer, Hall sensors can support medium- and low-speed commutation, and only servo-grade high-precision control requires an encoder.
- FOC belongs only to permanent-magnet motors: induction motors can use FOC as well, only the rotor field must be observed and estimated, so low-speed performance depends more on parameters and algorithms.
- Fitting an FOC drive automatically makes things better: the motor parameters (phase resistance, inductance, flux linkage, pole pairs) must be entered or self-learned; inaccurate parameters cause decoupling to fail, leading to heating or even loss of control.
- The higher the bandwidth, the better: current-loop bandwidth is constrained by the sampling rate and switching frequency, and excessive gain causes oscillation; proceed step by step according to the tuning procedure and drive limits.
Engineering guidance
- Identify first, then tune: after installation, run the drive self-learning/parameter identification first, then increase gain from small to large in the order current loop → speed loop → position loop, observing overshoot and oscillation with a step response at each step.
- Feedback selection and wiring: choose an encoder/resolver for servo-grade work; Hall sensors suit medium and low speeds; feedback cables must be shielded and separated from power lines — PWM noise coupling directly degrades the current loop.
- Dynamic verification: for frequent starts/stops and impact loads, use the servo sizing calculation to check peak torque and inertia ratio, then use the power, torque, and speed calculation to verify the rated operating point.
- Anticipate field weakening in high-speed applications: when the maximum speed exceeds the rated speed, calculate the torque capability in the field-weakening region and the DC bus voltage margin in advance.
- Safety: drive wiring and commissioning must be carried out with the power off, with voltage verification per the procedures; keep a record of parameter changes on file so that problems can be reproduced.