Procedure to read files
1.
Check for file existence.
Any of the following commands can be used.
• Page 211 Read directory/file information (command: 1810)
• Page 217 Search directory/file information (command: 1811)
2.
Read the files.
For read command, use open and close command to prohibit access from other devices.
Execute the commands in the following order.
• Page 236 Open file (command: 1827)
• Page 240 Read file (command: 1828)
• Page 244 Close file (command: 182A)
Procedure to overwrite files
1.
Check for file existence.
Any of the following commands can be used.
• Page 211 Read directory/file information (command: 1810)
• Page 217 Search directory/file information (command: 1811)
2.
Write data to the file.
For writing data, use open and close command to prohibit access from other devices.
Execute the commands in the following order.
• Page 236 Open file (command: 1827)
• Page 242 Write to file (command: 1829)
• Page 244 Close file (command: 182A)
In the following cases, create a new file and write data to it after deleting the target file.
• When the target file is sequence program file (*.PRG) or FB file (*.PFB) of MELSEC iQ-R series.
• When changing the file size of MELSEC-Q/L series is required.
Page 193 Procedure to delete files
Page 192 Procedure to create new file and write data
12 FILE CONTROL
191
12.1 Execution Procedure
12