Panasonic FP7 Series Command Reference Manual page 1118

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

18.4 CRD (File Data Read Instruction)
[S1]..."¥abc¥data1.csv"
DT50
DT51
DT52
DT53
H 00000000
DT54
DT55
DT56
Data content of file "data1.csv" (32-bit DEC format)
Byte address
File pointer
DT100
DT102
DT104
DT106
DT108
DT110
DT112
DT114
DT116
DT118
Example 4)
● Reads ten data (ten characters) of ASCII (000AH) data from the file "\abc\data1.csv" in an
SD memory card. (When using NULL as a delimiter)
● When there are two consecutive double quotation marks (""), each one (") is read as one
character.
● The data is stored in the area starting with DT102 as character data.
● As the "Reading position specification mode 1" is selected, the file pointer moves after
reading.
18-24
[S2]...DT50
U3
...Reading format
H 0002
...Reading mode
H 0000
...Reserved for system
...Reading position
U0
... No. of read data
123456,1234567,12345678,123456789,567890,5678901,..
U0
U0
U0
U0
U0
U0
U0
U0
U0
U0
123456,1234567,12345678,123456789,567890,5678901,..
[n]...5
[D]...DT102
DT100
DT102
DT104
DT106
DT108
DT110
DT112
DT114
DT116
DT118
Data content of file "data1.csv" (32-bit DEC format)
U0
U123456
U1234567
U12345678
U123456789
U567890
U0
U0
U0
U0
File pointer
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents