18.2 CDTRD (Data Read from BIN Format File to Operation Memory)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
n unit
bit US SS UL SL SF DF
i ● ●
■
List of operands
Operand Description
S
File number (3 digits) of the file in an SD memory card in which the data to be read is stored.
Range: 0 to 999
n Number of data items to be read. Range: 0 to 65535
D Starting address of the device for arithmetic operations that stores the data to be read
■
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 ● ● ● ● ● ● ● ● ● ●
n ● ● ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices can be modified. (Integer constants cannot be specified.)
■
Outline of operation
● This instruction reads [n] pieces of data from the binary format file in the SD memory card,
and stores it in the device of the address starting with [D].
● The folder name is \data, and the file name is dtxxx.bin. xxx in the file name is the file
number specified by the operand [S].
■
Example of processing
● A binary format file is read from the folder \data in the SD memory card, and is stored in the
device for operation starting with [D].
18.2 CDTRD (Data Read from BIN Format File to Operation Memory)
18-4 WUME-FP7CPUPGR-12