Chapter 12 File Control; Execution Procedure; Procedure To Read Information From All Files In Directory (Folder) - Mitsubishi Electric MELSEC IQ-R series Reference Manual

Programmable controller
Hide thumbs Also See for MELSEC IQ-R series:
Table of Contents

Advertisement

12
FILE CONTROL
This chapter explains the commands that operates files in the supported devices the CPU module.
Use this function in the following situations:
• To check the parameters and programs stored in the CPU module
• To change the parameters and programs in the CPU module according to the control content
For file name, extension, and storage location of files that can be handled by MC protocol, refer to the manual of the module
to be accessed.
12.1

Execution Procedure

The following shows the file control procedures.

Procedure to read information from all files in directory (folder)

1.
Read the file information from the head of the file.
Specify '1' for "Head file No." and '36' (upper limit) for "Number of requested file", and execute the 'read directory/file
information' command. The file information of "Number of file information" is stored in the response data.
Page 211 Read directory/file information (command: 1810)
2.
Check if there is a file from which the file information is not read.
When "Number of file information" of the response data is in the status as shown below, it indicates that file information of all
the files have been read. Complete the processing.
• MELSEC-Q/L series (when using subcommand '0000'): "Number of file information" < "Number of requested file"
• MELSEC iQ-R series (when using subcommand '0040'): "Number of file information" = -1 (FFFFH)
3.
Read the file information from a file from which the file information is not read.
Specify "Number of requested file" = 36 (upper limit) to the request data, and execute the command.
For "Head file No.", specify one of the following value.
• MELSEC-Q/L series (when using subcommand '0000'): "Head file No." = previous "Head file No." + "Number of file
information"
• MELSEC iQ-R series (when using subcommand '0040'): "Head file No." = previous "Last file No." + 1
Page 211 Read directory/file information (command: 1810)
4.
Repeat the procedure of Step 2 and later.
The correct information cannot be obtained if the file operation is performed from other devices while reading
information of all the files in the directory. Do not perform file operation from other devices while reading file
information.
12 FILE CONTROL
190
12.1 Execution Procedure

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents