Chapter 3
Timer and Counter Instructions (TON, TOF, RTO, TONR, TOFR, RTOR, CTU, CTD, CTUD, RES)
Timer On Delay (TON)
Mnemonic
Data Type
.EN
BOOL
.TT
BOOL
.DN
BOOL
.PRE
DINT
.ACC
DINT
Description:
116
The TON instruction is a non-retentive timer that accumulates time when the
instruction is enabled (rung-condition-in is true).
This instruction is available in structured text and function block as TONR.
Operands:
Relay Ladder
Operand
Timer
Preset
Accum
TIMER Structure
Description
The enable bit indicates that the TON instruction is enabled.
The timing bit indicates that a timing operation is in process.
The done bit is set when .ACC ≥ .PRE.
The preset value specifies the value (1 ms units) that the accumulated value must reach before the
instruction sets the .DN bit.
The accumulated value specifies the number of milliseconds that have elapsed since the TON
instruction was enabled.
The TON instruction accumulates time until the following occurs:
· The TON instruction is disabled
· The .ACC ≥ .PRE
The time base is always 1 ms. For example, for a two-second timer, enter 2000 for
the .PRE value.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
TIMER
Tag
DINT
Immediate Tag
DINT
Immediate Tag
Description
Timer structure
How long to delay (accumulate time)
Total milliseconds the timer has counted
Initial value is typically 0