Contec DIO-48DX-USB User Manual

PC-HELPER
Bi-Directional Digital I/O Unit for USB
DIO-48DX-USB
User’s Guide
CONTEC CO.,LTD.

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
- Unit [DIO-48DX-USB] …1
- AC adapter …1
- AC Cable (for 125VAC) …1
- USB cable (1.8m) …1
- USB cable attachment on the main unit’s side (For Mini B connector side) …1
- Clamps for prevention of cable on the main unit’s side …1
- CD-ROM *1 [API-USBP(WDM)] …1
- First step guide … 1
- Power connector MC1,5/3-ST-3,5 …1
- Ferrite core …1 *1 The CD-ROM contains the driver software and User’s Guide (this guide)
USB cable (1.8mm)
Unit AC adapter AC Cable Ferrite core USB cable attachment
Clamps for prevention CD-ROM *1 First step guide
of cable on the main [API-USBP(WDM)]
unit’s side
DIO-48DX-USB
Power connector MC1,5/3-ST-3,5

Copyright

Copyright 2010 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 and Windows NT are trademarks of Microsoft Corporation. Other brand and product names are trademarks of their respective holder. Table of Contents
DIO-48DX-USB
ii

Table of Contents

Check Your P ackage................................................................................................................................ i
Copyright.................................................................................................................................................ii
Trademarks ..............................................................................................................................................ii
Table of Contents ...................................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the Un it.........................................................................................................................................1
Features ............................................................................................................................................ 1
Support Software.............................................................................................................................. 3
Cable & Connector (Option) ........................................................................................................4
Accessories (Option).....................................................................................................................4
Customer Support.................................................................................................................................... 5
Web Site ........................................................................................................................................... 5
Limited On e-Year Warra nty...................................................................................................................5
How to Obta in Service............................................................................................................................ 5
Liability ...................................................................................................................................................5
Safety Precautions...................................................................................................................................6
Safety Inf ormation ........................................................................................................................... 6
Handling Precautions.......................................................................................................................6
Environment.....................................................................................................................................8
Inspection .........................................................................................................................................8
Storage.............................................................................................................................................. 8
Disposal ............................................................................................................................................8
2. SETUP 9
What is Set u p ?......................................................................................................................................... 9
Installing the driver..........................................................................................................................9
Step 1 Setting the Hardware ................................................................................................................. 10
Name of each parts......................................................................................................................... 10
Step 2 Initializing the Software ............................................................................................................11
Illustrat ion of Menu S creen...........................................................................................................11
Installation of API-USBP(WDM) D evelopment Environment....................................................12
Step 3 Inst alling the Hardware .............................................................................................................13
Connection with 5VDC Power Supply f or Self-power ................................................................13
Connecting the Produc t..................................................................................................................14
Setting with the Found New Hardware Wizard............................................................................ 16
Setting Properties Using Device Manager ....................................................................................17
Step 4 Checking Operations with th e Diagnosis P r ogram ..................................................................19
What is the Diagnosis Program? ................................................................................................... 19
Using the Diagnosis P rogram........................................................................................................ 19
DIO-48DX-USB
iii
3. EXTERNAL CONNECTION 23
Using the Connectors ............................................................................................................................23
Connecting to a Connector.............................................................................................................23
Connector P in Assignmen t.............................................................................................................24
Relationships betwee n Logical Ports/Bits and Connector Signal Pins ........................................25
Connecting I/O Signa l s .........................................................................................................................26
I/O Circui t.......................................................................................................................................26
Example of Connection..................................................................................................................26
4. APPLICATION DEVELOPMENT 27
Reference t o Online Help ......................................................................................................................27
Printing Function Reference .................................................................................................................27
Sample Pro gram.....................................................................................................................................28
Distribut ing Developed Application.....................................................................................................28
Returning to Initial State.......................................................................................................................29
5. FUNCTION 31
Data I/O Fu nction ..................................................................................................................................31
I/O setup of the port .......................................................................................................................31
Data I/O...........................................................................................................................................33
Digital Filter...........................................................................................................................................34
Digital Filter Funct ion Principl e ....................................................................................................34
Set Digital Filter Time ...................................................................................................................34
Interrupt Control Fun ction ....................................................................................................................35
Disabling/enabling Interrupts .................................................................................................. .......35
Selecting t he Edge of inp ut signals, at which to g enerate an interrupt ........................................35
Clearing t he Interrup t Status and I nterrupt Si g nal ........................................................................35
6. ABOUT HARDWARE 37
Hardware specification......................................................................................................... .................37
Physical d imensions ..............................................................................................................................39
Block Diagram.......................................................................................................................................40
Differenc e from DIO-48 D-PE and DIO - 4 8D2-PCI .............................................................................41
DIO-48DX-USB
iv
1. Before Using the Product

