10.3 UA_NodeGetHandle

FB-Name UA_NodeGetHandle
This Function Block is used to get the node handle.
VAR_INPUT
BExecuteBOOLFB performs its task on rising edge on this input.
BConnectionHdlDWORDConnection handle.
BNodeIDSTRUCTSee UANodeID
BTimeoutTIMETime to response.
VAR_OUTPUT
BNodeHdlDWORDNode handle.
BDoneBOOLFB has completed its task.
BBusyBOOLThe FB is not finished and new output values are to be expected.
BErrorBOOLSignals that an error has occurred within the FB.
BErrorIDDWORDError code.

Notes: The NodeHdl is a reference to the internal management object for the node in the client. But the client shall also register the node at the server (“RegisterNode”). This enables the OPC UA Server to optimize the communication.

The scope of the NodeHdl is the connection. So a NodeHdl is unique for a connection but could be equal to a NodeHdl of another connection. This FB is deprecated and just for backward compatibility – better use UA_NodeGetHandleList

UA_NodeGetHandle
BOOLExecuteNodeHdlDWORD
DWORDConnectionHdlDoneBOOL
STRUCTNodeIDBusyBOOL
TIMETimeoutErrorBOOL
ErrorIDDWORD