
PCI-7250/7251
8 Relay Actuator & Isolated D/I Card
@Copyright 1997
All Rights Reserved.
Manual first edition 7, July 1997
The information in this document is subject
to change without prior notice in order to improve reliability, design and
function and does not represent a commitment on the part of the manufacturer.
In no event will the manufacturer be liable for direct, indirect, special, incidental, or consequential damages arising out of the use or inability to use the product or documentation, even if advised of the possibility of such damages.
This document contains proprietary information protected by copyright. All rights are reserved. No part of this manual may be reproduced by any mechanical, electronic, or other means in any form without prior written permission of the manufacturer.
Trademarks
PCI-7250/7251 is registered trademarks of ADLink Inc. Other product names mentioned herein are used for identification purposes only and may be trademarks and/or registered trademarks of their respective companies.
Contents
1
This card provides 8 relay actuators and 8 opto-isolated digital inputs.
From the eight relays, four relays are Form C (R0~R3) and four relays are
Form A ( R4~R7). They are very suitable for ON/OFF control devices.
For 8 identical non-polarity opto-isolated digital input channels, each
of them can be switchable by using RC filter or non-RC filter. All channels
are isolated and suitable for collecting digital inputs in noisy environments.
The status of each relay output is reflected by a LED. When the relay
is energized, its corresponding LED will turn ON, otherwise it is OFF.
The relay outputs and digital inputs are controlled by two bytes of I/O
address. When the corresponding bit is read or written, its output status
will be controlled, or its input status be monitored. The I/O signals are
via a 37 pin D-type connector that projects through the computer case at
the rear of the board.
The PCI-7250 Relay Actuator and D/I Card provides
the following advanced features:
· 32-bit PCI-Bus, Plug and Play
· 8 relay actuator outputs
· 8 opto-isolated digital inputs
· LED indicators to show activated relays
· Jumper selectable AC-filter/non-AC-filter input signals
· On-board relay driving circuits
· On-board digital input signal conditioning circuits
The PCI-7251 can attach to the PCI-7250 card. Each PCI-7251 card
provides another 8 relay output and 8 photo isolated input signals. There
are at most three PCI-7251 cards can be attached on one PCI-7250 card so
that the system can provide 32 relay output signals and 32 photo isolated
inputs signals.
· Industrial ON/OFF control
· External high power relay driving, Signal switching
· Laboratory automation
· Industrial automation
· Switch contact status sensing, limit switch monitoring,
· Useful with A/D and D/A cards to implement a data acquisition
& control system
· Digital
input
|
8 |
| Optocoupler | PC-814 |
| Input current | 60 mA max. for isolated input |
| Input Voltage | 3 - 24 VDC ( AC 50-1,000Hz) |
| Input impedance | 1.2 K |
| Threshold Voltage | 2.4 VDC , adjustable by changing voltage dividing resistors |
| Input mode | Isolation AC-filter/ Non-AC-filter |
| Withstanding voltage | 1,000 VDC |
· Relay
Output
|
8 |
| Relay Type | 8 SPST ( Form C ) |
| Contact rating | 120V AC/DC , 0.5 A 24V Vdc, 1A |
| Breakdown Voltage | 1000 V AC/DC min.. |
| Release time | 8 msec max. |
| Operate time | 8 msec max.. |
| Insulation Resistance | 100M min. |
| Life Expectancy | > 10 million operations at full load |
| Power Consumption | +12V , 33 mA for each relay , total 0.264 A if all relay are energized +5V, less than 0.2A |
| Power supply | + 12V from the PCI-Bus |
· General
|
5.75" x 3.75" ( 147 mm x 95 mm ) |
| Bus | 32-bit PCI bus |
| I/O port address | Assigned By System BIOS |
| Temperature | 0 ~ 50 C (Operating); |
| Humidity | 0 to 90% non-condensing |
2
This chapter describes how to install the PCI-7250.
At first, the contains in the package and unpacking information that you
should be careful are described. The jumpers setting for digital input channel
configuration (AC-filter or Non-AC-filter) and the signals definitions of
the 37-pins connectors are also specified in this chapter.
In addition to this User`s Manual , the
package includes the following items:
· PCI-7250 Relay Actuator & Isolated D/I Card
· PCI-7250 Utility and C/C++ Library Diskette
If any of these items is missing or damaged, contact the dealer from
whom you purchased the product. Save the shipping materials and carton in
case you want to ship or store the product in the future.
Your PCI-7250 card contains sensitive electronic
components that can be easily damaged by static electricity.
The card should be done on a grounded anti-static mat. The operator should
be wearing an anti-static wristband, grounded at the same point as the anti-static
mat.
Inspect the card module carton for obvious damage. Shipping and handling
may cause damage to your module. Be sure there are no shipping and handing
damages on the module before processing.
After opening the card module carton, extract the system module and place
it only on a grounded anti-static surface component side up.
Again inspect the module for damage. Press down on all the socketed IC's
to make sure that they are properly seated. Do this only with the module
place on a firm flat surface.
Note : DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN DAMAGED.
You are now ready to install your PCI-7250.

Figure 2.1 PCI-7250 Layout
There are 8 jumpers (JP1 to JP8) associated with
each digital input channel for configuring the channel as AC-Filter or
Non-AC-Filter input. Each digital input channel and their corresponding
jumper are shown in the following Table 2.1.
JUMPER |
INPUT SIGNAL |
JP1 |
DI0 |
JP2 |
DI1 |
JP3 |
DI2 |
JP4 |
DI3 |
JP5 |
DI4 |
JP6 |
DI5 |
JP7 |
DI6 |
JP8 |
DI7 |
Table 2.1 The jumper and DI channels
The default setting of the input signal selection
is Non-AC-Filter ( DC signal input), which is shown as below :
Input Signal Selection |
Non-AC-Filter
(DC Signal) |
AC-Filter
(AC Signal) |
Jumper JP1 ~ JP8 |
2-3 |
1-2 |
Table 2.2 Input Signal Selection Jumper Setting
The PCI-7250 card comes equipped with a 37-pin
D type connector (CN1) accessible from the rear of the card ( Ref. Fig 2.1).
The pin assignment of the D type connector is described by Figure 2.2.

Figure 2.2 Pin Assignment of CN1
Legend :
1. DIn
- digital input low, channel n ( input signal Is not polarity sensitive)
2. NC n - normal close pin of relay n
3. NO n - normal open pin of relay n
4. COM n - common pin of relay n
5. N/C - No Connection
2.6 PCI-7250 and PCI-7251 Connection
There are 8 relay output and 8 isolation input
on both PCI-7250 and PCI-7251. The PCI-7251 is used as expansion of the
PCI-7250. The operations of PCI-7251 are the same as which in PCI-7250.
There are at most 3 PCI-7251 expansion boards to attach on the PCI-7250.
Therefore, the PCI-7250 can control up to 32 relays and sense 32 isolation
signals. Figure 2.3 shows the block diagram of connecting PCI-7250 and PCI-7251.
In addition, the existance of the PCI-7251 expansion
boards can be detected. Refer to the section 4.x. for using the function
library.

3
In this chapter, a primitive digital I/O operations
of PCI-7250 / 7251 will be specified. AC language I/O functions for the
I/O operations are also included.
3.1 Control and Status Registers
The control of the relays and status of the isolation
input is by means of registers. The PCI-7250 and three PCI-7251 expansion
boards occupy 8 I/O address. Table 3.1 shows the registers` description
and offset address relative to the base address. If the expansion PCI-7251
boards is not installed, the corresponding registers are not used and meanningless.
Offset |
Write |
Read |
Board |
0 |
Relay Output | Isolation Input | PCI-7250 |
1 |
not used | Output readback | |
2 |
Relay Output | Isolation Input | PCI-7251 #1 |
3 |
not used | Output readback | |
4 |
Relay Output | Isolation Input | PCI-7251 #2 |
5 |
not used | Output readback | |
6 |
Relay Output | Isolation Input | PCI-7251 #3 |
7 |
not used | Output readback |
Table 3.1 The register offset and the functions
3.2 Relay Output and Readback Data
There are 8 relays on each PCI-7250 / 7251 board.
Each relay are controlled by one bits of the control register. The bit value
`0' means the relay is not excited. The normal open signal line is `open'
with the common line and the normal closed signal line is connected with
the common line. The bit value `1' means the relay is excited and the normal
open signal line is now closed, and vise versa.
The initial bits values of the control register
are all `0'. And the status of the relay can be readback from the readback
register. If the relay is open, the corresponding bit value is `0'. If the
relay is closed, the bit value is `1'.
Refer to section 4.x and 4.x for the relative function library.
Data Format of Relay Output and Readback Status
Registers:
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Relay Output | DO7 | DO6 | DO5 | DO4 | DO3 | DO2 | DO1 | DO0 |
| Output Readback | RB7 | RB6 | RB5 | RB4 | RB3 | RB2 | RB1 | RB0 |
There are 8 isolation input channels on each PCI-7250
/ 7251 board. The status of the 8 channels can be read from the isolation
input register. Each bit is corresponding to each channel. As the DI status
are controlled by one bits of the control register. The bit value "1"
means input voltage is high and "0" menas input voltage is low.
Data Format :
Relay Output :
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| Iso. Input | DI7 | DI6 | DI5 | DI4 | DI3 | DI2 | DI1 | DI0 |
4
Relay Outputs & Isolated Inputs
The PCI-7250 contains two types of relay : Form
C and Form A. The relay R0 ~ R3 are form C relays, and R4 ~ R7 are plain
form A type. The difference between these two types of relay are :
1. Form C Relay : (R0 ~ R3)
Form C relay has three contacts : NC (Normal Close),
NO (Normal Open), and COM (Common). The CM post, located at the middle,
can make contact either NO post or NC post. When the control bit is high
(1), the COM post and NO post are contacted. If the control bit is low (0),
the COM post and NC post make contact.
In normal power-up and reset, the relay is in low status.
2. Form A Relay : (R4 ~ R7)
Form A relay only has two contacts : NC (Normal
Close) and COM (Common). The COM post can make contact either NO post or
not contact NO post. When the control bit is high (1), the COM post and
NO post are contacted. If the control bit is low (0), the COM post and NO
post does not make contact.
In normal power-up and reset, the relay is in low status.
The relay output contacts are rated for a maximum of 0.5A at 120VAC (resistive),
1A 24VDC, or 0.3A 60VDC. You should reduce these ratings for inductive loads.
For more detailed information of relay contact, please refer Appendix B.
The PCI-7250 contains 8 identical opto-isolated
control input channels. The circuit diagram of the isolated input channel
is shown on next page. The digital input is first routed through a photo-coupler
(PC-814), so that the connection are not polarity sensitive whether used
on AC or DC voltage.
In addition, a single-pole filter with a time constant
about 5ms is used to filter when the AC inputs passed through.

