1.1.1.2 Field Oriented Control

The Field Oriented Control (FOC) is the conventional control scheme for permanent-magnet synchronous motors. It generally results in smoother torque, slightly higher efficiency, and higher torque-speed curve, compared to six-step control, but requires a measurement or estimate of rotor position, and is more computationally intensive.

This section introduces the field oriented control.

Torque Production in three-phase AC motor

A three-phase AC has a stationary part called the stator; a rotating part called the rotor. The stator consists of three-phase windings. When the stator is excited with a balanced three-phase voltage, it generates a rotating magnetic field. The rotor has generates its own magnetic field either using implanted magnets (in Permanent Magnet Synchronous Motors) or using electromagnets (Synchronous or Asynchronous AC motors). The rotor's magnetic field interacts with the stator's rotating magnetic field to produce the rotor torque.

Electromagnetic torque T e m is proportional to the cross product of stator currents and rotor flux linkage. Here z ^ is a unit vector along the axis of rotation, x and y are components of a two-dimensional plane perpendicular to z ^ , and the current vector is an equivalent vector sum of currents based on how the resulting fields are aligned with these x and y axes.

T e m = 3 2 N p ( ψ ¯ × I ¯ )
T e m = 3 2 N p ( ψ x I y I x ψ y ) z ^
T e m = 3 2 N p ψ I sin Φ
The angle Φ between flux linkage and current vectors, illustrated in the Phasor diagram Figure, plays an important role in determining electromagnetic torque. If the two vectors are aligned, this angle Φ is zero, and no torque is produced. Maximum torque occurs when the flux linkage and current vectors are perpendicular, and the term sin Φ .
Figure 1-4. Phasor diagram

Figure 1-4 Flux linkage vector, current vector, and the angle Φ between them, in an arbitrary x y coordinate frame.

It is important to note that these x and y axes are arbitrary — we can pick any unit basis vectors x ^ and y ^ that form a mutually perpendicular set with the axis of rotation z ^ , such that their cross product x ^ × y ^ = z ^ .

There are two common choices for these basis vectors. One is the stationary frame, commonly aligned with one of the stator phases. Pictured on the left of Figure Current Vector Coils is a three-phase stator with windings positioned 120° apart. This is equivalent — at least in terms of magnetic flux linkage — to a two-phase stator with orthogonal windings α and β, pictured on the right. For any combination of currents I A , I B , I C in the three-phase stator winding, the same magnetic field seen by the rotor can be produced by an appropriate combination of currents I α and I β through two “virtual” coils used to create the horizontal and vertical components of the stator field. The mathematical conversion of projecting three-phase quantities onto these virtual orthogonal coils is called the Clarke transform, after one of its originators, Edith Clarke. [2].

Figure 1-5. Current vector coils

Figure 1-5 Use of Clarke transform to convert between per-phase quantities and the α β frame The angle reference is commonly aligned with the first motor phase and the α winding. The rotor’s position is some electrical angle θ r relative to these angle references.

The Clarke transform is a linear transformation, shown in following equation, which can apply to any vector quantity X , although typical examples are voltage V , current I , or flux linkage ψ .

X α = 2 3 X A 1 3 X B 1 3 X C
X β = 1 3 X B 1 3 X C

We can substitute ( x , y ) ( α , β ) in above equation to get the following equation describing torque based on stationary-frame quantities:

T e m = 3 2 N p ( ψ α I β ψ β I α )

In the stationary reference frame, the flux vector ψ α β and current vector I α β are not fixed, but rotate along with the rotor’s magnetic field.

The other common choice of basis vectors is the rotating reference frame, aligned with the electrical angle of excitation θ e as it increases with electrical frequency ω e . This reference frame has components denoted dd (“direct”) and qq (“quadrature”). The transformation from α β to d q axes is a rotation by an angle θ e . This is known as the Park transform, named for Robert Park, who developed it in the late 1920s, while working at General Electric to analyze the dynamics of synchronous motors. [1] [3] With permanent-magnet synchronous motors, this reference frame is known as the synchronous reference frame. Correct alignment for a PMSM occurs when the d -axis is aligned with the rotor flux, and the electrical angle θ e is identical to the rotor’s electrical angle θ r .

X d = X α cos θ e + X β sin θ e
X d = X α sin θ e + X β c o s θ e

We can substitute ( x , y ) ( α , β ) in Torque Equation to below Equation, describing torque based on synchronous-frame quantities:

T e m = 3 2 N p ( ψ d I q ψ q I d )

The advantage of using the synchronous frame is that for steady-state rotation, to produce constant electromagnetic torque T e m , the flux linkage vector ψ d q and the current vector I d q are constants. This allows current controllers with an integrator term to operate with zero steady-state error. It also allows for independent torque and flux control.

