Supported data types
- Last UpdatedSep 27, 2024
- 2 minute read
The following table lists the supported OPC UA data types while calling methods in the OPC UA server.
|
Supported OPC UA Data Types |
Nullable |
Default |
Description |
|
Boolean |
No |
False |
A two-state logical value (true or false). |
|
SByte |
No |
0 |
A signed 8-bit integer. |
|
Byte |
No |
0 |
An unsigned 8-bit integer. |
|
Int16 |
No |
0 |
A signed 16-bit integer. |
|
UInt16 |
No |
0 |
An unsigned 16-bit integer. |
|
Int32 |
No |
0 |
A signed 32-bit integer. |
|
UInt32 |
No |
0 |
An unsigned 32-bit integer. |
|
Int64 |
No |
0 |
A signed 64-bit integer. |
|
UInt64 |
No |
0 |
An unsigned 64-bit integer. |
|
Float |
No |
0 |
An IEEE single precision 32-bit floating-point number. |
|
Double |
No |
0 |
An IEEE double precision 64-bit floating-point number. |
|
String |
Yes |
Null |
A sequence of Unicode characters. |
|
DateTime |
Yes |
DateTime.MinValue |
A specific point in time. |
|
Guid |
Yes |
All zeros |
A 16-byte value that can be used as a globally unique identifier. |
|
ByteString |
Yes |
Null |
A sequence of octets. |
|
XmlElement |
Yes |
Null |
A sequence of Unicode characters that is an XML element. |
|
NodeId |
Yes |
All fields set to default |
An identifier for a node in the address space of an OPC UA server. |
|
ExpandedNodeId |
Yes |
All fields set to default |
A NodeId that allows the namespace URI to be specified instead of an index. |
|
StatusCode |
No |
Good |
A numeric identifier for an error or condition that is associated with a value or an operation. |
|
QualifiedName |
Yes |
All fields set to default |
A name qualified by a namespace. |
|
LocalizedText |
Yes |
All fields set to default |
Human readable text with an optional locale identifier. |
|
ExtensionObject |
Yes |
All fields set to default |
A structure that contains an application specific data type that may not be recognized by the receiver. |
|
DateValue |
Yes |
All fields set to default |
A data value with an associated status code and timestamps. |
|
Variant |
Yes |
Null |
A union of all of the types specified above. |
|
DiagnosticInfo |
Yes |
No fields specified |
A structure that contains detailed error and diagnostic information associated with a StatusCode. |