Resonant Current Proportional
Resonant Current Proportional
Resonant Current Proportional
Current Proportional-Resonant
Control
The proportional-resonant (PR) controller is one of the most popular controllers used for grid-
connected inverters to regulate the current injected into the grid. In this chapter, the PR current
controller is designed and implemented for three-phase inverters, in the stationary reference
frame and in the natural reference frame.
s
CPR (s) = K p + K i (16.1)
s 2 + ω2
where ω is the resonant frequency. Such a controller has a high gain around the resonant
frequency and, thus, is capable of eliminating the steady-state error when tracking or rejecting
a sinusoidal signal (Blaabjerg et al. 2006; Sera et al. 2005; Timbus et al. 2006b), according
to the internal model principle (Francis and Wonham 1975). As a result, PR controllers are
widely used in inverter control. In order to improve the performance of handling harmonics,
a harmonic compensator given by
s
CHC (s) = K ih (16.2)
h=3,5,7,..
s 2 + (ωh)2
Control of Power Inverters in Renewable Energy and Smart Grid Integration, First Edition.
Qing-Chang Zhong and Tomas Hornik.
© 2013 John Wiley & Sons, Ltd. Published 2013 by John Wiley & Sons, Ltd.
260 Control of Power Inverters in Renewable Energy and Smart Grid Integration
where h is the harmonic order, can be easily added to a PR controller (Timbus et al. 2006b).
It is worth noting that, in order to maintain good performance of the controller, the resonant
frequency should be maintained close to the system frequency. If the system frequency varies
significantly, adaptive mechanisms, e.g. the one reported in (Timbus et al. 2006a), can be
adopted to adjust the resonant frequency according to the system frequency.
Figure 16.1 Block diagram of a current-controlled VSI in the stationary reference frame (αβ)
Current Proportional-Resonant Control 261
the phase shift and gain attenuation caused by the computational delay, PWM modulation, the
inverter bridge and the LC filter. It also attenuates the harmonics in the feed-forwarded grid
voltages and improves the dynamics during grid voltage fluctuations (Timbus et al. 2009).
⎡ ⎤
K p + K i s 2 +ω
s
2 0 0
CPRabc (s) = ⎣ 0 K p + K i s 2 +ω
s
2 0 ⎦. (16.3)
0 0 K p + K i s 2 +ω2
s
Because of this, the PR controller can be designed for each phase and then applied to the
stationary reference frame.
ic = i1 − i2 . (16.4)
+ VDC -
Sc
PWM Inverter uf uo
bridge ug
u Rf Lf i1 ic Rg Lg i2
filter inductor Cf grid interface inductor
uc grid
Rd
neutral
1
u f = i 1 (Rf + s L f ) + i c + Rd , (16.5)
sCf
and
1
u g = −i 2 (Rg + s L g ) + i c + Rd , (16.6)
sCf
with
Z 11 = Rf + s L f + Rd + 1
sCf
, Z 12 = Rd + 1
sCf
,
Z 21 = Rd + 1
sCf
, Z 22 = Rg + s L g + Rd + 1
sCf
.
The transfer function from the inverter voltage u f to the grid output current i 2 is
HP (s) = i2
uf
= Z 21
Z 11 Z 22 −Z 12 Z 21
sCf Rd + 1
= ( ) ( )
s 3 Cf L f L g + s 2 Cf L f Rg + Rf L g + L g Rd + L f Rd + sCf Rf Rg + Rd Rg + Rf Rd + L f + L g + Rf + Rg
(16.8)
where CPR (z) and HP (z) are the discretised version of the controller (16.1) and the plant
transfer function (16.8), respectively. The processing delay of the PWM inverter is represented
by HD (z) = z −1 (Sera et al. 2005).
For the parameters given in Table 3.1 and the sampling frequency of 5 kHz, the root locus of
the open-loop transfer function CPR (z)HP (z)HD (z) is shown in Figure 16.3 for K i /K p = 200.
When the proportional gain K p is chosen as K p = 1.12, the damping ratio of the system is
Current Proportional-Resonant Control 263
1.5
Gain: 1.12
Pole: 0.504 + 0.341i
1 Damping: 0.641
0.5π/T
0.6π/T
0.4π/T 0.1 Overshoot (%): 7.23
0.7π/T 0.3π/T
0.2
0.3
0.5 0.8π/T 0.4
0.5 0.2π/T
Imaginary Axis
0.6
0.7
0.9π/T 0.8 0.1π/T
0.9
π/T
0
π/T
0.9π/T 0.1π/T
−1.5
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
Real Axis
ξ = 0.641. Figure 16.4 shows the Bode plots of the open-loop system for different integral
gain K i with K p = 1.12, from which the integral gain is chosen as K i = 200. Since the
controller has a very high gain at the resonant frequency, it has a very good ability to reduce
the steady-state error. The resulting controller in the discrete-time domain is
1.12z 2 − 2.196z + 1.08
CPR (z) = . (16.10)
z 2 − 1.996z + 1
200
Ki=25
Magnitude (dB) Ki=50
100 Ki=200
Ki=500
−100
180
Phase (deg)
−180
−360
1 2 3 4
10 10 10 10
Frequency (rad/sec)
Figure 16.4 Bode plots of the open-loop system for different K i with K p = 1.12
5 5
i i i i
ref a ref a
2.5 2.5
Current [A]
Current [A]
0 0
−2.5 −2.5
−5 −5
1.5 1.5
1 ei 1 ei
Error [A]
Error [A]
0.5 0.5
0 0
−0.5 −0.5
−1 −1
−1.5 −1.5
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
Time [s] Time [s]
(a) Grid output current , its reference and current tracking error
5 5
THD of ia=4.14% THD of ia=3.84%
Magnitude [%]
Magnitude [%]
4 4
3 3
2 2
1 1
0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Harmonics order Harmonics order
Figure 16.5 Experimental results for a PR controller without a local load implemented in the αβ frame
(left column) and in the abc frame (right column)
Current Proportional-Resonant Control 265
5 5
i i i i
ref a ref a
2.5 2.5
Current [A]
Current [A]
0 0
−2.5 −2.5
−5 −5
1.5 1.5
1 ei 1 ei
Error [A]
Error [A]
0.5 0.5
0 0
−0.5 −0.5
−1 −1
−1.5 −1.5
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
Time [s] Time [s]
(a) Grid output current , its reference and current tracking error
5 5
THD of ia=5.46% THD of ia=5.79%
Magnitude [%]
Magnitude [%]
4 4
3 3
2 2
1 1
0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Harmonics order Harmonics order
Figure 16.6 Experimental results for a PR controller with a resistive local load implemented in the αβ
frame (left column) and in the abc frame (right column)
implementation in the αβ frame and in the right column of Figure 16.5 for the implementation
in the abc frame. The recorded current THD, shown in Figure 16.5(b), was 3.84% (right) in
the abc frame compared to 4.14% in the αβ frame (left). Both the tracking performance and
the recorded current THD in the abc frame were better than that in the αβ frame.
5 5
i i i i
ref a ref a
2.5 2.5
Current [A]
Current [A]
0 0
−2.5 −2.5
−5 −5
1.5 1.5
1 ei 1 ei
Error [A]
Error [A]
0.5 0.5
0 0
−0.5 −0.5
−1 −1
−1.5 −1.5
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
Time [s] Time [s]
(a) Grid output current , its reference and current tracking error
5 5
THD of ia=5.22% THD of ia=5.39%
Magnitude [%]
Magnitude [%]
4 4
3 3
2 2
1 1
0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Harmonics order Harmonics order
Figure 16.7 Experimental results for a PR controller with an unbalanced resistive local load imple-
mented in the αβ frame (left column) and in the abc frame (right column)
current i a and its spectra, the reference current i ref and the corresponding current tracking error
ei in the steady state are shown in the left column of Figure 16.7 for the implementation in
the αβ frame and in the right column of Figure 16.7 for the implementation in the abc frame.
The tracking performance of the PR controller implemented in the αβ frame was remarkably
worse than the one implemented in the abc frame, although the recorded THD in the αβ frame
was slightly better than that in the abc frame.
5 5
iref ia iref ia
2.5 2.5
Current [A]
Current [A]
0 0
−2.5 −2.5
−5 −5
1.5 1.5
1 ei 1 ei
Error [A]
Error [A]
0.5 0.5
0 0
−0.5 −0.5
−1 −1
−1.5 −1.5
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
Time [s] Time [s]
(a) Grid output current , its reference and current tracking error
15 15
THD of i =17.64% THD of i =16.71%
Magnitude [%]
Magnitude [%]
a a
10 10
5 5
0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Harmonics order Harmonics order
Figure 16.8 Experimental results for a PR controller with a non-linear local load implemented in the
αβ frame (left column) and in the abc frame (right column)
error ei are shown in the left column of Figure 16.9 for the implementation in the αβ frame and
in the right column of Figure 16.9 for the implementation in the abc frame. Both controllers
demonstrated very fast dynamics, following the reference signal i ref closely. The implemen-
tation in the abc frame demonstrated better performance than the implementation in the
αβ frame.
5 5
i i i i
ref a ref a
2.5 2.5
Current [A]
Current [A]
0 0
−2.5 −2.5
−5 −5
1.5 1.5
1 ei 1 ei
Error [A]
Error [A]
0.5 0.5
0 0
−0.5 −0.5
−1 −1
−1.5 −1.5
−0.04 −0.03 −0.02 −0.01 0 0.01 0.02 0.03 0.04 −0.04 −0.03 −0.02 −0.01 0 0.01 0.02 0.03 0.04
Time [s] Time [s]
Figure 16.9 Transient response of the PR controller in the grid-connected mode without a local load
implemented in the αβ frame (left column) and in the abc frame (right column)
268 Control of Power Inverters in Renewable Energy and Smart Grid Integration
16.5 Summary
A PR controller is able to eliminate the steady-state error when tracking a sinusoidal signal.
It can be implemented in the stationary reference (αβ) frame and the natural (abc) frame. It
is also possible to add a harmonic compensator to improve the power quality. Experimental
results have shown that the tracking performance in the abc frame is generally better than that
in the αβ frame because the controllers for the three phases in the abc frame are independent
from each other.