UA_WriteList

This Function Block is used to write values to multiple nodes using a list of node handles.

 

 

 

UA_WriteList

 

 

 

BOOL

–

 

Execute

Done

 

–

BOOL

DWORD

–

 

ConnectionHdl

Busy

 

–

BOOL

UINT

–

 

NodeHdlCount

Error

 

–

BOOL

ARRAY of DWORD

–

 

NodeHdls

ErrorID

 

–

L_IOCP_ErrorId

ARRAY of UANodeAdditionalInfo

–

 

NodeAddInfos

NodeErrorIDs

 

–

ARRAY of L_IOCP_ErrorId

ARRAY of L_IOCP_Variable

–

 

Variables

 

 

 

 

TIME

–

 

Timeout

 

 

 

 

 

 

 

 

 

 

 

 

Inputs/outputs

Name

Data type

Information/possible settings

Variables

ARRAY of L_IOCP_Variable

Array of structure to address an IEC variable by the OPC UA Client. The value of this IEC Variable will be written to an OPC UA Server variable node (determined by the node handle and UANodeAdditionalInfo) in case of this function block. See: L_IOCP_Variable

Inputs

Name

Data type

Information/possible settings

Execute

BOOL

FALSEäTRUE

On rising edge FB performs its task.

ConnectionHdl

DWORD

Connection handle.

NodeHdlCount

UINT

Number of Nodes in NodeHdls Array.

NodeHdls

ARRAY of DWORD

Array of Node handles. Length of Array is MAX_ELEMENTS_NODELIST.

NodeAddInfos

ARRAY of UANodeAdditionalInfo

Specifies additional information for the node access, e. g. which node attribute or what index range for arrays to be accessed

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.