Contec DIO-48D2-PCI User Manual

Artisan Technology Group is your source for quality
new and certied-used/pre-owned equipment
FAST SHIPPING AND
DELIVERY
TENS OF THOUSANDS OF IN-STOCK ITEMS
• EQUIPMENT DEMOS
HUNDREDS OF MANUFACTURERS
SUPPORTED
• LEASING/MONTHLY RENTALS
• ITAR CERTIFIED SECURE ASSET SOLUTIONS
SERVICE CENTER REPAIRS
Experienced engineers and technicians on staff at our full-service, in-house repair center
Instra
Remotely inspect equipment before purchasing with our interactive website at www.instraview.com
Contact us: (888) 88-SOURCE | sales@artisantg.com | www.artisantg.com
SM
REMOTE INSPECTION
View
WE BUY USED EQUIPMENT
Sell your excess, underutilized, and idle used equipment We also offer credit for buy-backs and trade-ins
www.artisantg.com/WeBuyEquipment
LOOKING FOR MORE INFORMATION?
Visit us on the web at www.artisantg.com for more information on price quotations, drivers, technical
specications, manuals, and documentation
PC-HELPER
Bi-Directional Digital I/O Board for PCI
DIO-48D2-PCI
User’s Guide
CONTEC CO.,LTD.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Check Your Package
Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following list, that your package is complete. If you discover damaged or missing items,
contact your retailer.
Product Configuration List
- Board [DIO-48D2-PCI] …1
- First step guide …1
- CD-ROM *1 [API-PAC(W32)] …1 *1 The CD-ROM contains the driver software and User’s Guide (this guide)
CD-ROM
Board
First step guide
[API-PAC(W32)]
DIO-48D2-PCI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
i
Copyright
Copyright 2007 CONTEC CO., LTD. ALL RIGHTS RESERVED No part of this document may be copied or reproduced in any form by any means without prior written
consent of CONTEC CO., LTD.
CONTEC CO., LTD. makes no commitment to update or keep current the information contained in this document. The information in this document is subject to change without notice.
All relevant issues have been considered in the preparation of this document. Should you notice an omission or any questionable item in this document, please feel free to notify CONTEC CO., LTD.
Regardless of the foregoing statement, CONTEC assumes no responsibility for any errors that may appear in this document or for results obtained by the user as a result of using this product.
Trademarks
MS, Microsoft, Windows, Windows NT and MS-DOS are trademarks of Microsoft Corporation. Other brand and product names are trademarks of their respective holder.
DIO-48D2-PCI
ii
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Table of Contents
Check Your P ackage................................................................................................................................i
Copyright.................................................................................................................................................ii
Trademarks ..............................................................................................................................................ii
Table of Contents...................................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the Bo ard......................................................................................................................................1
Features ............................................................................................................................................1
Support Software..............................................................................................................................2
Cable & Connector (Option)........................................................................................................3
Accessories (Option).....................................................................................................................3
Customer Support....................................................................................................................................4
Web Site ...........................................................................................................................................4
Limited Th ree-Years Warranty...............................................................................................................4
How to Obta in Service............................................................................................................................4
Liability ................................................................................................................................................... 4
Safety Precautions...................................................................................................................................5
Safety Inf ormation ........................................................................................................................... 5
Handling Precautions.......................................................................................................................6
Environment..................................................................................................................................... 7
Inspection .........................................................................................................................................7
Storage..............................................................................................................................................7
Disposal ............................................................................................................................................ 7
2. SETUP 9
What is Set u p ?.........................................................................................................................................9
Using the Board under Windows U sing the Driver Libr ary API-PAC(W32)...............................9
Using the Board under Windows Using Software Other than the Driver Library
API-PAC(W32)................................................................................................................................ 9
Using the Board under an OS Oth e r than Windows.....................................................................10
Step 1 Inst alling the Software...............................................................................................................11
About the d r iver to be used............................................................................................................ 11
Starting t he Install Program...........................................................................................................12
Whe n U s i n g AP I - D I O ( W DM )..........................................................................................................13
Whe n U s i n g API-DIO(98/PC) ........................................................................................................14
Step 2 Setting the Hardware ................................................................................................................. 16
Parts of the Board and Factory D efaults.......................................................................................16
Setting the Board ID ...................................................................................................................... 17
Plugging the Board ........................................................................................................................18
Step 3 Inst alling the Hardware .............................................................................................................19
DIO-48D2-PCI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
iii
Turning on the PC ..........................................................................................................................19
Whe n U s i n g AP I - D I O ( W DM )..........................................................................................................19
Whe n U s i n g AP I - D I O ( 9 8/ P C )...........................................................................................................22
Step 4 Initializing the Software.............................................................................................................25
Whe n U s i n g API-DIO(WDM) ........................................................................................................25
Whe n U s i n g API-DIO(98/PC).........................................................................................................27
Updating the Settings .....................................................................................................................27
Step 5 Checking Operations with the Diagnosis Pro gram...................................................................28
What is the Diagnosis Progra m?....................................................................................................28
Check Meth o d.................................................................................................................................28
Using the Diagnosis Program ........................................................................................................29
Setup Troubleshooting ..........................................................................................................................33
Symptoms a nd Actions...................................................................................................................33
If your pro b lem cannot be resol ved...............................................................................................33
3. EXTERNAL CONNECTION 35
How to conn ect the connectors .............................................................................................................35
Connector shape .............................................................................................................................35
Connector P in Assignment.............................................................................................................36
Relationships between API-PA C(W32) Logical Ports/Bits and Connector Signal Pins.............38
Relationships between API-PA C(W32) Logical Ports/Bits and Connector Signal Pins.............38
Connecting I/O Signals .........................................................................................................................39
I/O Circui t.......................................................................................................................................39
Example of Connection..................................................................................................................39
About the Protection Feature ................................................................................................................40
4. FUNCTION 41
Data I/O Fu nction..................................................................................................................................41
I/O setup of the port .......................................................................................................................41
Data I/O...........................................................................................................................................43
Digital Filter Function...........................................................................................................................44
Digital Filter Function Principle....................................................................................................44
Set Digital Filter Time ...................................................................................................................44
Interrupt Control Function ....................................................................................................................45
Disabling/enabling Interru pts.........................................................................................................45
Selecting t he edge of input signals, at which to generate an interrupt ......................................... 45
Clearing t he Interrupt Status and Interrupt Signal........................................................................45
5. ABOUT SOFTWARE 47
CD-ROM Directory Structure...............................................................................................................47
About Soft ware for Windows ...............................................................................................................48
Accessing the Help File..................................................................................................................48
DIO-48D2-PCI
iv
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Using Sample Programs.................................................................................................................48
Uninstall ing the Driver Librar ies ..................................................................................................50
About Soft ware for Linux.....................................................................................................................51
Driver Sof tware Install Proc edure................................................................................................. 51
Accessing the Help File.................................................................................................................52
Using Sample Programs.................................................................................................................52
Uninstall ing the driver ...................................................................................................................52
6. ABOUT HARDWARE 53
For detailed technical infor ma tion........................................................................................................53
Hardware specification .........................................................................................................................54
Block Diagram......................................................................................................................................55
Differenc e s between DIO-48D2-PCI and PIO-48D(PCI)....................................................................56
DIO-48D2-PCI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
v
DIO-48D2-PCI
vi
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
1. Before Using the Product
1. Before Using the Product
This chapter provides information you should know before using the product.
About the Board
This product is a PCI bus-compliant interface board that extends the input/output function of bi-directional digital signal. This board has up to 48 unisolated TTL-level input/output channels that is powered by the equivalence to the mode 0 of i8255 chips, and you can use up to 48 channels of the input signals as interrupt inputs. You can select the input/output by the application software in eight signals units (in four signals unit for some inputs/outputs). Additionally, the digital filter function is equipped with this product. Windows/Linux driver is bundled with this product.
Using the dedicated library VI-DAQ makes it possible to create each application for LabVIEW.
Features
- This board can be used to input/output 48 points bi-directional digital corresponding to the equivalence to the i8255 mode 0.
This board has up to 48 unisolated TTL-level input/output channels whose response speed is
200μsec that is powered by the equivalence to the mode 0 of i8255 device for general-purpose. You can select the input/output by the application software in eight signals units (in four signals unit for some inputs/outputs).
- You can use up to 48channels of the input signals as interrupt events.
You can use up to 48channels of the input signals as interrupt events and also disable or enable the
interrupt in bit units and select the edge of input signals, at which to generate an interrupt.
- This product has a digital filter function to prevent wrong recognition of input signals from carrying
noise or a chattering.
This product has a digital filter function to prevent wrong recognition of input signals by noise or chattering is provided. All input terminals can be added a digital filter, and the setting can be performed by software.
- Windows/Linux compatible driver libraries are attached.
Using the attached driver library API-PAC(W32) makes it possible to create applications of
Windows/Linux. In addition, a diagnostic program by which the operations of hardware can be checked is provided.
- Connectors are compatible with PCI compatible board PIO-48D(PCI).
There is compatibility in terms of connector shape and pin assignments with PCI compatible board
PIO-48D(PCI), it is easy to migrate from the existing system.
- LabVIEW is supported by a plug-in of dedicated library VI-DAQ.
Using the dedicated library VI-DAQ makes it possible to create each application for LabVIEW.
DIO-48D2-PCI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
1
1. Before Using the Product
Support Software
You should use CONTEC support software according to your purpose and development environment. Windows version of digital I/O driver
API-DIO(98/PC) / API-DIO(WDM)
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-DIO(98/PC) is the Wi ndows version driver library software that provides products in the form of Win32 API functions (DLL). Various sample programs such as Visual Basic and Visual C++, etc and diagnostic program useful for checking operation is provided.
< Operating environment > OS Windows 7, Vista, XP, Server 2003, 2000 Adaptation language Visual Basic, Visual C++, Visual C#, Delphi, C++ Builder You can download the updated version from the CONTEC’s Web site (htt p:// www.contec.com/api pac/ ) . Fo r more details on the supported OS, applicable language and new information, please visit the CONTEC’s Web site.
Linux version of digital I/O driver
API-DIO(LNX)
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-DIO(LNX) is the Linux version driver software which provides device drivers (module s) by shared library and kernel version. Various sample programs of gcc are provided.
< Operating environment > OS RedHatLinux, TurboLinux (For details on supported distributions, refer to Help avail able after installation.) Adaptation language gcc You can download the updated version from the CONTEC’s Web site (htt p:// www.contec.com/api pac/ ) . Fo r more details on the supported OS, applicable language and new information, please visit the CONTEC’s Web site.
Data acquisition VI library for LabVIEW
(Available for downloading (free of charge) from
VI-DAQ
the CONTEC web site.)
This is a VI library to use in National Instruments LabVIEW. VI-DAQ is created with a function form similar to that of LabVIEW's Data Acquisition VI, allowing you t o use various devices without complicated settings. See http://www.contec.com/vidaq/ for details and download of VI-DAQ.
DIO-48D2-PCI
2
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
1. Before Using the Product
Cable & Connector (Option)
Shield Cable with 96-Pin Half-Pitch Connectors at Both Ends : PCB96PS-0.5P (0.5m) : PCB96PS-1.5P (1.5m) Flat Cable with 96-Pin Half-Pitch Connectors at Both Ends : PCB96P-1.5 (1.5m) Shield Cable with 96-Pin Half-Pitch Connectors at One End : PCA96PS-0.5P (0.5m) : PCA96PS-1.5P (1.5m) Flat Cable with 96-Pin Half-Pitch Connectors at One End : PCA96P-1.5 (1.5m) Flat cable with single-ended connector for 50-pin : PCA50J-1.5 (1.5m) Half-pitch 96-pin Female Connector Set (5 Pieces) : CN5-H96F
Accessories (Option)
Screw Terminal (M3 x 96) : EPD-96A *1*2 Screw Terminal (M3.5 x 96) : EPD-96 *1 Terminal Unit for Cables (M3 x 96P) : DTP-64A *1 *1 PCB96P-1.5, PCB96PS-0.5 or PCB96PS-1.5 optional cable is required separately.
*2 “Spring-up” type terminal is used to prevent terminal screws from falling off. * Check the CONTEC’s Web site for more information on these options.
DIO-48D2-PCI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
3
1. Before Using the Product
Customer Support
CONTEC provides the following support services for you to use CONTEC products more efficiently and comfortably.
Web Site
Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/
Latest product information CONTEC provides up-to-date information on products. CONTEC also provides product manuals and various technical documents in the PDF.
Free download You can download updated driver software and differential files as well as sample programs available in
several languages.
Note! For product information Contact your retailer if you have any technical question about a CONTEC product or need its price,
delivery time, or estimate information.
Limited Three-Years Warranty
CONTEC products are warranted by CONTEC CO., LTD. to be free from defects in material and workmanship for up to three years from the date of purchase by the original purchaser.
Repair will be free of charge only when this device is returned freight prepaid with a copy of the original invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office, from which it was purchased.
This warranty is not applicable for scratches or normal wear, but only for the electronic circuitry and original products. The warranty is not applicable if the device has been tampered with or damaged through abuse, mistreatment, neglect, or unreasonable use, or if the original invoice is not included, in which case repairs will be considered beyond the warranty policy.
How to Obtain Service
For replacement or repair, return the device freight prepaid, with a copy of the original invoice. Please obtain a Return Merchandise Authorization number (RMA) from the CONTEC group office where you purchased before returning any product.
* No product will be accepted by CONTEC group without the RMA number.
Liability
The obligation of the warrantor is solely to repair or replace the product. In no event will the warrantor be liable for any incidental or consequential damages due to such defect or consequences that arise from inexperienced usage, misuse, or malfunction of this device.
DIO-48D2-PCI
4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
1. Before Using the Product
Safety Precautions
Understand the following definitions and precautions to use the product safely.
Safety Information
This document provides safety information using the following symbols to prevent accidents resulting in injury or death and the destruction of equipment and resources. Understand the meanings of these labels to operate the equipment safely.
DANGER
WAR NI NG
CAUTION
DANGER indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.
WARNING indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.
CAUTION indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury or in property damage.
DIO-48D2-PCI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
5
1. Before Using the Product
Handling Precautions
DANGER
Do not use the product where it is exposed to flammable or corrosive gas. Doing so may result in an
explosion, fire, electric shock, or failure.
CAUTION
- There are switches and jumpers on this product that need to be set in advance. Be sure to check these before installing to the expansion slot.
- Only set the switches and jumpers on this product to the specified settings. Otherwise, this product may malfunction, overheat, or cause a failure.
- Do not strike or bend this product. Otherwise, this product may malfunction, overheat, cause a failure or breakage.
- Do not touch this product's metal plated terminals (edge connector) with your hands. Otherwise, this product may malfunction, overheat, or cause a failure. If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
- Do not install or remove this product to or from the expansion slot while the computer's power or expansion unit is turned on. Otherwise, this product may malfunction, overheat, or cause a failure. Be sure that the personal computer power is turned off.
- Make sure that your PC or expansion unit can supply ample power to all this products installed. Insufficiently energized products could malfunction, overheat, or cause a failure.
- The specifications of this product are subject to change without notice for enhancement and quality improvement. Even when using the product continuously, be sure to read the user’s guide and understand the contents.
- Do not modify the product. CONTEC will bear no responsibility for any problems, etc., resulting from modifying this product.
- Regardless of the foregoing statements, CONTEC is not liable for any damages whatsoever (including damages for loss of business profits) arising out of the use or inability to use this CONTEC product or the information contained herein.
DIO-48D2-PCI
6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
1. Before Using the Product
Environment
Use this product in the following environment. If used in an unauthorized environment, the board may overheat, malfunction, or cause a failure.
Operating temperature
0 - 50°C
Operating humidity
10 - 90%RH (No condensation)
Corrosive gases
None
Floating dust particles
Not to be excessive
Inspection
Inspect the product periodically as follows to use it safely.
- Check that the bus connector of the board and its cable have been plugged correctly.
- Check that the board has no dust or foreign matter adhering.
- The gold-plated leads of the bus connector have no stain or corrosion.
Storage
When storing this product, keep it in its original packing form. (1) Put the board in the storage bag. (2) Wrap it in the packing material, then put it in the box. (3) Store the package at room temperature at a place free from direct sunlight, moisture, shock,
vibration, magnetism, and static electricity.
Disposal
When disposing of the product, follow the disposal procedures stipulated under the relevant laws and municipal ordinances.
DIO-48D2-PCI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
7
1. Before Using the Product
DIO-48D2-PCI
8
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
2. Setup
2. Setup
This chapter explains how to set up the board.
What is Setup?
Setup means a series of steps to take before the product can be used. Different steps are required for software and hardware. The setup procedure varies with the OS and software used.
Using the Board under Windows
Using the Driver Library API-PAC(W32)
This section describes the setup procedure to be performed before you can start developing application programs for the board using the bundled CD-ROM “Driver Library API-PAC(W32)”.
Taking the following steps sets up the software and hardware. You can use the diagnosis program later to check whether the software and hardware function normally.
Step 1 Installing the Software Step 2 Setting the Hardware Step 3 Installing the Hardware Step 4 Initializing the Software Step 5 Checking Operations with the Diagnosis Program
If Setup fails to be performed normally, see the “Setup Troubleshooting” section at the end of this chapter.
Using the Board under Windows
Using Software Other than the Driver Library API-PAC(W32)
For setting up software other than API-PAC(W32), refer to the user’s guide for that software. See also the following parts of this user’s guide as required.
This chapter Step 2 Setting the Hardware This chapter Step 3 Installing the Hardware Chapter 3 External Connection Chapter 6 About Hardware
DIO-48D2-PCI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
9
2. Setup
Using the Board under an OS Other than Windows
For using the board under Linux, see the following parts of this user’s guide.
This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 5 About Software Chapter 6 About Hardware
For using the board under an OS such as MS-DOS other than Windows, see the following parts of this user’s guide.
This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 6 About Hardware
DIO-48D2-PCI
10
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
2. Setup
Step 1 Installing the Software
This section describes how to install the Driver libraries. Before installing the hardware on your PC, install the Driver libraries from the bundled API-PAC(W32) CD-ROM. The following description assumes the operating system as Windows XP. Although some user interfaces
are different depending on the OS used, the basic procedure is the same.
About the driver to be used
Two digital I/O drivers are available: API-DIO(WDM) and API-DIO(98/PC). API-DIO(WDM) is a new driver to perform digital I/O under Windows. API-DIO(WDM) was developed to improve the conventional product version of API-DIO(98/PC) in the
ease of use and functionality. It is advisable to use API-DIO(WDM) for you to use an digital I/O device. API-DIO(WDM) will
support new OS and devices in the future but will not support Windows NT 4.0, Windows 95, ISA bus. Use API-DIO(98/PC) if your operating environment contains such an unsupported piece of software or
hardware. Check the following selection guide to easily select the driver to be used.
DIO-48D2-PCI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
11
2. Setup
Starting the Install Program
(1)
Load the CD-ROM [API-PAC(W32)] on your PC.
(2)
The API-PAC(W32) Installer window appears automatically.
If the panel does not appear, run (CD-ROM drive letter):\AUTORUN.exe.
(3)
Click on the [Install Development or Execution Environment] button.
* When using the Windows 7, Vista, driver is automatically installed.
CAUTION
Before installing the software in Windows 7, Vista, XP, Server 2003 and 2000, log in as a user with
administrator privileges.
DIO-48D2-PCI
12
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Loading...
+ 46 hidden pages