Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

10842 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 36, NO.

9, SEPTEMBER 2021

Three-Phase Phase-Locked Loop Algorithms


Based on Sliding Modes
Arnau Dòria-Cerezo , Víctor Repecho , and Domingo Biel

Abstract—This article proposes a family of phase-locked loop PLLs, mainly based on a prefiltering stage to enhance the PLL
schemes based on sliding modes. The use of sliding mode algorithms capabilities. Proposing a new method for this central part of the
ensures fast response and global stability. In particular, two new PLLs is the aim of this article.
algorithms are presented, both based on a complex framework
for representing three-phase signals. This article compares the Conventional PLLs are based on a synchronous reference
obtained algorithms with the traditional schemes, and a faster frame PLL (SRF-PLL) scheme, which includes a phase de-
response is obtained when sliding modes are used. Additionally, as tector, a loop filter (usually a proportional-integral controller),
an application example, the algorithm is combined with a complex- and a voltage controlled oscillator, see details in [2]. Several
coefficient filter that allows an easy identification of both positive alternatives to the SRF-PLL can be found in the literature.
and negative sequence harmonics. The proposed algorithms are
illustrated by numerical simulations and experimentally validated Type-I schemes replace the PI regulator of the SRF-PLL by
using a digital signal processor. a gain with a lag or lag-lead filter, resulting in a single in-
tegrator in the loop [3]. This scheme can be generalized by
Index Terms—Phase locked loops, sliding mode control.
Type-N and quasi-Type-N PLLs [2] (where N is the number
of integrators) and providing better performance, for example
I. INTRODUCTION in presence of frequency drifts. A similar idea can be found
in [4], with the use of generalized integrators. On the other hand,
A. Motivation
the enhanced-PLL (EPLL) consists of both the phase-angle and
HASE-locked loop (PLL) algorithms are widely used for amplitude estimation loops that solve the problem related to a
P signal synchronization, and play a fundamental role in elec-
tric power applications especially in the field of grid-connected
double-frequency ripple [5], presenting several modifications,
such as the pseudolinear EPLL [6] or the generalized filtering
power converters. Several PLL schemes can be found in the EPLL [7], [8]. Other schemes include the generalized delayed
literature for both single-phase and three-phase systems, see the signal cancellation PLL [9], moving average filters (MAFs) [10],
extensive review papers Han et al. [1] and Golestan et al. [2], and delay-based approaches, such as the adaptive cascaded
respectively. This article is restricted to three-phase signals. delayed signal cancellation [11], a Type-2 PLL based on unit
Some problems with PLLs are related to: disturbance rejection delays [12] or the dc-immune-PLL [13] for dc rejection.
capability, improving the dynamic performance (both transient A different approach to obtain the phase information from
and steady-state response), and reducing computational times a signal is the use of observer-based methods. Examples in-
for its implementation using low-cost industrial devices, and clude standard Luenberger observers [14], a frequency-adaptive
many papers investigate on enhancing the PLL algorithms to observer [15], Kalman filters [16], [17], or sliding mode ob-
tackle them. servers [18]. Finally, algebraic methods have been also proposed,
Usually, the PLL schemes have similar structures: a core see examples in [19] or [20] with the main problem of using
algorithm aimed to obtain the phase from a relatively ideal trigonometric functions with high computational costs.
signal, which is used as a building block for many advanced The aforementioned PLL systems can be understood as a
nonlinear low pass filter (LPF). On the one hand, the presence
Manuscript received November 9, 2020; revised January 31, 2021; accepted of the LPF slows down the dynamic response of the PLL. On the
March 1, 2021. Date of publication March 9, 2021; date of current version June other hand, the overall scheme results in a nonlinear dynamics.
1, 2021. This work was supported in part by the Government of Spain through
the Agencia Estatal de Investigación under Project DPI2017-85404-P and in part In many cases, stability analyses are limited to linear approxima-
by the Generalitat de Catalunya under Project 2017 SGR 872. Recommended tions, see an example in [21], this issue being one of the unsolved
for publication by Associate Editor S. Golestan. (Corresponding author: Arnau problems when designing PLLs. See more examples are in [22]
Dòria-Cerezo.)
Arnau Dòria-Cerezo and Domingo Biel are with the Department of Elec- or in the aforementioned paper [2]. To the authors’ knowledge,
trical Engineering and the Institute of Industrial and Control Engineer- nonlinear analysis of the SRF-PLL is restricted to a recent paper
ing, Universitat Politècnica de Catalunya, 08028 Barcelona, Spain (e-mail: that considers the SRF-PLL as a high-gain observer [23], and
arnau.doria@upc.edu; domingo.biel@upc.edu).
Víctor Repecho is with the Institute of Industrial and Control Engineer- boundedness of the trajectories can be ensured if the initial
ing, Universitat Politècnica de Catalunya, 08028 Barcelona, Spain (e-mail: conditions are sufficiently close to the equilibrium point.
victor.repecho.del@upc.edu). To tackle the problems related to stability and convergence
Color versions of one or more figures in this article are available at https:
//doi.org/10.1109/TPEL.2021.3064674. time, this article proposes the use of sliding mode methods.
Digital Object Identifier 10.1109/TPEL.2021.3064674 Sliding modes are a set of control techniques that provide fast

0885-8993 © 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See https://www.ieee.org/publications/rights/index.html for more information.

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.
DÒRIA-CEREZO et al.: THREE-PHASE PHASE-LOCKED LOOP ALGORITHMS BASED ON SLIDING MODES 10843

