SysFileGetSize30 (FUN) ¶ FUNCTION SysFileGetSize30 : UDINT InOut: Scope Name Type Return SysFileGetSize30 UDINT Input szFileName REFERENCE TO STRING pResult POINTER TO RTS_IEC_RESULT
SysFileGetTime30 (FUN) ¶ FUNCTION SysFileGetTime30 : RTS_IEC_RESULT InOut: Scope Name Type Return SysFileGetTime30 RTS_IEC_RESULT Input szFileName REFERENCE TO STRING ptFileTime POINTER TO FileTime30
SysFileOpen30 (FUN) ¶ FUNCTION SysFileOpen30 : RTS_IEC_HANDLE InOut: Scope Name Type Return SysFileOpen30 RTS_IEC_HANDLE Input szFile REFERENCE TO STRING am AccessMode30 pResult POINTER TO RTS_IEC_RESULT
SysFileRead30 (FUN) ¶ FUNCTION SysFileRead30 : UDINT InOut: Scope Name Type Return SysFileRead30 UDINT Input hFile RTS_IEC_HANDLE pbyBuffer POINTER TO BYTE ulSize UDINT pResult POINTER TO RTS_IEC_RESULT
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
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>