11 - 371 11 - 371
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
SAVE
Instruction
SAVE program
• Saves a program to a memory card, FD, or HD.
SAVE "[<drive number>:][<system name>\]<file name>"
Syntax
drive number
• • • •
Specify the memory card, FD, or HD to which the
program is saved.
system name
• • • •
Specify the system name under which the program is
saved.
file name
• • • •
Specify the file name of the program to be saved.
Examples
SAVE "0:TEST\No1.BAS"
• • • •
Saves the program currently exists in memory to the
memory card inserted in the AD51H-S3 MEMORY
CARD 1 drive, under system name TEST and
with the file name No1.BAS.
• The SAVE instruction saves the program currently exists in memory to a memory card, FD,
or HD.
• Specify the memory card, FD, or HD to which the program is to be saved in <drive
number>, using the following numbers:
During online programming
To specify the memory card inserted in AD51H-S3 MEMORY CARD 1
• • • •
0
To specify the memory card inserted in AD51H-S3 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
• Specify the system name under which the program is to be saved in <system name>. If the
specified system name does not exist, a new system name is registered.
• If <system name> is omitted, the program is saved as a file without system name.
Note that a system name cannot be registered under another system name.
• Specify the name and extension of the file name that will be assigned to the program to be
saved in <file name>. If an extension is not specified, the file name will not have an
extension.
If a file with the same "<drive number>:<system name> \ <file name>" already exists,
please note that it is overwritten without confirmation.
REMARK
See the LOAD instruction and Section 3.3.