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 mnemonicAmerican mnemonicNameData typeAccessIn
.IN.ENEnableBOOLReadTON, TOF, TP, TONR / RTO
.PT.PREPresetTIME / DINTRead and writeTON, TOF, TP, TONR / RTO
.Q.DNDoneBOOLReadTON, TOF, TP, TONR / RTO
.ET.ACCAccumulator: elapsed timeTIME / DINTReadTON, TOF, TP, TONR / RTO
—.TTTimingBOOLReadTON, TOF, TONR / RTO
.R—ResetBOOLReadTONR / RTO
MnemonicNameData typeAccessIn
.INEnableBOOLReadTON, TOF, TP, TONR
.PTPresetTIMERead and writeTON, TOF, TP, TONR
.QDoneBOOLReadTON, TOF, TP, TONR
.ETAccumulator: elapsed timeTIMEReadTON, TOF, TP, TONR
.RResetBOOLReadTONR
MnemonicNameData typeAccessIn
.ENEnableBOOLReadTON, TOF, RTO
.PREPresetDINTRead and writeTON, TOF, RTO
.DNDoneBOOLReadTON, TOF, RTO
.ACCAccumulator: elapsed timeDINTReadTON, TOF, RTO
.TTTimingBOOLReadTON, TOF, RTO

Behaviour in detail

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.