Remote Technologies RPC-320 First Time Operation, Uploading and Downloading Programs, Using a PC

Page 9

SETUP AND OPERATION

FIRST TIME OPERATION

Become familiar with the locations of connectors before getting started. See Figure 2-1.

RPC -320 jump ers have been set at the fa ctory to op erate the system immediately. F or first time operation, do not install any connectors or parts unless specified below.

Jumpers sho uld be kept in default positions.

1.Connect power .

The RPC-320 needs + 5 ±0.25 volts at 100 ma. Any w ell regulate d supply that supp lies this will work. Be careful when using "switching" power supplies. Some of the se supplies do no t regulate properly unless they are adequately loaded. Don' t forget tha t power requir ements inc rease w hen opto modules a re used. G4 opto m odules re quire up to 20 ma each.

Make sure pow er is off. Connec t the power supply to one of the appropriately marked terminals on the RPC-320. There two power connectors: P2 and P 6. Either one may be used to connect power .

2.Hook up to a PC or ter minal.

You can use either a PC o r CR T term inal to program the RPC-320. Connect one end of the VTC -9F connector to the 10 pin COM 0 port on the RPC-320. Refer to Figure 2-1 for connector location.

Using a PC

Connect the VTC-9F serial cable to the PC's COM1 or COM 2 port. Y ou may need a 9 pin male to 25 pin fema le adapter . T he VT C-9F is designed to plug directly into the 9 pin serial port connector on a PC .

Start up your serial communication program. Set comm unication par ameter s to 9600 baud , 8 da ta bits, no parity, 1 stop.

Using a Terminal

Follow your term inal instructions to set the baud rate to 9600 baud, 8 data bits, no parity, and 1 stop. You may need a 9 pin male to 25 pin male adapter to connect the VTC - 9F .

3.Power up.

SECTION 2

Turn on your pow er supply. On pow er up a

copyright message is printed.

RPBASIC-52 V1.09

RPC-320

Copyright Remote Processing (1994)

Bytes free: 63740

65,536 bytes of additional expanded memory detected

512K byte EPROM installed

If a nonsense message appears, your terminal or PC may not be set to the appropriate communication parameters. If the system still does not respond, refer to TROUBLESHOOTING later in this chapter .

The sign on message may differ based on the RAM and flash EPROM installed.

4.Testing.

The system is now in the " imme diate mod e" and is ready for you to start program ming. T ype the following program:

10 FOR X=0 TO 2

20 PRINT "Hello ",

30 NEXT

40 PRINT

Now type RUN. The system will display:

Hello Hello Hello

READY

>

Terminate a program by typing a < Ctrl> - C .

UPLOADING AND DOWNLOADING

PROGRAMS

Downloading program s means transferring them fr om your PC (or terminal) to the RPC-320. Uploading means transferring them from the RPC -320 back to the PC. This section explains how to do both of these procedures using generalized instructions for terminal programs (Procomm , Windows Ter minal, etc.)

When uploading or downloading files, select ASCII text format . XMODEM, YMODEM, or other formats are not used.

RPBASIC-52 does not know w hen you are typing in a progr am or if something else (laptop or mainfr ame) is

Page 2-2 RPC-320

Image 9
Contents REV TrademarksRevision Table of Contents External Reset Sect ION 11 Watchdog Timer DescriptionInterrupt Characteristics Sect ION 13 Multi Mode Counter DescriptionSoftware Revision History Section OverviewDescription Manual OrganizationTechnical Support Symbols and Term inologySystem layout Overview SectionOperating Precautions IntroductionEquipment Using a Terminal Using a PCFirst Time Operation Uploading and Downloading ProgramsEditing programs and program ming hints Troubleshooting Where to GO from HereSaving a Program Saving ProgramsEprom W3 autorun jumperPreventing Autorun AutorunningLoading a Program Changing Eprom SizeAlternate Eproms CommandsBload BsaveSerial Ports COM0 Serial PortCOM1 Serial Port Serial Ports Section RS-422/485 Operating InformationRS-422/485 Termination network Accessing Serial Buffers Two wire RS-485Multidrop Network Accessing COM0 and COM1 Disabling CONTROL-CSerial Port PIN OUT RXD CTS Checking the battery Battery BackupRAM Memory Changing MemoryStoring Variables in RAM Reserved MemoryBlock Data Transfer Assembly Language InterfaceDigital and Opto Ports Digital I/O PortsDigital Por t J3 Digital Port P6 Digital I/O CommandsHigh Current Port L8 Optically Isolated InputHigh Current Output Interfacing to switches and other devices Interfacing Digital I/O to an opto-module rackDigital I/ O prog ramm ing exam ple Ls e Width Modulation PWM Conne ctor pin ou t J3 Digital and Opto Ports SectionCount Config LineLine Line BSetting Date and Time DateM E Section Connecting Displays Writing to the DisplayProgramming Example Display Types Display Connector PIN OUTProgram explanation Keypad PortKeypad Port PIN OUT J5 Analog Input Connecting Analog InputsInitialization Overvoltage conditionsDifferential Mode Examples u sing CON FIG AINAcquiring Analog Data Noise Notes Temperature MeasurementAnalog Input Section Measuring Higher Voltages Data logging on a timer tickConverting Analog Measurements AmplifiersMeasuring 4-20 mA current loops Calibration External Reset Watchdog TimerInterrupt Characteristics Optically Isolated InterruptProgram Example Optically isolated and TTL interrup ts GND ProgrammingLoad GateCOU NT0 Further Power Reduction Power ManagementProgram Examp le Power Management SectionTechnical Information Electrical SpecificationsMemory and I/O Bank MAP Mechanical SpecificationsJumper Descriptions Bank