Design of Proportional-Resonant Controller With Zero Steady-State Error For A Single-Phase Grid-Connected Voltage Source Inverter With An LCL Output Filter
Design of Proportional-Resonant Controller With Zero Steady-State Error For A Single-Phase Grid-Connected Voltage Source Inverter With An LCL Output Filter
Abstract—The single-phase grid-connected voltage source only two values (+Vdc and –Vdc). In the literature, the VSI with
inverters with LCL filters are widely implemented in the grid three or more levels is called multilevel inverters [3]. This
using traditional Proportional Integral (PI) controllers. The paper presents only the controller of a two-level single-phase
Proportional Resonant (PR) controller introduces new features VSI. However, the same procedure can be used for a
such as tracking of the sinusoidal waveform with zero steady- multilevel single-phase or three-phase converters. The control
state error and better disturbance rejection capability in of the VSIs has been extensively studied in [2], [3]. For grid-
comparison with the PI controller. The mentioned benefits lead connected VSIs, an open loop controller is not allowed
to a better power factor and system stability. This paper because the VSIs need to be in synchronism with the grid.
proposes a comprehensive design methodology of the PR
Therefore, VSIs requires a synchronization unit, which is
controller in an inverter with an LCL filter. Also, a comparison
of the PR and PI controller is presented. In this analysis, the
usually a phase-locked loop (PLL) [2], and an output current
optimal values of the PR controller are found based on the phase control loop. The basic control loop, which is conventionally
margin of the entire control loop of the converter. The performed by a proportional integral (PI) current controller
simulation of the 1.5 kVA VSC with an LCL filter with a PR with the single-phase grid-tied VSI, is shown in Fig. 1. The PI
controller in MATLAB/Simulink® and real-time simulator controller has limitations such as poor tracking capability with
validates the design and shows the stability margin of the zero steady-state error, poor disturbance rejection and the need
proposed methodology. for transformation in three phase systems. However,
employing a PI controller, the active and reactive powers can
Index Terms--Proportional integral controller, proportional be extracted using id and iq in the synchronous reference frame
resonant controller, stationary reference frame, total harmonic (SyncRF).
distortion, voltage source inverter.
Fig. 2 shows the basic diagram of the converter with the
control loops. The proportional resonant controller (PR)
I. INTRODUCTION achieves zero steady-state error, improves the tracking of a
The distributed generation systems (DGs) such as solar sinusoidal reference waveform, and has better disturbance
power plants, wind farms, hydropower plants are widely rejection capability compared to the traditional PI controller.
interfaced with single-phase and three-phase grid-connected The ideal PR controller offers “infinite gain” at the selected
voltage source inverter (VSIs). The VSIs can be used in frequency range and a finite gain at the selected switching
bidirectional mode of operation as the power can be injected harmonic frequencies to achieve zero steady-state error at the
from the DGs to the electrical grid (inverter mode) or from the desired frequency [4]. In addition, the selective harmonic
grid to the DGs (rectifier mode) where backup systems such as compensator can also be in parallel to the PR controller to
batteries, super-capacitors or flywheel are used to store the compensate the harmonic frequencies such as 3rd, 5th, 7th, and
surplus power and this power can be reused in case of 9th without affecting the performance of the controller [5].
emergency [1], [2]. Also, VSIs can also transfer reactive Moreover, the transformation from/to the dq to/from Įȕ and
power to the grid so they can work as static compensators [2]. the cross-decoupling paths are no more needed because the PR
There are several circuits for a VSI, the most popular is the works in the Įȕ frame as the line current [6]. Therefore, in
two-levels voltage source inverter, which is shown in Fig. 1. addition to this controller, an LCL filter is used in the VSIs to
“Two levels” means that the voltage in the output can have attenuate high frequency harmonics injected to the grid.
,(((
Figure 2. The overall system configuration of a single-phase grid-connected
bidirectional VSI with an LCL filter employing PR controller.
(iȕ) by the orthogonal signal generator (OSG). The stationary the complex plane by x s (t ) = ℜ e ª« x (t ) º» . The complex
¬ ¼
reference frame (SRF) currents (iĮ and iȕ) are transformed to id s
and iq in the synchronous reference frame (SyncRF) using the variable is defined as x (t ) = xα (t ) + jxβ (t ) where the real and
inverse Park transformation. The reference currents (id,ref and imaginary part are the components of the Clarke
iq,ref) are either taken from the DC bus voltage control loop or transformation. Applying KVL and KCL to the output filter,
the power control loop. the derived state equations of the converter are:
,(((0LODQ3RZHU7HFK
G
d i s s (t ) G G
Ls + Rs is s (t ) = v ss (t ) − vcf (t ) (3.a)
dt
G
d v cfs (t ) G s G
Cf = i s ( t ) − ic s ( t ) (3.b)
dt
G
d i s (t ) G s
Lc c + Rc ics (t ) = vcf (t ) − m a (t )v dc (t ) . (3.c)
dt
where the subscript (s) indicates that the variables are in SRF.
Lc and Ls are the inverter side and grid side inductances with
the winding resistances Rc and Rs respectively. Cf is the filter
capacitance. The ma is the modulating signal given to the
PWM switches. The grid current (is) is controlled by the PR
current controller, which is already in SRF (Įȕ) and is
compared with the reference current (is,ref (t)). The error goes (a)
through a zero-order hold (ZOH) to the PR controller. The
ZOH is added because of the computational and processing
delay caused by the digital PWM. The transfer function of the
ideal PR controller with harmonic compensator (HC) is given
KIR s Kih s
GPRs (s) = KPR + + ¦ .
s + ωg h=1,3,5.. s2 + ( hω
2 2
)
2 (4)
g
,(((0LODQ3RZHU7HFK
The ideal PR with a higher peak (blue) is equal to the The first order time delay (Td) is approximated to the one
unbalanced SyncRF in dq frame and it is more selective to the and a half of the switching periods (1.5Ts) [3]. The open
desired harmonics. The unbalanced SyncRF has greater phase loop transfer function is given as
margin due to the absence of the cut-off frequency ( ωc) [9], § ·§ 1 ·§ KR ·
K s
[12]. The design methodology follows two steps: the first step G OLs ,PR ( s ) = ¨ K PR + 2 IR 2 ¸¸ ¨ ¸¨ ¸. (11)
is to choose the proper KPR to stable the controller with the
¨
© s + ωg ¹ © 1 + Td s ¹ © 1 + TR s ¹
good transient response, and then, choose the KIR to provide where TR = (Lc+Ls), KR = Vdc / (Rc+Rs), and Ts = 1 / fs. The
steady state-phase and amplitude error without making the plant 1+TRs is approximated to TRs [3]. The proportional term
phase margin too small [5]. KPR, which is responsible for the dynamics of the system
regarding the bandwidth, phase and gain margins, which is
tuned similarly to the PI controller [9]. The Extended
III. DESIGN PROCEDURE OF AN LCL FILTER
Symmetrical Optimum (SO) is used to determine the
The total harmonic distortion (THDis) of the injected grid proportional and integral gains of the PR controller with
current can be much reduced by the proper design of the LCL constant disturbance (vs) [10]. The closed-loop transfer
filter. However, the resonance of the LCL filter causes the function of the system is compared with the third order
system to be unstable. This must be avoided by the careful standard equation, which yields to
filter design. The LCL filter parameters are designed based on
β 1/ 2 s / ωn + 1
the system rated voltage Vs =230 V, apparent power Sn = 1.5 G s (s) = 3 . (12)
kVA, DC link voltage Vdc =400 V, the nominal grid frequency
CL , PR
s / ω n + β s / ω n2 + β 1 / 2 s / ω n + 1
3 1/ 2 2
ωg = 2ʌ.50 rad/s and the switching frequency fs = 10 kHz [10]. where ωn = ωc. The PR parameters can be calculated [3], [10]
First, calculate the base impedance and base capacitance as
TR TR
K PR = and K IR = . (13)
V2
Z b = s and C b =
1 . β K R Td ββ 1/ 2 K R Td2
(6)
Sn ωg × Zb where ȕ is used to select the optimum phase margin (PM)
Second, the allowable current ripples (ΔiLf max) on the (θm). The PM (θm) is chosen based on
inverter side is taken as
§ β −1 ·
θ m = arctan ¨ ¸. (14)
kVA × 2 . © 2β
1/ 2
Δ iLf max = ripples % × (7) ¹
Vs The stability of the system mainly depends on the
Third, the inverter side inductance (Lc) is calculated based resonance frequency given in (9) with proper adjustment of
on the unipolar sinusoidal PWM switching technique as the ȕ between 4 to 16, which relates θm from 36o to 60o
keeping the overshoot and settling time of the controller
Vdc performance [9], [12]. Fig. 4 shows the open loop Bode
Lc = . (8)
8 × Δ iLf max × f s diagram with the gain and phase crossover frequencies of the
The filter capacitor is calculated as C f = x ⋅ C b . where “x” system including PR controller and LCL plant. Three
crossover frequencies are observed: ωg1, ωg2 and ωg3 with the
decides the percentage of the reactive power required by the
filter capacitor (Cf) The grid side inductance (Ls) in (10) is respective PM θg1, θg2 and θg3 respectively. By adjusting the ȕ
calculated based on the stability condition given in (9) in case of the controller, the KPR and KIR of the PR controller can be
of the grid current feedback employing PR controller [11]. adjusted to achieve the optimum range of the phase margin
(θm) as given in (13). Moreover, there are two more PMs
f sw f related to the crossover frequencies at the filter resonance and
> f r > sw (9.a) the system is stable with the PR controller at all PMs.
2 4
10 f g ≤ f r ≤ f sw / 2 (9.b)
TABLE I. SYSTEM AND LCL FILTER PARAMETERS
Lc
Ls =
(ω 2
r × Lc × C f ) − 1
(10) Parameters Values
Line voltage (RMS), Vs 230 V
Keeping the resonance frequency (fr) of the LCL filter in
the stability range in (9) ensures the stability of the system Nominal grid frequency, ωg 2ʌ.50 rad/s
where stability issues arise if the higher control frequencies DC output voltage, Vdc 400 V
are used to achieve higher control bandwidth [10], [11]. Apparent power, Sn 1.5 kVA
System and LCL filter parameters are given in Table I. Base Impedance Zb and base capacitance Cb 35 , 90 F
Converter side inductor with 16% of permissible 3.4 mH
IV. DESIGN AND CONTROL OF PR CONTROLLER ripples with respect to the rated current gives Lc
Grid side inductor, Ls 0.35 mH
The design procedure of the PR controller is based on the
design of a PI controller [10]. Equation (4) is used (ideal PR Filter Capacitor, Cf with x =2.5% (x < 5%) 2.25 F
controller). The Cf is neglected to simplify the analysis only Resonance frequency, fr 6 kHz
for the design of the PR controller. Thus, the total inductance Switching frequency, fs 10 kHz
is L = Lc+Ls. Equivalent switching frequency, fsw 20 kHz
,(((0LODQ3RZHU7HFK
IEEE-519 (rectifier operation) standards. The bidirectional
VSI with a PR controller and LCL filter was implemented in a
real-time simulator, which was connected to the real loads at a
reduced voltage. Fig. 7 shows the grid voltage (Vs), grid
current (Is), the current reference (Is,ref) and the error between
the Is,ref and Is, which is taken from the real-time simulator. A
SyncRF PLL was implemented in the real-time simulator to
extract the frequency and phase angle ωs(t), θs(t) and the peak
value of the grid voltage ( Vˆs ). Fig. 8 depicts the step change in
the grid current (Is) where the Is becomes stable after three
cycles. Note that as the inverter injects real power, Is is in
phase with the grid voltage (Vs). Fig. 9 shows the Bode plot of
the closed-loop system. The measurements were taken using a
Figure 4. The frequency response of the system with ȕ = 10. real-time simulator with a time step of 50 s.
V. SIMULATION RESULTS
The simulation of a VSI with a PR controller was Figure 5. The simulated transient response of the VSI (Rectifier/Inverter
performed in the MATLAB/Simulink®. The whole inverter operation) with a step change in (id,ref) and (iq,ref) with line current is (t) error.
from Fig. 2 was simulated. The PR controller parameters KPR
is 0.128 and KIR is 127.9 with chosen ȕ = 10 extracted from
(13). The major difference between the PI and PR controller is
that: the active and reactive powers can be extracted in the
unbalanced SyncRF employing PI controller via id and iq (Fig.
1) while the available powers cannot be extracted in the SRF
PR controller. In the latter case, the active power and reactive
power control loops are needed to inject respective power to
and/or from the grid to regulate the voltage at PCC (Fig. 2).
Fig. 5 shows the simulated transient response of the rectifier
operation of the single-phase VSI and an output LCL filter
with 1 kW of the resistive load. At t = 0.02s a step change in
the id,ref is applied at a resistive load of 1 kW where a step
change at t = 0.06s is applied in the iq,ref with 750 Var of the
reactive load.
It can be seen that the grid current (is) is fully following the
reference current (is,ref) with zero steady-state error with the Figure 6. Harmonic order of the injected grid current is (t).
step change in active and reactive currents. Moreover, at
t = 0.1s shows the simulated transient response of the inverter
operation of the single-phase VSI where the power flows from
DC/AC. At t = 0.14 s a step change is applied in the iq,ref with
1500 Var of the reactive load and the reference current (is,ref) is
fully following the grid current with zero steady-state error.
The reference active and reactive currents (id,ref, iq,ref) can also
be seen with a step change in the error between the reference
and measured currents. Moreover, the ripple attenuation of the
grid current (is) can be seen with respect to the inverter current
(ic), which are much mitigated by the LCL filter. The VSI
operates in the bidirectional mode where power flows to
and/or from the grid to regulate the grid voltage at the PCC.
Fig. 6 exhibits the THDis of the grid current (is) around 0.71%
employing PR controller with HC and an allowable current
ripple of 16% in the design of the inverter side inductance of
the filter. The injected ripples in the grid current are less than Figure 7. Inverter operation of single-phase grid-tied inverter in PR
the 5% following the IEEE-1547 (inverter operation) and controller with grid current error in real-time simulator.
,(((0LODQ3RZHU7HFK
It was connected to a signal generator in parallel with a VI CONCLUSION
small resistor emulating the grid. A small-variation was A design procedure and control of the PR controller with an
introduced in the current reference and the current output was output LCL filter for a single-phase bidirectional VSI was
measured emulating the grid. A small-variation was presented. The LCL filter parameters were obtained by
introduced in the current reference and the current output was considering the stability margins of the resonance frequency to
measured. The gain and phase were obtained using the gain- dampen the resonance of the filter and to mitigate the injected
phase meter HP 3575. Notice the LCL filter resonance switching harmonic ripples to the grid. Moreover, the PR
frequency is at 6 kHz and the linear model coincides with the controller parameters were tuned with the extended SO
measurements with ȕ = 10. Fig. 10 shows the experimental method to get the broader phase margin, which helps in the
test bench with a real-time simulator. stability of the system. A comprehensive comparison of the PI
and PR controller has been presented, where PR has a better
transient response, zero steady-state error and better sinusoidal
tracking capability. The time delay was introduced in the
design of the controller, which helps in selecting ȕ for the
optimum phase margin of the complete system with the PR
controller and the LCL filter. Also, a distortion analysis was
performed and shown that the PR controller has lower
harmonic distortion. Moreover, the proposed model was
implemented in the real-time simulator with the real connected
loads to verify the simulation results.
REFERENCES
[1] F. M. Ibanez, "Bidirectional Series Resonant DC/AC Converter for
Energy Storage Systems," IEEE Transactions on Power Electronics,
vol. 34, no. 4, pp. 3429-3444, April 2019.
[2] F. Blaabjerg, R. Teodorescu, M. Liserre, and A. V. Timbus, “Overview
of control and grid synchronization for distributed power generation
systems,” IEEE Transactions on Industrial Electronics, vol. 53, no. 5,
Figure 8. Transient response of the VSI in the PR controller with a step pp. 1398-1409, Oct 2006.
change in line current in real-time simulator. [3] H. A. Rub, M. Malinowski, and K. A. Haddad, Power Electronics for
Renewable Energy Systems, Transportation and Industrial
Applications, 1st ed., West Sussex, United Kingdom, John Wiley &
Sons, 2014, pp. 757-758.
[4] R. Teodorescu, F. Blaabjerg, M. Liserre, and P.C. Loh, “ Proportional-
resonant controllers and filters for grid-connected voltage-source
converters,” in IEE Proceedings - Electric Power Applications, vol.
153, no. 5, pp. 750-762, Sep 2006.
[5] D. N. Zmood, and D. G. Holmes, “Stationary frame current regulation
of PWM inverters with zero steady-state error,” IEEE Trans. on Power
Electron., vol. 18, no. 3, pp. 814-822, May 2003.
[6] G. Shen, X. Zhu, J. Zhang, and D. Xu, “A new feedback method for PR
current control of LCL-filter based grid-connected inverter,” IEEE
Trans. Ind. Electron., vol. 57, no. 6, pp. 2033-2041, June 2010.
[7] F. Ibanez, J. M. Echeverria, J. Vadillo and L. Fontan, "High-Current
Rectifier Topology Applied to a 4-kW Bidirectional DC–DC
Converter," in IEEE Transactions on Industry Applications, vol. 50, no.
Figure 9. Closed loop plot of the system with the grid current feedback in 1, pp. 68-77, Jan.-Feb. 2014.
the PR controller (ȕ = 10) in the real-time simulator.
[8] F. M. Ibanez, J. M. Echeverria, D. Astigarraga and L. Fontan, "Soft-
switching forward DC-DC converter using a continuous current mode
for electric vehicle applications," IET Power Electronics, vol. 8, no. 10,
pp. 1978-1986, Oct. 2015.
[9] S. Somkun, and V. Chunkag, “Unified unbalanced synchronous
reference frame current control for single-phase grid-connected voltage
source converters,” IEEE Transactions on Industrial Electronics, vol.
63, no. 9, pp. 1398-1409, Sep. 2016.
[10] A. Ali, P. Shanmugham, and S. Somkun, “Single-Phase Grid-
Connected Voltage Source Converter for LCL Filter with Grid-Current
Feedback,” in proc. 2017 IEEE Electrical Engineering Congress
(iEECON) Conf., pp. 1-6.
[11] J. Dannehl, C. Wessels, and F. W. Fuch, “Limitations of voltage-oriented PI
current control of grid-connected PWM rectifiers with LCL filter,” IEEE
Trans. Ind. Electron., vol. 56, no. 2, pp. 380-388, Feb. 2009.
[12] S. Somkun, “Unbalanced synchronous reference frame control of
Figure 10. The experimental prototype of the system with real loads in the single-phase stand-alone inverter” International Journal of Electrical
real-time simulator. Power & Energy Systems, vol. 107, pp. 332-343, May 2019.
,(((0LODQ3RZHU7HFK