Example 3)
● Five pieces (five words) of unsigned 16-bit integer data are read from the area starting with
device DT2, and the data pieces are written in CSV format into the file "\abc\data1.csv" in the
SD memory card in new file mode.
● A line break (0Dh+0Ah) is inserted at the third data separation and at the end of the file.
00123,01234,12345 (0Dh)(0Ah)
00005,00056 (0Dh)(0Ah)
U1
H 0000
H 0003
DT100
DT101
DT102
...Writing format
...Writing mode
...Option (*)
(*) Option
Writing file "data1.csv"
H 00000000
U0
DT103
DT104
DT105
DT106
...Writing position
...Amount of writing data
U1
U12
U123
DT0
DT1
DT2
U1234
U12345
U5
DT3
DT4
DT5
U56
U567
U5678
U56789
DT6
DT7
DT8
DT9
[S]...DT2
[n]...5
[D1]..."¥abc¥data1.csv" [D2]...DT100
・bit0-7(3): Line break settings
・bit8(0): Postfix
・bit9(0): Zero suppression
- Insert a delimiter and a break before the third data
- Insert a line break (0Dh+0Ah)
- OFF
...Head of device
to be read
U5
DT105
...Amount of writing data
DT106
Example 4)
● Five pieces (five characters) of ASCII data in the area starting with device DT2 are read from
low bytes in order, and the data pieces are written in CSV format into the file "\abc\data1.csv"
in the SD memory card in new file mode.
● A comma (2Ch) is inserted at the end of the file.
18.3 CWT (File Data Write Instruction)
WUME-FP7CPUPGR-12 18-13