Remote Processing RPC-330 User Manual
Page 25
DIGITAL I/O
SECTION 6
Page 6-4 RPC -330
Figure 6-2 Inductive load protection
should not be used unless a series resistor is installed.
Protection diodes m ust be used with inductive loads.
Refer to figure 6-2
Do not pa rallel outputs f or higher drive. This could
result in damage since outputs will not share current
equally.
The outputs at U12 are open collector. An external
device must supply power.
Interfacing Digital I/O to an opto-module rack
I/O lines can be interfaced to an MPS-8, 16, or 24
position opto m odule rac k. L ines not going to an opto
module c onnect to a scr ew ter minal on the racks. This
feature allows you to connect switches or other TTL type
devices to the digital I/O lines. The MP S-XX series
boards accept G 4 series modu les.
A CM A-26-24 connects J3 on the RPC-330 to the MP S-
XX bo ard. Cable len gth should be less than 2 feet.
Excessive cable lengths cause a voltage drop and
consequently unreliable operation. Make sure you
connect + 5 V and grou nd to the MP S-XX r acks.
Before a line is set, the 82C55 chip must be initialized.
This is done using the CONFIG LINE statement. Group
inputs and outpu ts together. Refer to Table 6-1 for Op to
module position, port number , and connector pin out. If
opto channels 16-23 are used, U12 should be replaced by
a DIP shunt jumper.
The LINE and LINE # com mands are used to control
and access opto modules and lines. These commands are
both functions and statements, depending upon how they
are used.
100 LINE 100, 0
Statement
110 LINE #103, 0
Statement
120 A = LINE(100)
Function
130 A = LINE#(103)
Function
Program line 100 turns external opto module rack
position 0 off. Program line 110 sets J3, pin 3, to a
logical 0 level. Program line 120 returns the status of
externa l opto modu le rack po sition 0. If the modu le is
"off", a 1 is returned (assuming it is an output module).
Program line 130 returns the status of J3, pin 3 as a 0 or
1.
Example: To turn on opto module in slot position 8, the
following command is executed:
LINE 108, 1
A ' 1' turns on a module while a 0 turns it off. (In actual
fact, a 0 is written at the port. )
See Digital I/ O program ming exam ple later in this
section.
Interfacing to switches and other devices
Switches and other digital I/O devices may be connected
directly to P6 or J3. The STB-26 terminal board
provides a convenient way of interfacing switches or
other digital I/ O device s. L ines at J3 are connected to
the STB-26 with a CMA-26 cable. Digital devices are
then connected to the screw terminals on the STB-26.
Refer to T able 6-1 and the end of this section for J3
connector pin out descr iption. The M PS-X X serie s opto
racks also pro vide a way to access digital I/ O lines.
Switches may be connected directly to a line. When
jumper W7 configures the resistors as pull ups, a switch
c l os u re to g r ou n d a t a li ne is r ea d as a 0 u s in g th e L IN E
# function at J1. 10K resistors are always pulled up at
lines L0 to L7.
When W 7 configures the input re sistors as pull downs,
one end of the switch m ust be tied to + 5 volts. If this is
not possible or convenient, a 1K resistor can be tied
between an input and + 5 volts to force it high when a
switch is open.
The ON LINE command, described in Appendix A, i s
used to generate inter rupts when a line cha nges status.
HIGH CURRENT PORT
L8 is a high current switch intended to control back
l ig h ti ng o n a n L C D d is p la y . L 8 i s t he lo a d w h il e G N D
below it is ground. This ground is comm on with the
ground plane on the board at the FET sour ce pin.