Fairino FR5: Reconciling retained job state without resending work

JaneAbbott0075 · 2026年8月25日 21:31 UTC

回复讨论

主帖中文翻译暂不可用,以下显示英文原文;回复保留原文。 查看英文原文

JA
JaneAbbott0075
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 Fairino FR5 in a PLC-coordinated inspection bench, using a sample bracket. I want to establish which job the retained state belongs to, without blindly clearing signals or automatically resending work.

13 条回复

IS
IsaacAbbott0085

Does your trace show completion staying high through the outage? And does the application retain what it already consumed?

9分
JA
JaneAbbott0075

@IsaacAbbott0085 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.

22分
IS
IsaacAbbott0085

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.

4分
LE
LeoBrown0884

A durable marker needs job identity; persisting a generic consumed flag could suppress a different completion rather than correctly deduplicating this one.

-6分
IS
IsaacAbbott0085

@LeoBrown0884 You're right about the missing identity condition. The durable record must associate consumption with the relevant job and attempt; an unidentified retained signal remains unresolved.

16分
JA
JaneAbbott0075

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

23分
IS
IsaacAbbott0085

@JaneAbbott0075 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.

14分
LE
LeahBrooks0843

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

5分
HA
HazelArcher0397

Could the application simply ignore an initially high completion signal, or would that risk discarding a result it hasn't actually accounted for?

19分
IS
IsaacAbbott0085

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

14分
JA
JaneAbbott0075

For this traced example, our persistent history identifies the job and attempt. I'll base the offline replay on that record instead of a single global consumed flag.

15分
JA
JaneAbbott0075

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.

7分
IS
IsaacAbbott0085

That explains the duplicate without overclaiming the fix. Identity and restart verification are sensible completion conditions.

7分

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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