PLC & SCADA Beginner's Guide Ep.16 – Timer and Counter Instructions in PLC Programming (Updated June 2026)
If you ask any experienced PLC programmer what the two most-used instruction categories are in real plant applications, the answer is always the same: timers and counters. Every sequence in a factory needs a delay somewhere. Every production line counts something — parts, cycles, pallets, bottles. With AURIC Industrial City near Sambhajinagar bringing ₹71,343 crore in investment and 62,405 manufacturing jobs to Maharashtra, the need for engineers who can program PLC timers and counters correctly is constant. Episode 16 covers this completely — TON, TOF, TONR timers and CTU, CTD, CTUD counters — with hands-on programming examples from conveyor, bottling, and assembly applications that you will encounter at companies like Endurance, Bajaj Auto, and Skoda VW.
- Timer instructions (TON, TOF, TONR) control time delays in PLC sequences — used in virtually every automated machine
- Counter instructions (CTU, CTD, CTUD) count events like parts produced, cycles completed, or operator actions
- Preset value (PT) defines the target time or count; accumulated value (ET/CV) tracks progress in real time
- These instructions work the same in concept across Siemens, Allen-Bradley, Mitsubishi, and Schneider PLCs
- PLC engineers with timer and counter expertise earn ₹3–10 LPA in Maharashtra (AmbitionBox)
Why Timers and Counters Are the Heart of PLC Automation
Think about any machine in a factory: a conveyor belt that waits 3 seconds after a sensor detects a part before moving; a pump that keeps running for 10 seconds after a stop button is pressed; a packaging machine that triggers a reject alarm after counting 5 consecutive bad parts. Every one of those sequences uses a timer or counter in the PLC program. What most people don't realise is that roughly 60-70% of all rungs in a real production PLC program involve either a timer, a counter, or both. Without a solid understanding of how timer and counter instructions work — including their internal bits, coils, and accumulated values — you cannot read or write production PLC code with confidence. Episode 16 closes that gap completely.

PLC Timer Instructions Explained – TON, TOF, and TONR
Siemens calls its timer instructions IEC timers (TON, TOF, TONR) and they follow the IEC 61131-3 standard, so the concepts transfer to Allen-Bradley, Schneider, and Mitsubishi PLCs with only minor syntax differences. TON (Timer On-Delay): when the input rung is TRUE, the timer starts counting. After the Preset Time (PT) is reached, the timer output (Q) goes TRUE. Use case: start a conveyor 5 seconds after a door closes. TOF (Timer Off-Delay): when the input rung goes FALSE, the timer starts. After PT is reached, the output goes FALSE. Use case: keep a warning light on for 10 seconds after a fault is cleared. TONR (Retentive Timer On): like TON but the accumulated time is remembered even if the input goes FALSE — it only resets when a separate reset bit is set. Use case: track total motor running time for maintenance scheduling at Endurance Technologies or Bajaj Auto plants.
| Instruction | Full Name | Trigger Condition | Output (Q) True When |
|---|---|---|---|
| TON | Timer On-Delay | Input rung TRUE | ET is greater than or equal to PT |
| TOF | Timer Off-Delay | Input rung goes FALSE | ET less than PT (during countdown) |
| TONR | Retentive Timer On | Input rung TRUE (accumulates) | ET greater than or equal to PT (retained across cycles) |
| CTU | Count Up | CU rising edge | CV greater than or equal to PV |
| CTD | Count Down | CD rising edge | CV less than or equal to 0 |
| CTUD | Count Up/Down | CU or CD rising edge | CV >= PV (QU) or CV <= 0 (QD) |
PLC Counter Instructions Explained – CTU, CTD, and CTUD
Counter instructions count events: button presses, part detections, cycle completions, error occurrences. CTU (Count Up): each time the count input transitions from FALSE to TRUE, the accumulated value (CV) increments by 1. When CV reaches the Preset Value (PV), the output (Q) goes TRUE. Use case: count 100 bottles filled before sealing the batch. CTD (Count Down): CV decrements from PV toward zero. When CV reaches zero, Q goes TRUE. Use case: count down remaining parts in a feeder hopper. CTUD (Count Up/Down): has both a count-up and count-down input — CV increases on CU rising edge and decreases on CD rising edge. Use case: track the number of items in a buffer zone that receives from one machine and feeds another. All counters have a Reset input that returns CV to zero — always include it in your program.

