Panasonic FP7 Series Command Reference Manual page 1108

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

Advertisement

18.3 CWT (File Data Write Instruction)
[S]...DT2
[n]...5
DT0
"8"
DT1
"0"
DT2
"b"
DT3
"d"
DT4
"f"
DT5
"h"
"j"
DT6
"l"
DT7
"n"
DT8
H 0000
DT9
DT100
U10
H 0000
DT101
DT102
H 0100
DT103
H 00000000
DT104
DT105
U0
DT106
(*) Option
・bit0-7(0): Line break settings
・bit8(1): Postfix
・bit9(0): Zero suppression
Example 5)
● Six pieces (six characters) of ASCII data are read from the area starting with device DT2,
and the data pieces are written in CSV format from the file pointer position of the existing file
"\abc\data1.csv" in an SD memory card.
● A comma (2Ch) is inserted at the end of the file.
18-14
[D1]..."¥abc¥data1.csv"
"7"
"9"
...Head of device
"a"
to be read
"c"
"e"
"g"
"i"
"k"
"m"
...Writing format
...Writing mode
...Option (*)
...Writing position
...Amount of writing data
- Invalid
- Insert a comma (2Ch)
- Invalid
[D2]...DT100
Writing file "data1.csv"
"abcde",
DT105
U5
DT106
...Amount of writing data
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents