Remote Technologies RPC-320 manual Digital and Opto Ports, Digital I/O Ports, Digital Por t J3

Page 23

DIGITAL AND OPTO PORTS

INTRODUCTION

Digital I/ O lines ar e used to inter face with op to-module racks, switches, low current LED's, and other TTL devices. The RPC - 320 has 34 of these lines. 8 TTL I/O lines go to a terminal strip. Additionally, there is one high curr ent output and a n opto-isolated inp ut. R efer to the figure below for the location of these lines.

Eight lines at P6 are intended for general purpose TTL I/O such as switches, level sensors or to drive other devices.

A 24 line con nector, J3, is inte nded to inter face to opto racks or other TT L devices. 8 of these lines are high curr ent outputs, capable of sink ing 75 to 200 m a. O pto modules on an opto rack sense presence of AC or DC voltages or switch them .

L8 at P2 is a "zero" ohm FE T switch. It is intended for switching L ED b ack lighting on a n LC D display. This line may also be used to switch high current, high voltage power . It can sw itch up to 2 amps.

ISOA/B is used as an isolated input as well as an interr upt.

In addition to the 24 I/O lines from J3, the display port can be used as digital I/O . Refer to Chapter 8 for more information.

Figure 6-1 Digital I/O

WARNING:

Apply power to the RPC -320 before applying a voltage to the digital I/O lines to prevent current from flowing in and damaging devices. If you cannot apply power to the RPC-320 first, contact

SECTION 6

technical support for suggestions appropriate to your application. Power may be applied to ISOA/B at any time.

Several softwar e comm ands support the digital I/O ports. ON L INE br anches to a subroutine w hen a line changes. ON C OUN T counts the number of high to low transitions at a digital line. Maxim um coun ting rate is about 95 Hz. T hese commands simplify design and greatly speed up execution. See Appendix A for more information.

DIGITAL I/O PORTS

All ports use an 82C55 for I/O. Lines are accessed using LINE or LINEB commands. Lines at J3 and P6 are configured for inputs or outputs using the CONF IG LINE comm and. See Appendix A for information.

WARNING:

When using CON FIG LIN E, output lines go low momentarily (less than 10 micro-seconds) until they are set high again as per the data in the command line. Some other lines are affected when C ONF IG LINE 0 is executed . Refer to CONFIG LINE command in Appendix A for more inform ation.

Digital Por t J3

This port is used to interface opto modules (using the MP S series racks), drive small r elays, solenoids, motors, or lamps, and provide general purpose TTL I/O to other logic devices or mechanical switches. The LIN E com mand is use d to access an d control this p ort.

The lines on J3 are divided into 3 eight bit groups from an 82C55. Ports A and B are configured as all inputs or outputs. Port C is progr amm ed as one gr oup of 8 inputs or outputs or as two groups of four lines (upper and lower C). T he four lines in upper and lower C can each be prog ram med as a ll inputs or outp uts. R efer to T able

6 - 1 to determine the opto channel or J3 pin number for a port. U se CON FIG LIN E 100 (Appendix A) to configure por ts A, B, and C for inputs or outputs.

When a line is configured as an output, it can sink a maximum of 2. 5 ma at 0.4V and can source over 2. 5 ma. Outputs sink 15 ma at 1. 0V. This will dr ive opto modules. P ort B is connected to a high current sink through U12 . See "High current output" later .

Digital I/ O lines at J3 m ay be pulled up to + 5 volts or to

Page 6-1 RPC -320

Image 23
Contents Revision REVTrademarks Table of Contents Sect ION 13 Multi Mode Counter Description Sect ION 11 Watchdog Timer DescriptionExternal Reset Interrupt CharacteristicsSoftware Revision History Manual Organization OverviewSection DescriptionTechnical Support Symbols and Term inologySystem layout Overview SectionEquipment Operating PrecautionsIntroduction Uploading and Downloading Programs Using a PCUsing a Terminal First Time OperationEditing programs and program ming hints Troubleshooting Where to GO from HereW3 autorun jumper Saving ProgramsSaving a Program EpromChanging Eprom Size AutorunningPreventing Autorun Loading a ProgramBsave CommandsAlternate Eproms BloadCOM1 Serial Port Serial PortsCOM0 Serial Port RS-422/485 Termination network Serial Ports SectionRS-422/485 Operating Information Multidrop Network Accessing Serial BuffersTwo wire RS-485 Serial Port PIN OUT Accessing COM0 and COM1Disabling CONTROL-C RXD CTS Changing Memory Battery BackupChecking the battery RAM MemoryStoring Variables in RAM Reserved MemoryBlock Data Transfer Assembly Language InterfaceDigital Por t J3 Digital and Opto PortsDigital I/O Ports Optically Isolated Input Digital I/O CommandsDigital Port P6 High Current Port L8High Current Output Digital I/ O prog ramm ing exam ple Interfacing to switches and other devicesInterfacing Digital I/O to an opto-module rack Ls e Width Modulation PWM Conne ctor pin ou t J3 Digital and Opto Ports SectionLine B Config LineCount LineM E Setting Date and TimeDate Section Programming Example Connecting DisplaysWriting to the Display Display Types Display Connector PIN OUTProgram explanation Keypad PortKeypad Port PIN OUT J5 Overvoltage conditions Connecting Analog InputsAnalog Input InitializationAcquiring Analog Data Differential ModeExamples u sing CON FIG AIN Noise Notes Temperature MeasurementAnalog Input Section Measuring Higher Voltages Data logging on a timer tickMeasuring 4-20 mA current loops Converting Analog MeasurementsAmplifiers Calibration External Reset Watchdog TimerProgram Example Interrupt CharacteristicsOptically Isolated Interrupt Optically isolated and TTL interrup ts Gate ProgrammingGND LoadCOU NT0 Further Power Reduction Power ManagementProgram Examp le Power Management SectionTechnical Information Electrical SpecificationsBank Mechanical SpecificationsMemory and I/O Bank MAP Jumper Descriptions