<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Intelligent Control for Enhanced Phase-Locked Loop Performance in Grid-Connected Inverters</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Noussaiba Mennai</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ammar Medoued</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Youcef Soufi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Abdallah Faleh</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dept. electrical engineering, LABGET Laboratory, Larbi Tebessi University</institution>
          ,
          <addr-line>Tebessa</addr-line>
          ,
          <country country="DZ">Algeria</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Dept. electrical engineering, LES Laboratory, University of 20</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Dept. electromechanical, University Mohamed El Bachir El Ibrahimi</institution>
          ,
          <addr-line>Bordj Bou Arreridj</addr-line>
          ,
          <country country="DZ">Algeria</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This research paper focuses on the modeling and design of both conventional proportional-integral (PI) and a proposed intelligent fuzzy logic controller (FLC) applied to synchronous reference frame phase-locked loops (SRF-PLLs), commonly used as synchronization units for grid-connected inverters. Ensuring the optimal performance of this unit is crucial, especially during the injection of current into the grid. To achieve the best PLL performance, the proposed FLC-based SRF-PLL and conventional PI-based SRF-PLL were evaluated within the context of a 1-megawatt (MW) three phase grid-connected voltage source inverter (VSI) current controller predefined model. The simulation results in Matlab/Simulink revealed that the proposed FLC controller significantly improved the performance of the PLL within the system compared to the PI controller.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Grid Synchronization</kwd>
        <kwd>Phase-locked loop (PLL)</kwd>
        <kwd>Grid-connected inverter</kwd>
        <kwd>Fuzzy logic controller (FLC)</kwd>
        <kwd>PI controller</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        and [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. In contrast, authors in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] applied fuzzy logic to
enhance the PLL performance of an induction heating
The amount of power used worldwide is rising quickly, supply system, which is a very narrow application. Also,
surpassing the capacity that traditional fossil fuels can the modeling is very basic, and the stability analysis is
accommodate. In response to this challenge, modern minimal. Similarly, M. Sibanyoni et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] did not delve
environmental rules advise the widespread use of renew- deeper into mathematical modeling when integrating
able energy sources (RES) in the context of distributed fuzzy logic control into the loop filter of a SOGI-PLL, and
generation (DG) or microgrids (MG) to solve this issue. their study was limited to a single-phase PV inverter
apThe integration of RES into the grid is essential; however, plication. On the other hand, researchers in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] proposed
it requires careful placement, improved grid-connected using a Mamdani inference fuzzy controller to replace
inverter control techniques, and synchronization pro- the PI controller in the loop filter of an SRF-PLL. While
cesses to prevent disruptions and instability in the utility novel, the design and tuning process of the fuzzy and
grid. PI-based SRF-PLL are covered in less detail. Furthermore,
      </p>
      <p>
        There have been a lot of studies done in the past few the lack of essential components such as an LCL filter and
years on phase-locked loop (PLL) techniques, which play transformer in the simulation model makes the test
sysa critical role in grid-connected power converters to en- tem less practical and representative of real three-phase
able precise synchronization of the converter with the grid-connected inverter systems.
grid voltage. M. P. Thakre et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] presented an overview The aim of this paper is to enhance the performance
of both basic and advanced PLL methods, such as syn- of the grid-connected inverter’s synchronization unit,
chronous reference frame PLL (SRF-PLL), also known as namely the SRF-PLL since it is the most used, by replacing
dq-PLL, stationary reference frame PLL ( -PLL), dual the traditional PI controller with the proposed fuzzy logic
second-order generalized integrator (DSOGI-PLL), etc., controller. For that, both controllers were designed and
under various grid conditions. However, it is noteworthy tuned. Subsequently, simulation results were obtained in
that all PLLs discussed in the study are equipped with the Matlab/Simulink environment by integrating these
a PI controller, similar to the limitation observed in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] PLLs into a current controller of a 1 MW three-phase
gridconnected voltage source inverter (VSI) and comparing
the results.
6th International Hybrid Conference On Informatics And Applied
Mathematics, December 6-7, 2023 Guelma, Algeria
* Corresponding author.
$ n.mennai@univ-skikda.dz (N. Mennai);
a.medoued@univ-skikda.dz (A. Medoued);
youcef.soufi@univ-tebessa.dz (Y. Soufi);
abdallahfalehfr@gmail.com (A. Faleh)
      </p>
      <p>0000-0002-6344-0789 (N. Mennai); 0000-0003-4073-6883
