Pro
8 min

CCST 03 — TON Timer (On-Delay)

ccstladdertimerTONon-delay
CCST 03 — TON Timer (On-Delay) scenario preview

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

Briefing

Write a rung that turns on LAMP 5 seconds after SWITCH_1 is asserted. Use a TON (On-Delay Timer).

Objectives

  • Trigger TON_1 with SWITCH_1
  • Set PT = T#5s
  • Energise LAMP using TON_1.Q

Hints

  • TON is an IEC Function Block — instance it as TON_1
  • TON_1(IN := SWITCH_1, PT := T#5000ms)
  • LAMP := TON_1.Q

I/O Table

Inputs

SWITCH_1

Trigger switch

BOOL · %I0.0

Outputs

LAMP

Output 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. #1Lamp off before 5s

    Lamp off before 5s

  2. #2Lamp on after 5s

    Lamp on after 5s

  3. #3Lamp off when switch released

    Lamp off when switch released

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