Panasonic FP7 Series Command Reference Manual page 1106

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

Advertisement

18.3 CWT (File Data Write Instruction)
[S]...DT2
DT0
U1
U12
DT1
DT2
U123
DT3
U1234
U12345
DT4
DT5
U5
DT6
U56
DT7
U567
DT8
U5678
DT9
U56789
U1
DT100
H 0000
DT101
DT102
H 0300
DT103
H 00000000
DT104
DT105
U0
DT106
(*) Option
・bit0-7(0): Line break settings
・bit8(1): Postfix
・bit9(1): Zero suppression
Example 2)
● Five pieces (10 words) of unsigned 32-bit integer data are read from the area starting with
device DT4, 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 blank line is inserted in the data through zero suppression, and a comma (2Ch) is inserted
at the end.
[S]...DT4
U1234
DT0
U12345
DT2
DT4
U123456
DT6
U1234567
DT8
U12345678
DT10
U123456789
DT12
U1234
DT14
U12345
DT16
U123456
DT18
U1234567
DT100
U3
DT101
H 0000
H 0200
DT102
DT103
H 00000000
DT104
DT105
U0
DT106
(*) Option
・bit0-7(0): Line break settings
・bit8(0): Postfix
・bit9(1): Zero suppression
18-12
[n]...5
[D1]..."¥abc¥data1.csv"
...Head of device
to be read
...Writing format
...Writing mode
...Option (*)
...Writing position
...Amount of writing data
- Do not insert line breaks except at the end of the file
- Insert a comma (2Ch)
- ON
[D1]..."¥abc¥data1.csv"
[n]...5
...Head of device
to be read
...Writing format
...Writing mode
...Writing position
...Amount of writing data
- Do not insert line breaks except at the end of the file
- Insert a line break (0Dh+0Ah)
- ON
[D2]...DT100
Writing file "data1.csv"
123,
␣␣
"
" indicates a space (20h)
DT105
DT106
[D2]...DT100
Writing file "data1.csv"
,
,
123456
1234567
12345678
␣␣ ␣ ␣
␣␣ ␣
␣␣
DT105
U5
DT106
1234,12345,
5,
56,
␣␣ ␣ ␣
␣␣ ␣
...Amount of writing data
U5
,
,
123456789
1234
␣␣ ␣ ␣
...Amount of writing data
WUME-FP7CPUPGR-12
(
0Dh)(0Ah)

Advertisement

Table of Contents
loading

Table of Contents