Pro
15 min

Fault 05 — Scan-Order Race

fault-injectionscan-orderrace

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Fault 05 — Scan-Order Race scenario preview

Briefing

An interlock occasionally trips for no apparent reason. Under normal running it recovers immediately, but the downstream safety relay catches the momentary drop and latches a fault. Use slow-scan step mode to watch the scan execute rung-by-rung and identify the ordering problem.

Objectives

  • Use slow-scan step mode to walk through the ladder one scan at a time
  • Identify which rung reads a tag before another rung writes it
  • Reorder the rungs to eliminate the one-scan lag
  • Verify INTERLOCK_OK stays stable with the corrected rung order

Hints

  • Switch to Step scan mode and use the "Next scan" button
  • Watch VALVE_OPEN and INTERLOCK_OK on consecutive scans
  • The fix is a rung reorder — no logic change is required

I/O Table

Inputs

ENABLE_CMD

Enable command from HMI

BOOL · %I0.0

Outputs

VALVE_OPEN

Valve solenoid coil

BOOL · %Q0.0

INTERLOCK_OK

Interlock-OK signal

BOOL · %Q0.1

Your program will be tested against:

All test cases run automatically when you submit. Assertions are hidden until you pass.

  1. #1INTERLOCK_OK stable when ENABLE_CMD goes true

    On the same scan that ENABLE_CMD transitions, INTERLOCK_OK should go true without a glitch

  2. #2Both outputs go false when ENABLE_CMD goes false

    Disabling command removes both valve and interlock

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in