TOF Off-delay timer (TOF)
Also called: timer off delay, TOF timer, delay off, off delay
Off-delay timer: Q / DN stays 1 for PT / PRE after IN / EN drops.Off-delay timer: Q stays 1 for PT after IN drops.Off-delay timer: DN stays 1 for PRE after EN drops.
What it does
The TOF timer delays turning off: Q / DN turns 1 together with the rung then, when the rung drops, stays 1 for another PT / PRE.The TOF timer delays turning off: Q turns 1 together with the rung then, when the rung drops, stays 1 for another PT.The TOF timer delays turning off: DN turns 1 together with the rung then, when the rung drops, stays 1 for another PRE.
When to use it
To extend an action: fan running after a motor stops, timed lighting, holding an output after a short signal.
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. |
| 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) | 1 as soon as power arrives; drops when ET / ACC reaches PT / PRE after the rung drops. |
| ET | ACC | Accumulator: elapsed time | TIME / DINT | Output | No | Read (T1.ET / T1.ACC) | Accumulator: the elapsed time, from 0 up to PT / PRE. |
| — | TT | Timing | BOOL | Output | No | Read (T1.TT) | 1 while timing, after IN / EN drops. 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. |
| 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) | 1 as soon as power arrives; drops when ET reaches PT after the rung drops. |
| ET | Accumulator: elapsed time | TIME | Output | No | Read (T1.ET) | Accumulator: the elapsed time, from 0 up to PT. |
| 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) | 1 as soon as power arrives; drops when ACC reaches PRE after the rung drops. |
| ACC | Accumulator: elapsed time | DINT | Output | No | Read (T1.ACC) | Accumulator: the elapsed time, from 0 up to PRE. |
| TT | Timing | BOOL | Output | No | Read (T1.TT) | 1 while timing, after EN drops. 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
K1 (a fan) keeps running for 3 s after S1 is released.
Try it in the simulatorThe example opens in the free simulator; your own program stays as it was.
Behaviour in detail
- If IN / EN turns 1 again while timing, ET / ACC goes back to 0 and Q / DN stays 1.If IN turns 1 again while timing, ET goes back to 0 and Q stays 1.If EN turns 1 again while timing, ACC goes back to 0 and DN stays 1.
- At the end, ET / ACC stays at PT / PRE until IN / EN turns 1 again.At the end, ET stays at PT until IN turns 1 again.At the end, ACC stays at PRE until EN turns 1 again.
- In the American style, TT is 1 while timing (rung at 0, Q / DN still 1).In the American style, TT is 1 while timing (rung at 0, Q still 1).In the American style, TT is 1 while timing (rung at 0, DN still 1).
European (IEC) and American styles
European: TOF with a T#… duration.
American: TOF with PRE in milliseconds; the DN bit behaves like Q (1 with the rung, then during the delay).