1. Before Using the Product

This chapter provides information you should know before using the product.

About the Unit

This product is an USB2.0-compliant digital I/O unit that extends the input/output function of bi-directional digital signal. This product 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). As there is compatible with PCI bus-compatible board DIO-48D2-PCI and PCI Express bus-compatible board DIO-48D-PE in terms of connector shape and pin assignments, it is easy to migrate from the existing system. Windows driver is bundled with this product. Possible to be used as a data recording device for LabVIEW, with dedicated libraries.

Features

- This product can be used to TTL-level input/output 48 points bi-directional digital corresponding to the equivalence to the i8255 mode 0.
This product has up to 48 unisolated TTL-level input/output channels whose response sp eed is 20 0n sec that is powered by to 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 signals, at which to generate an interrupt.
- This product has a digital filter to prevent wrong recognition of input signals from carrying noise or
a chattering.
This product has a digital filter to prevent wrong recognition of input signals from carrying noise or a chattering. All input terminals can be added a digital filter, and the setting can be performed by software.
- Compatible to USB1.1/USB2.0
Compatible to USB1.1/USB2.0 and capable to achieve high speed transfer at HighSpeed (480 Mbps).
DIO-48DX-USB
1
1. Before Using the Product
- USB HUB function This product has the USB HUB
function. Max. 4 DIO-48DX-USB can be used in 1 USB port of PC. *1 When you use 4 or more DIO-48DX-USB, you can do by connecting DIO-48DX-USB to the another USB port of PC side.
Also, you can connect the CONTEC’s
USB cable
USB cable USB cable USB cable
USB device other than DIO-48DX-USB to the USB port of DIO-48DX-USB. *2*3
- Connectors are compatible with PCI/PCI Express bus-compatible board As there is compatible with DIO-48D2-PCI and DIO-48D-PE in terms of connector shape and pin
assignments, it is easy to migrate from the existing system. If the system of this product is created by the digital I/O driver API-DIO(98/PC), it is required to replace it with API-DIO(WDM).
- Windows compatible driver libraries are attached. Using the attached digital I/O driver API-DIO(WDM) makes it possible to create applications of
Windows. In addition, a diagnostic program by which the operations of hardware can be checked is provided.
- LabVIEW is supported by a plug-in of dedicated library VI-DAQ. Using the dedicated library VI-DAQ makes it possible to make a LabVIEW application.
*1 This product cannot be stacked up for installation. *2 Do not connect the device other than that of CONTEC’s USB to the USB port included on the DIO-48DX-USB. Otherwise, this may
cause a failure or malfunction.
*3 When connecting multiple units with USB HUB function and set up them, do one at a time and complete setup for the previous unit
before starting to do the next unit.
DIO-48DX-USB
2
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(WDM)
[Stored on the bundled CD-ROM driver library API-USBP(WDM)]
It is the library software, and w hich supplies command of ha rdware produced by our company in the form of standard Win32 API function (DLL). Using programming languages supporting Win32API functions, such as Visual Basic and Visual C++ etc., you can develop high-speed application software with feature of hardware produced by our company.
In addition, you can verify the operation of hardware using Diagnostic pro grams.
< Operating environment > OS Windows 7, Server 2008, Vista, XP, Server 2003, 2000, Me, 98
Adaptation language Visual Basic, Visual C++, Visual C#, Delphi, C++ Builder You can download the updated version from the CONTEC’s Web site (http://www.contec.com/product/device/apiusbp/). For 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-48DX-USB
3
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-H96

Accessories (Option)

