TONREURTOUSTONRRTO Retentive on-delay timer (TONR)

Also called: retentive timer, RTO (Retentive Timer On), accumulating timer, retentive on delay

Retentive timer: adds up the time IN / EN is 1; Q / DN turns 1 when the total reaches PT / PRE.Retentive timer: adds up the time IN is 1; Q turns 1 when the total reaches PT.Retentive timer: adds up the time EN is 1; DN turns 1 when the total reaches PRE.

What it does

The TONR / RTO timer adds up the periods when power reaches the instruction. When the rung drops, ET / ACC keeps its value; when the total reaches PT / PRE, Q / DN turns 1 and stays 1. Only a reset clears the total: the R input in the European style, the RES instruction in the American style.The TONR timer adds up the periods when power reaches the instruction. When the rung drops, ET keeps its value; when the total reaches PT, Q turns 1 and stays 1. Only a reset clears the total: the R input in the European style, the RES instruction in the American style.The RTO timer adds up the periods when power reaches the instruction. When the rung drops, ACC keeps its value; when the total reaches PRE, DN turns 1 and stays 1. Only a reset clears the total: the R input in the European style, the RES instruction in the American style.

When to use it

For a total running time: maintenance after 100 h of operation, cooking time accumulated across stops.

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.
R—ResetBOOLInputNoRead (T1.R)Reset (European style): ET / ACC and Q / DN go back to 0. In the American style the RTO has no Reset input: the RES instruction is used.
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 the total reaches the preset (ET / ACC ≥ PT / PRE), Q / DN turns 1 and stays 1 until the reset.
ETACCAccumulator: elapsed timeTIME / DINTOutputNoRead (T1.ET / T1.ACC)Accumulator: the total time; it keeps its value when the rung drops.
—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.
RResetBOOLInputNoRead (T1.R)Reset (European style): ET and Q go back to 0. In the American style the RTO has no Reset input: the RES instruction is used.
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 the total reaches the preset (ET ≥ PT), Q turns 1 and stays 1 until the reset.
ETAccumulator: elapsed timeTIMEOutputNoRead (T1.ET)Accumulator: the total time; it keeps its value when the rung drops.
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 the total reaches the preset (ACC ≥ PRE), DN turns 1 and stays 1 until the reset.
ACCAccumulator: elapsed timeDINTOutputNoRead (T1.ACC)Accumulator: the total time; it keeps its value when the rung drops.
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
INRETPT = T#3sQ0123456789101112time (s)
American style
ENRESACCPRE = 3000DN0123456789101112time (s)

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

Example

European style
American style

H1 turns on when S1 has been 1 for 10 s in total; S2 resets the time (R input in European, RES in American).

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: TONR with an R input.

American: RTO, reset by a separate RES instruction (the Reset input appears on the box only when wired).

See also