ICS RS422I-PA Series User manual

RS422I-PA Series
Product Manual
MANUAL NUMBER : 00650-519-1B

Page - iii
FOREWORD
This product manual provides information to install, operate and or program the referenced product(s)
manufactured or distributed by ICS Advent. The following pages contain information regarding the
warranty and repair policies.
Check our Web site (www.icsadvent.com) for technical information, manuals, and BIOS updates.
Technical assistance is also available at: 800-480-0044 (U.S.) or 858-677-0877 (international).
Customer Comments: If you experience any problems with this manual or just want to provide some
feedback, please send us a message using the online "Service Form" on our Web site (www.icsadvent.com)
under "Support." Detail any errors you find. We will correct the errors or problems as soon as possible and
post the revised manual in our online Support Library. Thank you.
The information in this document is provided for reference only. ICSAdvent does not assume any liability
arising from the application or use of the information or products described herein. This document may
contain or reference information and products protected by copyrights or patents and does not convey any
license under the patent rights of ICS Advent, nor the rights of others.
Copyright © 2000, a California Corporation, 6260 Sequence Drive, San Diego, CA92121-4371. ICSAdvent
is a Registered Trademark of ICS Advent. All trademarks and registered trademarks are the property of
their respective owners. All rights reserved. Printed in the United States of America. No part of this publi-
cation may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, elec-
tronic, mechanical, photocopying, recording , or otherwise, without the prior written permission of the pub-
lisher.

Page - iv
Shipments not in compliance with this Guarantee
and Limited Warranty Return Policy will not be ac-
cepted by ICS Advent.
Guarantee
A thirty day money-back guarantee is provided on all standard products sold. Special order products are
covered by our Limited Warranty, however they may not be returned for refund or credit. EPROMs,
RAM, Flash EPROMs or other forms of solid electronic media are not returnable for credit - but for
replacement only. Extended Warranty available. Consult factory.
Refunds
In order to receive a refund on a product for the purchase price, the product must not have been
damaged by the customer or by the common carrier chosen by the customer to return the goods and
the product must be returned complete (meaning all manuals, software, cables, etc.) within 30 days of
receipt and in an as-new and resalable condition. The Return Proceduremust be followed to assure
prompt refund.
Restocking Charges
Product returned after 30 days, and before 60 days, of the purchase will be subject to a minimum20%
restocking charge and charges for any damaged or missing parts. Products not returned within 60
days of purchase, or products which are not in an as-new and re-saleable condition, are not eligible
for credit return and will be returned to the customer.
Limited Warranty
Effective April 1, 1998, all products carry a 2-year limited warranty. Within two years of purchase,
ICS Advent will repair or replace, at our option, any defective product. ICS Advent will service the
warranty for all standard catalog products for the first two years from the date of shipment.
Please note: The 2-year warranty may not apply to special promotion items. Please consult the factory for
warranty verification.
The limited warranty is void if the product has been subjected to alteration, neglect, misuse, or abuse; if any
repairs have been attempted by anyone other than ICS Advent or its authorized agent; or if the failure is
caused by accident, acts of God, or other causes beyond the control of ICS Advent or the manufacturer.
Neglect, misuse, and abuse shall include any installation, operation, or maintenance of the product other than
in accordance with the user’s manual.
No agent, dealer, distributor, service company, or other party is authorized to change, modify, or extend the
terms of this Limited Warranty in any manner whatsoever. ICS Advent reserves the right to make changes
or improvements in any product without incurring any obligation to similarly alter products previously
purchased.

