SysEventCreate (FUN) ¶ FUNCTION SysEventCreate : RTS_IEC_HANDLE <description>Create a new event object specified with name. Two components can open the same event, if they specify the same name. <p>IMPLEMENTATION NOTE:</p> <ul> <li>If a name is specified in szEvent, typically a system wide event is created.</li> <li>If an event still exists with this name, the routine returns the handle to the existing event</li> <li>szEvent can be NULL, so a new unique event with an empty name must be created</li> <li>If SysEventWait() is done after SysEventSet(), the event should signal the task!</li> <li>An event must not be used to signal several tasks!</li> </ul> <p>TARGET SPECIFIC IMPLEMENTATION:</p> <ul> <li>CoDeSys Control RTE: If szEvent is specified, the event will work as a system wide Windows event. In this case, every call to SysEventSet/Wait will call the corresponding Windows API-functions and this may last an unpredictable time! In case SysEventCreate is called with a NULL-pointer in szEvent, the event can be used to synchronize RTE-tasks only. The calls to SysEventSet/Wait keep their real time capabilities. </li> </ul> </description> <result><p>RESULT: Handle to the event or RTS_INVALID_HANDLE if failed.</p></result> InOut: Scope Name Type Comment Return SysEventCreate RTS_IEC_HANDLE Input szEvent STRING <param name=”szEvent” type=”IN”>Name for the new event. Can be NULL!</param> pResult POINTER TO RTS_IEC_RESULT <param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>
SysEventDelete (FUN) ¶ FUNCTION SysEventDelete : RTS_IEC_RESULT <description>Delete an exisiting event object</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysEventDelete RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE <param name=”hEvent” type=”IN”>Handle of the event</param>
SysEventSet (FUN) ¶ FUNCTION SysEventSet : RTS_IEC_RESULT <description>Set the given Event. With this operation, a task is activated if it waits for the event with SysEventWait.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysEventSet RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE <param name=”hEvent” type=”IN”>Handle of the event</param>
SysEventWait (FUN) ¶ FUNCTION SysEventWait : RTS_IEC_RESULT <description>Wait for the given Event</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library): <ul> <li>ERR_OK: if event was received</li> <li>ERR_TIMEOUT: for timeout</li> </ul> </p></result> InOut: Scope Name Type Comment Return SysEventWait RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE <param name=”hEvent” type=”IN”>Handle of the event</param> ulTimeout UDINT <param name=”lTimeout” type=”IN”>Timeout in ms to wait for the event: <ul> <li>ulTimeout = 16#FFFFFFFF: means infinite wait</li> <li>ulTimeout = 0: means no wait, only check the event!</li> </ul> </param>
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) 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)
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 16:03:16 companyName string 3S-Smart Software Solutions GmbH libraryFile SysEvent.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile SysEvent.clean.json version version 2.0.0.0 ProjectInformation Released bool True LastModificationDateTime date 20.04.2021, 16:03:16 LibraryCategories library-category-list System|SysLibs Author string `` 3S - Smart Software Solutions GmbH `` Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Description See: Description Placeholder SysEvent Project SysEvent Title SysEvent Version version 3.5.17.0
SysEvent23 Library Documentation ¶ Company System Title SysEvent23 Version 3.5.13.0 Categories System|SysLibs23 Author 3S - Smart Software Solutions GmbH Description 1 ¶ Compatibility library for CoDeSys 2.3 projects, to get access to events. Contents: ¶ POUs SysEventCreate (Function) SysEventDelete (Function) SysEventSet (Function) SysEventWait (Function) extern30 SysEventCreate30 (Function) SysEventDelete30 (Function) SysEventSet30 (Function) SysEventWait30 (Function) Indices and tables ¶ 1 Based on SysEvent23.library, last modified 03.07.2018, 10:34:40. LibDoc 4.4.0.0-b.27 The content file SysEvent23.clean.json was generated with CODESYS V3.5 SP13 on 03.07.2018, 10:34:40.
SysEventCreate (FUN) ¶ FUNCTION SysEventCreate : DWORD InOut: Scope Name Type Return SysEventCreate DWORD Inout Const stName STRING
POUs ¶ SysEventCreate (Function) SysEventDelete (Function) SysEventSet (Function) SysEventWait (Function)
SysEventDelete (FUN) ¶ FUNCTION SysEventDelete : BOOL InOut: Scope Name Type Return SysEventDelete BOOL Input dwHandle DWORD