TON On-delay timer (TON)

Also called: timer on delay, TON timer, delay on, on delay

On-delay timer: Q / DN turns 1 once IN / EN has been 1 for PT / PRE.On-delay timer: Q turns 1 once IN has been 1 for PT.On-delay timer: DN turns 1 once EN has been 1 for PRE.

What it does

The TON timer delays turning on: when power reaches the instruction, it counts time in ET / ACC; when ET / ACC reaches the preset (ET / ACC ≥ PT / PRE), Q / DN turns 1. As soon as the rung drops, everything goes back to 0.The TON timer delays turning on: when power reaches the instruction, it counts time in ET; when ET reaches the preset (ET ≥ PT), Q turns 1. As soon as the rung drops, everything goes back to 0.The TON timer delays turning on: when power reaches the instruction, it counts time in ACC; when ACC reaches the preset (ACC ≥ PRE), DN turns 1. As soon as the rung drops, everything goes back to 0.

When to use it

To wait before acting: delayed start, sensor confirmation (debounce), alarm when a condition lasts too long.

Operands

European mnemonicAmerican mnemonicNameData typeDirectionRequiredAccessMeaning
InstanceInstanceInstance (the timer’s memory)IEC_TIMER / TIMERInputYes—Instance (T1…): the timer's memory. One instance per timer.
INENEnableBOOLInputYesRead (T1.IN / T1.EN)The bit that says the instruction is active: the rung’s power reaches the instruction.
PTPREPresetTIME / DINTInputYesRead and write (T1.PT / T1.PRE)Preset: the time to reach. A constant on the box is only the starting value; the program can change it with a MOVE / MOV.
QDNDoneBOOLOutputNoRead (T1.Q / T1.DN)When ET / ACC reaches the preset (ET / ACC ≥ PT / PRE), Q / DN turns 1.
ETACCAccumulator: elapsed timeTIME / DINTOutputNoRead (T1.ET / T1.ACC)Accumulator: the elapsed time, from 0 up to PT / PRE.
—TTTimingBOOLOutputNoRead (T1.TT)1 while the timer is timing. American style only: not in the European style.
MnemonicNameData typeDirectionRequiredAccessMeaning
InstanceInstance (the timer’s memory)IEC_TIMERInputYes—Instance (T1…): the timer's memory. One instance per timer.
INEnableBOOLInputYesRead (T1.IN)The bit that says the instruction is active: the rung’s power reaches the instruction.
PTPresetTIMEInputYesRead and write (T1.PT)Preset: the time to reach. A constant on the box is only the starting value; the program can change it with a MOVE.
QDoneBOOLOutputNoRead (T1.Q)When ET reaches the preset (ET ≥ PT), Q turns 1.
ETAccumulator: elapsed timeTIMEOutputNoRead (T1.ET)Accumulator: the elapsed time, from 0 up to PT.
MnemonicNameData typeDirectionRequiredAccessMeaning
InstanceInstance (the timer’s memory)TIMERInputYes—Instance (T1…): the timer's memory. One instance per timer.
ENEnableBOOLInputYesRead (T1.EN)The bit that says the instruction is active: the rung’s power reaches the instruction.
PREPresetDINTInputYesRead and write (T1.PRE)Preset: the time to reach. A constant on the box is only the starting value; the program can change it with a MOV.
DNDoneBOOLOutputNoRead (T1.DN)When ACC reaches the preset (ACC ≥ PRE), DN turns 1.
ACCAccumulator: elapsed timeDINTOutputNoRead (T1.ACC)Accumulator: the elapsed time, from 0 up to PRE.
TTTimingBOOLOutputNoRead (T1.TT)1 while the timer is timing. American style only: not in the European style.

Readable anywhere in the program, for example T1.Q / T1.DN. Writable members can be changed by the program (MOVE).Readable anywhere in the program, for example T1.Q. Writable members can be changed by the program (MOVE).Readable anywhere in the program, for example T1.DN. Writable members can be changed by the program (MOVE).

Timing diagram

European style
INETPT = T#3sQ0123456789101112time (s)
American style
ENACCPRE = 3000DN0123456789101112time (s)

Timing diagram checked against the simulator (the same engine as the editor).

Example

European style
American style

H1 turns on once S1 has been 1 for 3 s.

Try it in the simulatorThe example opens in the free simulator; your own program stays as it was.

Behaviour in detail

European (IEC) and American styles

European: duration written T#3s, outputs Q and ET.

American: preset PRE in milliseconds (3000), accumulator ACC and bits DN (done), TT (timing) and EN (rung). Same behaviour.

See also