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
INBOOLRising edge: starts delay counterFalling edge: resets delay counterPTTIMETime for the delay counter [ms]
Output
QBOOLFALSEifINisFALSETRUEifINisTRUEand delay timePTelapsedETTIMEElapsed time since rising edge at
IN