3 - 18 3 - 18
MELSEC-Q
3 LET'S CREATE AND EXECUTE A PROGRAM
3.4.2 Renaming files
It is sometimes necessary to change the name of a file stored in the file area of a
memory card, or on a FD or HD. The NAME instruction is used to perform this task.
The NAME format is as shown below.
NAME "[Drive Number] : [System Name¥][File name to be Changed]"AS
"[Drive Number] : [System Name¥][New File Name]"
(1) See Section 3.3.1 (1) and (2) for the contents and specification method of [Drive
Name] and [System Name¥].
(2) [File name to be Changed] and [New File Name] are specified exactly in the same
manner as [File Name] described in Section 3.3.1 (3).
Usage examples
Rename file 'NO1.BAS' under system name 'TEST' in the memory card mounted in
MEMORY CARD 2 to 'N02.BAS.'
TEST
No1.BAS
No2.BAS
NAME Instruction
TEST
LOAD"1 : TEST¥NO2"
NAME"1 : TEST¥NO1.BAS"
MITSUBISHI
MEMORY CARD
A6MEM-512KA-W
SAVE"1 : TEST¥NO1"
AS"1 : TEST¥NO2.BAS"