Ram tip – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 145
![background image](/manuals/579953/145/background.png)
Chapter
Commands
10
10 -15
Use the RAM command to tell the BASIC module interpreter to select the
current program out of RAM. Use a LIST command (page 10 -9) to
display and a RUN command (page 10 -19) execute the current program.
The execution time for a program running in RAM is the same as a
program running from ROM. There is no performance improvement on a
BASIC program by moving it to RAM.
Important: RAM space is limited to 24K bytes. Use this formula to
calculate the available user RAM space:
Available user RAM = MTOP (see page 9 -18)-H
H = LEN + S + 6*A + 8*V + 512
Where:
LEN
system control value that contains current RAM program length
(see also page 9 -17)
S
number of bytes allocated for strings (first value in the STRING instruction)
A
sum of all (array sizes + 1)
V
sum of all variable names used (including each array name)
Syntax
RAM
Return
Example
READY
>RAM
RAM
Tip