transient responses and robustness (for example, in terms of dis- 5) Additionally, once the sliding motion is ensured, the pro-
turbance rejection) [24]. As a main drawback, these techniques posed PLL scheme does not imply any dynamics. This
require high-frequency switching actions with large gains that makes the proposed algorithm especially attractive to be
cause the well-known chattering phenomena. Although chatter- combined with other dynamics, such as prefiltering stages,
ing and high frequencies could be a problem when controlling to enhance the phase detection, or using the PLL based
real plants, the PLL algorithm will run in a digital environment, on sliding modes as a part of the control scheme for
for example, a digital signal processor, where small sample time grid-connected converters and synchronization problems.
and high gains are achievable. The use of sliding modes for PLL This article is organized as follows. After a brief introduction
has been proposed in few papers. In [25], the same scheme of a on the transformation from three-phase signals to complex vari-
conventional SRF-PLL is used, but replacing the PI controller by ables in Section II, the main contributions of this article: two
sign function. Sliding modes have been also proposed in PLL PLL algorithms based on complex sliding modes, are presented
schemes in [18] and [26]. In the first paper, Asad et al. [26], in Section III. To illustrate the use of the proposed algorithms in a
sliding modes are used together with a linear observer and finally practical application, they are combined with a prefiltering stage
results in a complicated algorithm for industrial applications. consisting in an adaptive multiple CCF (MCCF) in Section IV.
On the other hand, in [18], the proposed PLL is based on sliding Section V includes the experimental validation. Finally, the
mode observers that provide fast response, but the convergence conclusion is presented in Section VI.
time depends on the remaining dynamics of the observer. With
respect to the aforementioned papers, the objective in this article II. FROM THREE-PHASE TO COMPLEX PLANE
is to design a very simple PLLs scheme (in contrast to Asad TRANSFORMATION
et al. [26]), ensuring global stability (not proved in [25]) and The transformation from three-phase variables to the complex
with finite-time convergence (faster than the asymptotic stability plane is equivalent to the well-known abc to αβ transformation,
achieved in [18]). see more details in [27]. The complex transformation of any
Complex-valued dynamics is a useful tool for representing periodic three-phase signal vabc (t) ∈ R3 consists in
three-phase dynamical systems [27], because it allows reducing
a third-order dynamics into a complex first-order system. This v(t) = T vabc (t) (1)
transformation is equivalent to the αβ framework, commonly where v(t) ∈ C is the complex signal, and T ∈ C is the com- 3
used in the electrical applications. Sliding modes in complex- plex vector
valued systems have been proposed in [28], where it is shown  √ √ 
that faster responses can be achieved when defining a single T = c 1, − 12 + j 23 , − 12 − j 23
complex sliding manifold instead of two real sliding surfaces.
Additionally, complex-coefficient filters (CCFs) allow to make where c = 2/3 to preserve the amplitude in the complex trans-
a distinction between positive and negative sequences when formation on balanced three-phase voltages. Then, v(t) results
analyzing unbalanced three-phase signals [29], and have been in a periodic orbit on the complex plane.
already used for harmonic selection/cancellation in SRF-PLL Transformation (1) is not bijective, and the reconstruction of
schemes [30]. This makes the complex-valued representation vabc (t) from v(t) requires more information. In electrical three-
as an appropriate framework to design PLLs for unbalanced phase systems, this information is the homopolar component,
three-phase signals with high harmonic contents. i.e., the sum of all the components of vabc (t)
v0 (t) = va (t) + vb (t) + vc (t)
B. Contributions and Article Organization where v0 (t) ∈ R.
The aim of this article is to present simple PLL schemes If vabc is a set of balanced three-phase voltages
⎛ ⎞
based on sliding modes. The main difference with respect to cos (ωo t + φ)
the PLL algorithms mentioned earlier is that the nonlinear LPF ⎜  ⎟
vabc = V ⎝cos ωo t − 2π 3 + φ⎠
is replaced by a discontinuous control action to ensure sliding 
motion, and then global stability and fast response. In particular, cos ωo t + 2π3 +φ
it is as follows. where V is the amplitude and ωo is the frequency, the complex
1) In comparison with other phase detector algorithms, such voltage obtained from transformation (1) is
as SRF, EPLL, Type-N, or observer-based schemes, where
v = V ejθ (2)
only small-gain stability is guaranteed, the proposed PLL
ensures global stability for any initial condition. where θ = ωo t + φ is the phase of the three-phase signal.
2) Ensuring the reachability on the sliding manifold, finite-
time and fast response are achieved. III. PLL ALGORITHMS BASED ON SLIDING MODES
3) Contrarily to many other solutions, the voltage amplitude In this section, two sliding-mode-based PLLs are presented.
of the signal does not affect the stability neither the per- Both algorithms follow the scheme shown in Fig. 1 and are based
formance. on the complex switching function defined by
4) Easy tuning procedure: in the presented PLLs, only one
(or two) parameter need to be adjusted. σ = V̂ − ve−j θ̂ (3)

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.
10844 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 36, NO. 9, SEPTEMBER 2021

Fig. 1. Scheme of the sliding-mode-based PLL (SMPLL and cSMPLL).

where V̂ and θ̂ ∈ R are the estimation of the voltage amplitude


and phase of (2), respectively. The real and imaginary parts of
(3) can be written separately as Fig. 2. Phase portrait for σI with regions A, B, and C for n = 0. Dotted
and circled points on σI = 0 correspond to attractive and repulsive points,
σR = V̂ − V cos(θ − θ̂) (4a) respectively. Arrows in σI indicate the trajectories.

σI = − V sin(θ − θ̂). (4b)


