Skip to main content

Timers Explained — TON, TOF, RTO in PLC Ladder Logic

 Timers Explained — TON, TOF, RTO in PLC Ladder Logic

Sooner or later, every rung you write needs to wait for something. A pump that shouldn't stop the instant its command drops, a damper that needs a few seconds to actually reach position before the fan is allowed to start, an alarm that shouldn't scream the moment a reading blips for half a second. Every one of those situations comes down to the same three instructions: TON, TOF, and RTO. Learn these three cold, and you've covered probably ninety percent of the timing logic you'll ever write on a real plant.





Why Timers Exist in the First Place

A plain contact and coil only know two states: on or off, right now, with no memory of how long anything has been true. Most real equipment doesn't behave that cleanly. A conveyor needs a few seconds of run-up before a downstream sensor is believed. A trip condition might need to persist for a second or two before it's treated as real, so a single noisy pulse from a sensor doesn't shut down a kiln. A pump might need to keep running for a short cooldown period after its command drops, so it doesn't deadhead against a closed valve.

Timers give ladder logic a sense of elapsed time. Instead of asking "is this true right now," a timer lets you ask "has this been true for long enough," or "has it been false for long enough." That distinction is the whole reason these three instructions exist, and it's also exactly where they differ from each other.

TON — Timer On-Delay

TON is the one you'll use constantly, so it's worth understanding thoroughly before touching the other two.

A TON timer starts counting the moment its input goes true, and it counts upward, continuously, for as long as that input stays true. Once the accumulated time reaches the preset value you've configured, the timer's done bit turns on — and that done bit is what you actually use elsewhere in your logic to trigger something.

Here's the part that trips people up the first time: the moment the input goes false again, before the preset is reached, the timer doesn't pause. It resets straight back to zero. There's no partial credit. If your preset is ten seconds and the input drops out at nine, you're not one second away from done — you're back at zero, waiting for another full ten seconds the next time the input goes true.

Think about a damper actuator on a kiln ID fan. You command it to open, but the physical damper takes a few seconds to actually travel to position — it's not instantaneous just because the command bit went high. A TON timer sitting on that "damper commanded open" signal, with a preset matched to the real travel time, gives you a "damper confirmed open" bit only after enough time has genuinely passed for the damper to have gotten there. The fan start permissive downstream watches that timer's done bit, not the raw command — so the fan can't start prematurely against a damper that's still mid-travel.

That's TON in one sentence: it delays turning something ON until an input has stayed true long enough.



TOF — Timer Off-Delay

TOF is built almost the opposite way, and once you understand TON, TOF is really just a mirror image of it.




A TOF timer's output turns on immediately, the instant its input goes true — no delay at all on the way in. The delay only shows up on the way out. When the input drops from true to false, the output doesn't drop immediately with it. Instead, the timer starts counting, and the output stays on for the full preset duration after the input has already gone false. Only once that preset time has elapsed does the output finally turn off.

This is the instruction you reach for whenever something needs to keep running a little longer after its trigger has already ended. A common example is a fan or pump cooldown. Say a motor's command drops out — maybe the process called for it to stop, or an operator hit Stop. But you don't necessarily want the physical equipment to cut off instantly; you might want a blower to keep running for another thirty seconds to clear residual heat, or a lube pump to keep circulating briefly after the main motor it protects has already stopped. Wire the motor's stop command into a TOF timer, and the output — which drives the actual cooldown equipment — stays energized for the preset duration after the main stop signal, then drops on its own once the timer finishes.

Notice the practical difference from TON: TON delays the turn-ON, TOF delays the turn-OFF. Same basic idea of "wait before doing something," but applied to opposite transitions.


RTO — Retentive Timer On

RTO looks a lot like TON at first glance — it also counts up while its input is true, and it also has a done bit that turns on once the accumulated value hits the preset. The difference is entirely in what happens when the input goes false.


Remember how TON resets to zero the instant its input drops? RTO doesn't. When an RTO's input goes false, the accumulated time simply freezes exactly where it is — it doesn't reset, and it doesn't keep counting either. It just holds. The next time the input goes true again, counting resumes from wherever it left off, not from zero. The only thing that ever resets an RTO's accumulator back to zero is a separate, dedicated reset instruction that you have to wire in deliberately.



This retentive behavior is exactly what makes RTO useful for accumulating total elapsed time across multiple separate occurrences, rather than measuring one continuous stretch. A classic example is tracking total running hours on a piece of equipment for maintenance scheduling — you want the accumulated runtime to keep building up across every start and stop the motor goes through over a shift, a week, a month, not reset back to zero every single time the motor happens to stop for a few minutes. An RTO wired to the motor's run signal keeps quietly building that total, pausing whenever the motor is off, and only clearing when you deliberately reset it — typically after maintenance has been performed and you want the clock to start over.



It's also worth being a little careful with RTOs, precisely because of that retentive behavior. If you forget to wire in a reset, or forget to actually trigger it when you meant to, that accumulator just keeps quietly holding old time from occurrences you may have intended to have been cleared already. That's usually not what a beginner wants for straightforward delay logic — which is exactly why TON, not RTO, is the default choice for most everyday timing.