Real-World Programs Using Timers and Counters
Here is a real-world example we program in Episode 16 in our Pune lab: a bottling line sequence. A proximity sensor detects each bottle as it arrives under the filling nozzle. The PLC uses a CTU to count 12 bottles — one crate worth. When CV reaches 12, a timer TON starts — the nozzle group stays in raised position for 2 seconds to clear the line, then a conveyor gate opens for a TOF 1-second delay to exit the full crate. The CTU resets, and the sequence repeats. This is a complete, industrial-grade program using 1 counter and 2 timers in 8 rungs of ladder logic. Every single plant running a packaging line — Whirlpool Ranjangaon, LG Electronics Pune, Force Motors Akurdi — has programs just like this running 24 hours a day, seven days a week.
Common Mistakes and Troubleshooting Tips for Timer and Counter Rungs
The most common timer/counter mistake beginners make is forgetting that a TON timer does not reset itself when its input goes FALSE — the accumulated time (ET) resets, but only when the input rung goes FALSE and then TRUE again. If your conveyor is cycling but the timer seems stuck, check that the input bit actually toggles. Another classic mistake: using a counter output bit (Q) as a one-shot trigger without resetting the counter, so Q stays TRUE permanently after the first preset is reached. Always include a reset rung. For TONR retentive timers, forgetting the reset rung is critical — the timer keeps accumulating until it overflows. Troubleshooting tip: in Siemens TIA Portal, use the online monitoring mode to watch ET and CV values in real time while the PLC is running — you can see exactly what is happening on every rung.
Where PLC Timer and Counter Skills Get You Hired in Maharashtra
Timer and counter programming skills open specific doors in Maharashtra's industrial belt. In Pune: Bajaj Auto Akurdi (164+ automation roles), Tata Motors Ranjangaon, Whirlpool Ranjangaon (Plot D-1, MIDC), and Force Motors Akurdi hire freshers with solid PLC fundamentals including timer and counter proficiency. In Sambhajinagar: Skoda VW (Plot A-1/1, Shendra MIDC) runs highly automated body-shop lines that use hundreds of timer rungs. Bajaj Auto Waluj (Plot G-137) and Endurance Technologies (Plot E-92, Waluj MIDC) are the two largest PLC employers in the city. In Sangli: Kupwad MIDC industrial cluster through SMMMA (250+ firms) includes many small-to-mid automation users who hire freshers from local training institutes. ABC Trainings has direct placement partnerships at all these locations.
CMYKPY Scholarship: Maharashtra's Chhatrapati Mahamanav Yogi Krantijyoti Phule Yojana offers ₹6,000–₹10,000 for skill training for eligible youth. PMKVY 4.0 has trained 2.1 crore candidates nationally — industrial automation is a priority sector. Check your eligibility before enrolling in our Industry 4.0 workshop. Call 7039169629 or WhatsApp 7774002496.
Get the AI Powered Product Design, Analysis & Simulation Brochure + Fees + Batch Dates on WhatsApp
Free 1:1 counselling. Placement track record. CMYKPY/PMKVY eligibility check.
💬 Get Brochure on WhatsApp📞 Call 7039169629About 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
FAQs
What is a TON timer instruction in PLC programming?
TON (Timer On-Delay) is a PLC instruction that starts counting when its input rung becomes TRUE. After the accumulated elapsed time (ET) reaches the preset time (PT), the timer output bit (Q) goes TRUE. When the input rung goes FALSE, ET resets to zero and Q goes FALSE. TON is used for time delays like starting a conveyor 5 seconds after a door closes, or activating a warning light 3 seconds after a fault is detected. It is available on all major PLC platforms including Siemens S7, Allen-Bradley, Mitsubishi, and Schneider.
What is the difference between CTU and CTD counter instructions in PLC?
CTU (Count Up) increments its accumulated value (CV) by 1 each time the count input (CU) transitions from FALSE to TRUE. When CV reaches the preset value (PV), the output (Q) goes TRUE. CTD (Count Down) decrements CV by 1 on each CD rising edge — Q goes TRUE when CV reaches zero. Both have a Reset input that returns CV to zero. CTU is typically used for production counting (parts made, bottles filled); CTD for depletion counting (materials remaining in a hopper or feeder).
How are PLC timer and counter instructions used in real manufacturing plants?
In real plants, timer instructions are used for sequence delays (start motor 3 sec after door closes), warning delays (keep alarm light on 10 sec after fault clears), and maintenance timing (track total motor run hours). Counter instructions count production output (100 bottles per batch), reject events (alarm after 5 consecutive rejects), or maintenance cycles (alert after 10,000 machine cycles). At companies like Bajaj Auto Waluj, Endurance Technologies, and Tata Motors Ranjangaon, nearly every automated sequence uses timers and counters together.
Where can I learn PLC timer and counter programming in Pune or Sambhajinagar?
ABC Trainings offers hands-on PLC programming training including timer and counter instructions at all Maharashtra centres: Wagholi (Laxmi Datta Arcade, Pune-Ahilyanagar Hwy), Hadapsar (Shree Tower, opp. Vaibhav Theater), Cidco (Kalpana Plaza, N-1 Cidco, Sambhajinagar), Osmanpura (S.S.C Board to Peer Bazar Rd, Sambhajinagar), and Sangli (Shubham Emphoria, Sangli-Miraj Rd). All centres have live Siemens S7-1200 PLC lab setups. Call 7039169629 to book a free demo session.



