beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 223

background image

MVI56-BAS ♦ ControlLogix Platform

Reference

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 223 of 234

December 13, 2011

Later, the readable version can be downloaded from the host computer using

RY.EXE. Then use the LOAD command to copy the readable program back into

RAM. Refer to the following illustration and Creating BASIC programs (page 47)

for more information:

Use the NEW command to initialize the RAM memory. This command causes the

RAM program to be deleted, and clears all variables, strings, and interrupts.

Example:

>NEW

The program in RAM mode is actually saved in a file in the Compact flash called

"XRAM.BAS". It allows the MVI56-BAS module to run the program at RAM during

start up.
Important: Do not try to edit or delete "XRAM.BAS", "BATTERY.BAS", or
"EPROM.BAS". These files are created and edited by the MVI56-BAS.

Using ROM Storage
Optionally, the BASIC programs can also be stored in the ROM area. Using ROM

storage allows the user to assign each program to a specific numeric location in

the module. It can be easily accessed later using ROM and RROM commands.

The user may also set up the module to run the BASIC program located at ROM

storage location 1 during power up (PROG2 command). The ROM storage area

is located in the Compact Flash file. The total storage capacity is 32 Kbytes.
In order to place a BASIC program in ROM storage, there must be a program in

RAM.

Example:

>LOAD "LIST.TXT"

After the program is in RAM memory, the user can move it to ROM storage using
the

PROG

command. The

PROG

command moves the BASIC program currently in

RAM memory to the first available location in the ROM area.

Example:

>PROG

In order to select a program currently stored in the ROM area, the

ROM [program

location]

command is used. A simple

RUN

command will run the selected BASIC

program.