blockLimIntegrator
Output is the integral limited to upper or lower limit (continiuous or discrete)
Extends from Interfaces.PartialSampledBlock (Partial block of Sampled library (icon + default parameters)).
Information
This blocks defines the transfer function between the input u and the output y as integrator:
k
y = --- * u
s
The block can be continuous or discrete (with continuous parameterization).
It is not possible to initialize a continuous integrator in steady state. For this reason, option "initType = SteadyState" is ignored for a continuous integrator block and interpreted as "initType = InitialState".
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | continuous (from PartialSampledBlock) | blockType == Types.BlockTypeWithGlobalDefault.Continuous or blockType == Types.BlockTypeWithGlobalDefault.UseSampleClockOption and sampleClock.blockType == Types.BlockType.Continuous | True, if continuous block, otherwise discrete block |
| Types.Init | init (from PartialSampledBlock) | Modelica_LinearSystems2.Controllers.Internal.convertToInit(initType, sampleClock.initType) | Type of initialization (no init/steady state/initial state/initial output) |
| Real | k | 1 | Integrator gain |
| Boolean | withDelay | false | True, if the output is delayed by one sample period (only if discrete) |
| Boolean | limitsAtInit | true | = false, if limits are ignored during initialization (i.e., y=u) |
| Advanced options | |||
| Types.BlockTypeWithGlobalDefault | blockType (from PartialSampledBlock) | Modelica_LinearSystems2.Controllers.Types.BlockTypeWithGlobalDefault.UseSampleClockOption | Type of block |
| Types.InitWithGlobalDefault | initType (from PartialSampledBlock) | Types.InitWithGlobalDefault.UseSampleClockOption | Type of initialization (no init/steady state/initial state/initial output) |
| Real | y_start | 0 | Initial or guess value of output (=state) |
| Advanced options › Discrete block parameters | |||
| Types.MethodWithGlobalDefault | methodType (from PartialSampledBlock) | Types.MethodWithGlobalDefault.UseSampleClockOption | Type of discretization if discrete block |
| Integer | sampleFactor (from PartialSampledBlock) | 1 | Sample factor (Ts = sampleFactor * sampleClock.sampleTime) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | limit1 | Connector of Real input signal used as maximum of input u | |
| Modelica.Blocks.Interfaces.RealInput | limit2 | Connector of Real input signal used as minimum of input u | |
| Modelica.Blocks.Interfaces.RealInput | u | Continuous or discrete input signals of block | |
| Modelica.Blocks.Interfaces.RealOutput | y | Continuous or discrete output signals of block |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_LinearSystems2.WorkInProgress.Controller.Integrator | integrator | ||
| Modelica.Blocks.Nonlinear.VariableLimiter | variableLimiter | ||
| Modelica.Blocks.Math.Add | addSat | ||
| Modelica_LinearSystems2.Controllers.Internal.Add | add | ||
| Modelica_LinearSystems2.Controllers.Sampler | sampler1 | ||
| Modelica_LinearSystems2.Controllers.Sampler | sampler2 | ||
| Modelica_LinearSystems2.Controllers.Sampler | sampler3 | ||
| Modelica.Blocks.Math.Gain | gain | ||
| Modelica_LinearSystems2.Controllers.UnitDelay | unitDelay | ||
| Modelica.Blocks.Math.Abs | abs1 | ||
| Modelica.Blocks.Logical.GreaterThreshold | greaterThreshold | ||
| Modelica.Blocks.Logical.Switch | switch1 | ||
| Modelica.Blocks.Sources.Constant | const |