Stop – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 188
Advertising
![background image](/manuals/579953/188/background.png)
Chapter
Statements
11
11 -36
Use the STOP statement to break program execution at specific points in a
program. After a program is stopped you can display or modify variables.
You can resume program execution with a CONT command (page 10 -3).
The STOP statement allows for easy program debugging.
Note that the line number printed out after execution of the STOP
statement is the line number following the STOP statement, not the line
number that contains the STOP statement.
Syntax
STOP
Example
>1 REM EXAMPLE PROGRAM
>10 FOR I = 1 TO 100
>20 PRINT I
>30 STOP
>40 NEXT I
READY
>RUN
1
STOP – IN LINE 40
READY
>CONT
2
STOP – IN LINE 40
READY
>CONT
3
STOP – IN LINE 40
READY
>CONT
4
STOP – IN LINE 40
READY
>
STOP
Advertising