TOF (FB)ΒΆ
FUNCTION_BLOCK TOF
Implements a timer with a turn-off delay
(* Example declaration *)
TOFInst : TOF ;
(* Example in ST *)
TOFInst(IN := VarBOOL1, PT:= T#5s);
VarBOOL2 := TOFInst.Q;

- InOut:
Scope
Name
Type
Comment
Input
IN
BOOL
Falling edge: starts delay counterRising edge: resets delay counterPT
TIME
Time for the delay counter [ms]
Output
Q
BOOL
TRUE
ifIN
isTRUE
FALSE
ifIN
isFALSE
and delay timePT
elapsedET
TIME
Elapsed time since falling edge at
IN