Example 2) When set to reading position specification mode 2
File name: DATA1
Reading position specification (S2+3,S2+4)
End of file
(Target read data)
■
Example of processing
Example 1)
● Five pieces (five words) of 16-bit BIN data are read from the file "\abc\data1.bin" in an SD
memory card, and the data pieces are stored in the area starting with DT102.
● As the “Reading position specification mode 1” is selected, the file pointer moves after
reading.
[S1]..."¥abc¥data1.bin"
[S2]...DT50
H 000B
H 0002
H 0000
DT50
DT51
DT52
H 0000
H 0000
H 0000
DT100
DT101
DT102
H 0000
H 0000
H 0000
DT103
DT104
DT105
H 0000
H 0000
H 0000
H 0000
DT106
DT107
DT108
DT109
[n]...5 [D]...DT102
...Reading format
...Reading mode
...Reserved for system
File pointer
Data content of file "data1.bin" (16-bit BIN format)
1027112712271327142715271627172718271927
H 0000
H 0000
H 1027
DT100
DT101
DT102
H 1127
H 1227
H 1327
DT103
DT104
DT105
H 1427
H 0000
H 0000
H 0000
DT106
DT107
DT108
DT109
File pointer
Data content of file "data1.bin" (16-bit BIN format)
1027112712271327142715271627172718271927
H 00000000
U0
DT53
DT54
DT55
...Reading position
...No. of read data
DT56
18.4 CRD (File Data Read Instruction)
18-22 WUME-FP7CPUPGR-12