Manual VIPA CPU 21x
Chapter 11 Integrated OBs SFBs SFCs
HB103E - Rev. 05/45
11-17
SFC 221 MMC_RD_F
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 see the
description of the SFC 220.
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.
Return Value
Word, where a diagnostic/error message is returned to. 0 means OK. The
following messages may be set:
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)
9002h File length exceeded
9003h Sector limit of 512 has been tried to overrun.
Sector overrun reading is not possible.
B000h An internal error occurred.
Description
Parameters
PTR
OFFSET
BUSY
RET_VAL
11x 21x 31x 51x
✓
✓
✓
✓
Содержание CPU 21 Series
Страница 1: ...Manual VIPA CPU 21x Order No VIPA HB103E Rev 05 45 ...
Страница 2: ...Lerrzeichen ...
Страница 6: ...About this Manual Manual VIPA CPU 21x Subject to change to cater for technical progress ...
Страница 10: ...Contents Manual VIPA CPU 21x iv HB103E Rev 05 45 ...
Страница 30: ...Chapter 1 Principles Manual VIPA CPU 21x 1 18 HB103E Rev 05 45 ...
Страница 58: ...Chapter 2 Hardware description Manual VIPA CPU 21x 2 28 HB103E Rev 05 45 ...
Страница 80: ...Chapter 3 Deployment CPU 21x Manual VIPA CPU 21x 3 22 HB103E Rev 05 45 ...
Страница 178: ...Chapter 5 Deployment CPU 21x 2BT02 with H1 TCP IP Manual VIPA CPU 21x 5 48 HB103E Rev 05 45 ...