Back to FBD reference

Timers

TOF

Off-delay timer

The TOF block turns Q on immediately when IN is TRUE, then keeps Q TRUE for the configured scan or time delay after IN becomes FALSE.

Typical FBD symbol

IN
TOF
Q
Typical FBD symbol for TOF

Inputs

NameTypeRequiredDescription
INBOOLYesTimer hold signal.

Outputs

NameTypeRequiredDescription
QBOOLYesOutput with delayed turn-off.

Parameters

NameTypeRequiredDefaultDescription
PT_SCANSnumberNo1Off-delay threshold in scans.
PTnumberNo-Delay in milliseconds when a time preset is used.

Stateful

Yes, the block keeps internal state between scans.

Behavior rule

When IN = TRUE, Q is immediately TRUE; after IN changes to FALSE, the timer keeps Q = TRUE until the configured delay expires.

Scan table

Example for PT_SCANS = 2.

ScanINelapsed after offQ
1TRUE0TRUE
2FALSE1TRUE
3FALSE2FALSE
4FALSE0FALSE

Practical use

  • fan turn-off delay;
  • holding a signal after a sensor disappears.

What to watch

  • Confusing it with TON. TOF delays turn-off, not turn-on.

Related blocks