Free
5 min

Beginner 07 — Latched Start/Stop (SET/RESET)

beginnerfundamentalsset-resetlatch

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 07 — Latched Start/Stop (SET/RESET) scenario preview

Briefing

Add a STOP to the previous scenario. Pulse START, LIGHT latches on. Pulse STOP, LIGHT resets off. Pulse START again, it comes back on. A common way is two rungs, one SET and one RESET (a seal-in rung also works). That's the pattern behind nearly every industrial start/stop circuit you'll ever read.

Objectives

  • Pulse START → LIGHT on
  • Pulse STOP → LIGHT off
  • Pulse START again → LIGHT on again

Hints

  • LIGHT needs two behaviours: START makes it stay on, and STOP makes it go off again.
  • One design uses two rungs: a Set coil driven by START and a Reset coil driven by STOP. A seal-in rung (START OR LIGHT, with STOP in series) also works.
  • Mind the slash on STOP. A Reset rung should fire only WHILE STOP is pressed, so use a plain STOP contact there: a slashed one is true while the button is released and would reset the latch every scan. In a seal-in the opposite holds: STOP sits in series with the output, so it is the slashed one.

I/O Table

Inputs

START

Momentary start push-button (NO)

BOOL · %I0.0

STOP

Momentary stop push-button (NO)

BOOL · %I0.1

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. #1Pulse STOP → LIGHT off

    STOP resets LIGHT after a START latch

  2. #2Pulse START → LIGHT on

    A momentary START sets LIGHT and it stays on after release

  3. #3Restart after stop → LIGHT on again

    After a stop, a new START pulse re-latches 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 →

Runnable simulator field guide

SET and RESET latched start-stop scenario: test checklist

Direct answer

The learner can predict latch state for start, stop, simultaneous command, repeated scan, reset and restart cases and explain the safe limitation.

Written for pLC beginners comparing seal-in logic with SET and RESET instructions and learning why output ownership and scan order matter.

an automation engineer correlating ladder logic, scan timing, PLC I/O and a controlled test result at a debug bench while studying latched start-stop logic with explicit stop priority
System map / 02

NODE 01observable

Scenario setup

Start and stop inputs, state bit, set and reset instructions, rung order, output owner, stop priority, retention, first scan and feedback.

NODE 02observable

I/O and state map

Operator inputs through ordered set or reset execution to stored state, output request, modeled machine response and independent feedback.

NODE 03observable

Normal run

Start, held start, stop, second start and normal reset executed from a known false state.

NODE 04observable

Boundary run

Simultaneous start and stop, duplicate writer, skipped reset, power return, faulted feedback, mode switch and stuck input.

NODE 05observable

Injected fault

An input, instruction-order, stored-state, priority, output-owner, retention, feedback or expectation defect.

NODE 06observable

Target check

The pattern regression-tested with exact target set and reset semantics and a documented safe-state strategy.

Answer surface / 07

How does SET and RESET start-stop logic work?

SET stores the run state after the start event and RESET clears it after the stop condition, with final priority determined by the target and execution order.

Should stop have priority over start?

For ordinary motor control, deliberate stop priority is a common requirement, but the actual machine risk design and safety functions govern.