Industrial Automation

PLC Timer and Counter Instructions: Ladder Logic Programming Guide Episode 8 (Updated June 2026)

Learn PLC Timer and Counter instructions in Ladder Logic — TON, TOF, RTO, CTU, CTD and CTUD explained with practical exercises. Episode 8 of our PLC and SCADA Beginners Guide for industrial automation engineers.

AB
ABC Trainings Team
June 9, 2026 — 10 min read

PLC Timer and Counter Instructions: Ladder Logic Programming Guide Episode 8 (Updated June 2026) (Updated June 2026)

Here's the thing about PLC Timer and Counter instructions — they show up in virtually every real-world automation program, and they're the first advanced topic where beginners either click or stall. Most conveyor systems, assembly lines, and packaging machines at plants like Bajaj Auto Waluj (Plot G-137, MIDC Waluj) and Endurance Technologies (Plot E-92, MIDC Waluj) are built around precisely sequenced timers: delay this valve for 500ms, hold that clamp for 3 seconds, count 10 parts before opening the reject gate. With AURIC's ₹71,343 crore manufacturing push creating 62,405 jobs in Chhatrapati Sambhajinagar and demand for PLC programmers running high across automation-heavy industries, mastering timers and counters is one of the fastest ways to move from trainee to job-ready. Episode 8 of our PLC and SCADA Beginners Guide covers all six standard instructions: TON, TOF, RTO, CTU, CTD, and CTUD.

TL;DR
  • TON (Timer On Delay) starts counting when the enable input goes TRUE and turns on the output after the preset time elapses
  • TOF (Timer Off Delay) keeps the output ON for a set time after the enable input drops FALSE — used for motor cooling and conveyor coasting
  • RTO (Retentive Timer On) accumulates time across multiple enable-input pulses — useful for tracking total machine run-hours
  • CTU (Count Up) increments its accumulator each time the count input has a rising edge — outputs TRUE when accumulator reaches preset
  • CTD (Count Down) decrements from a preset and CTU/CTD can be combined in CTUD for bidirectional counting on reversible conveyors

Why Timers and Counters Are Central to PLC Programming

In a pure combinational Ladder Logic program, outputs respond immediately to inputs — push a button, a motor starts; release the button, it stops. But virtually every real industrial process needs time-based and count-based sequencing. A hydraulic press needs a 2-second dwell after clamping before the punch descends. A conveyor needs to keep running for 5 seconds after the emergency stop button is released, to clear any in-transit parts. A filling station needs to count 12 bottles before triggering the cardboard boxing station. None of these are possible with basic relay-equivalent logic alone — you need Timers and Counters. What most people don't realize is that Timer and Counter instructions in IEC 61131-3 Structured Text and Allen-Bradley Ladder have slightly different syntax, but the same underlying logic. Once you understand how a TON works conceptually — the enable goes TRUE, accumulator starts counting up, done bit turns on when accumulator reaches preset — you can implement it in any PLC platform: Siemens S7-300/400/1200/1500, Allen-Bradley Micro850/ControlLogix, Mitsubishi FX/Q, Delta, or OMRON CJ. At Skoda VW Shendra (Plot A-1/1, AURIC Shendra) and Bajaj Auto Waluj (Plot G-137, Sambhajinagar), production engineers work with Siemens S7 PLCs where timers are part of the IEC standard function block library. At Endurance Technologies (Plot E-92, MIDC Waluj) and Hyosung Bidkin, Allen-Bradley and Mitsubishi installations are common. Understanding the concept is more important than memorising syntax.

PLC Timer and Counter Instructions: Ladder Logic Programming Guide Episode 8 (Updated June 2026)
Real student workshop at ABC Trainings

TON, TOF and RTO: Timer Instructions Explained with Examples

