Free
3 min
Traffic Light 01 — One Lamp On
beginnertraffic-lightfundamentalscontactcoil
Traffic Light 01 — One Lamp On
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
Turn on the North-South red lamp when power is on. One input, one output, one rung — the simplest possible traffic-light program. This is stage 1 of 5: you'll build up to the full 4-way intersection one concept at a time.
Objectives
- When POWER_ON is true, NS_RED turns on
- When POWER_ON is false, NS_RED turns off
Hints
- Place a normally-open (NO) contact for POWER_ON on the left of the rung.
- Place an output coil for NS_RED on the right of the rung.
I/O Table
Inputs
POWER_ONMaster power enable
BOOL · %I0.0
Outputs
NS_REDNorth-South red lamp
BOOL · %Q0.0
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1POWER_ON true → NS_RED on
Applying power lights the North-South red lamp
- #2POWER_ON false → NS_RED off
Removing power turns off the 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