[twincat] TwinCAT — TIME/DATE/DT/TOD as native UA types #306

Closed
opened 2026-04-25 12:34:34 -04:00 by dohertj2 · 2 comments
Owner

Auto-managed PR — Mode B (autonomous)

Driver: twincat Phase: 1 Plan PR: 1.2
Plan: docs/plans/twincat-plan.md
Effort: M Cross-driver: False

Summary

Stop marshalling IEC TIME/DATE/DT/TOD as raw UDINT; convert to native UA Duration/DateTime via post-processing in ReadValueAsync, ConvertForWrite, OnAdsNotificationEx. May expose Duration in DriverDataType.

Source files

  • src/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT/TwinCATDataType.cs
  • src/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT/AdsTwinCATClient.cs

Docs

  • docs/Driver.TwinCAT.Cli.md

Fixture

  • tests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests/TwinCatProject/PLC/GVLs/GVL_Primitives.TcGVL

Notes

Hardware-gated.


Branch: auto/twincat/1.2. Target: auto/driver-gaps.

<!-- queue-meta {"id": "twincat-1.2", "driver": "twincat", "phase": 1, "plan_pr_id": "1.2", "deps": [], "cross_driver": false} --> ## Auto-managed PR — Mode B (autonomous) **Driver**: `twincat` **Phase**: `1` **Plan PR**: `1.2` **Plan**: [`docs/plans/twincat-plan.md`](docs/plans/twincat-plan.md) **Effort**: `M` **Cross-driver**: `False` ## Summary Stop marshalling IEC TIME/DATE/DT/TOD as raw UDINT; convert to native UA Duration/DateTime via post-processing in ReadValueAsync, ConvertForWrite, OnAdsNotificationEx. May expose Duration in DriverDataType. ## Source files - `src/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT/TwinCATDataType.cs` - `src/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT/AdsTwinCATClient.cs` ## Docs - `docs/Driver.TwinCAT.Cli.md` ## Fixture - `tests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests/TwinCatProject/PLC/GVLs/GVL_Primitives.TcGVL` ## Notes Hardware-gated. --- _Branch: `auto/twincat/1.2`. Target: `auto/driver-gaps`._
dohertj2 added the phase/1auto-manageddriver/twincatqueue/queued labels 2026-04-25 12:34:34 -04:00
dohertj2 added queue/in-progress and removed queue/queued labels 2026-04-25 17:09:58 -04:00
Author
Owner

🤖 Auto-loop picked this up. Branch: auto/twincat/1.2. Status: in-progress.

🤖 Auto-loop picked this up. Branch: `auto/twincat/1.2`. Status: in-progress.
dohertj2 added queue/done and removed queue/in-progress labels 2026-04-25 17:16:44 -04:00
Author
Owner

Auto-loop completed. Merged via PR #342.

✅ Auto-loop completed. Merged via PR #342.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#306