blockLimPI

limited PI-controller with anti-windup and feedforward

Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).

Information

Proportional - Integral - controller with optional feed-foward and limitation at the output.

When the ouput is limited, the controller cannot bring the control error to zero and the integrator will not stop integrating. To avoid thie WindUp - effect, an Anti-WindUp loop is implemented: The difference between unlimited and limited output is fed back to the integrator's input.

The integral part can be switched off to obtain a limited P-controller.

Parameters

TypeNameDefaultDescription
BooleanuseItruePI else P
Realk1Gain
Modelica.Units.SI.TimeT1Time Constant (T>0 required)
FeedForward
BooleanFeedForwardtrueUse FeedForward?
RealkFF1FeedForward gain
Limitation
DriveControl.Types.LimitationlimitationDriveControl.Types.Limitation.ConstantType of limits
RealYMaxinfUpper limit of output
RealYMin-YMaxLower limit of output
Initialization
Modelica.Blocks.Types.InitinitTypeModelica.Blocks.Types.Init.NoInitType of initialization (1: no init, 2: steady state, 3: initial state, 4: initial output)
Realx_start0Initial or guess value of state
Realy_start0Initial value of output

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal
Modelica.Blocks.Interfaces.RealInputfeedForward
Modelica.Blocks.Interfaces.RealInputyMaxUpper limit of output
Modelica.Blocks.Interfaces.RealInputyMinLower limit of output

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.AddaddAntiWindup
Modelica.Blocks.Continuous.Integratorintegrator
Modelica.Blocks.Math.Add3add3
Modelica.Blocks.Nonlinear.VariableLimiterlimiter
Modelica.Blocks.Math.Feedbackfeedback