π
Note that Region B : (2n − 1)π < θ − θ̂ < (4n − 1) (9b)
2
θ̂ = θ (5a) π
Region C : (4n + 1) < θ − θ̂ < (2n + 1)π (9c)
2
V̂ = V (5b)
where n ∈ Z. See, in Fig. 2, the defined regions for n = 0.
is a solution of σ = σR + jσI = 0. 1) Sliding modes in Region A: Differentiating (4b) and using
(6b)–(7b), one have
A. PLL Based on Sliding Modes (SMPLL)
σ̇I σI = −σI V cos(θ − θ̂) (ω + kI sign(σI )) .
Based on (5), the next step is to propose a control system
where the control goal is to reach (and remain) in σ = 0 (see Since V > 0, with (8b) and (9a), one gets σI σ̇I < 0 and
Fig. 1). For simplicity, the plant dynamics is chosen as a pure sliding modes on
complex integrator of the complex control input u = uR + juI ,
where the outputs correspond to the estimated amplitude and θ − θ̂ = 2nπ
phase, respectively, i.e.,
or, equivalently (5a), are guaranteed.
˙
V̂ = uR (6a) 2) Moving from Region B to A: Dynamics in (6b) with (7b)
˙
˙ in the interval defined by (9b) results in θ̂ = −kI , and the
θ̂ = uI . (6b) rate
According to the dynamics in (6) and the complex switching ˙
θ̇ − θ̂ = ω + kI > 0
function (3), the following control law is designed to indepen-
dently reach σR = 0 and σI = 0: where (8b) is used. Then, trajectories in Region B move
to Region A.
uR = − kR sign(σR ) (7a)
3) Moving from Region C to A: Similarly, in the interval
uI = − kI sign(σI ). (7b) defined by (9c), trajectories in Region C move to Region
A.
Proposition 1: The sliding mode PLL (SMPLL) in Fig. 1 Fig. 2 summarizes this part of the proof.
with the dynamics and control functions defined in (6) and (7), Part II: Sliding Motion on the Real Axis: Differentiating (4a)
respectively, guarantees the convergence of (θ̂, V̂ ) to (θ, V ) if and using (6) yield
conditions
 
kR > 0 (8a) σR σ̇R = uR + V (ω − uI ) sin(θ − θ̂) σR .

kI > |ω| (8b) Since sliding motion on the imaginary axis has been proved, uI
takes the equivalent control value, uI,eq = ω, and θ − θ̂ = 2nπ.
are fulfilled.
Then, using (7a), the latter simplifies into
Proof: The proof has two parts.
Part I: Sliding Motion on the Imaginary Axis: Let us split the σ̇R σR = −kR σR sign(σR ) < 0
switching function σI in three regions
π π and sliding modes on σR = 0 are guaranteed since σR σ̇R < 0,
Region A : (4n − 1) < θ − θ̂ < (4n + 1) (9a) if (8a) is verified. 
2 2

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.
DÒRIA-CEREZO et al.: THREE-PHASE PHASE-LOCKED LOOP ALGORITHMS BASED ON SLIDING MODES 10845

B. PLL Based on Complex Sliding Modes (cSMPLL) and, finally, with (11) and denoting the argument of σ as φ, one
gets
Alternatively, another design can be obtained based on the

complex sliding modes proposed in [28]. Using the scheme in ∗ σ j(θ−θ̂)
Ẇ = Re σ −k − jωV e
Fig. 1, let us consider the complex-valued dynamics |σ|
 
v̂˙ = uej θ̂ (10) = |σ|Re −k − jωV ej(θ−θ̂−φ)
where v̂ = V̂ ej θ̂ is the estimated complex voltage, and let us  
define the complex switching action as = − |σ|Re k − ωV sin(θ − θ̂ − φ)
σ
u = −k (11) ≤ − (k − ωV ) |σ| (15)
|σ|
where σ is the complex switching function defined in (3), and that ensures Ẇ < 0 by condition (12), and convergence to σ = 0
the real gain k fulfills is guaranteed.
The finite-time convergence is proved as follows. From (15)
k − |ω|V > > 0. (12) with (12), we can write
Note that the dynamics in (10) is equivalent to
Ẇ < − |σ|
˙ ˙ √
V̂ + j θ̂V̂ = u 1
= − 2 W 2
that, using u = uR + juI , can be split in the real and imaginary
and it follows that W (t) = 0 for t − t0 > T , with (14). 
dynamics
˙
V̂ = uR (13a) C. Comparison Between the Two SMPLL Approaches

˙ 1 The SMPLL algorithm shown in Fig. 1 admits two alterna-


θ̂ = uI . (13b) tives: the one in Section III-A, defining separately two slid-

ing surfaces, which results in using (6) and (7), or the com-
Then, (13) is similar to (6), but dividing by V̂ in (13b). This plex approach obtained in Section III-B that results in (10)
reminds of the amplitude normalization scheme often proposed and (11). Both algorithms are compared, in simulations using
for the SRF-PLL [31]. MATLAB/Simulink, with a 1-V 50-Hz three-phase voltage,
Proposition 2: The complex SMPLL (cSMPLL) in Fig. 1 the initial conditions of the PLL algorithms being θ̂(0) = 0,
with the dynamics and control functions defined in (10) and (11), V̂ (0) = 0.01
√ V, and the gains have been set to kR = kI = 3 · 103
respectively, guarantees the convergence of (θ̂, V̂ ) to (θ, V ) if 3
and k = 3 2 · 10 . Note that kR , kI , and k are chosen such that
condition (12) is fulfilled. Additionally, the convergence to (5) the control law (11) generalizes (7), see details in [28]. Equations
is guaranteed in finite time, and the reaching time is bounded by (7) are approximated by a hysteresis function with a band of

2 = 10−2 , and (11) is implemented with a complex hysteresis
T = W (t0 ) (14) with a radius of = 10−2 (see again Dòria-Cerezo et al. [28]).

