blockDiscretePI
Discrete PI-controller with anti-windup and feed-forward
Extends from Modelica.Blocks.Interfaces.DiscreteSISO (Single Input Single Output discrete control block).
Information
A time discrete implementation (forward-Euler) of PI controller with feed-forward and anti-windup. The limiter is implemented outside this block.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Time | samplePeriod (from DiscreteBlock) | Sample period of component | |
| SI.Time | startTime (from DiscreteBlock) | 0 | First sample time instant |
| Real | kp | 1 | Proportional gain |
| SI.Time | Ti | 1 | Integral time constant (T>0 required) |
| MagLev.Types.AntiWindup | antiWindup | MagLev.Types.AntiWindup.BackCalc | Anti-Windup technique |
| Real | kFF | 1 | Feed-forward gain |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u (from DiscreteSISO) | Connector of Real input signal | |
| Modelica.Blocks.Interfaces.RealOutput | y (from DiscreteSISO) | Connector of Real output signal | |
| Modelica.Blocks.Interfaces.RealInput | cropped | Connector of Real input signal | |
| Modelica.Blocks.Interfaces.RealInput | pre_x | Connector of Real input signal | |
| Modelica.Blocks.Interfaces.RealInput | feedForward | Connector of Real input signal | |
| Modelica.Blocks.Interfaces.RealOutput | x | Connector of Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Math.Add | add1 | ||
| Modelica.Blocks.Math.Add3 | add3_1 | ||
| Modelica.Blocks.Logical.GreaterThreshold | greaterThreshold | ||
| Modelica.Blocks.Logical.Switch | switch1 | ||
| Modelica.Blocks.Sources.Constant | zero | ||
| Modelica.Blocks.Math.Add | add | ||
| Modelica.Blocks.Logical.Switch | switch2 | ||
| Modelica.Blocks.Sources.BooleanConstant | booleanConstant | ||
| Modelica.Blocks.Math.Abs | abs1 |