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 08 / 22

FOC Motor Control - Low Carrier Ratio Operation

Sailike R&DFOC technical notes 中文原文

In permanent magnet synchronous motor drive systems, the carrier ratio λ=fPWM/fe is defined as the ratio of the PWM switching frequency to the fundamental frequency of the motor. When the motor operates at high speed the fundamental frequency rises, and if the switching frequency is limited by power device losses or hardware capability the carrier ratio drops markedly and operation enters the low carrier ratio region (usually λ<15 ). At this point the effects of the discretization of the digital control system, of the sampling and update delays and of the observer performance on the control performance become prominent. This chapter describes the principles and challenges of low carrier ratio operation and analyzes the sampling and update strategies, the delay compensation methods and their influence on the current loop and on the sensorless observer.

a. Introduction

In motor control systems the PWM frequency is usually fixed, while the fundamental frequency of the motor increases as the speed rises. When the motor operates above the rated speed (for example in the field-weakening region), the fundamental frequency can reach several hundred hertz or even more than a thousand hertz, and the carrier ratio λ=fPWM/fe drops markedly. Low carrier ratio operation faces the following challenges:

  • The digital control delay (sampling, computation, PWM update) is not negligible relative to the fundamental period, which reduces the phase margin of the current loop.
  • The angle lag in the rotating coordinate transformations (Park and inverse Park) causes cross-coupling between the axes.
  • The time mismatch between the input voltage and current signals of the sensorless observer affects the accuracy of the position estimation.
  • The discretization error increases and the performance of controllers designed in the traditional continuous domain deteriorates.

Low carrier ratio operation therefore requires dedicated delay compensation, optimized sampling strategies and dedicated observer design.

b. Principles and delay analysis

b.1 Digital control delay chain

The delays of a typical digital motor control system include:

  1. Current sensing delay Tsamp : The ADC sampling and conversion time, usually arranged at the midpoint of the PWM period (underflow) to avoid switching noise.
  2. Computation delay Tcalc : The execution time of the controller algorithm, usually less than one PWM period.
  3. PWM update delay Tupdate : The duty cycle registers take effect at the beginning of the next PWM period.

The total control delay is usually Td=Tsamp+Tcalc+Tupdate . In the conventional single-sampling single-update mode the total delay is about 1.5Ts (where Ts is the PWM period), that is, one and a half periods must elapse after the control variable is updated before it affects the output.

b.2 Angle compensation in the rotating coordinate transformation

In the dq rotating coordinate system, both the Park transformation and the inverse Park transformation depend on the rotor position angle θ . When a control delay exists, the angle corresponding to the voltage vector actually applied deviates from the angle at the current sampling instant. Without compensation this causes cross-coupling between the dq axes and makes the decoupling of the current loop ineffective.

Assume the total delay of the system is Td and the rotor angle at the current sampling instant is θ(k) ; then the angle at which the voltage command actually acts on the motor is θ(k)+ωTd . Therefore, in the inverse Park transformation (transforming the dq voltage command into the αβ coordinate system), the compensated angle should be used:

θcomp=θ(k)+ω·Td

In the conventional single-sampling single-update configuration, Td≈1.5Ts , so an angle lag of 1.5Ts must be compensated. If the dual-sampling dual-update mode is used, the delay can be reduced to 0.5Ts and the compensation decreases accordingly.

c. Single-sampling single-update and dual-sampling dual-update

c.1 Single-sampling single-update mode

In the single-sampling single-update mode the current is sampled once per PWM period (usually at the midpoint of the period) and, after the computation is finished, the duty cycles are updated to the compare registers of the next period. The timing of this mode is:

  • Sampling instant: tsamp=kTs+Ts/2
  • Computation finished: tcalc≈kTs+Ts/2+Tcalc
  • Update effective: tupdate=(k+1)Ts

The total control delay is Td≈1.5Ts . This mode is simple to compute and undemanding on processor resources, but the delay is large and limits the current loop bandwidth.

c.2 Dual-sampling dual-update mode

