PLL

Description
Single-phase Phase-Locked Loop (PLL)
Description
The single-phase Phase Locked Loop (PLL) proposes an estimation of the input signal frequency, signal amplitude and the phase-angle.
This block implements an Enhanced PLL described in Teoderescu et al.[1]
As shown below, the performance of the basic PLL implementation is enhanced with an Adaptative Noise Canceling (ANC) system which is an Adaptative Notch Filter (ANF).
The output of the ANF becomes equal to zero as the frequency and phase-angle of the reference signal generated by the VCO, x = cos(θ′), match those of the input signal v. As a result, signal oscillations at the output of the multiplier PD are completely cancelled out and the input signal phase-angle is accurately estimated by the basic PLL structure.
Controller Design
Two approaches to set the gains of the phase detector (K_{i_{pd}}) and of the loop filter which is a PI controller (K_{p_{lf}} and K_{i_{lf}}).
- Auto approach: the parameters are automatically calculated [2] to get a settling time (ts) of approximately 3 / f_0 where f_0 is the frequency defined by the user.
ts = 3 / fo; // Settling Time
xsi = 1 / sqrt(2); // Damping factor
Kp_lf = 9.2 / ts;
Ti_lf = ts * xsi^2 / 2.3;
Ki_lf = Kp_lf / Ti_lf;
Ki_pd = Kp_lf;
- Advanced approach: K_{i_{pd}}, K_{p_{lf}} and K_{i_{lf}} are defined by the user.
Info
The input signal is normalized in the PLL block so the parameters are not required to be scaled.
Important
The unit for phase-angle is the radian (rad) and the unit for the frequency is the Hertz (Hz).
References
[1]: R. Teodorescu, M. Liserre, and P. Rodriguez, "Chapter 4 – Grid Synchronization in Single-Phase Power Converters" in Grid Converters for Photovoltaic and Wind Power Systems, John Wiley and Sons, 2011. [2]: Y. Yang, K. Zhou Chapter 4 - Modeling and Control of Single-Phase AC/DC Converters in Control of Power Electronic Converters and Systems Vol 1, Science Direct, 2018.
Library
Control > Math
Parameters
| Property | Display Name | Parameter Type | Description |
|---|---|---|---|
| ControllerDesign | Controller Design | PLLControllerDesignParameter | Controller design method |
| Ki_pd | Amplitude Integral Gain (Ki_pd) | DoubleParameter | Amplitude Integral Gain |
| Kp_lf | Loop Filter Proportional Gain (Kp_lf) | DoubleParameter | Loop Filter Proportional Gain |
| Ki_lf | Loop Filter Integral Gain (Ki_lf) | DoubleParameter | Loop Filter Integral Gain |
| InitFreq | Initial Frequency [Hz] | DoubleParameter | Initial Frequency [Hz] |
| InitAngle | Initial Angle [deg] | DoubleParameter | Initial Angle [deg] |
| InitMag | Initial Magnitude | DoubleParameter | Initial Magnitude |
Pins
| Property | Pin Name | Type | Description |
|---|---|---|---|
| In | In | ControlIn | Input signal |
| Freq | Freq | ControlOut | Estimated Frequency [Hz] |
| Angle | Angle | ControlOut | Estimated Phase Angle [rad] |
| Mag | Mag | ControlOut | Estimated Magnitude |
Default Size
| Width | Height |
|---|---|
| 8 | 8 |