FA-92134 / PLC ladder logic scan cycles / Member archive
Shift register unload bit is cleared between shifts · case 04
The reject solenoid only sees the unloaded part for the single edge scan.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: scenario 26 | [["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["1", 0], ["1", 0], ["1", 0], ["0", 1], ["0", 0], ["0", 0]] | [["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["0", 0], ["1", 0], ["1", 0], ["1", 0], ["0", 1], ["0", 1], ["0", 1]] | 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 ↗