FAILURE MAP
← Case archive

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

Sequencer advances and writes on a scan that is also resetting · case 05

A reset coinciding with a step pulse outputs the next step pattern while the position reads 0.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Sequencer output (SQO). words is the sequencer file whose element 0 is the home step; position starts at 0. On each rising edge of enable the position advances; past the last element it wraps to 1 (not 0). Each advance writes dest = (dest AND NOT mask) OR (word AND mask) in 16 bits. A reset input returns position to 0 without writing dest and has priority over a coincident advance; the enable edge memory is always updated. steps is a list of [enable, reset]; return [position, dest] 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: scenario 10[[1, 61110], [1, 61110], [2, 22519], [2, 22519], [3, 20082], [3, 20082], [3, 20082], [3, 20082], [3, 20082], [0, 65253], [0, 65253], [0, 65253], [0, 65253]][[1, 61110], [1, 61110], [2, 22519], [2, 22519], [3, 20082], [3, 20082], [3, 20082], [3, 20082], [3, 20082], [0, 20082], [0, 20082], [0, 20082], [0, 20082]]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 ↗