tSysFileDelete (STRUCT) ¶ TYPE tSysFileDelete : STRUCT Parameter to delete the file specified by name InOut: Name Type Comment szFile STRING(254) File name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)! pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)
tSysFileDeleteByHandle (STRUCT) ¶ TYPE tSysFileDeleteByHandle : STRUCT Parameter to delete the file specified by handle InOut: Name Type Comment pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)
tSysFileEOF (STRUCT) ¶ TYPE tSysFileEOF : STRUCT Parameter to check, if end of file is reached Note End of file is only checked after a read operation with SysFileRead! But after a SysFileWrite or SysFileSetPos call, the function returns ERR_FAILED (no end of file)! InOut: Name Type Comment pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library) ERR_OK: End of file reached at reading beyond the end of the file ERR_FAILED: No end of file reached ERR_PARAMETER: hFile is invalid
tSysFileGetName (STRUCT) ¶ TYPE tSysFileGetName : STRUCT Parameter to get the file name InOut: Name Type Comment pszOut REFERENCE TO STRING [OUT] File name of the specified file
tSysFileGetPath (STRUCT) ¶ TYPE tSysFileGetPath : STRUCT Parameter to get the path of this file. If a path is specified in the filename, the path will be extracted from the filename. If no path is specified in the filename, the standard path for this file extension type will be returned. InOut: Name Type Comment szFileName STRING(254) File name. Can contain an absolute or relative path szPath STRING(254) Path for this file diMaxLen DINT [OUT] Maximum size in bytes of path length pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)
tSysFileGetPos (STRUCT) ¶ TYPE tSysFileGetPos : STRUCT Parameter to get actual file pointer position InOut: Name Type Comment pulPos POINTER TO __XWORD [OUT] Pointer to get actual position of the file pointer from the beginning of the file pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)
tSysFileGetSize (STRUCT) ¶ TYPE tSysFileGetSize : STRUCT Parameter to get file size of the file specified by name InOut: Name Type Comment szFileName STRING(254) File name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)! pResult POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library) - ERR_OK: Successful - ERR_NO_OBJECT: File not available - ERR_FAILED: Failed to get file size pulOut POINTER TO __XWORD [OUT] Size of the file in bytes
tSysFileGetSizeByHandle (STRUCT) ¶ TYPE tSysFileGetSizeByHandle : STRUCT Parameter to get file size of the file specified by handle InOut: Name Type Comment pResult POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library) pulOut POINTER TO __XWORD [OUT] Size of the file in bytes
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. 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)
SysFile Library Documentation ¶ Company System Title SysFile Version 3.5.17.0 Categories System|SysLibs Author 3S - Smart Software Solutions GmbH Placeholder SysFile Description 1 ¶ This library provides access to the file functionality of the runtime system. Contents: ¶ ACCESS_MODE (Enum) SYS_FILETIME (Struct) SYS_FILE_STATUS (Enum) SysFileClose (Function) SysFileCopy (Function) SysFileDelete (Function) SysFileDeleteByHandle (Function) SysFileEOF (Function) SysFileFlush (Function) SysFileGetName (Function) SysFileGetName2 (Function) SysFileGetPath (Function) SysFileGetPos (Function) SysFileGetSize (Function) SysFileGetSizeByHandle (Function) SysFileGetStatus (Function) SysFileGetStatus2 (Function) SysFileGetTime (Function) SysFileOpen (Function) SysFileRead (Function) SysFileRename (Function) SysFileSetPos (Function) SysFileTruncate (Function) SysFileWrite (Function) Indices and tables ¶ 1 Based on SysFile.library, last modified 20.04.2021, 16:03:32. LibDoc 4.4.0.0-b.27 The content file SysFile.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 20.04.2021, 16:03:32.