(A. Faleh)
© 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License</p>
      <p>Attribution 4.0 International (CC BY 4.0).</p>
    </sec>
    <sec id="sec-2">
      <title>2. PI Based SRF-PLL Modeling and</title>
    </sec>
    <sec id="sec-3">
      <title>Controller Tuning</title>
      <sec id="sec-3-1">
        <title>2.1. Mathematical Model of SRF-PLL</title>
        <p>For balanced three phase grid voltages with a phase  and
peak value Vm shifted from one another by 120 degrees
as described in Eq. (1), clark and park transformation
in Eqs. (2) and (3) are used to convert the grid voltage
Vabc to V</p>
        <p>
          in stationary reference frame then to SRF
components Vdq [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. By lining up the d-axis voltage Vd
with the phase voltage Va, it is possible to determine the
phase angle by maintaing the quadrature component Vq
to zero by using the PI controller [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. With 0 is the
feedforward frequency added to create the estimated rotation
frequency ′ , which is integrated to get the estimated
phase angle  ′ in radians. This process is seen in Fig. 2.
︂[  ]︂

︂[ ]︂

{︃
⎨
⎧ =  sin( )
        </p>
        <p>=  sin( −
⎩ =  sin( + 23 )</p>
        <p>23 )
=
=
− 1
2
√
3
2
2 [︃1
is applied to Eq. (4), which leads to Eq. (5). The simplified
model of the SRF-PLL becomes as seen in Fig. 3 and the
closed-loop transfer function of it is in Eq. (6).
︂{  ≈ 
 ≈ −</p>
        <p>( −  ′ )</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>3. Design of Fuzzy Logic Based SRF-PLL</title>
      <p>
        Getting a faster response from the PI controller will lead
to instability problems. Also, PI controllers are highly
sensitive to varying parameters and sudden fluctuations,
for example, in frequency or voltage during grid faults.
Such controllers may not give the desired response. As
mentioned in [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ] instead of regulating a precise
mathematical model, fuzzy logic control is more suited for
systems with unpredictability because it incorporates
human-like understanding skills and physical
characteristics of the system [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>In this section the PI controller of the dq-PLL is
substituted by the Fuzzy logic controller (FLC) as shown in Fig.
4. The design of the proposed FLC must follow to the
structure shown in Fig. 5. The primary steps of the FLC
can be categorized into three main stages: fuzzification,
inference rules, and defuzzification [9].
(5)
(6)
(7)
(8)</p>
      <p>The first input of this intelligent controller is the error
(E(k)), representing the diference between the reference
value of the quadrature component of grid voltage (Vq*)
and its measured value (Vq), while the second input is the
change in error (CE(k)) is the derivative of E(k), as defined
by Eq. (9).</p>
      <p>{︃() = (* − )
() = (() − (− 1))/
(9)
The output of this controller is then multiplied by Ku
before continuing its path in the loop to detect the phase
angle.</p>
      <p>With Tst is the sampling time and ke, kce, and ku are
the scaling factors, these gains are very important in
normalizing the input and output variables and for the
performance and stability of the control system.</p>
      <sec id="sec-4-1">
        <title>3.1. Fuzzification</title>
        <p>
          In fuzzy logic systems, fuzzyification is the
transformation of exact input values into fuzzy sets that represent
input variables as linguistic variables and membership
functions (MF) [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. In this study, five linguistic variables
are used to define the input and output variables as
follow:
• NB : negative big
• NS : negative small
• Z : zero
• PS : positive small
• PB : positive big
MF of triangular shape are selected for each variable, as
shown in Fig. 6.
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>3.2. Inference Engine and Rule Base</title>
        <p>The Inference System is the fundamental component of
FLC, since it is responsible for making decisions based on
if-then fuzzy rules and fuzzy implication sub-blocks. The
two most popular approaches used for this are Mamdani
and Sugeno [10]. The fuzzy inference of this study is
done with the Mamdani inference engine and the
maxmin implication technique, where the "AND" operator is
represented by the MIN operation and the "OR" operator
by the MAX operation. The 25 fuzzy rules that determine
the FLC’s output depending on its two inputs are
indicated in Table 1. While Fig. 7 shows the control surface
of the fuzzy rule base.</p>
        <p>(a)
(b)
(c)</p>
      </sec>
      <sec id="sec-4-3">
        <title>3.3. Defuzzification</title>
        <p>The fuzzy output result generated by the Mamdani
inference engine in the form of MF is then transformed into a
numerical value by employing defuzzification techniques
such as the Center of Gravity (COG) and Mean of
Maximum (MOM) methods [10]. In this research, COG is used
during the defuzzification process. All previous design
steps was implemented by Matlab fuzzy logic toolbox.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>4. Simulation Results</title>
      <p>To test the designed PLLs, both of them were placed in
the control block of a predefined model of a three-phase
grid-connected 2-level voltage source inverter (2L-VSI) as
shown in Fig. 9 in order to evaluate the performance of
each in such a system. Simulation tests were conducted
in the Matlab/Simulink environment during normal grid
conditions to evaluate their transient and steady-state
responses. All parameters used in the test system are
outlined in Table 2. The model used in this simulation is
shown in Fig. 8.</p>
      <p>Inverter</p>
      <p>LCL-Filter
Transformers and transmission line</p>
      <p>PI controller for SRF-PLL
Vdc
fg
Vac
fsw
Prated
Li
Cf
Lg</p>
      <p>Rd
step-up transformer</p>
      <p>R’
X’</p>
      <p>B’
step-down transformer</p>
      <p>Kp-srfpll
Ki-srfpll</p>
      <sec id="sec-5-1">
        <title>4.1. Results for PI based SRF-PLL</title>
        <p>(a) Phase voltage and phase angle
(b) Direct voltage component
(a) Phase voltage and phase angle</p>
        <p>(b) Direct voltage component
(c) Quadrature voltage component</p>
        <p>Similarly to the previous simulation, PI based-PLL was
replaced in the current controller of the 2L-VSI with the
proposed FLC. The results are shown in Fig. 11.</p>
        <p>Similar to the previous results, the FLC was able to
efectively lock onto the grid phase. Notably, there is a</p>
        <p>The plot in Fig. 10a demonstrate that the dq-PLL marked improvement in the plot of Vq and Vqref in Fig.
successfully detected the grid voltage phase accurately. 11c compared to that of the PI controller. With the FLC,
Furthermore, the PI controller efectively regulated the the quadrature voltage component was maintained at its
quadrature component Vq to zero after a half cycle (0.01s), reference without a significant overshoot and in less than
but with a noticeable overshoot as seen in Fig. 10c. On half a cycle.
the other hand, as Vq is forced to zero, the direct compo- Additionally, in Fig. 11b Vd remains constant at 1 per
nent of the grid voltage Vd becomes constant and close unit without any transient disturbances, indicating that
to 1 per unit (pu) after a slight drop in the transient state, the FLC yields better results than the PI controller at this
corresponding to the peak value of the grid voltage Vm, stage.
as mentioned in Eq. (5). The frequency response for both PLLs was plotted in
Fig. 12 to evaluate and compare their performance in this
4.2. Results for FLC based SRF-PLL system. Table 3. presents the performance characteristics
for each PLL.</p>
        <p>By analyzing the frequency responses and
performance characteristics of both PLLs, it can be confirmed
that the proposed FLC controller outperformed the
conventional PI controller not only in tracking the grid
voltage phase and frequency but also in terms of the PLL
performance within the VSI controller. The FLC-based
PLL exhibited a low overshoot of 0.3249% and a short
settling time of 4.7 ms. These results suggest that the
FLC-based PLL could be a promising alternative to the
conventional phase-locked loop.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>5. Conclusion</title>
      <p>In this research, the modeling and design of conventional
and intelligent fuzzy logic controllers for synchronous
reference frame phase-locked loops are presented. These
PLLs were tested inside a 1 MW grid-connected VSI
current controller predefined model. The diferent
simulation results during normal grid conditions showed the
efectiveness of both controllers in terms of detecting
phase angle of grid voltage and reference tracking, but in
terms of performance, the FLC-based SRF-PLL provided a
better response compared to the PI-based SRF-PLL,
reaching a short settling time with very low overshoot. These
ifndings suggest that the FLC-based PLL could be a
potential replacement for the traditional phase-locked loop,
and much future work can be considered for this purpose.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgments</title>
      <p>The authors received no financial support for this
research.
(SSD), IEEE, 2022, pp. 917–922. doi:https://doi.
org/10.1109/SSD54932.2022.9955866.
[9] N. Ikken, A. Bouknadel, H. El Omari, H. El Omari,
Design and implementation of intelligent
pifuzzy logic control for grid connected
inverters, in: International Renewable and
Sustainable Energy Conference (IRSEC), IEEE, 2016,
pp. 1111–1117. doi:https://doi.org/10.1109/
IRSEC.2016.7984022.
[10] A. Guidara, Policy decision modeling with Fuzzy
Logic: Theoretical and computational aspects,
volume 405, Springer Nature, 2020. doi:https://doi.
org/10.1007/978-3-030-62628-0.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M. P.</given-names>
            <surname>Thakre</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. P.</given-names>
            <surname>Matale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. S.</given-names>
            <surname>Borse</surname>
          </string-name>
          ,
          <article-title>A survey based on pll and its synchronization techniques for interconnected system</article-title>
          ,
          <source>in: International Conference on Artificial Intelligence and Smart Systems (ICAIS)</source>
          , IEEE,
          <year>2021</year>
          , pp.
          <fpage>1011</fpage>
          -
          <lpage>1016</lpage>
          . doi:https://doi.org/10.1109/ ICAIS50930.
          <year>2021</year>
          .
          <volume>9395770</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Ali</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Christofides</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Hadjidemetriou</surname>
          </string-name>
          , E. Kyriakides,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Blaabjerg</surname>
          </string-name>
          ,
          <article-title>Three-phase phase-locked loop synchronization algorithms for grid-connected renewable energy systems: A review</article-title>
          ,
          <source>Renewable and Sustainable Energy Reviews</source>
          <volume>90</volume>
          (
          <year>2018</year>
          )
          <fpage>434</fpage>
          -
          <lpage>452</lpage>
          . doi:https://doi.org/ 10.1016/J.RSER.
          <year>2018</year>
          .
          <volume>03</volume>
          .086.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>P.</given-names>
            <surname>Tripathy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Misra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Nayak</surname>
          </string-name>
          ,
          <article-title>A review on recent advanced three-phase plls for grid-integrated distributed power generation systems under adverse grid conditions</article-title>
          , Springer Nature Singapore,
          <year>2023</year>
          , pp.
          <fpage>17</fpage>
          -
          <lpage>29</lpage>
          . doi:https://doi.org/10. 1007/
          <fpage>978</fpage>
          -981-19-6605-
          <issue>7</issue>
          _
          <fpage>2</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Song</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Cao</surname>
          </string-name>
          ,
          <article-title>Study on a novel fuzzy pll and its application</article-title>
          ,
          <source>in: International Workshop on Intelligent Systems and Applications</source>
          , IEEE,
          <year>2009</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>3</lpage>
          . doi:https://doi.org/10.1109/ IWISA.
          <year>2009</year>
          .
          <volume>5073130</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Sibanyoni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. D.</given-names>
            <surname>Chowdhury</surname>
          </string-name>
          , L. Ngoma, Single Phase Inverter Fuzzy Logic Phase Locked Loop, John Wiley and Sons, Ltd,
          <year>2021</year>
          , pp.
          <fpage>91</fpage>
          -
          <lpage>120</lpage>
          . doi:https://doi.org/10.1002/ 9781119710905.ch4.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A. R.</given-names>
            <surname>Gangula</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lakshmanan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. S.</given-names>
            <surname>Rajpurohoit</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Prakash</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Chandrasekaran</surname>
          </string-name>
          ,
          <article-title>Design of fuzzy based pll for grid connected inverter under non-ideal grid conditions</article-title>
          ,
          <source>in: IEEE IAS Global Conference on Renewable Energy and Hydrogen Technologies (GlobConHT)</source>
          , IEEE,
          <year>2023</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          . doi:https://doi.org/10.1109/ GlobConHT56829.
          <year>2023</year>
          .
          <volume>10087408</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>K.</given-names>
            <surname>Fuad</surname>
          </string-name>
          ,
          <article-title>Grid-voltage Synchronization Algorithms Based on Phase-locked Loop and Frequencylocked Loop for Power Converters</article-title>
          , Thesis,
          <year>2014</year>
          . doi:http://dx.doi.
          <source>org/10.13140/RG.2.2. 25940.12166.</source>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>N.</given-names>
            <surname>Mennai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Soufi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Medoued</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Faleh</surname>
          </string-name>
          ,
          <article-title>Grid synchronization techniques analysis of dg systems under grid fault conditions</article-title>
          ,
          <source>in: 19th International Multi-Conference on Systems, Signals and Devices</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>