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;
../_images/Tof.png
InOut:

Scope

Name

Type

Comment

Input

IN

BOOL

Falling edge: starts delay counter
Rising edge: resets delay counter

PT

TIME

Time for the delay counter [ms]

Output

Q

BOOL

TRUE if IN is TRUE
FALSE if IN is FALSE and delay time PT elapsed

ET

TIME

Elapsed time since falling edge at IN