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
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CmpErrors2 Interfaces ¶ Library Identification ¶ Name: CmpErrors2 Interfaces Version: newest Company: System Namespace: CmpErrors Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpErrors2 Interfaces, * (System) CmpEventMgr Interfaces ¶ Library Identification ¶ Name: CmpEventMgr Interfaces Version: newest Company: System Namespace: CmpEventMgr_Interfaces Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpEventMgr Interfaces, * (System) SysTypes2 Interfaces ¶ Library Identification ¶ Name: SysTypes2 Interfaces Version: newest Company: System Namespace: SysTypes Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTypes2 Interfaces, * (System)
CmpEventMgr Library Documentation ¶ Company System Title CmpEventMgr Version 3.5.17.0 Categories System|SysLibs Author CODESYS Development GmbH Placeholder CmpEventMgr Description 1 ¶ This library provides access to the event manager of the runtime system. The event manager handles events from components (provider) and transmits these events via callbacks to IEC consumers (functions or function-blocks). Indices and tables ¶ 1 Based on CmpEventMgr.library, last modified 20.04.2021, 15:39:57. LibDoc 4.4.0.0-b.27 The content file CmpEventMgr.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 20.04.2021, 15:39:57.