Search
2 result(s) for Type1
-
OPC-10000-6 – OPC Unified Architecture - Part 6: Mappings5.2.6 Structuresexample of a structure using C/C++ syntax: struct Type2 { Int32 A; Int32 B; }; struct Type1 { Int32 X; Byte NoOfY; Type2* Y; Int32 Z; UInt16 W[10]; Byte ... length of each dimension is always encoded with the array. An instance of Type1 which contains an array of two Type2 instances would be encoded as 28-byte sequence
-
OPC-10000-6 – OPC Unified Architecture - Part 6: Mappings5.2.8 Unionsexample of a union using C/C++ syntax: struct Type2 { Int32 A; Int32 B; }; struct Type1 { Byte Selector; union { Int32 Field1; Type2 Field2; } Value; }; In the C/C++ example above, the Selector ... Field1 and Field2 are semantically coupled to form a union. An instance of Type1 would be encoded as byte sequence. The length of the byte sequence depends on the selected