Beruflich Dokumente
Kultur Dokumente
Frequency-Adaptive Stationary-Reference-Frame
Grid Voltage Sequence Detector for Distributed
Generation Systems
Eider Robles, Josep Pou, Member, IEEE, Salvador Ceballos, Jordi Zaragoza, Student Member, IEEE,
José Luis Martín, Member, IEEE, and Pedro Ibañez, Member, IEEE
Abstract—This paper proposes a stationary-frame sequence de- transmission systems. Many synchronizing methods have been
tector (SFSD) structure for determining the positive sequence in presented over recent years. Some of these are based on a phase-
three-phase systems. The structure includes the use of the Clarke locked loop (PLL), including a feedback loop, with the purpose
transformation and moving average filters (MAFs). The positive-
sequence phase angle can be obtained from the alpha–beta com- of controlling a magnitude which is dependent on the voltage
ponents; however, such a detection becomes inaccurate if the grid phase angle [3]–[6].
voltages are unbalanced and/or distorted. The MAF is used to fil- PLLs are possibly the most widely used synchronization
ter the nonideal components. Performance of the MAF is analyzed methods in the case of grid-connected three-phase systems [7],
mathematically for a proper selection of the window width of the [8]. The dynamic response of some methods, such as the one
optimal filter in this application. The time delay introduced by
MAFs is constant and known; hence, this may be compensated. described in [9], is good under balanced grid voltages but very
The proposed detector structure allows fast detection of the grid slow when these are designed to operate under unbalanced or
voltage positive sequence (within one grid voltage cycle). The MAF distorted grid voltages. The fast PLL method presented in [10]
completely eliminates any oscillation multiple of the frequency can cancel out the influence of certain harmonics; however, the
for which it is designed; thus, this algorithm can overcome the method has to be implemented to each harmonic separately
presence of imbalances or harmonics in the electrical grid. Fur-
thermore, it includes a simple frequency estimator that makes and should be limited to canceling out the effect of only a few
the SFSD frequency adaptive and is capable of operating under harmonics. The performance of the PLL-based synchronization
large frequency changes. The entire SFSD is verified through method used in [11] is good, even under voltage imbalances and
simulation and experiment, showing very good performance even distortion. Nevertheless, in order to implement this, a number of
under several extreme grid voltage conditions. practical problems relating to the normalization of the detected
Index Terms—Frequency estimation, grid-connected convert- angle within the moving average filter (MAF) stage must be
ers, moving average filter (MAF), sequence detector, stationary resolved in order to avoid overflow. Additionally, this solution
reference frame. was not designed to operate under variable frequency.
I. I NTRODUCTION Other kinds of synchronization algorithms are based on the
instantaneous symmetrical component theory [12]–[14]. Some
∞
(−1)i 2i+1 Using the approach described in (8), the angle is shown to
arctan(x) = x , for |x| ≤ 1 (7)
2i + 1 be dependent on a complex sum of sinusoidal components, the
i=0
frequency of which is dependent on an arithmetic combination
or of the input harmonic frequencies. In the worst case, it may
happen that the sum of the angles in a sinusoidal component
x3 x5 x7 is constant, thus representing a continuous component in the
arctan(x) = x − + − + ···, for |x| ≤ 1.
3 5 7 detected angle. This will produce an error even after low-pass
(8) filtering the angle. Fortunately, in practice, this error is very
Assuming harmonic amplitudes to be smaller than the fun- small and infrequent.
damental one (B < A or B < A), (6) can be truncated to the
third component because the following components are usually
very small. For the same reason, the Taylor series in (8) can be III. MAF
truncated to the second term. By replacing (6) in (8), a complex To obtain the real angle of a positive sequence, the oscillating
sum of sinusoidal terms is obtained. The general expression can components have to be removed. A MAF structure may be very
be written as useful because, under certain conditions, it can perform as an
∞
ideal low-pass filter. Performance of the MAF is analyzed as
B sin α follows.
θ = ωt + arctan ≈ ωt + ki sin(i · α)
A + B cos α i=1
Application of the MAF operator to an input signal x(τ ) is
(9) given by
where
t
∞
j x̄(t) =
1
x(τ )dτ. (12)
B Tw
ki = Ci and j increases in twos. (10)
j=i
A t−Tw
Applying the Laplace transform to (13) and (14), the transfer Fig. 3 shows the Bode diagram of this transfer function
function for θ0 = 0 becomes in which the frequency axis has been normalized (f /fw =
Tw /T ). Observe that the frequency components that comply
X(s) s [cos(ωTw ) − 1] + ω sin(ωTw ) with (20) are completely canceled out.
GMAF (s) = = . (15)
X(s) ω 2 Tw If the average value of the input signal remains constant
and Tw is properly adjusted, the output of the MAF does not
Substituting s = jω produce any steady-state error. However, if the input signal
X(jω) j [cos(ωTw ) − 1] + sin(ωTw ) increases or decreases with a constant slope x(t) = m · t, the
GMAF (jω) = = . output of the MAF includes a constant error given by d =
X(jω) ωTw
(16) mTw /2 (Fig. 4). Consequently, this value has to be added to
The magnitude and phase expressions are, respectively the output of the MAF to compensate for this error.
√
2
|GMAF (jω)| = 1 − cos(ωTw ) (17) IV. SFSD
ωTw
Fig. 5 shows the structure of the proposed positive-sequence
cos(ωTw ) − 1 detector. By means of the Clarke transformation, the input
ϕ [GMAF (jω)] = arctan
sin(ωTw ) voltage vector is transformed into αβ components. These trans-
ωTw formed components will be sinusoidal and may contain oscil-
=− . (18) lations due to harmonics and a negative voltage sequence. A
2
four-quadrant arctangent operation is performed, and the input
The MAF is an FIR filter that, as shown in (18), has a linear voltage phase angle is detected. As well as the αβ components,
phase, with the time of the delay being constant and known. this phase angle may contain oscillations. It is thus filtered
From (17), the output magnitude of the MAF is zero when- through a MAF. Since the angle increases with a constant slope,
ever [1 − cos(ωTw )] = 0, i.e., the error produced by the MAF has to be compensated.
If the window width is Tw = Tg , with Tg being the grid
ωTw = k2π, for k = 1, 2, 3, . . . (19)
voltage period, the correction constant to compensate for the
or angle error is π. Similarly, the compensation angle is π/2 if the
selected window width of the MAF is Tw = Tg /2. Once the er-
Tw f ror is compensated, the positive-sequence angle θ+ is obtained,
= = k, for k = 1, 2, 3, . . . . (20)
T fw free of oscillations due to disturbances and imbalances.
ROBLES et al.: GRID VOLTAGE SEQUENCE DETECTOR FOR DISTRIBUTED GENERATION SYSTEMS 4279
Fig. 6. Performance example: (a) Grid voltages, (b) phase angle, and (c) error
in the detected phase angle.
The error produced because the MAF window width is errors due to transients when disturbances appear is to use both
not properly adjusted is determined by subtracting (23) from crossing points and calculate the frequency separately.
(24). This error can be separated into two terms: a constant The following situations may occur depending on the loca-
component (e1 ) and an oscillating component (e2 ) tion of the next zero-crossing point.
1) A zero-crossing point is found in the 25-Hz/s band. It
Tw
e1 = π 1 − (25) is considered to be a valid value, and the frequency is
T
updated. This situation is shown in Fig. 10. Grid voltages
∞
An T start undisturbed, and suddenly, one harmonic component
e2 = is added. In this case, the transition is not strong enough,
n=1 w
T n2π
and the zero-crossing point is found within the band. Any
2π 2π other zero-crossing point before or after the band may not
× cos n t − cos n (t − Tw ) . (26)
T T be considered if there has been a crossing point within
the band.
From (25) and (26), one can deduce that if the difference 2) There are several zero-crossing points within the band.
between Tw and T is small, the total error in the detected angle When the first zero-crossing point is found, the frequency
will be small and hence acceptable. is updated, and the new band limits are calculated. The
Therefore, in this paper, a relatively simple but efficient algorithm will look for a new zero-crossing point much
adaptive zero-crossing method is proposed. Fig. 9 shows the further from the second zero-crossing point. Hence, this
flowchart of this detection method. At the beginning of the will be outside the new band and therefore will not be
process, two zero-crossing points are needed to calculate considered.
the initial frequency. It has been designed to allow frequency 3) There is a zero-crossing point before the band. This is
changes of up to 25 Hz/s. Hence, every time a new frequency is shown in Fig. 11. This zero-crossing point would repre-
measured, the upper and lower frequency limits are calculated sent an important frequency change and may not be real,
to determine a 25-Hz/s frequency band for the next zero- but it may be caused by a transitory disturbance, in this
crossing point. Then, it will wait for the following zero-crossing case the sudden addition of a harmonic component set.
point and proceed differently depending on whether it is within This uncertain crossing point is saved, but the frequency
the band or not. Both the positive- and negative-slope zero- is not updated. If the next zero-crossing point is found in
crossing points can be used for detecting the frequency in order the 25-Hz/s band of the previous one, the frequency will
to improve the detection dynamics. The best way to avoid then be updated.
4282 IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, VOL. 58, NO. 9, SEPTEMBER 2011
Fig. 15. Comparative simulation: (a) Grid voltages and (b) angle errors for
the SFSD, DSOGI-FLL, and traditional PLL.
Fig. 14. Zoom of the error in Fig. 13 in the proximities of a grid frequency All the tests were performed with a line-to-neutral voltage of
of 50 Hz. 50 Vrms.
Fig. 16 shows the main variables of the proposed positive-
VIII. C OMPARISON
sequence detector. The grid frequency is maintained constant at
The proposed variable-frequency SFSD scheme has been 50 Hz throughout the process. The figure shows the grid volt-
compared to the traditional PLL and the DSOGI-FLL [13] ages, the detected angle, the detected frequency, the positive-
found in the literature. The former has been tuned with a high sequence filtered dq components, and the positive sequence. An
bandwidth, imposing a rising time of 2 ms and a natural fre- abrupt short circuit occurs at t = 30 ms (a 100% single-phase
quency of 557 rad/s. The PI parameters result in the following: voltage dip). At t = 110 ms, the previous voltage dip recovers,
Kp = 2.06 and Ki = 814. The latter has been tuned with the and a three-phase 70% voltage dip and odd harmonic sets are
optimum parameters given in [13]: k = γ = 1.41. Fig. 15(a) introduced as follows: up to the 25th harmonic according to
and (b) shows the grid voltages and the angle errors, respec- Vh = Vfundamental /h for h = 3, 5, . . . , 25. At t = 190 ms, the
tively. The rms line-to-neutral grid voltage is 220 V at 50 Hz, input voltage is completely restored. Observe the fast detection
and the MAFs have a window width of Tw = Tg /2, where Tg is of the fundamental amplitude change and how the positive
the grid voltage period. At the beginning, all the methods detect sequence is perfectly characterized. There is no change in the
the angle without error. At t = 60 ms, the frequency changes positive-sequence phase during this process, as the detected
up to 50.5 Hz. At t = 80 ms, a fifth-order harmonic component angle shows. Thus, the frequency and angle are detected ac-
(20%) is added until t = 150 ms. The SFSD needs a Tw time to curately, showing good performance in the presence of voltage
cancel the error, while both the traditional PLL and the DSOGI- dips and high harmonic distortion.
FLL cannot completely cancel the effects of the harmonics. At The experimental test shown in Fig. 17 shows the perfor-
t = 200 ms, an asymmetric voltage dip (20%, 30%, and 40%) is mance of the variable-frequency SFSD when the input voltage
introduced until t = 250 ms. Again, the SFSD corrects the error has a time-varying frequency. The input frequency starts at
in a Tw time. The traditional PLL maintains an oscillation due 50 Hz. At t = 200 ms, it starts to vary at 10 Hz/s up to 59 Hz.
to the negative sequence, and the DSOGI-FLL shows a slower In addition, a single-phase voltage dip of 30% occurs at t =
dynamic performance. 500 ms until the end. Fig. 18 shows a zoom of the transitory.
Note that, even in the presence of such adverse operating condi-
tions, the proposed positive-sequence detector is able to detect
IX. E XPERIMENTAL R ESULTS
the angle correctly and that the dq components are perfectly
The proposed algorithm was programmed in a DSP board synchronized.
TMS320F2812 operating at 100 MHz. It only needs 15 μs to The SFSD has also been tested in a real application to
obtain the frequency and the positive sequence. A number of connect a neutral point clamped (NPC) converter to a 400-V
experimental results were obtained. An Omicron three-phase grid as shown in Fig. 19. It is part of a laboratory wind-turbine
generator CMC-156 was used to provide the grid voltages. testbench consisting of a permanent-magnet synchronous gen-
4284 IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, VOL. 58, NO. 9, SEPTEMBER 2011
Fig. 16. Experimental results. Constant frequency input, voltage dip, and high harmonic distortion.
Fig. 17. Experimental results. Varying frequency input and voltage dip.
erator and a back-to-back NPC power conversion stage. The of the effects produced by grid voltage imbalances and har-
system has been subject to hard distortion in the test of Fig. 20. monics on the detected variables, except in certain infrequent
Observe that, even under such extreme grid voltage conditions, conditions when the error would be very small. Simulation
the detected angle and the positive-sequence dq components are and experimental results have been presented, which verify
detected correctly. good performance of the system in the presence of harmonics,
imbalances, and phase changes in the grid voltages.
Performance of the presented PLL has proved considerably
X. C ONCLUSION
better than the basic PLL design. In addition, its performance
In this paper, a new PLL has been presented for positive- shows clear advantages in the presence of harmonics over
sequence detection in a three-phase system. The structure is the newest and more sophisticated positive-sequence detectors.
based on a MAF that guarantees the complete cancellation On the other hand, it has a similar dynamic response and
ROBLES et al.: GRID VOLTAGE SEQUENCE DETECTOR FOR DISTRIBUTED GENERATION SYSTEMS 4285
[16] F. A. S. Neves, M. C. Cavalcanti, H. E. P. de Souza, F. Bradaschia, Eider Robles was born in Bilbao, Spain, in 1980.
E. J. Bueno, and M. Rizo, “A generalized delayed signal cancellation She received the M.S. degree in electronic and au-
method for detecting fundamental-frequency positive-sequence three- tomatic engineering from the University of Deusto,
phase signals,” IEEE Trans. Ind. Electron., vol. 25, no. 3, pp. 1816–1825, Bilbao, in 2003 and the Ph.D. degree from the
Jul. 2010. University of the Basque Country, Bilbao, in 2010.
[17] R. F. de Camargo and H. Pinheiro, “Synchronisation method for three- Since 2003, she has been with Tecnalia Research
phase PWM converters under unbalanced and distorted grid,” Proc. & Innovation, Zamudio, Spain, where she is cur-
Inst. Elect. Eng.—Elect. Power Appl., vol. 153, no. 5, pp. 763–772, rently a Research Engineer with the Energy Unit. She
Sep. 2006. is the author or coauthor of more than 20 technical
[18] H. S. Timorabadi and F. P. Dawson, “A three-phase frequency adaptive papers. Her main research activity deals with grid
digital phase locked loop for measurement, control, and protection in connection and control of renewable energy systems.
power systems,” in Proc. IEEE PCC, Nagoya, Japan, Apr. 2–5, 2007,
pp. 183–190.
[19] G. Escobar, M. Martinez-Montejano, A. Valdez, P. Martinez, and
M. Hernandez-Gomez, “Fixed reference frame phase-locked loop (FRF-
PLL) for grid synchronization under unbalanced operation,” IEEE Trans.
Ind. Electron., vol. 58, no. 5, pp. 1943–1951, May 2011.
[20] F. A. S. Neves, H. E. P. de Souza, F. Bradaschia, M. C. Cavalcanti, Josep Pou (S’97–M’03) received the B.S., M.S.,
M. Rizo, and F. J. Rodriguez, “A space-vector discrete Fourier transform and Ph.D. degrees in electrical engineering from the
for unbalanced and distorted three-phase signals,” IEEE Trans. Ind. Elec- Technical University of Catalonia (UPC), Terrassa,
tron., vol. 25, no. 3, pp. 1816–1825, Jul. 2010. Spain, in 1989, 1996, and 2002, respectively.
[21] A. M. Salamah, S. J. Finney, and B. W. Williams, “Three-phase phase- During 1989, he was the Technical Director of
lock loop for distorted utilities,” IET Elect. Power Appl., vol. 1, no. 6, Polylux S.A. In 1990, he was with the faculty of
pp. 937–945, Nov. 2007. UPC as an Assistant Professor, where he became an
[22] A. Ghoshal and V. John, “A method to improve PLL performance Associate Professor in 1993. From February 2001
under abnormal grid conditions,” in Proc. NPEC, Bangalore, India, to January 2002 and from February 2005 to January
Dec. 17–19, 2007. 2006, he was a Researcher with the Center for Power
[23] E. Robles, S. Ceballos, J. Pou, J. Zaragoza, and I. Gabiola, “Grid syn- Electronics Systems, Virginia Polytechnic Institute
chronization method based on a quasi-ideal low-pass filter stage and a and State University, Blacksburg. He is currently with the Terrassa Industrial
phase-locked loop,” in Proc. IEEE Power Electron. Spec. Conf., Rhodes, Electronics Group, Department of Electronic Engineering, UPC. He has au-
Greece, Jun. 15–19, 2008, pp. 4056–4061. thored more than 80 published technical papers and has been involved in several
[24] F. D. Freijedo, J. Doval-Gandoy, O. Lopez, and E. Acha, “A generic open- industrial projects and educational programs in the fields of power electronics
loop algorithm for three-phase grid voltage/current synchronization with and systems. His research interests include modeling and control of power
particular reference to phase, frequency, and amplitude estimation,” IEEE converters, multilevel converters, power quality, renewable energy systems, and
Trans. Power Electron., vol. 24, no. 1, pp. 94–107, Jan. 2009. motor drives.
[25] L. Asnin, V. Backmutsky, and M. Gankin, “Comparative characteristics
of main methods for dynamic estimation of frequency and magnitude
parameters in power systems,” in Proc. 22nd Conv. Elect. Electron. Eng.,
Dec. 1, 2002, pp. 35–38.
[26] L. Asnin, V. Backmutsky, M. Gankin, J. Blashka, and M. Sedlachek, “DSP
methods for dynamic estimation of frequency and magnitude parame-
ters in power system transients,” in Proc. Power Tech, Porto, Portugal,
Sep. 10–13, 2008, vol. 4. Salvador Ceballos received the B.Sc. degree in
[27] O. Vainio and S. J. Ovaska, “Digital filtering for robust 50/60 Hz zero- physics from the University of Cantabria, Santander,
crossing detectors,” IEEE Trans. Instrum. Meas., vol. 45, no. 2, pp. 426– Spain, in 2001 and the B.Eng. and Ph.D. degrees
430, Apr. 1996. in electronic engineering from the University of the
[28] O. Vainio and S. J. Ovaska, “Noise reduction in zero crossing detection Basque Country, Bilbao, Spain, in 2002 and 2008,
by predictive digital filtering,” IEEE Trans. Ind. Electron., vol. 42, no. 1, respectively.
pp. 58–62, Feb. 1995. Since 2002, he has been with Tecnalia Research
[29] M. B. Duric and Z. R. Durisic, “Frequency measurement in power net- & Innovation, Zamudio, Spain, where he is currently
works in the presence of harmonics using Fourier and zero crossing a Development Engineer with the Energy Unit. From
technique,” in Proc. Power Tech, St. Petersburg, Russia, Jun. 27–30, 2005, May 2008 to May 2009, he was a Visiting Researcher
pp. 1–6. with the Hydraulic and Maritime Research Centre,
[30] M. M. Begovic, P. M. Djuric, S. Dunlap, and A. G. Phadke, “Frequency University College Cork, Cork, Ireland. He has authored more than 30 pub-
tracking in power networks in the presence of harmonics,” IEEE Trans. lished technical papers. His research interests include multilevel converters,
Power Del., vol. 8, no. 2, pp. 480–486, Apr. 1993. fault-tolerant power electronic topologies, and renewable energy systems.
[31] D. W. P. Thomas and M. S. Woolfson, “Evaluation of frequency track-
ing methods,” IEEE Trans. Power Del., vol. 16, no. 3, pp. 367–371,
Jul. 2001.
[32] M. Sanaye-Pasand and V. J. Marandi, “Frequency estimation of distorted
signals for control and protection of power system,” in Proc. 8th IEE
Int. Conf. Develop. Power Syst. Protection, Amsterdam, The Netherlands,
Apr. 5–8, 2004, pp. 631–634. Jordi Zaragoza (S’08) received the B.S. degree in
[33] H. K. Kwok and D. L. Jones, “Improved instantaneous frequency estima- electronic engineering and the M.S. degree in auto-
tion using an adaptive short-time Fourier transform,” IEEE Trans. Signal matic and electronic industrial engineering from the
Process., vol. 48, no. 10, pp. 2964–2972, Oct. 2000. Technical University of Catalonia (UPC), Terrassa,
[34] J. Yang and C. Liu, “A precise calculation of power system frequency,” Spain, in 2001 and 2004, respectively, where he is
IEEE Trans. Power Del., vol. 16, no. 3, pp. 361–366, Jul. 2001. currently working toward the Ph.D. degree in the
[35] A. Routray, A. K. Pradhan, and K. P. Rao, “A novel Kalman filter for Terrassa Industrial Electronic Group, Department of
frequency estimation of distorted signals in power systems,” IEEE Trans. Electronic Engineering.
Instrum. Meas., vol. 51, no. 3, pp. 469–479, Jun. 2002. In 2003, he was with the faculty of UPC as an
[36] H. Karimi, M. Karimi-Ghartemani, and M. R. Iravani, “Estimation of Assistant Professor. From September 2006 to
frequency and its rate of change for applications in power systems,” IEEE September 2007, he was a Researcher with the
Trans. Power Del., vol. 19, no. 2, pp. 472–480, Apr. 2004. Energy Unit, Robotiker–Tecnalia Research Centre, Zamudio, Spain. He has
[37] M. Mojiri, M. Karimi-Ghartemani, and A. Bakhshai, “Estimation of authored more than 20 published technical papers. His research interests
power system frequency using an adaptive notch filter,” IEEE Trans. include modeling and control of power converters, multilevel converters, wind
Instrum. Meas., vol. 56, no. 6, pp. 2470–2477, Dec. 2007. energy, and power quality.
ROBLES et al.: GRID VOLTAGE SEQUENCE DETECTOR FOR DISTRIBUTED GENERATION SYSTEMS 4287
José Luis Martín (M’98) received the M.S. and Pedro Ibañez (M’04) was born in Bilbao, Spain,
Ph.D. degrees in electrical engineering from the Uni- in 1964. He received the M.Sc. and Ph.D. de-
versity of the Basque Country, Bilbao, Spain, in 1988 grees in electrical engineering from the University
and 1992, respectively. of the Basque Country, Bilbao, in 1988 and 1991,
From 1989 to 1995, he was an Assistant Professor respectively.
in electronic technology with the Department of From 1988 to 1997, he was an Assistant Professor
Electronics and Telecommunications, University of in electronic technology with the Department of
the Basque Country, where he became an Associate Electronics and Telecommunications, University of
Professor in 1995 and the Head of the Department the Basque Country, where he became an Associate
from 1995 to 2001. From 2001 to 2005, he was the Professor in 1997. Since 1992, he has been with
Vice-Dean of the Faculty of Engineering in Bilbao. Tecnalia Research & Innovation, Zamudio, Spain,
He manages the Applied Electronics Research Team of the University of the where he is currently the Technology Director of the Energy Unit. He has
Basque Country. worked in many projects related to electronics systems, digital control systems,
and power converters for energy applications. He has participated in more
than 30 research projects supported by public institutions (including European
Projects) and private companies. He is the author or coauthor of more than 30
technical papers.