12 FILE CONTROL
12.6 File Modification
237
12
■Drive No.
Specify the access target drive. (Page 198 Drive No.)
■Number of file name characters, file name
Specify the file name to be open. (Page 202 File name specification)
Communication example (files for MELSEC-Q series)
Open the file of QCPU in the following conditions.
• Password: 1234
• Drive No.: 0
• File name: ABC.QPG
• Open mode: Open for write
■Data communication in ASCII code
(Request data)
(Response data)
■Data communication in binary code
(Request data)
(Response data)
1827
31
H
38
H
32
H
37
H
000
30
H
30
H
30
H
0
30
H
31
H
32
H
33
H
34
H
0
30
H
31
H
30
H
30
H
30
H
30
H
30
H
30
H
10000001234
30
H
30
H
30
H
37
H
41
H
42
H
43
H
2E
H
51
H
50
H
47
H
0007ABC.QPG
Number of file name characters File nameSubcommand Password Open mode Drive No.
0000
30
H
30
H
30
H
30
H
File pointer No.
27H 18H 00H 00H 31H 32H 33H 34H 00H 01H 00H 00H
07H 00H 41H 42H 43H 2EH 51H 50H 47H
1234
ABC . QPG
Drive No.
Subcommand File namePassword
Number of file
name characters
Open mode