Screw Terminal Unit (M3 x 96P) : EPD-96A *1*2 Screw Terminal Unit (M3.5 x 96P) : EPD-96 *1 Terminal Unit for Cables (M3 x 96P) : DTP-64A *1 Terminal Unit for Cables (M2.5 x 96P) : DTP-64(PC) *1 USB I/O Unit Bracket for X Series : BRK-USB-X AC adapter (input : 90 - 264VAC, output : 5VDC 2.0A) : POA200-20-2 *3
AC-DC power supply unit(input: 85 - 132VAC, output: 5VDC 3.0A) : POW-AC13GY AC-DC power supply unit(input: 85 - 264VAC, output: 5VDC 2.0A) : POW-AD22GY DC-DC power supply unit(input: 10 - 30VDC, output: 5VDC 3.0A) : POW-DD10GY DC-DC power supply unit(input: 30 - 50VDC, output: 5VDC 3.0A) : POW-DD43GY
*1 PCB96P or PCB96PS optional cable is required separately. *2 “Spring-up” type terminal is used to prevent terminal screws from falling off. *3 It is the same as the one appended to the product. Please buy it necessary for maintenance. * Check the CONTEC’s Web site for more information on these options.
DIO-48DX-USB
4
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 One-Year Warranty

CONTEC products are warranted by CONTEC CO., LTD. to be free from defects in material and workmanship for up to one year 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-48DX-USB
5
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

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
- Do not strike or bend this product. Otherwise, this may malfunction, overheat, cause a failure or breakage.
- Do not touch this product's terminals (edge connector) with your hands. Otherwise, this may malfunction, overheat, or cause a failure. If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
- Do not close the ventilation hole(s) of this product by, for example, placing an object. This may cause overheating, malfunction, and/or failure of the product.
- Do not touch the external connector when the power is on. Otherwise this may malfunction, overheat, cause a failure due to static electricity.
- Make sure that your PC can supply ample power to all this product installed. Insufficiently energized products could malfunction, overheat, or cause a failure.
- Do not connect the device other than that of CONTEC’s USB to the USB port included on the DIO-48DX-USB. Otherwise, this may cause a failure or malfunction.
- When connecting multiple units with USB HUB function and set up them, do one at a time and complete setup for the previous unit before starting to do the next unit.
- The specifications of this product are subject to change without notice for enhancement and quality improvement. Even when using this product continuously, be sure to read the manual and understand the contents.
- Do not modify this product. CONTEC will bear no responsibility for any problems, etc., resulting from modifying this product.
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-48DX-USB
6
1. Before Using the 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.
- If you use this product in a noisy environment, attach a ferrite core to USB cable or cable of the attached AC adaptor to stabilize the operation. And please take effect countermeasure for noise. (ex. FG and GND terminal of the attached AC adaptor ground to the earth.) When attaching a ferrite core, coil it around once or more near the connector while leaving it open, and then close it.
Reference: When wrapping it around the USB cable once
FCC PART 15 Class A Notice
NOTE
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense.
WARNING TO USER
Change or modifications not expressly approved the manufacturer can void the user's authority to operate this equipment.
DIO-48DX-USB
7
1. Before Using the Product

Environment

Use this product in the following environment. If used in an unauthorized environment, this product may overheat, malfunction, or cause a failure.
Operating temperature
0 - 50°C
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.
POWER
- Check that the connector has no dust or foreign matter adhering.

Storage

When storing this product, keep it in its original packing form. (1) Put this product in the storage bag.
(2) Wrap it in the packing material, and then put it in the box. (3) Store the package at room temperature at a place free fro m 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-48DX-USB
8
2. Setup

2. Setup

This chapter explains how to set up this product.

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.

Installing the driver

This section enables you to prepare the software and hardware by operating in accordance with each step in this chapter using the bundled CD-ROM. 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 Setting the Hardware Step 2 Installing the Software Step 3 Installing the Hardware Step 4 Checking Operations with the Diagnosis Program
Uninstall the driver and then set it up again if it cannot be set up properly.
DIO-48DX-USB
9
2. Setup

Step 1 Setting the Hardware

This section describes how to set up the product and how to connect it to a PC.

Name of each parts

LED indicator
Interface connector (CN1)
The above figure has installed the USB cable attachment.
POWER Status
For PC
Interface connector USB TypeA
Figure 2.1. Name of each parts (Front side)
USB cable attachment
USB port [Type A connector]
USB port [mini B connector]
+5VDC input terminal
DIO-48DX-USB
10
Loading...
+ 32 hidden pages