TON (Timer On Delay) is the most commonly used timer. It has three operands: Enable (EN) — the input rung condition that starts the timer; Preset (PT or PRE) — the target time in milliseconds (or timer base units); and Accumulator (ACC or ET — Elapsed Time). While EN is TRUE, the accumulator counts up. When ACC equals PT, the Done bit (DN) turns TRUE and stays TRUE as long as EN remains TRUE. When EN goes FALSE, ACC resets to zero. Example application: a solenoid valve must remain open for exactly 3 seconds after a proximity sensor detects a part. You use a TON with PT=3000ms; the sensor detection drives EN, and the valve output is driven by the DN bit — but only while EN is TRUE. If the part leaves before 3 seconds, EN goes FALSE, the timer resets, and the valve closes. TOF (Timer Off Delay) works in reverse — the output turns ON immediately when EN goes TRUE, and stays ON for the preset duration after EN drops FALSE. Classic use case: an air cooler fan must continue running for 30 seconds after a motor stops to allow heat dissipation. EN connects to the motor running signal; the fan output connects to the TOF output bit. RTO (Retentive Timer On) accumulates time across multiple enable-input pulses and does not reset when EN goes FALSE. It requires an explicit Reset (RES) instruction to clear the accumulator. Use case: tracking total machine operating hours — you want to know the cumulative minutes a press has been running across all shifts. RTO increments whenever the press is running; a supervisor resets it at scheduled maintenance intervals.

InstructionTypeResets On EN=FALSE?Output TRUE WhenTypical Use
TONTimer On DelayYesACC >= PRE and EN=TRUEDwell delays, start delays
TOFTimer Off DelayNo (stays on for PRE after EN drops)EN=TRUE OR ACC still runningMotor cooling, conveyor coast-down
RTORetentive Timer OnNo (requires RES instruction)ACC >= PRETotal run-hour tracking, maintenance intervals
CTUCount UpNo (requires RES)ACC >= PREParts counting, batch completion
CTDCount DownNo (requires RES)ACC <= 0Batch countdown, remaining-capacity tracking

CTU, CTD and CTUD: Counter Instructions for Parts and Cycles

CTU (Count Up) increments its accumulator by one each time its Count input transitions from FALSE to TRUE (rising edge). When the accumulator reaches the Preset value, the Count Done (CD) or Output (Q) bit turns TRUE. CTU requires a Reset input (or a separate RES instruction) to clear the accumulator. Example: count 20 bottles passing a proximity sensor before triggering a box ejector. The sensor drives the CTU count input; the ejector coil connects to the CTU output; a box-present sensor drives the reset. CTD (Count Down) decrements from the preset value toward zero on each rising edge of its count input. The output turns TRUE when the accumulator reaches zero. Use case: counting down remaining presses in a batch — start at 500, decrement with each press cycle, activate a batch-complete alarm at zero. CTUD (Count Up/Down) combines both directions in one instruction. It has both a Count Up input and a Count Down input. When the CU input pulses, accumulator increments; when the CD input pulses, accumulator decrements. Output turns TRUE when accumulator reaches preset (for the up direction) or reaches zero (depending on configuration). CTUD is used on reversible conveyors (tracking net count of parts entering minus parts leaving a buffer zone) and in pick-and-place systems where both placement and retrieval events must be tracked. At Toyota Kirloskar (AURIC Phase II) and Ather Energy (Bidkin Industrial Area), CTUD instructions manage battery cell tracking on assembly jigs where cells are added and removed throughout the build sequence.

PLC Timer and Counter Instructions: Ladder Logic Programming Guide Episode 8 (Updated June 2026)
Real student workshop at ABC Trainings

Practical Exercises and PLC Automation Career Scope in India

The best way to solidify timer and counter skills is through practical exercises built around real industrial scenarios. Exercise 1 — Motor Start-Delay with TON: A pump motor should start 5 seconds after the start pushbutton is pressed, giving a warning siren time to sound first. Wire a TON (PT=5000ms) between the start button and the motor contactor output. Exercise 2 — Conveyor Coast-Down with TOF: A conveyor must continue running for 4 seconds after the stop button is pressed to prevent abrupt stoppages and part jamming. Use TOF (PT=4000ms) on the conveyor drive output. Exercise 3 — Parts Counter with CTU: Count 50 parts on a packing line, then stop the infeed conveyor and signal the operator. Wire a CTU (Preset=50) with the infeed sensor on the count input and a separate reset pushbutton on the reset input. Exercise 4 — Cycle Counter with CTUD: Track net parts in a buffer — increment on infeed sensor, decrement on outfeed sensor; activate a buffer-full alarm when count reaches 30. These exercises map directly to the kind of programming tests that Siemens India (Hinjewadi, Pune 411057), L&T Automation (EOIZ MIDC, Kharadi, Pune), Endurance Technologies (MIDC Waluj), Bajaj Auto (Akurdi 411035 and Waluj), and Bosch Pune (Adugodi) use in PLC programming interviews. Salary data from AmbitionBox 2025–26: PLC programmers with 1–3 years experience earn ₹3.0–5.0 LPA in Pune and Sambhajinagar; those with timer/counter and SCADA integration skills combined reach ₹6–9 LPA within 5 years. ABC Trainings' Industry 4.0 with AI and Industrial Automation workshop includes live PLC programming exercises on Siemens S7 and Allen-Bradley hardware.

