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 mnemonic | American mnemonic | Name | Data type | Direction | Required | Access | Meaning |
|---|---|---|---|---|---|---|---|
| Instance | Instance | Instance (the timer’s memory) | IEC_TIMER / TIMER | Input | Yes | — | Instance (T1…): the timer's memory. One instance per timer. |
| IN | EN | Enable | BOOL | Input | Yes | Read (T1.IN / T1.EN) | The bit that says the instruction is active: the rung’s power reaches the instruction. |
| R | — | Reset | BOOL | Input | No | Read (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. |
| PT | PRE | Preset | TIME / DINT | Input | Yes | Read 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. |
| Q | DN | Done | BOOL | Output | No | Read (T1.Q / T1.DN) | When the total reaches the preset (ET / ACC ≥ PT / PRE), Q / DN turns 1 and stays 1 until the reset. |
| ET | ACC | Accumulator: elapsed time | TIME / DINT | Output | No | Read (T1.ET / T1.ACC) | Accumulator: the total time; it keeps its value when the rung drops. |
| — | TT | Timing | BOOL | Output | No | Read (T1.TT) | 1 while the timer is timing. American style only: not in the European style. |
| Mnemonic | Name | Data type | Direction | Required | Access | Meaning |
|---|---|---|---|---|---|---|
| Instance | Instance (the timer’s memory) | IEC_TIMER | Input | Yes | — | Instance (T1…): the timer's memory. One instance per timer. |
| IN | Enable | BOOL | Input | Yes | Read (T1.IN) | The bit that says the instruction is active: the rung’s power reaches the instruction. |
| R | Reset | BOOL | Input | No | Read (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. |
| PT | Preset | TIME | Input | Yes | Read 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. |
| Q | Done | BOOL | Output | No | Read (T1.Q) | When the total reaches the preset (ET ≥ PT), Q turns 1 and stays 1 until the reset. |
| ET | Accumulator: elapsed time | TIME | Output | No | Read (T1.ET) | Accumulator: the total time; it keeps its value when the rung drops. |
| Mnemonic | Name | Data type | Direction | Required | Access | Meaning |
|---|---|---|---|---|---|---|
| Instance | Instance (the timer’s memory) | TIMER | Input | Yes | — | Instance (T1…): the timer's memory. One instance per timer. |
| EN | Enable | BOOL | Input | Yes | Read (T1.EN) | The bit that says the instruction is active: the rung’s power reaches the instruction. |
| PRE | Preset | DINT | Input | Yes | Read 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. |
| DN | Done | BOOL | Output | No | Read (T1.DN) | When the total reaches the preset (ACC ≥ PRE), DN turns 1 and stays 1 until the reset. |
| ACC | Accumulator: elapsed time | DINT | Output | No | Read (T1.ACC) | Accumulator: the total time; it keeps its value when the rung drops. |
| TT | Timing | BOOL | Output | No | Read (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
Timing diagram checked against the simulator (the same engine as the editor).
Example
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
- R / RES takes priority: while it is 1, ET / ACC and Q / DN stay 0.R takes priority: while it is 1, ET and Q stay 0.RES takes priority: while it is 1, ACC and DN stay 0.
- Q / DN stays 1 even when the rung drops (see the timing diagram).Q stays 1 even when the rung drops (see the timing diagram).DN stays 1 even when the rung drops (see the timing diagram).
- ET / ACC stops at PT / PRE.ET stops at PT.ACC stops at PRE.
- The accumulated time is lost on a cold restart of the PLC.
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).