Finally, the estimated voltage frequency ω̂ is obtained by passing
where t0 is the initial time. ˙
Proof: As suggested in [28], let use the Lyapunov function θ̂ through a first-order filter with a cutoff frequency of 100 Hz.
candidate1 Fig. 3 shows the response of the PLLs based on sliding modes.
1 In both cases, the phase and amplitude are reached after a
W = σ ∗ σ. short transient time, around 0.5 ms. Note that different from
2
the SMPLL, when the cSMPLL is used, the real and imaginary
Calculating its time derivative and using the complex switching
components of σ = 0 are reached at the same time, resulting in
function (3) and the dynamics defined in (10), one have
     a faster response. See details of the transient response in Fig. 4.
˙ ˙
Ẇ = Re (σ ∗ σ̇) = Re σ ∗ V̂ − j ω − θ̂ V ej(θ−θ̂) . Also, thanks to the small hysteresis band, chattering phenomena
can be neglected.
Then, using (3) The obtained responses are very close. The main differences
 are as follows:
uI
Ẇ = Re σ ∗ uR + j (V̂ − σ) − jωV ej(θ−θ̂) 1) with the same gains, the cSMPLL is faster than the SM-

 PLL; but
uI 2) the cSMPLL dynamics is more complicated and, as
= Re σ ∗ u − j σ − jωV ej(θ−θ̂)
V̂ pointed out when written as in (13), has an implicit ad-
  ditional division, see differences between (6b) and (13b).
uI 2 ∗ j(θ−θ̂)
= Re −j |σ| + σ u − jωV e
V̂ IV. APPLICATION EXAMPLE: CSMPLL WITH COMPLEX
  
= Re σ ∗ u − jωV ej(θ−θ̂) COEFFICIENT FILTERS
In the previous section, the two PLL algorithms based on
1 (·)∗ denotes the complex conjugate of (·). sliding modes were presented. It was shown that the cSMPLL

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.
10846 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 36, NO. 9, SEPTEMBER 2021

Fig. 5. Scheme of the cSMPLL with a CCF.

signal cancellation, or second-order generalized integrator algo-


rithms, see an extensive comparison among different methods
in [22]. One alternative is the use of CCFs before the PLL input.
The main feature of the CCFs is that they directly distinguish
between positive and negative sequences [29], which make
them especially interesting for unbalanced signals. The transfer
function of a first-order CCF is
γ
GCCF (s) = (16)
Fig. 3. Simulation results: Comparison between the SMPLL and the complex s − jω1 + γ
approach, cSMPLL. (a) Three-phase voltage signal vabc . (b) Real and imaginary
parts of the complex switching function σ. (c) Estimated voltage amplitude V̂ . where ω1 is the fundamental frequency and γ is the cutoff
(d) Estimated voltage frequency fˆ = ω̂/2π. (e) Estimated voltage phase θ̂. In frequency that defines the bandwidth of the filter.
plots (b)–(e), red corresponds to the SMPLL and blue to cSMPLL. The differential form of (16) is
ż = (jω1 − γ)z + γv. (17)
In many applications, the frequency is varying and the CCF
needs to be adapted to the new frequency values. To this end,
an adaptive version of the cSMPLL-CCF scheme is proposed in
Fig. 5, where the value of the estimated frequency is obtained
by using an LPF for the uI /V̂ signal.
Using the frequency estimation of cSMPLL in (17), the dy-
namics can be written as
ż = (j ω̂1 − γ)z + γv (18a)
1
τ ω̂˙ 1 = − ω̂1 + uI (18b)

where τ is the inverse of the cutoff frequency of the LPF. If the
SMPLL is used instead of cSMPLL, (18b) becomes
τ ω̂˙ 1 = −ω̂1 + uI .
Fig. 4. Simulation results: zoom of the comparison between the SMPLL and
cSMPLL algorithms. (a) Real and imaginary parts of the complex switching Fig. 6 shows the comparison between the cSMPLL and the
function σ. (b) Estimated voltage amplitude V̂ . (c) Estimated voltage phase θ̂. cSMPLL-CCF. For this simulation test, the three-phase voltage
Red plots correspond to the SMPLL and blue plots to cSMPLL.
is 1 V 50 Hz containing white noise. The cSMPLL parameters
are those of the simulations in Section III, the LPF has a cutoff
frequency of 100 Hz and the damping ratio of the CCF is set
exhibits a better behavior with a faster response. In this section, to 0.707 (which is shown to be the optimal value [29]), which
to show the applicability of the algorithm, the cSMPLL is results in γ = 0.707 · 2π50. During this test, after 10 ms, the
merged with complex adaptive filters in order to improve the frequency suddenly changes up to 75 Hz. Note that thanks to the
performance in case of distorted signals. adaptive law, the CCF rejects the noise and the estimated values
from the cSMPLL-CCF are less noisy than the obtained directly
from the cSMPLL. As a counterpart, the response becomes
A. cSMPLL Complex-Coefficient Filter slower because of the CCF dynamics. Thanks to the quasi-static
Filter capabilities are commonly needed when designing behavior of the cSMPLL (due to the fast response), the error
phase detector algorithms. Several approaches are proposed to behavior for cSMPLL-CCF in Fig. 6(d) coincides with the
remove these components, such as MAFs, notch filters, delayed linearized response from (18), thus revealing that for stability

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.
DÒRIA-CEREZO et al.: THREE-PHASE PHASE-LOCKED LOOP ALGORITHMS BASED ON SLIDING MODES 10847

Fig. 6. Simulation results: Comparison between the cSMPLL and cSMPLL-


CCF approaches. (a) Three-phase voltage signal vabc . (b) Estimated voltage
frequency fˆ = ω̂/2π. (c) Estimated voltage phase θ̂. (d) Error of the estimated
voltage phase.

