IEC_TIMEREUTIMERUSIEC_TIMERTIMER Timer
Also called: timer, IEC_TIMER, timer structure
A timer's memory: one variable per timer.
What it does
You declare a timer variable (T1, Door_Delay…) and give it to a TON, TOF, TP or RTO instruction. The instruction decides the behaviour; the variable holds the preset, the elapsed time and the status bits.
When to use it
Whenever a timer is placed in the ladder. The box creates one automatically; you can also declare it in the table first and pick it in the box.
Instance members
Each instance has its own memory, readable anywhere in the program, for example T1.Q / T1.DN.Each instance has its own memory, readable anywhere in the program, for example T1.Q.Each instance has its own memory, readable anywhere in the program, for example T1.DN.
| European mnemonic | American mnemonic | Name | Data type | Access | In |
|---|---|---|---|---|---|
| .IN | .EN | Enable | BOOL | Read | TON, TOF, TP, TONR / RTO |
| .PT | .PRE | Preset | TIME / DINT | Read and write | TON, TOF, TP, TONR / RTO |
| .Q | .DN | Done | BOOL | Read | TON, TOF, TP, TONR / RTO |
| .ET | .ACC | Accumulator: elapsed time | TIME / DINT | Read | TON, TOF, TP, TONR / RTO |
| — | .TT | Timing | BOOL | Read | TON, TOF, TONR / RTO |
| .R | — | Reset | BOOL | Read | TONR / RTO |
| Mnemonic | Name | Data type | Access | In |
|---|---|---|---|---|
| .IN | Enable | BOOL | Read | TON, TOF, TP, TONR |
| .PT | Preset | TIME | Read and write | TON, TOF, TP, TONR |
| .Q | Done | BOOL | Read | TON, TOF, TP, TONR |
| .ET | Accumulator: elapsed time | TIME | Read | TON, TOF, TP, TONR |
| .R | Reset | BOOL | Read | TONR |
| Mnemonic | Name | Data type | Access | In |
|---|---|---|---|---|
| .EN | Enable | BOOL | Read | TON, TOF, RTO |
| .PRE | Preset | DINT | Read and write | TON, TOF, RTO |
| .DN | Done | BOOL | Read | TON, TOF, RTO |
| .ACC | Accumulator: elapsed time | DINT | Read | TON, TOF, RTO |
| .TT | Timing | BOOL | Read | TON, TOF, RTO |
Behaviour in detail
- One timer variable can serve any timer instruction; it takes the one that uses it.
- A timer must be run by a single box: two boxes on the same variable get in each other's way (reported in Problems).
- RES clears the elapsed time and the done bit, wherever it is in the program.
European (IEC) and American styles
European: IEC_TIMER type, members PT, ET (TIME), IN, Q.
American: TIMER type, members .PRE, .ACC (DINT, milliseconds), .EN, .TT, .DN. Same memory, other names.