DOI QR코드

DOI QR Code

Analysis of Phase Error Effects Due to Grid Frequency Variation of SRF-PLL Based on APF

  • Received : 2015.09.16
  • Accepted : 2015.11.28
  • Published : 2016.01.20

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].

Fig. 1.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 can be obtained from the measured voltage vs by using APF. Stationary dq-axis voltages have a 90° phase difference from each other. The phase angle and frequency can be estimated by applying these two signals.

Fig. 2.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]

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

The cutoff angular frequency considering the delayed phase angle can be derived as

With the use of the bilinear transformation in (4), the transfer function of APF in discrete domain can be calculated by

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:

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

where 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

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:

From (10) and (11), the total output components of the PI controller that have the phase angle error can be expressed as follows:

The distorted phase angle dis , including the second ripple component, can be ultimately written as

where

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:

Calculated with synchronous d-axis voltage containing second harmonic component, the transformation matrix includes the distorted phase angle to acquire the synchronous dq-axis current. Hence, the synchronous dq-axis currents can be established as

When the grid angle error between θg and is small, the synchronous dq-axis currents considering (13) can be rewritten as

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

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:

In addition, when the magnitude of distorted phase angle is small, (18) can be rewritten by

where,

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).

where Kpn is the proportional gain, Kin is the resonant gain, n is the harmonic number, and ω0 is the resonant angular frequency.

Fig. 3.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

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.

Fig. 4.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.

Fig. 5.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.

Fig. 6.Overall block diagram of grid-tied single-phase inverter.

Fig. 7.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.

Fig. 8.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.

Fig. 9.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%.

Fig. 10.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.

Fig. 11.Overall block diagram for grid-tied single-phase inverter.

TABLE IGRID-TIED SINGLE-PHASE INVERTER SPECIFICATIONS

Fig. 12.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.

Fig. 13.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.

Fig. 14.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).

Fig. 15.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.

Fig. 16.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].

Fig. 17.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.

References

  1. S. B. Kjaer, J. K. Pedersen, and F. Blaabjerg, “A review of single-phase grid-connected inverters for photovoltaic modules,” IEEE Trans. Ind. Appl., Vol. 41, No. 5, pp. 1292-1306, Sep./Oct. 2005. https://doi.org/10.1109/TIA.2005.853371
  2. F. Blaabjerg, R. Teodorescu, M. Liserre, and A. V. Timbus, “Overview of control and grid synchronization for distributed power generation systems,” IEEE Trans. Ind. Electron., Vol. 53, No. 5, pp. 1398-1408, Oct. 2006. https://doi.org/10.1109/TIE.2006.881997
  3. Z. Yao and L. Xiao, “Control of single-phase grid-connected inverters with nonlinear loads,” IEEE Trans. Ind. Electron., Vol. 60, No. 4, pp. 1384-1389, Apr. 2013. https://doi.org/10.1109/TIE.2011.2174535
  4. J. M. Kwon, K. H. Nam, and B. H. Kwon, “Photovoltaic power conditioning system with line connection,” IEEE Trans. Ind. Electron., Vol. 53, No. 4, pp. 1048-1054, Aug. 2006. https://doi.org/10.1109/TIE.2006.878329
  5. U. S. Seong and S. H. Hwang, "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, pp. 2215-2220, 2015
  6. U. A. Miranda, M. Aredes, and L. G. B. Romlim, "A DQ synchronous reference frame control for single-phase converters," in Proc. PESC, pp. 1377-1381, 2005.
  7. H. J. Choi, S. H. Song, S. G. Jeong, J. Y. Choi, and I. Choy, “Enhanced dynamic response of SRF-PLL system for high dynamic performance during voltage disturbance,” Journal of Power Electronics, Vol. 11, No. 3, pp. 369-374, May 2011. https://doi.org/10.6113/JPE.2011.11.3.369
  8. J. W. Choi, Y. K. Kim, and H. G. Kim, "Digital PLL control for single-phase photovoltaic system," in IEE Proc. Electr. Power Appl., Vol. 153, No. 1, pp. 40-46, Jan. 2006.
  9. S. Shinnaka, “A robust single-phase PLL system with stable and fast tracking,” IEEE Trans. Ind. Appl., Vol. 44, No. 2, pp. 624-633, Mar./Apr. 2008. https://doi.org/10.1109/TIA.2008.916750
  10. S. Golestan, M. Monfared, and F. D. Freijedo, “Design-oriented study of advanced synchronous reference frame phase-locked loops,” IEEE Trans. Ind. Electron., Vol. 28, No. 2, pp. 765-778, Feb. 2013.
  11. S. Golestan, M. Monfared, F. D. Freijedo, and J. M. Guerrero, “Dynamics assessment of advanced single-phase PLL structures,” IEEE Trans. Ind. Electron., Vol. 60, No. 6, pp. 2167-2177, Jun. 2013. https://doi.org/10.1109/TIE.2012.2193863
  12. H. Yi, F. Zhuo, U. Li, Y. Zhang, and W. Zhan, “Comparison analysis of resonant controllers for current regulation of selective active power filter with mixed current reference,” Journal of Power Electronics, Vol. 13, No. 5, pp. 861-876, Sep. 2013. https://doi.org/10.6113/JPE.2013.13.5.861
  13. N. Zhang, H. Tang, and C. Yao, "A systematic method for designing a PR controller and active damping of the LCL filter for single-phase grid-connected PV inverters," Energies, Vol. 7, No. 6, pp. 3934-3954, Jun. 2014. https://doi.org/10.3390/en7063934
  14. H. G. Jeong, G. S. Kim, and K. B. Lee, “Second-order harmonic reduction technique for photovoltaic power conditioning systems using a proportional-resonant controller,” Energies, Vol. 6, No. 1, pp. 79-96, Jan. 2013. https://doi.org/10.3390/en6010079
  15. S. H. Hwang, L. Liu, H. Li, and J. M. Kim, “DC offset error compensation for synchronous reference frame PLL in single-phase grid-connected converters,” IEEE Trans. Power. Electron., Vol. 27, No. 8, pp. 3467-3471, Aug. 2012. https://doi.org/10.1109/TPEL.2012.2190425
  16. F. D. Freijedo, J. D. Gandoy, O. Lopez, P. F. Comesana, and C. M. Penalver, “A signal-processing adaptive algorithm for selective current harmonic cancellation in active power filters,” IEEE Trans. Ind. Electron., Vol. 56, No. 8, pp. 2829-2840, Aug. 2009. https://doi.org/10.1109/TIE.2009.2013844