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
EventUnregisterCallback (FUN) ¶ FUNCTION EventUnregisterCallback : RTS_IEC_RESULT Unregister a callback interface from an event specified by handle and callback interface InOut: Scope Name Type Comment Return EventUnregisterCallback RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Event handle hInterface RTS_IEC_HANDLE Callback handle is returned by EventRegisterCallback() or EventRegisterCallback2()!!!
EventUnregisterCallbackFunction (FUN) ¶ FUNCTION EventUnregisterCallbackFunction : RTS_IEC_RESULT Unregister a callback function from an event specified by handle and callback InOut: Scope Name Type Comment Return EventUnregisterCallbackFunction RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Handle to event pfCallbackFunction POINTER TO BYTE Address of callback function. Function pointer is retrieved by the ADR operator: ADR(function)
EventUnregisterCallbackFunction2 (FUN) ¶ FUNCTION EventUnregisterCallbackFunction2 : RTS_IEC_RESULT Unregister a callback function with a specific user parameter from an event specified by handle and callback and parameter InOut: Scope Name Type Comment Return EventUnregisterCallbackFunction2 RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Handle to event pfCallbackFunction POINTER TO BYTE Address of callback function. Function pointer is retrieved by the ADR operator: ADR(function) pUserParameter POINTER TO BYTE Pointer to user parameter, that was specified as a parameter at EventRegisterCallback2()
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 15:40:15 companyName string 3S-Smart Software Solutions GmbH libraryFile CmpEventMgr Implementation.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile CmpEventMgr Implementation.clean.json version version 2.0.0.0 ProjectInformation IsEndUserLibrary bool False LinkInSimulation True Released True LastModificationDateTime date 20.04.2021, 15:40:14 LibraryCategories library-category-list System|SysLibs Author string CODESYS Development GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Patch 2 DefaultNamespace Description See: Description DocFormat reStructuredText Placeholder CmpEventMgr Implementation Project CmpEventMgr Implementation Title CmpEventMgr Implementation Version version 3.5.17.0