Page - v
Return Procedure
For any Guarantee or Limited Warranty return, please contact ICS Advent's Customer Service at
800-480-0044 (U.S.) or 858-677-0877 (international) and obtain a Return Material Authorization (RMA)
Number. All product(s) returned to ICS Advent for service or credit must be accompanied by a Return
MaterialAuthorization (RMA) Number. Freight on all returned items mustbe prepaid by the customer who
is responsible for any loss or damage caused by common carrier in transit. Returns for Warranty must
include a Failure Report for each unit, by serial number(s), as well as a copy of the original invoice showing
date of purchase.
To reduce risk of damage, returns of product must be in an ICS Advent shipping container. If the original
container has been lost or damaged, new shipping containers may be obtained from ICS Advent Customer
Service at a nominal cost.
ICS Advent owns all parts removed from repaired products. ICS Advent uses new and reconditioned parts
made by various manufacturers in performing warranty repairs and building replacement products.
If ICS Advent repairs or replaces a product, its warranty term is not extended.
ICSAdvent will normally return your replacement or repaired items via Second DayAir. Overnight delivery
or delivery via other carriers is available at an additional charge.
Limitation of Liability
In no event shall ICS Advent be liable for any defect in hardware, software, loss, or inadequacy of data of
any kind, or for any direct, indirect, incidental, or consequential damages in connection with or arising out of
the performance or use of any product furnished hereunder. ICSAdvent liability shall in no event exceed the
purchase price of the product purchased hereunder. The foregoing limitation of liability shall be equally
applicable to any service provided by ICSAdvent or its authorized agent.
Some Sales Items and Customized Systems are not subject to the guarantee and limited warranty.
However in these instances , any deviations will be disclosed prior to sales and noted in the original invoice.
ICS Advent reserves the right to refuse returns or credits on software or special order items.

Page - vi
Advisories
Three types of advisories are used throughout the manual to stress important points or warn of potential
hazards to the user or the system. They are the Note, the Caution, and theWarning. Following is an example
of each type of advisory:
Note: The note is used to present special instruction, or to provide extra information which may
help to simplify the use of the product.
CAUTION!
A Caution is used to alert you to a situation which if ignored may cause injury or
damage equipment.
WARNING!
AWarningisusedtoalertyouofasituationwhichifignoredwillcauseseriousinjury.
Cautions and Warnings are accented with triangular symbols. The exclamation symbol is used in all cautions
and warnings to help alert you to the important instructions. The lightning flash symbol is used on the left
hand side of a caution or a warning if the advisory relates to the presence of voltage which may be of
sufficient magnitude to cause electrical shock.
Use caution when servicing any electrical component. We have tried to identify the areas which may pose
a Caution or Warning condition in this manual; however, ICS Advent does not claim to have covered all
situations which might require the use of a Caution or Warning.
You must refer to the documentation for any component you install into a computer system to ensure proper
precautions and procedures are followed.

Page - vii
Table of Contents
Chapter 1: Introduction.............................................................................................1-1
Chapter 2: Installation...............................................................................................2-1
Chapter 3: Option Selection ......................................................................................3-1
Chapter 4: Address Selection...................................................................................4-1
Chapter 5: Programming ..........................................................................................5-1
Chapter 6: Connector Pin Assignments..................................................................6-1
AppendixA: Application Considerations ............................................................... A-1
CDInstallation ................................................................................................................................... 2-1
DirectoriesCreatedon Hard Disk....................................................................................................... 2-2
InstallingtheCard .............................................................................................................................. 2-4
Sample Programs .............................................................................................................................. 5-1
Initialization ....................................................................................................................................... 5-1
Reception .......................................................................................................................................... 5-3
Transmission ..................................................................................................................................... 5-4
Introduction........................................................................................................................................ A-1
BalancedDifferentialSignals.............................................................................................................. A-1
RS-485DataTransmission ................................................................................................................ A-3
MultipointOpto-isolatedCommunications .......................................................................................... 1-1
COMPort Compatibility ..................................................................................................................... 1-1
LineBiasandTermination.................................................................................................................. 1-1
AutoandManualTransceiverControl ................................................................................................. 1-2
CommunicationModes ...................................................................................................................... 1-2
Specifications .................................................................................................................................... 1-3

