Rom to ram program transfer – call 70, Rom/ ram to rom program transfer – call 71 – Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual

Page 125

Advertising
background image

Operating Functions

Chapter 5

5–88

This routine shifts program execution from a running ROM program to the
beginning of the RAM program. No arguments are PUSHed or POPed.

Important: The first line of the RAM program is not executed. We
recommend that you make it a remark.

Example:

ROM #5

u10 REM SAMPLE ROM PROG FOR CALL 70

u20 PRINT “NOW EXECUTING ROM #5”

u30 CALL 70 :REM GO EXECUTE RAM

u40 END

RAM

u10 REM SAMPLE RAM PROGRAM FOR CALL 70

u20 PRINT “NOW EXECUTING RAM”

u30 END
uRUN

NOW EXECUTING ROM #5
NOW EXECUTING RAM

This routine transfers from a running ROM or RAM program to the
beginning of any available ROM program. One argument is PUSHed
(which ROM program). None are POPed. An invalid program error
displays and you enter the command mode if the ROM number does not
exist.

Important: The first line of the ROM program is not executed. We
recommend that you make it a remark.

Example:

u10 REM THIS ROUTINE WILL CALL AND EXECUTE A ROM ROUTINE

u20 INPUT “ENTER ROM ROUTINE TO EXECUTE ”,N

u30 PUSH

N

u40 CALL

71

u50 END
uRUN

ENTER ROM ROUTINE TO EXECUTE 4

5.11.1
ROM to RAM Program
Transfer – CALL 70

5.11.2
ROM/RAM to ROM Program
Transfer – CALL 71

Advertising