Panasonic FP7 Series Command Reference Manual page 1105

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

Advertisement

[D2]
Specification of
writing format
7
HEX 1-word
8
HEX 2-word
9
HEX 4-word
(Note 1)
"␣" in the table represents a space (H20).
[D2+3], [D2+4]: Specification of write position (file pointer)
16-bit integer
01
bin. format
16-bit integer
csv. format
(20H)
ASCII
"
csv. format
(22H)
Writing position
0
(File pointer)
● The writing position (file pointer) is specified in hexadecimal format in bytes.
● The file pointer setting is available only when the writing position specification mode1 or
mode 2 is specified.
● After the writing process into the file, the position of the end of written data is stored at the
writing position (file pointer). If the writing operation is performed again in this state, the next
data will be written.
● In case of the writing position specification mode 1, data is written in the file from the writing
position (file pointer) counted from the head of the file.
● In case of the writing position specification mode 2, data is written in the file from the writing
position (file pointer) counted from the end of the file.
● In the new file mode, data is always written from the head of a file. The writing position (file
pointer) after the writing process is not stored.
● In the add mode, data is always written from the end of a file. The writing position (file
pointer) after the writing process is not stored.
● The writing position is specified by one byte.
Example of processing (csv format file)
Example 1)
● 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 blank line is inserted in the data through zero suppression, and a comma (2Ch) is inserted
at the end.
WUME-FP7CPUPGR-12
Num
ber of
Zero suppression: ON
digits
␣␣␣ 0
4
␣␣␣␣␣␣␣ 0
8
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ 0
16
00
17
00
59
01
1
(20H)
(20H)
(20H)
(31H)
(2CH)
A
B
C
D
(41H)
(42H)
(43H)
(44H)
(45H)
1
2
3
4
5
18.3 CWT (File Data Write Instruction)
D7
11
D5
DD
,
2
(20H)
(20H)
(20H)
(32H)
E
"
,
"
a
(22H)
(2CH)
(22H)
(61H)
6
7
8
9
Zero suppression: OFF
0000
00000000
0000000000000000
01
00
17
00
59
3
,
(33H)
(2CH)
(20H)
(20H)
(33H)
b
c
d
"
(62H)
(63H)
(64H)
(22H)
(2CH)
A
B
C
D
E
01
FF
FF
3
4
5
,
(34H)
(35H)
(2CH)
,
"
1
2
(22H)
(31H)
(32H)
F
10
11
12
18-11

Advertisement

Table of Contents
loading

Table of Contents