PLC Timer Instructions TON/TOF/RTO: 4 Critical Uses

Share:
DCS & Automation
PLC Timer Instructions: TON, TOF and RTO

TON delays turning something on. TOF delays turning something off. RTO remembers time even when nothing is running, adding it all up across many separate runs.

All three instructions share the same preset and accumulated time parameters, yet each one treats the accumulated value completely differently once the input goes false.

Picking the wrong one of the three is a quiet mistake, since the logic often looks correct until a real machine cycle exposes the difference.

This guide breaks down all three timers, then hands over a calculator that runs the timing math for any of them.

TON / TOF / RTO Timer Calculator Accumulated Time Behavior Real Machine Examples

PLC timer instructions TON, TOF and RTO each measure elapsed time against a preset, but differ in exactly what triggers timing and what happens to the accumulated value: TON delays an output turning on, TOF delays an output turning off, and RTO keeps its accumulated time even after the input goes false, resetting only with a separate RES instruction.

Almost every PLC program needs to delay something, whether that is waiting before a motor starts, keeping a fan running a little longer after shutdown, or tracking total run hours for maintenance.

TON, TOF and RTO cover those three needs, and mixing them up produces logic that compiles fine but behaves wrong the first time a real cycle interrupts it.

PLC Timer Instructions

This article works through how each timer actually behaves, their shared parameters, and a calculator for running the timing math on any of the three.

How TON, On Delay, Actually Works

TON starts counting the moment its input goes true, and its done bit turns on once the accumulated time reaches the preset.

If the input drops false before the preset is reached, the accumulated value resets straight back to zero, and the whole delay has to start over from the beginning next time.

TON is the timer to reach for whenever an action needs to wait a fixed amount of time after a condition becomes true, like a warning horn before a conveyor starts moving.

Advertisement
Advertisement

How TOF, Off Delay, Actually Works

TOF is the mirror instruction. Its output turns on immediately when the input goes true, no delay at all on the way in.

Once the input drops false, TOF starts counting, and the output stays on for the full preset duration before finally turning off.

TOF fits perfectly wherever something needs to keep running briefly after a stop signal, like a cooling fan continuing after a motor shuts down.

TON: Output Waits After Input Input true, timing Output ON TOF: Output Lingers After Input Input true, output ON Input false, timing down
TON holds the output back until the preset elapses after the input turns true. TOF holds the output on for the preset duration after the input turns false.

How RTO, Retentive On Delay, Actually Works

RTO behaves like TON in one way, timing toward a preset before its done bit turns on, but with one critical difference: the accumulated value never resets on its own.

When the input drops false, RTO simply pauses. The next time the input goes true, timing resumes exactly where it left off, adding to the same accumulated total.

Only a separate RES instruction clears an RTO's accumulated value back to zero, which makes it the right choice for tracking total run time across many separate on and off cycles.

Timer Instruction Parameters Compared

ParameterFull NameWhat It Does
PRE / PTPreset TimeThe target duration the instruction times toward
ACC / ETAccumulated TimeThe running elapsed time, behavior differs by timer type
DN / QDone BitTurns on once the timed condition for that instruction is met
RESReset InstructionClears an RTO's accumulated value back to zero when true
Advertisement
Advertisement

TON / TOF / RTO Timer Calculator

Pick a timer type, set a preset, and enter the relevant elapsed time to see the resulting accumulated value and output state.

TON / TOF / RTO Timer Calculator
Runs the timing math for any of the three timer types
-
-

Three Timer Scenarios Worked Through

A TON with a 5 second preset that has seen 3 continuous seconds of true input is still short of its target, and if the input drops now, that 3 seconds is lost entirely.

Type = TON, Preset = 5s, Elapsed = 3s
Done Bit = OFF, resets to 0 if input drops now

A TOF with a 3 second preset that has been false for 4 seconds has already timed out, the output turned off 1 second ago.

Type = TOF, Preset = 3s, Elapsed since input false = 4s
Output = OFF

