Our application sometimes counts an old completion again when it reconnects. The PLC signal was already high before the connection dropped. This tracks inspection completion tracking for Universal Robots UR5e in a workshop cell with retained job registers, using an inspection coupon.
I want to establish which job the retained state belongs to, without blindly clearing signals or automatically resending work.
Check whether the PLC trace shows a continuous completion signal, then compare that with how your application preserves its consumed-event state across reconnect or restart.