INTE – Controlled integrator

Block SymbolLicensing group: STANDARD
PIC

Function Description
The INTE block implements a controlled integrator with variable integral time constant ti and two indicators of the output signal level (ymin a ymax). If RUN = on and R1 = off then

y(t) = 1 Ti0tu(τ)dτ + C,

where C = y0. If RUN = off and R1 = off then the output y is frozen to the last value before the falling edge at the RUN input signal. If R1 = on then the output y is set to the initial value y0. The integration uses the trapezoidal method as follows

yk = yk1 + TS 2Ti(uk + uk1),

where TS is the block execution period.

Consider using the SINT block, whose simpler structure and functionality might be sufficient for elementary tasks.

Inputs

u

Analog input of the block

Double (F64)

RUN

Enable execution

Bool

off ..

Integration stopped

on ...

Integration running

R1

Block reset, initialization of the integrator output to y0

Bool

y0

Initial output value

Double (F64)

ti

Integral time constant

Double (F64)

Outputs

y

Integrator output

Double (F64)

Q

Running integration indicator

Bool

LY

Lower level indicator (y < ymin)

Bool

HY

Upper level indicator (y > ymax)

Bool

Parameters

ymin

Lower level definition  -1.0

Double (F64)

ymax

Upper level definition  1.0

Double (F64)

2020 © REX Controls s.r.o., www.rexygen.com