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

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