Free
4 min

Traffic Light 02 — Manual Red/Yellow/Green

beginnertraffic-lightfundamentalscontactcoil
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_SW

Manual red switch

BOOL · %I0.0

YEL_SW

Manual yellow switch

BOOL · %I0.1

GRN_SW

Manual green switch

BOOL · %I0.2

Outputs

NS_RED

North-South red lamp

BOOL · %Q0.0

NS_YEL

North-South yellow lamp

BOOL · %Q0.1

NS_GRN

North-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.

  1. #1Each switch drives its own lamp

    Flipping a switch lights only its matching lamp; all three can be on together

  2. #2All switches off → all lamps off

    Releasing every switch turns off every lamp

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