11 - 383 11 - 383
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
STOP
Instruction
STOP
• Pauses the program execution in edit mode.
• Stops the execution of a program, and puts it in the stop status.
Syntax
STOP
Examples
STOP
• • • •
Pauses the program execution and forces it into the
status where it waits for further instructions to be
entered.
Description
In edit mode
• The STOP instruction pauses the execution of the program and forces it into the status
where it waits for further instructions to be entered.
• The STOP instruction can be used at any place in a program.
• When the STOP instruction is executed, the following message is displayed:
Break in nnnnn nnnnn indicates a line number.
• Unlike the END instruction, the STOP instruction does not close open files.
• After a program is forced into the status where it waits for instruction entry by the execution
of the STOP instruction, the execution can be resumed by using the CONT instruction.
However, if the program is modified during the pause, the execution cannot be resumed
by the CONT instruction.
In execution mode
• The STOP instruction stops the program execution.
• The program execution can be resumed using the TRUN and TCONTINUE commands of
the debugger if the debugger is used.
• The STOP instruction can be used at any place in a program.
If the last END instruction is omitted in a program in execution mode, the same result as if the STOP
instruction were executed is obtained.
REMARK
See the CONT and RUN instructions, and Chapter 10.