Prog, Prog -15, Purpose – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 55: Syntax, Example

Advertising
background image

Publication 1746-RM001A-US-P

BASIC Commands 4-15

PROG

Purpose

Use the PROG command to program the resident EEPROM with the current
program in RAM. The module cannot program UVPROMs.

After you type

PROG

, the module displays the number in the EEPROM FILE the

program occupies. Programming takes only a few seconds.

Syntax

PROG

Example

>LIST

1

REM EXAMPLE PROGRAM

10 FOR I=1 TO 10

20 PRINT I

30 NEXT I

40 END

READY

>PROG

ROM 12

Programming sequence successful.

READY

>ROM 12

>LIST

1

REM EXAMPLE PROGRAM

10 FOR I=1 TO 10

20 PRINT I

30 NEXT I

40 END

READY

>

The program just placed in the EEPROM is the 12th program stored.

IMPORTANT

Before you attempt to program EEPROM, read the PROG,
PROG1 and PROG2 sections of this chapter.

IMPORTANT

Be sure you have selected the program you want to save before
using the PROG command. Your module does not
automatically copy the RAM program to EEPROM. If an error
occurs during EEPROM programming, the message

ERROR:

Programming sequence failure

is displayed.

Advertising