18.3 CWT (File Data Write Instruction)
■
Ladder diagram
■
List of operands
Operand Description
S
Starting address of the device where data to be written is stored (data format: unsigned 16-bit
integer)
n Number of write data items (data format: Unsigned 16-bit integer)
D1
Starting address of the device area that stores the path name (folder name + file name: maximum
256 characters) of the file in which data is written and the number of characters of the path name
(data format: character data)
D2
Starting address of the device area that stores parameters related to information such as saving
format (data format: unsigned 16-bit integer)
■
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 ● ● ● ● ● ● ● ● ●
D1 ● ● ● ● ● ● ● ●
D2 ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices can be modified. (Integer constants and character constants cannot be specified.)
■
Outline of operation
● [n] items of data stored at the device address starting from [S] are read and written to the SD
memory card file specified by [D1] according to the parameters specified by [D2].
■
[n]: Specification of number of write data items
Saving format Set value of [D2] Setting range of [n]
16-bit data U1, U2, U7, U11 0 to 65535
32-bit data U3, U4, U5, U8 0 to 32767
64-bit data U6, U9 0 to 16383
18.3 CWT (File Data Write Instruction)
18-6 WUME-FP7CPUPGR-12