ADLINK PCI-7224 User Manual

®
NuDAQ
cPCI-7248/7249R
PCI-7224/7248/7296
24/48/96-CH Digital I/O Card
Users’ Guide
Recycled Paper
©Copyright 2004 ADLINK Technology Inc. All Rights Reserved. Manual Rev. 2.60: May 25, 2004 Part No. 50-11104-201
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 inabi lity 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, NuIPC, 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
Customer Satisfaction is top priority for ADLINK TECHNOLOGY INC. If you need any help or service, please contact us.
ADLINK TECHNOLOGY INC.
Web Site http://www.adlinktech.com 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
Please email or FAX your detailed information for prompt, satisfactory, and consistent 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:
Environment
Detail Description
Chipset: BIOS: Video Card: NIC: Other:
Suggestions for ADLINK
Table of Contents
Chapter 1 Introduction ..............................................................1
1.1
1.2
1.3
1.4
Chapter 2 Installation ................................................................9
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
Chapter 3 Registers Format....................................................23
3.1
3.2
Chapter 4 Operation Theorem................................................25
4.1
4.2
4.3
4.4
Features .................................................................................2
Applications............................................................................2
Specifications .........................................................................3
Software Support....................................................................5
What You Have ......................................................................9
Unpacking.............................................................................10
PCB Layout ..........................................................................11
Hardware Installation............................................................13
Device Installation for Windows Systems ............................14
Connector Pin Assignment...................................................15
Jumpers Description.............................................................19
Termination Boards Connection...........................................20
PCI Plug and Play Registers................................................23
I/O Address Map...................................................................24
Digital I/O Ports ....................................................................25
Timer/Counter Operation......................................................28
Interrupt Multiplexing............................................................29
12V and 5V Power Supply ...................................................31
Chapter 5 C/C++ Libraries.......................................................33
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
5.9
Libraries Installation .............................................................33
Programming Guide .............................................................34
_7248/96_Initial....................................................................35
Digital Input...........................................................................36
Digital Output........................................................................38
Configuration Port.................................................................39
Configuration Channel..........................................................40
Set Interrupt Control.............................................................42
Timer Start............................................................................43
Table of Contents • i
5.10 Timer Read...........................................................................44
5.11 Timer Stop............................................................................45
5.12 Cascaded Timer...................................................................46
5.13 Get IRQ Status.....................................................................47
5.14 Clear IRQ..............................................................................48
5.15 Software Reset.....................................................................48
5.16 Interrupt Start under Windows..............................................49
5.17 Interrupt Stop under Windows..............................................50
ii • Table of Contents
How to Use This Guide
This manual is designed to help you use the 7248/96 series products. It describes how to modify and control various functions on the cards to meet your requirements. It is divided into five chapters:
Chapter 1, Introduction
applications, and specifications.
Chapter 2, Installation
products. The layout of the card is shown; as well as the description for the jumper settings, connectors specifications, and installation.
Chapter 3, Registers Format
structure and format of the PCI-7224/7248/7296.
Chapter 4, Operation Theorem
system’s versatile functions, including DIO, timer / counter, and interrupt systems.
Chapter 5, C/C++ Library
language under DOS environment allowing the ease of use of the functions on this card for the user.
, gives an overview of the product features,
, describes how to install the 7248/96 series
, describes the low-level register
, describes in further detail of the
specifies the software library of C
How to use this guide • iii
1
Introduction
The 7248/7296 series products are general purpose digital I/O cards. This series includes four cards:
PCI-7224: 24-CH DIO card
PCI-7248: 48-CH DIO card
PCI-7296: 96-CH DIO card
cPCI-7248: 3U CompactPCI 48-CH DIO card
cPCI-7249R: 3U CompactPCI 48-CH DIO card with Rear I/O
The 7248 series products are multi-function digital I/O boards used for industrial PC with PCI bus or CompactPCI bus. The cards are Plug and Play therefore it is not necessary to set any jumper for configuration of I/O address or interrupt resources.
PCI-7248 and PCI-7296 are 48-channel and 96-channel DIO cards respectively. PCI-7224 is a reduced version of PCI-7248, where all functions are exactly the same as PCI-7248 with the exception that there are only 24 channels. The cPCI-7248 is the 3U CompactPCI version of the PCI-7248. The software is fully compatible with the PCI-7248. In this manual, if the specifications for PCI-7224 and cPCI-7248’s are not specified, they are the same as that of PCI-7248.
The PCI-7248 emulates two industry standard 8255 Programmable Peripheral Interface (PPI) chips operated under mode zero configuration. The PCI-7296 emulates four PPI chips. These two cards are compatible not only on hardware connectors but also on software programming.
The cPCI-7248 is the CompactPCI version of PCI-7248. All the functions are exactly the same as PCI-7248. The cPCI-7249 is an extended version of cPCI-7248, with an additional latch register and rear I/O capability.
Every PPI connector has 3 ports: PA, PB, and PC. The PC can also be subdivided into 2 nibble-wide (4-bit) ports - PC Upper and PC Low. Each connector corresponds to one PPI chip with 24 DIO points. PCI­7224/7248/7296 are equipped with one, two, and four 50-pin male ribbon connectors respectively. The cPCI-7248 is equipped with one 100-pin SCSI­type connector.
Introduction • 1
1.1 Features
The 7248/96 series products provide the following advanced features:
1.1.1 Digital I/O Ports
24/48/96 TTL/DTL compatible with digital I/O lines
Emulates industry standard mode 0 of 8255 PPI
Buffered circuits for higher driving
Direct interface with OPTO-22 compatible I/O module
Output status read-back
1.1.2 Timer/Counter and Interrupt System
A 32 bits timer to generate watchdog timer interrupt
A 16 bits event counter to generate event interrupt
Programmable interrupt source
Dual interrupt system
1.1.3 Miscellaneous
Provide 12V and 5V power supply on OPTO-22 connectors
On board reset-able fuses to protect power supply for external
devices
1.2 Applications
Programmable mixed digital input & output
Industrial monitoring and control
Digital I/O control
Contact closure, switch/keyboard monitoring
Connects with OPTO-22 compatible modules
Useful with A/D and D/A to implement a data acquisition and control
system
2 • Introduction
1.3 Specifications
I/O channels
Digital Input Signal
Digital Output Signal (Port A & B)
Digital Output Signal (Port C)
Operating Temperature Storage Temperature Humidity I/O Connectors
Bus Power Consumption
(without external devices)
Transfer Rate
24-bit for PCI-7224 48-bit for PCI-7248 96-bit for PCI-7296 48-bit for cPCI-7248 and cPCI-7249R Logic High Voltage: 2.0 V to 5.25V Logic Low Voltage: 0.0 V to 0.80V Logic High Current: 20.0 uA Logic Low Current: -0.2 mA Logic High Voltage: Minimum 2.4 V Logic Low Voltage: Maximum 0.5V Logic High Current: -2.6 mA Logic Low Current: 24.0 mA Logic High Voltage: Minimum 2.4 V Logic Low Voltage: Maximum 0.4V Logic High Current: -15.0 mA Logic Low Current: 24.0 mA 0 °C - 60°C
-20°C - 80°C 5% - 95% non-condensing 50-pin male ribbon cable connectors for PCI­7224/7248/7296 or 100-pin SCSI-type connectors for cPCI-7248 PCI bus for PCI-7224/7248/7296 3U 32-bit CompactPCI Bus for cPCI-7248
PCI-7224:
330mA @ 5VDC (Typical) 350mA @ 5VDC (Maximum)
PCI-7248:
500mA @ 5VDC (Typical) 540mA @ 5VDC (Maximum)
PCI-7296:
860mA @ 5VDC (Typical) 940mA @ 5VDC (Maximum)
cPCI-7248:
470mA @ 5VDC (Typical) 560mA @ 5VDC (Maximum)
cPCI-7249R:
700mA @ 5VDC (Typical) 500 K bytes/s (Maximum)
Introduction • 3
PCB Dimension PCI-7224:
PCI-7248: PCI-7296: cPCI-7248: cPCI-7249R:
with Rear I/O option
148mm x 102mm 148mm x 102mm 16mm x 102mm 3U CompactPCI form factor
3U CompactPCI form factor, J2
4 • Introduction
1.4 Software Support
ADLINK provides versatile software drivers and packages for different approaches to building systems. We not only provide prog ramming libraries such as DLL for many Windows systems, but also provide drivers for many
software packages such as LabVIEW®, HP VEETM, DASYLabTM, InTouchTM, InControl
All the software options are included in the ADLINK CD. The non-free software drivers are protected by serial licensed codes. Without the software serial number, the user can still install them and run the demo version for t wo hours for demonstration purpose. Please contact 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:
TM
, ISaGRAFTM, and many more.
DOS Library: Borland C/C++ and Microsoft C++, the functions descriptions are included in this user’s guide.
Windows 95 DLL: For VB, VC++, Delphi, BC5, the functions descriptions are included in this user’s guide.
PCIS-DASK: Include device drivers and DLL for
Windows NT and Window s 2000
Windows 98, Windows NT and Windows 2000. In other words, 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 the following directory: \\Manual_PDF\Software\PCIS-DASK
PCIS-DASK/X: Include device drivers and shared library for 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 ar e in the CD. (\Manual_PDF\Software\PCIS-DASK-X.)
T he above software drivers ar e shipped with the board. Please refer to the “Software Installation Guide” to install these drivers.
. DLL is binary compatible across
Windows 98,
Linux
.
Introduction • 5
1.4.2 PCIS-LVIEW: LabVIEW® Driver
PCIS-LVIEW contains the VIs, which are used to interface with NI’s LabVIEW 95/98/NT/2000. The LabVIEW board. You can install and use them without license. For more detailed
information about PCIS-LVIEW, please refer to the user’s guide in the CD. (\\Manual_PDF\Software\PCIS-LVIEW)
®
software package. The PCIS-LVIEW supports Windows
®
drivers are shipped free of charge with the
1.4.3 PCIS-VEE: HP-VEE Driver
The PCIS-VEE includes user objects, which are used to interface with HP VEE software package. PCIS-VEE supports Windows 95/98/NT. The HP­VEE drivers are shipped free of charge 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 to use the DAQBench library for developing applications. The DAQBench 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)
TM
ActiveX Control components
TM
is designed under
1.4.5 DASYLabTM PRO
DASYLab is an easy-to-use software package, providing easy to setup instrument functions such as FFT analysis. Please contact ADLINK Technology to obtain DASYLab PRO, which includes DASYLab and ADLink hardware drivers.
1.4.6 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. A license is required. The DDE server can be used in conjunction with any DDE client under Windows NT.
6 • Introduction
1.4.7 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. A license is required.
1.4.8 PCIS-ICL: InControlTM Driver
PCIS-ICL is the InControl driver which supports the Windows NT. The PCIS­ICL is included in the ADLINK CD. A license is required.
1.4.9 PCIS-OPC: OPC Server
PCIS-OPC is an OPC Server, which can be linked with OPC clients. There are now many software packages on the market that can provide OPC clients. PCIS-OPC supports Windows NT and a license is required.
Introduction • 7
2
Installation
This chapter describes how to install the 7248/96 series products. Please take note of the packing and unpacking instructions as described below:
Check what you have (section 2.1)
Unpacking (section 2.2)
Check the PCB (section 2.3)
Hardware installation (section 2.4)
Device Installation for Windows System (section 2.5)
Connector pin assignment (section 2.6)
Jumpers setup (section 2.7)
Termination boards connection (section 2.8)
2.1 What You Have
In addition to this User's Manual, the package also includes:
The PCI or CompactPCI board
ADLINK CD
Software Installation Guide
In the cPCI-7249R box, a rear I/O transition board DB-100RU is
included
If any of these items are missing or damaged, please contact the dealer from whom you purchased the product. Keep the shipping materials and box in case you want to ship or store the product in the future.
Installation • 9
2.2 Unpacking
Your card contains sensitive electronic components that can be easily damaged by static electricity.
The card should be placed on a grounded anti-static mat. The operator should wear an anti-static wristband, grounded at the same poi nt as the anti­static mat.
Inspect the card module carton for obvious damage. Shipping and handling may cause damage to your module. Ensure there is no shipping and handling damage on the module before processing.
After opening the card module carton, remove the system module and place only on a grounded anti-static surface with components side up.
Again inspect the module for damages. Press down on all the socketed IC's to make sure they are properly seated. Only do this with the module placed 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 7248/96 series product.
10 • Installation
Loading...
+ 41 hidden pages