In the dual-sampling dual-update mode the current is sampled twice per PWM period (at the midpoint Ts/2 and at the end point Ts of the period), with two computations and two duty cycle updates accordingly. The typical timing is:

  • First sampling: tsamp1=kTs+Ts/2 , updated after computation to the half period starting at t=(k+1)Ts .
  • Second sampling: tsamp2=(k+1)Ts , updated after computation to the half period starting at t=(k+1)Ts+Ts/2 .

This mode reduces the control delay to Td≈0.5Ts and significantly raises the upper limit of the current loop bandwidth. It does, however, require sufficient processor computation capability and must handle the current reconstruction and angle interpolation of the two samplings.

c.3 Influence on the current loop

The closed-loop bandwidth of the current loop is limited by the control delay. In the continuous domain the phase lag of the open-loop transfer function of the current loop comes mainly from the e−sTd term. The larger the delay, the smaller the phase margin and the lower the maximum achievable bandwidth.

In the single-sampling single-update mode the maximum current loop bandwidth is usually limited to fPWM/10~fPWM/8 . In the dual-sampling dual-update mode the bandwidth can be raised to fPWM/4~fPWM/3 , which better suits the requirements of low carrier ratio operation.

d. Input signal alignment of the sensorless observer

In low carrier ratio operation the input voltage and current signals of the sensorless observer (such as a sliding-mode observer or a flux observer) suffer from a time mismatch. A typical observer equation is:

ddtψ^s=us−Ris

If the voltage and current sensing are not synchronized, or a delay exists between the voltage command and the voltage actually applied, the observer model is mismatched and an observation error results.

Choice of the voltage step index : In the single-sampling single-update mode, at the present instant (step k ) the sampled current is i(k) , which corresponds to the actual current at t=kTs+Ts/2 . The voltage command u(k−1) (computed in the previous step) acts on the motor during the interval from t=kTs to (k+1)Ts . Therefore, using the voltage of two steps back u(k−1) together with the current of the present step i(k) in the observer accords better with the physical timing:

ddtψ^s(k)=u(k−1)−Ri(k)

In this way the voltage and current are approximately aligned in time (differing by about Ts/2 ). If the dual-sampling dual-update mode is used, a more recent voltage command can be paired with the current, further reducing the time mismatch.

Engineering experience : In low carrier ratio operation the common practice is:

  • The observer input voltage uses the voltage command of the previous step (or of two steps back) rather than the command of the present step.
  • The observer output delay is included in the angle compensation to ensure that the observed angle is aligned with the current sensing instant.
  • If a phase-locked loop is used to extract the angle, its loop bandwidth must be adjusted to suit the phase lag at low carrier ratio.

e. Key points of engineering implementation

  • Angle compensation formulas : In the single-sampling single-update mode the compensation angle of the inverse Park transformation is θ^(k)+ω^(k)·1.5Ts ; in the dual-sampling dual-update mode it is 0.5Ts .
  • Current sensing alignment : Ensure that the current sampling point is aligned with the midpoint of the PWM period to avoid switching noise.
  • Observer timing design : Take the observer input voltage from the command of the previous step so that it matches the present current.
  • Bandwidth limitation : Set the bandwidths of the current loop and the speed loop sensibly according to the actual carrier ratio to avoid instability.
  • Discretization method : At low carrier ratio use exact discretization (such as the zero-order hold, ZOH) instead of the approximate Euler method to improve the model accuracy.

f. Conclusion

Low carrier ratio operation is a key technical challenge in high-speed motor control. The digital control delay, the sampling and update strategy and the observer signal alignment directly affect the system stability and dynamic performance. The single-sampling single-update mode is simple to implement but has a large delay and suits moderate carrier ratios; the dual-sampling dual-update mode halves the delay and significantly raises the upper limit of the current loop bandwidth. At low carrier ratio the inverse Park transformation must compensate an angle lag of 1.5Ts or 0.5Ts , and the sensorless observer should pair the voltage of two steps back with the current of the present step to guarantee the timing consistency of the input signals. Sensible design of the delay compensation and of the sampling strategy enables stable, high-performance motor control at low carrier ratio.

This article was compiled by AI and proofread manually.