blockSmoothLimPID

P, PI, PD, and PID controller with smoothed limited output, anti-windup compensation and setpoint weighting

Extends from Modelica.Blocks.Interfaces.SVcontrol (Single-Variable continuous controller).

Information

1. Purpose of model

LimPID from Modelica Standard Library (Modelica.Blocks.Continuous.LimPID) with smoothed transition zone limiter.

2. Level of detail, physical effects considered, and physical insight

(Purely technical component without physical modeling.)

3. Limits of validity

(Purely technical component without physical modeling.)

4. Interfaces

(no remarks)

5. Nomenclature

(no elements)

6. Governing Equations

(no equations)

7. Remarks for Usage

The parameter thres gives the transition zone as share of (uMax-uMin) and should be <=0.5, else regions would overlap.

8. Validation

(no validation or testing necessary)

9. References

(no remarks)

10. Version History

Model created by Christian Warnecke, Aug 2015

Model revised by Lisa Andresen (andresen@tuhh.de), Dec 2016

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TimeunitTime1
.Modelica.Blocks.Types.SimpleControllercontrollerType.Modelica.Blocks.Types.SimpleController.PIDType of controller
Realthres0.1Smooting region of the limiter
Realk1Gain of controller
Modelica.Units.SI.TimeTi0.5Time constant of Integrator block
Modelica.Units.SI.TimeTd0.1Time constant of Derivative block
RealyMaxUpper limit of output
RealyMin-yMaxLower limit of output
Realwp1Set-point weight for Proportional block (0..1)
Realwd0Set-point weight for Derivative block (0..1)
RealNi0.9Ni*Ti is time constant of anti-windup compensation
RealNd10The higher Nd, the more ideal the derivative block
Initialization
.Modelica.Blocks.Types.InitinitType.Modelica.Blocks.Types.Init.InitialStateType of initialization (1: no init, 2: steady state, 3: initial state, 4: initial output)
Realxi_start0Initial or guess value value for integrator output (= integrator state)
Realxd_start0Initial or guess value for state of derivative block
Realy_start0Initial value of output

Connectors

TypeNameDefaultDescription
RealInputu_s (from SVcontrol)Connector of setpoint input signal
RealInputu_m (from SVcontrol)Connector of measurement input signal
RealOutputy (from SVcontrol)Connector of actuator output signal

Components

TypeNameDefaultDescription
RealcontrolErroru_s - u_mControl error (set point - measurement)
Modelica.Blocks.Sources.ConstantDzero
Modelica.Blocks.Sources.ConstantIzero
Modelica.Blocks.Math.AddaddP
Modelica.Blocks.Math.AddaddD
Modelica.Blocks.Math.GainP
Modelica.Blocks.Continuous.IntegratorI
Modelica.Blocks.Continuous.DerivativeD
Modelica.Blocks.Math.GaingainPID
Modelica.Blocks.Math.Add3addPID
Modelica.Blocks.Math.Add3addI
Modelica.Blocks.Math.AddaddSat
Modelica.Blocks.Math.GaingainTrack
TransiEnt.Basics.Blocks.SplineLimlimiter