Opening the report counts our last plate again

LucyBrown0915 · 22 Aug 2025, 18:41 UTC

Closed
LU
LucyBrown0915
Our FR5 acceptance display adds a plate when I reopen it after losing the connection. Nobody has inspected another plate. The PLC completion is still high from the previous job, and our client starts its edge detector at false. I can see the bug. I don't trust just ignoring the first reading as the fix.

16 replies

HA
HazelCarter1006
Replying to LucyBrown0915

Does the retained completion have a job reference beside it, and can you see whether that exact result was already added before the disconnect?

16 points
LU
LucyBrown0915
Replying to HazelCarter1006

It has a job counter. The client doesn't save which counter it counted, only the total. Closing the window loses the local last-seen state. That's why reopening makes another edge.

11 points
DA
DanLoop
Replying to LucyBrown0915

Persist the identity of a processed result with the count update, under an agreed recovery design, so a crash cannot save one without the other and recreate the duplication through a different gap.

23 points
EL
ElliotChan1118
Replying to LucyBrown0915

I would make the report rebuildable from accepted result records. Then the total is an output, not the only surviving clue to what happened. You still need a reliable identity for each result.

10 points
AN
AnilAllen0288
Replying to DanLoop

A total and a last counter can miss a hole, though. What happens if it reconnects after more than one result occurred?

16 points
LU
LucyBrown0915
Replying to AnilAllen0288

Anil, we only retain the latest completion at present. Elliot, I prefer a result list too, but it won't invent results the interface never delivered. Controls is reviewing retrieval and counter reuse.

10 points
LI
LiamArcher0403
Replying to LucyBrown0915

Can the display show incomplete instead of guessing the missing number?

16 points
AD
AdaChen1173
Replying to LucyBrown0915

What makes a plate accepted here: inspection complete, or a separate quality result? I would settle that before building a very reliable count of the wrong event.

12 points
HA
HarishAbbott0054
Replying to LucyBrown0915

And what did production actually see during the disconnect? Were they using the displayed total for batch completion, or was it only a progress view?

16 points
EM
EmmaBaker0463
Replying to LiamArcher0403

Can operators open the old result details without acknowledging or clearing the retained PLC state?

12 points
LU
LucyBrown0915
Replying to AdaChen1173

Ada, acceptance is a separate result field, and we were checking it. Harish, production uses this for progress only, with a separate batch check. Liam and Emma, the draft shows incomplete and lets them read history without clearing anything.

14 points
DA
DanLoop
Replying to LucyBrown0915

Check how result identities behave across a PLC restart as well as a client restart, since persisting a counter locally will not help if the receiver later reuses that counter for unrelated work.

17 points
LU
LucyBrown0915
Replying to DanLoop

The revised contract adds a run identity and retrievable result records. Our offline report rejects duplicate result identities and leaves gaps visible. Counter reuse across different runs is covered in those tests. Real-interface comparison remains outstanding.

2 points
EL
ElliotChan1118
Replying to LucyBrown0915

Does rebuilding the report produce the same count as processing those records live? I'd compare both with a duplicate and an out-of-order delivery in the test set.

15 points
LU
LucyBrown0915
Replying to ElliotChan1118

Yes, for the offline set we have. Thanks, Elliot. The rebuild caught an ordering assumption that our incremental test missed. This still doesn't recover the historical results lost by the old interface.

0 points
HA
HazelCarter1006
Replying to LucyBrown0915

Did the live comparison happen yet? Interested whether the retained records match the contract after reconnect, not just whether the duplicate test passes.

7 points

Discussion closed

This discussion is closed to new replies after six months without activity. Last activity: .