Page - viii
List of Figures
Figure 1-1: RS422I-PABlock Diagram ..................................................................................................... 1-4
Figure3-1: Simplified Schematic -Two-Wireand Four-Wire Connection.................................................. 3-2
Figure3-2: RS422I-PAOption Selection Map .......................................................................................... 3-4
FigureA-1:Typical RS485Two-Wire Multidrop Network............................................................................ A-3
List of Tables
Table4-1: StandardAddressAssignmentsfor286/386/486 Computers.................................................... 4-1
Table 4-2: Address Switch Setup............................................................................................................. 4-2
Table 4-3: ExampleAddress Setup ......................................................................................................... 4-2
Table4-4: StandardDOSCOM PortAddresses....................................................................................... 4-2
Table5-1: BaudRateDivisors.................................................................................................................. 5-2
Table6-1: Connector PinAssignments.................................................................................................... 6-1
TableA-1: ConnectionsBetweenTwoRS422Devices .............................................................................. A-1
TableA-2: RS422 Specification Summary................................................................................................. A-2
Revision 1B
December 2000

1-1
Manual 00650-519-1
Chapter 1: Introduction
The card is five inches long and should be installed in either long or short slots of IBM PC/XT/AT
or compatible computers. If installed in an eight-bit slot, the high interrupts (IRQ 10-15) will not
be available to the RS422I-PA.
Multipoint Opto-isolated Communications
The RS422I-PA serial communications card was designed for multipoint transmission on long
communication lines in noisy environments using RS422 or RS485 differential line drivers. The
data lines are opto-isolated from the computer and from each other to assure communication when
large common mode noise are superimposed. An on-board DC-DC converter provides isolated
power for the line driver circuits.
Acrystal oscillator is located on the card. This oscillator permits precise selection of baud rate
from 50 to 115,200 in the 1X mode. In the 4X mode, baud rates up to 460,800 baud may be
selected. The Programming section of this manual contains a table to use when selecting baud rate.
The output transceiver used, type 75176B, is capable of driving extremely long communication
lines at high baud rates. It can drive up to ±60mA on balanced lines and receive inputs as low as
±200mV differential signal. Opto-isolators on the card provide protection to maximum 500 V. In
case of communication conflict, the transceivers feature thermal shutdown.
COM Port Compatibility
Type ST16C550 UARTs are used as the Asynchronous Communication Element (ACE) which
include a 16-byte transmit/receive buffer to protect against lost data in multitasking operating
systems, while maintaining 100 percent compatibility with the original IBM serial port.
RS422I-PA card is not restricted to the standard DOS addresses of COM1 - COM4. You can
select abase address anywhere within the I/O address range 000 to 3F8 hex and the FINDBASE
program will help you choose from available addresses.
Line Bias and Termination
For increased noise immunity, the communication lines may be loaded at the receiver and biased at
the transmitter. RS485 communications requires that one transmitter supply a bias voltage to
ensure aknown "zero" state when all transmitters are off, and the last receiver input at each end of
the network be terminated to prevent "ringing". The RS422I-PA supports these options with
jumpers on the card. See Chapter 3, Option Selection for more details.

RS422I-PA Manual
1-2
Manual 00650-519-1
Auto and Manual Transceiver Control
RS485 communications requires the transmitter driver to be enabled and disabled as needed, to
allow all cards to share the communications line. The RS422I-PA card has automatic driver
control. When the card is not transmitting, the receiver is enabled and the transmitter driver is
disabled. Under automatic control, when data are to be transmitted, the receiver is disabled and the
driver is enabled. After data transfer is complete, the driver remains enabled for the transmission
time of one additional character and then disabled. The RS422I-PA automatically adjusts it's
timing to the baud rate of the data.
Communication Modes
Model RS422I-PA supports Half-Duplex, and Full-Duplex communications in avariety of 2-wire
and 4-wire cable connections. Half-Duplex allows traffic to travel in both directions, but only one
direction at a time. In Full-Duplex mode data travels in both directions at the same time.
CE Marking
If your card is marked CE-marked it meets requirements of EN50081-1:1992 (Emissions),
EN50082-1:1992 (Immunity), and EN60950:1992 (Safety).

