RPC-320 USER'S MANUAL REV 2Page i RPC-320Copyright 1997, 1999 - Remote Processing Corporation. All rights reserved. However, any part of this
SETUP AND OPERATION SECTION 2Page 2-3 RPC-320sending it char acters. The uploa d and dow nload filedoes not contain any special codes; they are sim
SETUP AND OPERATION SECTION 2Page 2-4 RPC-320WHERE TO GO FROM HEREIf you want to do this: Turn toChapterSave a program 3Run a program at power up or
SAVING PROGRAMS SECTION 3Page 3-1 RPC-320Figure 3-1 W3 autorun jumperINTRODUCTIONProgram s are stored in an EPROM in socket U6. Youcan store one o
SAVING PROGRAMS SECTION 3Page 3-2 RPC-320The time it takes save a program depends upon thelength and complexity of the program and flash EPROMtype.
SAVING PROGRAMS SECTION 3Page 3-3 RPC-32029C040 512K [1-3], [2-4]To change the EPRO M in U6, remove the IC andreplace it with the new one. When ins
SERIAL PORTS SECTION 4Page 4-1 RPC-320Figure 4-1 Serial port and jumper locationsDESCRIPTIONThe RPC -320 has two serial ports that interface to apri
SERIAL PORTS SECTION 4Page 4-2 RPC-320Figure 4-2 Network diagram400 LINEB 5,0,(LINEB(5,0) .AND. 251)500 LINEB 5,0,(LINEB(5,0) .OR. 4)Jumper W4 deter
SERIAL PORTS SECTION 4Page 4-3 RPC-320Figure 4-3 Data packetTwo wire RS-485The RS-485 port on the RPC-320 is set up for 4 wiremode. 2- wire mode ca
SERIAL PORTS SECTION 4Page 4-4 RPC-320You can access C OM0 and COM 1 buffers in three ways:1. INPUT statement. This removes all characters inthe bu
SERIAL PORTS SECTION 4Page 4-5 RPC-320 5 RXD In 6 CTS Out 9 Ground 10 +5*RTS input not in COM0.A serial cable is made by simply taking
TABLE OF CONTENTSPage ii RPC-320SECTION 1 OVERVIEWDESCRIPTION ... 1-1MANUAL ORGANIZATION ... 1-1MANUAL CONVENTIONS ...
RAM MEMORY SECTION 5Page 5-1 RPC-320Figure 5-1 RAM and W1 jumper locationINTRODUCTION32K, 128K, or 512K of RAM may be battery backed onthe RPC-320
RAM MEMORY SECTION 5Page 5-2 RPC-320Figure 5-2 RPBASIC-52 memory mapRESERVED MEMORYMany control systems use process variables that areoperator enter
RAM MEMORY SECTION 5Page 5-3 RPC-320510 GOSUB 2000 Retrieve variablesThis subroutine stores variables CF, JC, and AC into anarray starting in segmen
DIGITAL AND OPTO PORTS SECTION 6Page 6-1 RPC-320Figure 6-1 Digital I/OINTRODUCTIONDigital I/O lines ar e used to inter face with opto-moduleracks, sw
DIGITAL AND OPTO PORTS SECTION 6Page 6-2 RPC-320ground through a 10K/100K resistor packs using jumperW7. 10K is on digital port A only.Jumper W7 for
DIGITAL AND OPTO PORTS SECTION 6Page 6-3 RPC-320digital I/O lines 8 bits at a time. T he address for port Ais 0, B is 1, and C is 2. J3 I/O bank n
DIGITAL AND OPTO PORTS SECTION 6Page 6-4 RPC-320Figure 6-2 Inductive load protectionProtection diodes m ust be used with inductive loads. Refer to f
DIGITAL AND OPTO PORTS SECTION 6Page 6-5 RPC-320100 CONFIG LIN E 100,13, 1,1, 1200 D = LINE #(125) 210 F = LINE (1) 220 LINE 105, 1230 LINE #110,1
DIGITAL AND OPTO PORTS SECTION 6Page 6-6 RPC-320Figure 6-3 Digital I/O connector pin out (viewed from top)Table 6-1 Connector pin ou t - J3Pin # 82
DIGITAL AND OPTO PORTS SECTION 6Page 6-7 RPC-320COMMANDSThe following tables shows the RPBASIC-52 commandsused for digital I/O.Command FunctionCONFIG
TABLE OF CONTENTSPage iii RPC-320SECTION 11 WATCHDOG TIMERDESCRIPTION ... 11-1EXTERNAL RESET ... 11-1DESCRIPTION ...
CALENDAR/CLOCK SECTION 7Page 7-1 RPC-320DESCRIPTIONAn optional DS1216DM calendar/clock module may beinstalled in U5. The DS1216DM also battery backs
CALENDAR/CLOCK SECTION 7Page 7-2 RPC-320Figure 7-1 Calendar/Clock
DISPLAY PORT SECTION 8Page 8-1 RPC-320Figure 8-1 Display interfaceINTRODUCTIONRPBASIC-52 and the RPC-320 interface to a variety ofdisplays:VF (vacuu
DISPLAY PORT SECTION 8Page 8-2 RPC-320DISPLAY TYPESRPBASIC-52' s software driver is based upon thecharacteristics of the display family. Compat
KEYPAD PORT SECTION 9Page 9-1 RPC-320Figure 9-1 Keypad connectorINTRODUCTION16, 20, or 24 position keypads are plugged into keypadport J5. Keys ar
KEYPAD PORT SECTION 9Page 9-2 RPC-320The second example uses ON KEYPAD to generate aninterrupt every time a key is pressed.10 ON KEYPAD1000...500 GOT
ANALOG INPUT SECTION 10Page 10-1 RPC-320Figure 10-1 Analog I/ODESCRIPTIONThe RPC-320 has 8 single ended analog input channels. These channels are us
ANALOG INPUT SECTION 10Page 10-2 RPC-320following tables for differential inputs.When channel = odd Pol. - + - + - + - + CH # 0 1 2 3 4 5 6 7channel
ANALOG INPUT SECTION 10Page 10-3 RPC-320into an array which requires 6 bytes per entry. Thesecond example takes only two byes per entry, can saveto
ANALOG INPUT SECTION 10Page 10-4 RPC-320The output from the temperature sensor varies from unitto unit. Self heating effects as well as supply volta
SOFTWARE REVISION HISTORYPage iv RPC-320V1.04 Release for RPC320V1.05 BSAVE returned a hardware er ror when ver ifywas bad. In fact, save was OK.V1.
ANALOG INPUT SECTION 10Page 10-5 RPC-320The output voltage from the tem peratur e sensor isdoubled by jumpering H1[5-7]. While this does notchange t
ANALOG INPUT SECTION 10Page 10-6 RPC-320Figure 10-2 Amplifier circuitCONVERTING ANALOGMEASUREMENTSInputs are converted to "real numbers" b
ANALOG INPUT SECTION 10Page 10-7 RPC-320Voltage outputs from pins 6 and 10 are generated by theRS-232 chip U8. Both of these voltages go through a10
WATCHDOG TIMER SECTION 11Page 11-1 RPC-320DESCRIPTIONThe watchdog timer is used to reset the RPC-320 if theprogram or CPU "crashes". The
EXTERNAL INTERRUPT SECTION 12Page 12-1 RPC-320DESCRIPTIONThere are two sources of interrupts the ONITR statementresponds to: Inter nal and exter nal
EXTERNAL INTERRUPT SECTION 12Page 12-2 RPC-320Figure 12-1 Optically isolated and TTL interrup tsenable interrupts.
MULTI-MODE COUNTER SECTION 13Page 13-1 RPC-320DESCRIPTIONThe 24 bit multimode counter is capable of up/down,binary, divide-by-n, and quadrature input
MULTI-MODE COUNTER SECTION 13Page 13-2 RPC-320The following program example returns a frequency. Input signal is at "A IN".100 LINEB 6,
POWER MANAGEMENT SECTION 14Page 14-1 RPC-320DESCRIPTIONThere are three power management modes. Each modeaffects the way RPBASIC operates. The IDLE
POWER MANAGEMENT SECTION 14Page 14-2 RPC-320Currents are maximum and minimum as specified by themanufacturer. Min-max curr ent ranges "guarant
OVERVIEW SECTION 1Page 1-1 RPC-320DESCRIPTIONThe RP C-320 is an embedded contr oller with a built inBasic language. Several features make it suitabl
TECHNICAL INFORMATION SECTION 15Page 15-1 RPC-320ELECTRICAL SPECIFICATIONSCPU80C320, 22.1184 Mhz clockMemoryRPBASIC-52, 32K ROM, jumperable for 64K.T
TECHNICAL INFORMATION SECTION 15Page 15-2 RPC-320MEMORY AND I/O BANK MAPMemoryDescription AddressRPBASIC-52, U4 0000H - 7FFFHRAM, U5, 32K 00000H - 07
OVERVIEW SECTION 1Page 1-2 RPC-320Symbols and Term inologyNOTE: Text under this heading is helpful information. It is intended to act as a reminder
OVERVIEW SECTION 1Page 1-3 RPC-320Figure 1-1 System layout
SETUP AND OPERATION SECTION 2Page 2-1 RPC-320Figure 2-1 Connector location and functionINTRODUCTION The RPC -320 is ready to program as soon as youc
SETUP AND OPERATION SECTION 2Page 2-2 RPC-320FIRST TIME OPERATIONBecome familiar with the locations of connectors beforegetting started. See Figure
Comments to this Manuals