Limited integrator

Integrates the input and holds the output inside its limits (the state stops at a limit instead of winding up).

  • signal
  • Modelica Standard Library
  • 2 ports
  • 3 parameters
BlockLimited integratorKindlimitedIntegratorLibraryContinuous

Description

Integrates its input and keeps the output between Lower limit and Upper limit: at a limit, integration stops while the input pushes further out, and an input of the other sign brings the output back at once (the Modelica library limited integrator). Use it for integral action that must not wind up.

Example

Step responses A unit step through a first-order filter, a second-order system, an integrator, a limited integrator, and a delay; a ramp through a derivative.

Step at 0.1 sFirst orderSecond orderIntegratorLimited to 1Delay 0.3 sRamp, slope 2Derivative
In Gradara, select a Limited integrator block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:StepRampIntegratorDerivativeLow-pass filterSecond-orderTransport delay

Ports

Inputs 1

  • u

    Input signal, the rate of change of the output.

Outputs 1

  • y

    Output signal, the limited integral of u.

Parameters

  • Upper limitoutMax1

    Upper limit of the output.

  • Lower limitoutMin-1

    Lower limit of the output. Should be below Upper limit.

  • Initial valuey_start0

    Value of the output at the start of the run, inside the limits.

Equations

Modelica
dy/dt = 0 if (y ≥ outMax and u > 0) or (y ≤ outMin and u < 0)
dy/dt = u otherwise
y = y_start at time 0

Implementation

Modelica Standard Library 4.1.0Modelica.Blocks.Continuous.LimIntegrator
MSL documentation

Assumptions and limitations

  • There is no reset input.

See also

Select a block in Gradara and press F1 to open its page offline.