blockEnhanced1phasePLL
Enhanced single phase phase locked loop
Extends from Modelica.Blocks.Interfaces.SIMO (Single Input Multiple Output continuous control block), Interfaces.w_theta (Signal output w and theta).
Information
This is the enhanced version of the single phase PLL, based on the basic version of the single phase PLL, avoiding the mentioned double-frequency ripple on the estimated frequency.
The output y[1] is a cosine signal in phase with the input u,
the output y[2] is a sine signal 90° phase shifted to y[1].
The output y[3] is a cosine signal in phase with the input u and the estimated amplitude, i.e. the fundamental harmonic.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nout (from SIMO) | 1 | Number of outputs |
| Real | A0 | 1 | Rated amplitude of input |
| SI.Frequency | f0 | 50 | Rated frequency |
| Real | zeta1 | 0.5 | First damping ratio |
| Real | zeta2 | 1 | Second damping ratio |
| Real | kp | 2*zeta1*2*pi*f0 | Proportional gain |
| Real | ki | kp^2/(8*zeta2^2) | Integral gain |
| Real | ka | kp | Amplitude integral gain |
| Real | epsilon | 0.001 | Avoid division by 0 |
| Real | lamda | 0 | Factor for adaptive integrator |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SIMO) | Connector of Real input signal | |
| RealOutput[nout] | y (from SIMO) | Connector of Real output signals | |
| Modelica.Blocks.Interfaces.RealOutput | w (from w_theta) | Estimated angular velocity | |
| Modelica.Blocks.Interfaces.RealOutput | theta (from w_theta) | Estimated angle |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | e | feedback.y | Control error |
| Real | A | addOffset1.y | Estimated amplitude |
| Basic1phasePLL | base1phasePLL | ||
| Modelica.Blocks.Math.Feedback | feedback | ||
| Modelica.Blocks.Math.Division | division | ||
| Modelica.Blocks.Math.Product | product1 | ||
| Modelica.Blocks.Continuous.Integrator | integrator | ||
| Auxilliary.AddOffset | addOffset1 | ||
| Modelica.Blocks.Math.Product | product2 | ||
| Modelica.Blocks.Math.Abs | abs1 | ||
| Auxilliary.AddOffset | addOffset2 | ||
| Modelica.Blocks.Sources.RealExpression | adaption |