TPΒΆ

Provided by standard.lib.

The function block Timer is a trigger. TP(IN, PT, Q, ET) means:

IN and PT are input variables of the BOOL and TIME types respectively. Q and ET are output variables of the BOOL and TIME types respectively. If IN is FALSE, Q is FALSE and ET is 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 as from IN has got TRUE and ET is less than or equal to PT. Otherwise it is FALSE.

Q returns a signal for the time period given in PT.

Graphic Display of the TP Time Sequence

../_images/523b616e4375a2d70a33139006eab46b

Declaration example:

TPInst : TP ;

Example in IL

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

LD  TPInst.Q

ST  VarBOOL2

Example in FBD

../_images/ac69a5a34375a26a0a33139006eab46b

Example in ST

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

VarBOOL2 :=TPInst.Q;