Table of Contents

Advertisement

Quick Links

Copyright 1997, 1999 - Remote Processing C orporation.
All rights reserved. However, any part of this document
may be reproduc ed with Remote Proce ssing cited as the
source.
The con tents of this ma nual and the sp ecifications her ein
may change without notice.
TRADEMARKS
RPBASIC-52™
is a trademark of Remote P rocessing
Corpor ation.
PC SmartLINK®
is a trademark of Octagon Systems
Corpor ation.
BASIC-52© is a trademark of Intel Corpor ation.
Remote Processing Corporation
79 75 E. Harvard Ave.
Denver, Co 802 31 USA
T el: (3 0 3 ) 6 9 0 - 1 5 8 8
Fa x: (3 0 3 ) 6 9 0 - 1 8 7 5
w w w .rp3 .com
RPC-320 USER'S MANUAL
Page i RPC -320
NOTICE TO USER
The information contained in this manual is believed
correct. However, Remote Pr ocessing assumes no
responsibility for any of the circuits described herein,
conveys no license under any patent or other right, and
make no repre sentations that the circuits are free from
patent infringement. Rem ote Processing makes no
representation or warr anty that such applications will be
suitable for the use specified without further testing or
modification. The user must make the final
determination as to fitness for a particular use.
Remote Pr ocessing Corporation' s general policy does not
recommend the use of its products in life support
applications where the failure or malfunction of a
component m ay directly threaten life or injury. It is a
Condition of Sale that the user of Remote Processing
products in life support applications assum es all the risk
of such use and indemn ifies Remote Pr ocessing against
all damages.
P/N 1366
Revision: 2.8
REV 2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RPC-320 and is the answer not in the manual?

Questions and answers

