7.25 UA_EventItemOperateList

FB-Name UA_EventItemOperateList
This Function Block is used to get a list of event infomation.
VAR_INPUT
BExecuteBOOLFB performs its task on rising edge on this input.
BSubscriptionHdlDWORDSubscription handle.
BEventItemHdlCountUINTNumber of elements the EventItemHdls shall have.
BEventItemHdlsARRAY OF
DWORD

Event Item Handles

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

BTimeoutTIMETime to response.
VAR_OUTPUT
BDoneBOOLFB has completed its task.
BBusyBOOLThe FB is not finished and new output values are to be expected.
BErrorBOOLSignals that an error has occurred within the FB.
BErrorIDDWORDError code.
BEventProcessedBOOLIndicates if a new event was processed.
BFieldErrorIDsARRAY OF
DWORD

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
BOOLExecuteDoneBOOL
DWORDSubscriptionHdlBusyBOOL
UINTEventItemHdlCountErrorBOOL
ARRAY OF DWORDEventItemHdlsErrorIDDWORD
TIMETimeoutEventProcessedBOOL
FieldErrorIDsARRAY OF DWORD