简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

Which job owns the completion after reconnect? - fixture-check bookkeeping

MinaAbbott0076 · 2026年8月25日 15:37 UTC

回复讨论
MI
MinaAbbott0076
Our application sometimes counts an old completion again when it reconnects. The PLC signal was already high before the connection dropped. This tracks fixture-check bookkeeping for Universal Robots UR5e in a PLC-coordinated inspection bench, using a fixture-mounted housing. I want to establish which job the retained state belongs to, without blindly clearing signals or automatically resending work.

16 条回复

PR
PriyaAllen0307

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.

11
MI
MinaAbbott0076

It stays high. Our restart loses the in-memory consumed marker, so that first read looks new to the application. Annoyingly simple once it's visible.

8
PR
PriyaAllen0307

Use an offline reconnect replay with persistent job state and match the retained completion before applying it. Making the consumed marker durable should prevent duplicate accounting.

19
RI
RickShift

Only if that marker identifies the right job. One persisted boolean could hide a genuinely new completion instead.

13
PR
PriyaAllen0307
回复 RickShift

Correct. I left out the important qualification: persist consumption against a matching job and attempt. If identity can't be established, leave the state unresolved.

13
MI
MinaAbbott0076

@PriyaAllen0307 Should reconnect have a reconciliation state before normal monitoring resumes? Otherwise our first sample looks just like any other update.

2
PR
PriyaAllen0307

@MinaAbbott0076 A reconciliation phase can compare the initial retained state with persistent history before normal processing resumes. Connection recovery alone doesn't establish a new job result.

6
LI
LiamBrooks0838

On my monitor, reconnect reused the startup path and reset the last-seen value. Edge detection then invented an edge nobody had observed.

8
AM
AmaraBarnes0600

Would ignoring the first high value fix that? It feels tempting, which probably means I'm missing something.

2
PR
PriyaAllen0307

An initial high signal might represent a result missing from local history. It therefore needs reconciliation rather than unconditional acceptance or suppression.

10
MI
MinaAbbott0076

Our durable record has the job and attempt for the example in this trace. I'll use that for the replay rather than a global seen-it flag.

17
RI
RickShift

Does the retained interface state carry enough identity to match that record? A detailed local ledger alone doesn't prove the match.

19
MI
MinaAbbott0076
回复 RickShift

The retained state in this capture includes a job identity matching our durable record. I haven't verified equivalent identity support across the other interface variants.

3
PR
PriyaAllen0307

You can verify the captured case without claiming all variants are covered. Where the interface can't establish identity, the retained completion should remain unresolved.

21
MI
MinaAbbott0076

@PriyaAllen0307 I've explained why our first read gets counted again: the signal persists while our consumed marker doesn't. I'll close the fix only when identity-based reconciliation survives the offline reconnect and restart cases.

13
PR
PriyaAllen0307

Your closure fits the observed mechanism, while the reconciliation result stays conditional on the required checks.

9

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。