1-3
Manual 00650-519-1
Specification
Communications Interface
•Serial Ports: A shielded male D-sub 9-pin IBM AT style connector compatible
with RS422 and RS485 specifications. Serial communications
ACE used is type ST16C550. Transceivers used are type 75176.
•Serial Data Rates: 50 to 115,200 baud in the 1X mode and up to 460,800 in the 4X
mode. The mode is jumper selectable. Asynchronous,Type
16550 buffered UART.
•Address: Continuously mappable within 000 to 3FF (hex) range of AT I/O
bus addresses.
•Multipoint: Compatible with RS422 and RS485 specifications. Up to 32
drivers and receivers allowed on line.
•Input Isolation: 500 Volts, from computer and between ports.
•Receiver Input Sensitivity: ±200 mV, differential input.
•Transmitter Output Drive Capability: 60 mA (100 mA short-circuit current
capability).
Environmental
•Operating Temperature Range: 0 to +60 °C
•Storage Temperature Range: -50 to +120 °C
•Humidity: 5% to 95%, non-condensing.
•Power Required: +5VDC at 150 mA typical, +12 VDC at 200 mA typical. 3 W
total power consumption.
•Size: 5" long. (127 mm) Although designed for a full-length slot, if the
card is installed in a eight-bit XT-style slot the card will work but
higher order IRQ's 10-15 will be unavailable.

RS422I-PA Manual
1-4
Manual 00650-519-1
Figure 1-1: RS422I-PA Block Diagram

Page 2-1
Manual 00650-519-1
Chapter 2: Installation
The software provided with this card is contained on either one CD or multiple diskettes and must
be installed onto your hard disk prior to use. To do this, perform the following steps as
appropriate for your software format and operating system. Substitute the appropriate drive letter
for your CD-ROM or disk drive where you see d: or a: respectively in the examples below.
CD Installation
DOS/WIN3.x
1. Place the CD into your CD-ROM drive.
2. Type d:K to change the active drive to the CD-ROM drive.
3. Type installK to run the install program.
4. Follow the on-screen prompts to install the software for this card.
WIN95/98/NT
1. Place the CD into your CD-ROM drive.
2. The CD should automatically run the install program after 30 seconds. If the install
program does not run, click START | RUN and type d:install, click OK or press K.
3. Follow the on-screen prompts to install the software for this card.
3.5-Inch Diskette Installation
As with any software package, you should make backup copies for everyday use and store your
original master diskettes in asafe location. The easiest way to make a backup copy is to use the
DOS DISKCOPY utility.
In a single-drive system, the command is:
diskcopy a: a:K
You will need to swap disks as requested by the system.
In a two-disk system, the command is:
diskcopy a: b:K
This will copy the contents of the master disk in drive A to the backup disk in drive B.

RS422I-PA Manual
Page 2-2
Manual 00650-519-1
To copy the files on the master diskette to your hard disk, perform the following steps.
1. Place the master diskette into a floppy drive.
2. Change the active drive to the drive that has the diskette installed. For example, if the
diskette is in drive A, type a:K.
3. Type installK and follow the on-screen prompts.
Directories Created on the Hard Disk
The installation process will create several directories on your hard disk. If you accept the
installation defaults, the following structure will exist.
[CARDNAME]
Root or base directory containing the SETUP.EXE setup program used to help you configure
jumpers and calibrate the card.
DOS\PSAMPLES: A subdirectory of [CARDNAME] that contains Pascal samples.
DOS\CSAMPLES: A subdirectory of [CARDNAME] that contains "C" samples.
Win32\language: Subdirectories containing samples for Win95/98 and NT.
WinRisc.exe
AWindows dumb-terminal type communication program designed for RS422/485 operation.
Used primarily with Remote Data Acquisition Pods and our RS422/485 serial communication
product line. Can be used to say hello to an installed modem.
ACCES32
This directory contains the Windows 95/98/NT driver used to provide access to the hardware
registers when writing 32-bit Windows software. Several samples are provided in a variety of
languages to demonstrate how to use this driver. The DLL provides four functions (InPortB,
OutPortB, InPort, and OutPort) to access the hardware.
This directory also contains the device driver for Windows NT, ACCESNT.SYS. This device
driver provides register-level hardware access in Windows NT. Two methods of using the driver
are available, through ACCES32.DLL (recommended) and through the DeviceIOControl handles
provided by ACCESNT.SYS (slightly faster).

