8-28
8.4 Reading Data from Specified File
SP_FREAD
If the number of columns varies in each row, the elements outside of the specified columns are
ignored and "0" is added to the places where elements do not exist.
When the number of columns varies in each row when the data are read.
Example
D
ata t
h
at
w
as read
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
Elements o
u
tside t
h
e speci
f
ied
n
u
m
b
er o
f
col
u
mns are ignored.
Main / s
ub
item
Lengt
h
Temperat
u
re
,
,
,
,
-21
Meas
u
red val
u
e
,
CR
CR
LF
CR
Excess
LF
LF
"Temperat
u
re"
S
ince t
h
is is not n
u
meric val
u
e data
,
conversion data
(
0
)
is stored.
C
ontrol data
0100
H
-
K
6
-
K0
K0
K2
K0
4241
H
444
3
H
0000
H
K
6
K0
K0
K0
K0
K0
K-21
Exec
u
tion/completion t
y
pe
Not
u
sed
N
u
m
b
er o
f
re
qu
est read data
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
File name
"
A
B
CD
"
N
u
m
b
er o
f
read res
u
lt data
Not
u
sed
"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.
No data
S
ince no element exists
h
ere
,
conversion data
(
0
)
is added.
"Lengt
h
"
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.
Var_
D
10
Var_
D
20
No data
Var_
D99
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
,
Содержание 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: ......