11 - 60 11 - 60
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
END
Instruction
END
• Terminates the execution of the program and brings to the input wait state for an
instruction in edit mode.
• Terminates the execution of the program and brings to the idling state in execution mode.
Syntax
END
Examples
END
• • • •
Terminates the execution of the program and brings
to the input wait state for an instruction after closing
all open files (Edit mode).
Terminates the program execution and brings to the
idling mode after closing all open files (Execution
mode).
Description
• After terminating the program execution, the following occurs:
In edit mode
• Closes all open files and brings to the input wait state for an instruction.
• This instruction is different from the STOP instruction, and the “Break in
” message is
not displayed.
• The END instruction at the end of the program may be omitted.
The file is not closed, however, if the END instruction is omitted.
In execution mode
• Terminates the program execution and brings to the idling state. The program in the idling
state can be executed again by the ZSTART instruction.
REMARK
See the CLOSE, RUN, and STOP instructions.