EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC;SFC 208 - FILE_OPN - Open File

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Code Description
A004h File FILENAME is not found
A005h FILENAME is a directory
A006h File is just open
A007h Memory card is write protected
A010h File error FILENAME
A100h General file system error (e.g. no memory card plugged)
16.3.3 FC/SFC 208 - FILE_OPN - Open file
You may open a file on the memory card with FC/SFC 208. Here a HANDLE is connected
to a FILENAME. By using the HANDLE you now have read and write access to the file
until you close the file again with the FC/SFC 210 FILE_CLO. REQ = 1 initializes the
function. After the opening the read/write 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:
Code Description
0000h OK
7000h REQ = 0, BUSY = 0 (nothing present)
7001h REQ = 1, 1. call
7002h Block is executed
8010h Parameter FILENAME is not present (e.g. DB not loaded).
Description
RETVAL (Return value)
VIPA SPEED7
System Blocks
File Functions SPEED7 CPUs > FC/SFC 208 - FILE_OPN - Open file
HB00 | OPL_SP7 | Operation list | en | 18-30 912

Table of Contents

Related product manuals