Setup and operation chapter 2, Editing programs and hints – Remote Processing RPC-2350 User Manual

Page 12

Advertising
background image

SETUP AND OPERATION

CHAPTER 2

2-6

Uploading programs is simply a process of receiving an
ASCII file. Y ou or your progr am simply needs to send
" L I S T" t o r e c ei ve th e en ti r e p r o gr a m .

Downloading a program requires transmitting an ASCII
file. CAMBASIC is an incremental line compiler. As
you type in (or download) a line, CAMBASIC com piles
that line. The tim e to comp ile a line depend s upon its
complexity and how many line of code have been
entered.

CAM BASIC must finish compiling a line before starting
the next one. When a line is compiled, a "> " character
is sent by the card. This should be your terminal
program s pacing character when downloading a
p r o gr a m .

If your communications program cannot look for a
pacing prompt, set it to delay transmission after each line
is sent. A 100 ms delay is usually adequate, but your
CAM BASIC progr am may be long and complex and
requir e mor e time. A resu lt of a short de lay time is
missing or gar bled progra m lines.

COM 1 on the RPC-2350 does not recognize the CT S or
R T S li ne s . T he C T S l in e is p ul le d hi gh o n t he R P C -
2350. The effect of not recognizing these lines is your
PC or terminal cannot hold off the RPC-2350' s
transmission. C onverse, the RP C-2350 cannot hold off
the host from sending it data.

D E V EL O P IN G P RO G R A M S I N W IN D O W S

Programs can be completely written and downloaded
using programs norm ally available in Microsoft
Windows. The two program s you need are a terminal
program (HyperTer m or Ter minal) and an editing
progr am (N otepad, Wor dpad, Wor d, e tc.). Both
program s can be open at the same time, ma king editing
and changing just that much easier. Just switch between
the two programs (using < Alt> -< Tab> or clicking
the task bar).

Versions of Word will not let the terminal program open
the file you are wor king on. Y ou actually have to close
the file in Wo rd befor e you can do wnload it.

The following setup files are on the 2350 applications
disk. Use these to quickly set up yo ur ter minal.

CAMBASIC.TRM

Windows terminal

C A M B A SI C . H T

Hyper terminal


You may have to change the CO M port to match your
system. T hese set up files put the terminal in the
following configuration:

Baud:

19200

Parity:

none

Data:

8 bits

Stop:

1 bit

Flow:

None

L i ne d el ay : 0.01 sec

D o N O T us e F IF O b u ff e r s i n H y p er T e r m .

Editing, downloading, and pasting are easy using
Notepa d or W ordpad . T hese pro gram s allow you to e dit
a p r og r a m , sa v e i t, t h en d ow n lo a d i t u s in g H yp e r Te r m .
Download code using text transfers.

To change a portion of code, you can m ake the change
then copy the new line. In HyperTerm , select Edit, then
Paste to Host and the new line will be sent. Terminal
does not have this feature. If you are writing code
without line num bers, be sure to p ut the line num ber in
first. In all cases, you will have to hit < Enter > to
finish the line.

When you save a program , be sure to save it as a text
file. Wordpad tends to be a little more annoying than
Notepa d because it alw ays asks you w hat kind of file to
save it as. Notepad does not. These program s may
append a .txt extension to the file name. This is OK.

When using the line edit feature in CAMBASIC you may
see some extra characters and num bers on the display.
Try to ignore them as best you can.

EDITING PROGRAMS AND HINTS

Files uploaded or downloaded are simply ASCII DOS
text files. No special characters or control codes are
used. You m ay create and edit programs using your
favorite word processor or editor. Just be sure to save
files in DO S text form at.

There are tw o ways you can write CA MBASIC
progr ams: With or without line num bers. Even this is
not hard and fast as you can write using a mixture.

Advertising