Pro
10 min

Lesson 9 — Delayed-Off (TOF)

curriculumlessontimerTOF

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Lesson 9 — Delayed-Off (TOF) scenario preview

Briefing

TOF (Timer OFF-delay) energises its Q output immediately when IN goes true, and keeps it on for PT after IN goes false. Classic application: an automatic door that opens when someone is present and stays open 5 seconds after they leave.

Objectives

  • DOOR_OPEN goes true immediately when OCCUPANCY is true
  • DOOR_OPEN stays true for 5 s after OCCUPANCY goes false
  • DOOR_OPEN goes false 5 s after OCCUPANCY clears

Hints

  • Declare: T_DOOR : TOF; Call it: T_DOOR(IN := OCCUPANCY, PT := T#5s);
  • TOF.Q is true while IN is true AND for PT after IN falls.

I/O Table

Inputs

OCCUPANCY

Occupancy sensor

BOOL · %I0.0

Outputs

DOOR_OPEN

Door open output

BOOL · %Q0.0

Your program will be tested against:

All test cases run automatically when you submit. Assertions are hidden until you pass.

  1. #1Door opens immediately on occupancy

    OCCUPANCY true → DOOR_OPEN true within one scan

  2. #2Door stays open 2 s after occupancy clears

    OCCUPANCY goes false but DOOR_OPEN still true 2 s later

  3. #3Door closes 5.5 s after occupancy clears

    DOOR_OPEN must be false 5.5 s after OCCUPANCY falls

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Competency and practice field guide

PLC off-delay timer curriculum scenario: practice plan

Direct answer

The learner can predict when the output remains true after the enabling condition falls and prove equality, re-enable and restart cases.

Written for pLC learners comparing off-delay behavior with on-delay and retentive timing patterns.

a PLC logic and scan-cycle training station with observable inputs, outputs, timing traces and program state used to prove execution behavior while studying TOF off-delay timing, output state, accumulated time and reset behavior
System map / 02

NODE 01observable

Scope

Input condition, preset, accumulated time, output or done state, timing base, scan period, re-enable behavior, startup and reset semantics.

NODE 02observable

Signal path

Sampled condition through timer state update to output instruction, modeled device response and timestamped acceptance evidence.

NODE 03observable

Baseline practice

The output is active while enabled and remains active for the declared delay after a clean falling transition before turning off once.

NODE 04observable

Edge cases

Zero preset, equality boundary, re-enable during timing, scan jitter, task pause, power cycle, retained state, held input and preset change.

NODE 05observable

Fault practice

An input, timer type, preset, time-base, scan, status-bit, consumer, restart or reset mismatch.

NODE 06observable

Transfer to the job

The timer recreated and tested in official software against the intended controller and task configuration.

Answer surface / 07

What does a TOF timer do in a PLC?

An off-delay timer keeps its output condition active for a configured interval after the enabling condition changes from true to false.

What happens if a TOF is re-enabled before the delay expires?

Common implementations restore or maintain the active output and reset timing state, but verify the exact controller instruction semantics.