Vin = I F X Ri
Pw = Vin X I
F
For example, if
the input voltage is 110V, then the Ri should be replace by
Ri = 110 (V) / 0.01 (A) = 11 K
Pw = 110 (V) X 0.01 (A) = 1.1 W
5
In this chapter, the PCI-7250's software drivers
: C/C++ language library for DOS is described.
5.1 Installation
The Utility Software and Library supplied with
PCI-7250 are in DOS format which is compatible with DOS 3.0 or higher reversions.
It is advisable to make a back up copy before using the software.
For a direct back up, use the DOS DISKCOPY or alternatively XCOPY *.*
to a pre-formatted disk. The back up procedures are specified as follows:
1. Insert "Utility and Library" Diskette into floppy drive
A:
2. XCOPY a:*.* b:/s
The PCI-7250's Utility Diskette includes a utility
software,
C-language library, DLL libraries and some demonstration programs which
can help you reduce programming work.
Due to the installation on different O.S. platforms should follow different
procedures. The installation procedures are classified to four O.S..
_ MS-DOS
Installation :
You will need to manually copy the contents of
diskette to your hard disk. The procedures should be followed as :
1. Turn your
PC's power switch on
2. Put the " PCI-7250 Utility & Library " diskette
into your floppy drive A: or B:
3. Install for DOS
environment
A\> CD\DOS
A:\DOS> SETUP
5.2 Running Testing Utility ( 7250UTIL.EXE)
After finishing the installation, you can execute
the utility by typing as follows :
C> cd \7250\DOS\UTIL
C> 7250UTIL
the following diagram will be displayed on you screen. You can test
the functionality :
1. Digital Input and Output of PCI-7250
5.3 Software Driver Naming Convention
The functions of PCI-7250's software drivers are
using full-names to represent the functions' real meaning. The naming convention
rules are :
In DOS Environment :
_{hardware_model}_{action_name}. e.g. _7250_Initial ().
In order to recognize the difference between DOS library and Windows
library, A capital "W" is put on the head of each function
name of the Windows DLL driver. e.g. W_7250_Initial
()
There are 20 function calls provided by each driver for PCI-7250 Digital
I/O cards; all drivers ( DOS, Win-31, Win-95 and Win-NT) provide the same
function capability. The function names using in Windows is only a capital
"W" is put on the head of each function name of DOS library.
The detailed description of each function are specified in the following
sections.
5.4 _7250_Initial
@ Description
A PCI-7250 card is initialized according to the
card number.
Because the PCI-7250 is PCI bus architecture and
meets the plug and play design, the IRQ and base_address
( pass-through address) are assigned by system BIOS directly.
Every PCI-7250 card has to be initialized by this
function before calling other functions.
Note : Because
configuration of PCI-7250 is handled by the system, there is no jumpers
or IRQ selection on the PCI boards that need to be set up by the users.
@ Syntax
assigned by system BIOS directly.
C/C++ ( DOS)
U16 _7250_Initial(U16 *existCards, PCI_INFO *pciInfo
)
existCards :
The numbers of installed PCI-7248 cards. The returned value shows how many
PCI-7248 cards are installed in your system.
pciinfo: It is a structure to memorize the PCI bus plug and play
initiallization information which is decided by p&p BIOS. The PCI_INFO
structure is defined in PCI_7250.H. The base I/O address and the interrupt
channel number is stored in pciinfo which is for reference.
U16 means unsigned short integer
ERR_NoError
ERR_PCIBiosNotExist
5.5. _7250_DI
@ Description
This function is used to read data from digital input port. There are
8-bit digital inputs on the PCI-7250 or PCI-7251 extended board. You can
get all 32 input data from _7250_DI by using this function.
@ Syntax
C/C++ ( DOS)
U16 _7250_DI( U16 cardNo, U16 diChannelNo, U8
*diData )
@ Argument :
cardNo : card
number to select borad
diChannelNo : Digital Input Channel No, the constant is
DI_PORT0 0x00 Access the 8 Digital Input of PCI-7250
DI_PORT1 0x01 Access the 8 Digital Input of
Expansion Board PCI-7251#1
DI_PORT2 0x02 Access the 8 Digital Input of
Expansion Board PCI-7251#2
DI_PORT3 0x03 Access the 8 Digital Input of
Expansion Board PCI-7251#3
diData : return
8-bit value from digital port.
@ Return Code :
5.6. _7250_DO
@ Description
This function is used to write data to digital
output port which can energized RELAY ON/OFF. There are 8-bit digital outputs
on the PCI-7250 or PCI-7251 extended board. You can control all 32 RELAYs
through _7250_DO by using this function.
@ Syntax
C/C++ ( DOS)
U16 _7250_DO(U16 cardNo, U16 doChannelNo, U8 doData
)
@ Argument :
cardNo : card
number to select borad
doChannelNo : Digital Output Channel No, the constant is
DO_PORT0 0x00 Access the 8 Digital Input of PCI-7250
DO_PORT1 0x01 Access the 8 Digital Input of
Expansion Board PCI-7251#1
DO_PORT2 0x02 Access the 8 Digital Input of
Expansion Board PCI-7251#2
DO_PORT3 0x03 Access the 8 Digital Input of
Expansion Board PCI-7251#3
diData : value
will be written to digital output port
@ Return Code :
ERR_NoError
5.7. _7250_DO_Read_Back
@ Description
This function is used to read-back data from digital
output port which is control by 7250_DO function. There are 8-bit
digital outputs on the PCI-7250 or PCI-7251 extended board. You can get
back all 32 RELAYs status ( ON or OFF) by using this function.
@ Syntax
C/C++ ( DOS)
U16 _7250_DO_Read_Back (U16 cardNo, U16 doChannelNo,
U8 *doReadBackData )
@ Argument :
cardNo : card
number to select borad
doChannelNo : Digital Output Channel No, the constant is
DO_PORT0 0x00 Access the 8 Digital Input of PCI-7250
DO_PORT1 0x01 Access the 8 Digital Input of
Expansion Board PCI-7251#1
DO_PORT2 0x02 Access the 8 Digital Input of
Expansion Board PCI-7251#2
DO_PORT3 0x03 Access the 8 Digital Input of
Expansion Board PCI-7251#3
diReadBackData : value
is read back from digital output port
@ Return Code :
ERR_NoError
5.8. _7250_Check_Exist
@ Description
This function is used to check the exist of PCI-7251
expanded board. For normal configuration, each PCI-7250 can be connected
with three expanded PCI-7251 boards. This function can be used to check
if each of the PCI-7251 is existed or not.
@ Syntax
C/C++ ( DOS)
U16 _7250_Check_Exist (U16 cardNo, U16 extnesionBoardNo)
@ Argument :
cardNo : card
number to select borad
existBoardNo : Extension PCI-7251 No.
PCI_7251_EX1 0x01 PCI-7251 Board #1
PCI_7251_EX2 0x02 PCI-7251 Board #2
PCI_7251_EX3 0x03 PCI-7251 Board #3
@ Return Code :
PCI_7251_EXIST 1
PCI_7251_NOT_EXIST 0
6
If your PCI-7250 can not work properly, use the
information in this chapter to isolated the problem. You can use the DOS
debug program to verify the functionality of your PCI-7250 card. The verification
procedures are as follows.
Note : Before
doing the following procedures, please inspect your PCI-7250 is not damaged
and your computer system is proper operation.
1. Plus your PCI-7250 into your PCI slot, and
turn the power on.
2. Make sure the base address, which is assigned by system BIOS, is
shown when the system is booted up, such as base address is Hex 6000
3. In DOS environment, execute DOS DEBUG utility
C> DEBUG <cr>
4. Using the following instructions to evaluate PCI-7250`s I/O functions.
- O 6000 FF ` All relay are energized and all
LEDs will be `turn on
- O 6000 00 ` All relay are OFF and all LEDs will be turn off
Prepare some input signals and connection with
your PCI-7250 card, and check its input status.
- I 6000 ` the input status will be read
If you get any incorrect results, such as the
LEDs does not turn on or off, or the input status does not match with your
input signals. Please contact your agent for extra service.
Note : Before
returning your PCI-7250 card for repair, please call your agent at first.
Appendix A. Relay Contact Protection Circuits
The contacts are the most important elements of
relay constructions, Contact performance conspicuously influenced by contact
material, and voltage and current values applied to the contacts.
Another important issue is contact protection,
a right contact protection circuit can suppress the counter emf to a low
level. However, note that incorrect use will result in an adverse effect.
Typical contact protection circuits are given below :
1. RC Circuit
This circuit is suitable for DC application. If
the load is a timer, leakage current flows through the RC circuit causing
faulting operation.
The below circuit is suitable for both AC and
DC applications. If the load is a relay or solenoid, the release time lengthens.
Effective when connected to both contacts if the power supply voltage is
24V or 48V and the voltage cross the load is 100 to 200V.
Device Selection :
As a guide in selecting R and C,
R : 0.5 to 1 per 1V contact voltage
C : 0.5 to 1 µF per 1A contact current
Value vary depending on the properties of the
capacity C acts to suppress the discharge the moment the contacts open.
Resistor R acts to limit the current when the power is turned on the next
time. Test to confirm. Use a capacitor with a breakdown voltage of 200
to 300V. Use AC type capacitors (non-polarized) for AC circuits.
2. Diode Circuit
This circuit is suitable for DC application. The
diode connected in parallel causes the energy stored in the coil to flow
to the coil in the form of current and dissipates it as joule heat at the
resistance component of the inductive load. This circuit further delays
the release time compared to the RC circuit.
Device Selection :
Use a diode with a reverse breakdown voltage at
least 10 times the circuit voltage and a forward current at least as large
as the load current. In electronic circuits where the circuit voltages
reverse breakdown voltage of above 2 to 3 times the power supply voltage.
3. Diode & Zener diode Circuit
This circuit is also suitable for DC application.
Effective when the release time i the diode circuit is too long.
Device Selection :
Use a zener diode with a zener voltage about the
same as the power supply voltage.
4. Varistor Circuit
This circuit is also suitable for both AC &
DC applications. Using the stable voltage characteristics of the varistor,
this circuit prevents excessively high voltages from being applied across
the contacts. This circuit also slightly delays the release time. Effective
when connected to both contacts of the power supply voltage is 24 or 48V
and the voltage across the load is 100 to 200 V.
Seller warrants that equipment furnished will be
free form defects in material and workmanship for a period of one year from
the confirmed date of purchase of the original buyer and that upon written
notice of any such defect, Seller will, at its option, repair or replace
the defective item under the terms of this warranty, subject to the provisions
and specific exclusions listed herein.
This warranty shall not apply to equipment that has been previously repaired
or altered outside our plant in any way as to, in the judgment of the manufacturer,
affect its reliability. Nor will it apply if the equipment has been used
in a manner exceeding its specifications or if the serial number has been
removed.
Seller does not assume any liability for consequential damages as a result
from our products uses, and in any event our liability shall not exceed
the original selling price of the equipment.
The equipment warranty shall constitute the sole and exclusive remedy
of any Buyer of Seller 9273 equipment and the sole
and exclusive liability of the Seller, its successors or assigns, in connection
with equipment purchased and in lieu of all other warranties expressed implied
or statutory, including, but not limited to, any implied warranty of merchant
ability or fitness and all other obligations or liabilities of seller, its
successors or assigns.
The equipment must be returned postage-prepaid. Package it securely and
insure it. You will be charged for parts and labor if you lack proof of
date of purchase, or if the warranty period is expired.


©1995 Circuit Specialists, Inc.