Free
4 min

Beginner 06 — Latch the start (SET coil)

beginnerfundamentalsset-coillatch
Beginner 06 — Latch the start (SET coil) 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

Now we fix stage 4. A SET coil (S=) latches a bit on. Pulse START once — the LIGHT turns on and stays on, even after you release the button. That's how real machines work: you tap the start button, the motor runs. You don't stand there holding the button down all day.

Objectives

  • A brief START pulse turns LIGHT on
  • LIGHT stays on after START is released

Hints

  • Use a SET coil instead of a normal coil. In IEC: | START | S= LIGHT ;
  • Once a SET coil fires, the bit stays on until something resets it. We add the reset in the next scenario.

I/O Table

Inputs

START

Momentary start 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. #1Pulse START → LIGHT latches on

    A momentary START sets LIGHT and it stays on after release

  2. #2Idle → LIGHT off

    Without ever pressing START, LIGHT stays off

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