Beruflich Dokumente
Kultur Dokumente
AbstractPhase locked loop (PLL) algorithms for grid syn- PLLs with good tradeoff between transient response and
chronization are a very important part of the control in most harmonics/noise cancellation are presented. An interesting
of the grid-connected power converters applications. The perfor- novelty of this paper, is the use of notch lters inside the loop
mance of the PLL should not be much affected under distorted
grid conditions: the presence of harmonics, unbalance, noise, etc to cancel second harmonic components. As shown below, this
in the inputs should not distort PLL measurements. This paper proposal is very useful both for single-phase and three-phase
presents an optimized design approach of PLLs, both for single- PLLs. Single-phase PLLs generate a high second harmonic
phase and three-phase systems. in the phase-detector output (multiplier) [9], [10]; the notch
The loop lter of the PLL sets its dynamic response; the lter cancels it in an effective way. The problem of second
loop lter should be tuned in order to achieve a correct trade-
off between transient response and harmonics/noise cancellation. harmonic generation in three-phase PLLs appears when the
This paper proposes the use of notch lters inside the loop in input voltages are unbalanced [8]. The notch lter frequency
order to optimize the PLL performance; this approach is suitable response should be taken into account; the open loop fre-
both for single-phase and three-phase PLLs. quency response should have a cut-off frequency smaller than
Another novel interesting proposal of this paper is the im- the notch frequency. The use of a notch lter inside the loop
plementation of the Digitally Controlled Oscillator (DCO): the
digital model of a sinusoidal oscillator is implemented, instead is compared with the use of moving average FIR lters inside
trigonometric functions. This reduces the needed digital resources the loop proposed in different works [9], [10], [13].
without reducing the performance. This approach is specially Another interesting proposal of this paper is the implemen-
useful for DSP-based control of power converters. tation of the digital oscillator without implementing explicitly
The proposed PLLs have been implemented and tested in a trigonometric functions: the input of the Digitally Controlled
xed point DSP (TI TMS320LF2407) and also in a oating point
microprocessor (PowerPC of the dSpace DS1103). The systems
Oscillator (DCO) the PLL output frequency; a digital oscillator
have been tested with different distorted inputs in order to check derived from an analog RC one is used [14]. The oscillation
the validity of the design approaches and good results have been conditions are imposed by means of the Barkhausen criteria.
obtained. Under the point of view of xed point digital implementation
(DSP, FPGA, ...) this is a good solution in terms of resource
I. I NTRODUCTION consumption and design simplicity.
Synchronization is one of the most important issues in The performance of the proposed PLLs is proved with
the control of power electronics equipment connected to the experimental results. The systems have been implemented into
grid. Most of the power converters control algorithms use the a xed point DSP and in oating point microprocessor. For
phase measurement of the grid fundamental component. The the experimental tests, some different input waves have been
quicker and more accurate this measurement is, the better the programed in the inputs. Tests include input waves with noise,
generation of reference signals results, and therefore a more unbalance, high harmonics and notching.
efcient the control is achieved. Examples of applications
where synchronization is essential are found in the elds of II. PLL BASICS : T HE LPLL
active power lters [1], [2], power factor control [3], [4], A PLL is a non-linear circuit which synchronizes its output
wind power generation [5], Flexible AC transmission systems signal (vo ) with a reference or input signal (vi ) in frequency
(FACTS) [6], etc. as well as in phase.
Phase Locked Loops (PLLs) tracking the phase of the fun- The PLL scheme is composed by the three basic functional
damental component of grid voltages are the most widespread blocks shown in Fig. 1(a): the phase detector (PD), the loop
synchronization algorithms both for single-phase and three- lter (LF) and the voltage controlled oscillator (VCO). Fig
phase systems [7][12]. PLLs are implemented inside a higher 1(b) shows the model of the linear PLL (LPLL) avalaible as
level control; they should be designed with the goals of having a purely analog device since 1965 [15]. The VCO generates a
a good performance and not being excessively resource- signal of frequency o , from its nominal frequency (n ) and
consuming. This paper presents a PLL design method for an the correction voltage (vc ). When a PI lter is used as LF,
optimized digital implementation; the approach is made both the LPLL achieves zero steady-state error even after a phase
for single-phase and three-phase systems. step or a frequency step in the reference input [15].
k,(((
The input signal of equation (1) is considered to analyze vi ve
Phase Loop
the LPLL dynamics: Detector Filter
vo
Voltage
vi = 1 sin(i t + i ) + f (3i , 5i , 7i , ...) p.u. (1) Controlled
vc
Oscillator
As shown, p.u. units are employed; the fundamental Zo Zn Kvc
component amplitude should be normalized to 1 p.u. and odd
harmonic components are also considered. The wave at the (a) Block diagram of a PLL.
PD output is:
PD VCO
vi ( p.u.) Loop Filter
PI
X + + Zn
1 Filter
vi cos(o t + o ) = sin(i t + i o t o )+
2
F eedback wave (2) Zo t T o S
1
cos(u) Zo
+ sin(i t + i + o t + o ) + f (2i , 4i , 6i , ...)
2 sin(u)
S
The LPLL can be linearized, assuming that the PLL is
(b) Linear PLL (LPLL).
locked in steady-state ; under such a situation i = o and
i 1 [15], so: PD Te
VCO (DCO)
Zi t T i
+-
Loop + + Zn
Filter
1
vi cos(o t + o ) sin(i o ) +
2 Zo t T o S
Zo
1
i o =e
(3) S
+ sin(2i t + 2i ) + f (2i , 4i , 6i , ...)
2
Other harmonics (c) Linear model of a PLL.
Generated second harmonic
Equation (3) shows that in steady-state the wave has a small Fig. 1. Basic conceptual models of PLLs.
dc signal with the phase error information (e ), a high second
harmonic and other even harmonic components. The LF is a
low pass lter, which should be tuned to control e and cancel devices offer more exibility in the design of the control
harmonic components so the LPLL is equivalent to the linear of power converters. In the next subsections, some different
system depicted in Fig. 1(c). techniques for taking advantage of digital implementation
The open loop transfer function of the PLL linear model are presented. The approach is presented both for a single-
should be analyzed in order to study its dynamics. The phase PLL and for the most popular three-phase PLL, the
frequency response gives information about the attenuation dq-PLL rstly proposed in [16]. The study is presented for a
at harmonic components. The stability margins should also sampling frequency (fs ) of 10 kHz; the extension to other fs
be checked. It is clear from Fig. 1(c) that the LPLL dynamics is immediate. The employed n has been 250 rad/s.
depends on the LF; the main feature of the LF is its bandwidth
(BW). High BW lters give rise to faster PLLs, but their A. Notch Filters inside the Loop
outputs are more affected by noise and harmonics. Low BW Fig. 2 shows the proposed single-phase PLL; as the system
PLLs are slower but its outputs are better ltered. However, as is digital, a DCO block replaces the VCO one.
proved in [15], a very low BW PLL behaves badly in the case As seen in eqs. (2) and (3) a very high second harmonic is
of noisy signals because the PLL gets unlocked. Therefore, generated in the multiplier of the PD. On the other hand, it is
there is a tradeoff between speed and harmonics/noise ltering. important to note that the nominal grid frequency is very small
As said, the PLL should be tuned in p.u. units being 1 p.u. compared with typical frequencies of other PLL applications
the nominal amplitude. PLLs are non-linear systems and, when such as radio communications. This complicates the design of
the input amplitude is shifted from nominal (sag/swell) the single-phase PLL because, if only a PI lter is used, the BW
system works in a different point from the one what it has been should be reduced very much to have a good second harmonic
tuned [9], [10]. Therefore, it is recommended to congure the cancellation. This has led to develop more complex structures,
PLL with wide stability margins, specially on systems working e.g. [9], [10], [17]. A simpler technique is proposed in this
with grid faults. paper: the use of a notch lter whose notch frequency is twice
the nominal grid frequency; this notch lter is not be very
III. D IGITAL D ESIGN OF PLL S selective to work correctly for a wide range of frequencies.
As said, PLLs have been widely implemented with analog The linearized process of this PLL is the same that the LPLL
ICs. However, the nowadays trend is the use of modern digital one; the open loop transfer function of the equivalent linear
devices such as DSPs, FPGAs, Micros, etc, since digital PLL is:
k,(((
PD DCO PD
vi ( p.u.) Loop Filter
va ( p.u.)
X Notch 2nd
PI + + Zn vd
Filter
vb ( p.u.)
DCO
cos(u) Zo t T o S
Zo [Tdq] vq Loop
Zn
vc ( p.u.) + +
sin(u)
S
Filter
Zo t T o S
Zo
Fig. 2. Block diagram of the proposed single-phase PLL. S
-50
1
0.8
-100
0.6
Gain
-150
0.4
-200
0
0.2
-45
0 1
Phase (deg)
2
-90 10 10
Frequency (Hz) Notch filter.
-135
FIR filter.
-180
50
Phase (deg)
-225
0 1 2 3 4 0
10 10 10 10 10
Frequency (Hz) -50
-100
Fig. 3. Open loop bode diagram of H(z) (in Hz).
-150
1 2
10 10
Frequency (Hz)
Fig. 5. Frequency response of notch lter (fnotch = 100 Hz) and moving
250z 247.8 0.972z 2 1.9402z + 0.972 0.0001 average FIR lter (f1F IR = 100 Hz).
H(z) = 2
z1 z 1.9402z + 0.944 z1
P I f ilter N otch f ilter DCO
(4) Again, if the system is considered locked in steady-state the
Fig. 3 shows the open loop frequency response of the linear model is suitable for studying the dynamics [7].
single-phase PLL. As shown, the tradeoff between BW and The dq-PLL does not generate a second harmonic when
harmonics/noise cancellation is very optimized: the problem- the input signals are balanced; this is the main reason of the
atic second harmonic is totally canceled with a high BW dq-PLL success [9]. However, when the set of input voltages
LF. Furthermore, the stability margins, gain margin (GM) and is unbalanced, and therefore negative-sequence component is
phase margin (PM), are wide enough. present, a second harmonic ripple appears in vd and vq [8].
On the other hand, the dq-PLL algorithm is the most popular The presence of other distortion factors such as harmonics,
synchronization algorithm for three-phase systems. The main noise, notching, etc should be taken into account [7], [11].
aim of the dq-PLL is to synchronize with the fundamental Therefore, the LF of equation (4) is also a good choice for
positive-sequence of the input voltages. Fig. 4 shows the block the dq-PLL, specially when the utility voltages are unbalanced
diagram of the dq-PLL; the Park transformation (eqs. (5) and and distorted.
(6)) is obtained from the DCO signals and acts as phase The main advantage of the notch lter with respect to
detector. moving average FIR lters inside the loop [9], [10], [13] lies
in the comparative of their phase versus frequency response:
va
vd even though the FIR lter has better harmonic cancellation, at
= Tdq vb (5) its fundamental frequency (f1F IR ) is 180 deg so the PLL BW
vq
vc must be quite smaller than f1F IR . However, with the notch
lter a cut-off frequency near fnotch can be obtained (Fig. 3).
sin(o t + o ) cos(o t + o )
2 B. DCO implementation by means of an Oscillator Model
Tdq
T
= sin(o t + o 2 3 ) cos(o t + o 2 3 )
3
sin(o t + o + 2 3 )
2
cos(o t + o + 3 ) As shown, the single-phase PLL implement trigonometric
(6) functions to generate the feedback wave (cos(o t + o )) and
The quadrature component (vq ) is controlled within a closed the in-phase wave (sin(o t + o )).
loop so its mean value in steady-state is zero; the direct com- Under the point of view of implementation in a digital
ponent (vd ) average value is the positive-sequence amplitude. device, specially xed point DSPs, this process is quite costly.
k,(((
cos(Zot T o ) Vb Vc Va
0.99 cos(w1ot+q1o)
Vd
Zo
0.99
sin(Zot T o )
0.99
sin(w1ot+q1o)
0.99
- Zo Vq
Reset
S
Zo t T o
Zo S
Fig. 8. Park transformation from the oscillator signals.
Fig. 6. Block diagram of the digital oscillator. Fig. 8 shows the Tdq matrix calculation from the signals of
Fig. 6.
Pole-Zero Map
400 IV. S IMULATION R ESULTS
Pole : 0 + 314i
300 Fig. 9 shows a Matlab script which simulates the single-
200 phase PLL start-up tracking. This script also proves the
Imaginary Axis
k,(((
1 clear all;
3
2 Ts=1e-4; % Sampling time (= 1/fs).
28 % Integration process (digital oscillation) (b) Single-phase PLL start-up simulation with notch lter (ideal
29 Mysin(n+1)=Mysin(n)+wo*Ts*(Mycos(n)); %(Q15) input signal).
30 Mycos(n+1)=Mycos(n)-wo*Ts*(Mysin(n)); %(Q15)
31 % Limit the oscillator integrators 3
Amplitude (p.u.), Phase-angle (rad/s)
32 Mysin(n+1)=max([Mysin(n+1) -0.99]); 2
33 Mysin(n+1)=min([Mysin(n+1) 0.99]);
34 Mycos(n+1)=max([Mycos(n+1) -0.99]); 1
35 Mycos(n+1)=min([Mycos(n+1) 0.99]); 0
36 % Update the output phase (Q12)
37 theta(n+1)=theta(n)+wo*Ts; -1
41 end 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
Time (s)
42 end
43 plot(t,u,t,Mysin,t,theta); % Plot experimental results (c) Single-phase PLL start-up simulation with notch lter (highly
harmonic contaminated input signal).
Fig. 9. Matlab Script of the single-phase PLL.
Fig. 10. Simulation results for single-phase PLL (i = 250.3 rad/s).
k,(((
Zoom
Trigger
(a) Phase measurement for sinusoidal input (b) Phase measurement for real grid voltage. (c) PLL response under a strong fault.
with input frequency of 51 Hz.
(d) dq-PLL steady state phase (e) dq-PLL steady state phase mea- (f) dq-PLL steady state phase mea- (g) dq-PLL steady state phase
measurement for a set of surement of a highly noisy signal surement for an unbalanced and measurement of a signal with deep
unbalanced voltages as input. (fIN = 49.5 Hz). harmonic contaminated input. (5th notches (fIN = 50.8 Hz).
(fin = 50.5 Hz) of 20%, 7th of 10% and 11th of
10%; fin = 50.5 Hz)
[3] A. I. Maswood and F. Liu, A unity-power-factor converter using [10] F. D. Freijedo, J. Doval-Gandoy, O. Lopez, D. Pineiro, C. Martinez-
the synchronous-reference-frame-based hysteresis current control, IEEE Penalver, and A. Nogueiras., Real-time implementation of a SPLL for
Transactions on Industry Applications, vol. 43, no. 2, pp. 593599, Mar./ FACTS. in Proceedings of IECON, 2006.
2007. [11] L. G. B. Barbosa Rolim, D. R. Rodrigues da CostaJr., and M. Are-
[4] B. Wang, G. Venkataramanan, and A. Bendre, Unity power factor des, Analysis and software implementation of a robust synchronizing
control for three-phase three-level rectiers without current sensors, PLL circuit based on the pq theory, IEEE Transactions on Industrial
IEEE Transactions on Industry Applications, vol. 43, no. 5, pp. 1341 Electronics, vol. 53, no. 6, pp. 19191926, Dec. 2006.
1348, Sep./Oct. 2007. [12] P. Rodriguez, J. Pou, J. Bergas, J. I. Candela, R. P. Burgos, and
[5] T. Ahmed, K. Nishida, and M. Nakaoka., A novel stand-alone induction D. Boroyevich, Decoupled double synchronous reference frame PLL
generator system for AC and DC power applications, IEEE Transac- for power converters control, IEEE Transactions on Power Electronics,
tions on Industry Applications, vol. 43, no. 6, pp. 14651474, Nov./Dec. vol. 22, no. 2, pp. 584592, March 2007.
2007. [13] Mathwoks, Power System BlockSet, User Manual., 2000.
[6] H. Akagi, S. Inoue, and T. Yoshii, Control and performance of a [14] G. Gonzalez, Foundations of Oscillator Circuit Design, A. H. Publishers,
transformerless cascade PWM STATCOM with star conguration, IEEE Ed. Artech House Publishers, 2007.
Transactions on Industry Applications, vol. 43, no. 4, pp. 10411049, [15] R. E. Best, Phase Locked Loops. Design, Simulation and Applications.
Jul./Aug. 2007. 4th Edition. McGraw-Hill, 1999.
[7] V. Kaura and V. Blasko., Operation of a phase locked loop system [16] A. Gole, V. K. Sood, and L. Mootoosamy, Validation and analysis of
under distorted utility conditions. IEEE IEEE Transactions on industry a grid control system using d-q-z transformation for static compensator
applications., vol. 33, pp. 5863, 1997. systems, in Proc. Can. Conf. Elect. Comput. Eng., 1989, pp. 745748.
[8] S. K. Chung, Phase-locked loop for grid-connected three phase con- [17] M. Karimi-Ghartemani, H. Karimi, and M. R. Iravani, A
version systems, IEEE Proceedings, Electric Power Applications., vol. magnitude/phase-locked loop system based on estimation of frequency
147, no. 3, pp. 213219, May 2000. and in-phase/quadrature-phase amplitudes, IEEE Transactions on
[9] D. Jovcic, Phase locked loop system for FACTS, IEEE Transactions Industrial Electronics, vol. 51, no. 2, pp. 511517, Apr. 2004.
on Power Systems, vol. 18, no. 3, pp. 11161124, August 2003.
k,(((