Putting the Three Side by Side

It helps to line all three up against the same simple question: what does the timer do to its output, and what does it do to its accumulator, at each transition of its input?

TON — output turns on only after the input has been true for the full preset. Accumulator resets to zero the instant the input goes false.

TOF — output turns on immediately with the input. Output stays on for the preset duration after the input goes false, then turns off. Accumulator resets once that off-delay finishes.

RTO — output turns on after the input has been true for the full preset, same as TON. But the accumulator holds its value when the input goes false instead of resetting, and only a dedicated reset instruction clears it back to zero.

If you're ever unsure which one a piece of logic needs, ask yourself two questions. First: does the delay belong on the way something turns on, or on the way it turns off? That separates TON and RTO from TOF. Second: should the timer forget everything the instant the input drops, or should it remember and keep accumulating across separate occurrences? That's what separates plain TON from RTO.

Why This Matters on a Real Plant

Timers show up constantly once you start looking for them. A start permissive waiting on a damper to physically reach position is a TON. A lube pump cooldown that keeps running briefly after the main motor stops is a TOF. A running-hours counter feeding your preventive maintenance schedule is an RTO. Even something as simple as debouncing a noisy proximity switch — refusing to trust a signal until it's stayed steady for a fraction of a second — is a TON quietly doing its job in the background.

None of these three instructions are complicated on their own. What actually separates a technician who's comfortable with timers from one who isn't is recognizing, from the behavior the process needs, which of the three transitions you're actually trying to delay — and whether the timer needs to forget or remember what happened last time.

Recap

TON (Timer On-Delay) — delays turning an output ON. Resets to zero the moment the input goes false.

TOF (Timer Off-Delay) — output follows the input immediately on the way up, but delays turning OFF after the input drops.

RTO (Retentive Timer On) — behaves like TON on the way up, but holds its accumulated value when the input drops instead of resetting. Needs a dedicated reset instruction to clear.

Ask yourself which transition needs the delay — turning on or turning off — and whether the timer should forget or remember between occurrences. That question alone gets you to the right instruction almost every time.


Recent & Popular Articles


🎥 Watch It Explained on PLC Key Channel

Prefer video? I break down topics like this with animations on my YouTube channel.

▶ Watch the full playlist on PLC Key Channel →

🛠️ Tools I Actually Use in the Field

A few affiliate links to tools that come up constantly in instrumentation work — I only list things I'd recommend to my own team:

As an Amazon Associate I earn from qualifying purchases. It doesn't cost you anything extra.

Got a specific instrumentation problem you're stuck on? Drop it in the comments — I answer based on real plant troubleshooting, not textbook theory.

Comments

Popular posts from this blog

Capacitive Level Sensors

Capacitive Type Level Sensors Capacitive type level switches and transmitters are widely used in industrial level measurements. The capacitor is made up of two plates and isolated by some isolators having a fixed dielectric constant. But in level measurement we use a variable capacitor, capacitance can be changed by changing the gap between the two plates or by changing the dielectric constant, so dielectric constant changes and proportional to that capacitance also changes. Capacitive level switches  Capacitive level switches are used in industrial applications for the point-level sensor to detect a high or low level of a vessel or tank. Working principle of capacitive level switch  In capacitance type level switches, there are two main units: 1. Capacitive probe 2. controller  The capacitive probe is made up of two plates mostly in the shape of two rods. and the material we want to sense acts as a gap between the plates.  As material touches, the sensor probe, the...

Radar level measurement

 Radar Level  Radar level transmitter are used to measure level in industrial applications. Radar level measurement method is an advanced method. In radar level transmitter time of flight method is used to measure the level. By calculating this time of flight we measure the level of liquid or solids.  RADAR level have a transmitter which transmit microwave or radar waves after colliding with material they return back to the receiver.  The time from the transmitter to the echo return to the receiver, is calculated, which is proportional to the level. This time is calculated by the formula:  Distance = (Speed of light x time delay) / 2 This calculation is done by a built in microprocessor and the level is displayed on screen or lcd, a signal proportional to level in 4 to 20 mA is output of level transmitter , this standard current signal of 4 to 20 mA is for plc or dcs. Time of Flight technology  Time of flight technology is used in  devices that are mu...

Top 50 Instrumentation Interview Questions

 Instrumentation Interview Questions and Answers Instrumentation Interview Questions and Answers There are different questions that you can be asked in an interview for the post of instrument technician, instrumentation engineer, or instrument supervisor. Most interview questions are related to the industry you are going to apply to, and they prefer a skilled person and have a good knowledge of instruments used in that specific industry. Here I will try to write the question with answers that are mostly asked for instrumentation professionals. Q. No. 1:  What is instrumentation? Ans :  Instrumentation is a branch of science which deals with the measurement and control of process variables in a process. Q. No. 2  What is the process? Ans :  The process is defined as the adoption of series of steps or methods to acquire a predefined result. Q. No. 3  What is a process variable? Ans :  It is a variable in the process that we are attempting to maintain...