8.4 Reading Data from Specified File
8-27
8
QCPU
INS
T
R
UCTIONS
SP
_FREAD
SP_FREAD
(f) When data are read after CSV format conversion and the specified number of columns
is other than 0, the data are read as the table with specified number of columns in CSV
format file. The elements outside of the specified columns are ignored.
When data are read after CSV format conversion and the specified number
of columns is other than 0.
Example
D
ata t
h
at
w
as read
Elements o
u
tside t
h
e
speci
f
ied
n
u
m
b
er o
f
col
u
mns are ignored.
S
P_F
R
E
AD(
T
R
UE
,
2
,
Var_
D
20
,
Var_
D
10
,
Var_
D99,
Var_M0
);
C
ontrol data
File name
D
ata to
b
e read into devices
D
ata created
by
E
XC
EL
D
ata saved in t
h
e
CS
V
f
ormat
Main / s
ub
item
Lengt
h
Temperat
u
re
,
,
,
,
1
-21
Meas
u
red val
u
e
, 3
,
CR
CR
LF
CR
LF
LF
A
1
2
3
Main / s
ub
item
Meas
u
red val
u
e
Lengt
h
Temperat
u
re
1
3
-21
4
B
C
C
ontrol data
0100
H
Var_
D
10
Var_
D
20
Var_
D99
-
K
6
-
K0
K0
K2
K0
4241
H
444
3
H
0000
H
K
6
K0
K0
K0
K1
K0
K-21
Not
u
sed
N
u
m
b
er o
f
re
qu
est read data
File name
"
A
B
CD
"
Not
u
sed
1
N
u
m
b
er o
f
read res
u
lt data
"Main/s
ub
item"
S
ince t
h
is is not n
u
meric val
u
e data
,
conversion data
(
0
)
is stored.
" "
S
ince t
h
is is not n
u
meric val
u
e data
,
conversion data
(
0
)
is stored.
-21
S
ince t
h
is is n
u
meric val
u
e data
,
it is converted to
b
inar
y
data.
1
S
ince t
h
is is n
u
meric val
u
e data
,
it is converted to
b
inar
y
data.
"Lengt
h
"
S
ince t
h
is is not n
u
meric val
u
e data
,
conversion data
(
0
)
is stored.
"Temperat
u
re"
S
ince t
h
is is not n
u
meric val
u
e data
,
conversion data
(
0
)
is stored.
S
peci
f
ication o
f
t
h
e n
u
m
b
er o
f
col
u
mns
D
ata t
y
pe speci
f
ication
R
ead
data
S
tores t
h
e n
u
m
b
er
o
f
read data
Lengt
h
Temperat
u
re
K-21
Main/s
ub
item
D
ata
b
et
w
een
,
and
,
Exec
u
tion/completion t
y
pe
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......