Page 2-3
Manual 00650-519-1
SAMPLES
Samples for using ACCES32.DLL are provided in this directory. Using this DLL not only
makes the hardware programming easier (MUCH easier), but also one source file can be used
for both Windows 95/98 and WindowsNT. One executable can run under both operating
systems and still have full access to the hardware registers. The DLL is used exactly like any
other DLL, so it is compatible with any language capable of using 32-bit DLLs. Consult the
manuals provided with your language's compiler for information on using DLLs in your
specific environment.
VBACCES
This directory contains sixteen-bit DLL drivers for use with VisualBASIC 3.0 and Windows 3.1
only. These drivers provide four functions, similar to the ACCES32.DLL. However, this DLL is
only compatible with 16-bit executables. Migration from 16-bit to 32-bit is simplified because of
the similarity between VBACCES and ACCES32.
PCIThis directory contains PCI-bus specific programs and information. If you are not using a PCI
card, this directory will not be installed.
SOURCE
Autility program is provided with source code you can use to determine allocated resources at
run-time from your own programs in DOS.
PCIFind.exe
Autility for DOS and Windows to determine what base addresses and IRQs are allocated to
installed PCI cards. This program runs two versions, depending on the operating system. Windows
95/98/NT displays a GUI interface, and modifies the registry. When run from DOS or
Windows3.x, a text interface is used. For information about the format of the registry key, consult
the card-specific samples provided with the hardware. In Windows NT, NTioPCI.SYS runs each
time the computer is booted, thereby refreshing the registry as PCI hardware is added or removed.
In Windows 95/98/NT PCIFind.EXE places itself in the boot-sequence of the OS to refresh the
registry on each power-up.
This program also provides some COM configuration when used with PCI COM ports.
Specifically, it will configure compatible COM cards for IRQ sharing and multiple port issues.
WIN32IRQ
This directory provides ageneric interface for IRQ handling in Windows 95/98/NT. Source code
is provided for the driver, greatly simplifying the creation of custom drivers for specific needs.
Samples are provided to demonstrate the use of the generic driver. Note that the use of IRQs in
near-real-time data acquisition programs requires multi-threaded application programming
techniques and must be considered an intermediate to advanced programming topic. Delphi, C++
Builder, and Visual C++ samples are provided.

RS422I-PA Manual
Page 2-4
Manual 00650-519-1
Findbase.exe
DOS utility to determine an available base address for ISA bus , non-Plug-n-Play cards. Run this
program once, before the hardware is installed in the computer, to determine an available address
to give the card. Once the address has been determined, run the setup program provided with the
hardware to see instructions on setting the address switch and various option selections.
Poly.exe
Ageneric utility to convert atable of data into an nth order polynomial. Useful for calculating
linearization polynomial coefficients for thermocouples and other non-linear sensors.
Risc.bat
A batch file demonstrating the command line parameters of RISCTerm.exe.
RISCTerm.exe
Adumb-terminal type communication program designed for RS422/485 operation. Used primarily
with Remote Data Acquisition Pods and our RS422/485 serial communication product line. Can
be used to say hello to an installed modem. RISCTerm stands for Really Incredibly Simple
Communications TERMinal.
Installing the Card
The RS422I-PA card can be installed in a long slot of an IBM PC/XT/AT or compatible computer.
Before installing the card carefully read Chapter 3, Option Selection and Chapter 4, Address
Selection and configure the card according to your requirements. You can find an unused base
address with the FINDBASE program provided on the CD (or diskettes) that came with your card.
Finally, our setup program will lead you through the process of setting the options on the
RS422I-PA. The setup program does not set the options on the card, these must be set by jumpers
on the card.
Be especially careful with address selection. If the addresses of two installed functions overlap you
will experience unpredictable computer behavior.

