National High-Tech Enterprise IEC 61000 EMC · IEC 60730 Class B · RoHS ISO 9001 certified Jinhua, Zhejiang · around 200 staff · 25 in R&D
TECHNICAL NOTE 20 / 22

FOC Motor Control: An Introduction

Sailike R&DFOC technical notes 中文原文

1. Introduction to FOC

FOC (Field Oriented Control) translates literally as field-oriented control, and is also called vector control (VC).

A magnet attracts the opposite pole and repels the like pole. The torque of a motor arises from the interaction between the stator and rotor fields. Intuitively the torque is largest when the stator field leads the rotor field by 90°, that is, when the stator field pulls from the front and pushes from the rear. If the angle between the two fields is always kept optimal, the motor runs efficiently and smoothly.

  • For a DC motor, mechanical commutation through the brushes keeps the field angle at the optimum of about 90°.
  • For a brushless DC motor (BLDC), an electronic commutator energises different windings in turn so that the stator field leads the rotor field. The winding is usually switched every 60° of electrical angle, so the lead angle of the stator field varies between 120° and 60°. With an ideal trapezoidal back-EMF the torque would be constant, but a motor with a truly ideal trapezoidal waveform is hard to build, so torque ripple appears.
  • For a permanent magnet synchronous motor (PMSM), the stator winding currents are controlled so that the stator field always leads the rotor field by 90°. With a circular flux linkage this gives the best efficiency; for an interior permanent magnet synchronous motor (IPMSM) the reluctance torque moves the optimum efficiency angle slightly above 90°.

This is the aim of FOC vector control: the best control efficiency together with a smooth torque characteristic.


2. Why a three-phase motor?

Take a star-connected (Y) winding: the three windings meet at a neutral point and three terminals U, V and W are brought out. When three sinusoidal currents of equal amplitude and 120° phase difference flow through the windings, they produce a rotating stator field of 1.5 times the single-phase amplitude and the same frequency as the currents. Controlling the amplitude and the phase of this resultant field fulfils the purpose of FOC.

Why not a two-phase motor? Two orthogonal windings can also produce the same rotating field. Two-phase windings, however, usually need four taps instead of three, so the inverter topology and the control are more complex. A centre-tapped arrangement similar to an H-bridge is also possible, but its DC bus utilisation is far below that of a three-phase bridge. The three-phase system therefore offers the best balance of cost, efficiency and complexity.

More generally, five-phase, six-phase and seven-phase machines also exist. They serve mainly where redundancy matters: if one winding of a three-phase machine is open, the field becomes a pulsating field and the motor cannot rotate normally, whereas a multiphase machine still synthesises a rotating field from the remaining phases and continues at reduced rating.


3. Mathematical model of the three-phase motor

Any type of motor can be reduced to a circuit of resistance, inductance and a rotating back-EMF source in series. Its voltage equation reads:

U=RI+ddt(LI)+E

Here p=ddt is the differential operator and E is the rotational back-EMF.

In a three-phase motor the three windings are coupled. The inductance matrix includes the phase self-inductances and the mutual inductances, and the inductances vary with angle because the magnetic circuit changes with rotor position. The model of a three-phase motor is therefore a nonlinear, strongly coupled, high-order system that is difficult to control directly.

The voltage equations in the three-phase stationary frame are:

[UaUbUc]=Rs[iaibic]+ddt[LaaLabLacLbaLbbLbcLcaLcbLcc][iaibic]+[EaEbEc]

> [Illustration suggestion] _Figure 1: Equivalent circuit of a three-phase motor._ Draw three windings with series resistance, inductance shown as coupled inductor symbols and back-EMF sources, and show the star point.


4. Clarke transform

To reduce the control difficulty the Clarke transform is introduced. Three-phase windings ( a,b,c ) can synthesise a rotating field, and so can two orthogonal windings ( α,β ). The purpose of the Clarke transform is to replace the three-phase stationary frame ( a,b,c ) by an equivalent two-phase stationary frame ( α,β ).

The resultant vector of three-phase windings has 1.5 times the single-phase amplitude, while two-phase windings give 1 times, that is, the same amplitude as a single phase. A constraint must therefore be imposed on the transform, and two choices are usual: the amplitude-invariant transform, which keeps the resultant amplitude equal, or the power-invariant transform, which keeps the power unchanged. The commonly used amplitude-invariant Clarke transform is given below:

The transform matrix is:

[iαiβ]=23[1−12−12032−32][iaibic]

After the Clarke transform the motor model uses two orthogonal windings instead of three, which lowers the order of the system. The winding inductance still varies with rotor position, however, so the nonlinearity remains and the control problem is not solved completely. The Park transform is therefore required.

Image source: see watermark


5. Park transform

If the direction of the resultant vector is known, the two stationary windings can be replaced by two windings that rotate synchronously with the vector, so that an observer sees DC quantities. This is the Park transform.

The Park transform converts the two-phase stationary frame ( α,β ) into a two-phase rotating frame ( d,q ). The rotating frame is usually aligned with the rotor flux vector, which is also called rotor field oriented control (FOC).

  • d axis (direct axis): in the direction of the rotor field, used to control the magnitude of the rotor field; for a permanent magnet synchronous motor the d-axis current is normally held at id=0 to maximise the torque output.
  • q axis (quadrature axis): orthogonal to the rotor field, used to control the magnitude of the stator field and to produce torque directly.

The transform is:

[idiq]=[cosθsinθ−sinθcosθ][iαiβ]

Here θ is the rotor electrical angle, that is, the angle between the rotor field and the α axis.

The motor model after the Park transform is:

{Ud=Rsid+Lddiddt−ωeLqiqUq=Rsiq+Lqdiqdt+ωeLdid+ωeψf

Here ωe is the electrical angular speed and ψf is the permanent-magnet flux linkage.

The transformed model no longer contains position-dependent inductances; the complex three-phase model is decoupled into two independent linear subsystems, the d axis and the q axis. The control target thus changes from sinusoidal quantities to two DC quantities.

Image source: see watermark; please contact us if removal is required.


6. Applying the control

With the Clarke and Park transforms a permanent magnet synchronous motor can be controlled as easily as a DC motor. A common FOC block diagram is shown below:

Cascaded PID control structure:

  1. Innermost loop: current loop. It controls id and iq and is the fastest loop. The reference of id is normally set to zero, or adjusted for field weakening, and the reference of iq comes from the speed loop.
  2. Middle loop: speed loop. It controls the motor speed and outputs the reference of iq .
  3. Outermost loop: position loop (optional). It controls the motor position and outputs the reference of the speed loop.

In a cascaded PID structure, when the inner current loop responds fast enough it can be treated as a linear element, and the outer loops, the speed loop and the position loop, then behave as a linear time-invariant system with good controllability.

Key precondition of the control: accurate knowledge of the rotor field position. For a permanent magnet synchronous motor the rotor position θ is usually obtained from a coaxial position sensor such as an optical encoder or a resolver. In sensorless control it is estimated by an observer such as a sliding-mode observer or a Luenberger observer.

Image found online; image source: see watermark; please contact us if removal is required.

This article was compiled with AI and proofread manually.