SysFileRename30 (FUN) ¶ FUNCTION SysFileRename30 : RTS_IEC_RESULT InOut: Scope Name Type Return SysFileRename30 RTS_IEC_RESULT Input szOldFileName REFERENCE TO STRING szNewFileName REFERENCE TO STRING
SysFileSetPos30 (FUN) ¶ FUNCTION SysFileSetPos30 : RTS_IEC_RESULT InOut: Scope Name Type Return SysFileSetPos30 RTS_IEC_RESULT Input hFile RTS_IEC_HANDLE ulOffset UDINT
SysFileWrite30 (FUN) ¶ FUNCTION SysFileWrite30 : UDINT InOut: Scope Name Type Return SysFileWrite30 UDINT Input hFile RTS_IEC_HANDLE pbyBuffer POINTER TO BYTE ulSize UDINT pResult POINTER TO RTS_IEC_RESULT
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 03.07.2018, 10:34:42 companyName string 3S-Smart Software Solutions GmbH libraryFile SysFile23.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP13 contentFile SysFile23.clean.json version version 2.0.0.0 ProjectInformation Released bool True Support32BitOnly True LastModificationDateTime date 03.07.2018, 10:34:42 LibraryCategories library-category-list System|SysLibs23 Author string 3S - Smart Software Solutions GmbH Company System Description See: Description Project SysFile23 Title SysFile23 Version version 3.5.13.0
SysEvent Library Documentation ¶ Company System Title SysEvent Version 3.5.17.0 Categories System|SysLibs Author 3S - Smart Software Solutions GmbH Placeholder SysEvent Description 1 ¶ functions for runtime system event handling Contents: ¶ SysEventCreate (Function) SysEventDelete (Function) SysEventSet (Function) SysEventWait (Function) Indices and tables ¶ 1 Based on SysEvent.library, last modified 20.04.2021, 16:03:16. LibDoc 4.4.0.0-b.27 The content file SysEvent.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 20.04.2021, 16:03:16.
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)