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 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.
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)1 as soon as power arrives; drops when ET / ACC reaches PT / PRE after the rung drops.
ETACCAccumulator: elapsed timeTIME / DINTOutputNoRead (T1.ET / T1.ACC)Accumulator: the elapsed time, from 0 up to PT / PRE.
—TTTimingBOOLOutputNoRead (T1.TT)1 while timing, after IN / EN drops. 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.
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)1 as soon as power arrives; drops when ET reaches PT after the rung drops.
ETAccumulator: elapsed timeTIMEOutputNoRead (T1.ET)Accumulator: the elapsed time, from 0 up to PT.
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)1 as soon as power arrives; drops when ACC reaches PRE after the rung drops.
ACCAccumulator: elapsed timeDINTOutputNoRead (T1.ACC)Accumulator: the elapsed time, from 0 up to PRE.
TTTimingBOOLOutputNoRead (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

European style
INETPT = T#3sQ0123456789101112time (s)
American style
ENACCPRE = 3000DN0123456789101112time (s)

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

Example

European style
American style

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

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).

See also