EasyManua.ls Logo

YASKAWA VIPA SPEED7 - File Functions SPEED7 Cpus

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...
16.3 File Functions SPEED7 CPUs
16.3.1 FC/SFC 195 and FC/SFC 208...215 - Memory card access
The FC/SFC 195 and FC/SFC 208 ... FC/SFC 215 allow you to include the memory card
access into your user application. The following parameters are necessary for the usage
of the FC/SFCs:
The access takes place via a HANDLE number. That is assigned to a FILENAME via a
call of the FC/SFC 208 FILE_OPN res. FC/SFC 209 FILE_CRE. At the same time a max.
of 4 HANDLE may be opened (0 ... 3). To close an opened file call the FC/SFC 210
FILE_CLO and thus release the HANDLE again.
As media format set 0 for the MMC. Other formats are not supported at this time.
Read and write start with the position of a write/read flag. After opening res. creation of a
file, the write/read flag is at position 0. With FC/SFC 213 FILE_SEK you may shift the
write/read flag from an ORIGIN position for an OFFSET (number Bytes).
n With REQ = 1 you activate the according function.
n REQ = 0 returns the current state of a function via RETVAL.
n BUSY = 1 monitors that the according function is in process.
After the execution of a function RETVAL returns a number code:
RETVAL = 0: Function has been executed without errors.
0 < RETVAL < 7000h: RETVAL = Length of the transferred data (only FC/SFC 211 and FC/SFC 212).
7000h ≤ RETVAL < 8000h: Monitors the execution state of the function.
RETVAL ≥ 8000h: Indicates an error that is described more detailed in the according FC/SFC.
CAUTION!
For the access of the memory card you must regard the following hints.
Nonobservance may cause data loss at the memory card:
A max. of 4 Handle (0 ... 3) may be used at the same time!
File names must follow the 8.3 format or special character!
These FC/SFCs only gives you access to the top directory level (Root
directory) of the memory card!
You may only rename or delete files that you've closed before with
FC/SFCs 210 FILE_CLO!
Overview
HANDLE, FILENAME
MEDIA
ORIGIN, OFFSET
REQ, BUSY
RETVAL
VIPA SPEED7
System Blocks
File Functions SPEED7 CPUs > FC/SFC 195 and FC/SFC 208...215 - Memory card access
HB00 | OPL_SP7 | Operation list | en | 18-30 910

Table of Contents

Related product manuals