Marco Liserre
liserre@ieee.org
Introduction
Modulation and ac current control are the core of grid-connected converters
They are responsible of the safe operation of the converter and of the compliance
with standards and grid codes
Introduction
Model of the grid converter
Overview of modulation techniques
Current control
Voltage control
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
Modulation has an influence on design of the converter (dc voltage value), losses
and EMC problems including leakage current
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
The total THD of the grid current should not be higher than 5%
harmonic limit
5th 5-6 %
7th 3-4 %
11th 1.5-3 %
13th 1-2.5 %
TA DA TB DB TC DC L
A
io R e
+ B
vdc - n
TA DA TB DB TC DC
d i (t ) 1
Ri (t ) e (t ) p (t )vdc (t )
dt L
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
vq v
2 2
cos cos pa
pd
cos
3 3
p
vd a
pb
q sin
sin
2 2
sin pc
3 3
b -frame dq-frame
di t 1
Ri t e t p t vdc t did t 1
dt L
dt
iq t Rid t ed t pd t vdc t
L
di t 1
Ri t e t p t vdc t diq t i t 1 Ri t e t p t v t
dt d q q q dc
L dt L
Modulation techniques
These techniques differ for the modulating wave chosen with the goal to obtain
a lower harmonic distortion,
to shape the harmonic spectrum
to guarantee a linear relation between fundamental output voltage and
modulation index in a wider range
The space vector modulations are developed on the basis of the space vector
representation of the converter ac side voltage
Modulation techniques
VAo 1
analogic or digital, Vd
2
natural sampled or regular sampled
4
1.278
symmetric or asymmetric
1.0
Linear
Over- Square-
Optimization both for the modulation wave
linearity and harmonic content
0 M
0 1.0
for m
3.24
f 15
Vd
vAo 1 M sin(1t ) M 1.0
2
VˆAo
1
M
Vd
2
M 1.0
The inverter stays in its “linear range”
while M 0,1.
The harmonics in the output voltage appear as
sidebands of fS and its multiples
f h jm k f1
1 15
The hth harmonic corresponds to the kth sideband
13 17 29 31
of j times the frequency modulation ratio m. 25
27 33
35 3941
43454749
51
For even values of j only exist harmonics for
odd values of k, and viceversa.
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
1
J n q M sin m n cosmc t n0t
4Vdc
bipolar v(t )
m 0 n 1
q 2 2
m 0 n
v(t ) 2Vdc M cos0t 2m J mM cosm n 1 cos2mct 2n 10t
8Vdc 1
unipolar 2n1
m1 n
0.5
vref , vtri
0
0
-0.5
-0.5
-1 vref vtri
-1 vref vtri
-1.5
0 10 20 30 40 -1.5
100 t [ms] 0 10 20 30 40
100 t [ms]
50
50
vAo [V]
vAo [V]
0
0
-50
-50
-100
0 10 20 30 40 -100
100 t [ms] 0 10 20 30 40
100 t [ms]
50
50
vBo [V]
vBo [V]
0
-50
-50
-100
0 10 20 30 40 -100
150 t [ms] 0 10 20 30 40
150 t [ms]
100
100
50
vAB [V]
50
vAB [V]
0
0
-50
-50
-100
-100
-150
0 10 20 30 40 -150
t [ms] 0 10 20 30 40
t [ms]
1 1
0.8 0.8
vAo/V d
vAB/Vd
0.6 0.6
0.4 0.4
0.2 0.2
0 0
0 5 10 15 20 25 30 35 40 45 50 55 60 0 5 10 15 20 25 30 35 40 45 50 55 60
h h
Due to the unipolar PWM the odd carrier and associated sideband harmonics are
completely cancelled leaving only odd sideband harmonics (2n-1) terms and even (2m)
carrier groups
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
vAn [V]
0 0
-0.5
-50
-1 vref vtri
-1.5 -100
0 10 20 30 40 0 10 20 30 40
100 t [ms] 150 t [ms]
100
50
50
vAo [V]
E [V]
0 0
-50
-50
-100
-100 -150
0 10 20 30 40 0 10 20 30 40
100 t [ms] 20 t [ms]
50 10
von [V]
io [A]
0 0
-50 -10
-100 -20
0 10 20 30 40 0 10 20 30 40
150 t [ms] 20 t [ms]
100
10
50
vAB [V]
id [A]
0 0
-50
-10
-100
-150 -20
0 10 20 30 40 0 10 20 30 40
t [ms] t [ms]
SPWM
SVM
Three-phase continuous
modulation techniques
Continuous modulations
sinusoidal PWM with Third Harmonic Injected –THIPWM. If the third
harmonic has amplitude 25 % of the fundamental the minimum current
harmonic content is achieved; if the third harmonic is 17 % of the fundamental
the maximal linear range is obtained;
suboptimum modulation (subopt). A triangular signal is added to the
modulating signal. In case the amplitude of the triangular signal is 25 % of the
fundamental the modulation corresponds to the Space Vector Modulation
(SVPWM) with symmetrical placement of zero vectors in sampling time.
v ACR THIPWM1/6
v ACR THIPWM1/4
v ACR SVPWM
vdc /2 vdc /2 vdc /2
Three-phase discontinuous
modulation techniques
The discontinuous modulations formed by unmodulated 60 deg segments in order to
decrease the switching losses
symmetrical flat top modulation, also called DPWM1;
asymmetrical shifted right flat top modulation, also called DPWM2;
asymmetrical shifted left flat top modulation, also called DPWM0.
v ACR DPWM0
=-/6
vDCR DPWM1
=0
vDCR DPWM2
=/6
vdc /2 vdc /2 vdc /2
vDCR v ACR
v ACR
0 0 0
von
von von
-vdc /2 -vdc /2 -vdc /2
Different possibilities:
A B C
J 2 n1 mM cosm n 1 cos2mc t 2n 10t 2m i
4Vdc 1
m1 n 2m i 1
(i 1)
• carrier shifting i m kN , k 1,2,3...
N
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
Carrier shifting
1
tri
v ,V
0
ref -1
0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055 0.06
t [s]
100
[V]
0
ab
v
-100
0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055 0.06
t [s]
1
tri
v ,V
0
ref
-1
0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055 0.06
t [s]
100
[V]
0
cd
v
-100
0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055 0.06
t [s]
200
[V]
0
ad
v
-200
0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055 0.06
t [s]
1
A [pu]
0.5
0
0 10 20 30 40 50 60
Marco Liserre h liserre@ieee.org
Modulation and current/voltage control of the grid converter
0
, V
ref
-1
V
0
-1
an
V
0
ref
V
-1
0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055 0.06
1
[V]
0
bn
-1
V
0
ab
-200
V
0.5
0
0 10 20 30 40 50 60
h
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
Current Control
linear non-linear
passivity fuzzy
PI predictive resonant
PI current control
Typically PI controllers are used for the current loop in grid inverters
Technical optimum design (damping 0.707 overshoot 5%)
e KI
GPI ( s ) K P
i v -
ig s
GPI ( s ) Gd ( s ) Gf ( s )
+
+
-- + 1
Gd ( s)
1 1.5Ts s
vg
i( s) 1
G f (s)
v( s) R Ls
1 0
Magnitude (Db)
0.8 -5
0.6 -10
0.4 -15
0.2 -20 -1 0 1 2 3 4
0 10 10 10 10 10 10
-0.2 0
Phase (Degree)
-0.4 -100
-0.6 -200
-0.8
-300
-1
-400 0 1 2 3 4
-1 -0.5 0 0.5 1 10 10 10 10 10
Frequency (Hz)
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
Shortcomings of PI controller
1
actual 1 0.98
0.96
0.94
0.92
steady-state
0.9
1
0.88
0.86
reference
0.84
0.82
0.8
0.023 0.0235 0.024 0.0245 0.025 0.0255 0.026 0.0265 0.027 0.0275
0.8
magnitude and 0.5
phase error
0.6 0 0.2
0.15
0.1
0.05
limited
0
-0.05
-0.1
-0.15
actual -0.2
-0.25
0.019 0.0192 0.0194 0.0196 0.0198 0.02 0.0202 0.0204 0.0206 0.0208 0.021
0.4
disturbance -0.5
reference
0.2 rejection
-1
capability error
0
error (scaled) -1.5
-0.2 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 0.02
time [s] time [s]
When the current controlled inverter is connected to the grid, the phase error results in
a power factor decrement and the limited disturbance rejection capability leads to the
need of grid feed-forward compensation.
However the imperfect compensation action of the feed-forward control due to the
background distortion results in high harmonic distortion of the current and
consequently non-compliance with international power quality standards.
q
i (t ) d
e(t )
id
iq
The voltage used for
the dq-frame The current control can
orientation could be be performed on the
measured after a grid current or on the
dominant reactance converter current
e‘(t)
e(t) Ki
K p 0
e‘(t) DPI ( s)dq
s
dig 0 Ki
Kp
e' t e t Lg s
dt
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
id Ki
-+ Kp
s
i id v abc
i αβ L v*
j j
i e iq e v
abc L αβ
Ki
-+ Kp
f s
Vg
iq Current v gq
αβ v g controller
vg
v g PLL
abc
v gd
e j v gq
vdc
Vdc controller • active and reactive
V - K
Kp i
dc
+
P
s power control can be
P controller
K - id achieved
i P Kp i
+
P v ga ia v gb ib v gc ic
-+
v Q
1
v i v gbc ib v gca ic
gab a Q
-+ K
s
iq • vdc control can be
3
Kp i
PQ controller
s
Q controller
achieved too
Q
achieved i id
L
v v
i e j
iq e j v
i
e j 2 L
+
s
command voltage is ignored for
the calculation of the duty-cycle x
P
Q
v gd iq
Q
v gq
+
generated by the inverse sequence e j e j
present in the grid voltage both the i v
PI
+
positive- and negative-sequence +
iq
reference frames are required
id
Obviously using this approach, i + v
PI
+
double computational effort must be
devoted i
e j e j
v
PI
+
+
iq
Dead-beat controller
The dead-beat controller belongs to the family of the predictive controllers
They are based on a common principle: to foresee the evolution of the controlled
quantity (the current) and on the basis of this prediction:
to choose the state of the converter (ON-OFF predictive) or
the average voltage produced by the converter (predictive with pulse width
modulator)
The starting point is to calculate its derivative to predict the effect of the control
action
The controller is developed on the basis of the model of the filter and of the grid,
which is used to predict the system dynamic behavior: the controller is inherently
sensitive to model and parameter mismatches
Dead-beat controller
The information on the model is used to decide the switching state of the
converter with the aim to minimize the possible commutations (ON-OFF
predictive) or the average voltage that the converter has to produce in order to null
it. e
i v i
GDB ( z ) - Gf ( z )
+
In case it is imposed that the error at the --
Dead-beat controller
1 a
v(k 1) v(k 1) i (k ) i (k 1) e(k 1) e(k 1)
b b
1
reference 1 reference
0.8
actual 0.8
actual
response
0.6
response 0.6
0.4 0.4
0.2 0.2
0 0
-0.2 -0.2
450 460 470 480 490 500 510 520 530 540 550 450 460 470 480 490 500 510 520 530 540 550
samples samples
10 10
0 0
-10 -10
current [A]
current [A]
-20 -20
-30 -30
due to PWM !
-40 -40
-50 -50
-60 -60
0.04 0.045 0.05 0.055 0.06 0.04 0.045 0.05 0.055 0.06
time [s] time [s]
Pole-Zero Map
20
1
0.5/T
0.6/T 0.4/T 10
0.8 0.1
0.7/T 0.3/T
0.2
0.6 0.3 0
0.8/T 0.4 0.2/T
0.5
0.4 0.6 -10
current [A]
0.7
0.9/T 0.8 0.1/T
0.2 0.9
Imaginary Axis
-20
/T
0
/T
-0.2
0.9/T 0.1/T
-30
due to
-0.4
0.8/T 0.2/T
-40
parameter
-50
-0.6
-0.8
0.7/T 0.3/T
error !
-60
0.6/T
0.5/T
0.4/T 0.04 0.045 0.05 0.055 0.06
-1
time [s]
Resonant control
Resonant control is based on the use of Generalized Integrator (GI)
s
GI
s2 2
The GI will lead to zero stationary error and improved and selective
disturbance rejection as compared with PI controller
Bode Diagram GI res pons e
200 2
in
s out
0 s2 2 1
-100 0.5
-200 0
180
-0.5
90
Phase (deg)
0 -1
-90 -1.5
-180
1 2 3 -2
10 10 10 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Resonant control
The resonant controller can be G AC (s) GDC (s j ) GDC (s j )
obtained via a frequency shift
Ki 2K i s
GDC ( s ) G AC ( s)
s s2 2
GDC ( s)
Ki 2 K ic s
G AC ( s )
1 (s c ) s 2 2c s 2
800 80
Magnitude (dB)
Magnitude (dB)
600 60
400 40
200 20
0 0
1 2 3 1 2 3
10 10 10 10 10 10
Frequency (Hz) Frequency (Hz)
100 100
50 50
Phase (deg)
Phase (deg)
0 0
-50 -50
-100 -100
1 2 3 1 2 3
10 10 10 10 10 10
Frequency (Hz) Frequency (Hz)
Bode plots of ideal and non-ideal PR with KP = 1, Ki = 20, = 314 rad/s c = 10 rad/s
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
Resonant control
The stability of the system should be taken into consideration
The phase margin (PM) decreases as the resonant frequency approach to the
crossover frequency
s s 1
kP kI k
P I 2
k
s2 2 s 2 R Ls
Bode Diagram Bode Diagram
400 400
300
300
Magnitude (dB)
Magnitude (dB)
200
200
100
100
0
-100 0
-200 -100
180 180
90 90
Phase (deg)
Phase (deg)
0 0
-90 -90
-180
1 2 3 -180
PM
10 10 10 1 2 3
10 10 10
Frequency (Hz) Frequency (Hz)
4 4
2 2
Amp litude
Amp litude
0 0
-2 -2
-4 -4
-6 -6
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0. 045 0.05 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0. 045 0.05
Time (sec)
Time (sec)
Ki = 100 Ki = 500
A higher Ki will "catch" the reference faster but with higher overshoot
Difference equations aw
ii* u y ui*
yk yk 1 Ts K I k 1 Ts vk 1
ii
kI Gf(s)
* ii v
ui ,k K p k yk 2
v v T 2 y
k 1
k s k
k 1 k ymax y , y ymax
y y aw
ymax y , y ymax
k 1 k
vk 1 vk
3
Kp
+
-
+ +
i (t )
Ki s
iy*
s2 2
u e(t )
PLL
ix*
i* 2
iy*
3
+
+
+
-- + --
vg
KI
PI G PI ( s ) K P s
s PR Gc (s) K P K I
s o2
2
1
Inverter Gd ( s) sT 1
s
G f (s)
ii ( s)
1 s zLC
2
2
2
1 L Li zLC
2
Plant z LC 2
g
.
ui ( s) L fi s s 2 res
2 Lg C f res
Li
GIs tuned to the low harmonics can be used for selective harmonic compensation
by cascading the fundamental component GI
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
H21(s)
vd (t ) h11 (t ) ed (t )
vq (t ) h22 (t ) eq (t )
+
Eq(s) Vq(s)
+
H22(s)
Ki s K p K s 3K K p K s 3K
Kp 2 i 2 i2 0 i 2 i2 0
s 0 2 2 (s 0 ) 2 2 (s 0 )
2
Ki
K 0 2 K p K s 3K K p K s 3K
p s
Ks
Gc ( s) i 2 i 2 0 Kp 2 i 2 i 2 i2 0
( a , b .c )
( d ,q )
Ki
Gc 3 2 2 (s 0 ) s 0 2 2 (s 0 )
0 Kp K p K i s 3K i 0 K p K s 3K Ks
s i 2 i2 0 Kp 2 i 2
2 2 (s 0 ) 2 2 (s 0 ) s 0
2 2
va (t )
d ia (t ) 1 R 0 ia (t ) 1 2 1 1
vb (t )
dt ic (t ) L 0 R ic (t ) 3 1 1 2
va z vc (t )
va (t ) vb (t ) vc (t ) 0
z z
vc vb
d ia (t ) 1 R 0 ia (t ) 1 0 va (t )
i (t ) L 0
R ic (t ) 0 1 vc (t )
dt c
Ki s K p K s 3K K p K s 3K Ki s
Kp 2
s 0
i 2 i2 0 i 2 i2 0
2 2 (s 0 ) 2 2 (s 0 ) K p 2 2 0 0
s 0
2
2 K p K s 3K K p K s 3K
Gc ( s) i 2 i 2 0
( a , b .c ) Ks
Kp 2 i 2 i 2 i2 0 K s
Gc1 (s) Kp 2 i 2
( a , b .c )
3 2 2 (s 0 ) s 0 2 2 (s 0 ) 0 0
s 0
K p K i s 3K i 0 K p K i s 3K i 0 Ks
Kp 2 i 2
Ki s
2 2 (s 0 ) 2 2 (s 0 ) s 0 Kp 2 2
2 2 2 2
0 0
s 0
Ac voltage control
When it is needed to control the ac voltage because the system should operate
in stand-alone mode, in a microgrid, or there are requirements on the voltage
quality a multiloop control can be adopted
L1 i
The ac capacitor voltage
is controlled though the + +
ac converter current. Vdc +
- V Vc
-
The current controlled
-
converter operates as a
current source to i Vc
charge/discharge the V*c
capacitor.
CC VC
Ac voltage control
The repetitive controller ensures precise tracking of the selected harmonics and
it provides the reference of the PI current controller. Controlling the voltage Vc’
the PV shunt converter is improved with the function of voltage dips
mitigation. In presence of a voltage dip the grid current Ig is forced by the
controller to have a sinusoidal waveform which is phase shifted by almost 90°
with respect to the corresponding grid voltage.
Vc’ -
Vref
FDFT(z) Kf
+ Iref
+
E Ig
Iload
z Na
Ic’
PV converter
Ic’
Vc’ - -
Repetitive Iref
Vref PI
+ control +
Conclusions
The PR uses Generalized Integrators (GI) that are double integrators achieving very
high gain in a narrow frequency band centered on the resonant frequency and almost
null outside.
This makes the PR controller to act as a notch filter at the resonance frequency and
thus it can track a sinusoidal reference without having to increase the switching
frequency or adopting a high gain, as it is the case for the classical PI controller.
Dead-beat controller can compensate current error in two samples but it is affected
by PWM limits and parameters mismatches
Bibliography
1. D. G. Holmes and T. Lipo, Pulse Width Modulation for Power Converters, Principles and Practice. New York: IEEE Press, 2003.
2. M. Kazmierkowski, R. Krishnan, and F. Blaabjerg, Control in Power Electronics – Selected Problems. Academic Press, 2002.
3. X. Yuan, W. Merk, H. Stemmler, and J. Allmeling, “Stationary-frame generalized integrators for current control of active power
filters with zero steady-state error for current harmonics of concern under unbalanced and distorted operating conditions,” IEEE
Trans. on Industry Applications, vol. 38, no. 2, pp. 523–532, 2002.
4. D. Zmood and D. G. Holmes, “Stationary frame current regulation of PWM inverters with zero steady-state error,” IEEE Trans. on
Power Electronics, vol. 18, no. 3, pp. 814–822, 2003.
5. M. Bojrup, P. Karlsson, M. Alaküla, L. Gertmar, ”A Multiple Rotating Integrator Controller for Active Filters”, Proc. of EPE 1999,
CD-ROM.
6. R. Teodorescu, F. Blaabjerg, M. Liserre and A. Poh Chiang Loh, “Proportional-Resonant Controllers and Filters for Grid-
Connected Voltage-Source Converters” IEE Proceedings on Electric Power Applications.
7. A. Timbus, M. Liserre, R. Teodorescu, P. Rodriguez, F. Blaabjerg, Evaluation of Current Controllers for Distributed Power
Generation Systems, IEEE Transactions on Power Electronics, March 2009, vol. 24, no. 3, pp. 654-664.
8. R. A. Mastromauro, M. Liserre, A. Dell'Aquila, “Study of the Effects of Inductor Nonlinear Behavior on the Performance of Current
Controllers for Single-Phase PV Grid Converters”, IEEE Transactions on Industrial Electronics, May 2008, vol. 55, no 5, pp. 2043
– 2052.
9. IEEE Std 1547-2003 "IEEE Standard for Interconnecting Distributed Resources with Electric Power Systems", 2003.
10. IEEE Std 1547.1-2005 "IEEE Standard Conformance Test Procedures for Equipment Interconnecting Distribut ed Resources
with Electric Power Systems", 2005.
11. IEC Standard 61727, “Characteristic of the utility interface for photovoltaic (PV) systems,”, 2002.
12. IEC Standard 61400-21 “Wind turbine generator systems Part 21: measurements and assessment of power quality
characteristics of grid connected wind turbines”, 2002.
13. IEC Standard 61000-4-7, “Electromagnetic Compatibility, General Guide on Harmonics and Interharmonics Measurements and
Instrumentation”, 1997.
14. IEC Standard 61000-3-6, “Electromagnetic Compatibility, Assessment of Emission Limits for Distorting Loads in MV and HV
Power Systems”, 1996.
Marco Liserre liserre@ieee.org
Modulation and current/voltage control of the grid converter
Acknowledgment
Part of the material is or was included in the present and/or past editions of the
“Industrial/Ph.D. Course in Power Electronics for Renewable Energy Systems – in theory and practice”