Fig. 7. Simulation results: comparison between the cSMPLL and the SRF-
analysis in other closed-loop applications, the SMPLLs can be PLL.
considered as static functions.
The merge of the adaptive CCF with the cSMPLL can be
used to illustrate the aforementioned stability properties of the Then, we can conclude that, at equal conditions, the cSMPLL
SMPLLs with respect to a standard method, such as the SRF- improves the behavior with respect to the SRF-PLL.
PLL. The comparison is done in a simulation environment, using
the same signal before, a 1 V 50 Hz three phase-voltage, and
B. cSMPLL Multiple CCF
consists in the following steps.
1) The first step is aimed to adjust the gains of the two When three-phase signals content higher harmonics, the per-
strategies (without the CCF) to have the same settling time formance of the PLL decays. Reducing the loop bandwidth
for the worst initial conditions,
√ i.e., θ(0) = π/2 rad. The of the PLL alleviates the harmonic content, but with the cost
obtained gains are k = 3 2 · 103 , for the cSMPLL, and of increasing the transient settling time. An alternative is to
kp = 8000, ki = 3.5 · 106 , for the SRF-PLL. The result- remove other frequencies than the fundamental one. The MCCF
ing dynamics is shown in Fig. 7(a) and zoomed in Fig. 7(b). is composed by a set of CCF modules that extracts information
Note that the phase in both schemes reaches its actual value of the harmonic components [29] and allows selective harmonic
in approximately the same time, around 0.5 ms. Roughly cancellation [30]. The scheme of the MCCF is depicted in
speaking, the two strategies are equally adjusted and ready Fig. 8, where ω1 is the fundamental angular frequency and
for a fair comparison H = {1, h2 , . . . , hn } ∈ Zn is the set of harmonics considered
2) The second step consists in merging the adaptive CCF, as in the filter. The stability for any positive γk values is proved
shown in Fig. 5 (and equivalently for the SRF-PLL). Note in [32].
that the estimation of the frequency ω̂ is now feedback The MCCF algorithm is connected to the cSMPLL, as shown
to the adaptive CCF, thus the dynamics of the PLL is in Fig. 9. Optionally, if one wants to extract phase and am-
now affecting the CCF dynamics. The obtained behaviors plitude for each harmonic, additional cSMPLL blocks could be
are shown in Fig. 7(c). The response with the SRF-PLL included. In the case of unknown or varying frequency, the value
turns to be unstable (in red), but the response of the of ω1 should be fed back from cSMPLL-1 by means of a LPF.
cSMPLL remains stable (in blue). This behavior is thanks The proposed cSMPLL-MCCF algorithm is tested as a har-
to the global stability proof and the sliding motion, which monic extractor using the full scheme proposed in Fig. 9
ensures the cSMPLL behaving as a quasi-static element. with a cSMPLL for each harmonic. This test has been nu-
3) A third step can be done by searching the SRF-PLL gains merically performed to easily view all the reconstructed sig-
that ensure stability when combined with the adaptive nals. The tests consist on a three-phase voltage signal 1 V
CCF. These values are found at kp = 800 and ki = 1.765 · 50 Hz, and three harmonics components are included: nega-
105 (the ones used in Section V-A). Fig. 7(d) shows that the tive sequence, fifth harmonic, and seventh harmonic, all with
response of the scheme with SRF-PLL (red) is now stable 0.2-V amplitude at t = 20, 70, and 120 ms, respectively.
but is much oscillating and slower than the one obtained Fig. 10 shows the three-phase voltages, and the reconstruction
with the cSMPLL. of each complex (or αβ) voltages, the phase, and the amplitude

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.
10848 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 36, NO. 9, SEPTEMBER 2021

Fig. 8. Scheme of the MCCF.

Fig. 10. Simulation results: the cSMPLL-MCCF algorithm as a harmonic


extractor. (a) Three-phase voltage signal, vabc (t). (b)–(e) Complex harmonic
voltages (z1 , z−1 , z5 , z7 ) obtained from the MCCF (in yellow), with the ampli-
tudes (in black) and phases (in blue) generated by each cSMPLL. For an easy
visualization, phase signals are rescaled with the amplitude of each harmonic.

the first test consists in the comparison of the SMPLLs with


respect to a standard PLL, such as the SRF-PLL, whereas the
second test propose testing the cSMPLL-MCCF scheme.

A. Test 1: SMPLLs Versus SRF-PLL


Fig. 9. Scheme of the cSMPLL with the MCCF. Blocks in the shadowed area
are optional for extracting information of harmonic components. The SMPLL and cSMPLL algorithms shown in Fig. 1 with (7)
and (11), respectively, are compared with the standard SRF-PLL
algorithm. The three-phase signals have 1 V amplitude and
corresponding to each harmonic. After each change, the 50 Hz fundamental frequency. The gains of the PLLs based on
algorithm is able to extract the information of the harmonics sliding modes are those used in Section III-C. The PI gains of
in, approximately, 20 ms. the SRF-PLL have been set to kp = 800 and ki = 1.765 · 105
to achieve a fast response but ensuring stability when the
PLL is combined with the filter stage proposed in Section IV.
V. EXPERIMENTAL VALIDATION
More details about the gains adjustment of the SRF-PLL in
The presented schemes have been digitally implemented Section IV-A.
in a hardware-in-the-loop (HIL) platform using the Typhoon Fig. 11 shows the comparison when starting the SMPLL,
HIL402 device and the F28379 microcontroller from Texas cSMPLL, and SRF-PLL algorithms. As expected, the phase
Instruments, often used for the control of power converters. synchronization of SMPLL and cSMPLL algorithms is similar
The HIL platform has been used to generate the three-phase to the ones obtained in simulations, and faster in comparison to
signals with the corresponding voltage sags, phase jumps, and the SRF-PLL (the red signal). In particular, with the cSMPLL,
the harmonic content. All the algorithms have been programmed the actual phase value is reached in 0.54 ms, the SMPLL requires
using the MATLAB/Simulink code generation tool configured 0.72 ms, and the SRF-PLL takes more than 5 ms.
to optimize the execution time in the F28379. The sampling Fig. 12 shows the phase portrait of the real and imaginary
frequency executing the algorithms has been set to 200 kHz. parts of σ during the starting behavior. It can be observed that
All signals have been measured using the digital to analog when using the SMPLL and the cSMPLL, the switching function
converter (DAC) channels from the microcontroller. Two tests remains in the square defined by the hysteresis band (see the
are proposed to validate the implementation in a microcontroller: left plot) or in the ball of radius (right plot), respectively.

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.
DÒRIA-CEREZO et al.: THREE-PHASE PHASE-LOCKED LOOP ALGORITHMS BASED ON SLIDING MODES 10849

