Free
5 min
Lesson 1 — Button → Light
curriculumlessonoutputbasics
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
Press POWER_ON and LIGHT turns on. That's it — your first rung. A contact reads an input. A coil writes an output. When the contact is true, energy flows right to the coil and the output energises.
Objectives
- When POWER_ON is true, LIGHT turns on
- When POWER_ON is false, LIGHT turns off
Hints
- Place a normally-open (NO) contact for POWER_ON on the left of the rung.
- Place an output coil ( := ) for LIGHT on the right of the rung.
I/O Table
Inputs
POWER_ONPush-button (NO)
BOOL · %I0.0
Outputs
LIGHTIndicator 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 → LIGHT on
Pressing the button turns on the light
- #2POWER_ON false → LIGHT off
Releasing the button turns off the light
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