INTEGRAL¶
This function block ( The library UTIL.Library\ \) approximately determines the integral of the function.
Analogous to DERIVATIVE the function value is delivered as a REAL variable by using IN.
TM contains the time which has passed in msec in a DWORD.
By TRUE in input RESET the function block can be restarted.
Output OUT is of type REAL.
The integral is approximated by two step functions. The average of these is delivered as the approximated integral.
If the value of the initegral out of range of the REAL variable (approx. ±10:sup:38), then the boolean output variable OVERFLOW is TRUE and the function is blocked till it is new initialised by input RESET.
Example in FBD - Integration of a linear function\ \ \ \
INTEGRAL in FBD
Integration of a linear function