11 - 154 11 - 154
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
NEW
Instruction
NEW
• Erases all programs in memory and initializes all variables.
Syntax
NEW
Examples
NEW
• • • •
Erases all programs in memory and initializes all
variables.
Description
• The NEW instruction erases all programs currently resident in memory and initializes
memory before entering a new program. The size of the memory area defined by the
CLEAR instruction does not change, however.
• When the NEW instruction is executed, BASIC will wait for a next instruction.
• The NEW instruction automatically closes all files, if any files were open.
REMARK
See the CLOSE, END, LOAD and SAVE instructions, and Section 3.1.