Delete a basic program line, Renumber a basic program – Rockwell Automation 1746-BAS-T SLC 500 Basic Basic-T Modules User Manual
Page 61

Publication 1746-UM004B-EN-P - December 2005
Programming Overview 4-13
Delete a BASIC Program Line
When the 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; then press
[RETURN]
as shown on the following screen:
Renumber a BASIC Program
When the module is in Command mode, you can renumber the BASIC
program that resides in RAM. To renumber a BASIC program, you
must enter a REN command at the system prompt [
>
]. The table at the
top of the next page lists the commands, functions, and keystrokes
needed to renumber your BASIC program.
READY
>10
IMPORTANT
The REN command updates the destination of
GOSUB, GOTO, ON ERR, ONTIME, and ON GOTO
statements.
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. You should renumber your program
periodically during development instead of waiting
until it is completed.