ceo@instrumentationblog.in
PLC · How It Works

How a PLC On Delay Timer Works

Set the preset time PT and how long the input stays on. Watch the elapsed time count up in the TON block and see when the output turns on, or why it never does when the input drops too early.

Live animationAdjustable slidersFormula and example

Quick answer: An on delay timer (TON) starts timing when its input turns on and turns its output on only after the input has stayed on for the preset time. If the input turns off before that, the elapsed time resets to zero and the output never comes on.

What Is a PLC On Delay Timer (TON)?

The on delay timer is the most used timer in PLC programs. It is defined in the IEC 61131 standard as the TON function block, and almost every PLC offers the same behaviour under a similar name.

A TON has an input IN, a preset time PT, an output Q and an elapsed time ET. ET counts up while IN is on, and Q turns on when ET reaches PT.

Typical uses are delays before a motor starts, filters that ignore short sensor flickers and alarms that must persist for some seconds before they are raised. Understanding the reset behaviour avoids most timer bugs in the field.

Advertisement

How a PLC On Delay Timer Works: Interactive Animation

Numbered markers match the parts list below.
Output Q turns on…
Q stays on for…
Elapsed time ET now…
Preset in counts (10 ms time base)…
  1. 1Input contact I0.0 from a switch or sensor
  2. 2TON instruction block
  3. 3Preset time PT
  4. 4Elapsed time ET counting up
  5. 5Timer output Q driving coil Q0.0
  6. 6Timing diagram of IN, ET and Q

PLC On Delay Timer (TON) Working Principle Step by Step

  1. While the input IN is off, the elapsed time ET is held at zero and the output Q is off.
  2. When IN turns on, the timer starts and ET counts up in real time on every scan.
  3. When ET reaches the preset PT, ET stops at PT and Q turns on.
  4. Q stays on as long as IN stays on; when IN turns off, Q turns off at once and ET resets to zero.
  5. If IN turns off before ET reaches PT, ET resets and Q never turns on, so short pulses are ignored.

PLC On Delay Timer (TON) Labelled Diagram

Labelled diagram showing how a plc on delay timer works
Numbered parts: 1 input contact i0.0 from a switch or sensor; 2 ton instruction block; 3 preset time pt; 4 elapsed time et counting up; 5 timer output q driving coil q0.0; 6 timing diagram of in, et and q.
Advertisement

PLC On Delay Timer (TON) Formula

Q = IN AND (ET ≥ PT)
ET counts up while IN is on, stops at PT and resets to 0 when IN turns off
Q on time = input on time − PT (zero if the input is shorter than PT)
Preset in counts = PT ÷ time base; the timing error is up to about one scan time
Example: PT 3 s, input on for 5 s: Q turns on 3 s after the input and stays on for 2 s; with a 10 ms time base the preset is 300 counts

Main Parts of a PLC On Delay Timer (TON)

PartWhat it does
IN inputRung condition that starts the timer; usually a contact from a sensor or switch
PT presetThe delay to wait, entered as a time value or as counts of the time base
ET elapsed timeCurrent timed value; it can be shown on an HMI or used in compare instructions
Q outputTimer done bit that turns on when ET reaches PT
Time baseResolution of the timer, such as 1 ms, 10 ms or 100 ms, on PLCs that count in units

Where a PLC On Delay Timer (TON) Is Used

Start delayWaits a few seconds after a start command, for example to sound a warning horn before a conveyor moves.
Signal debounceIgnores short flickers from level switches or proximity sensors before acting.
Alarm delayRaises an alarm only if a low pressure or high temperature condition lasts longer than the preset.
Sequence stepsHolds each step of a batch or machine sequence for a fixed time before moving on.

Advantages

  • Simple and the same behaviour on almost every PLC
  • Filters out short unwanted pulses
  • ET can be shown on an HMI so operators see the countdown

Limitations

  • Resets fully if the input drops for even one scan
  • Accuracy is limited to about one scan time
  • Many timers with long presets make logic harder to follow

PLC On Delay Timer (TON) Field Tips and Common Problems

  • If a timer never finishes, watch IN online; a contact that flickers for one scan resets the TON every time.
  • Use a retentive timer (RTO or TONR) when the time must add up across interruptions, not a TON.
  • Check the time base and units of the preset; entering 30 in a 100 ms timer gives 3 s, not 30 s.
  • Avoid using the same timer address twice in a program; the last call in the scan decides its state.
Advertisement

Related Calculators and Tools

Frequently Asked Questions

What is the difference between TON and TOF?

TON delays turning the output on after the input turns on. TOF turns the output on at once and delays turning it off after the input turns off.

What happens if the input turns off before the preset time?

The elapsed time resets to zero and the output never turns on. The next time the input turns on, timing starts again from zero.

What is the difference between TON and RTO?

An RTO, or retentive timer, keeps its elapsed time when the input turns off and continues from there. It needs a separate reset instruction.

How accurate is a PLC timer?

The timer is updated in the scan, so the output can turn on up to about one scan time late. For short presets the scan time and input filter matter.

You May Also Like

Learn more on the blog

PLC timer instructions TON, TOF and RTO

A practical guide on instrumentationblog.in that goes deeper into this topic with field examples.

Read Full Article

More How It Works

All How It Works animations · Instrumentation glossary · Comparisons

Advertisement