blockBasic1phasePLL
Basic version of 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 basic version of the single phase PLL.
Knowing the Amplitude of the input signal u, an adaptive PI-controller can be used
(like in the enhanced version of the single phase PLL.
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].
Problems: especially a double-frequency ripple on the estimated frequency resp. angular velocity ω = 2 π f = w.
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 |
| SI.AngularVelocity | wn | 0.1*2*pi*f0 | Natural angular velocity |
| Real | zeta | 0.5 | Damping ratio |
| Real | kp | 4*zeta*wn/A0 | Proportional gain |
| Real | ki | 2*wn^2/A0 | Integral gain |
| Boolean | useAdaption | false | Use adaptive integrator |
| Real | constantAdaption | 1 | Constant adaption factor |
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 | |
| Modelica.Blocks.Interfaces.RealInput | adaption |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Math.Product | product0 | ||
| Modelica.Blocks.Continuous.Integrator | integrator1 | ||
| Modelica.Blocks.Continuous.Integrator | integrator2 | ||
| Modelica.Blocks.Math.Sin | sin | ||
| Modelica.Blocks.Math.Cos | cos | ||
| Modelica.Blocks.Math.Gain | gain | ||
| Auxilliary.AddOffset | addOffset | ||
| Auxilliary.Add | add2 | ||
| Modelica.Blocks.Math.Product | product1 | ||
| Modelica.Blocks.Math.Gain | neg |