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

TypeNameDefaultDescription
Integernout (from SIMO)1Number of outputs
RealA01Rated amplitude of input
SI.Frequencyf050Rated frequency
SI.AngularVelocitywn0.1*2*pi*f0Natural angular velocity
Realzeta0.5Damping ratio
Realkp4*zeta*wn/A0Proportional gain
Realki2*wn^2/A0Integral gain
BooleanuseAdaptionfalseUse adaptive integrator
RealconstantAdaption1Constant adaption factor

Connectors

TypeNameDefaultDescription
RealInputu (from SIMO)Connector of Real input signal
RealOutput[nout]y (from SIMO)Connector of Real output signals
Modelica.Blocks.Interfaces.RealOutputw (from w_theta)Estimated angular velocity
Modelica.Blocks.Interfaces.RealOutputtheta (from w_theta)Estimated angle
Modelica.Blocks.Interfaces.RealInputadaption

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.Productproduct0
Modelica.Blocks.Continuous.Integratorintegrator1
Modelica.Blocks.Continuous.Integratorintegrator2
Modelica.Blocks.Math.Sinsin
Modelica.Blocks.Math.Coscos
Modelica.Blocks.Math.Gaingain
Auxilliary.AddOffsetaddOffset
Auxilliary.Addadd2
Modelica.Blocks.Math.Productproduct1
Modelica.Blocks.Math.Gainneg