16.3 File Functions SPEED7 CPUs16.3.1 FC/SFC 195 and FC/SFC 208...215 - Memory card accessThe FC/SFC 195 and FC/SFC 208 ... FC/SFC 215 allow you to include the memory cardaccess into your user application. The following parameters are necessary for the usageof the FC/SFCs:The access takes place via a HANDLE number. That is assigned to a FILENAME via acall of the FC/SFC 208 FILE_OPN res. FC/SFC 209 FILE_CRE. At the same time a max.of 4 HANDLE may be opened (0 ... 3). To close an opened file call the FC/SFC 210FILE_CLO and thus release the HANDLE again.As media format set 0 for the MMC. Other formats are not supported at this time.Read and write start with the position of a write/read flag. After opening res. creation of afile, the write/read flag is at position 0. With FC/SFC 213 FILE_SEK you may shift thewrite/read flag from an ORIGIN position for an OFFSET (number Bytes).n With REQ = 1 you activate the according function.n REQ = 0 returns the current state of a function via RETVAL.n BUSY = 1 monitors that the according function is in process.After the execution of a function RETVAL returns a number code:RETVAL = 0: Function has been executed without errors.0 < RETVAL < 7000h: RETVAL = Length of the transferred data (only FC/SFC 211 and FC/SFC 212).7000h ≤ RETVAL < 8000h: Monitors the execution state of the function.RETVAL ≥ 8000h: Indicates an error that is described more detailed in the according FC/SFC.CAUTION!For the access of the memory card you must regard the following hints.Nonobservance may cause data loss at the memory card:– A max. of 4 Handle (0 ... 3) may be used at the same time!– File names must follow the 8.3 format or special character!– These FC/SFCs only gives you access to the top directory level (Rootdirectory) of the memory card!– You may only rename or delete files that you've closed before withFC/SFCs 210 FILE_CLO!OverviewHANDLE, FILENAMEMEDIAORIGIN, OFFSETREQ, BUSYRETVALVIPA SPEED7System BlocksFile Functions SPEED7 CPUs > FC/SFC 195 and FC/SFC 208...215 - Memory card accessHB00 | OPL_SP7 | Operation list | en | 18-30910