EasyManua.ls Logo

YASKAWA VIPA SPEED7 - SFC 221 - MMC_RD_F - Read from MMC 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...
Value Description
A002h File name wrong (not 8.3 or empty)
A003h File exists but FILESIZE too bigger than existing file.
A004h File exists but is fragmented and cannot be opened.
A005h Not enough space on MMC.
A006h No free entry in root directory. Depending on the used MMC there may be min. 16 up to
max. 512 entries in the root directory.
B000h An internal error occurred.
16.2.3 SFC 221 - MMC_RD_F - read from MMC file
Via the SFC 221 you may read data from a MMC. For read and write accesses to the
MMC, you firstly have to open the file with SFC 220 and it has to be not fragmentized. For
more detailed information to this and to the restrictions
Ä
Chap. 16.2.1 ‘SFC 220 ... 222 -
MMC Access’ page 906.
Parameters
Name Declaration Type Description
PTR IN ANY Pointer to area for reading data
OFFSET IN DWORD Offset of data within the file
BUSY OUT BOOL Job state
RET_VAL OUT WORD Return value (0 = OK)
This variable of the type pointer points to a data area in the CPU where the content of the
MMC has to be written to.
Here you define the start address inside the file on the MMC from where on the data has
to be transferred to the CPU.
During data transfer this bit remains set. The bit is reset as soon as the data transfer is
complete.
Word that returns a diagnostic/error message. 0 means OK.
Value Description
0000h No errors (data was read)
8001h No or unknown type of MMC is plugged-in
8002h No FAT found on MMC
9000h Bit reading has been tried (Boolean variable). Bit reading is not possible.
9001h Pointer value is wrong (e.g. points outside DB)
Description
PTR
OFFSET
BUSY
RET_VAL (Return Value)
VIPA SPEED7
System Blocks
MMC Functions standard CPUs > SFC 221 - MMC_RD_F - read from MMC file
HB00 | OPL_SP7 | Operation list | en | 18-30 908

Table of Contents

Related product manuals