DriveElectrical Machines

PMSM Vector Space PWM (SVPWM)

PMSM Vector Space PWM (SVPWM)

This section discusses the principle and implementation steps of Space Vector Pulse Width Modulation (SVPWM), and builds a SVPWM simulation model in the Matlab/Simulink environment .

  • Field-oriented control (FOC), also known as vector control, is a commonly used PMSM control method that can achieve independent control of torque and magnetic field. Space vector pulse width modulation (SVPWM) is used to generate the PWM signal of the inverter drive motor.

  • Space vector modulation (SVPWM) is a common method for field-oriented control of PMSMs to generate pulse width modulation signals to control the switches of the inverter, thereby generating the required modulation voltage to drive the motor at the desired speed or torque.

1. Basic principles of SVPWM

Space Vector Modulation (SVPWM) is responsible for generating the pulse width modulation signals to control the switches of the inverter, thereby producing the required modulation voltage to drive the motor at the desired speed or torque.

1.1 Advantages of SVPWM

The goal of SPWM control is to make the output current as close to a sine wave as possible. The three-phase AC load also requires the balance and phase difference of the three-phase current to be maintained. Control according to a circular rotating magnetic field can achieve better performance .
Sinusoidal PWM modulation has advantages in its simplicity, but it cannot fully utilize the DC bus voltage. Since the line voltage is defined as the phase-to-phase voltage difference, it is easy to see that the line voltage is lower than the DC bus voltage.

SVPWM is based on the theory of space vector coordinate transformation. It controls the space vector trajectory to approach the ideal magnetic flux through the changes in different switching states of the inverter, obtains a quasi-circular rotating magnetic field, and has higher control performance for PMSM motors than SPWM.

The advantages of SVPWM are:

  • Good dynamic performance, small output voltage and current harmonics, can reduce the torque pulsation of the motor and improve the running performance of the motor;
  • The voltage utilization efficiency is high, and the maximum output voltage isU d / 3 U_d/ \sqrt{3}Ud/3The maximum line voltage isU d U_dUd, DC voltage utilization can reach 100%;
  • The switching loss is small. Only one switch is switched at each state change, so the switching loss is small.

PMSM Vector Space PWM (SVPWM)

1.2 SVPWM circuit topology

Consider the space vector modulation method for three-phase inverter motor control. The three-phase bridge PWM inverter has three groups of bridge arms and six switching devices. The switch states of the upper and lower bridge arms are complementary, which can produce eight switch combinations. Each switch combination will generate a specific voltage applied to the motor terminals.

The three-phase inverter circuit connected to the motor stator winding is shown in the figure below. Switches S2, S4, and S6 are complementary to S1, S3, and S5 respectively.
PMSM Vector Space PWM (SVPWM)

AC phase voltage measurementVAN V_{AN}VN,VBN V_{BN}VBN,VCN V_{CN}VCNThe relationship with the switch function is:

