FB-Name

UA_EventItemOperateList

This Function Block is used to get a list of event infomation.

VAR_INPUT

B

Execute

BOOL

FB performs its task on rising edge on this input.

B

SubscriptionHdl

DWORD

Subscription handle.

B

EventItemHdlCount

UINT

Number of elements the EventItemHdls shall have.

B

EventItemHdls

ARRAY OFDWORD

Event Item Handles

Length is vendor-specific (MAX_ELEMENTS_EVENTITEMLIST). See Constants of Array Lengths

B

Timeout

TIME

Time to response.

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

EventProcessed

BOOL

Indicates if a new event was processed.

B

FieldErrorIDs

ARRAY OFDWORD

Contains an error code for each valid element of the EventFieldSelection array.

Length is vendor-specific (MAX_ELEMENTS_EVENTITEMOPERATE). See Constants of Array Lengths – including the “Overflow bit” indication.

Note: For compatibility reason “FieldErrorIDs” is not renamed, but “EventErrorIDs” is ment therefore instead.

Notes: The EventFields has to be defined what is the best declaration in IEC language for 25 different event type structures.

UA_EventItemOperateList

BOOL

Execute

Done

BOOL

DWORD

SubscriptionHdl

Busy

BOOL

UINT

EventItemHdlCount

Error

BOOL

ARRAY OF DWORD

EventItemHdls

ErrorID

DWORD

TIME

Timeout

EventProcessed

BOOL

FieldErrorIDs

ARRAY OF DWORD