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

Not ready to sign up? Run a live lab now — no signup →

Lesson 1 — Button → Light scenario preview

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_ON

Push-button (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. #1POWER_ON true → LIGHT on

    Pressing the button turns on the light

  2. #2POWER_ON false → LIGHT off

    Releasing the button 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

Not ready to sign up? Run a live lab now — no signup →

Competency and practice field guide

Button-and-light PLC curriculum scenario: practice plan

Direct answer

The learner can predict the input image, rung result and output state for pressed and released conditions and explain the scan boundary.

Written for first-time PLC learners connecting one momentary input to one output before adding memory, timing or sequence complexity.

a supervised low-energy motor-starter and control-transformer bench with protective devices, terminal points and measurement access while studying first PLC input-to-output scan, Boolean state and observable light behavior
System map / 02

NODE 01observable

Scope

Button normal state, input address, tag meaning, contact instruction, rung continuity, output owner, lamp state, scan order and stop expectation.

NODE 02observable

Signal path

Physical or simulated button through input sampling, Boolean instruction, rung result, output image and visible lamp result.

NODE 03observable

Baseline practice

Press and release produce one predictable state at every boundary over repeated scans.

NODE 04observable

Edge cases

Normally-open versus normally-closed confusion, stuck input, duplicate output, scan transition, force, restart and physical-versus-logical inversion.

NODE 05observable

Fault practice

A button, input, tag, contact instruction, rung, output owner, channel or lamp mismatch.

NODE 06observable

Transfer to the job

The behavior recreated in the intended PLC dialect and supervised low-energy wiring exercise.

Answer surface / 07

What does a beginner learn from a PLC button-and-light exercise?

It establishes the complete evidence chain from field state and input tag through one Boolean decision to an output command and visible result.

Why can a highlighted rung still leave the light off?

The highlighted condition may not own the final output, the output may be forced or inhibited, or the electrical and load layers may disagree with logic.