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

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

ti

Integral time constant

double

Outputs

y

Integrator output

double

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

ymax

Upper level definition  1.0

double

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