UA_NodeGetHandleList

This Function Block is used to get node handles for multiple OPC UA nodes. The NodeHdl is a reference to the internal management object for the node in the client. The nodes are registered at the server, which makes communication more performant.

Note: This Function Block does not perform any checks of the OPC UA server address space. Thus, the Function Block will not report an error if the given NodeID does not exist in the server.

Note: If the server does not support the registration of the nodes, the client continues to work with the given node id’s and no error is reported.

 

 

 

UA_NodeGetHandleList

 

 

 

BOOL

–

 

Execute

Done

 

–

BOOL

DWORD

–

 

ConnectionHdl

Busy

 

–

BOOL

UINT

–

 

NodeIDCount

Error

 

–

BOOL

ARRAY of NodeID

–

 

NodeIDs

ErrorID

 

–

L_IOCP_ErrorId

TIME

–

 

Timeout

NodeErrorIDs

 

–

ARRAY of L_IOCP_ErrorId

 

 

 

 

NodeHdls

 

–

ARRAY of DWORD

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

Execute

BOOL

FALSEäTRUE

On rising edge FB performs its task.

ConnectionHdl

DWORD

Connection handle.

NodeIDCount

UINT

Number of NodeIDs in Array of NodeIDs.

NodeIDs

ARRAY of NodeID

See UANodeID. Length of Array is MAX_ELEMENTS_NODELIST. Array length of NodeIDs and NodeHdls must be same.

Timeout

TIME

Maximum time to response.

Outputs

Name

Data type

Value/meaning

Done

BOOL

TRUE

Signals has completed its task.

Busy

BOOL

TRUE

The FB is not finished and new output values are to be expected.

Error

BOOL

TRUE

An error has occurred in the service request or in a specific node access. For details see ErrorID and / or NodeErrorIDs.

ErrorID

L_IOCP_ErrorId L_IE1P_Error

If Error = TRUE:

Error code for a failed service request.

NodeErrorIDs

ARRAY of L_IOCP_ErrorId

If Error = TRUE and ErrorID = LUA_EADNODERESULTERROR:

Error code for each valid element of the NodeIDs array. Length of array is MAX_ELEMENTS_NODELIST. Array length of NodeIDs and NodeHdls must be same.

NodeHdls

ARRAY of DWORD

Array of Node Handles. Length of array is MAX_ELEMENTS_NODELIST. Array length of NodeIDs and NodeHdls must be same.