ProSoft Technology MVI56-BAS User Manual
Page 184

BASIC CALLs Syntax
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 184 of 234
ProSoft Technology, Inc.
December 13, 2011
CALL 72: ROM/RAM Return
Use CALL 72 to return to the ROM or RAM program that called the running
program. CALL 72 should be used after CALL 70 or 71 in order to return to the
calling program.
Syntax:
CALL 72
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
>