INTE – Controlled integrator

Block SymbolLicensing group: STANDARD

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 $\mathtt{\text{RUN}}=\mathtt{\text{on}}$ and $\mathtt{\text{R1}}=\mathtt{\text{off}}$ then

$y\left(t\right)=\frac{1}{{T}_{i}}{\int }_{0}^{t}u\left(\tau \right)d\tau +C,$

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

${y}_{k}={y}_{k-1}+\frac{{T}_{S}}{2{T}_{i}}\left({u}_{k}+{u}_{k-1}\right),$

where ${T}_{S}$ 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 ($\mathtt{\text{y}}<\mathtt{\text{ymin}}$) Bool HY Upper level indicator ($\mathtt{\text{y}}>\mathtt{\text{ymax}}$) Bool

Parameters

 ymin Lower level definition  $\odot$-1.0 Double (F64) ymax Upper level definition  $\odot$1.0 Double (F64)

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