Fig. 13. Experimental results: Comparison in the face of a phase jump lagging
45◦ and 60 ms later, a change of frequency from 75 to 50 Hz. SRF-PLL (CH2,
red), SMPLL (CH3, green), and cSMPLL (CH4, orange).
Fig. 11. Experimental results: Comparison of the starting behavior. (Top)
va (t) voltage (CH1, blue), (bottom) estimated phase θ̂: SRF-PLL (CH2, red),
SMPLL (CH3, green), and cSMPLL (CH4, orange).

Fig. 12. Experimental results: xy plot from the oscilloscope to represent the Fig. 14. Experimental results: behavior of the cSMPLL-MCCF when the
phase portrait of σR , σI for the SMPLL (left) and cSMPLL (right). three-phase voltage is affected by the fifth and the seventh harmonic (with
0.1-V amplitude each). Three-phase voltages vabc (t) (CH1, CH2, CH3) and
the estimated phase θ̂ (CH4, orange).
Dòria-Cerezo et al. [28] posed a further discussion about these
phenomena.
In the experiment shown in Fig. 13, the three algorithms
Fig. 14 shows the behavior of the algorithm when the har-
(SMPLL, cSMPLL, and SRF-PLL) are compared in the face of
monics suddenly appear in the three-phase voltage. Thanks to
a phase jump lagging 45◦ and 60 ms later, a change of frequency
the combination of the cSMPLL with the MCCF, the phase
from 75 to 50 Hz. Similarly to the starting behavior, both
remains tracked by the PLL scheme without oscillations due
the SMPLL and the cSMPLL are considerably faster than the
to the harmonics.
conventional SRF-PLL, especially when a phase jump occurs.
Fig. 15 shows the response of the algorithm when the phase
The execution time with the used microcontroller is the same
jumps 45◦ (lagging and then leading). The estimated phase is
for both SMPLL and cSMPLL schemes: 890 ns. This corre-
recovered in less than one cycle. With respect to the previous
sponds to 17.8% of the sampling time and the remaining time
experiments in Section V-A, the phase estimation became slower
is available for including additional features to the PLL, such as
because of the dynamics of the MCCF. Also, in steady state,
the filtering stage proposed in Section IV.
the harmonic content is rejected by the MCCF and the phase
estimation does not oscillate.
B. Test 2: cSMPLL-MCCF Validation The response in the face of a frequency change is shown in
The cSMPLL-MCCF scheme shown in Fig. 9 has been im- Fig. 16. Similarly to the previous phase shift case, the algorithm
plemented in the microcontroller. The three-phase signal is now smoothly recovers the actual phase value in less than one cycle.
1 V 50 Hz, including the fifth and seventh harmonic components In Fig. 17, the response when unbalanced sag occurs is shown
(with 0.1 V amplitude each). Four tests have been carried out with a fast response, around half cycle. Note that negative
with the cSMPLL-MCCF algorithm: harmonic response, a phase sequence harmonics appear because unbalanced voltages are
jump, a frequency change, and a partial voltage sag. almost instantaneously rejected by the MCCF.

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.
10850 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 36, NO. 9, SEPTEMBER 2021

The execution time of the overall cSMPLL-MCCF algorithm


is 1255 ns, which corresponds to 25.1% of the sampling time
when working at 200 kHz.

VI. CONCLUSION
In this article, two PLL algorithms based on sliding modes
have been proposed. The main features of the presented scheme
are as follows.
1) Global Stability: Despite other PLL algorithms, the pro-
posed methods are globally stable. This allows to set any
initial condition and high gains without stability problems.
2) Finite-Time Convergence: The SMPLL and the cSMPLL
algorithms exhibit finite-time convergence, instead of the
Fig. 15. Experimental results: behavior of the cSMPLL-MCCF in the face of
a phase jump, lagging 45◦ , and after 60 ms, leading 45◦ . Three-phase voltages asymptotic one obtained in the traditional algorithms.
vabc (t) (CH1, CH2, CH3) and the estimated phase θ̂ (CH4, orange). Zoom 1 3) Easy Implementation: The PLLs based on sliding modes
(bottom left): behavior when the phase lags 45◦ . Zoom 2 (bottom right): behavior are easily implementable by using simple sign functions.
when the phase leads 45◦ .
4) Thanks to 1) and 2), the SMPLL and cSMPLL algorithms
are interesting candidates for combining with prefiltering
stages (for example, with the use of CCF and MCCF).
The proposed algorithms have been experimentally vali-
dated, including: the comparison with the traditional SRF-PLL
and the use of the cSMPLL combined with the MCCF. Fu-
ture works include the use of the proposed schemes for syn-
chronization problems of power converters connected to the
grid.

