NuDAQ PCI-7256 User manual

NuDAQ
PCI-7256
Latching Relay Actuator &
Isolated D/I Cards
User’s Guide
Recycled Paper

©Copyright 2001 ADLINK Technology Inc.
All Rights Reserved.
Manual Rev : 1.00 December 11, 2001
Part NO : 50-11127-100
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
NuDAQ is registered trademarks of ADLINK Technology Inc. Other product
names mentioned herein are used for identification purposes only and may be
trademarks and/or registered trademarks of their respective companies.

Getting service from ADLINK
♦Customer Satisfaction is always the most important thing to ADLINK. If you
need any help or service, please contact us.
ADLINK Technology Inc.
Web Site http://www.adlinktech.com
Sales & Service
w
Technical NuDAQ + USBDAQ [email protected]
Support Automation [email protected]
TEL +886-2-82265877 FAX +886-2-82265717
Address 9F, No. 166, Jian Yi Road, Chungho City, Taipei, 235
Taiwan
♦Please inform or FAX us of your detailed information for a prompt,
satisfactory and constant service.
Detailed Company Information
Company/Organization
Contact Person
E-mail Address
Address
Country
TEL FAX
Web Site Questions
Product Model
OS
Computer Brand
M/B: CPU:
Chipset: BIOS:
Video Card:
Network Interface Card:
Environment to Use
Other:
Challenge Description
Suggestions to
ADLINK

Table of Contents•i
Table of Contents
Chapter 1 Introduction .............................................................1
1.1 Features.................................................................................2
1.2 Applications ............................................................................2
1.3 Specifications .........................................................................3
1.4 Software Support ....................................................................5
1.4.1 Programming Library.........................................................................5
1.4.2 PCIS-LVIEW: LabVIEW®Driver......................................................5
1.4.3 PCIS-VEE: VEE Driver......................................................................6
1.4.4 PCIS-OCX: ActiveX Controls............................................................6
1.4.5 PCIS-DDE: DDE Server and InTouchTM.........................................6
1.4.6 PCIS-ISG: ISaGRAFTM driver...........................................................6
1.4.7 PCIS-ICL: InControlTM Driver............................................................7
1.4.8 PCIS-OPC: OPC Server....................................................................7
Chapter 2 Installation................................................................8
2.1 What you have........................................................................8
2.2 Unpacking ..............................................................................9
2.3 PCB Layout ..........................................................................10
2.4 Jumper Setting .....................................................................11
2.4 External LED connection .......................................................12
2.5 Board ID...............................................................................13
2.6 Connector Pin Assignments...................................................14
2.7 Termination Board Connection...............................................15
Chapter 3 Register Format....................................................16
3.1 I/O Address Map...................................................................16
3.2 Relay Output Control Register ...............................................17
3.3 Relay Output Read Back Register..........................................18
3.4 Isolated Digital Input Register ................................................18
3.5 COS Setup Register..............................................................19
3.6 COS Latch Register..............................................................19
3.7 Interrupt Control Register ......................................................20
3.8 Interrupt Status Register........................................................22
3.9 Handling PCI Controller Registers ..........................................22
Chapter 4 Operation Theorem..............................................24
4.1 Latching Relay Output ...........................................................24

ii •Table of Contents
4.2 Isolated Digital Input..............................................................26
4.3Interrupt Architecture.............................................................27
4.4 Change of State(COS) Interrupt .............................................27
Chapter 5 C/C++ DOS Libraries ...........................................28
5.1 Programming Guide ..............................................................28
5.1.1 Naming Convention.......................................................................28
5.1.2 Data Types.......................................................................................29
5.2 _7256 Initial..........................................................................30
5.3 _7256_DO............................................................................31
5.4 _7256_DO_Read_Back.........................................................31
5.5 _7256_DI .............................................................................32
5.6 _7256_COS_Channel ...........................................................33
5.7 _7256_COS_Latch................................................................33
5.8 _7256_INT_Control...............................................................34
5.9 _7256_CLR_IRQ ..................................................................35
5.10 _7256_GET_IRQ_Status.......................................................35
Appendix A. Relay Contact Protection Circuits.......36
Warranty Policy........................................................................39

How to Use This Guide•iii
How to Use This Guide
This manual is for helping users to manipulate the PCI-7256. It is divided into
5 chapters.
•Chapter 1, Introduction, gives an overview of the product features,
applications, and specifications.
•Chapter 2, Installation, describes how to install the PCI-7256. The
layout of PCI-7256 is shown, and jumper setting for
digital input filter, external LED connection and Board ID
switch are specified. The connectors’ pin assignments
are also described.
•Chapter3, Register Format, describes the details of register format
and structure of the PCI-7256. This information is very
important for the programmers who want to control the
hardware by low level programming.
•Chapter 4, Operation Theorem, describes how to operate the PCI-
7256. The latching relay, isolated digital input and
change-of-state functions are introduced. Some
programming concepts are also described.
•Chapter 5, C/C++ libraries, describes the software utility and the
library of PCI-7256, and also describes how to meet your
requirements and help you to program your own
software application.
•Appendix A, relay Contact Protection Circuits, provides the
information about relay contact protection circuits.

