Code Description
8011h Error FILENAME
(not conform with 8.3 or special character)
8100h The defined HANDLE is not valid
9001h HANDLE is assigned to another file
9002h Another function has been called via this HANDLE and is ready
9003h Another function has been called via this HANDLE and is ready
A000h System internal error occurred
A001h The defined MEDIA type is not valid
A003h A general error in the file system occurred
A004h The in FILENAME defined file doesn't exist or is a directory
A100h General file system error (e.g. no memory card plugged)
16.3.4 FC/SFC 209 - FILE_CRE - Create file
By using this block you may create a new file with the entered file name on the memory
card (if plugged) and open it for read/write access. Please regard that you may only
create files at the top directory level. REQ = 1 initializes the function. After opening, the
write /read flag is at 0.
Parameters
Parameter Declaration Data type Description
REQ IN BOOL Activate function
MEDIA IN INT 0 = MMC
FILENAME IN STRING[254] Name of file (must be in 8.3 format)
HANDLE IN INT Index of file 0 ... 3
RETVAL OUT WORD Return value (0 = OK)
BUSY OUT BOOL Function is busy
Codes that are returned by RETVAL:
Description
RETVAL (Return value)
VIPA SPEED7
System Blocks
File Functions SPEED7 CPUs > FC/SFC 209 - FILE_CRE - Create file
HB00 | OPL_SP7 | Operation list | en | 18-30 913