INTEGRAL (FB)¶
FUNCTION_BLOCK INTEGRAL
determines approximately the integral over time.
Example: Function block in FBD
- InOut:
Scope
Name
Type
Initial
Comment
Input
INREALInput value
TMDWORDTime since last call in msec
RESETBOOLTRUE:OUTis set to zero andOVERFLOWtoFALSEOutput
OUTREALValue of the integral. This is done by summing all part integrals
IN * TMOVERFLOWBOOLFALSE
TRUE: The value ofOUTis out of range of REAL variables. he function is blocked till it is new initialised by inputRESET.