Free
4 min

Beginner 03 — Two switches (OR)

beginnerfundamentalsorparallel

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 03 — Two switches (OR) scenario preview

Briefing

Two switches in parallel. The light turns on when SWITCH_1 OR SWITCH_2 is ON. Either one is enough. The second path is already drawn beside SWITCH_1 with an empty contact: name it SWITCH_2. This is how you wire two start buttons — front-of-machine and back-of-machine — so an operator on either side can run the line. Parallel contacts read as OR.

Objectives

  • When SWITCH_1 is true, LIGHT turns on
  • When SWITCH_2 is true, LIGHT turns on
  • When both are false, LIGHT stays off

Hints

  • LIGHT must come on when SWITCH_1 is on, and also when SWITCH_2 is on, so each switch needs its own path to LIGHT, side by side (in parallel). The second path is already on the rung: its contact is empty.
  • Click or tap the dashed empty contact on the lower branch and choose SWITCH_2. If you removed that branch, add a parallel branch beside SWITCH_1 (on a phone: tap the SWITCH_1 contact, then Add, then Parallel branch) and name the new contact SWITCH_2.

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. #1SWITCH_2 only → LIGHT on

    Either switch closed lights the lamp

  2. #2SWITCH_1 only → LIGHT on

    Either switch closed lights the lamp

  3. #3Both off → LIGHT off

    Both switches open keeps the light off

  4. #4Both switches on → LIGHT on

    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

Beginner OR logic scenario: test checklist

Direct answer

The learner can predict all input combinations, implement one explicit final output owner and explain how independent requests share a controlled result.

Written for pLC beginners learning parallel ladder branches, Boolean OR, multiple start sources, stop priority and the difference between commands and feedback.

a controls engineer cross-referencing a PLC variable table, I/O schedule, electrical drawing and repeatable test evidence at a guarded automation cell while studying PLC OR logic truth, branch behavior and output ownership
System map / 02

NODE 01observable

Scenario setup

Two input requests, their active states, shared permissives, stop priority, output ownership, feedback, reset and expected behavior for every truth-table row.

NODE 02observable

I/O and state map

Each input state through a parallel branch or Boolean expression to combined request, permissive, final output command, modeled response and feedback.

NODE 03observable

Normal run

Either valid request produces the output, neither request leaves it off and the shared stop or permissive retains declared priority.

NODE 04observable

Boundary run

Simultaneous requests, chattering input, stuck request, changing permissive, one-scan pulse, feedback loss and restart.

NODE 05observable

Injected fault

An input mapping, contact truth, branch, combined request, permissive, final writer, output, feedback or restart mismatch.

NODE 06observable

Target check

The behavior recreated in the intended PLC language and tested with target I/O and machine stop requirements.

Answer surface / 07

What is OR logic in a PLC?

The result is true when at least one of the defined input conditions is true; ladder logic commonly represents this with parallel branches.

Can two start buttons be wired as OR logic?

They can form alternative requests, but stop priority, maintained state, output ownership, safety and machine feedback must be designed separately.

Real or 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 OR Logic — Two Switches in Parallel