Free
3 min

Beginner 01 — Switch turns on Light

beginnerfundamentalscontactcoil
Beginner 01 — Switch turns on Light scenario preview

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

Your first PLC program. When SWITCH is ON, LIGHT turns ON. When SWITCH is OFF, LIGHT turns OFF. That's it — one 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 SWITCH is true, LIGHT turns on
  • When SWITCH is false, LIGHT turns off

Hints

  • Place a normally-open (NO) contact for SWITCH on the left of the rung.
  • Place an output coil for LIGHT on the right of the rung.

I/O Table

Inputs

SWITCH

Push-button switch (NO)

BOOL · %I0.0

Outputs

LIGHT

Indicator lamp

BOOL · %Q0.0

Your program will be tested against:

All test cases run automatically when you submit. Assertions are hidden until you pass.

  1. #1SWITCH true → LIGHT on

    Closing the switch turns on the light

  2. #2SWITCH false → LIGHT off

    Opening the switch turns off the light

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