16.3.8 FC/SFC 213 - FILE_SEK - Position pointerFILE_SEK allows you to detect res. alter the position of the write-/read flag of theaccording HANDLE. By setting ORIGIN as start position and an OFFSET you may definethe write-/read flag for the according HANDLE. REQ = 1 starts the function.ParametersParameter Declaration Data type DescriptionREQ IN BOOL Activate functionHANDLE IN INT Index of file 0 ... 3ORIGIN IN INT 0 = file start, 1 = current position, 2 = file endRETVAL OUT WORD Return value (0 = OK)BUSY OUT BOOL Function is busyOFFSET INOUT DINT Offset write-/read flagCodes that are returned by RETVAL:Code Description0000h OK, OFFSET contains the current write-/read position7000h REQ = 0, BUSY = 0 (nothing present)7001h REQ = 1, 1. call7002h Block is executed8100h The defined HANDLE is not valid9001h For this HANDLE no file is opened9002h Another function has been called via this HANDLE and is ready9003h Another function has been called via this HANDLE and is not readyA000h System internal error occurredA004h ORIGIN parameter is defectiveA100h General file system error (e.g. no memory card plugged)DescriptionRETVAL (Return value)VIPA SPEED7System BlocksFile Functions SPEED7 CPUs > FC/SFC 213 - FILE_SEK - Position pointerHB00 | OPL_SP7 | Operation list | en | 18-30918