REFERENCES
[1] Y. Han, M. Luo, X. Zhao, J. M. Guerrero, and L. Xu, “Comparative per-
formance evaluation of orthogonal-signal-generators-based single-phase
PLL algorithms—A survey,” IEEE Trans. Power Electron., vol. 31, no. 5,
pp. 3932–3944, May 2016.
[2] S. Golestan, J. M. Guerrero, and J. C. Vasquez, “Three-phase PLLs: A
Fig. 16. Experimental results: behavior of the cSMPLL-MCCF in the face of review of recent advances,” IEEE Trans. Power Electron., vol. 32, no. 3,
a frequency change from 50 to 75 Hz for 60 ms. Three-phase voltages vabc (t) pp. 1894–1907, Mar. 2017.
[3] F. M. Gardner, Phaselock Techniques, 3rd ed. Hoboken, NJ, USA: Wiley,
(CH1, CH2, CH3) and the estimated phase θ̂ (CH4, orange). Zoom 1 (bottom 2005.
left): behavior when the frequency ups to 75 Hz. Zoom 2 (bottom right): behavior [4] B. Guo, S. Bacha, M. Alamir, A. Hably, and C. Boudinet, “Generalized
when the frequency drops back to 50 Hz. integrator-extended state observer with applications to grid-connected
converters in the presence of disturbances,” IEEE Trans. Control Syst.
Technol., vol. 29, no. 2, pp. 744–755, Mar. 2021.
[5] M. Karimi-Ghartemani and M. Iravani, “A nonlinear adaptive filter for on-
line signal analysis in power systems: Applications,” IEEE Trans. Power
Del., vol. 17, no. 2, pp. 617–622, Apr. 2002.
[6] M. Karimi-Ghartemani, “Linear and pseudolinear enhanced phased-
locked loop (EPLL) structures,” IEEE Trans. Ind. Electron., vol. 61, no. 3,
pp. 1464–1474, Mar. 2014.
[7] C. Buccella, C. Cecati, E. D. Santis, and H. A. Khalid, “Experimental ver-
ification of GEPLL architecture performance for grid connected inverter,”
in Proc. 42th IEEE Annu. Conf. Ind. Electron. Soc., 2016, pp. 2283–2288.
[8] S. Gude and C.-C. Chu, “Dynamic performance improvement of multiple
delayed signal cancelation filters based three-phase enhanced-PLL,” IEEE
Trans. Ind. Appl., vol. 54, no. 5, pp. 5293–5305, Sep./Oct. 2018.
[9] D. S. S. Andrade, Y. N. Batista, F. A. S. Neves, and H. E. P. de Souza,
“Fast phase angle jump estimation to improve the convergence time of the
GDSC-PLL,” IEEE Trans. Ind. Electron., vol. 67, no. 4, pp. 2852–2862,
Apr. 2020.
[10] S. Golestan, M. Ramezani, J. Guerrero, F. Freijedo, and M. Monfared,
“Moving average filter based phase-locked loops: Performance analysis
Fig. 17. Experimental results: behavior of the cSMPLL-MCCF in the face and design guidelines,” IEEE Trans. Power Electron., vol. 29, no. 6,
of an unbalanced voltage sag for 60 ms, where voltage amplitudes of phases a pp. 2750–2763, Jun. 2014.
and b drop to 0 and 0.25 V. Three-phase voltages vabc (t) (CH1, CH2, CH3) [11] S. Reza, F. Sadeque, M. M. Hossain, A. M. Y. M. Ghias, and V. G.
and the estimated phase θ̂ (CH4, orange). Zoom 1 (bottom left): behavior when Agelidis, “Three-phase PLL for grid-connected power converters under
the voltage sag occurs. Zoom 2 (bottom right): behavior when the voltages are both amplitude and phase unbalanced conditions,” IEEE Trans. Ind. Elec-
recovered. tron., vol. 66, no. 11, pp. 8881–8891, Nov. 2019.

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.
DÒRIA-CEREZO et al.: THREE-PHASE PHASE-LOCKED LOOP ALGORITHMS BASED ON SLIDING MODES 10851