Introduction •1
1
Introduction
The PCI-7256 Latching Relay Actuator and Isolated D/I card is a basic
Digital I/O card for PCI bus computer in industrial applications.
This PCI-7256 provide 16 latching relay actuators and 16 opto-isolated digital
inputs. All relays are Form C type. They are very suitable for ON/OFF control
devices.
All of the digital input channels are identical non-polarity opto-isolated, each
of them can be switchable by usingRC filter or non-RC filter. All channels are
isolated and suitable for collecting digital inputs in noisy environments. The
function of “Change-of-State” (COS) interrupt is provided. It means when any
of these digital inputs changes its state, an interrupt will be generated for
user to handle this external event.
Using latching relays, the PCI-7256 has the advantage of power saving. The
status of each latching relay output is reflected by a LED. When the latching
relay is in SET condition, its corresponding in-board LED will turn ON,
otherwise it is OFF.
Another useful feature is Board ID. It’s convenient for user to identify a
specified card by setting up a switch when user have two or more PCI-7256
cards in one system.
The I/O signals are via a 68-pin SCSI connector.

2•Introduction
1.1 Features
The PCI-7256 Latching Relay Actuator and D/I Card provides the following
advanced features:
•32-bit PCI-Bus, Plug and Play
•16 latching relay actuator outputs, the output status will remain when
power-off
•16 opto-isolated digital inputs for PCI-7256
•LED indicators to show the status of relays and can be read back
•Jumper selectable AC-filtered/non-AC-filtered input signals
•On-board relay driving circuits
•Change-of-State (COS) detection for digital input channels
•Digital input channel 0 & 1 interrupt
•Dry contact input available
•Board ID
1.2 Applications
•Industrial ON/OFF control
•External high power relay driving, Signal switching
•Laboratory automation
•Industrial automation
•Switch contact status sensing, limit switch monitoring,
•Cooperating with A/D and D/A cards to implement a data acquisition
& control system

Introduction •3
1.3 Specifications
♦Digital input
Input channels 16
Photo-coupler PC-3H4
Input current 10 mA rated
50 mA max. for isolated input
Input Voltage Up-to 24 VDC or 24V AC
Logic Low: 0~2V
Logic High 5~24V
Input impedance 4.7 KΩ
Input mode Isolation AC-filter/ Non-AC-filter
Isolated voltage 2,500 Vrms channel-to-system
♦Relay Output
Output channels 16
Relay type 16 DPDT ( Form C )
Contact rating 125V AC , 0.5 A
30V DC, 1A
Breakdown voltage 1000 Vrms
Release time 3 msec
Operate time 3 msec
Contact resistance 60mΩ
Insulation resistance 1000M Ωmin. (at 500 VDC)
Life expectancy
(min. operations) > 2 X 105times at 1A 30VDC
> 105times at 0.5A 125VAC
Vibration Resistance 176.4m/s2(18G), 10 to 55Hz
at double amplitude of 3mm
LED indicators Monitor SET/RESET status of each
relay; external LED connectors could
be applied
Power supply of Relay + 5V from the PCI-Bus
♦Isolated +5V Power Supply
Output Voltage +5V
Output Current 170mA max. (@ 40°C)
♦General Specifications
Dimension 174 mm x 106 mm, standard PCI half
size
Bus 32-bit PCI bus
Operating temperature 0 ~ 60 °C
Storage temperature -20 °C ~ 80 °C

4•Introduction
Humidity 5 to 95% non-condensing
♦Power Consumption
PCI-7256 +5V @ 340 mA (No relays energized)
980mA maximum when all relays are active
simultaneously

