Advanced
Analysis of Phase Error Effects Due to Grid Frequency Variation of SRF-PLL Based on APF
Analysis of Phase Error Effects Due to Grid Frequency Variation of SRF-PLL Based on APF
Journal of Power Electronics. 2016. Jan, 16(1): 18-26
Copyright © 2016, The Korean Institute Of Power Electronics
  • Received : September 16, 2015
  • Accepted : November 28, 2015
  • Published : January 20, 2016
Download
PDF
e-PUB
PubReader
PPT
Export by style
Article
Author
Metrics
Cited by
TagCloud
About the Authors
Ui-Seok, Seong
Dept. of Electrical Eng., Kyungnam University, Changwon, Korea
Seon-Hwan, Hwang
Dept. of Electrical Eng., Kyungnam University, Changwon, Korea
seonhwan@kyungnam.ac.kr

Abstract
This paper proposes a compensation algorithm for reducing a specific ripple component on synchronous reference frame phase locked loop (SRF-PLL) in grid-tied single-phase inverters. In general, SRF-PLL, which is based on all-pass filter to generate virtual voltage, is widely used to estimate the grid phase angle in a single-phase system. In reality, the estimated grid phase angle might be distorted because the phase difference between actual and virtual voltages is not 90 degrees. That is, the phase error is caused by the difference between cut-off frequency of all-pass filter and grid frequency under grid frequency variation. Therefore, the effects on phase angle and output current attributed to the phase error are mathematically analyzed in this paper. In addition, the proportional resonant (PR) controller is adapted to reduce the effects of phase error. The validity of the proposed algorithm is verified through several simulations and experiments.
Keywords
I. INTRODUCTION
In general, power converters that are applicable for uninterruptible power supply, renewable energy, and distributed generation systems have been developed to transfer electric power to the grid. The performance of grid-tied single-phase inverters is continuously improving; however, it can be degraded because of the difference of phase angle and voltage between the grid and the grid-tied inverter. In order to avoid these problems, grid voltage and phase angle should be precisely synchronized with the grid-tied inverter [1] - [3] .
Fig. 1 shows the conventional grid-tied single-phase inverter, which includes power conversion circuit, DC-link voltage controller, synchronous frame proportional integral (PI) current regulator, and synchronous reference frame phase-locked loop (SRF-PLL). Commonly, obtaining the grid phase angle information and frequency in the single-phase system is difficult than in the three-phase systems. Accordingly, a virtual voltage generator that uses all-pass filter (APF) is typically used in SRF-PLL [4] - [7] .
PPT Slide
Lager Image
Block diagram of conventional grid-tied single-phase inverter.
In Fig. 1 , the cutoff frequency of the APF is set up to 50 [Hz] or 60 [Hz] for SRF-PLL. In this case, grid frequency can be changed depending on the grid condition. The used APF can produce phase error when the actual grid frequency is different from the cutoff frequency of the APF.As a result, the estimated phase angle from the SRF-PLL is distorted, including the second harmonic component.
When the transformation matrix for synchronous frame PI current regulator with a distorted phase angle is used, synchronous dq -axis currents have specific ripple components [8] - [10] . The output phase current also includes harmonic components.
This paper analyzes the effects of the phase error in SRF-PLL on synchronous dq -axis voltages and output current when the grid frequency varies with the use of APF. To reduce ripple components caused by the phase error, a compensation algorithm based on the proportional resonant (PR) controller is presented [11] - [16] . The effects of phase error could be reduced significantly with the use of the proposed algorithm in the PI controller of SRF-PLL. Simulation and experimental results show the feasibility and usefulness of the proposed algorithm.
II. ANALYSIS OF SRF-PLL SYSTEM BASED ON APF
- A. Generation of Virtual Grid Voltage Using APF
In a grid-tied single-phase inverter, tracking the phase angle of the grid voltage by using PLL is essential. Hence, several PLL methods exist for the single-phase inverter system, such as zero-crossing detection, enhanced phase-locked loop, and second-order generalized integrator. [8] . In this paper, SRF-PLL is used to obtain the grid phase angle for the grid-tied single-phase inverter.
Using a conventional PI controller in SRF-PLL has the advantage of steady-state error converging to zero. By contrast, because of the difficulty of tracking the phase angle in the single-phase inverter, an additional system is required to generate stationary dq -axis voltages.
As shown in Fig. 2 , virtual two-phase voltages
PPT Slide
Lager Image
can be obtained from the measured voltage vs by using APF. Stationary dq -axis voltages
PPT Slide
Lager Image
have a 90° phase difference from each other. The phase angle and frequency can be estimated by applying these two signals.
PPT Slide
Lager Image
Block diagram of the SRF-PLL using APF.
A low-pass filter can also be used to generate a virtual grid voltage, which is shifted to 90° from the grid voltage. However, the low-pass filter has a magnitude margin when the measured frequency is greater than the cutoff frequency and the phase margin is generated as well. Alternatively, with the use of an APF, which has no magnitude margin while changing grid frequency, only a phase margin is considered. Using an APF over a low-pass filter can simplify computational burden. The transfer function of APF is given by [4]
PPT Slide
Lager Image
where ωA is the cutoff angular frequency.
To apply (1) on a digital platform, continuous time domain should be transformed to discrete z-domain. The digital control system is operated by sampling period Ts unlike the analog system. Therefore, delay time Td , which is related to calculating time and output delay time, is inevitably generated. Thus, the delayed phase angle ϕd can be obtained as
PPT Slide
Lager Image
The cutoff angular frequency considering the delayed phase angle can be derived as
PPT Slide
Lager Image
With the use of the bilinear transformation in (4), the transfer function of APF in discrete domain can be calculated by
PPT Slide
Lager Image
PPT Slide
Lager Image
- B. Effects of Phase Error in SRF-PLL
The phase angle of virtual voltage can be distorted by grid frequency variation because of external factors, such as load transient characteristic when using APF.
Considering inaccurate phase information, the synchronous dq -axis voltages in SRF-PLL contain a harmonic component [14] . In (6), the stationary dq -axis voltages, including phase angle error θerr , are given as follows:
PPT Slide
Lager Image
where Vm is the peak value of the grid voltage, and θg is the real phase angle.
Through the transformation matrix, synchronous dq -axis voltages can be obtained as
PPT Slide
Lager Image
where
PPT Slide
Lager Image
is the estimated phase angle.
On the assumption that the phase angle error is small, synchronous d -axis voltage on (7) can be expressed as
PPT Slide
Lager Image
PPT Slide
Lager Image
In (9), the second harmonic component, including the phase error, exists in the synchronous d -axis voltage. This harmonicaffects the estimated phase angle. However, the DC component in (9) can be automatically compensated by the integral operation of PI controller. Accordingly, only the second harmonic component must be considered in estimated phase angle to analyze the effect of the phase error easily. As a result, the outputs of proportional and integral controller can be derived as follows:
PPT Slide
Lager Image
PPT Slide
Lager Image
From (10) and (11), the total output components of the PI controller that have the phase angle error can be expressed as follows:
PPT Slide
Lager Image
The distorted phase angle dis
PPT Slide
Lager Image
, including the second ripple component, can be ultimately written as
PPT Slide
Lager Image
where
PPT Slide
Lager Image
As shown in (13), the distorted phase angle can generate the specific harmonic component in the output current when using the transformation matrix. As a result, power quality could be degraded by the distorted output current.
- C. Effects of Phase Error in Synchronous dq-axis Currents
In this paper, the synchronous reference frame PI current regulator is used to control the output current of the grid-tied single-phase inverter. Therefore, the effect of the phase error should be sufficiently considered in the transformation matrix. The stationary dq -axis currents can be expressed as follows:
PPT Slide
Lager Image
Calculated with synchronous d -axis voltage containing second harmonic component, the transformation matrix includes the distorted phase angle
PPT Slide
Lager Image
to acquire the synchronous dq -axis current. Hence, the synchronous dq -axis currents can be established as
PPT Slide
Lager Image
When the grid angle error between θg and
PPT Slide
Lager Image
is small, the synchronous dq -axis currents considering (13) can be rewritten as
PPT Slide
Lager Image
In (16), the synchronous d -axis current has the second harmonic component, and the synchronous q -axis current contains the fourth harmonic component attributed to the phase error.
- D. Effects of Phase Error in Stationary dq-axis Voltages
The synchronous dq -axis currents are changed to voltage reference signals when operating the synchronous reference frame PI current regulator. The synchronous dq -axis voltages including phase error can be obtained by
PPT Slide
Lager Image
where Kpc is the proportional gain, and Kic is the integral gain of the synchronous reference frame PI current regulator.
The output voltages of synchronous frame PI current regulator obtained by using the inverse transformation matrix can be derived as follows:
PPT Slide
Lager Image
In addition, when the magnitude of distorted phase angle
PPT Slide
Lager Image
is small, (18) can be rewritten by
PPT Slide
Lager Image
where,
PPT Slide
Lager Image
In (19), only d -axis voltage is considered because the stationary q -axis voltage is the virtual component. The stationary d -axis voltage includes the third harmonic component caused by the phase error.
As a result, output current also has the same harmonic component with stationary d -axis voltage attributed to the phase error. According to the above equations, harmonic components in synchronous frame dq -axis currents and output current can be decreased by diminishing the phase error.
Hence, in this paper, compensation algorithm is proposed in SRF-PLL to efficiently reduce the effects of phase error.
III. PROPOSED ALGORITHM FOR REDUCING PHASE ERROR IN SRF-PLL
Fig. 3 shows the block diagram of the PR controller, which is used to reduce phase error. The PR controller has a characteristic that provides an infinite gain at a selected frequency with a zero-phase shift. An ideal PR controller can be expressed as (20).
PPT Slide
Lager Image
where Kpn is the proportional gain, Kin is the resonant gain, n is the harmonic number, and ω 0 is the resonant angular frequency.
PPT Slide
Lager Image
Block diagram of practical PR controller.
However, infinite gain causes a decrease in the stabilization of the system. By contrast, with the use of the practical PR controller to compensate for the disadvantages of the ideal PR controller, gain and bandwidth can be modulated. The transfer function of practical PR controller can be computed as
PPT Slide
Lager Image
where ωc is the bandwidth at the cutoff frequency.
Fig. 4 shows the bode plot of the practical PR controller; the parameters that are used are proportional gain Kpn = 0.2 , resonant gain Kin = 1 , harmonic cumber n = 2 , and bandwidth at cutoff frequency ωc = 10.
PPT Slide
Lager Image
Bode plot of practical PR controller.
In order to reduce the second and fourth harmonic components in synchronous dq -axis currents due to phase error, two PR controllers related to each harmonic component are necessary in the synchronous reference frame PI current regulator. By contrast, in case of using PR controller in SRF-PLL, only one PR controller must be used to reduce the second harmonic component due to phase error.
Fig. 5 shows the block diagram of the proposed ripple reduction algorithm with PR controller in SRF-PLL. To decrease the second harmonic component in synchronous d -axis voltage of the SRF-PLL, the integrator output of PI regulator is selected as an input signal of PR controller. Also, by increasing the integrator gain Ki term, the ripple component can be expanded to easily detect the effects of phase error even if the phase error is small. Thus, the phase error effects can be reduced considerably by compensating the second harmonic component through the output signal of PR controller on synchronous d -axis voltage.
PPT Slide
Lager Image
Block diagram of SRF-PLL with the proposed ripple reduction algorithm.
On the basis of the reduction of the second harmonic in synchronous d -axis voltage, the second and fourth harmonic components in synchronous dq -axis currents are decreased as well. Therefore, the third harmonic component in the output current is ultimately reduced.
IV. SIMULATION RESULTS
To verify the proposed algorithm, simulations based on Matlab/Simulink are implemented. The designed grid-tied single-phase inverter system is shown in Fig. 6 . Fig. 7 shows the SRF-PLL, including the proposed algorithm. As an input signal of PR controller, the integrator output of PI controller is chosen. As a result, the second harmonic component on the estimated phase angle due to phase error can be reduced easily by calculating the output signal of PR controller on synchronous d -axis voltage. The simulation was operated under conditions of 2% frequency variation.
PPT Slide
Lager Image
Overall block diagram of grid-tied single-phase inverter.
PPT Slide
Lager Image
Block diagram of SRF-PLL with the proposed algorithm.
Fig. 8 shows the synchronous d -axis voltage, estimated frequency, and estimated phase angle before and after using the proposed algorithm under the phase error. From Fig. 8 (a), the second harmonic component due to phase error is decreased after using the proposed algorithm. In addition, tracing time for the phase error is rapid (within 0.2 [s]). Fig. 8 (b) shows the estimated phase angle, including the second harmonic component. After using the proposed algorithm, the effect of phase error is reduced.
PPT Slide
Lager Image
Simulation results before and after using the proposed algorithm. (a) synchronous d-axis voltage and estimated frequency. (b) estimated phase angle.
Fig. 9 shows the output current, synchronous d -axis voltage, and estimated frequency before and after using the proposed algorithm under load variation. Although the output current increased from 1 A to 1.5 A because of load variation, results show that the proposed algorithm is stable and fast.
PPT Slide
Lager Image
Simulation waveforms of output phase current, synchronous d-axis voltage, and estimated frequency.
Fig. 10 shows the fast Fourier transform (FFT) results of the output current. The output current includes the third harmonic component, as computed with an imprecise phase angle. However, after using the PR controller to compensate this ripple component in synchronous d -axis voltage, the total harmonic distortion (THD) of output phase current improved from 6.21% to 0.95%.
PPT Slide
Lager Image
FFT result of the output phase current before and after using the proposed algorithm.
V. EXPERIMENTS
The experiment platform is composed of TMS320VC33 as the digital signal processor for calculation as shown in Fig. 11 . Detailed parameters and experimental setup of the designed grid-tied single-phase inverter are shown in Table I and Fig. 12 , respectively. To confirm the effects of phase error, an experiment was performed under the condition of changing cutoff frequency of the APF from 55 [Hz] to 65 [Hz]. Adjusting the cutoff frequency of the APF produced the same result with grid frequency variation.
PPT Slide
Lager Image
Overall block diagram for grid-tied single-phase inverter.
GRID-TIED SINGLE-PHASE INVERTER SPECIFICATIONS
PPT Slide
Lager Image
GRID-TIED SINGLE-PHASE INVERTER SPECIFICATIONS
PPT Slide
Lager Image
Experimental setup.
Fig. 13 shows the waveforms of the estimated phase angle, integrator output of synchronous d -axis voltage with and without using the proposed algorithm. The integrator output of synchronous d -axis voltage increased the amplitude by adjusting Ki term. Therefore, the integrator output is appropriate for the input signal of PR controller.
PPT Slide
Lager Image
Estimated phase angle, integrator output of synchronous d-axis voltage and FFT result. (a) without the proposed algorithm. (b) with the proposed algorithm.
In Fig. 13 (a), the integrator output of synchronous d -axis voltage has a second harmonic component under the condition of 65 [Hz] cutoff frequency of the APF. As a result of the second ripple component, the estimated phase angle contains a ripple component as well, identical to the result in (13). However, the effect of phase error is reduced significantly by using the proposed algorithm, as shown in Fig. 13 (b).
In Fig. 14 , synchronous dq -axis currents and FFT results are expressed when the cutoff frequency of the APF is set to 65 [Hz]. In Fig. 14 (a), the synchronous dq -axis currents contain the second and fourth harmonic components by calculating with an inaccurate phase angle due to phase error.
PPT Slide
Lager Image
Synchronous dq-axis currents and FFT result. (a) without the proposed algorithm. (b) with the proposed algorithm.
However, with the use of the proposed algorithm, the effects of phase error is largely reduced, as shown in Fig. 14 (b). The fourth harmonic component, which still exists after using the proposed algorithm, is the effect of dead time that is inserted to prevent switching devices from short circuiting.
Fig. 15 shows the estimated phase angle, output current, and FFT result with and without using the proposed algorithm when the cutoff frequency of the APF is set to 65 [Hz]. The third harmonic component in the output current is generated because of the phase error. Therefore, with the use of the proposed algorithm in SRF-PLL, the quality of the output current is improved, as shown in Fig. 15 (b).
PPT Slide
Lager Image
Estimated phase angle, output current, and FFT result. (a) without the proposed algorithm. (b) with the proposed algorithm.
Fig. 16 (a) presents the waveforms of the estimated phase angle and integrator output of synchronous d -axis voltage according to a grid frequency variation from 55 [Hz] to 65 [Hz]. In accordance with the grid frequency fluctuation, synchronous d -axis voltage includes the second harmonic component.
PPT Slide
Lager Image
Estimated phase angle, integrator output of synchronous d-axis voltage, and FFT result. (a) without the proposed algorithm. (b) with the proposed algorithm.
However, Fig. 16 (b) shows that the proposed algorithm works well when changing the grid frequency.
To prove that the proposed algorithm has good response characteristics under small- and large-scale frequency variation, Fig. 17 shows the estimated phase angle and integrator output of synchronous d -axis voltage when the grid frequency changes from 59 [Hz] to 61 [Hz].
PPT Slide
Lager Image
Estimated phase angle, integrator output of synchronous d-axis voltage, and FFT result. (a) without the proposed algorithm. (b) with the proposed algorithm.
Hence, the ripple component in the synchronous d -axis voltage is decreased by using the proposed algorithm, as shown in Fig. 17 (b).
VI. CONCLUSION
In this paper, phase error effects grid frequency variation when using SRF-PLL with the APF are investigated in detail with mathematical analysis.
The phase error generates the second harmonic component in the synchronous d -axis voltage and the estimated phase angle. A calculation of the distorted phase angle and the transformation matrix of the current controller indicates that the synchronous dq -axis currents and output current also degraded. To reduce the effects of the phase error and improve the performance of the grid-tied inverter, a ripple reduction algorithm using PR controller was proposed in the PI controller of SRF-PLL. The algorithm reduced the ripple component in synchronous d -axis voltage significantly and enhanced the THD of the output current. Experiments and simulation results prove the value of the proposed algorithm.
Acknowledgements
This work was supported by Kyungnam University Foundation Grant in 2013.
BIO
Ui-Seok Seong received his B.S. degree in Electrical Engineering from Kyungnam University, Changwon, Korea, in 2015. He is currently working toward an M.S. degree in the Department of Electrical Engineering, Kyungnam University, Changwon, Korea. His research interests include power electronics, electrical machine drives, and renewable energy technologies.
Seon-Hwan Hwang received his B.S., M.S., and Ph.D. degrees in Electrical Engineering from Pusan National University, Busan, Korea, in 2004, 2006, and 2011, respectively. From 2011 to 2012, he was with the Center for Advanced Power Systems (CAPS), Florida State University, Tallahassee, FL, USA. In 2012, he joined the Department of Electrical Engineering, Kyungnam University, Changwon, Korea. His current research interests include the control of electrical machines, power electronics, and wind power generation systems.
References
Kjaer S. B. , Pedersen J. K. , Blaabjerg F. 2005 “A review of single-phase grid-connected inverters for photovoltaic modules,” IEEE Trans. Ind. Appl. 41 (5) 1292 - 1306    DOI : 10.1109/TIA.2005.853371
Blaabjerg F. , Teodorescu R. , Liserre M. , Timbus A. V. 2006 “Overview of control and grid synchronization for distributed power generation systems,” IEEE Trans. Ind. Electron. 53 (5) 1398 - 1408    DOI : 10.1109/TIE.2006.881997
Yao Z. , Xiao L. 2013 “Control of single-phase grid-connected inverters with nonlinear loads,” IEEE Trans. Ind. Electron. 60 (4) 1384 - 1389    DOI : 10.1109/TIE.2011.2174535
Kwon J. M. , Nam K. H. , Kwon B. H. 2006 “Photovoltaic power conditioning system with line connection,” IEEE Trans. Ind. Electron. 53 (4) 1048 - 1054    DOI : 10.1109/TIE.2006.878329
Seong U. S. , Hwang S. H. “Analysis of phase error effects between virtual two-phase voltages in SRF-PLL based on APF,” in Proc. Intern. Conf. on Power Electronics and ECCE Asia 2015 2215 - 2220
Miranda U. A. , Aredes M. , Romlim L. G. B. “A DQ synchronous reference frame control for single-phase converters,” in Proc. PESC 2005 1377 - 1381
Choi H. J. , Song S. H. , Jeong S. G. , Choi J. Y. , Choy I. 2011 “Enhanced dynamic response of SRF-PLL system for high dynamic performance during voltage disturbance,” Journal of Power Electronics 11 (3) 369 - 374    DOI : 10.6113/JPE.2011.11.3.369
Choi J. W. , Kim Y. K. , Kim H. G. “Digital PLL control for single-phase photovoltaic system,” in IEE Proc. Electr. Power Appl. Jan. 2006 Vol. 153, No. 1 40 - 46
Shinnaka S. 2008 “A robust single-phase PLL system with stable and fast tracking,” IEEE Trans. Ind. Appl. 44 (2) 624 - 633    DOI : 10.1109/TIA.2008.916750
Golestan S. , Monfared M. , Freijedo F. D. 2013 “Design-oriented study of advanced synchronous reference frame phase-locked loops,” IEEE Trans. Ind. Electron. 28 (2) 765 - 778
Golestan S. , Monfared M. , Freijedo F. D. , Guerrero J. M. 2013 “Dynamics assessment of advanced single-phase PLL structures,” IEEE Trans. Ind. Electron. 60 (6) 2167 - 2177    DOI : 10.1109/TIE.2012.2193863
Yi H. , Zhuo F. , Li U. , Zhang Y. , Zhan W. 2013 “Comparison analysis of resonant controllers for current regulation of selective active power filter with mixed current reference,” Journal of Power Electronics 13 (5) 861 - 876    DOI : 10.6113/JPE.2013.13.5.861
Zhang N. , Tang H. , Yao C. 2014 “A systematic method for designing a PR controller and active damping of the LCL filter for single-phase grid-connected PV inverters,” Energies 7 (6) 3934 - 3954    DOI : 10.3390/en7063934
Jeong H. G. , Kim G. S. , Lee K. B. 2013 “Second-order harmonic reduction technique for photovoltaic power conditioning systems using a proportional-resonant controller,” Energies 6 (1) 79 - 96    DOI : 10.3390/en6010079
Hwang S. H. , Liu L. , Li H. , Kim J. M. 2012 “DC offset error compensation for synchronous reference frame PLL in single-phase grid-connected converters,” IEEE Trans. Power. Electron. 27 (8) 3467 - 3471    DOI : 10.1109/TPEL.2012.2190425
Freijedo F. D. , Gandoy J. D. , Lopez O. , Comesana P. F. , Penalver C. M. 2009 “A signal-processing adaptive algorithm for selective current harmonic cancellation in active power filters,” IEEE Trans. Ind. Electron. 56 (8) 2829 - 2840    DOI : 10.1109/TIE.2009.2013844