Function Description

The function block UA_ReadList is used to read values of multiple nodes using a list of node handles.

Values of node are returned in VARIABLES.

Representation in FBD

Parameter Description

Input parameters:

Name

Type

Comment

EXECUTE

BOOL

FB performs its task on rising edge on this input.

CONNECTIONHDL

DWORD

Connection handle.

NODEHDLCOUNT

UINT

Number of valid elements in the array to read.

NODEHDLS

ANY_ARRAY_DWORD

Array of Node Handles.

NODEADDINFOS

AUANodeAdditionalInfo

Array of UANodeAdditionalInfo

TIMEOUT

TIME

Time to response.

Output parameters:

Name

Type

Comment

DONE

BOOL

FB has successfully completed its task.

BUSY

BOOL

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

ERROR

BOOL

Signals that an error has occurred within the FB. Set to true is either ErrorID or any of the NodeErrorIDs indicates an error.

ERRORID

DWORD

Error code.

NODEERRORIDS

ANY_ARRAY_DWORD

Array of DWORD. Contains an error code for each valid element of the Variables array.

TIMESTAMPS

ASTTimeStamp

Contains a TimeStamp for each valid element of the Variables array. (DT Date & Time Type, Milliseconds)

Input/Output parameters:

Name

Type

Comment

VARIABLES

ASTVariable

Array of variables values.

Runtime Error

Refer to the Appendix for a list of OPC UA detected error codes.