TONΒΆ
Provided by Standard Library.
Timer function block, implements a turn-on delay. When the input gets TRUE, first a certain time will run through until also the output gets TRUE.
Inputs:
IN : BOOL; Rising edge starts counting up ET.
PT : TIME; Upper limit for counting up ET (delay time).
Outputs:
Q : BOOL; Gets a rising edge as soon as ET has reached the upper limit PV (delay time is over).
ET : current state of delay time.
TON(IN, PT, Q, ET) means:
If IN is FALSE, Q will be FALSE and ET will be 0.
As soon as IN becomes TRUE, the time will begin to be counted in milliseconds in ET until its value is equal to PT. It will then remain constant.
Q is TRUE when IN is TRUE and ET is equal to PT. Otherwise it is FALSE.
Thus, Q has a rising edge when the time indicated in PT in milliseconds has run out.
Graphic display of TON behavior over time:
Declaration example:\ \ \ \
TONInst : TON ;
Example in IL:\ \ \ \
Example in FBD:\ \ \ \
Example in ST:\ \ \ \ :
TONInst(IN := VarBOOL1, PT:= T#5s);