FAILURE MAP
← Case archive

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

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

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

Member previewVariant 2 · 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 8[[0, 1982], [1, 47038], [1, 47038], [1, 47038], [1, 47038], [1, 47038], [2, 10174], [0, 10174], [0, 10174], [0, 10174], [0, 10174], [0, 47038], [0, 47038]][[0, 1982], [1, 47038], [1, 47038], [1, 47038], [1, 47038], [1, 47038], [2, 10174], [0, 10174], [0, 10174], [0, 10174], [0, 10174], [0, 10174], [0, 10174]]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 ↗