3 - 15 3 - 15
MELSEC-Q
3 LET'S CREATE AND EXECUTE A PROGRAM
3.3.3 Loading programs
Programs stored in the file area of a memory card, FD, or HD can be read into the
communication module's memory using the LOAD instruction.
The LOAD instruction is entered in the following format.
LOAD "[Drive Name] : [System Name¥][File Name]"
(1) [Drive Name], [System Name¥], and [File Name] are specified in the same
manner as for the SAVE instruction.
See (1) through (3) of Section 3.3.1.
(2) If a non-existent [System Name¥] or [File Name] is specified, an error (File not
found) will occur.
Usage examples
LOAD "1 : Nagata¥SUMPLE" • • • • • • • • • Read a program with the file name
'SUMPLE.BAS' and the system name
'Nagata' from the file area of the
memory card mounted in MEMORY
CARD 2 .
LOAD "2 : LINE. P01"
• • • • • • • • • Read a program with the file name
'LINE1.P01' without a system name
from the A drive of the console.
Use the FILES instruction to view programs stored in a FD or memory card.
See Section 3.4.1 for details.