Traffic Light 02 — Manual Red/Yellow/Green
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
Briefing
Wire three switches straight to the North-South lamps. No timing yet — just direct control, to prove you can drive each lamp independently before automating the sequence. All three lamps can be on at once here — that's expected; the interlock comes in later stages.
Objectives
- RED_SW controls NS_RED independently
- YEL_SW controls NS_YEL independently
- GRN_SW controls NS_GRN independently
Hints
- Each switch gets its own rung — three separate contact→coil rungs.
- No interlock needed yet: it is fine for all three lamps to be on together.
I/O Table
Inputs
RED_SWManual red switch
BOOL · %I0.0
YEL_SWManual yellow switch
BOOL · %I0.1
GRN_SWManual green switch
BOOL · %I0.2
Outputs
NS_REDNorth-South red lamp
BOOL · %Q0.0
NS_YELNorth-South yellow lamp
BOOL · %Q0.1
NS_GRNNorth-South green lamp
BOOL · %Q0.2
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1Each switch drives its own lamp
Flipping a switch lights only its matching lamp; all three can be on together
- #2All switches off → all lamps off
Releasing every switch turns off every lamp
Related scenarios
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