Pro
8 min
CCST 03 — TON Timer (On-Delay)
ccstladdertimerTONon-delay
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_1Trigger switch
BOOL · %I0.0
Outputs
LAMPOutput lamp
BOOL · %Q0.0
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1Lamp off before 5s
Lamp off before 5s
- #2Lamp on after 5s
Lamp on after 5s
- #3Lamp off when switch released
Lamp off when switch released
Related scenarios
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