[12] H. A. Hamed and M. S. E. Moursi, “A new type-2 PLL based on unit delay [31] V. Kaura and V. Blasco, “Operation of a phase locked loop system
phase angle error compensation during the frequency ramp,” IEEE Trans. under distorted utility conditions,” IEEE Trans. Ind. Appl., vol. 33, no. 1,
Power Syst., vol. 34, no. 4, pp. 3289–3293, Jul. 2019. pp. 58–63, Jan./Feb. 1997.
[13] S. Golestan, J. M. Guerrero, and J. C. Vasquez, “DC-offset rejection [32] F. M. Serra, A. Dòria-Cerezo, and M. Bodson, “Multiple reference
in phase-locked loops: A novel approach,” IEEE Trans. Ind. Electron., complex-based control for power converters under distorted and un-
vol. 63, no. 8, pp. 4942–4946, Aug. 2016. balanced conditions,” IEEE Trans. Power Electron., submitted for
[14] Z. Dai, Z. Zhang, Y. Yang, F. Blaabjerg, X. Yao, and J. Zhang, “A publication.
Luenberger observer-based phase locked loop for single-phase systems
t under harmonic disturbances,” Int. J. Elect. Power Energy Syst., vol. 116,
2020, Art. no. 105528.
[15] Y. Park, H.-S. Kim, and S.-K. Sul, “Frequency-adaptive observer to extract
ac-coupled signals for grid synchronization,” IEEE Trans. Ind. Appl., Arnau Dòria-Cerezo was born in Barcelona, Spain,
vol. 53, no. 1, pp. 273–282, Jan./Feb. 2017. in 1974. He received the M.S. degree in electrome-
[16] W. Namgoong, “A modified proportional-integral loop filter to suppress chanical engineering from the Universitat Politèc-
DCO noise in digital PLL,” IEEE Trans. Circuits Syst. II, vol. 65, no. 8, nica de Catalunya (UPC), Barcelona, Spain, in 2001,
pp. 974–978, Aug. 2018. the DEA degree in industrial automation from the
[17] A. Bagheri, M. Mardaneh, A. Rajaei, and A. Rahideh, “Detection of grid Institut National des Sciences Appliquées de Lyon,
voltage fundamental and harmonic components using Kalman filter and Villeurbanne, France, in 2001, and the Ph.D. degree
generalized averaging method,” IEEE Trans. Ind. Electron., vol. 31, no. 2, in advanced automation and robotics from UPC, in
pp. 1064–1073, Feb. 2016. 2006.
[18] H. Ahmed, S.-A. Amamra, and I. Salgado, “Fast estimation of phase and He is currently an Associate Professor with the
frequency for single-phase grid signal,” IEEE Trans. Ind. Electron., vol. 66, Department of Electrical Engineering, UPC. He car-
no. 8, pp. 6408–6411, Aug. 2019. ries out his research with the research group on Advanced Control of Energy
[19] A. Verma, R. Jarial, P. Roncero-Sánchez, M. Ungarala, and Systems, Institute of Industrial and Control Engineering, UPC. From 2003 to
J. Guerrero, “An improved hybrid prefiltered open-loop algorithm for 2004, he was a Control Training Site-Research Fellow with the Laboratoire
three-phase grid synchronization,” IEEE Trans. Ind. Electron., vol. 68, des Signaux et Systèmes, Supélec, France. In 2010, he was a Visitor with the
no. 3, pp. 2480–2490, Mar. 2021. Technische Universiteit Delft, Delft, The Netherlands. His research interests
[20] A. Bolzoni and R. Perini, “Experimental validation of a novel angular es- include modeling and control of electrical systems and automotive applications.
timator for synthetic inertia support under disturbed network conditions,” Dr. Dòria-Cerezo has been an Associate Editor for the Control Engineering
in Proc. 21st Eur. Conf. Power Electron. Appl., 2019, pp. P.1–P.10. Practice since 2017.
[21] S. Golestan, J. M. Guerrero, and J. C. Vasquez, “Modeling and stability
assessment of single-phase grid synchronization techniques: Linear time-
periodic versus linear time-invariant frameworks,” IEEE Trans. Power
Electron., vol. 34, no. 1, pp. 20–27, Jan. 2019.
[22] S. Golestan, J. M. Guerrero, and G. B. Gharehpetian, “Five approaches
to deal with problem of DC offset in phase-locked loop algorithms: Víctor Repecho received the B.S., M.S., and Ph.D.
Design considerations and performance evaluations,” IEEE Trans. Power degrees in electronic engineering from the Universitat
Electron., vol. 31, no. 1, pp. 648–661, Jan. 2016. Politècnica de Catalunya (UPC), Barcelona, Spain, in
[23] J. G. Rueda-Escobedo, S. Tang, and J. Schiffer, “A performance com- 2006, 2012, and 2018, respectively.
parison of PLL implementations in low-inertia power systems using an Since 2010, he has been a Development Engineer
observer-based framework,” in Proc. IFAC World Congr., 2020. with the Institute of Industrial and Control Engi-
[24] V. I. Utkin, J. Guldner, and J. Shi, Sliding Mode Control in Electro- neering, and since 2019, he has been an Assistant
Mechanical Systems. Boca Raton, FL, USA: CRC Press, 1999. Professor with the Automatic Control Department,
[25] V. F. Pires, G. D. Marques, and D. Sousa, “Phase-locked loop topology UPC. His research interests include digital control,
based on a synchronous reference frame and sliding mode approach for nonlinear control, and control of power electronic
DVR applications,” in Proc. Int. Conf. Comput. Tool, 2011. converters.
[26] M. Asad, A. I. Bhatti, and S. Iqbal, “Digital phase locked loop design using
discrete time sliding mode loop filter,” in Proc. IEEE 9th Int. Conf. Emerg.
Technol., 2013.
[27] L. Harnefors, “Modeling of three-phase dynamic systems using complex
transfer functions and transfer matrices,” IEEE Trans. Ind. Electron., Domingo Biel received the B.S., M.S., and Ph.D.
vol. 54, no. 4, pp. 2239–2248, Aug. 2007. degrees in telecommunications engineering from
[28] A. Dòria-Cerezo, J. M. Olm, D. Biel, and E. Fossas, “Sliding modes of the Universitat Politècnica de Catalunya (UPC),
complex-valued nonlinear systems,” IEEE Trans. Autom. Control, to be Barcelona, Spain, in 1990, 1994, and 1999, respec-
published, doi: 10.1109/TAC.2020.3021396. tively.
[29] X. Guo, W. Wu, and Z. Chen, “Multiple-complex coefficient-filter-based Since 1998, he has been an Associate Profes-
phase-locked loop and synchronization technique for three-phase grid- sor with the Department of Electronic Engineering,
interfaced converters in distributed utility networks,” IEEE Trans. Ind. UPC, where he teaches power electronics and control
Electron., vol. 58, no. 4, pp. 1194–1204, Apr. 2011. theory. He is the coauthor of around 25 papers in inter-
[30] M. Ramezani, S. Golestan, S. Li, and J. M. Guerrero, “A simple approach national journals and more than 70 communications
to enhance the performance of complex-coefficient filter-based PLL in in international conferences. His research interests
grid-connected applications,” IEEE Trans. Ind. Electron., vol. 65, no. 6, include nonlinear control and its application to renewable energy systems and
pp. 5081–5085, Jun. 2018. power electronics.

Authorized licensed use limited to: San Francisco State Univ. Downloaded on June 19,2021 at 08:25:06 UTC from IEEE Xplore. Restrictions apply.

You might also like