A Simplified SVPWM Algorithm and Its Application Simulation On Motor Control
A Simplified SVPWM Algorithm and Its Application Simulation On Motor Control
2
Tengwei Yu \ Ruixue Ni
l
Xudong Wang , Bin Zhang I
I-School of Electrical & Electronic Engineering 2-Automotive Electronic Engineering Centre
Harbin University of Science & Technology Harbin University of Science & Technology
Harbin, CHINA Harbin, CHINA
fishtail@yeah.net wxd6158@I63.com
�
synthesis the desired voltage vector, then the inverter switching
•
state of the power devices are established upon them. The key
of the SVPWM algorithm is to determine the dwell time of the
two adjacent effective vector during one PWM cycle [1].
An easy-to-digital simplified SVPEM (S-SVPWM)
algorithm is proposed in this paper, the appropriate register is
directly configured by operating the components of the
expected voltage vector on the special coordinate system. The
�________�__�L-__� ___ �
S-SVPWM makes the calculation procedure greatly simplified.
Firstly the theory and implementation method of the S a
y
MATLAB7.lISimulink is set up to verify the algorithm, which
adopting S-SVPWM algorithm and the rotor field oriented
control algorithm. Simulation results approve the affectivity
and feasibility of the S-SVPWM. Figure I. sector division
' Ude
Ur Ur
. .
S·mce the maXImum attamable IS J3' can be
(4)
normalized as:
(0
, V,(OIO)
,
(--Ud< ", Uk )
Ua Uf3 Ur
3 �,://
Where, and denote the components of the in the
a, p coordinates.
,
When projected Ur into the XYZ coordinate system, and
uses Ua and Uf3 to present, the following equations are arrived: V3(011 )<-----�----+ V4(1 OOr----.a
(-fU 0)
. OJ
//(fu'
Ux= /i Up \\
Ude \,
i
V,(IOI) I
u U
Uy= /i (/i a- p) I
Ude 2 (""jUde - .fjUde)
Uz=-/i ( /i u a- up
) Figure 2, the choice of basic space vector
Ude 2
Where, Ux, Uy, Uz are components of Ur in the XYZ
coordinate system. noting
P=Ixsign(Ux) + 4xsign(U
y) + 2xsign(Uz) (3) (5)
power switches and make only one bridge arm switch move I
I
I
when any change in the voltage space vector, seven-segment I
0 0 I 0 0
voltage space vector PWM waveform is applied, furthermore, I
B I
I
the selection of the non-zero basic voltage vectors follows the 1---1
I I
principle of turn on the power switches from one to two. The I
I
I
I
0 0 0 I I
1 0 0 0
C I I
choice of basic voltage vector is shown in Figure 2. In sector 1, I I
I I
Ur is synthesized by V4 and V6, while in sector 2, V2 and V6 to I I I
Computing the weight of the non-zero basic voltage vector, Figure 3, the voltage space vector PWM waveform in sector 1
namely calculates the duty of their dwell time within a PWM
cycle. Sector 1 is chosen as an example to illustrate the From equation (4) and Figure 3, it can be seen that the duty
calculation process. cycle of phase A is:
As mentioned above, in sector 1, Ur is synthesized with
2
0)
and I I . In accordance with the
V4("3U", V'("3u", ..j3u",) (6)
volt-second balance principle, equations (4) and (5) are
obtained.
C. Assignment and saturation treatment of the registers Since Ux' U y' Uz have been calculated in sector
Through equation (6), the corresponding register value of division period, by simple calculation and look up Table II, the
phase A can be calculated by the following equation: register values can be obtained easily, which greatly simplifies
the traditional SVPWM algorithm.
I I (7)
2 4
CMPRI=-(I-DA)xTpWM =-(I-Uz -UJXTpWM
However , it need to note that the Ur synthesized by basic
The corresponding register values of phase B and C can be voltage vectors can only locate inside the inscribed circle of the
obtained similarly. voltage space vector hexagon, beyond this range the inverters
can not achieved, that is , the Ur is in the over-modulation
With the same methods, the values of the registers in other
sectors can be got as well. By calculating, it can be found that region. This phenomenon can also be explained as the duty of
after adopting the sector division this paper proposed, sector I phase A, B, or C is greater than 1, meaning that the
and sector 4, sector 2 and sector 5, sector 3 and sector 6 have corresponding three-phase comparison register values are less
the same register values. Therefore, the output of the sector than zero. To make sure that Ur is beyond over-modulation
division can be simplified to three, which facilities the region, when CMPRx :5: 0 , set CMPRx 0 . This approach can =
.!.TpWM aside, then the not only avoid over-modulation, but also prevent DSP from
4
traditional SVPWM algorithm. Put
computation error due to negative value assigned to the
register values in each sector can be expressed as Table II. registers.
TABLE II. REGISTER VALUES OF EACH SECTOR III. ESTABLISHMENT OF SIMULATION MODEL
N CMPRI CMPRl CMPR3 After analysis PMSM and the principle of the rotor field
1 (1-Uz - U )x (l + Uz -Ux) (I +Vz + VJ oriented control (id 0 ), based on the S-SVPWM algorithm, a
=
2 (I-Uz +Uy) (l + Uz + Uy) (I-Vz-Vy) PMSM rotor field oriented control system simulation model is
build in MATLAB7.lISimulink environment[61, as Figure 4
3 (I + Ux + Uy) (I-Vx -Vy) (1 + Ux-Uy) shows.
Scope4
Scope2
Constant4 B
Scope1
IContinuous I
powergui
Figure 4. PMSM rotor field oriented control system simulation model with S-SVPWM
are transformed into the rotating d-q coordinate (d, q) sent into current PI regulator respectively, the outputs are
U d and Uq in d-q rotating coordinate system. Through inverse
components td and tq through Clarke and Park transformation,
Park transformation, Ud and Uq are transformed into Ua and
td and tq are taken as the negative feedback quantity of
UfJ in a-� coordinate system. Then the S-SVPWM algorithm
and
current loop. The deviation between the given speed and the
is adopted to generate PWM signals to control the inverter, and
feedback speed is sent into speed PI regulator, the output
furthermore the dual-closed loop control on speed and current
iqrej is considered as the q-axis reference current component, for the PMSM is realized.
which is used in torque control. The deviations between
The S-SVPWM module is shown in Figure 5.
•I
CD�----• L��----.I U,
Ubela
U... u,
1------+I uz
pulses
Ualla
� Udc Uz
Ux.Uy.Uz
�Ude PVVM generation
Ubeta
Sector judgment can be divided into two parts; they are the
calculation of the phase voltages: Ux, Uy, Uz and of the sector
N. As we have known above, when Ua' Uf3 are given, Ux, Uy,
Uz can be achieved by equation (2). Then, from equation (3)
and Table I, it is easy to determine the sector N.
CMPR3
V. CONCLUSION
[1] Selin Ozcira, Nur Bekiroglu, Engin Aycicek. Direct Torque Control of
Permanent Magnet Synchronous Motor Using LP Filter. Proceedings of
I� [2]
the 2008 International Conference on Electrical Machines, 2008.
Wang Xiaoming, Wang Ling. Motor's DSP control-TI DSP applications
[M]. Beijing: Press of Beijing University of Aeronautics and
Astronautics, 2004.
[3] Ying-Shich Kung. "High performance position controller for PMSM
drives based on TMS320F2812 DSP", Proceedings of the 2004 IEEE
international Conference control applications.2006, pp.290-295
Figure 11. torque waveform [4] Liu J, Wang T, Xu D, Cong L. "A new Algorithm Research and
Simulation for Permanent Magnet Synchronous Motor AC Servo
System", 2008 IEEE Conference on Automation and Mechatronics
vol.2, pp.965-969
[5] Li Chuanhai, Li Feng,Qu Jisheng, et al. Space vector pulse width
modulation (SVPWM) technique and its optimization [1]. Shandong
University journal: 2009,35 (2) :27-31.
[6] Yang Yongliang, Ma Ruiqing and Huangpu Yiqiu. PMSM servo system
modeling and simulation based on rotor flux oriented control of [1].
Motor, 2008, (5): 33-35