12.5
File Creation and Deletion
Create a new file or delete a file.
Create new file (command: 1820)
Specify the size to create a new file.
A folder cannot be created with this command. Create a folder with an Engineering tool.
The time on a module is registered as the last edit date and time in a file created using this function.
Message format
The following shows the message format of the request data and response data of the command.
■Request data
Command
Subcommand
■Response data
There is no response data for this command.
Data specified by request data
■Command
ASCII code
1
8
2
0
31
38
32
30
H
H
H
H
■Sub command
Item
For MELSEC-Q/L series
For MELSEC iQ-R series
■Password
Specify the following fixed value.
• MELSEC iQ-R series (when using subcommand '0040'): Specify '0'.
ASCII code
0
0
0
0
30
30
30
30
H
H
H
H
• MELSEC-Q/L series (when using subcommand '0000'): Specify 20H in 4 bytes.
ASCII code, binary code
20
20
20
20
H
H
H
H
12 FILE CONTROL
220
12.5 File Creation and Deletion
Password
Drive No.
File size
Binary code
20
18
H
H
ASCII code
0
0
0
0
30
30
30
30
H
H
H
H
0
0
4
0
30
30
34
30
H
H
H
H
Binary code
00
00
00
00
H
H
H
H
Number of file
File name
name characters
Binary code
00
00
H
H
40
00
H
H