FB-Name

UA_MonitoredItemOperateList

This Function Block is designed to be called to update the values of a list of Variables and the corresponding information in the associated lists like ValuesChanged, TimeStamps and NodeQualityIDs of the control program. The use of the function block depends on the underlying system – see notes.

VAR_INPUT

B

Execute

BOOL

On rising edge monitored items will be modified.

B

SubscriptionHdl

DWORD

Subscription handle.

B

MonitoredItemHdlCount

UINT

Number of valid elements in the array to modify.

B

MonitoredItemHdls

ARRAY OFDWORD

Array of monitored item handles.

Length is vendor-specific (MAX_ELEMENTS_MONITORLIST). See Constants of Array Lengths. Shall be the same size than MonitoredItemHdlCount.

VAR_OUTPUT

B

Done

BOOL

FB has completed its task.

B

Busy

BOOL

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

B

Error

BOOL

Signals that an error has occurred within the FB.

B

ErrorID

DWORD

Error code.

B

NodeErrorIDs

ARRAY OFDWORD

Array of DWORD. Contains an error code for each element of the MonitoredItemHdls-Array.

Length is vendor-specific (MAX_ELEMENTS_MONITORLIST). See Constants of Array Lengths Shall be the same length than MonitoredItemHdlCount.

B

Published

BOOL

Indicates, that variables have been published since the last call. At least one element of the array of ValuesChanged will be TRUE.

Notes: It is expected to use this call, if the underlying system will NOT update the values automatically. Shall not be used together with the function block UA_SubscriptionProcessed. After the successful execution it is expected, that the values of the Variables and the corresponding information in the associated lists like ValuesChanged, TimeStamps and NodeQualityIDs have been updated. See also 4.2 Monitored Items.

UA_MonitoredItemOperateList

BOOL

Execute

Done

BOOL

DWORD

SubscriptionHdl

Busy

BOOL

UNIT

MonitoredItemHdlCount

Error

BOOL

ARRAY OF DWORD

MonitoredItemHdls

ErrorID

DWORD

NodeErrorIDs

ARRAY OF DWORD

Published

BOOL