beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 182

background image

BASIC CALLs Syntax

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 182 of 234

ProSoft Technology, Inc.

December 13, 2011

CALL 70: ROM to RAM Program Transfer

Use CALL 70 to move the program execution from a running ROM program to

the beginning of the RAM program.

Syntax:

CALL 70

Example:

10 REM This program is stored in ROM 1
20 PRINT "Running ROM 1"
30 CALL 70
40 PRINT "Back in ROM 1"
50 END
10 REM This program is stored in RAM
20 PRINT "Running in RAM"
30 END
Ready
>rom 1
Ready
>run
Running ROM 1
Running in RAM
Ready
>