Lesson 4 — OR Stop
Ready to build this?
Sign up free — no credit card required. This scenario requires the Basic plan.
Sign up to play this scenario →Already have an account? Log in
Briefing
The simulator exposes two active-high stop commands: each tag is FALSE while released and TRUE while pressed. Use two normally-closed (negated) logic instructions in series so either command turns the lamp off. This is a Boolean-logic exercise, not a safety-circuit design. Physical NC stop circuits use different healthy-state input semantics and require suitable devices, monitoring, architecture, and validation.
Objectives
- LAMP is ON when neither STOP_1 nor STOP_2 is pressed
- LAMP goes OFF when STOP_1 is pressed
- LAMP goes OFF when STOP_2 is pressed
Hints
- Use two NC contacts (/ prefix) in series: if either STOP is pressed, power flow breaks.
- IEC: | /STOP_1 /STOP_2 | := LAMP ;
I/O Table
Inputs
STOP_1Simulated stop command 1 (TRUE when pressed)
BOOL · %I0.0
STOP_2Simulated stop command 2 (TRUE when pressed)
BOOL · %I0.1
Outputs
LAMPIndicator lamp
BOOL · %Q0.0
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1Neither stop pressed → LAMP on
Both active-high stop commands are false, so both negated instructions pass
- #2STOP_1 pressed → LAMP off
One stop breaks the series chain
- #3STOP_2 pressed → LAMP off
Other stop also breaks the chain
Related scenarios
Ready to build this?
Sign up free — no credit card required. This scenario requires the Basic plan.
Sign up to play this scenario →Already have an account? Log in