12 FILE CONTROL
12.6 File Modification
243
12
■Write data
Specify the data to be written to a file.
Communication example
Write the file under the following conditions:
• File pointer No.: 0
• Offset address: 0
• Number of bytes written: 1K byte
■Data communication in ASCII code
(Request data)
(Response data)
■Data communication in binary code
(Request data)
(Response data)
1829
31
H
38
H
32
H
39
H
000
30
H
30
H
30
H
0
30
H
30
H
30
H
30
H
30
H
0
30
H
30
H
30
H
30
H
30
H
30
H
30
H
30
H
00000000000
30
H
34
H
30
H
30
H
0400
Number of bytes written Write data
Subcommand File pointer No. Offset address
(Contents of a file)
04
30H 34H
00
30H 30H
Number of bytes written
29H 18H 00H 00H 00H 00H 00H 00H 00H 00H 00H 04H
Subcommand
File pointer No.
Number of
bytes written
Write data
Offset address
(Contents of a file)
00H 04H
Number of
bytes written