Command: cont, Command: list – Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual

Page 44

Advertising
background image

Operating Functions

Chapter 5

5–7

Action

Taken: If you stop a program by typing a Control C on the

console

device or by execution of a STOP statement, you can resume

execution of the program by typing

CONT. If you enter a Control C

during the execution

of a CALL routine you cannot CONTinue.

Between

the stopping and the re-starting of the program you may

display the values of variables

or change the values of variables.

However, you cannot CONTinue if

the program is modified during

the STOP or after

an error.

Example:

u10 FOR I=1 TO 10000

u20 PRINT I

u30 PRINT I

u40 END

uRUN

1
2
3
4
5– (TYPE CONTROL

C ON CONSOLE)

STOP – IN LINE 20

READY

uPRINT I

6

uI=10
uCONT

10
11
12

Action

taken: The LIST command prints the program to the console

device. Spaces are inserted after the line number, and before

and after

statements.

This helps in the debugging of BASIC Module programs.

You can

terminate the “listing” of a program at anytime by typing a

Control

C on the console device. You can interrupt and continue the

listing using Control S and Control Q.

5.3.2
Command: CONT

5.3.3
Command: LIST

Advertising