18.9 CRD1 (One Line Read from File)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
n unit
bit US SS UL SL SF DF STR
i ●
■
List of operands
Operand Description
S
Starting address of the device area that stores the path name (folder name + file name: maximum
256 characters) of the file from which data is read and the number of characters of the path name
(data format: character data)
D1 Starting address of the device storing the character string data that was read
D2
Starting address of the device storing the parameter data relating to the position and upper limit of
the read data
■
Devices that can be specified (indicated by ●)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
(Note 1)
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S ● ● ● ● ● ● ● ●
D1 ● ● ● ● ● ● ●
D2 ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices can be modified. (Character constants cannot be specified.)
■
Outline of operation
● This instruction reads the file specified by [S] from the reading position specified by [D2] up
to a specified maximum number of bytes until the detection of CR+LF, and stores it in the
device address starting with [D1].
■
[S] to [S+1]: Specification of folder name and filename
● Starting device that stores the folder name (folder name + file name: 1 to 256 characters) of
the folder stored in an SD memory card and the number of characters of the folder name
18.9 CRD1 (One Line Read from File)
18-42 WUME-FP7CPUPGR-12