12 FILE CONTROL
12.4 File Check
217
12
Search directory/file information (command: 1811)
Read the file No. of the specified file.
The file No. indicates the registration number of a file when the file is written to the module.
Message format
The following shows the message format of the request data and response data of the command.
■Request data
■Response data
File No. is stored. (Page 199 File No.)
If the file with the specified name does not exist, the command completes abnormally.
Data specified by request data
■Command
■Sub command
■Fixed value 1
Specify the following fixed value.
• MELSEC iQ-R series (when using subcommand '0040'): Specify '0'.
• MELSEC-Q/L series (when using subcommand '0000'): Specify 20H in 4 bytes.
■Drive No.
Specify the access target drive. (Page 198 Drive No.)
ASCII code Binary code
Item ASCII code Binary code
For MELSEC-Q/L series
For MELSEC iQ-R series
ASCII code Binary code
ASCII code, binary code
Subcommand Fixed values 1 Drive No. File nameCommand Fixed values 2
Number of file
name characters