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.

../_images/09e678fc1e8f870cc0a8640e01947982

Graphic display of TON behavior over time:

Declaration example:\ \ \ \

TONInst : TON ;

Example in IL:\ \ \ \

../_images/f50475ae1e8f8734c0a8640e01947982

Example in FBD:\ \ \ \

../_images/ffa77bf61e8f8660c0a8640e01947982

Example in ST:\ \ \ \ :

TONInst(IN := VarBOOL1, PT:= T#5s);