It is worth noting that for different motor types, the angle of the reference frame θ e and the electrical angle of the rotor θ r may or may not be identical. For permanent-magnet synchronous motors, the reference frame should be aligned with the permanent magnet flux of the rotor, so that θ e = θ r . For induction motors θ e θ r ; the electrical frequency ω e = ω r + ω s where ω r is the rotor speed expressed as an electrical frequency, and ω s is the slip frequency needed to produce rotor current.

FOC block diagram

The general structure of an FOC controller is an inner vector current loop, and an outer velocity loop, as shown in below figure.

Figure 1-6. FOC Block Diagram

The inner vector current loop has a current controller that operates in the synchronous ( d q ) frame. Park and Clarke transforms are used in the feedback path to convert measured phase currents to the synchronous frame as inputs to the current controller, and in the forward path to convert desired synchronous-frame voltages V d q to realizable PWM duty cycles in a three-phase bridge.

In its linear range, there is nothing particularly special about the vector current loop, and it is often realized as two PI controllers, one for the d axis and the other for the q axis. Saturation and anti-windup should be designed carefully, keeping in mind the overall vector controller, rather than as two independent axis controllers.

The following steps summarize the basic sensorless FOC operation:

  • Measure the current flowing in the motor. There are several ways to measure the three-phase currents flowing in the motor. Some popular options include measurement using hall-effect or transformer-based magnetic sensors or using strategically placed one, two or three shunt resistors.

  • Estimate the rotor flux angle. The rotor flux angle can be estimated by either back EMF-based algorithms or by high-frequency pulse injection.

  • Transform the measured current to α β reference frame. The measured phase currents of the motor are transformed to two orthogonal components in α β reference frame by Clarke Transformation.

  • Transform the α β current to d q current. The α β are transformed to two orthogonal components in

    reference frame using the estimated rotor flux angle by Park Transformation.

  • Compare the measured d q current with the desired current and generate an error signal. The desired q -axis reference current for controlling the torque, and desired d -axis current for controlling the flux are compared with their corresponding measured quantities to generate respective error signals.

  • Estimate the rotor flux angle. The rotor flux angle can be estimated by either back EMF-based algorithms or by high-frequency pulse injection.

  • Calculate control voltage from the error signal. The error signals are used to calculate correction voltage. Conventionally a closed-loop feedback mechanism using a PI regulator is used for the task.

  • Apply control voltage to motor terminals. The correction voltage in d q reference frame is transformed back to voltages in

    reference frame. These voltages are applied to the motor terminals by some power switching techniques. Conventionally in MCU-based systems, PWM modulation techniques like Space Vector modulation are used for the task.

References

Some of the material in this section was adapted from the section “FOC in Fifteen Minutes” from the 2016 MASTERS presentation How to Succeed in Motor Control.

  1. R. H. Park, “Two-reaction theory of synchronous machines generalized method of analysis-part I,”, Transactions of the American Institute of Electrical Engineers, vol. 48, no. 3, pp. 716-727, July 1929.
  2. W. C. Duesterhoeft, M. W. Schulz and E. Clarke, “Determination of Instantaneous Currents and Voltages by Means of Alpha, Beta, and Zero Components,”, Transactions of the American Institute of Electrical Engineers, vol. 70, no. 2, pp. 1248-1255, July 1951.
  3. C. J. O’Rourke, M. M. Qasim, M. R. Overlin and J. L. Kirtley, “A Geometric Interpretation of Reference Frames and Transformations: dq0, Clarke, and Park,”, IEEE Transactions on Energy Conversion, vol. 34, no. 4, pp. 2070-2083, Dec. 2019. Also available via MIT Open Access.
  4. D. Busse, J. Erdman, R. J. Kerkman, D. Schlegel and G. Skibinski, “Bearing currents and their relationship to PWM drives,”, IEEE Transactions on Power Electronics, vol. 12, no. 2, pp. 243-252, March 1997.
  5. Annette von Jouanne and Haoran Zhang, “Bearing Currents: A Major Source of Mechanical Failure for Motors in Adjustable Speed Drive Applications”, Turning Point (US Department of Energy), p. 3, Sep 1998.
  6. IEC 60034-8 Rotating electrical machines, Part 8: Terminal markings and direction of rotation.
  7. For copper temperature coefficient, see the two sources below. The figure 0.00393/°C is bandied about quite a lot, but this was decided by convention in 1913, based on data available at the time. (See [8], page 4.) The 1979 article by Matula [9] identifies and re-publishes numerous datasets for copper resistivity measurements and proposes an interpolated table of Recommended Values for the Electrical Resistivity of Copper (see table 2) vs. temperature.
  8. “Copper Wire Tables”, National Bureau of Standards Handbook 100, February 1966.
  9. “Electrical resistivity of copper, gold, palladium, and silver”, R. A. Matula, Journal of Physical and Chemical Reference Data, vol. 8, no. 4, pp. 1147-1298, Oct 1979.