TOFΒΆ

Provided by standard.lib.

The function block TOF implements a turn-off delay..

TOF(IN, PT, Q, ET) means:

IN and PT are input variables type BOOL respectively TIME. Q and E are output variabls type BOOL respectively TIME. If IN is TRUE, the outputs are TRU respectively 0.

As soon as IN becomes FALSE, in ET 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 FALSE when IN is FALSE und ET equal PT. Otherwise it is TRUE.

Thus, Q has a falling edge when the time indicated in PT in milliseconds has run out.

Graphic display of TOF behavior over time:

../_images/3c6bfe0e4375a1320a33139006eab46b

Declaration example

TOFInst : TOF ;

Example in IL

CAL TOFInst(IN := VarBOOL1, PT := T#5s)

LD TOFInst.Q

ST VarBOOL2

Example in FBD

../_images/6a765ae84375a0e40a33139006eab46b

Example in ST

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

VarBOOL2 :=TOFInst.Q;