
Publication 1746-UM004A-US-P
4-12
Programming Overview
Renumbering 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 [
>
]. Table 4.8 lists the commands, functions, and
keystrokes needed to renumber your BASIC program.
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
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.
Command
Renumbers the Program Starting at
Key Strokes
Renumber
the beginning of the program. The new line
numbers begin at 10 and increment by 10.
the beginning of the program. The new line
numbers begin at 10 and increment by
NUM.
the beginning of the program. The new line
numbers begin with NUM1 and increment
by NUM2.
!
NUM2. The new line numbers begin with
NUM1 and increment by NUM3.
! "
Summary of Contents for 1746-BAS
Page 4: ...Publication 1746 UM004A US P Summary of Changes ii...
Page 8: ...Publication 1746 UM004A US P Table of Contents iv...
Page 26: ...Publication 1746 UM004A US P 1 14 Module and Development Software Overview...
Page 34: ...Publication 1764 UM001A US P 2 8 Component Selection...
Page 70: ...Publication 176 UM04A US P A 4 Specifications...
Page 83: ...Spare Allen Bradley Parts...