Value Description9002h File length exceeded9003h Sector limit of 512 has been tried to overrun. Sector overrun reading is not possible.B000h An internal error occurred.16.2.4 SFC 222 - MMC_WR_F - write to MMC fileVia the SFC 222, you may write to the MMC. For read and write accesses to the MMC,you firstly have to open the file with SFC 220 and it has to be not fragmentized. For moredetailed information to this and to the restrictionsÄ Chap. 16.2.1 ‘SFC 220 ... 222 - MMCAccess’ page 906.ParametersName Declaration Type DescriptionPTR IN ANY Pointer to area for writing 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 from where on the data starts thatwill be written to the MMC.This defines the beginning of the data inside the file on the MMC where the data is writtento.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 errors8001h No or unknown type of MMC is plugged-in.8002h No FAT found on MMC.9000h Bit writing has been tried (Boolean variable). Bit writing is not possible.9001h Pointer value is wrong (e.g. points outside DB).9002h File length exceeded.9003h Sector limit of 512 has been tried to overrun. Sector overrun reading is not possible.B000h An internal error occurred.DescriptionPTROFFSETBUSYRET_VAL (Return Value)VIPA SPEED7 System BlocksMMC Functions standard CPUs > SFC 222 - MMC_WR_F - write to MMC fileHB00 | OPL_SP7 | Operation list | en | 18-30 909