SOGI PLL
Table of Contents
This note covers the operating principles of a Second-Order Generalized Integrators (SOGI) PLL and presents a possible implementation for digital power electronics controllers. Its implementation in Simulink is available for download.
What is a SOGI PLL?
Second-order Generalized Integrators (SOGI) have recently been proposed for use as phase detectors [2] and positive-sequence voltage detectors [4], especially within PLL structures found in grid-tie power inverters.
Numerous grid synchronization techniques exist, featuring various performance, objectives, and complexity. An extensive review of possible implementations is proposed in [1]. Among them, many rely on a phase detector that offers some immunity to voltage waveform distortions (harmonics and/or unbalances). This immunity, related to the employed filtering techniques, is often a difficult trade-off with other expectations expressed in terms of dynamic performance (phase and/or amplitude tracking).
SOGI structures are mainly composed of two filter types. First, a band-pass filter with no phase delay at the fundamental frequency is used for the estimation of the phase voltage v’. Secondly, a low pass filter with 90° phase delay is used for the estimation of the quadrature-shifted signal qv’. Therefore, SOGI structures have the attractive benefit of providing simultaneous access to both the filtered output as well as a quadrature-shifted version of the same output (α and β axes). As such, they allow for an easy implementation that can fit that of conventional SRF-PLLs (using the Park transform as phase detector).
The general principle of the SOGI-based PLL is given below:
Transfer functions of the SOGI
Based on the preceding diagram, the subsequent transfer functions can be derived :
Where
An examination of the above transfer functions reveals that the parameter
It is also worth noting that the damping factor
SOGI PLL digital implementation
The discrete-time implementation of a SOGI-based PLL is mostly dependent on the selected approach for the discretization of the two integrators embedded within the SOGI itself.
Reference [2] analyzes the impact of the selected discretization approach (namely forward-Euler, backward-Euler, Tustin, ZOH, etc.) on the stability of the overall SOGI subsystem. The article concludes on the suitability of the backward-Euler integrators. Alternatively, reference [3] also compares various possible techniques, concluding on the superiority of the so-called Third-order Integrator method, thanks to a lower residual ripple on the frequency and amplitude signals. The corresponding integrator implementation is shown below:
Single-phase implementation
The structure of the proposed single-phase SOGI-type PLL is shown below:

Three-phase implementation
The somewhat equivalent of the above-presented structure for three-phase systems is given below. In this case, two SOGIs are used, not only to take benefit from their filtering characteristics but also to combine their outputs so as to detect the positive sequence exclusively. This approach, designated DSOGI-PLL by their authors [4], provides excellent immunity against grid voltage unbalances.
Software implementation
The implementations on Simulink and PLECS of the presented PLLs are available in the models provided below:
Simulink model
PLECS model
These Simulink and PLECS subsystems are masked, so that the corresponding parameters can be easily accessed and modified as follow.
These implementations can be easily integrated into control algorithms developed using imperix ACG SDK toolbox.
Regarding the tuning of the SRF-PLL, suggested parameters are provided on the SRF-PLL page. It’s important to note that when used with SOGIs, the bandwidth can be increased to
Experimental results
The following graph provides an experimental comparison between a DQ-PLL and the DSOGI-PLL. The DSOGI-PLL provides superior immunity against unbalanced and distorted grid voltages over the standard DQ-PLL:


Further experimental results and detailed comparisons with other PLLs are available on the Grid synchronization methods page.
Going further: SOGI PLL under disturbed grid conditions
In real-world conditions, the grid voltage waveform may be distorted due to various disturbances, presenting a significant challenge for accurate phase and frequency estimation. The most prevalent sources of these disturbances include harmonic distortion and DC offset.
DC offset rejection
If a DC offset is present in the measured voltage, it is not filtered by
To address this issue, the SOGI block can be modified so that the low-pass filter generating the quadrature signal,
The new

With the modification of the SOGI block, the filter for the quadrature signal,
Harmonic distortion rejection (MSOGI-PLL)
In a SOGI block, the attenuation of low-order harmonic distortions typically ranges between -10dB and -20dB for harmonics of order less than 10th (at a given parameter
In order to selectively attenuate certain harmonics, a cross-feedback network composed of multiple SOGIs can be introduced, each tuned to the selected frequencies. This solution is referred to as the Multiple SOGI-PLL (MSOGI-PLL). It is very effective for estimating the positive sequence component under disturbed conditions. The corresponding block diagram is provided below and can be easily replicated in Simulink or PLECS. A similar implementation is described in [6].
Moreover, to maintain the same bandwidth for each SOGI, the gain

It is worth noting that, in this configuration, DC offset removal has not been implemented. Should this feature be necessary, only the SOGI designated for the fundamental frequency requires DC offset removal.
Experimental results of this type of SOGIs and detailed comparisons with other PLLs are available on the Grid synchronization methods page.
Academic references
[1] M. Boyra and J. Thomas, “A review on synchronization methods for grid-connected three-phase VSC under unbalanced and distorted conditions,” in Proc. EPE Conf., Birmingham, 2011.
[2] M. Ciobotaru, R. Teodorescu and F. Blaabjerg, “A new single-phase PLL structure based on a second-order generalized integrator,” in Proc. PESC Conf., Rhodos, June 2006.
[3] F.J. Rodríguez, E. Bueno, M. Aredes, L.G.B. Rolim, F.A.S. Neves and M.C. Cavalcanti, “Discrete-time
implementation of second-order generalized integrators for grid converters,” in Proc. IECON Conf.,
Orlando, Nov. 2008.
[4] P. Rodríguez, R. Teodorescu, I. Candela, A. V. Timbus, M. Liserre and F. Blaabjerg, “New positive-sequence voltage detector for grid synchronization of power converters under faulty grid conditions,” in Proc. PESC Conf, Jeju, 2006.
[5] M. Xie, H. Wen, C. Zhu and Y. Yang, “DC Offset Rejection Improvement in Single-Phase SOGI-PLL Algorithms: Methods Review and Experimental Evaluation,” in IEEE Access, Vol. 5, pp. 12810-12819, 2017.
[6] P. Rodríguez, A. Luna, I. Candela, R. Mujal, R. Teodorescu and F. Blaabjerg, “Multiresonant Frequency-Locked Loop for Grid Synchronization of Power Converters Under Distorted Grid Conditions,” in IEEE Trans. on Pow. Elec., Vol. 58, No. 1, Jan. 2011.