Introduction •5
1.4 Software Support
ADLINK provides versatile software drivers and packages for users’ different
approach to built-up a system. We not only provide programming library
such as DLL for many Windows systems, but also provide drivers for many
software packages such as LabVIEW®, VEETM, InTouchTM, InControlTM,
ISaGRAFTM, and so on.
All the software options are included in the ADLINK CD. The non-free
software drivers are protected with serial licensed code. Without the software
serial number, you can still install them and run the demo version for two
hours for demonstration purpose. Please contact ADLINK or the dealer to
purchase the software license serial code.
1.4.1 Programming Library
For customers who are writing their own programs, we provide function
libraries for many different operating systems, including:
•DOS Library: Borland C/C++ and, the functions descriptions are
included in this user’s guide.
•PCIS-DASK: Include device drivers and DLL for Windows 98,
Windows NT and Windows 2000. DLL is binary compatible across
Windows 98, Windows NT and Windows 2000. That means all
applications developed with PCIS-DASK are compatible across
Windows 98, Windows NT and Windows 2000. The developing
environment can be VB, VC++, Delphi, BC5, or any Windows
programming language that allows calls to a DLL. The user’s guide
and function reference manual of PCIS-DASK are in the CD. Please
refer the PDF manual files under \Manual_PDF\Software\PCIS-
DASK.
The above software drivers are shipped with the board. Please refer to the
“Software Installation Guide” to install these drivers.
1.4.2 PCIS-LVIEW: LabVIEW®Driver
PCIS-LVIEW contains the VIs, which are used to interface with NI’s
LabVIEW®software package. The PCIS-LVIEW supports Windows
95/98/NT/2000. The LabVIEW®drivers are free and shipped with the board.
You can install and use them without license. For detail information about
PCIS-LVIEW, please refer to the user’s guide in the CD.
(\Manual_PDF\Software\PCIS-LVIEW)

6•Introduction
1.4.3 PCIS-VEE: VEE Driver
The PCIS-VEE includes the user objects, which are used to interface with
VEE software package. PCIS-VEE supports Windows 95/98/NT/2000. The
VEE drivers are free and shipped with the board. You can install and use
them without license. For detail information about PCIS-VEE, please refer to
the user’s guide in the CD.
(\Manual_PDF\Software\PCIS-VEE)
1.4.4 PCIS-OCX: ActiveX Controls
We suggest the customers who are familiar with ActiveX controls and
VB/VC++ programming use PCIS-OCX ActiveX control components library
for developing applications. PCIS-OCX is designed for Windows 98/NT/2000.
For more detailed information about PCIS-OCX, please refer to the user's
guide in the CD.
(\Manual_PDF\Software\PCIS-OCX\PCIS-OCX.PDF)
The above software drivers are shipped with the board. Please refer to the
“Software Installation Guide” in the package to install these drivers.
Also ADLINK supplies an ActiveX control softwareDAQBench. DAQBench is
a collection of ActiveX controls for measurement or automation applications.
With DAQBench, you can easily develop custom user interfaces to display
your data, analyze data you acquired or received from some other sources,
and integrate with popular applications or data sources. For more detailed
information about DAQBench, please refer to the user's guide in the CD.
(\Manual_PDF\Software\DAQBench\DAQBenchManual.PDF)
You can also get a free 4-hour evaluation version of DAQBench from the CD.
DAQBench is charged software. Please contact ADLINK dealer or ADLINK to
purchase the software license.
1.4.5 PCIS-DDE: DDE Server and InTouchTM
DDE stands for Dynamic Data Exchange specifications. The PCIS-DDE
includes the PCI cards’ DDE server. The PCIS-DDE server is free and
included in the ADLINK CD. The DDE server can be used conjunction with
any DDE client under Windows 98/NT/2000.
1.4.6 PCIS-ISG: ISaGRAFTM driver
The ISaGRAF WorkBench is an IEC1131-3 SoftPLC control program
development environment. The PCIS-ISG includes ADLINK products’ target

Introduction •7
drivers for ISaGRAF under Windows NT environment. The PCIS-ISG is
included in the ADLINK CD. It needs license. Please contact ADLINK or
dealer to purchase the license.
1.4.7 PCIS-ICL: InControlTM Driver
PCIS-ICL is the InControl driver which support the Windows NT. The PCIS-
ICL is included in the ADLINK CD. It needs license. Please contact ADLINK
or dealer to purchase the license.
1.4.8 PCIS-OPC: OPC Server
PCIS-OPC is an OPC server, which can link with the OPC clients. There are
many software packages on the market can provide the OPC clients now.
The PCIS-OPC supports the Windows 98, NT, and 2000. Please contact
ADLINK or dealer to purchase the license.

8•Installation
2
Installation
This chapter describes how to install the PCI-7256. The contents in the
package and unpacking information that you should be careful are described.
2.1 What you have
In addition to the User’s Manual, the package includes the following items:
•PCI-7256 latching relay and digital input cards
•ADLINK Software CD
•Software Installation Guide
If any of these items is missing or damaged, contact ADLINK or 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.

Installation •9
2.2 Unpacking
Your PCI-7256 card contains sensitive electronic components that can be
easily damagedby static electricity.
The card should be operated 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
handling damages on the module before processing.
After opening the card module carton, extract the system module and place it
only on a grounded antistatic surface with 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-7256.