An RTO with a 10 second preset that has accumulated 7 seconds across several separate on periods still needs 3 more seconds of true input, whenever it next arrives, since nothing was lost when the input went false in between.

Type = RTO, Preset = 10s, Cumulative elapsed = 7s
Done Bit = OFF, 7s preserved until reset
Advertisement
Advertisement

Four Real Timer Instruction Applications

TON: Startup Warning Horn

A horn sounds for a preset duration before a conveyor motor actually starts moving, giving people nearby time to clear the area.

TOF: Cooling Fan Overrun

A fan keeps running for a preset duration after the main motor stops, letting heat dissipate before the fan finally shuts off.

RTO: Maintenance Hour Tracking

Cumulative run time accumulates across every start and stop, triggering a service alert once total hours cross a preset threshold.

TON: Alarm Debounce Delay

A pressure alarm only trips after a condition holds true for several continuous seconds, filtering out brief harmless spikes.

PLC Timer Instruction Do's and Don'ts

✓ Do

  • Use RTO specifically when a total needs to survive the input going false repeatedly
  • Pair every RTO with an explicit RES instruction somewhere in the program
  • Use TOF whenever an output genuinely needs to outlast its triggering input
  • Confirm the timer base, seconds or milliseconds, matches what the preset value assumes

✗ Don't

  • Use a plain TON where cumulative time across interruptions actually matters, it will reset every time
  • Forget that TOF's output turns on immediately, with no delay, the delay only applies going off
  • Assume every platform names timer parameters the same way, PRE and ACC versus PT and ET
  • Leave an RTO without any reset path, its accumulated value will only ever grow

Resources on PLC Timer Instructions

DOC
PLC Timer Explained: TON, TOF, RTO, TP Plus Examples
controlsystemguide.com
DOC
PLC Timers Explained: TON, TOF, RTO with Ladder Logic Examples
plcblog.in
Advertisement
Advertisement

PLC Timer Instructions Questions Engineers Ask

What is the main difference between TON and RTO?
Both count toward a preset while their input is true, but TON resets its accumulated value to zero the instant the input goes false, while RTO simply pauses and keeps its accumulated value until a separate RES instruction clears it.
Does TOF delay the output turning on or turning off?
Only turning off. TOF's output activates immediately when the input goes true, with no delay at all. The delay only applies after the input goes false, keeping the output on for the preset duration before it finally switches off.
Why does an RTO need a separate reset instruction?
Because RTO is designed to accumulate time across many separate on periods without losing progress. Without an explicit RES instruction somewhere in the program, that accumulated value would only ever grow and never return to zero on its own.
Can a timer preset be set in milliseconds instead of seconds?
Yes, most platforms let the timer base be configured, commonly milliseconds or seconds, and the preset value is interpreted according to whatever base is selected. Mismatching the base against the intended preset is a common source of timing bugs.
What happens to a TON's accumulated value if the input flickers true and false rapidly?
Every time the input drops false, TON resets its accumulated value to zero. Rapid flickering means the timer keeps restarting from zero and the done bit may never actually turn on.
Is a PLC timer instruction different from a 555 timer IC circuit?
Yes, a 555 timer IC is a physical analog and digital hybrid chip generating timing pulses through resistor and capacitor charging. A PLC timer instruction is software logic evaluated once per scan cycle, counting elapsed scan time against a programmed preset.

External References

What We Learn Today

  • TON delays an output turning on, and its accumulated value resets to zero if the input goes false early.
  • TOF turns its output on immediately, then delays turning it off once the input goes false.
  • RTO times toward a preset like TON but never resets its accumulated value on its own, only a RES instruction clears it.
  • Choosing the right timer type depends entirely on whether interrupted time should be lost or preserved.
"TON makes you wait to start. TOF makes you wait to stop. RTO never lets you forget how long you already waited."

Leave a Reply

Your email address will not be published. Required fields are marked *