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

FOC Motor Control: SVPWM

Sailike R&DFOC technical notes 中文原文

1. Introduction

PWM (Pulse Width Modulation) is a technique that uses a digital signal to control an analog circuit. Its core is to adjust the duty cycle of the pulses so as to obtain the required voltage or current output in an equivalent sense. The theoretical basis is the equal-area principle: in an inertial system, equal impulses produce essentially the same response. For a first-order inertial element formed by an inductor and a resistor, a change of the input voltage does not step the current but makes it follow the exponential law of a first-order system. A series of discrete voltage pulses can therefore generate a continuous and controllable current response.

SPWM (Sinusoidal PWM) varies the width of the PWM pulses sinusoidally so that an equivalent sinusoidal voltage waveform appears across the load. For a three-phase star-connected load the phase voltage amplitude is at most 12Udc .

SVPWM (Space Vector Pulse Width Modulation) starts from a different viewpoint. In field-oriented control (FOC) the controlled quantity is the field vector, and that vector is synthesised from the three phase currents. SVPWM does not pursue a sinusoidal output voltage waveform directly; it starts from the voltage space vector, combines inverter switching states to synthesise a rotating circular voltage vector inside the motor, and thereby controls the flux linkage precisely.

2. Principle

Take a three-phase voltage-source inverter: its topology consists of six switches forming three legs. Turning the switches on and off yields eight different switching state combinations. Listed as a truth table, these comprise six nonzero basic vectors and two zero vectors.

According to the spatial distribution of the output voltage vectors, the six basic vectors are spaced by 60∘ and connected in turn to form a regular hexagon centred on the origin.

Take the basic vector 100 , for which the upper switch of the U phase and the lower switches of the V and W phases are on. The U-phase output is then connected to the positive DC bus and the V- and W-phase outputs to the negative DC bus. Assuming a symmetrical star-connected load, the U-phase voltage is 23Udc .

To synthesise a voltage vector of arbitrary position and amplitude, the volt-second balance principle is applied: two adjacent basic vectors of the sector that contains the target vector, together with one or more zero vectors, are applied for controlled times within one switching period to synthesise the target vector in an equivalent sense. It is easy to show that the largest undistorted circular voltage vector SVPWM can synthesise has the amplitude of the inscribed circle of this hexagon. Geometry gives an inscribed radius of 32·23Udc=33Udc≈0.577Udc . Compared with the maximum phase voltage amplitude that SPWM reaches, 0.5Udc , SVPWM raises the utilisation of the DC bus voltage by a factor of 0.5770.5=1.155 .

3. Vector synthesis

a. Sector selection

To synthesise a given target voltage vector 𝐕ref , the sector of the hexagon that contains it must first be determined. Three auxiliary variables Uref1,Uref2,Uref3 are therefore introduced in the α - β frame, defined as follows:

{Uref1=UβUref2=32Uα–12UβUref3=−32Uα–12Uβ

From the signs of these three variables, three Boolean variables A,B,C are defined:

  • If Uref1>0 , then A=1 , otherwise A=0 ;
  • If Uref2>0 , then B=1 , otherwise B=0 ;
  • If Uref3>0 , then C=1 , otherwise C=0 .

The variable N=A+2B+4C is then defined. The value of N stands in one-to-one correspondence with the sector number, usually denoted Sector. A look-up table or a specific formula then determines, from the value of N , the sector that contains the target vector, and hence the two adjacent basic vectors used for the synthesis.

b. Determination of the application times

Once the sector is known, the application times of the two adjacent basic vectors and of the zero vectors within one switching period Ts must be computed. Let the application times of the two basic vectors be T1 and T2 . By the volt-second balance principle, resolving the target vector along the directions of the two adjacent basic vectors yields the formulas for T1 and T2 . Three temporary variables X,Y,Z are usually introduced to simplify the computation:

{X=3UβTsUdcY=(32Uα+32Uβ)TsUdcZ=(−32Uα+32Uβ)TsUdc

The corresponding T1 and T2 are then selected from the sector number. For example, when Sector =1 , T1=−Z and T2=X . In practice T1 and T2 must also be saturated so that T1+T2≤Ts .

c. Vector allocation

Once the application times T1 and T2 of the two basic vectors are known, the remaining time T0=Ts–T1–T2 is filled by the zero vectors ( 𝐕0 and 𝐕7 ). The order of the vectors must be arranged to optimise switching loss and harmonic performance. A common and effective method is the seven-segment SVPWM. Its principle is that only one switch changes state at each transition, which reduces the switching loss. For one sector a typical allocation order is:

𝐕0→𝐕4→𝐕6→𝐕7→𝐕6→𝐕4→𝐕0

This symmetrical allocation makes the PWM waveform centre-symmetrical and gives good harmonic behaviour.

Another method is the five-segment SVPWM, with the allocation order:

𝐕0→𝐕4→𝐕6→𝐕4→𝐕0

Here the zero vector is inserted only once per switching period. The number of switching events is smaller, but a zero vector acts for a longer continuous time, which may cause a larger current ripple and more harmonic content.

d. PWM generation

To realise the allocation described above, the timer counting mode must match it. Microcontroller timers usually support up-counting, down-counting and up-down counting, the last being the centre-aligned mode. Because the seven-segment SVPWM waveform is symmetrical and centre-aligned, the up-down counting mode suits it best. In this mode the counter value first rises and then falls, which naturally produces a symmetrical PWM waveform. Mapping the computed T1,T2,T0 to the compare values of the timer makes the switches turn on and off at the corresponding instants, and finally generates the PWM signals required to drive the inverter.

This article was compiled with AI and proofread manually.