10 •Installation
2.3 PCB Layout
The location of connector, switch and jumpers are shown in the figure2.1.
They are described in the following sections.
Figure 2.1 PCI-7256 PCB Layout
CN1
JP2
JP1
S1
JP4
JP3

Installation •11
2.4 Jumper Setting
The PCI-7256 is a ‘plug and play’ add-on card for PCI bus. It is not necessary
for user to setup its base address and IRQ level to fit the hardware of your
computer system. However, to fit user’s versatile operation, there are still a
few jumpers to set for the digital input.
The jumpers on PCI-7256 card are used to configure the digital input
channels asAC-Filtered or Non-AC-Filtered inputs. Each digital input channel
and their corresponding jumpers are shown in the following Table2.1.
JUMPER INPUT SIGNAL
JP1 DI0 ~ DI7
JP2 DI8 ~ DI15
Table 2.1 The jumpers and DI channels
The default setting of the input signal selection is Non-AC-Filtered ( DC
signal input), which is shown as below :
Figure 2.2 Default Input Signal Jumper Setting

12 •Installation
2.4 External LED connection
Figure 2.3 External LED connectors for relay status indication
The PCI-7256 card has 16 LEDs on board to indicate the operation status of
the 16 relays. In addition, PCI-7256 also has 16 external LED connectors for
users’ applications. Utilizing external LEDsconnecting with the JP3 and JP4,
users can have their relays status shown on chassis ,panel or other
apparatus. Only LED which have fordward voltage (Vf) lower than 3V can
work normally. Each external LED connector has a current limiting resistor
(330O) connecting with +5V power, so it’s not necessary for user to add a
resistor to limit the current flow through LED.
The direction of the external LED’s connection is shown in Figure 2.3. Before
connect user’s LEDs on these connectors, make sure the LED is in the right
direction.

Installation •13
2.5 Board ID
When users plug two or more data acquisition cards in one system, it takes a
lot of efforts to identify one specific card. For easier identification, PCI-7256
provides a Board ID function. According to a DIP switch configuration located
in S1, users can assign a board ID to a specific card directly and access the
card correctly through software programming. For more details about Board
ID in programming, please refer to chapter 5.
Table 2.2 shows all of the switch setting conditions.
1 2 3 4
ON
Figure 2.4 Board ID setting
Switch No.
Board ID 1234
0
1
1
1
1
1
0
1
1
1
2
1
0
1
1
3
0
0
1
1
4
1
1
0
1
5
0
1
0
1
6
1
0
0
1
7
0
0
0
1
8
1
1
1
0
9
0
1
1
0
10
1
0
1
0
11
0
0
1
0
12
1
1
0
0
13
0
1
0
0
14
1
0
0
0
15
0
0
0
0
Note: 1=on, 0=off
Table 2.2 Board ID Setting Conditions

14 •Installation
2.6 Connector Pin Assignments
The PCI-7256 card is equipped with a 68-pin SCSI connector (CN1). The pin
assignment of the SCSI connector is described by Figure 2.5.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ISO5V
DI0
DI2
DI4
DI6
DICOM2
DI8
DI10
DI12
DI14
NC0
COM0
NO0
NC1
COM1
NO1
NC2
COM2
NO2
NC3
COM3
NO3
NC4
COM4
NO4
NC5
COM5
NO5
NC6
COM6
NO6
NC7
COM7
NO7
ISOGND
DI1
DI3
DI5
DI7
DICOM1
DI9
DI11
DI13
DI15
NC8
COM8
NO8
NC9
COM9
NO9
NC10
COM10
NO10
NC11
COM11
NO11
NC12
COM12
NO12
NC13
COM13
NO13
NC14
COM14
NO14
NC15
COM15
NO15
Figure 2.5 Pin Assignment of PCI-7256 CN1
Legend :
DI x :Digital input channel x, x= 0~15
DICOM x :DI common ground group x,
x=1 for DI channel 0~7, x=2 for DI channel 8~15
ISO5V :Isolated 5V power output
ISOGND :Isolated ground for +5V power output
NO x :Normal Open pin of relay x, x=0~15
COM x :Common pin of relay x, x=0~15
NC x :Normal Close pin of relay x, x=0~15
Table of contents
Popular Controllers manuals by other brands

dixell
dixell XT130C Installing and operating instructions

PS Automation
PS Automation PSF301 Short operating instructions

Selbit
Selbit ISP - 010 Manual handbook

EFI
EFI E-42B Installation and service guide

Vacon
Vacon CANopen OPTE6 user manual

LAUREL Electronics
LAUREL Electronics MAGNA RS485 Installation & operating manual