Understanding PLC Timers: TON, TOF, and TP Instructions with Real-World Examples

n industrial automation, time is one of the most critical variables. Whether you are regulating the warmup duration of an industrial furnace, keeping an exhaust fan running after a motor shuts down, or delivering a precise shot of lubrication to a heavy-duty gearbox, managing time delays is essential.

Inside a Programmable Logic Controller (PLC), time management is handled through standardized timer instructions defined under the IEC 61131-3 programming standard. Among these, three instructions form the backbone of sequential time control: TON (Timer On Delay), TOF (Timer Off Delay), and TP (Timer Pulse).

In this comprehensive guide, we will break down how each of these timers operates, examine their underlying structures, and provide real-world industrial examples to help you implement them effectively in your next automation project.

1. The Anatomy of an IEC 61131-3 PLC Timer

Before diving into individual timer instructions, it is vital to understand how modern PLCs structure timer data. Unlike legacy systems where timers were tied to fixed hardware registers, modern software-based PLCs treat timers as structured data types (often called TON, TOF, or TP structures) containing specific internal attributes:

  • IN (Input Boolean): The trigger condition that enables or disables the timer.
  • PT (Preset Time): The target duration for which the timer must run (e.g., T#5s for 5 seconds).
  • ET (Elapsed Time): The current accumulated time since the timer started running.
  • Q (Output Boolean): The status bit that changes state (becomes TRUE or FALSE) depending on the timer type once the preset time is reached or expired.

Understanding how the IN, PT, ET, and Q variables interact is key to debugging complex control code.

2. TON (Timer On Delay): The Industrial Staple

How TON Works

The Timer On Delay (TON) instruction is the most commonly used timer in industrial automation. Its primary purpose is to delay an action after an input condition becomes true.

  • When the IN input transitions from FALSE to TRUE, the timer begins accumulating time in its ET register.
  • As long as IN remains TRUE, ET counts upward toward the PT value.
  • Once ET equals PT, the output bit Q turns TRUE and stays TRUE until IN goes FALSE.
  • If IN drops to FALSE at any point before ET reaches PT, the timer resets immediately, and ET drops back to zero.
IN  ____/¯¯¯¯¯¯¯¯¯¯¯¯¯\________________
Q   __________/¯¯¯¯¯¯¯\________________
              |<--PT-->|

Real-World Example: Blower Warmup Interlock

Imagine an industrial painting booth where an explosion-proof exhaust blower must run for 30 seconds to purge hazardous vapors before the high-voltage heating elements are allowed to turn on.

  • Implementation: When the operator presses the “System Start” pushbutton, a TON timer (Blower_Purge_Timer) is initiated with a preset time (PT) of T#30s.
  • The Logic: The heater contactor is interlocked with the timer’s output bit (Blower_Purge_Timer.Q). If the blower fails or is interrupted during the 30-second window, the timer resets, preventing the heaters from energizing prematurely and ensuring total plant safety.

3. TOF (Timer Off Delay): Extending Operations Beyond Input Loss

How TOF Works

The Timer Off Delay (TOF) instruction is used when you want an output to remain energized after an input condition turns off.

  • When the IN input is TRUE, the output Q is immediately forced TRUE, and ET remains at zero.
  • When IN transitions from TRUE to FALSE, the timer starts counting upward.
  • During this countdown, output Q remains TRUE.
  • Once ET reaches the PT preset value, output Q turns FALSE.
  • If IN goes back to TRUE while the timer is counting down, ET resets to zero, and Q remains TRUE.
IN  ____/¯¯¯¯¯¯¯¯¯\____________________
Q   ____/¯¯¯¯¯¯¯¯¯¯¯¯¯¯\_______________
                  |<--PT-->|

Real-World Example: Enclosure Cooling Fan Dissipation

Consider a large electrical control panel housing variable frequency drives (VFDs) that generate substantial heat. When the main machine cycle stops, you do not want to cut power to the cabinet cooling fans immediately, as residual heat can damage sensitive electronics.

  • Implementation: A TOF timer (Cooling_Fan_Off_Delay) with a preset time of T#5m (5 minutes) is tied to the main machine running signal.
  • The Logic: When the machine stops (IN goes from TRUE to FALSE), the TOF instruction keeps the cooling fan output (Q) energized for an additional 5 minutes to dissipate thermal energy safely before shutting down completely.

4. TP (Timer Pulse): Generating Fixed-Duration Outputs

How TP Works

The Timer Pulse (TP) instruction—often referred to as a monostable multivibrator—generates a pulse of a fixed, predetermined duration regardless of how long the input signal stays active.

  • When the IN input transitions from FALSE to TRUE, output Q immediately goes TRUE, and ET begins counting upward.
  • Output Q remains TRUE for the exact duration specified by PT, even if the IN input drops back to FALSE almost instantly.
  • Once ET reaches PT, output Q turns FALSE.
  • Subsequent triggers on IN while the timer is already running are typically ignored until the current pulse cycle completes (non-retriggerable pulse).
IN  ____/¯\____________________________
Q   ____/¯¯¯¯¯¯¯\______________________
        |<--PT-->|

Real-World Example: Automated Conveyor Lubrication Shot

In high-speed manufacturing lines, mechanical bearings require periodic greasing via an automated pneumatic grease injector. Sending continuous pressure to the injector would flood the bearings and cause catastrophic seal blowouts.

  • Implementation: A photoelectric sensor detects a completed product batch and sends a momentary trigger pulse to a TP instruction (Lube_Shot_Timer) set for exactly T#1.5s.
  • The Logic: Regardless of whether the sensor signal flickers or stays high, the TP block guarantees that the pneumatic solenoid valve opens for precisely 1.5 seconds, delivering a calibrated shot of lubricant before shutting off automatically.

5. Comparative Summary Matrix: TON vs. TOF vs. TP

Feature / CriteriaTON (Timer On Delay)TOF (Timer Off Delay)TP (Timer Pulse)
Trigger ActionDelays output ON transitionDelays output OFF transitionGenerates a fixed-duration pulse
When Output (Q) Turns TRUEAfter PT expires while IN is TRUEImmediately when IN goes TRUEImmediately when IN goes TRUE
When Output (Q) Turns FALSEImmediately when IN goes FALSEAfter PT expires following IN going FALSEAfter PT expires regardless of IN
Primary Industrial UseStartup interlocks, purge delays, debounce filtersPost-cooling fans, pump run-on, motor coast-downLubrication shots, reject kickers, pulse triggers

6. Best Practices for Programming PLC Timers

To prevent logical bugs, memory leaks, and erratic machine behavior when utilizing timers, professional automation engineers follow these proven best practices:

  1. Avoid Duplicate Timer Instantiations: Never use the exact same timer data block or tag address in multiple places within your program. Doing so creates scan-cycle race conditions where one rung overwrites the elapsed time (ET) of another.
  2. Use Descriptive Tag Names: Instead of generic addresses like T4:0 or Timer_1, adopt clear, functional naming conventions (e.g., Blower_Warmup_TON, Cooling_Fan_TOF).
  3. Handle Power-Loss Retentivity Wisely: Standard TON, TOF, and TP instructions reset their elapsed time when power cycles or mode transitions occur (e.g., Program Mode to Run Mode). If you need a timer to retain its accumulated time across power outages, use Retentive Timers (like RTON or customized accumulators).
  4. Beware of Scan-Time Resolution: Ensure your preset time (PT) is significantly larger than your PLC’s maximum scan time to avoid timing jitter in high-speed loops.

Conclusion

Mastering PLC timers—specifically TON, TOF, and TP instructions—is a foundational milestone for any control systems engineer. By understanding how input transitions dictate elapsed time and output states, you can design safer, more efficient, and highly reliable industrial automation systems.

🎓 Elevate Your Engineering Capabilities with Free Documents Hub

Mastering industrial programming standards, automation architectures, and plant documentation takes hands-on guidance. At Free Documents Hub, we offer expert remote training specializing in industrial engineering design, PLC programming workflows, and quality control.

🛠️ Access Our Digital Libraries:

📩 Ready to upgrade your facility’s operational documentation or claim a FREE trial sample? Email us today at contact@freedocumentshub.com!

Leave a Comment

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

Scroll to Top