docs(twincat): correct stale Structure-symbol comment (members now expand via discovery)
v2-ci / build (push) Failing after 39s
v2-ci / unit-tests (tests/Core/ZB.MOM.WW.OtOpcUa.Cluster.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.ControlPlane.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Security.Tests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests) (push) Has been skipped
v2-ci / build (push) Failing after 39s
v2-ci / unit-tests (tests/Core/ZB.MOM.WW.OtOpcUa.Cluster.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.ControlPlane.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Security.Tests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests) (push) Has been skipped
This commit is contained in:
@@ -89,8 +89,9 @@ public static class TwinCATDriverFactoryExtensions
|
||||
// Driver.TwinCAT-003: Structure-typed pre-declared tags are not supported. The driver's
|
||||
// atomic surface cannot read/write UDT blobs — MapToClrType falls through to typeof(int)
|
||||
// and ConvertForWrite throws NotSupportedException, producing garbage reads or late
|
||||
// runtime failures. BrowseSymbolsAsync already correctly yields DataType = null for
|
||||
// Structure symbols so they never appear in the discovered address space. Reject here
|
||||
// runtime failures. BrowseSymbolsAsync expands a Structure/UDT/FB symbol into its atomic
|
||||
// member leaves (the container itself is never surfaced as a writable Structure node), so the
|
||||
// supported way to address members is discovery — not a pre-declared Structure tag. Reject here
|
||||
// with a clear error so operators get a configuration-time failure, not a silent wrong value.
|
||||
if (dataType == TwinCATDataType.Structure)
|
||||
throw new InvalidOperationException(
|
||||
|
||||
Reference in New Issue
Block a user