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

Operating Functions
Chapter 5
5–13
Example:
uLIST
10 FOR I=1 TO 10
20 PRINT
I
30 NEXT I
40 END
READY
uCALL 8 :REM DISABLE INTERRUPTS
uPROG
12
uREADY CALL 9 :REM ENABLE INTERRUPTS
uROM 12
READY
uLIST 10 FOR I=1 TO 10
20 PRINT
I
30 NEXT
I
40 END
READY
u
In this
example, the program just placed in the EPROM is the 12th
program stored.
Important: If you exceed
the available PROM space, you cannot
continue
programming until it is erased. In some cases you can alter the
previously stored programs.
Be sure to use CALL 81 to determine
memory space prior to burning. See section
5.3.13.1 below.
5.3.13.1 User PROM Check
and Description – CALL 81
Use CALL 81
in command mode before burning a program into
PROM
memory. This CALL:
determines
the number of PROM programs.
determines
the number of bytes left in PROM.
determines
the number of bytes in the RAM program.
prints
a message telling if enough space is available in PROM for
the RAM program.
checks
for a valid PROM if it contains no program.
prints
a good or bad PROM message. A bad PROM message with
an address of 00xx
indicates an incomplete program.
No
PUSHes or POPs are needed.
5.3.13
Command: PROG
(continued)