Ren -20 rom -20, Syntax, Example – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 60: Purpose, Examples

Advertising
background image

Publication 1746-RM001A-US-P

4-20 BASIC Commands

Syntax

REM

Example

>10 REM THIS IS A COMMENT LINE

>20 NEW : REM THIS IS ALSO A COMMENT LINE

REN

Purpose

Use the REN command to renumber program lines.

Syntax

REN[new number],[old number],[increment]

Examples

ROM

Purpose

Use the ROM command to tell the module interpreter to select the current
program out of EEPROM or UVPROM. The current program is displayed during
a LIST command and executed when

RUN

is typed.

Example

Result

REN

Renumbers the entire program. The first new line number is 10. Line
numbers increment by 10.

REN 20

Renumbers the entire program. The first new line number is 10. Line
numbers increment by 20.

REN 300,50

Renumbers the entire program. The first new line number is 300. Line
numbers increment by 50.

REN 1000,900,20

Renumbers the program from line 900 on up. Line number 900
becomes line number 1000. Any following line numbers increment by
20.

IMPORTANT

Your module can execute and store up to 255 programs in
EEPROM depending on the size of the programs and the
capacity of the EEPROM. The programs are stored in a sequence
string, referred to as the EEPROM file, in EEPROM for retrieval
and execution.

Advertising