dOPC Client Toolkit
Close
dOPCIntf.TdOPCBrowseItem.NodeId

Stores the NodeId of the OPC UA server as string

property NodeId: string;
__property AnsiString NodeId;
Parameters
Description
Value
Name, number or GUI of the NodeId
IdentifierType
A flag that specifies the identifier type. The flag has the following values:
i= NUMERIC (UInteger)
s= STRING (String)
g= GUID (Guid)
b= OPAQUE (ByteString)
NamespaceIndex
Number of namespace (default is '0')

Stores the NodeId of the OPC UA server as string. The NodeId under OPC UA is normally a object with following properties: 

 

Value 

IdentifierType 

NamespaceIndex 

 

To be compatible with OPC classic and OPC XML where all OPC item tags are strings, we decided to use also strings for OPC UA node ids. 

the format is: ns=<NamespaceIndex>;<IdentifierType>=<Value>

procedure AddNode(OPCClient: TdOPCDAClient); var NodeString : string; Value : string; IdentifierType: string; NamespaceIndex: integer; begin Value := 'Triangle1'; // String value IdentifierType := 's'; // value is string NamespaceIndex := 5; // given namespace NodeString := format('ns=%d;%s=%s',[NamespaceIndex,IdentifierType,Value); // result is ns=5;s=Triangle1 // and this is the way how you has to define NodeIds if you work with the dOPCDAClient component OPCClient.OPCGroups[0].OPCItems.AddItem(NodeString); ShowMessage(NodeString) end;
Kassl GmbH Copyright © 2024. All rights reserved.