Page 2-5
Manual 00650-519-1
To Install the Card
1. Turn off computer power.
2. Remove the computer cover.
3. Remove the blank I/O backplate.
4. Install jumpers for selected options from either Chapter 3, Option Selection of this manual
or the suggestions of our software SETUP program.
5. Select the base address on the card for either Chapter 4, Address Selection of this manual
or the suggestions of our FINDBASE setup software program.
6. Install the card in an I/O expansion slot.
7. Install the I/O cable.
8. Inspect for proper fit of the card and cable and tighten screws. Make sure that the card
mounting bracket is properly screwed into place and that there is a positive chassis ground.
9. Turn the computer ON and observe the LED indicators. The LED's will blink when there
is any activity on the communication lines.
10. Turn the computer OFF and replace the computer cover.
Note
If installed in an eight-bit slot, IRQs 10-15 will be unavailable.
ADB9 connector is provided on the mounting bracket for input/output connections. To ensure
that there is minimum susceptibility to EMI and minimum radiation, it is important that the card
mounting bracket be properly screwed into place and that there be apositive chassis ground. Also,
proper EMI cabling techniques (cable connect to chassis ground at the aperture, shielded twisted
pair wiring, etc.) be used for input/output wiring.

Page 3-1
Manual 00650-519-1
Chapter 3: Option Selection
The following paragraphs describe the functions of the various jumpers on the RS422I-PA card.
Refer to Figure 3-1, Option Selection Map for the locations of these jumpers on the card.
Address Selection
DIP switches A3 through A9 set the card's base address on the I/O bus. See the Address Selection
section of this manual to follow.
IRQ2 Through IRQ15
Place ajumper at the location that corresponds to the IRQ level that you desire. If the card is
installed in a short, eight-bit slot, the higher interrupts IRQ10 through IRQ15 will not be usable.
485 and 422
A jumper at the "485" location sets the card in RS485, Half-Duplex, automatic RTS mode. A
jumper at the "422" location sets the card in RS422, Full-Duplex mode.
Baud x1 and Baud x4
Placement of this jumper controls baud rate. The "x1" position permits baud rates up to
115.2Kbaud and the "x4" position permits baud rates up to 460.8Kbaud.

RS422I-PA Manual
Page 3-2
Manual 00650-519-1
Terminations and Bias
Atransmission line should be terminated at the receiving end in its characteristic impedance.
Installing ajumper at the location labeled TERMOUT applies a120Sload in series with a 0.1:F
capacitor across the output (if desired) for RS422 mode and across the transmit/receive
input/output for RS485 operation. Ajumper at the TERMIN location applies aload on RS422
inputs.
Two-Wire Connection Four-Wire Connection
Figure 3-1: Simplified Schematic - Two-Wire and Four-Wire Connection
Full or Half-Duplex
Full-Duplex allows simultaneous bi-directional communications. Half-Duplex allows bi-directional
transmit and receiver communication but only one at a time, and is required for RS485
communications. Proper selection depends on the wire connections used to connect the two serial
ports. The following table shows how two serial communication cards would be interconnected for
the various modes. Tx designates the transmit wires and Rx designates the receive wires.

Page 3-3
Manual 00650-519-1
Communication Modes and Cabling Options
Cable
Mode Card A Card B
Simplex 2-wire Receive Only Rx- 1 ....... 2
Rx+ 9....... 3
Simplex 2-wire Transmit Only Tx+ 2....... 9
Tx- 3....... 1
Half-Duplex 2-wire with local echo TRx+ 2....... 2
TRx- 3....... 3
Half-Duplex 2-wire w/o local echo TRx+ 2....... 2
TRx- 3....... 3
Full-Duplex 4-wire w/o local echo Tx+ 2....... 9
Tx- 3....... 1
Rx- 1....... 3
Rx+ 9....... 2

RS422I-PA Manual
Page 3-4
Manual 00650-519-1
Figure 3-2: RS422I-PA
Option Selection Map
Switches
•S1=COM Address (This illustration has COM at the COM 3 address.)
Jumpers
•485 Selects RS485 with automatic-RTS mode.
•422 Selects RS422 Full duplex mode.
•TERMOUT Load for RS485 mode or output load for RS422 mode.
•TERMIN Input load for RS422 mode.
•Baud x1 Selects baud rate range 50 to 115,200 baud.
•Baud x4 Selects baud rate range 200 to 460,800 baud.
Table of contents
Other ICS PCI Card manuals