Call 71: rom/ram to rom program transfer – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 261

Advertising
background image

Chapter
Call Routines 69–127

13

13 -3

Use this routine to transfer from a running ROM or RAM program to the
beginning of any available ROM program.

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

Important: There must be a next line in the ROM or RAM routine,
otherwise unpredictable events could occur that may destroy the contents
of RAM. For this reason always be sure that at least one END statement
exists following a CALL 70 or 71.

Input and Output Arguments

This routine has one input argument and no output arguments. The input is
the ROM to which you want to transfer. If the ROM number does not exist
an invalid program error displays and you enter the Command mode.

Syntax

PUSH

beginning of ROM program

CALL 71

Example

>10 REM THIS ROUTINE CALLS AND EXECUTES A ROM ROUTINE

>20 INPUT “ENTER ROM ROUTINE TO EXECUTE”,N

>30 PUSH N

>40 CALL 71

>50 END

>RUN

ENTER ROM ROUTINE TO EXECUTE 4

The user is now executing ROM 4 if it exists. If the ROM routine
requested does not exist the result is:

PROGRAM NOT FOUND.

READY

>

CALL 71: ROM/RAM to ROM
Program Transfer

Advertising