8-24
8.4 Reading Data from Specified File
SP_FREAD
(3) Be sure to use units of word to specify the number of request read data
[2], file position
[4],
[5], and read data device size
.
The following shows how each device data are read in binary data reading operation.
(4) When reading binary data
(a) If the extension of the target file is omitted, ".BIN" is used as an extension.
(b) When the specified file does not exist, an error occurs.
(c) If the position specified is greater than the existing file size:
• The High Performance model QCPU of which the first 5 digits of the serial number
are '01111' or lower results in an error.
• The High Performance model QCPU and Universal model QCPU of which the first 5
digits of the serial number are '01112' or higher performs reading at point 0 and is
completed normally.
(5) When reading data after CSV format conversion
(a) The elements in CSV format file (cells for EXCEL) are read by each row. The numeric
values and character strings are converted to binary data and stored to the device.
(b) If the extension is omitted, ".CSV" is used as an extension.
(c) When the specified file does not exist, an error occurs.
(d) The elements specified by the number of request read data
2 are read from the
beginning of the file.
When the last datum of the file is reached before the specified number of data are read:
• The High Performance model QCPU of which the first 5 digits of the serial number
are '01111' or lower results in an error.
• The High Performance model QCPU and Universal model QCPU whose the first 5
digits of the serial number are '01112' or higher reads the data up to the point where
the reading is possible.
d0
d0
d0
d1
Pos
i
t
i
on
o
f
t
h
e
fil
e
to
b
e
read
C
ontro
l
data
E
xec
u
t
i
on
/
comp
l
et
i
on
t
y
pe
(N
ot
u
sed
)
Nu
m
b
er
o
f
re
qu
est
read
data
(N
ot
u
sed
)
S
pec
ifi
cat
i
on
o
f
t
h
e
n
u
m
b
er
o
f
co
lu
mns
D
ata
t
y
pe
spec
ifi
cat
i
on
Fil
e
data
(i
n
by
te
u
n
i
ts
)
D
ata
dev
i
ce
R
ead
data
T
ota
l
0000
H
-
K3
K
1
-
K
0
-
00
H
+
0
11
H
22
H
33
H
44
H
55
H
66
H
77
H
88
H
99
H
AA
H
+
1
+
2
+3
K3
33
H
22
55
H
44
77
H
66
[
0
]
d0
[
1
]
d0
[
2
]
d0
[3]
d0
[4]
d0
[5]
d0
[6]
d0
[7]
d0
d1
d1
d1
d1
d0
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......