Summary of Contents for Remote Processing Coorporation RPC-320

  • Page 1 RPC-320 USER'S MANUAL REV 2 NOTICE TO USER Copyright 1997, 1999 - Remote Processing C orporation. All rights reserved. However, any part of this document The information contained in this manual is believed may be reproduc ed with Remote Proce ssing cited as the correct.
  • Page 2: Table Of Contents

    COMMANDS ....10-5 COMMANDS ....Page ii RPC-320...
  • Page 3 ELECTRICAL SPECIFICATIONS ..15-1 MEMORY AND I/O BANK MAP ..15-2 MECHANICAL SPECIFICATIONS ..15-2 JUMPER DESCRIPTIONS ... 15-2 Page iii RPC-320...
  • Page 4 SOFTWARE REVISION HISTORY V1.04 Release for RPC 320 V1.05 BSAVE retur ned a hardware er ror when ver ify was bad. In fact, save was OK. V1.06 LCD graphics hardware CS and reset are reversed. C ompensated in software. V1.07 MTO P was useless in any system, especially a 3 2K RA M .
  • Page 5: Section 1 Overview

    On card flash EPROM programm er can save up to 8 Interface the RPC-320 to your IBM compatible PC progr ams to 62K , or about 500K tota l. or ter minal.
  • Page 6: Symbols And Term Inology

    SECTION 1 TECHNICAL SUPPORT Symbols and Term inology If you have a question about the RPC-320 or RPBASIC- NOTE: Text under this heading is helpful information. 52 and can' t find it in this manual, call us and ask for It is intended to act as a reminder of some technical supp ort.
  • Page 7 OVERVIEW SECTION 1 Figure 1-1 System layout Page 1-3 RPC -320...
  • Page 8: Section 2 Setup And Operation

    EQUIPMENT you what chapters to refer to in order to use the various capabilities of the RPC-320. Finally, a troubleshooting section helps out on the most com mon pro blems. You will need the following equipment to begin using the...
  • Page 9: First Time Operation

    If a nonsense message appears, your terminal or PC may not be set to the appropriate communication The RPC-320 needs + 5 ±0.25 volts at 100 ma. parameters. If the system still does not respond, Any w ell regulate d supply that supp lies this will refer to TROUBLESHOOTING later in this chapter.
  • Page 10: Editing Programs And Program Ming Hints

    . L ine 2200, with its comment, is a part of the program and could be listed. The m ajor pena lty by wr iting a progr am this w ay is Page 2-3 RPC-320...
  • Page 11: Where To Go From Here

    -6 volts or more negative. (Pin 1 is designated by the symbol on the connecto r. Pin 3 is next to it, nearer the key opening.) If you have -6 volts or more, press the reset switch. If you have a scope Page 2-4 RPC-320...
  • Page 12: Introduction

    SAVING PROGRAMS SECTION 3 INTRODUCTION A flash EPROM is non-volatile (retaining data even when power is disconnected), having an unlimited numbe r of re ad cycles an d a limited nu mber of write Program s are stored in an EPRO M in socket U6. You cycles (about 1,000).
  • Page 13: Autorunning

    SAVING PROGRAMS SECTION 3 AUTORUNNING The time it takes save a program depends upon the length and complexity of the program and flash EPROM type. Pr ogramm ing rate is roughly 600 bytes/second. If To autorun a program: the program is not successfully saved to EPROM, an error message will appear.
  • Page 14: Alternate Eproms

    SAVING PROGRAMS SECTION 3 29C040 512K [1-3], [2-4] COMMANDS To change the EPRO M in U6, remove the IC and The following is a list of RPBASIC-52 commands used replace it with the new one. Whe n installing a 29C256, for saving, loading, and executing programs and data.
  • Page 15: Description

    SERIAL PORTS SECTION 4 DESCRIPTION COM0 SERIAL PORT The RPC -320 has two serial ports that interface to a This port uses a VTC-9F serial cable to connect external serial dev ices to the por t. T he cable con sists of a 10 pin printer, terminal, RS-485 network, or other serial IDC connector wired one-to-one to a DB-9 connector.
  • Page 16: Rs-422/485 Operating Information

    500 LINEB 5,0,(LINEB(5,0) .OR. 4) RS-422/485 Termination network Jumper W 4 determines if COM 1 receive is RS-232 or When the RPC-320 is the last physical unit on a network RS-422/485. (RS-485), or it is the only unit (RS-422), the receiver must be terminated to prevent ringing.
  • Page 17: Two Wire

    SERIAL PORTS SECTION 4 Two wire RS-485 The RS-485 port on the RPC-320 is set up for 4 wire mode. 2- wire mode causes transmitted data to be received. T o use the RPC-320 is this mode, your code should "flush" the received data or otherwise r emove transmitted information.
  • Page 18: Accessing Com0 And Com1

    SERIAL PORTS SECTION 4 DISABLING CONTROL-C You can access C OM0 and COM 1 buffers in three w ays: Program execution is terminated by entering a INP UT sta tement. This re moves a ll charac ters in < Cntl> < C> . To disable < Cntl> < C> so program the buffer up to the term inator cha racter and puts execution is not terminated, execute the following them into a variable.
  • Page 19 SERIAL PORTS SECTION 4 Ground *RTS input not in COM0. A seria l cable is ma de by simp ly taking a 10 pin fe male IDC connector and crim ping a 9 wir e ribbon c able to it. Page 4-5 RPC -320...
  • Page 20: Introduction

    Turn off power to the RPC-320. 32K, 128K, or 512K of RAM may be battery backed on the RPC-320. RA M size can be changed at any time. Remove the mem ory chip from U 5. RAM is in socket U5.
  • Page 21: Reserved Memory

    RAM MEMORY SECTION 5 RESERVED MEMORY Many control systems use process variables that are operator entered. "variables" in this context include numbers, strings, ar rays, recipes, or formulas as applied to your application. They are not a part of the variables used by Basic.
  • Page 22: Block Data Transfer

    RAM MEMORY SECTION 5 510 GOSUB 2000 Retrieve variables This subroutine stores variables CF, JC, and AC into an ASSEMBLY LANGUAGE INTERFACE array starting in segment 1, address 0. 1000 POK EB1, 30*NO, JC Assembly language program s must be placed in the 1010 POKEW1,30*NO+ 1,AC RPBASIC-52 E PROM .
  • Page 23: Digital And Opto Ports Introduction

    LED's, and other TTL Several softwar e comm ands support the digital I/O ports. devices. The RPC-320 has 34 o f these lines. 8 T TL I/O ON L INE br anches to a subroutine w hen a line changes.
  • Page 24: Digital Port P6

    DIGITAL AND OPTO PORTS SECTION 6 to the touch. Consider the maxim um ambient ground through a 10K/100K resistor packs using jumper temper ature the b oard w ill operate a t. A t 70°C, warm to W7. 10K is on digital port A only. the touch at room temperature m ay be too much.
  • Page 25: High Current Output

    DIGITAL AND OPTO PORTS SECTION 6 ON C OUN T and O N LIN E do not ne cessarily h ave to digital I/O lines 8 bits at a time . T he addr ess for po rt A be input lines. They can be outputs controlled by is 0, B is 1, and C is 2.
  • Page 26: Interfacing Digital I/O To An Opto-Module Rack

    The M PS-X X serie s opto rac ks also pro vide a way to access digital I/O lines. A CM A-26-24 connects J3 on the RPC-320 to the MP S- XX bo ard. Cable len gth should be less than 2 feet.
  • Page 27: Pulse W Idth Mo Dula Tion (Pwm )

    DIGITAL AND OPTO PORTS SECTION 6 100 CON FIG LIN E 100,13, 1,1, 1 200 D = LINE #(125) 210 F = LINE (1) 220 LINE 105, 1 230 LINE #110,1 :REM Turn on LED 240 LINE #110,0 :REM Turn off LED Line 100 configured the 82C55 so ports A and C are inputs while B is the o utput.
  • Page 28 DIGITAL AND OPTO PORTS SECTION 6 Table 6-1 Conne ctor pin ou t - J3 Pin # 82C55 Description Opto Channel Port A, line 0 Port A, line 1 Port A, line 2 Port A, line 3 Port A, line 4 Port A, line 5 Port A, line 6 Port A, line 7...
  • Page 29: Commands

    DIGITAL AND OPTO PORTS SECTION 6 COMMANDS The following tables shows the RPBASIC-52 comm ands used for digital I/O. Comm and Function CONFIG LINE Configu res I/ O por ts COUNT Returns number of pulses at a line. LINE Function retur ns status of an opto module as a 0 or 1.
  • Page 30: Calendar/Clock Description

    Date and time are treated as number s and not strings. To set the date and time: DATE 95,11,28 TIME 13,23,43 The time is set to 1:23:43 PM. Page 7-1 RPC-320...
  • Page 31 CALENDAR/CLOCK SECTION 7 Figure 7-1 Calendar/Clock Page 7-2 RPC-320...
  • Page 32: Display Port

    V F and L CD displays. A custom cable connects the RPC-320 to the display. Displays purchased from Remote Processing include a cable. You simply connect the 20 pin connector to the RPC-320 L CD display port and the other end into the display. Page 8-1 RPC-320...
  • Page 33: Display Types

    17 key or larger keypad is used. Use the L INE B comm and to acces s this part. I/O bank is 4. Pins 18, 19, and 20 are for the LCD -5003 and other graphic displays. Page 8-2 RPC-320...
  • Page 34: Keypad Port Introduction

    KEYPAD PORT SECTION 9 INTRODUCTION 10 STRING 200,20 16, 20, or 24 position keypads are plugged into keypad 20 $(0) = "123A456B789C*0#D" 30 P = 1 port J5. Keys are arra nged in a m atrix for mat. A key is 40 PF = 0 recogn ized whe n a row and a colum n connect.
  • Page 35: Keypad Port Pin Out - J5

    KEYPAD PORT SECTION 9 The second example uses ON KEYPAD to generate an KEYPAD PORT PIN OUT - J5 interrupt every time a key is pressed. The keypad port uses ports B and C from an 82C55. 10 ON KEYPAD1000 Lowe r por t C is configu red as an input.
  • Page 36: Sect Ion 10 Analog Input

    ANALOG INPUT SECTION 10 usually affects readings on other channels. DESCRIPTION Grounding The RP C-320 has 8 single ended analog input channels. Analog ground is somewhat isolated from digital ground. These channels are used to measure voltages from While the ground plane is connected between the two, transducers, 4-20ma current loops, thermistors, etc.
  • Page 37: Differential Mode

    ANALOG INPUT SECTION 10 Per form a conver sion as nor mal: following tables for differ ential inputs. A = AIN(0) When channel = odd The difference between channel 0 and 1 is returned. Pol. When channel 1 is more positive than channel 0, the CH # result is zero.
  • Page 38: Noise Notes

    20 FOR X=0 TO 254 bell shaped curve. Exper iments on the RPC-320 have 30 A(X) = AIN(0) shown that 99% of the readings are w ithin the ±3 count 40 NEXT reading and 60% are ±1 count.
  • Page 39 ANALOG INPUT SECTION 10 The outpu t from the tempe ratur e sensor v aries fr om unit to unit. Self heating effects as well as supply voltage will change the output. Page 10-4 RPC -320...
  • Page 40: Data Logging On A Timer Tick

    ANALOG INPUT SECTION 10 The outpu t voltage fro m the tem peratur e sensor is doubled by jumpering H1[5-7]. While this does not change the range the unit operates at, it does change increase temperature m easurement sensitivity. Data logging on a timer tick Some applications require that data is read at fixed intervals.
  • Page 41: Converting Analog Measurements

    ANALOG INPUT SECTION 10 K = 200/3276 CONVERTING ANALOG K = .06105 MEASUREMENTS Inputs are converted to "real numbe rs" by perfor ming There is one addition factor. Since the lowest value read scaling calculations in the program. The AIN function is 1 V, this offset is subtracted from all readings.
  • Page 42: Calibration

    ANALOG INPUT SECTION 10 Voltage outputs from pins 6 and 10 are generated by the RS-232 chip U8. Both of these voltages go through a 100 ohm resistor to H1-10 and H1-6. Pin 10 goes to 0 volts when operating the board in IDLE m odes 1 or 2. Pin 6 goes to about + 5 volts.
  • Page 43: Description

    The card is reset externally by mom entarily shorting W10[1- 2]. R eset is also achiev ed by shor ting W10-2 to ground. Maintain this short for at least 10 ms. The card will then reset for abo ut 350 ms. Page 11-1 RPC-320...
  • Page 44: Description

    Use the following formula to determine the series resistor needed. Rs = (Vi - 6) / .005 Where: Vi = input voltage No series resistor is needed when Rs is negative. Page 12-1 RPC-320...
  • Page 45 EXTERNAL INTERRUPT SECTION 12 Figure 12-1 Optically isolated and TTL interrup ts enable interrup ts. Page 12-2 RPC-320...
  • Page 46: Description

    W hat are shown are exam ples of how to program this chip. NOTE: Be sure to initialize the counter chip before using COU NT com mands. Failure to do so returns m eaningless results. The COU NT function returns the current counter value. Page 13-1 RPC-320...
  • Page 47: Commands

    Line 10 sets OCCR to divide by N. Line 50 enables interrupts. Line 100 prints the counter. When pulses are applied to the A input, the count will go down. When 1000 pulses are detected at A input, the message in line 500 is printed. Page 13-2 RPC-320...
  • Page 48: Description

    NOTE: The RS-232 receiver is shut down in IDLE amplifiers modes 1 and 2. A ny characters sent to the RPC-320 dur ing this time are ignored or Page 14-1 RPC -320...
  • Page 49: Program Examp Le

    POWER MANAGEMENT SECTION 14 Curr ents are maximum and minimum as specified by the manufacturer. Min-max curr ent ranges "guaranteed" by the device manufacturer have a tremendous range, often by a factor of 10 or m ore. Cur rent abov e is “ty pical” . Some current consumption is difficult to determine.
  • Page 50: Sect Ion 15 Technical Information

    TECHNICAL INFORMATION SECTION 15 ELECTRICAL SPECIFICATIONS Opto isolated input ISOA/ISOB Isolated voltage s to 250 volts peak may be a pplied to this input. A series resistor is necessary for voltages above 80C320, 22. 1184 Mhz clock 12V. Memory Keypad input RPBASIC-52, 32K RO M, jumperable for 64K.
  • Page 51: Memory And I/O Bank Map

    TECHNICAL INFORMATION SECTION 15 MEMORY AND I/O BANK MAP JUMPER DESCRIPTIONS Memory A * after a jumper position indicates fa ctory def ault is jumpered. Description Address RPBASIC-52, U4 0000H - 7FFFH Jumper Description RAM , U 5, 00000 H - 07F FFH 128K 0 0000H - 1FFFFH W1[1-2]*...

Table of Contents