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
INBOOLFalling edge: starts delay counterRising edge: resets delay counterPTTIMETime for the delay counter [ms]
Output
QBOOLTRUEifINisTRUEFALSEifINisFALSEand delay timePTelapsedETTIMEElapsed time since falling edge at
IN