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 #317 background imageLoading...
Page #317 background image
Manual VIPA CPU 21x Chapter 11 Integrated OBs SFBs SFCs
HB103E - Rev. 05/45 11-15
SFC 220 MMC_CR_F
Deploying this block, you may create a new res. access an existing file
when a MMC is plugged-in.
As long as you do not open another file, you may access this file via
read/write commands.
For deploying the SFCs 220, 221 and 222, you have to regard the following
restrictions:
A read res. write access to the MMC is only possible after creation res.
opening of the file via SFC 220.
The data on MMC must not be fragmentized, for only complete data
blocks may be read res. written.
When transferring data to the MMC from an external reading device,
they may be fragmentized, i.e. the data is divided into blocks. This may
be avoided by formatting the MMC before the write access.
At a write access from the CPU to the MMC, the data is always stored
not fragmentized.
When opening an already existing file, you have to use the same file
name and file size that you used at creation of this file.
A MMC is structured into sectors. Every sector has a size of 512Byte.
Sector overlapping writing or reading is not possible. Access to sector
overlapping data is only possible by using a write res. read command for
every sector. By giving the offset, you define the according sector.
The following picture shows the usage of the single SFCs and their
variables:
FILENAME
FILESIZE
512
Sektor
}
OFFSET
MMC
CPU
E
Memory
A
D
PTR
RET_VAL BUSY
SFC 222 MMC_WR_F
SFC 221 MMC_RD_F
SFC 220 MMC_CR_F
Note!
For read and write accesses to the MMC, you firstly have to open the file
with SFC 220!
Description
Restrictions
11x 21x 31x 51x

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