11 - 370 11 - 370
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
RUN (2)
Instruction
RUN
• Executes after loading a program into memory from a memory card, FD, or HD.
RUN "[<drive number>:][<system name>\]<file name>"
Syntax
drive number
• • • •
Specify the memory card, FD, or HD where the
program is saved.
system name
• • • •
Specify the system name under which the program is
saved.
file name
• • • •
Specify the file name of the saved program.
Examples
RUN"0:TEST\NO1.BAS"
• • • •
Reads the file NO1.BAS stored under system name
TEST in the memory card inserted in the AD51H-S3
MEMORY CARD 1 drive and executes it.
• The RUN (2) instruction loads a program into memory from a memory card, FD, or HD,
and executes it.
• Specify the memory card, FD, or HD from which the program is read in <drive number>,
using the following numbers:
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
Description
To specify the D drive of the console
• • • •
4
• Specify the name given to the program when it was stored in the memory card or FD using
the SAVE instruction for <system name> and <file name>.
• The RUN instruction closes all open files and erases all data in memory before loading a
program.
REMARK
See Section 3.3.