Free
6 min

Beginner 08 — Delayed-on light (TON)

beginnerfundamentalstimerTON

Ready to build this?

Sign up free — no credit card required. This scenario is included in the free tier.

Sign up to play this scenario →

Already have an account? Log in

Not ready to sign up? Run a live lab now — no signup →

Beginner 08 — Delayed-on light (TON) scenario preview

Briefing

An on-delay timer: after SWITCH closes, wait 2 seconds, then turn LIGHT on. Release the switch early and the timer resets — the LIGHT never comes on. The starter already includes the timer: a TON ("Timer On-Delay") called T_DELAY, fed by SWITCH with a 2-second preset. What is still missing is using the timer's Q (done) output to switch LIGHT on. If your editor is empty, add a TON from More instructions, feed SWITCH into its IN input and set its preset time (PT) to 2 seconds.

Objectives

  • Hold SWITCH on for less than 2 seconds → LIGHT stays off
  • Hold SWITCH on for at least 2 seconds → LIGHT turns on

Hints

  • The starter already runs the timer from SWITCH with a 2-second preset (2000 ms). If you started from an empty program, add an On-delay timer (TON) from More instructions and feed SWITCH into its IN input.
  • Nothing uses the timer yet. LIGHT has to come on only once the timer is done, not straight from SWITCH.
  • The timer's done output is Q: it turns on only once the 2 seconds are up, so LIGHT should follow it.

I/O Table

Inputs

SWITCH

Hold-to-arm switch (NO)

BOOL · %I0.0

Outputs

LIGHT

Indicator lamp

BOOL · %Q0.0

Your program will be tested against:

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

  1. #1Hold SWITCH 2200 ms → LIGHT on

    Once the 2 s preset elapses, TON.Q goes true

  2. #2Hold SWITCH 1700 ms → LIGHT stays off

    Timer has not yet reached its 2 s preset

  3. #3Release SWITCH early → LIGHT stays off

    Dropping IN before PT elapses resets the timer

Ready to build this?

Sign up free — no credit card required. This scenario is included in the free tier.

Sign up to play this scenario →

Already have an account? Log in

Not ready to sign up? Run a live lab now — no signup →

Runnable simulator field guide

TON delay-on PLC scenario: test checklist

Direct answer

The learner can predict the timer state before, at and after the preset and explain what happens when the enabling condition changes.

Written for pLC beginners learning enable, elapsed time, done state, reset and scan effects through one observable delay-on task.

an automation engineer correlating PLC state, scan evidence and a controlled conveyor response at a logic diagnostics workstation while studying TON delay-on timing and boundary tests
System map / 02

NODE 01observable

Scenario setup

Target timer semantics, enabling condition, instance, preset and units, accumulated or elapsed value, done output, reset condition, task period, output use and initial state.

NODE 02observable

I/O and state map

Input transition through rung truth, timer instance update, elapsed comparison, done state, downstream command and visible process response.

NODE 03observable

Normal run

Enable held long enough to reach the preset once, command the expected output and reset cleanly when false.

NODE 04observable

Boundary run

Just below preset, exact preset, one scan above, brief dropout, repeated enable, task-period change, skipped call, reset and power return.

NODE 05observable

Injected fault

An enable, instance, time-base, scan, comparison, reset, downstream-owner or restart mismatch.

NODE 06observable

Target check

The case repeated in the exact target timer instruction and task with measured elapsed behavior.

Answer surface / 07

What does a TON timer do in a PLC?

A delay-on timer measures how long its enabling condition remains true and asserts its completion state according to the target-specific preset and execution rules.

Does a TON keep timing when its rung goes false?

A conventional nonretentive TON resets when disabled, but exact accumulator and status semantics must be checked on the selected platform.