EventOpen (FUN) ¶ FUNCTION EventOpen : RTS_IEC_HANDLE Opens an existing event object. Can be used to check, if the event was created by the provider. If the event does not exist, an error code is returned. InOut: Scope Name Type Comment Return EventOpen RTS_IEC_HANDLE Input EventId UDINT EventID of the event. Contains the class and the event CmpIdProvider UDINT Component ID of the provider Inout Result RTS_IEC_RESULT Error code
EventPost (FUN) ¶ FUNCTION EventPost : RTS_IEC_RESULT Post or sent an event InOut: Scope Name Type Comment Return EventPost RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Event handle pEventParam POINTER TO EventParam Pointer to the event parameters
EventPost2 (FUN) ¶ FUNCTION EventPost2 : RTS_IEC_RESULT Post or sent an event InOut: Scope Name Type Comment Return EventPost2 RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Event handle pEventParam POINTER TO EventParam2 Pointer to the event parameters
EventPostByEvent (FUN) ¶ FUNCTION EventPostByEvent : RTS_IEC_RESULT Post an event direct without the event handle InOut: Scope Name Type Comment Return EventPostByEvent RTS_IEC_RESULT Input EventId UDINT Event ID of the event. Contains the class and the event CmpIdProvider UDINT Component ID of the provider pEventParam POINTER TO EventParam Pointer to the event parameters
EventPostByEvent2 (FUN) ¶ FUNCTION EventPostByEvent2 : RTS_IEC_RESULT Post an event direct without the event handle InOut: Scope Name Type Comment Return EventPostByEvent2 RTS_IEC_RESULT Input EventId UDINT Event ID of the event. Contains the class and the event CmpIdProvider UDINT Component ID of the provider pEventParam POINTER TO EventParam2 Pointer to the event parameters
EventRegisterCallback (FUN) ¶ FUNCTION EventRegisterCallback : RTS_IEC_HANDLE Register an callback method to an event. The callback must be an interface from an Iec function block! Result will be set to ERR_DUPLICATE if pICallback is already registered. InOut: Scope Name Type Comment Return EventRegisterCallback RTS_IEC_HANDLE Input hEvent RTS_IEC_HANDLE Handle to event pICallback ICmpEventCallback Interface ICmpEventCallback Inout Result RTS_IEC_RESULT Error code
EventRegisterCallback2 (FUN) ¶ FUNCTION EventRegisterCallback2 : RTS_IEC_HANDLE Register an callback method to an event. The callback must be an interface from an Iec function block! Result will be set to ERR_DUPLICATE if the combination of pICallback and pUserParameter is already registered. InOut: Scope Name Type Comment Return EventRegisterCallback2 RTS_IEC_HANDLE Input hEvent RTS_IEC_HANDLE Handle to event pICallback ICmpEventCallback Interface ICmpEventCallback pUserParameter POINTER TO BYTE Pointer to user parameter, that is transmitted to the callback (see EventParam) Inout Result RTS_IEC_RESULT Error code
EventRegisterCallbackFunction (FUN) ¶ FUNCTION EventRegisterCallbackFunction : RTS_IEC_RESULT Register a callback function to an event. Callback is the address of an Iec function: ADR(function) InOut: Scope Name Type Comment Return EventRegisterCallbackFunction RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Handle to event pfCallbackFunction POINTER TO BYTE Address of callback function. Prototype: same as ICmpEventCallback::EventCallback method Function pointer is retrieved by the ADR operator: ADR(function)
EventRegisterCallbackFunction2 (FUN) ¶ FUNCTION EventRegisterCallbackFunction2 : RTS_IEC_RESULT Register a callback function to an event. Callback is the address of an Iec function: ADR(function) InOut: Scope Name Type Comment Return EventRegisterCallbackFunction2 RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Handle to event pfCallbackFunction POINTER TO BYTE Address of callback function. Prototype: same as ICmpEventCallback::EventCallback method Function pointer is retrieved by the ADR operator: ADR(function) pUserParameter POINTER TO BYTE Pointer to user parameter, that is transmitted optional to the callback (see EventParam)
EventRegisteredCallbacks (FUN) ¶ FUNCTION EventRegisteredCallbacks : UDINT Returns the number of registered callbacks on the event InOut: Scope Name Type Comment Return EventRegisteredCallbacks UDINT Input hEvent RTS_IEC_HANDLE Event handle Inout Result RTS_IEC_RESULT Error code