Parameter Declaration Data type Description
DATA IN ANY Pointer to PLC memory and data length
RETVAL OUT WORD Return value
BUSY OUT BOOL Function is busy
The parameter RETVAL returns the length of the written data. The block doesn't
announce an error message that the MMC is full. The user has to check himself if the
number of the bytes to write corresponds to the number of written bytes returned by
RETVAL.
Codes that are returned by RETVAL:
Code Description
0xxxh 0 = OK, 0xxx = Length of written data
7000h REQ = 0, BUSY = 0 (nothing present)
7001h REQ = 1, 1. call
7002h Block is executed
8010h Pointer in DATA has type BOOL
8011h Pointer in DATA cannot be decoded (e.g. DB not loaded)
8012h Data length exceeds 512byte
8100h The defined HANDLE is not valid
9001h For this Handle no file is opened
9002h Another function has been called via this HANDLE and is ready
9003h Another function has been called via this HANDLE and is not ready
A000h System internal error occurred
A002h File is write-protected
A003h Internal error
A004h Memory card is write-protected
A100h General file system error (e.g. no memory card plugged)
RETVAL (Return value)
VIPA SPEED7
System Blocks
File Functions SPEED7 CPUs > FC/SFC 212 - FILE_WR - Write file
HB00 | OPL_SP7 | Operation list | en | 18-30 917