OPC UA Item Names and Syntax
- Last UpdatedMar 22, 2017
- 2 minute read
OPC UA Item Syntax
You can access data for OPC UA server items in the default namespace, with a complete namespace URI, and with a namespace alias. Each context requires its own syntax:
|
Namespace |
Item Syntax and Description |
Example |
|
Default Namespace |
UAItemReference or //UAItemReference
|
PLCport.PlCobject.N40:0 |
|
Namespace URI |
UANS(UANamespaceURI),UAItemRef(UAItemReference)
|
UANS(http://test.org/UA/Data/)UAItemRef(10847) |
|
Namespace Alias |
/UANamespaceAlias/UAItemReference or UANS(UANameSpaceAlias)UAItemRef(UAItemReference)
|
UANS(Data)UAItemRef(10847) |
Using the VT Item Suffix
You can configure OPC UA data sources to use the /VT item suffix to gain better control of data access in OI Gateway. Using the /VT item suffix enables you to tell the underlying OPC UA server the type of data you want the server to report to OI Gateway.
To avoid delayed item validation, apply the /VT item suffix to an item name using the following syntax: <item name> /VT_<DataType>. For example, item1 /VT_I4.
VT Suffix Syntax Example
If you want to specify a 2-byte signed Integer (/VT_I2) as the data type for an OPC UA server path of <OPCUAServer>.Blower.Int2, the item name in OI Gateway would be subscribed as <OPCUAServer>.Blower.Int2 /VT_I2.
For information about specific VT data types, see OPC UA Data Conversion.