Learn PLCs free
Timers & CountersIntermediateIEC 61131-3

TONR (Timer On-Delay Retentive)

Siemens retentive on-delay timer that accumulates time across multiple enable cycles.

The TONR (Timer On-Delay Retentive) is Siemens' implementation of a retentive on-delay timer, functionally equivalent to the RTO. It accumulates time while the input is TRUE and retains the accumulated value when the input goes FALSE. The output activates when accumulated time reaches the preset. A dedicated reset input is required to clear the timer. TONR is commonly used in Siemens S7-1200 and S7-1500 controllers for maintenance interval tracking and total run-time monitoring.

Parameters

Inputs

NameTypeDescription
INBOOLTimer enable input
PTTIMEPreset time value
RBOOLReset input - clears accumulated time

Outputs

NameTypeDescription
QBOOLTimer done output
ETTIMEAccumulated elapsed time

Ladder Logic Example

// Ladder Logic - TONR (Siemens Retentive Timer)
//
// |----[ Pump_Running ]----[TONR Filter_Timer]----|
// |                        IN: Pump_Running       |
// |                        PT: T#200h             |
// |                        R:  Filter_Reset       |
// |                        Q:  Filter_Change_Due  |

Structured Text Example

VAR
    Filter_Timer : TONR;
    Pump_Running : BOOL;
    Filter_Change_Due : BOOL;
    Filter_Reset : BOOL;
END_VAR

Filter_Timer(IN := Pump_Running, PT := T#200h, R := Filter_Reset);
Filter_Change_Due := Filter_Timer.Q;

20 Production-Ready Ladder Logic Templates

Stop writing the same rungs from scratch. Get copy-paste-ready templates for motor control, PID loops, safety interlocks, conveyors, and more.

Platform-Specific Implementation

S

Siemens (TIA Portal)

Native TONR instruction in TIA Portal for S7-1200/1500. Uses IEC_TIMER data type.

AB

Allen-Bradley (Studio 5000)

Equivalent to RTO instruction. Use RES for reset.

C

CODESYS

Implement using TON with persistent variable or create custom FB.

Common Applications

  • Filter change intervals
  • Lubrication schedules
  • Equipment run-hour tracking
  • Preventive maintenance alerts

Common Mistakes to Avoid

  • Using TONR on platforms that do not support it natively
  • Forgetting the reset input after maintenance is performed

Frequently Asked Questions

What is TONR (Timer On-Delay Retentive) in PLC programming?

Siemens retentive on-delay timer that accumulates time across multiple enable cycles. The TONR (Timer On-Delay Retentive) is Siemens' implementation of a retentive on-delay timer, functionally equivalent to the RTO. It accumulates time while the input is TRUE and retains the accumulated value when the input goes FALSE.

What are common applications of TONR (Timer On-Delay Retentive)?

TONR (Timer On-Delay Retentive) is commonly used for: Filter change intervals, Lubrication schedules, Equipment run-hour tracking, Preventive maintenance alerts.

How do I use TONR (Timer On-Delay Retentive) in different PLC platforms?

Siemens: Native TONR instruction in TIA Portal for S7-1200/1500. Uses IEC_TIMER data type. Allen-Bradley: Equivalent to RTO instruction. Use RES for reset. CODESYS: Implement using TON with persistent variable or create custom FB.

Stop Writing Ladder Logic From Scratch

Get 20 production-ready ladder logic templates for $29 -- download instantly and use them on your next project today.

20
Ready-Made Templates
LD + ST
Both Languages Included
$29
One-Time Purchase
Get Instant Access -- $29

Instant download - 30-day money-back guarantee - Use on unlimited projects

Free PLC simulator

Wire this block up and run it

Drop the instruction into a rung, hit Run, and watch it execute in your browser. 12 guided lessons across 8 PLC dialects — free account, no credit card.

Practice PLCs free →