11 - 369 11 - 369
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
RUN (1)
Instruction
RUN
• Starts the execution of the program currently resident in the program area.
RUN [<line number>]
Syntax
line number
• • • •
Specify the line number where the execution is
started.
Examples
RUN
• • • •
Starts the execution from the line with the least line
number.
Description
• The RUN (1) instruction starts the execution of the program currently exists in the program
area.
• If <line number> is specified, the execution starts from the specified line.
• If <line number> is omitted, the execution starts from the line with the least line number.
When the execution ends, BASIC goes into the status where it waits for further
instructions to be entered.
• The RUN instruction closes all open files and erases all data in memory.
REMARK
See the CONT and STOP instructions, and Chapter 3.