Cont – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 133

Chapter
Commands
10
10 -3
Use the CONT command to resume execution of a program stopped by a
Ctrl
+
C
(page 10 -4), BRKPNT(page 10 -2), SNGLSTP (page
10 -20), or a STOP (page 11 -36). If you stop a program by pressing
Ctrl
+
C
on the console device or by executing a STOP statement,
you can resume execution of the program by typing
CONT
. Between
stopping and re-starting the program you may display the values of
variables or change the values of variables. However, you cannot continue
if you modify the program during the STOP or after an error.
Important:
Ctrl
+
C
clears all input and output buffers.
Syntax
CONT
Return
Example
>10 FOR I = 1 TO 10000
>20 PRINT I
>30 NEXT I
>40 END
READY
>RUN
1
2
3
4
5
6
7
8
9
10
Ctrl
+
C
STOP – IN LINE 30
READY
>CONT
20
21
22
Notice that after
Ctrl
+
C
is pressed and I is printed the value of
I is 20. The value of I is incremented several times before
Ctrl
+
C
is detected.
CONT