Delete a program line, Renumber a program – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 89
Chapter
Editing and Debugging a BASIC Program
6
6 -3
When the BASIC module is in Command mode, you can delete an existing
line of the BASIC program. To delete an existing line of the BASIC
program, type the line number of the line to delete and press
Return
.
When the BASIC module is in Command mode, you can renumber the
BASIC program that resides in RAM. To renumber a BASIC program,
enter a REN command (see page10 -16) at the system prompt
>
.
This command variation:
Renumbers the program:
REN
Return
from the beginning of the program. New line
numbers begin at 10 and increment by 10.
REN
NUM
Return
from the beginning of the program. New line
numbers begin at 10 and increment by NUM.
REN
NUM1
,
NUM2
Return
from the beginning of the program. New line
numbers begin with NUM1 and increment by NUM2.
REN
NUM1
,
NUM2
,
NUM3
Return
starting at NUM2. New line numbers begin with
NUM1 and increment by NUM3.
Important:
REN command updates the destination of GOSUB, GOTO, ONERR,
ONTIME and ON GOTO statements (Chapter 11).
If the target line number does not exist, or if there is insufficient
memory to complete the task, no lines are changed and the message
RENUMBER ERROR
appears on the console screen.
Because the REN command uses the same RAM for renumbering as it
does for variable and program storage, available RAM may be
insufficient in large programs. Renumber your program periodically
and in segments during development.
Delete a Program Line
Renumber a Program
Chapter