FAILURE MAP
← Case archive

FA-92127 / PLC ladder logic scan cycles / Member archive

Shift register loads the sensor value from the previous scan · case 02

A part that arrives on the same scan as the encoder edge is not tracked.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Bit shift left (BSL) register tracking parts on a conveyor. On each rising edge of the encoder clock the bit at the far end (index length-1) moves to the unload bit, every bit moves one position toward the far end, and bit 0 loads the part-present sensor sampled on that same scan. The unload bit holds its value until the next shift. pulses is a list of [clock, sensor]; return [register string index 0 first, unload] per scan.

Why this case matters

Ladder programs are executed as repeated scans; each defect here changes what a rung, timer, counter or data-table instruction reports on a particular scan, which is how commissioning and field faults are actually observed.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: single stage[["0", 0], ["0", 0], ["0", 0], ["0", 0], ["1", 0]][["1", 0], ["1", 0], ["0", 1], ["0", 1], ["1", 0]]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