Delete file (command: 1822)
Delete a file.
If files are deleted while a programmable controller system is in operation, the system may be stopped.
Determine the timing of file deletion for the entire programmable controller system.
• The files on which the 'open file' command is being executed cannot be deleted. Close the file before
deleting it. (Page 236 Open file (command: 1827), Page 244 Close file (command: 182A))
• The file being executed cannot be deleted when CPU module is state of RUN. Delete the file after placing
CPU module to the STOP state. (Page 463 Applicable Commands for Online Program Change)
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
2
31
38
32
32
H
H
H
H
■Sub command
Item
For MELSEC-Q series
For MELSEC-L series
For MELSEC iQ-R series
■Password
Specify the password of the file. (Page 195 Password)
■Drive No.
Specify the access target drive. (Page 198 Drive No.)
Number of file
Password
Drive No.
name characters
Binary code
22
18
H
H
ASCII code
0
0
0
0
30
30
30
30
H
H
H
H
0
0
0
4
30
30
30
34
H
H
H
H
0
0
4
0
30
30
34
30
H
H
H
H
File name
Binary code
00
00
H
H
04
00
H
H
40
00
H
H
12 FILE CONTROL
12.5 File Creation and Deletion
12
223