EasyManuals Logo

VIPA CPU 21 Series User Manual

VIPA CPU 21 Series
394 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
Page #318 background imageLoading...
Page #318 background image
Chapter 11 Integrated OBs SFBs SFCs Manual VIPA CPU 21x
11-16 HB103E - Rev. 05/45
Calling this SFC, you specify the name and the size of the file that has to
be created res. to open.
When calling this SFC 220, you have to transfer the following parameters:
Type the file name used to store the data on the MMC. The file name may
not exceed a maximum length of 8+3 signs (FAT).
The file size defines the size of the user data in Byte.
Note!
When accessing an already existing file, it is mandatory to give not only the
file name but also the file size. The entry of a "Joker" length is not
supported at this time.
Return Value
Word that returns a diagnostic/error message. 0 means OK.
See the table below for the concerning messages:
Value Description
Diagnostic messages
0000h No errors (appears if new file is generated)
0001h File already exists, is not fragmentized and the length value is
identical or smaller.
8001h No or unknown type of MMC is plugged-in.
Error messages
8002h No FAT on MMC found.
A001h File name missing. This message appears if file name is inside a
not loaded DB.
A002h File name wrong (not 8.3 or empty)
A003h File exists but "file size" too bigger than existing file.
A004h File exists but is fragmentized 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.
Parameters
File name
File size
RET_VAL

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the VIPA CPU 21 Series and is the answer not in the manual?

VIPA CPU 21 Series Specifications

General IconGeneral
BrandVIPA
ModelCPU 21 Series
CategoryControl Unit
LanguageEnglish

Related product manuals