Value DescriptionA002h File name wrong (not 8.3 or empty)A003h File exists but FILESIZE too bigger than existing file.A004h File exists but is fragmented and cannot be opened.A005h Not enough space on MMC.A006h No free entry in root directory. Depending on the used MMC there may be min. 16 up tomax. 512 entries in the root directory.B000h An internal error occurred.16.2.3 SFC 221 - MMC_RD_F - read from MMC fileVia the SFC 221 you may read data from a MMC. For read and write accesses to theMMC, you firstly have to open the file with SFC 220 and it has to be not fragmentized. Formore detailed information to this and to the restrictionsÄ Chap. 16.2.1 ‘SFC 220 ... 222 -MMC Access’ page 906.ParametersName Declaration Type DescriptionPTR IN ANY Pointer to area for reading dataOFFSET IN DWORD Offset of data within the fileBUSY OUT BOOL Job stateRET_VAL OUT WORD Return value (0 = OK)This variable of the type pointer points to a data area in the CPU where the content of theMMC has to be written to.Here you define the start address inside the file on the MMC from where on the data hasto be transferred to the CPU.During data transfer this bit remains set. The bit is reset as soon as the data transfer iscomplete.Word that returns a diagnostic/error message. 0 means OK.Value Description0000h No errors (data was read)8001h No or unknown type of MMC is plugged-in8002h No FAT found on MMC9000h Bit reading has been tried (Boolean variable). Bit reading is not possible.9001h Pointer value is wrong (e.g. points outside DB)DescriptionPTROFFSETBUSYRET_VAL (Return Value)VIPA SPEED7System BlocksMMC Functions standard CPUs > SFC 221 - MMC_RD_F - read from MMC fileHB00 | OPL_SP7 | Operation list | en | 18-30908