TP¶
Provided by Standard Library.
Timer function block, working as a trigger. A timer is counted up until a given limit is reached. During counting up a “pulse” variable is TRUE, otherwise it is FALSE.
Inputs:
IN : BOOL; At a rising edge counting up the time in ET will be started.
PT : TIME; Upper limit of the time.
Outputs:
Q : BOOL; TRUE as long as the time is being counted up in ET (pulse).
ET : TIME; Current state of the time.
TP(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 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
Declaration example:\ \ \ \
TPInst : TP ;
Example in IL:\ \ \ \
Example in FBD:\ \ \ \
Example in ST:\ \ \ \
TPInst(IN := VarBOOL1, PT:= T#5s);
VarBOOL2 :=TPInst.Q;