Chapter 3 saving programs – Remote Processing RPC-2300 User Manual

Page 11

Advertising
background image

CHAPTER 3

SAVING PROGRAMS

RPC-2300

Page 9

T o a ut or u n a p r o gr a m :

1.

Make sure there is a program in EP ROM (from
above).

2.

Make sure the a utorun jum per W 1 [9-10] is
installed.

If you push the reset button , the progr am shou ld
autoexecu te. If th ere ar e any er rors , the progr am w ill
stop (assuming you have not trapped them with ON
ERROR) and display the error message.

PREVENTING AUTORUN

When troubleshooting a program , it' s not always
convenient fo r an autoe xecute file to r un. This is
especially tr ue if the pro gram has been co nfigured to
ignore the < ESC> key. To pr event autorun, re move
jumper W1[9-10].

L a te r , i f y o u w i sh to S AV E o r L OA D a pr o g ra m ,
reinstall this jumper. You may do so even if the power
is on and a program is running. Remember to discharge
any static electricity before installing or removing the
jumper.

LOADING AN EPROM PROGRAM

Ther e are tim es when y ou may w ish to tempor arily
m o d if y or o th e r wi se te s t o u t a c ha n ge to a pr o g ra m .
Since the program is loaded into RAM, modifications
can be made without affecting the program in EPROM.
If you find out tha t modification s are not de sirable or did
not work, you can restore the original program to RAM
using the LOAD com mand.

SAVING DATA TO EPROM

Additional data, such as strings and constants, can be
saved to the EPROM in U3. An external EPROM
progr amm er is used to sa ve data to the E PRO M. Data
cannot be saved to U3 through CAM BASIC II.

Data is saved at the top of the EPROM m emory. The
upper 2K bytes are always available as RAM memory
size absolutely limits the program to 30K.

If you need more than 2K bytes of data, you can save
data "on top" of the CA MBASIC II program in U 3. A
good way to determ ine how m uch mem ory is ava ilable is
to perform a P RINT SY S(0) in the immediate mode
(program not r unning). Subtracting 31900 from the
numbe r of bytes r eturned will tell you the app roxim ate
number of bytes available for data.

The best way to make sure your data will not write over
the progra m is to perfor m the following steps:

First, put a remark statement that you can recognize.
One suggestion is "End of the program ". Next, save
your program to the EPROM using the CAMBASIC II
SAVE com mand.

Remove the EPROM and read it from your EPROM
program mer. Using your program mer, go into the mode
where you can examine data. Look for the remark
statement at the end of the program. Instruct the
programmer to put your data starting at the next even
page boundary (for example 5000H , 5100H , and so on).

COMMANDS

The following is a list of CAM BASIC II commands used
for saving and loading pr ogram s.

Comm and

Function

LOAD

Tra nsferr s progr am fr om U 3 to
RAM for editing or running.

SAVE

Saves a pr ogram from RAM to
U3 for autorun.

Advertising