Native AbLegacy: refused PLC-5 writes surface as BadCommunicationError #571

Closed
opened 2026-10-07 19:02:14 -04:00 by dohertj2 · 1 comment
Owner

Context: native .NET Allen-Bradley transport work (plan docs/plans/2026-10-07-native-ab-transport.md, branch feat/native-ab-transport, not yet merged). Parked as a Minor during per-task review — none of these block the plan.

Native AbLegacy (PCCC) runtime follow-ups:

  • PLC-5 writes are deliberately refused natively (only N-file reads are supported), but the refusal surfaces as BadCommunicationError rather than BadNotSupported — operators will read it as a comms fault.
  • Float decode on a status-bit sub-element address returns 0/1 (libplctag's float getter returns raw) — negligible, but a parity difference.
Context: native .NET Allen-Bradley transport work (plan `docs/plans/2026-10-07-native-ab-transport.md`, branch `feat/native-ab-transport`, not yet merged). Parked as a Minor during per-task review — none of these block the plan. Native AbLegacy (PCCC) runtime follow-ups: - [ ] PLC-5 writes are deliberately refused natively (only N-file reads are supported), but the refusal surfaces as `BadCommunicationError` rather than `BadNotSupported` — operators will read it as a comms fault. - [ ] Float decode on a status-bit sub-element address returns 0/1 (libplctag's float getter returns raw) — negligible, but a parity difference.
dohertj2 added the driver/ablegacy label 2026-10-07 19:02:14 -04:00
Author
Owner

Fixed on feat/native-ab-transport in 39ae286c: a native AbStatus.Unsupported refusal (PLC-5 non-N reads, all PLC-5 writes, status-bit sub-element writes) now reaches the client as BadNotSupported, keeps the tag handle and does not degrade driver health. Same mapping applied to AbCip.

Fixed on `feat/native-ab-transport` in `39ae286c`: a native `AbStatus.Unsupported` refusal (PLC-5 non-N reads, all PLC-5 writes, status-bit sub-element writes) now reaches the client as `BadNotSupported`, keeps the tag handle and does not degrade driver health. Same mapping applied to AbCip.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#571