TP (FB)¶
FUNCTION_BLOCK TP
Implements a pulse timer
(* Example declaration *)
TPInst : TP ;
(* Example in ST *)
TPInst(IN := VarBOOL1, PT:= T#5s);
VarBOOL2 := TPInst.Q;
- InOut:
Scope
Name
Type
Comment
Input
INBOOLRising edge starts the pulse timer and sets
QtoTRUEPTTIMELength of the pulse (high-signal)
Output
QBOOLPulse signal, set to
TRUEforPTmilliseconds ifENhas a rising edgeETTIMEElapsed time since pulse timer started. It will then remain constant after
PTis reached.