Pro
15 min
CCST 15 — Diagnose: Scan-Order Race Condition
ccstdiagnosticsscan-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
Briefing
Two rungs read and write the same internal bit. Rung 2 sets BIT_A, but Rung 1 (which clears it) runs first in the scan — so BIT_A is always cleared before BIT_OUT sees it. Reorder the rungs to fix it.
Objectives
- Identify that rung evaluation order causes BIT_OUT never to see BIT_A
- Move the set rung BEFORE the clear rung
- Verify BIT_OUT goes TRUE when TRIGGER is asserted
Hints
- Ladder scans top-to-bottom, left-to-right
- The set rung must precede the rung that reads the set bit
I/O Table
Inputs
TRIGGERTrigger input
BOOL · %I0.0
Outputs
BIT_OUTOutput
BOOL · %Q0.0
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1Output follows trigger
Output follows trigger
Related scenarios
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