Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual

Page 151

Advertising
background image

Editing A Procedure

Chapter 8

8–3

REN[NUM1],[NUM2] — begins at the start of the program and
continues through the end of the program. The new line numbers begin
with NUM1 and increment by NUM2.

REN[NUM1],[NUM2],[NUM3] — begins at NUM2 and continues
through the end of the program. The new line numbers begin with
NUM1 and increment by NUM3.

Important: The renumber command updates the destination of GOSUB,
GOTO, ON ERR, ON TIME 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.

Important: Because the renumber command uses the same RAM for
renumbering as it does for variable and program storage, available RAM
may be insufficient in large programs. We recommend that you renumber
your program periodically during development. Do not wait until it is
completed.

8.3.7
Renumber (continued)

Advertising