1. Introduction
The interconnection of distributed generation (DG) units based on renewable energy sources to the electrical power system (EPS) is increasing. A critical factor for a successful interconnection is the implementation of effective synchronization algorithms in DG inverters. These algorithms play a crucial role in the operation and stability of the DG inverter that injects power into the grid, even when disturbances occur in the EPS [
1,
2,
3,
4,
5]. The phase-locked loop (PLL) is a commonly employed method for synchronization. It is crucial to prevent incorrect measurements, instability, and loss of synchronism [
6,
7,
8,
9], regardless of reliability issues in the transmission and distribution system, unbalanced voltages and harmonic distortions at the PLL input [
2,
10]. For instance, since phase-to-ground faults account for up to 95% of the faults in the power system, therefore, the operation of converters with unbalances and distortions in the EPS is a requirement [
8,
10]. Optimizing the loop filter bandwidth requires carefully considering the trade-off between filtering performance, response time, and stability [
2,
10,
11]. The primary challenge for PLLs is to achieve a swift transient response while maintaining accurate angle tracking, harmonic rejection, and resilience against disturbances in the electrical network. To ensure compliance with IEEE Std 519, for grid, microgrid and grid-connected applications including photovoltaic applications, the currents drawn from the grid must have a total harmonic distortion (THD) of less than 5.0% [
12].
Some PLLs, like the moving average filter-based phase-locked loop (MAF-PLL), can accurately obtain network synchronization signals under adverse network conditions with a high amount of harmonics due to the MAF’s high filtering capability. However, the MAF-PLL cannot achieve a fast dynamic response in cases of frequency drift, phase angle jumps or unbalanced voltage sags [
13]. Generally, the operation of PLLs is compromised when the network voltage and current contain harmonics as well as during periods when the network experiences faults and disturbances [
2,
10,
14,
15,
16]. It is important to consider that the grid frequency can exhibit significant fluctuations during transients and faults in power systems with high DG penetration [
17,
18].
The second-order generalized integrator phase-locked loop (SOGI-PLL) is widely utilized as a synchronization algorithm in various applications related to signal synchronization and the control of power electronics devices. Its popularity stems from its simplicity, low computational cost, and ability to bypass filtering delays [
19,
20,
21]. SOGI-based algorithms are also employed in determining resonant frequencies for proportional resonant controls [
22]. In this paper, a modification of the DSOGI-PLL architecture is proposed. The modification aims to enhance the stability of the pre-filter stage for quadrature
and
signals while increasing the bandwidth of the PLL structure. This results in a fast response of the PLL as a whole without compromising the distinctive harmonic rejection capability of SOGI-based PLLs. The proposed approach involves decoupling the effect of the single SOGI-QSG (quadrature signal generator) gain and introducing a second QSG gain. Additionally, feedback from the bandpass filter output signal
is added to the QSG input. The new QSG pre-filter gain allows the manipulation of additional attenuation while improving stability by shifting the QSG poles. The proposed structure is referred to as ARF-DSOGI-PLL, which stands for PLL with Adjustable Re-Filtering based on a Double Second-Order Generalized Integrator. Several tests are carried out under different disturbances in the EPS voltage, particularly frequency deviations, since erroneous frequency measurements can disconnect the inverters of the DG units. Different bandwidths are considered, since the speed of the transient response of the PLL depends on this setting. The magnitudes of the disturbances and the bandwidths were selected to demonstrate the weaknesses and strengths of the algorithms. At the same time, it is shown that the performance of the proposed PLL does not depend on a specific bandwidth nor the type and magnitude of the specific disturbance.
The paper is structured as follows:
Section 1 provides an introductory overview of the fundamental aspects of PLLs.
Section 2 provides an overview of the ARF-DSOGI implementation;
Section 2.1 introduces the proposed modified structure of the DSOGI-QSG, which is referred to as the ARF-DSOGI-QSG and
Section 2.2 outlines the criteria for evaluating the performance of the PLL.
Section 3 presents a comparison of the responses of the ARF-DSOGI-PLL, DSOGI-PLL with FLL, DSOGI-PLL, SRF-PLL and the Simulink PLL, subjected to frequency deviations, phase jumps, voltage sags and harmonic pollution. The PLLs are evaluated for a typical bandwidth in the loop filter (tuning S1) and also a wide bandwidth (tuning S2).
Section 4 provides a comprehensive comparison between two PLLs, namely the ARF-DSOGI-PLL and the DSOGI-PLL-EFI, focusing on their dynamic performance and robustness. The comparison entails a detailed analysis to identify which PLL exhibits superior characteristics in these aspects. In
Section 5, the computational resources and execution times of the tested PLLs are also compared. Finally, the conclusions are presented in
Section 6.
2. Development of the Improved PLL
In this section, an enhanced DSOGI-PLL is proposed, aiming to achieve several performance improvements. The desirable enhancements are outlined as follows: (a) Faster response without sacrificing the rejection of harmonic content, (b) Reduced transient error in phase tracking, (c) More robustness when subjected to disturbances of greater magnitude without compromising stability, in comparison to other algorithms, and (d) More reliable frequency measurement even in the presence of harmonic contamination, surpassing even the performance of the DSOGI-PLL with FLL.
The ARF-DSOGI-PLL consists of three stages:
- 1.
A pre-filter for the and quadrature signals obtained from the Clarke transformation. This pre-filter operates in the stationary reference frame and is referred to as a dual second-order generalized integrator with adjustable re-filtering (ARF-DSOGI).
- 2.
A sequence components calculator. Its utilization is recommended as a way to eliminate the effect of negative sequence components. This part of the algorithm is the same as that used in a DSOGI-PLL.
- 3.
The loop controller. This is a proportional–integral (PI) controller that also functions as a low-pass filter, which is commonly referred to as a loop filter. It operates in the synchronous reference frame and is responsible for phase angle tracking and the attenuation of high-frequency harmonics.
The transfer function (1) is the basis for obtaining the transfer functions (2) and (3) that describe the bandpass and low-pass filtering actions, respectively. These transfer functions are obtained using the ARF-SOGI shown in
Figure 1 [
23]. This is a modification of the SOGI-QSG analyzed in [
24]. The ARF-DSOGI is implemented using two ARF-SOGI-QSGs.
In this context, v represents the input voltage to the PLL, specifically the EPS voltage intended to be sensed by the PLL. denotes the discrepancy between v and the output voltage obtained through the bandpass filter of the ARF-SOGI-QSG. The PLL computes the angular frequency denoted as . The parameter denotes the shared tuning gain for both the SOGI-QSG and the ARF-SOGI-QSG. Additionally, is the additional tuning gain for the extra closed loop that differentiates the ARF-SOGI-QSG from the SOGI-QSG. On the other hand, designates the resulting output voltage through the low-pass filter of the ARF-SOGI-QSG. The criteria for fine tuning the ARF-SOGI-QSG include enhancing its speed and reducing the tendency to overshoot during the transient period.
The step responses shown in
Figure 2 correspond to transfer function (2), which defines the behavior of the implicit bandpass filter in the ARF-SOGI compared with the transfer function representing the same filtering effect in the SOGI. Although the behavior of the low-pass filter of the ARF-SOGI is not shown, the effect of the gain
is the same, meaning a reduction in overshoot and faster response compared to the SOGI-QSG while improving the stability of the pre-filter. In
Figure 2, it can be seen that the ARF-SOGI reduces the overshoot of the pre-filter and achieves shorter stabilization times compared to the original SOGI-QSG. The intention is to incorporate this behavior of the ARF-SOGI into the response of the ARF-DSOGI. The details of obtaining the model and transfer functions of the ARF-SOGI-QSG can be found in [
23].
Figure 3 illustrates the implementation of the ARF-DSOGI pre-filter, consisting of two ARF-SOGI filters similar to those used in DSOGI [
5]. The algorithm shown in
Figure 3 is thus a modification of the DSOGI presented in [
5,
24]. The first ARF-SOGI generates the
signal, while the second generates the
signal, which are then fed into either the Park transformation or the sequence components calculator.
Figure 4 depicts the positive and negative sequence calculator (PNSC) [
24]. In the implementation of ARF-DSOGI-PLL, it is not necessary to utilize the entire PNSC; only the section responsible for extracting the positive sequence components must be employed, reducing the computational cost of the final implementation.
2.1. Proposed ARF-DSOGI-PLL Structure
The PLL presented in this article is a modification of the DSOGI-PLL. It is called ARF-DSOGI-PLL and is shown in
Figure 5. It comprises three main stages: (1) phase detector, which includes the ARF-DSOGI pre-filter and the sequence component calculator, (2) controller (also referred to as a loop filter) and (3) frequency and phase-angle generator.
Figure 5 shows the implementation of the ARF-DSOGI-PLL. It can be seen that the PNSC uses only the positive sequence part.
The ARF-DSOGI-PLL is implemented by combining the ARF-DSOGI with a loop filter that includes a gain , preceding the filter or loop controller. The gain compensates for the additional attenuation suffered by the quadrature signals and increases the bandwidth of the loop filter. The PI loop controller, in addition to tracking the angle, filters out high-frequency components in the signals and calculates the frequency using only the integral part of the controller.
2.2. The PLL Performance Evaluation Criteria
The non-linear nature of PLL phase detectors [
25] makes it difficult to find PLL performance evaluation criteria when the PLL operation deviates from linearity. However, the criteria for evaluating the performance of PLLs will be assumed as allows.
A THD value of less than 1% is considered acceptable. It is crucial for the unit vectors to be synchronized with the main EPS voltages while ensuring that the harmonic contamination remains below 1% [
26,
27] because the reference signals for inverter control are derived from the angle calculated by the PLL. When synchronization times are very short, the quality of the unit vectors tends to degrade. Conversely, large frequency deviations, including those permitted by the grid code in electrical power systems, result in longer synchronization times or failed re-synchronization. In both scenarios, the extracted system frequency becomes incorrect during the transient period. Therefore, there is a need to enhance the PLL’s response in two aspects: increasing the speed at which the correct frequency value is reported (while ensuring the degradation of unit vector quality does not exceed 1%) and reducing the error in the reported frequency during the PLL transient [
9].
The disconnection times of the converter during voltage variations are specified in standards such as IEEE 1547, IEC61727, and VDE0126-1-1 [
24,
28,
29,
30]. Likewise, guidelines for handling frequency deviations and the permissible ranges are outlined in these standards [
24,
28,
29]. According to the IEEE 1547 standard, in the presence of disturbances where the system frequency remains within the range of 58.8 to 61.2 Hz, the converter should remain operational and continue to provide active power. The low-frequency ride-through period extends from 57.0 to 58.8 Hz, lasting for 299 s at most, while the high-frequency ride-through range is 61.2 Hz <
f < 61.8 Hz. During these specific ranges and periods, it is crucial that the converter does not trip and maintains the provision of active power. However, if the frequency deviation exceeds 3.5 Hz, the converter will be disconnected after a 0.16 s interval. Hence, it is imperative for a PLL to accurately report frequency deviations of this magnitude within the given 0.16 s time frame to prevent an unintended disconnection.
4. Final Comparison
This section presents a comparison solely among the PLLs that exhibited better performance in frequency measurement, phase angle tracking under permissible harmonic content conditions, and considering the stability demonstrated during the previous tests. For a voltage sag of 20% of the nominal value, the ARF-DSOGI-PLL takes 0.048 s to accurately report the frequency after the disturbance occurs. After this time, if the voltage dip persists, this PLL continues to correctly report the frequency. On the other hand, the DSOGI-PLL-EFI takes 0.057 s, which is slightly longer than the ARF-DSOGI-PLL. However, it exhibits a lower steady-state error, as can be seen in
Figure 17.
Figure 18 shows the frequency measured by the ARF-DSOGI-PLL and the DSOGI-PLL-EFI during a voltage sag that reduces the line voltage to only 20% of the nominal value. In this case, the ARF-DSOGI-PLL takes 162.5663 s to report the frequency within a maximum deviation range of 20 mHz, while the DSOGI-PLL-EFI takes 272.598 s.
Now, the algorithms are tested against a frequency deviation of −0.67 Hz. For these tests, not only are the tuning parameters of the PLL loop filters changed but also the tuning of the ARF-DSOGI and DSOGI pre-filters. The intention behind this is to assess the operational differences between the two algorithms.
Figure 19 shows the frequency measurements of the PLLs when a step-like frequency deviation of 0.67 Hz occurs in the EPS voltage. The ARF-DSOGI-PLL and DSOGI-PLL-EFI algorithms report measurement times of 46.808 ms and 88.808 ms, respectively. These measurements fall within a maximum steady-state error band of 20 mHz.
The algorithms are next subjected to a phase jump of 72 degrees, and angle tracking and frequency measurement are verified.
Figure 20 shows the angle tracked by the algorithms when the phase jump occurs. It can be observed that from the start of the disturbance at t = 15 s, the ARF-DSOGI-PLL better tracks the phase angle. The ARF-DSOGI-PLL synchronizes within the third cycle after the phase jump, while the DSOGI-PLL-EFI appears to synchronize within the fourth cycle. In
Figure 21, it can be observed that in the following cycle, the DSOGI-PLL-EFI loses synchronization while the ARF-DSOGI-PLL remains locked. The ARF-DSOGI-PLL achieves synchronization within the third cycle after the phase jump, while the DSOGI-PLL-EFI achieves synchronization within the fifth cycle. In
Figure 22, it can be observed that the effect of the reference angle calculated by the ARF-DSOGI-PLL on power injection is the reduction in transient oscillations in the power injected by the grid-following inverter to the power system during the phase jump. It is also observed that power regulation, especially reactive power, is achieved in less time compared to power injection using the same inverter with the DSOGI-PLL-EFI synchronization algorithm.
6. Conclusions
This paper presents a modified PLL algorithm called ARF-DSOGI-PLL. The proposed ARF-DSOGI-PLL incorporates a second gain in the pre-filter stage; also, a feedback loop is added from the output of the bandpass filters to the input of the modified pre-filter. These modifications provide the ability to select additional attenuation in the pre-filter while shifting the pre-filter poles to the left, resulting in improved stability and speed compared to the standard DSOGI-PLL. The enhanced stability achieved by the ARF-DSOGI pre-filter permits increasing the control loop filter bandwidth. As a result, the ARF-DSOGI-PLL provides an improved response speed while upholding harmonic rejection, stability, and processing capability. Furthermore, it reduces frequency measurement overshoot, leading to shorter transient frequency measurement periods. This, in turn, lowers the risk of grid-following inverters halting power injection due to inaccurate frequency measurements. The performance of the ARF-DSOGI-PLL was assessed by subjecting it to various disturbances, including frequency deviations, phase shifts, voltage sags, and harmonics. Its response was compared with three alternative DSOGI-PLL versions using different loop filter settings. Additionally, a comprehensive exploration was conducted regarding three-phase inverter synchronization with the electrical network. The simulations indicate that the new ARF-DSOGI pre-filter-based PLL exhibits improved stability, faster transient response, and sustained harmonic content rejection.