Maharashtra's CMYKPY (Chief Minister Yuva Karya Prashikshan Yojana) pays ₹6,000–10,000 per month while you complete approved industrial training. ABC Trainings' Industry 4.0 with AI and Industrial Automation workshop in Pune includes hands-on PLC programming on real Siemens and Allen-Bradley hardware, and aligns with PMKVY 4.0 standards. Apply for CMYKPY alongside your enrollment to offset training costs — several students from our Cidco and Osmanpura batches received stipends during active training.

Get the Industrial Automation Brochure + Fees + Batch Dates on WhatsApp

Free 1:1 counselling. Placement track record. CMYKPY/PMKVY eligibility check.

💬 Get Brochure on WhatsApp📞 Call 7039169629

About the author: Rahul Patil. 12 yrs experience training engineers across Maharashtra.

Visit Our Centers

  • Wagholi (Pune): 1st Floor, Laxmi Datta Arcade, Pune-Ahilyanagar Highway. Call 7039169629
  • Hadapsar (Pune HQ): 1st Floor, Shree Tower, opp. Vaibhav Theater, Magarpatta. Call 7039169629
  • Cidco (Chh. Sambhajinagar): Kalpana Plaza, opp. Eiffel Tower, N-1 Cidco. Call 7039169629
  • Osmanpura (Chh. Sambhajinagar): S.S.C Board to Peer Bazar Road, near Jama Masjid. Call 7039169629
  • Sangli: Shubham Emphoria, 1st Floor, Above US Polo Assn., Sangli-Miraj Rd, Vishrambag. Weekend batches available. Call 7039169629

💬 WhatsApp 7774002496

FAQs

What is the difference between TON and TOF in PLC programming?

TON (Timer On Delay) turns its output ON after the preset time while the enable input remains TRUE, and resets the accumulator to zero when the enable goes FALSE. TOF (Timer Off Delay) turns its output ON immediately when the enable is TRUE and keeps it ON for the preset duration after the enable drops FALSE — the timer runs after the enable is gone. TON is used for start delays and dwell times; TOF is used for cooling and coast-down requirements.

Why does RTO need a separate Reset instruction when TON resets automatically?

RTO retains its accumulated time across multiple enable-input cycles — it does not reset when EN goes FALSE. This is intentional for applications like tracking total machine run-hours, where the timer must accumulate time from multiple shift segments. If it reset automatically like TON, you would lose all accumulated time every time a conveyor stopped momentarily. The explicit RES instruction lets a supervisor or maintenance cycle reset it only at the scheduled maintenance interval.

When should I use CTU versus CTD versus CTUD in a PLC program?

Use CTU when you're counting up from zero to a target — parts produced, cycles completed, boxes packed. Use CTD when you're counting down from a known starting quantity toward zero — remaining parts in a batch, shots left in an injection mould before tool maintenance. Use CTUD when the count both increases and decreases — buffer zone occupancy on a reversible conveyor, or net inventory in a station where parts enter and exit independently.

What PLC brands are commonly used at manufacturing plants in Pune and Sambhajinagar?

Siemens S7 family (S7-300, S7-400, S7-1200, S7-1500) is dominant at Skoda VW Shendra, Hyosung Bidkin, and Bosch Pune. Allen-Bradley (Micro820, Micro850, CompactLogix, ControlLogix) is used at Endurance Technologies and several AURIC-area tier-1 suppliers. Mitsubishi FX and Q series is common at Bajaj Auto Waluj and mid-size Sambhajinagar manufacturers. Delta DVP series is widely used at smaller MIDC facilities in Sangli (Kupwad MIDC) and Kolhapur. ABB AC500 is used in power and utilities applications.

A

ABC Trainings Team

Expert insights on engineering, design, and technology careers from India's trusted CAD & IT training institute with 11 years of experience and 2000+ trained professionals.