Skip to main content

FOC field-oriented control: principles and engineering notes

Updated 2026-10-09AdvancedControl methods

Key takeaways

  • Coordinate transforms turn the three-phase AC current into two DC quantities, i_d and i_q, controlling flux and torque separately
  • Surface-mounted permanent-magnet motors commonly use i_d = 0, so torque is approximately proportional to i_q
  • Rotor position is required: encoder/resolver, Hall sensors, or a sensorless observer
  • Tune the current loop → speed loop → position loop in sequence; inaccurate motor parameters break decoupling

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.
Plain-text equivalent: For a surface-mounted permanent-magnet motor with i_d = 0, the electromagnetic torque is approximately proportional to the q-axis current i_q

In 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.

BlockRole
Current samplingAt least two phase currents, combined with the bus voltage, restore the three-phase currents
Rotor positionEncoder/resolver, Hall sensors, or a sensorless observer (back-EMF/flux linkage)
Coordinate transformClarke/Park and their inverses, computed in real time from the position angle
Current loopIndependent PI regulation on the d/q axes, outputting the target voltage
PWM outputSpace-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

  1. 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.
  2. 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.
  3. 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.
  4. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

FAQ

Does FOC require a high-resolution encoder?

Not necessarily. The position accuracy requirement decides the feedback method: fans and pumps can use a sensorless observer, Hall sensors can cover medium and low speeds, and only servo-grade high-precision positioning requires an encoder or resolver. The finer the feedback, the better the low-speed smoothness and dynamic performance — and the higher the cost.

Can FOC be used only with permanent-magnet synchronous motors?

No. Induction motors can use FOC as well, but flux observation is needed to estimate the rotor field direction, and low-speed accuracy depends more on parameters and algorithms. Because a permanent-magnet motor's field is established by the magnets, implementation is relatively direct, making it FOC's most typical application.

Why did performance not improve after fitting a drive with FOC?

A common cause is that the motor parameters were not entered correctly or self-learned: inaccurate phase resistance, inductance, flux linkage, and pole pairs make decoupled control fail, showing up as heating, vibration, or poor load capability. Run parameter identification first, then tune in the three-loop sequence.

What is field weakening for speed extension?

As speed rises, the back-EMF approaches the bus voltage; applying a negative i_d current weakens the permanent-magnet field so the speed can be pushed higher, at the cost of proportionally lower torque. This is the origin of the high-speed characteristic of permanent-magnet motors and a normal control strategy, not a fault.

Related tools

Check servo peak torque, inertia ratio, and speed margin from inertia, load, and acceleration time.

T_peak = (J_total × 2πn / (60·t_a) + T_load) × S

Related articles

Sources

  • Modern Motor Control Technology (Wang Chengyuan et al., China Machine Press) (China Machine Press)
  • Electric Machinery (Tang Yunlin et al., China Machine Press) (China Machine Press)
WhatsApp(opens in a new tab)