12 FILE CONTROL
12.5 File Creation and Deletion
221
12
■Drive No.
Specify the access target drive. (Page 198 Drive No.)
■File size
Specify the file capacity in byte unit. (Page 207 File size)
■Number of file name characters, file name
Specify the file name to be created. (Page 202 File name specification)
Communication example (files for MELSEC-Q series)
Create a new file in the following conditions:
• Password: 4 spaces (code: 20H)
• Drive No.: 0
• File name: ABC.CSV
• File size: 1K byte
■Data communication in ASCII code
(Request data)
■Data communication in binary code
(Request data)
1820
31
H
38
H
32
H
30
H
000
30
H
30
H
30
H
0
30
H
20
H
20
H
20
H
20
H
0
30
H
30
H
30
H
30
H
30
H
30
H
30
H
30
H
34
H
30
H
30
H
30
H
00000004000
30
H
30
H
30
H
37
H
41
H
42
H
43
H
2E
H
43
H
53
H
56
H
0007ABC.CSV
Subcommand Password Drive No. File size
Number of file
name characters
File name
20
H
20
H
00
H
00
H
20
H
18
H
20
H
20
H
00
H
00
H
00
H
40
H
00
H
00
H
07
H
00
H
41
H
42
H
43
H
2E
H
43
H
53
H
56
H
ABC . CSV
Number of file name characters
Subcommand
File name
Password
Drive No. File size