{ V A N = U d c ( 2 s a − s b − s c ) / 3 V B N = U d c ( 2 s b − s a − s c ) / 3 V C N = U d c ( 2 s c − s a − s b ) / 3

VANVBNVCN=Udc(2sasbsc)/3=Udc(2sbsasc)/3=Udc(2scsasb)/3{VAN=Udc(2sa−sb−sc)/3VBN=Udc(2sb−sa−sc)/3VCN=Udc(2sc−sa−sb)/3

  VNVBNVCN=Ucsasbsc/3=Ucsbsasc/3=Ucscsasb/3

Voltage is a basic space vector, and its magnitude and direction are represented by a space vector hexagon. The 8 switching combinations correspond to 8 basic voltage space vectors V_0 (0,0,0), V_1 (0,0,1), V_2 (0,1,0), V_3 (0,1,1), V_4 (1,0,0), V_5 (1,0,1), V_6 (1,1,0) and V_7 (1,1,1).
2 zero vectorsV 0 V_0V0,V 7 V_7V7Located at the origin, with a magnitude of zero, it is called the zero vector.V 1 V 6 V_1~V_6V1 V6The amplitudes are the same (the phase voltage amplitudes are all U_dc*2/3), and the spatial positions differ by 60°, and are located at the six vertices of a regular hexagon.

Substituting the 8 switch state functions into the above formula, the relationship between the 8 switch combinations and voltage is shown in the following table.

PMSM Vector Space PWM (SVPWM)
PMSM Vector Space PWM (SVPWM)

These eight voltage space vectors can form a closed regular hexagonal flux vector trajectory, but cannot produce a continuous voltage space vector operation trajectory with a large harmonic component, which will cause torque pulsation.

1.3 Continuously rotating space vector

By dividing a working cycle into 6 sectors and allocating the working time of 8 vectors, the desired voltage space vector required to generate a regular 6N-gon rotating magnetic field can be synthesized, which can approximate a circular rotating magnetic field.

PMSM Vector Space PWM (SVPWM)

In each sector, two adjacent voltage vectors and the zero vector are selected, and any voltage vector in each sector is synthesized according to the principle of volt-second balance:

∫ 0 TU refdt = ∫ 0 T x U xdt + ∫ T x T y U ydt + ∫ T y TU 0 ∗ dt \int_0^T U_{ref} dt = \int_0^{T_x} U_x dt + \int_{T_x }^{T_y} U_y dt + \int_{T_y}^T U_0^* dt0TUre ft=0TxUxt+TxTyUyt+TyTU0t

U ref T = U x T x + U y T y + U 0 T 0 U_{ref} T = U_x T_x + U_y T_y + U_0 T_0Ure fT=UxTx+UyTy+U0T0

In the formula, Uref is the expected voltage vector, T is the sampling period, Tx, Ty, T0 are the action time of two non-zero voltage vectors Ux, Uy and zero voltage vector U0 in one sampling period, respectively. U0 includes two zero vectors U0 and U7.

The meaning of the above formula is that the integral value generated by the vector Uref in time T is the same as the sum of the integral values ​​generated by Ux, Uy, and U0 in time Tx, Ty, and T0 respectively.

Since the three-phase sinusoidal voltage synthesizes an equivalent rotating voltage in the voltage space vector, its rotation speed is the input power angular frequency, and the trajectory of the equivalent rotating voltage will be a circle as shown in Figure 2-9. To generate a three-phase sinusoidal voltage, the above voltage vector synthesis method can be used. On the voltage space vector, the set voltage vector starts from the U4 (100) position and increases a small increment each time. Each small increment set voltage vector can be synthesized with two adjacent basic non-zero vectors and a zero voltage vector in the area. The set voltage vector obtained in this way is equivalent to a voltage space vector that rotates smoothly on the voltage space vector plane, thereby achieving the purpose of voltage space vector pulse width modulation.

By adjusting the action time of the basic space vector (direction) and the zero vector (amplitude) in the switching interval, the voltage vector at any position and any amplitude in the space vector hexagon can be approximated. For example, in the figure, in a pulse width modulation (PWM) cycle, two adjacent space vectors (U3 and U4 in the figure) are selected to act for a period of time, and the zero vector (U7 or U8) acts during the rest of the cycle, thereby obtaining an approximate average reference vector Uref.

By controlling the switching sequence, i.e. the on-time of the pulses, any voltage vector with varying magnitude and direction can be obtained in each PWM cycle. The goal of the space vector modulation method is to generate a switching sequence that matches the reference voltage vector in each PWM cycle to achieve a continuously rotating space vector.

2. SVPWM algorithm implementation

2.1 Voltage vector combination scheme

By adjusting the action time of the basic space vector (direction) and the zero vector (amplitude) within the switching interval, the voltage vector at any position and with any amplitude within the space vector hexagon can be approximately obtained.

Use zero vectorV 0 V_0V0and the two nearest adjacent non-zero vectorsV k V_kVk,V k + 1 V_{k+1}V1Synthetic reference vector, zero vector action timeT 0 T_0T0and a non-zero vectorV k V_kVk,V k + 1 V_{k+1}V1Time of actionT k T_kTk,T k + 1 T_{k+1}T1They are:

{ T 0 = ( T k + T k + 1 ) T s / 2 [ T k T k + 1 ] = 3 2 T s U d [ s i n ( k π / 3 ) − c o s ( k π / 3 ) − s i n ( ( k − 1 ) π / 3 ) c o s ( ( k − 1 ) π / 3 ) ] [ u r α u r β ]

T0[TkTk+1]=(Tk+Tk+1)Ts/2=32TsUd[sin(kπ/3)sin((k1)π/3)cos(kπ/3)cos((k1)π/3)][urαurβ]{T0=(Tk+Tk+1)Ts/2[TkTk+1]=32TsUd[sin(kπ/3)−cos(kπ/3)−sin((k−1)π/3)cos((k−1)π/3)][urαurβ]

  T0[TkT1]=Tk+T1Ts/2=23 UdTs[in kπ /3 )− in (( kπ /3 )− cos kπ /3 )cos (( kπ /3 )][uαuβ]

There are many combinations of voltage vectors, the most commonly used is the 7-segment combination shown in the following table.

Table 2-2: 7-segment combination scheme of SVPWM output voltage vector
PMSM Vector Space PWM (SVPWM)

2.2 Implementation steps of SVPWM

SVPWM operates based on a reference voltage vector and generates appropriate turn-on signals for the inverter in each PWM cycle, with the goal of achieving a continuously rotating space vector.

SVPWM mainly includes the following steps:
(1) Determine the sector where the reference space voltage vector is located;
(2) Calculate the action time of each vector according to the signal timing of the 7-segment combination;
(3) Determine the time point of sector vector switching.
(4) Use the triangular carrier model to compare with the switching points of each sector vector to generate the required PWM switching signal.

(1) Determine the sector

To reference voltageU ref U_refUrf
To control, we must first determine the sector where the reference voltage is located .U ref U_refUrfThe components in the α-β rectangular coordinate system areu α u_αuα,u β u_βuβ, define the variableU ref 1 U_{ref1}Ure 1,U ref 2 U_{ref2}Ure 2,U ref 3 U_{ref3}Ure 3:

{ U r e f 1 = u β U r e f 2 = 3 2 u α − 1 2 u β U r e f 3 = − 3 2 u α − 1 2 u β

Uref1Uref2Uref3=uβ=32uα12uβ=32uα12uβ{Uref1=uβUref2=32uα−12uβUref3=−32uα−12uβ

  Ure 1Ure 2Ure 3=uβ=23 uα21uβ=23 uα21uβ

Then judge:
(1) If U1>0, then A=1, otherwise A=0;
(2) If U2>0, then B=1, otherwise B=0;
(3) If U3>0, then C=1, otherwise C=0.

makeN = 4C + 2B + AN=4C + 2B + AN=C+B+A, we can get the relationship between N and sector, and get the reference voltageU ref U_refUrfThe sector is:

N 3 1 5 4 6 2
Sector I II III IV V VI

(2) Calculation of vector action time

PMSM Vector Space PWM (SVPWM)

(3) Calculate the vector switching time point

whenU ref U_{ref}Ure fAfter the sector and the corresponding effective voltage vector action time are determined, the value of each corresponding comparator is calculated according to the PWM modulation principle:

{ t a o n = ( T s − T x − T y ) / 4 t b o n = t a o n + T x / 2 t c o n = t b o n + T y / 2

taontbontcon=(TsTxTy)/4=taon+Tx/2=tbon+Ty/2{taon=(Ts−Tx−Ty)/4tbon=taon+Tx/2tcon=tbon+Ty/2

  tntntkon=TsTxTy/4=tn+Tx/2=tn+Ty/2

In the formulataon t_{aon}tn,tbon t_{bon}tn,tcon t_{con}tkonare the values ​​of the corresponding comparators respectively.

The values ​​of the comparators for different sectors are assigned as follows:

N 1 2 3 4 5 6
Ta tbon t_{bon}tn taon t_{aon}tn taon t_{aon}tn tcon t_{con}tkon tcon t_{con}t