Code Description
0xxxh 0 = OK, 0xxx = Length of read 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
8013h A write access to a write-protected DB happened
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
A003h Internal error
A100h General file system error (e.g. no memory card plugged)
16.3.7 FC/SFC 212 - FILE_WR - Write file
Use this block for write access to the memory card. This writes data from the position and
length of the CPU defined under DATA to the memory card via the according HANDLE
starting at the write/read position. During every call you may transfer a max. of 512byte.
REQ = 1 initializes the function.
Parameters
Parameter Declaration Data type Description
REQ IN BOOL Activate function
HANDLE IN INT Index of file 0 ... 3
Description
VIPA SPEED7
System Blocks
File Functions SPEED7 CPUs > FC/SFC 212 - FILE_WR - Write file
HB00 | OPL_SP7 | Operation list | en | 18-30 916