EasyManuals Logo
Home>Allen-Bradley>Control Unit>SLC 500 BASIC

Allen-Bradley SLC 500 BASIC User Manual

Allen-Bradley SLC 500 BASIC
84 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #58 background imageLoading...
Page #58 background image
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.
 ! "

Table of Contents

Other manuals for Allen-Bradley SLC 500 BASIC

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley SLC 500 BASIC and is the answer not in the manual?

Allen-Bradley SLC 500 BASIC Specifications

General IconGeneral
BrandAllen-Bradley
ModelSLC 500 BASIC
CategoryControl Unit
LanguageEnglish

Related product manuals