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

TypeNameDefaultDescription
Integernout (from SIMO)1Number of outputs
RealA01Rated amplitude of input
SI.Frequencyf050Rated frequency
Realzeta10.5First damping ratio
Realzeta21Second damping ratio
Realkp2*zeta1*2*pi*f0Proportional gain
Realkikp^2/(8*zeta2^2)Integral gain
RealkakpAmplitude integral gain
Realepsilon0.001Avoid division by 0
Reallamda0Factor for adaptive integrator

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

Components

TypeNameDefaultDescription
Realefeedback.yControl error
RealAaddOffset1.yEstimated amplitude
Basic1phasePLLbase1phasePLL
Modelica.Blocks.Math.Feedbackfeedback
Modelica.Blocks.Math.Divisiondivision
Modelica.Blocks.Math.Productproduct1
Modelica.Blocks.Continuous.Integratorintegrator
Auxilliary.AddOffsetaddOffset1
Modelica.Blocks.Math.Productproduct2
Modelica.Blocks.Math.Absabs1
Auxilliary.AddOffsetaddOffset2
Modelica.Blocks.Sources.RealExpressionadaption