Annex C DataType (Non-Normative)

C.2 Mapping of generic data types

The mapping of IEC 61131-3 generic data types to OPC UA DataTypes is formally defined in OPC 30000 (PLCOpen companion specification). Table 75. is copied from that specification as a reference, any differences with OPC 30000 indicate that this specification is out of date. This mapping definition is defined for completeness but is normally not used in an OPC UA AddressSpace.
Table 75 – Mapping IEC 61131-3 generic data types to OPC UA data types
IEC 61131-3 generic data types | OPC UA data types | Description |
---|---|---|
ANY | BaseDataType | This abstract OPC UA DataType defines a value that can have any valid OPC UA DataType. |
ANY_DERIVED | BaseDataType | |
ANY_ELEMENTARY | BaseDataType | |
ANY_MAGNITUDE | BaseDataType | |
ANY_NUM | Number | This abstract OPC UA DataType defines a number value that can have any of the OPC UA Number subtypes. |
ANY_REAL | Number | |
ANY_INT | Number | |
ANY_BIT | Number | |
ANY_STRING | String | This OPC UA Built-in DataType defines a Unicode character string that should exclude control characters that are not whitespaces (0x00 - 0x08, 0x0E-0x1F or 0x7F). |
ANY_DATE | DateTime | This OPC UA Built-in DataType defines a Gregorian calendar date. It is a 64-bit signed integer which represents the number of 100 nanosecond intervals since January 1, 1601. |