Panasonic FP7 Series Command Reference Manual page 1107

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

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.
[S]...DT2
DT0
U1
U12
DT1
DT2
U123
U1234
DT3
U12345
DT4
DT5
U5
DT6
U56
DT7
U567
DT8
U5678
DT9
U56789
U1
DT100
DT101
H 0000
DT102
H 0003
DT103
H 00000000
DT104
DT105
U0
DT106
(*) Option
・bit0-7(3): Line break settings
・bit8(0): Postfix
・bit9(0): Zero suppression
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.
WUME-FP7CPUPGR-12
[D1]..."¥abc¥data1.csv"
[n]...5
...Head of device
to be read
...Writing format
...Writing mode
...Option (*)
...Writing position
...Amount of writing data
- Insert a delimiter and a break before the third data
- Insert a line break (0Dh+0Ah)
- OFF
18.3 CWT (File Data Write Instruction)
[D2]...DT100
Writing file "data1.csv"
00123,01234,12345 (0Dh)(0Ah)
00005,00056 (0Dh)(0Ah)
DT105
U5
DT106
...Amount of writing data
18-13

Advertisement

Table of Contents
loading

Table of Contents