11 - 33 11 - 33
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
CONT
Instruction
CONTinue
• Resumes the program that was stopped by the Ctrl + C or Break key in edit mode, or
by executing the STOP or END instruction.
Syntax
CONT
Examples
CONT
• • • •
Resumes execution of the program from the point
where the program execution was stopped.
Description
• The CONT instruction resumes the program that is being stopped.
• The program execution resumes from the next line after it stopped.
• If it was stopped in the wait state of the input by the INPUT instruction, the execution
resumes after displaying a question mark (?) again.
• Normally, CONT is used with the STOP instruction for debugging. When the program
execution stops, the intermediate results can be checked and modified in the direct mode.
The program execution can resume by the CONT or GOTO instruction.
• A “Can’t continue” error occurs if the CONT instruction is executed after the program is
modified.
For details on debugging, see Chapter 10.
• The CONT and STOP instructions are valid only in the edit mode.
• Contents of all variables and definitions will be cleared when
the program execution is re-started by the RUN instruction.
When the CONT instruction is used to restart a program that terminated by the END
instruction at the middle of the program, the execution starts from the instruction of the next
line number.
REMARK
See the END, RUN and STOP instructions, and Chapter 10.