Free
4 min

Beginner 02 — Two switches (AND)

beginnerfundamentalsandseries

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 →

Beginner 02 — Two switches (AND) scenario preview

Briefing

Your rung is almost done. SWITCH_1 is already on it, and right after it there is an empty contact slot. Click or tap the empty slot and choose SWITCH_2. Two contacts on the same line means power has to pass through both: the light turns on only when SWITCH_1 AND SWITCH_2 are ON. That is how machines demand two conditions at once — guard closed AND start pressed.

Objectives

  • Name the empty contact after SWITCH_1 as SWITCH_2
  • When both SWITCH_1 and SWITCH_2 are true, LIGHT turns on
  • When either is false, LIGHT stays off

Hints

  • Click or tap the dashed empty contact on the rung (it says “tap to name”) and pick SWITCH_2 from the list.
  • Both contacts must sit on the same line, one after the other — power must pass through SWITCH_1 and then SWITCH_2. If you removed the empty slot, put a SWITCH_2 contact right after SWITCH_1.

I/O Table

Inputs

SWITCH_1

Rocker switch 1 (ON/OFF)

BOOL · %I0.0

SWITCH_2

Rocker switch 2 (ON/OFF)

BOOL · %I0.1

Outputs

LIGHT

Desk 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. #1Only SWITCH_1 on → LIGHT off

    Either switch open keeps the light off

  2. #2Both switches on → LIGHT on

    Both switches closed turns on the light

  3. #3Both off → LIGHT off

    Both switches open keeps the light off

  4. #4Only SWITCH_2 on → LIGHT off

    Check the remaining two-switch input combination

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 →

Runnable simulator field guide

PLC AND logic beginner scenario: test checklist

Direct answer

The learner can write the truth table, predict each input combination and explain the difference between a logical condition and a safe machine design.

Written for pLC beginners learning why every required permissive must be true before a commanded output can energize.

an adult PLC learner explaining a tested program, fault record and practical assessment evidence to an instructor while studying two-condition AND logic, scan truth and observable output behavior
System map / 02

NODE 01observable

Scenario setup

Two input conditions, normal state, contact instruction interpretation, series path, output owner, truth table, scan timing and independent result.

NODE 02observable

I/O and state map

Physical or simulated inputs through input states and series logic to one output command and visible feedback.

NODE 03observable

Normal run

The output is true only for the declared combination where both required conditions are true.

NODE 04observable

Boundary run

All four Boolean combinations, simultaneous changes, one-scan pulse, chatter, held input, reset and program restart.

NODE 05observable

Injected fault

An input-state, contact-semantics, series-path, rung-order, output-owner or feedback mismatch.

NODE 06observable

Target check

The learned Boolean pattern embedded in a complete risk-assessed and target-tested requirement.

Answer surface / 07

What does AND mean in PLC ladder logic?

Every required condition in the logical path must evaluate true before the output expression becomes true.

Is two inputs in series a safety two-hand control?

No. A safety function needs risk-based requirements, certified architecture, timing, diagnostics and validation beyond ordinary PLC AND logic.

Real and logic plc ladder footage

See this exact skill in the working simulator.

Watch the real browser product respond to the task on this page, then try the same practical workflow yourself. No slides, concept mockups, install, or credit card.

Try this in the browser
PLC AND Logic — Two Switches in Series