ADLINK PCI-7396 User Manual

NuDAQ
PCI-7348/7396
48/96-CH Digital I/O Cards
DIN-96DI, DIN-96DO
©Copyright 2002 ADLINK Technology Inc. All Rights Reserved. Manual Rev. 1.22 June 7, 2002 Pato No : 50-11107-200
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, DAQBench are 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
Sales & Service
service@adlinktech.com
TEL +886
-2-
82265877
FAX +886
-2-
82265717
Address
9F, No. 166, Jian Yi Road, Chungho City, Taipei, 235 Taiwan,
Company/Organization
Contact Person
E-mail Address
Address
Country
TEL
FAX
Product Model
OS: Computer
Customer Satisfaction is always the most important thing for ADLINK Tech Inc. If you need any help or service, please contact us and get it.
ADLINK Technology Inc.
Web Site
Technical Support
Please inform or FAX us of your detailed information for a prompt, satisfactory and constant service.
Web Site Questions
http://www.adlinktech.com
NuDAQ nudaq@adlinktech.com automation automation@adlinktech.com NuIPC nuipc@adlinktech.com NuPRO/EBC nupro@adlinktech.com
Detailed Company Information
Environment to Use
M/B: CPU: Chipset: BIOS: Video Card: Network Interface Card: Other:
Challenge Description Suggestions to
ADLINK
Table of Contents
Chapter 1 Introduction......................................................1
1.1 Features.................................................................................1
1.1.1 Digital I/O Ports...............................................................................1
1.1.2 Timer / Counter and Interrupt System..........................................2
1.1.3 Miscellaneous.................................................................................2
1.2 Applications............................................................................2
1.3 Specifications.........................................................................3
1.4 Software Supporting...............................................................4
1.4.1 Programming Library .....................................................................4
1.4.2 PCIS-LVIEW: LabVIEW® Driver....................................................5
1.4.3 PCIS-VEE: HP-VEE Driver............................................................5
1.4.4 DAQBenchTM: ActiveX Controls....................................................5
1.4.5 PCIS-DDE: DDE Server and InTouchTM......................................5
1.4.6 PCIS-ISG: ISaGRAFTM driver........................................................5
1.4.7 PCIS-ICL: InControlTM Driver.........................................................6
1.4.8 PCIS-OPC: OPC Server.................................................................6
Chapter 2 Installation........................................................7
2.1 What You Have......................................................................7
2.2 Unpacking...............................................................................8
2.3 PCI-7396 Layout....................................................................9
2.4 Hardware Installation Outline................................................10
2.5 Connectors’ Pin Assignment of PCI-7348.............................11
2.6 Connectors’ Pin Assignment of PCI-7396.............................12
2.7 Jumpers’ Description............................................................13
2.7.1 Power-on-state..............................................................................13
2.8 Termination Boards Supporting.............................................14
2.8.1 Connect with DIN-100S................................................................14
2.8.2 Connect with DIN-96DI.................................................................14
2.8.3 Connect with DIN-96DO...............................................................14
Chapter 3 Registers Format...........................................15
3.1 PCI PnP Registers...............................................................15
3.2 I/O Address Map...................................................................17
3.3 Digital Data Registers ..........................................................18
3.4 Control Register...................................................................19
Table of Contents i
3.5 External Trigger Enable Register..........................................19
3.6 External Trigger Disable Register.........................................20
3.7 Change of State (COS) Control Register..............................20
3.8 Interrupt Source Control (ISC) Register................................21
3.9 Clear Interrupt Register........................................................22
3.10 Timer/Counter Register.........................................................22
3.11 High Level Programming.......................................................22
Chapter 4 Operation Theorem........................................23
4.1 Digital I/O Ports....................................................................23
4.1.1 Introduction....................................................................................23
4.1.2 External Trigger............................................................................23
4.2 8254 Timer/Counter Operation.............................................25
4.2.1 Introduction....................................................................................25
4.2.2 Cascaded 32 bits Timer...............................................................25
4.2.3 Event Counter and Edge Control................................................25
4.3 Interrupt Circuit.....................................................................26
4.3.1 System Architecture.....................................................................26
4.3.2 IRQ Level Setting..........................................................................26
4.3.3 Dual Interrupt System...................................................................27
4.3.4 Interrupt Source Control (ISC).....................................................28
4.3.5 Change of State (COS) Interrupt.................................................29
4.4 12V and 5V Power Supply ....................................................30
Chapter 5 C/C++ Libraries..............................................31
5.1 Libraries Installation.............................................................31
5.2 Programming Guide..............................................................32
5.2.1 Naming Convention.....................................................................32
5.2.2 Data Types....................................................................................32
5.3 _7396_Initial........................................................................33
5.4 _7396_DI.............................................................................34
5.5 _7396_DO ...........................................................................36
5.6 _7396_Config_Port..............................................................37
5.7 _7396_Software_Reset.......................................................39
5.8 _7396_INT_Source_Control.................................................40
5.9 _7396_COSIRQ_Control......................................................41
5.10 _7396_CLR_IRQ ..............................................................42
5.11 _7396_Set_Event_Edge ...................................................43
5.12 _7396_Cascaded_Timer...................................................44
5.13 _7396_Timer_Start ...........................................................45
ii Table of Contents
5.14 _7396_Timer_Read ..........................................................46
Appendix 1 DIN-96DI....................................................47
A1.1 Introductions .....................................................................47
A1.2 Features ...........................................................................47
A1.3 Specifications ...................................................................47
A1.4 Layout of DIN-96DI...........................................................49
A1.5 DI Circuits and Wiring .......................................................50
Appendix 2 DIN-96DO...................................................51
A2.1 Introductions .....................................................................51
A2.2 Features ...........................................................................51
A2.3 Specifications ...................................................................51
A2.4 Layout of DIN-96DO..........................................................53
A2.5 Circuits and Wiring............................................................54
Warranty Policy...............................................................56
Table of Contents iii
How to Use This Guide
This manual is designed to help you use the PCI-7396. It describes how to modify and control various functions on the PCI-7396 card to meet your requirements. It is divided into three chapters:
u Chapter 1, "Introduction," gives an overview of the product features.
applications, and specifications.
u Chapter 2, "Installation," describes how to install the PCI-7396. The
layout of PCI-7396 is shown. The jumper settings, the connectors’ pin assignment, and the other notes for installation are described.
u Chapter 3, "Registers’ Format," describes the details of registers’
format and structure of the PCI-7396, this information is very important for the programmers who want to control the hardware by low-level programming language.
u Chapter 4, "Operation Theorem" describes more details about the
versatile functions, including DIO, timer / counter, and interrupt systems.
u Chapter 5, "C/C++ Software Libraries" specifies the software libraries
of C/C++ language under DOS environment that make you operate the functions of this card easily.
How to Use This Guide iv
1
Introduction
The PCI-7396 is a 48/96-bit parallel digital input/output (DIO) card designed for industrial applications. The plug and play feature of PCI-Bus architecture make it easy for users to install their systems quickly.
The PCI-7396 emulates two/four 8255 Programmable Peripheral Interface (PPI) chips. Each PPI offers 3 8-bit DIO ports which can be accessed simultaneously. The total 6/12 ports can be programmed as input or output independently.
The PCI-7396 supports external trigger to latch the digital input data. The function of “Change of State” (COS) interrupt is provided. It means when anyone of these digital inputs changes its state, an interrupt will be generated for user to handle this external event.
1.1 Features
The PCI-7396 Digital I/O boards provide the following advanced features:
1.1.1 Digital I/O Ports
u 48/96 TTL compatible digital I/O lines u SCSI-type 100-pin connector (AMP-787082-9) u 48mA High current driving capability per channel u Output status read-back u Support external trigger to latch digital input data (PCI-7348 only)
Introduction 1
1.1.2 Timer / Counter and Interrupt System
u A programmable 32-bit timer to generate timer interrupt u A programmable 16-bit event counter to generate event interrupt u 48/96-bit change of state (COS) interrupt u Dual interrupt system
1.1.3 Miscellaneous
u Provide 12V and 5V power supply on SCSI-type 100-pin
connectors(only for PCI-7348)
u On board resettable fuses to protect power supply from external
damage. (only for PCI-7348)
1.2 Applications
u Programmable mixed digital input & output u Industrial monitoring and controlling u LED indicator driving u Parallel data transfer u TTL,DTL, and CMOS logic sensing
2 Introduction
1.3 Specifications
I/O channels 48-bit for PCI-7348
96-bit for PCI-7396
Input Signal Logic High Voltage
Logic Low Voltage Logic High Current Logic Low Current
Output Signal Logic High Voltage
Logic Low Voltage Logic High Current Logic Low Current
Operating Temperature 0° ~ 60° C Storage Temperature -20° ~ 80° C
Humidity 5% ~ 95% non-condensing I/O Connectors 100-pin SCSI connector Bus PCI bus, rev 2.1 IRQ Level Set by PCI BIOS I/O port address Set by PCI BIOS Power Consumption (without external devices) Transfer Rate 1M bytes/sec (Typical) Size Half-size PCB : 158 mm x 107 mm
PCI-7348 : 350mA (TYP) PCI-7396 : 450mA (TYP)
: 2.0 V to 5.25V : 0.0 V to 0.80V : 0.1 uA : -8 mA : Typical 3.3 V : Minimum 2.4 V : Maximum 0.5V : -15.0 mA : 48.0 mA
Introduction 3
1.4 Software Supporting
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 package such as LabVIEW®, HP VEETM, DASYLabTM, 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 with your dealer to purchase the formal 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:
u DOS Library: Borland C/C++ and Microsoft C++, the functions
descriptions are included in this user’s guide.
u Windows 95 DLL: For VB, VC++, Delphi, BC5, the functions
descriptions are included in this user’s guide.
u 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)
u PCIS-DASK/X: Include device drivers and shared library for Linux. The
developing environment can be Gnu C/C++ or any programming language that allows linking to a shared library. The user's guide and function reference manual of PCIS-DASK/X are in the CD. (\\Manual_PDF\Software\PCIS-DASK-X.)
The above software drivers are shipped with the board. Please refer to the “Software Installation Guide” to install these drivers.
4 Introduction
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 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)
1.4.3 PCIS-VEE: HP-VEE Driver
The PCIS-VEE includes the user objects, which are used to interface with HP VEE software package. PCIS-VEE supports Windows 95/98/NT. The HP-VEE drivers are free 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 DAQBenchTM: ActiveX Controls
We suggest the customers who are familiar with ActiveX controls and VB/VC++ programming use the DAQBenchTM ActiveX Control components library for developing applications. The DAQBenchTM is designed under Windows NT/98. For more detailed information about DAQBench, please refer to the user’s guide in the CD.
(\\Manual_PDF\Software\DAQBench\DAQBench Manual.PDF)
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 included in the ADLINK CD. It needs license. The DDE server can be used conjunction with any DDE client under Windows NT.
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 drivers for ISaGRAF under Windows NT environment. The PCIS-ISG is included in the ADLINK CD. It needs license.
Introduction 5
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.
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 NT. It needs license.
6 Introduction
2
Installation
This chapter describes how to install the PCI-7396. The contents in the package and unpacking information that you should be careful are described.
Please follow the steps to install the PCI-7348/7396.
u Check what you have (section 2.1) u Unpacking (section 2.2) u Check the PCB (section 2.3) u Install the hardware (section 2.4) u Please refer to the “Software Installation Guide” to install the software
drivers.
2.1 What You Have
In addition to this User's Manual, the package includes the following items:
u PCI-7396 96-bits Parallel Digital I/O Card u ADLINK CD u Software Installation Guide
If any of thes e items is missing or damag ed, 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.
Installation 7
2.2 Unpacking
Your PCI-7396 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, exact the system module and place it only on a grounded anti-static surface component side up.
Note: DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN
DAMAGED.
You are now ready to install your PCI-7396.
8 Installation
2.3 PCI-7396 Layout
Figure 2.1 PCI-7396 Layout
Installation 9
2.4 Hardware Installation Outline
Hardware configuration
The PCI cards (or CompactPCI cards) are equipped with plug and play PCI controller, it can request base addresses and interrupt according to PCI standard. The system BIOS will install the system resource based on the PCI cards’ configuration registers and system parameters (which are set by system BIOS). Interrupt assignment and memory usage (I/O port locations) of the PCI cards can be assigned by system BIOS only. These system resource assignments are done on a board-by-board basis. It is not suggested to assign the system resource by any other methods.
PCI slot selection
The PCI card can be inserted to any PCI slot without any configuration for system resource.
Installation Procedures
1 Turn off your computer 2 Turn off all accessories (printer, modem, monitor, etc.) connected to
your computer. 3 Remove the cover from your computer. 4 Setup jumpers on the PCI or CompactPCI card. 5 Select a 32-bit PCI slot. PCI slot are short than ISA or EISA slots, and
are usually white or ivory. 6 Before handling the PCI cards, discharge any static buildup on your
body by touching the metal case of the computer. Hold the edge and
do not touch the components. 7 Position the board into the PCI slot you selected. 8 Secure the card in place at the rear panel of the system.
10 Installation
(51)
2.5 Connectors’ Pin Assignment of PCI-7348
The I/O pin assignment of PCI-7348 is shown in the Figure 2.2.
(1) P1A0 (26) P2A0 (51) EVENT (76) GND
(1) (2) (3)
(48) (49) (50)
(52) (53)
(98) (99) (100)
The DIO pin names are specified as PnXb, where
n : means the PPI number of the PCI-7348, n=1~2 X : means the port name of the PPI, X= ‘A’ , ‘B’ or ‘C’ b: means the bit number of the port, b=0~7
For example, P1C4 means bit 4 of port C on PPI1.
EXTTRG : External trigger signal to latch digital input data EVENT : External event source for counter 0
V5V : +5V power supply output +12V : +12v power supply output GND : Ground
(2) P1A1 (27) P2A1 (52) GND (77) GND (3) P1A2 (28) P2A2 (53) GND (78) GND (4) P1A3 (29) P2A3 (54) GND (79) GND (5) P1A4 (30) P2A4 (55) GND (80) GND (6) P1A5 (31) P2A5 (56) GND (81) GND (7) P1A6 (32) P2A6 (57) GND (82) GND (8) P1A7 (33) P2A7 (58) GND (83) GND (9) P1B0 (34) P2B0 (59) GND (84) GND (10) P1B1 (35) P2B1 (60) GND (85) GND (11) P1B2 (36) P2B2 (61) GND (86) GND (12) P1B3 (37) P2B3 (62) GND (87) GND (13) P1B4 (38) P2B4 (63) GND (88) GND (14) P1B5 (39) P2B5 (64) GND (89) GND (15) P1B6 (40) P2B6 (65) GND (90) GND (16) P1B7 (41) P2B7 (66) GND (91) GND (17) P1C0 (42) P2C0 (67) GND (92) GND (18) P1C1 (43) P2C1 (68) GND (93) GND (19) P1C2 (44) P2C2 (69) GND (94) GND (20) P1C3 (45) P2C3 (70) GND (95) GND (21) P1C4 (46) P2C4 (71) GND (96) GND (22) P1C5 (47) P2C5 (72) GND (97) GND (23) P1C6 (48) P2C6 (73) GND (98) GND (24) P1C7 (49) P2C7 (74) GND (99) EXTTRG (25) V5V (50) +12V (75) V5V (100) +12V
Note : The power supply pins are protected by resettable fuses. Refer
to section 4.4 for details of the power supply.
Installation 11
2.6 Connectors’ Pin Assignment of PCI-7396
(48) (49) (50)
(1) (2) (3)
(51) (52) (53)
(2) P1A1 (27) P2A1 (52) P3A1 (77) P4A1 (3) P1A2 (28) P2A2 (53) P3A2 (78) P4A2 (4) P1A3 (29) P2A3 (54) P3A3 (79) P4A3 (5) P1A4 (30) P2A4 (55) P3A4 (80) P4A4 (6) P1A5 (31) P2A5 (56) P3A5 (81) P4A5 (7) P1A6 (32) P2A6 (57) P3A6 (82) P4A6 (8) P1A7 (33) P2A7 (58) P3A7 (83) P4A7 (9) P1B0 (34) P2B0 (59) P3B0 (84) P4B0 (10) P1B1 (35) P2B1 (60) P3B1 (85) P4B1 (11) P1B2 (36) P2B2 (61) P3B2 (86) P4B2 (12) P1B3 (37) P2B3 (62) P3B3 (87) P4B3 (13) P1B4 (38) P2B4 (63) P3B4 (88) P4B4 (14) P1B5 (39) P2B5 (64) P3B5 (89) P4B5 (15) P1B6 (40) P2B6 (65) P3B6 (90) P4B6 (16) P1B7 (41) P2B7 (66) P3B7 (91) P4B7 (17) P1C0 (42) P2C0 (67) P3C0 (92) P4C0 (18) P1C1 (43) P2C1 (68) P3C1 (93) P4C1
(1) P1A0 (26) P2A0 (51) P3A0/EVENT (76) P4A0
(98) (99) (100)
(19) P1C2 (44) P2C2 (69) P3C2 (94) P4C2 (20) P1C3 (45) P2C3 (70) P3C3 (95) P4C3 (21) P1C4 (46) P2C4 (71) P3C4 (96) P4C4 (22) P1C5 (47) P2C5 (72) P3C5 (97) P4C5 (23) P1C6 (48) P2C6 (73) P3C6 (98) P4C6 (24) P1C7 (49) P2C7 (74) P3C7 (99) P4C7/EXTTRG (25) GND (50) GND (75) GND (100) GND
Figure 2.3 Connectors Pin Assignment of PCI-7396
The DIO pin names are specified as PnXb, where n : means the PPI number of the PCI-7396, n=1~4 X : means the port name of the PPI, X= ‘A’ , ‘B’ or ‘C’ b: means the bit number of the port, b=0~7 For example, P1C4 means bit 4 of port C on PPI1.
EXTTRG : External trigger signal to latch digital input data EVENT : External event source for counter 0
GND : Ground
12 Installation
Loading...
+ 45 hidden pages