TP (pulse timing)

On a rising edge, the TP instruction increases an internal timer up to a given value. If the timer is elapsed, the internal time is reset.
Operation details: If the EN parameter is used with TP, the timer starts incrementing when EN is set to TRUE, and continues to increment even if EN is set to FALSE.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
TP
TP
TP parameters
Parameter
Parameter type
Data type
Description
IN
Input
BOOL
  • TRUE: If rising edge, starts increasing internal timer (if not already increasing).
  • FALSE: If timer has elapsed, resets the internal timer. Any change to IN during counting has no effect.
PT
Input
TIME
Maximum programmed time defined using the Time data type.
Q
Output
BOOL
  • TRUE: Timer is counting.
  • FALSE: Timer is not counting.
ET
Output
TIME
Current elapsed time.
Possible values range from 0ms through 1193h2m47s294ms.

TP examples

TP timing diagram
TP timing diagram
TP function block diagram example
TP function block diagram example
TP ladder diagram example
TP ladder diagram example
TP structured text example
TP structured text example
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal