ProSoft Technology MVI56-BAS User Manual
Page 183

MVI56-BAS ♦ ControlLogix Platform
BASIC CALLs Syntax
BASIC Module (DB/BAS Compatible)
User Manual
ProSoft Technology, Inc.
Page 183 of 234
December 13, 2011
CALL 71: ROM/RAM to ROM Program Transfer
Use CALL 71 to move the program execution from a running ROM or RAM
program to the beginning of a ROM program.
Syntax:
PUSH [ROM program number]
CALL 71
Example:
10 REM This program is stored in ROM 1
20 PRINT "ROM 1 Program!"
30 CALL 72
40 END
10 REM This program is stored in ROM 2
20 PRINT "ROM 2 Program!"
30 CALL 72
40 END
10 REM This program CALLs ROM 1 and ROM 2
20 PRINT "Running in RAM!"
30 PUSH 1: CALL 71: REM Call ROM 1
40 PUSH 2: CALL 71: REM Call ROM 2
50 PRINT "Back in RAM!"
60 END
Ready
>ram
Ready
>run
Running in RAM!
ROM 1 Program!
ROM 2 Program!
Back in RAM!
Ready
>