TON (timer, on-delay)

The TON instruction increases an internal timer up to a given value.
Operation details:
  • Do not use a jump to skip over a TON instruction block in a ladder diagram. If a jump is used, the TON timer continues after the elapsed time.
  • For example: Rung 1 contains a jump; rung 2 contains a TON instruction block with an elapsed time of 10 seconds; enable the jump from rung 1 to rung 3; disable the jump after 30 seconds; the elapsed time is 30 seconds - not 10 seconds as defined in the elapsed time.
  • If the EN parameter is used with TON, 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.
TON
TON
TON parameters
Parameter
Parameter type
Data type
Description
IN
Input
BOOL
Input control.
  • TRUE: If rising edge, starts increasing internal timer.
  • FALSE: If falling edge, stops and resets internal timer.
PT
Input
TIME
Maximum programmed time defined using Time data type.
Q
Output
BOOL
  • TRUE: Programmed time has elapsed.
  • FALSE: Programmed time has not elapsed.
ET
Output
TIME
Current elapsed time. Possible values range from 0ms through 1193h2m47s294ms.

TON examples

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