Uploaded October 2026 | Updated November 2026, 3 hours ago
PLC timers explained: TON on-delay, TOF off-delay and RTO retentive timer in one ladder logic program, with preset, accumulator and done bit on each.
โก QUICK ANSWER
PLC timers differ only in what they do when the rung changes state. A TON times while its rung is true and drops its accumulator straight back to zero the instant the rung goes false, so dropping out at 1.9 seconds of a 2 second preset achieves nothing and the next attempt starts from zero. A TOF is the mirror image: its done bit turns on the moment the rung goes true, and when the rung goes false it starts timing and holds the done bit until the preset is reached, which is what a cooling fan or an exhaust purge needs. An RTO times like a TON but keeps its accumulated time through every stop and carries on from where it left off, and only a reset instruction at the same address clears it. Forget that reset and the RTO never times again.
๐ FULL WRITTEN TUTORIAL + DOWNLOADS
accautomation.ca/plc-timers-explained-ton-tof-rto
โถ RUN IT NOW, FREE IN YOUR BROWSER
accautomation.ca/simulator
โฑ๏ธ TIMESTAMPS
00:00 PLC Timers Explained: TON vs TOF vs RTO
00:48 Three Timers, Three Questions
01:13 What Every Timer Has
01:36 TON, the On-Delay Timer
02:00 TOF, the Off-Delay Timer
02:21 RTO, the Retentive Timer
02:42 Step One, Define the Task
03:16 Step Two, Define the I/O
03:40 Step Three, the Sequence
04:01 Step Four, the Program
04:25 The Structured Text Version
04:48 Step Five, Testing TON TOF RTO
05:56 The Service Interlock
06:32 Three Timers, One Program
06:52 Try It Yourself
๐ WHAT YOU'LL LEARN
โ Pick the right timer by asking what should happen when the rung changes state
โ Read a preset in milliseconds, so 2000 means two seconds
โ Chain three timers so each one's done bit drives the next
โ Build a run-time total that blocks restarts at a service interval
โ Always pair an RTO with a reset instruction at the same address
โ Recreate a retentive total in Structured Text, where no standard block exists
โ FREQUENTLY ASKED
Q: What is the difference between TON, TOF and RTO?
A: A TON times while its rung is true and resets the moment it goes false. A TOF turns its done bit on immediately and holds it for the preset after the rung goes false. An RTO times like a TON but keeps its accumulated time until a reset clears it.
Q: Why did my TON never finish?
A: Because the rung went false before the preset was reached. A TON has no memory, so the accumulator drops to zero and the next attempt starts again from nothing.
Q: What happens if I forget the reset on an RTO?
A: It reaches its preset once and stays there forever, because only a reset instruction at the same address clears the accumulator. Anything gated by that done bit stays locked out.
Q: Is there a retentive timer in Structured Text?
A: There is no standard retentive block. Time each run with an on-delay timer and bank the elapsed time when the rung drops, so the total is the banked time plus the current run.
Q: Why is the stop button wired normally closed?
A: So the input reads true while nobody is pressing it. A broken wire then looks the same as a pressed stop button and the motor stops either way.
๐ Full tutorial, example program and Structured Text file: accautomation.ca/plc-timers-explained-ton-tof-rto
๐ DOWNLOADS
โถ Ladder example: accautomation.ca/simulator/acc-example-timers-ton-tof-rto.json
โถ Structured Text: accautomation.ca/simulator/acc-example-timers-ton-tof-rto.st
๐ MORE RESOURCES
โถ Free PLC Simulator: accautomation.ca/simulator
โถ Series: accautomation.ca/series
โถ PLC Beginners Guide: accautomation.ca/programming/plc-beginners-guide
โถ Free eBooks: accautomation.ca (subscribe for download)
๐ RECOMMENDED HARDWARE
โถ Shop: automationdirect.com
โถ Parts Guide: accautomation.ca/purchase-find-parts
๐ฌ Which timer have you been bitten by? Drop a comment below.
๐ New tutorials every Monday โ Subscribe and hit the bell!
#PLC #LadderLogic #PLCTimer #IndustrialAutomation #PLCProgramming #ACCAutomation #PLCSimulator #StructuredText #LearnPLC
Regards,
Garry
ACC Automation
accautomation.ca
PLC timers explained: TON on-delay, TOF off-delay and RTO retentive timer in one ladder logic program, with preset, accumulator and done bit on each.
โก QUICK ANSWER
PLC timers differ only in what they do when the rung changes state. A TON times while its rung is true and drops its accumulator straight back to zero the instant the rung goes false, so dropping out at 1.9 seconds of a 2 second preset achieves nothing and the next attempt starts from zero. A TOF is the mirror image: its done bit turns on the moment the rung goes true, and when the rung goes false it starts timing and holds the done bit until the preset is reached, which is what a cooling fan or an exhaust purge needs. An RTO times like a TON but keeps its accumulated time through every stop and carries on from where it left off, and only a reset instruction at the same address clears it. Forget that reset and the RTO never times again.
๐ FULL WRITTEN TUTORIAL + DOWNLOADS
accautomation.ca/plc-timers-explained-ton-tof-rto
โถ RUN IT NOW, FREE IN YOUR BROWSER
accautomation.ca/simulator
โฑ๏ธ TIMESTAMPS
00:00 PLC Timers Explained: TON vs TOF vs RTO
00:48 Three Timers, Three Questions
01:13 What Every Timer Has
01:36 TON, the On-Delay Timer
02:00 TOF, the Off-Delay Timer
02:21 RTO, the Retentive Timer
02:42 Step One, Define the Task
03:16 Step Two, Define the I/O
03:40 Step Three, the Sequence
04:01 Step Four, the Program
04:25 The Structured Text Version
04:48 Step Five, Testing TON TOF RTO
05:56 The Service Interlock
06:32 Three Timers, One Program
06:52 Try It Yourself
๐ WHAT YOU'LL LEARN
โ Pick the right timer by asking what should happen when the rung changes state
โ Read a preset in milliseconds, so 2000 means two seconds
โ Chain three timers so each one's done bit drives the next
โ Build a run-time total that blocks restarts at a service interval
โ Always pair an RTO with a reset instruction at the same address
โ Recreate a retentive total in Structured Text, where no standard block exists
โ FREQUENTLY ASKED
Q: What is the difference between TON, TOF and RTO?
A: A TON times while its rung is true and resets the moment it goes false. A TOF turns its done bit on immediately and holds it for the preset after the rung goes false. An RTO times like a TON but keeps its accumulated time until a reset clears it.
Q: Why did my TON never finish?
A: Because the rung went false before the preset was reached. A TON has no memory, so the accumulator drops to zero and the next attempt starts again from nothing.
Q: What happens if I forget the reset on an RTO?
A: It reaches its preset once and stays there forever, because only a reset instruction at the same address clears the accumulator. Anything gated by that done bit stays locked out.
Q: Is there a retentive timer in Structured Text?
A: There is no standard retentive block. Time each run with an on-delay timer and bank the elapsed time when the rung drops, so the total is the banked time plus the current run.
Q: Why is the stop button wired normally closed?
A: So the input reads true while nobody is pressing it. A broken wire then looks the same as a pressed stop button and the motor stops either way.
๐ Full tutorial, example program and Structured Text file: accautomation.ca/plc-timers-explained-ton-tof-rto
๐ DOWNLOADS
โถ Ladder example: accautomation.ca/simulator/acc-example-timers-ton-tof-rto.json
โถ Structured Text: accautomation.ca/simulator/acc-example-timers-ton-tof-rto.st
๐ MORE RESOURCES
โถ Free PLC Simulator: accautomation.ca/simulator
โถ Series: accautomation.ca/series
โถ PLC Beginners Guide: accautomation.ca/programming/plc-beginners-guide
โถ Free eBooks: accautomation.ca (subscribe for download)
๐ RECOMMENDED HARDWARE
โถ Shop: automationdirect.com
โถ Parts Guide: accautomation.ca/purchase-find-parts
๐ฌ Which timer have you been bitten by? Drop a comment below.
๐ New tutorials every Monday โ Subscribe and hit the bell!
#PLC #LadderLogic #PLCTimer #IndustrialAutomation #PLCProgramming #ACCAutomation #PLCSimulator #StructuredText #LearnPLC
Regards,
Garry
ACC Automation
accautomation.ca










