Prog – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 141

Advertising
background image

Chapter
Commands

10

10 -11

Important: Before you attempt to program an EEPROM, read the PROG,
PROG1, PROG2, and MODE sections of this chapter. See also CALL 78
(page 13 -8)

Use the PROG command to program the resident EEPROM with the
current program in RAM. BASIC module cannot program EPROMs;
however, it can read them. After you type

PROG

, the BASIC module

displays the number the program occupies in the EEPROM FILE.
Programming only takes a few seconds.

Important: Be sure you have selected the program you want to save
before using the PROG command. Your BASIC 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.

Important: If you exceed the available EEPROM space, you cannot
continue programming until it is erased. Use the ERASE command (page
10 -8) to erase the last program stored in EEPROM. Be sure to use
CALL 81 (page 13 -10) or CALL 82 (page 13 -11) to determine memory
space prior to programming EEPROM.

Syntax

PROG

Return

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 WAS SUCCESSFUL

READY

>ROM 12

>LIST

1 REM EXAMPLE PROGRAM

10 FOR I=1 TO 10

20 PRINT I

30 NEXT I

40 END

READY

Result: The program placed in the EEPROM is the 12th program stored.

PROG

Advertising