Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual
Page 69

BASIC PROGRAMMING GUIDE
2-60
STOP
Syntax:
STOP
Function:
Breaks program execution; resume with the CONT command.
Mode:
Run
Use:
STOP
DESCRIPTION
The STOP instruction lets you break program execution at specific locations in a program. You can display
and modify variables after STOPping a program. STOP is useful for program debugging. The CONT
command lets you resume program execution.
The line number printed after execution of a STOP instruction is the line number following the instruction
and not the line number containing the STOP instruction.
If you modify a STOPped program, CONT will be unable to continue execution.
RELATED
CONT, GOTO
ERROR
CAN'T CONTINUE Attempt to continue after editing a stopped program, or attempt to execute CONT
without a prior STOP or
EXAMPLE
100
PRINT "Tick=",TICK(0)
110
STOP
110
GOTO 100
>run
A= 0
STOP - IN LINE 120