11 - 68 11 - 68
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
FILES
Instruction
FILES
• Displays the file name of a file in a memory card, FD, HD, etc.
FILES [“ <drive number> :] [ <system name>\] [ < file name> ] “] [, S]
drive number
• • • •
Specify a memory card or FD to display the file
name.
system name
• • • •
Specify the system name to display the file name.
Syntax
file name
• • • •
Specify the file name to be displayed.
FILES “0:”, S
• • • •
The FILES instruction displays the file name, size, as
well as the created date and time of a file without the
system name in the memory card inserted in
AD51H-S3 MEMORY CARD 1 .
Examples
FILES “2:TEST\”
• • • •
Displays the file name of a file in system name TEST
of console’s A drive.
• The FILES instruction displays the file name of the file in the system name specified by
<system name> in a memory card, FD, HD, etc. specified by <drive number>.
• The FILES instruction displays only the file name if <file name> is specified.
In <drive number>, specify the memory card, FD, or HD to display the file name using the
following numbers:
In edit mode and execution mode
To specify the memory card mounted in AD51H MEMORY CARD 1
• • • •
0
To specify the memory card mounted in AD51H MEMORY CARD 2
• • • •
1
To specify the A drive of the console
• • • • • • • • • • • • • • • • • • • • • • • • • • •
2
To specify the C drive of the console
• • • • • • • • • • • • • • • • • • • • • • • • • • •
3
To specify the D drive of the console
• • • • • • • • • • • • • • • • • • • • • • • • • • •
4
During offline programming
To specify the A drive of the console
• • • • • • • • • • • • • • • • • • • • • • • • • • •
1
To specify the C drive of the console
• • • • • • • • • • • • • • • • • • • • • • • • • • •
3
To specify the D drive of the console
• • • • • • • • • • • • • • • • • • • • • • • • • • •
4
Description
• The file name, file size, as well as the creation date and time are displayed if the [, S]
option is specified. If the [, S] option is not specified, only the file name is displayed.
• If <system name> is omitted, the name of file without a system name will be displayed.
• Wildcards (ambiguous specification) may be used for <file name>.
For the use of wildcard, see Appendix 1.2.
REMARK
See the LFILES instruction and Section 3.4.1.