Digital I/O Board
with High-Speed Opto-Isolation
for PCI Express
DIO-1616TB-PE
User’s Guide
CONTEC CO.,LTD.
Page 2
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-1616TB-PE] …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)
Board
DIO-1616TB-PE
First step guide
CD-ROM
[API-PAC(W32)]
i
Page 3
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 and MS-DOS are trademarks of Microsoft Corporation. Other brand and
product names are trademarks of their respective holder.
ii
DIO-1616TB-PE
Page 4
Table of Contents
Check Your P ackage................................................................................................................................ i
Table of Contents ...................................................................................................................................iii
1.BEFORE USING THE PRODUCT1
About the Bo ard ......................................................................................................................................1
What is Setup?......................................................................................................................................... 9
Using the Bo ard under Win d ows Using the Driver Library API-PAC(W 32)............................... 9
Using the Board under Windows Using Software Other than the Driver Library
Data I/O Function ..................................................................................................................................43
Data Input .......................................................................................................................................43
Data Output.....................................................................................................................................43
Monitoring Output Data .................................................................................................................43
Digital Filter...........................................................................................................................................44
Digital Filter Function Principle....................................................................................................44
Set Digital Filter Time....................................................................................................................44
Interrupt Control Func tion.....................................................................................................................45
Disabling/ en a b li ng I n t er ru p t s.........................................................................................................45
Selecting the Interrup t Edge ...........................................................................................................45
Clearing th e Interrupt S t atus and Int errupt Sign al ........................................................................4 6
iv
DIO-1616TB-PE
Page 6
5.ABOUT SOFTWARE47
CD-ROM Directory Stru c ture ..............................................................................................................47
About Software for Windows............................................................................................................... 48
Accessing the Help File .................................................................................................................48
Using Sampl e Programs.................................................................................................................48
Uninstalling the Driver Libraries...................................................................................................50
About Software for Lin u x .....................................................................................................................51
Driver Software Instal l Procedure .................................................................................................51
Accessing the Help File .................................................................................................................52
Using Sampl e Programs.................................................................................................................52
Uninstalling the driver ...................................................................................................................52
6.ABOUT HARDWARE53
For detailed technical information........................................................................................................53
Hardware sp e cification ......................................................................................................................... 54
This chapter provides information you should know before using the product.
About the Board
This product is a PCI Express board used to provide a digital signal I/O function on a PC. This product
features TTL level input 16ch, TTL level output 16ch opto-coupler isolated type with an intern al 5VDC
power supply that does not require external power. You can use all of the input signals as interrupt
inputs. In addition, digital filter function to prevent wrong recognition of input signals is provided.
Windows/Linux driver is bundled with this product.
Possible to be used as a data recording device for LabVIEW, with dedicated libraries.
Features
Opto-coupler isolated TTL level input, opto-coupler isolated TTL level output
This product has the opto-coupler isolated TTL level input 16ch and output 16ch whose high speed
response speed is 1µsec.
Opto-coupler bus isolation
As the PCI Express bus (PC) is isolated from the input and output interfaces by opto-couplers, this
product has excellent noise performance.
Power supply (5VDC 600mA) for driving opto-coupler
Power supply (5VDC 600mA) for driving opto-coupler is equipped. Whether or not to use the internal
power supply can be specified by jumpers in blocks of 16ch.
You can use all of the input signals as interrupt events.
You can use all of the input signals as interrupt events and also disable or enable the interrupt in bit
units and select the interrupt edge.
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.
This product has a digital filter to prevent input signals from carrying noise or a chattering.
This product has a digital filter to prevent 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.
Functions and connectors are compatible with PCI compatible board PIO-16/16TB(PCI)H.
The functions same with PCI compatible board PIO-16/16TB(PCI)H are provided. In addition, as
there is compatibility in terms of connector shape and pin assignments, it is easy to migrate from the
existing system.
DIO-1616TB-PE
1
Page 9
1. Before Using the Product
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.
Support Software
You should use CONTEC support software according to your purpose and development environment.
Windows version of digital I/O driver
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-DIO(98/PC) is the Windows version driver library software that provides products in the form of Win32 API
functions (DLL). Various sample programms such as Visual Basic and Visual C++, etc and diagnostic program
useful for checking operation is provided.
< Operating environment >
OSWindows Vista, XP, Server 2003, 2000
Adaptation languageVisual Basic, Visual C++, Visual C#, Delphi, C++ Builder
You can download the updated version from the CONTEC’s Web site (http://www.contec.com/apipac/). For more
details on the supported OS, applicable language and new information, please visit the CONTEC’s Web site.
API-DIO(WDM)/API-DIO(98/PC)
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 (modules) by shared library
and kernel version. Various sample programs of gcc are provided.
Adaptation languagegcc
You can download the updated version from the CONTEC’s Web site (http://www.contec.com/apipac/). 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
(For details on supported distributions, refer to Help available after installation.)
(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 to use
various devices without complicated settings.
See http://www.contec.com/vidaq/ for details and download of VI-DAQ.
2
DIO-1616TB-PE
Page 10
1. Before Using the Product
Cable & Connector (Option)
Flat Cable with Two 37-pin D- SUB Connectors: PCB37P-1.5 (1.5m)
:PCB37P-3 (3m)
:PCB37P-5 (5m)
Shielded Cable with Two 37-pin D- SUB Connectors: PCB37PS-0.5P (0.5m)
37-pin D-SUB Male Connector Set (5 Pieces): CN5-D37M
Accessories (Option)
Screw Terminal (M3 x 37P): EPD-37A *1
Screw Terminal (M3.5 x 37P): EPD-37 *1
General Purpose Terminal: DTP-3A *1
Screw Terminal: DTP-4A *1
Signal Monitor for Digital I/O: CM-32(PC)E *1
*1 A PCB37P or PCB37PS optional cable is required separately.
DIO-1616TB-PE
3
Page 11
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.
4
DIO-1616TB-PE
Page 12
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
WARNING
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-1616TB-PE
5
Page 13
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 this product.
-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 extension slot while the computer's power is
turne d on. And also d o not connect th i s product a nd external de vice while the p ower is turned o n.
Otherwise, this product may malfunction, overheat, or cause a failure.
Be sure that the personal computer or the I/O extension unit power is turned off.
-Make sure that your PC or extension unit can supply ample power to all this products installed.
Insufficiently energized product s 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 manual 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.
6
DIO-1616TB-PE
Page 14
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.
- 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 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 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-1616TB-PE
7
Page 15
1. Before Using the Product
8
DIO-1616TB-PE
Page 16
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.
The setup procedure varies with the OS and applications 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 manual for that software. See also the
following parts of this manual 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-1616TB-PE
9
Page 17
2. Setup
Using the Board under an OS Other than Windows
For using the board under Linux, see the following parts of this manual.
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 other than Windows and Linux, see the following parts of this manual.
This chapter Step 2 Setting the Hardware
Chapter 3 External Connection
Chapter 6 About Hardware
10
DIO-1616TB-PE
Page 18
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.
OS to be used
Windows Vista
Windows XP/Windows 2000
PCI bus, PC Card
Use the digital board for
the fisrt time?
Yes
Language to be used
VC.Net, VB.Net, VC#.Net
VC6, VB6
API-DIO(WDM)
DIO-1616TB-PE
Device type
Wind ows Me/98/9 5
Wind ows NT 4.0
ISA Bus
Already used.
The existing system
upgrade using
API-DIO(98/PC)?
No
VC2, 4, 5, VB4, 5,
Delphi, C++Builder
Yes
API-DIO(98/PC)
11
Page 19
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 Window s V ista, dri ver i s automatically installed.
CAUTION
Before installing the software in Windows Vista, XP, Server 2003 and 2000, log in as a user with
administrator privileges.
12
DIO-1616TB-PE
Page 20
Select API-DIO(WDM)
Selecting API-DIO(WDM)
(1)
The following dialog box appears to select “Driver to install” and “Install option”, “Usage of
driver library”.
(2)
Select the "Advanced Digital I/O driver".
(3)
Click on the [Install] button.
2. Setup
*Clicking the [API-DIO] button displays detailed information about API-DIO(WDM) and
API-DIO(98/PC).
Run the installation
(1)
Complete the installation by following the instructions on the screen.
(2)
The Readme file appears when the installation is complete.
DIO-1616TB-PE
13
Page 21
2. Setup
Select API-DIO(98/PC)
Selecting API-DIO(98/PC)
(1)
The following dialog box appears to select “Driver to install” and “Install option”, “Usage of
driver library”.
(2)
Select “Classic Digital I/O driver”.
(3)
Click on the [Install] button.
*Clicking on the [API-DIO] button displays detailed information on API-DIO(WDM),
API-DIO(98/PC).
14
DIO-1616TB-PE
Page 22
Executing the Installation
(1)
Follow the on-screen instructions to proceed to install.
(2) When the required files have been copied, the “Perform a hardware setup now(API-TOOL
Configuration)” and “Show readme file” check boxes are displayed.
When you are installing the software or hardware for the first time:
1) Uncheck “Perform a hardware setup now”.
2) Click on the [Finish] button.
Go to Step 2 to set and plug the hardware.
* When the hardware has already been installed:
Check “Perform a hardware setup now(API-TOOL Configuration)”, then go to Step 4
“Initializing the Software”.
2. Setup
You have now finished installing the software.
DIO-1616TB-PE
15
Page 23
2. Setup
Step 2 Setting the Hardware
This section describes how to set the board and plug it on your PC.
The board has some switches to be preset.
Check the on-board switches before plugging the board into an extension slot.
The board can be set up even with the factory defaults untouched. You can change board settings later.
Parts of the Board and Factory Defaults
Figure 2.1. shows the names of major parts on the board.
Note that the switch setting shown below is the factory default.
- Power supply setting jumper
(JP2 - JP5)
JP2 - 5
1 2 3
DIO-1616TB-PE
SW1
BOARD ID
- Board ID setting switch
(SW1)
SW1
BOARD ID
8
9
7
6
5
4
3
2
0
1
A
B
C
D
E
F
- Interface connector
(CN1)
37
3618
212
20
19
1
Figure 2.1. Component Locations
16
DIO-1616TB-PE
Page 24
2. Setup
Setting the Board ID
If you install two or more boards on one personal computer, assign a different ID value to each of the
boards to distinguish them.
The board IDs can be set from 0 to Fh to identify up to sixteen boards.
If only one board is used, the original factory setting (Board ID = 0) should be used.
Setting Procedure
To set the board ID, use the rotary switch on the board. Turn the SW1 knob to set the board ID as
shown below.
SW1
BOARD ID
8
9
7
A
6
B
5
C
4
D
0
1
E
F
Factory setting:
(Board ID = 0)
3
2
Figure 2.2. Board ID Settings (SW1)
DIO-1616TB-PE
17
Page 25
2. Setup
Selecting Power Supply
This board equips power supply (5VDC, 600mA) for driving opto-coupler. You can select to use this
internal power supply or use an external power supply for driving the opto-isolation circuits in unit of
two ports (16ch) per common.
CAUTION
-When the internal power supply is used, the input section of this board consumes up to 51mA
current maximum and the output channel switching section consumes up to 105.6mA current
maximum. Note that the output current that can be supplied to the external device is therefore
443.4mA maximum in case you use internal power supply for all the input and output channels.
-The both internal and external supply must not be used simultaneously. Or the supply will be
broken down.
Setting method
Jumpers JP2 - JP5 on the board are used to select the internal or external power supply.
Use internal power *
+0 port (input)
+1 port (input)
+2 port (output)
+3 port (output)
* Factory setting
Notes : These jumpers must be set in pairs.
JP4
JP2
1 2 3
1 2 3
1 2 3
1 2 3
JP4
JP5
1 2 3
JP2JP3JP3
Figure 2.3. Power supply setting for driving the opto-coupler
Use external power
1 2 3
JP5
1 2 3
1 2 3
18
DIO-1616TB-PE
Page 26
Plugging the Board
(1) Before plugging the board, shut down the system, unplug the power code of your PC.
(2) Remove the cover from the PC so that the board can be mounted.
(3) Plug the board into an extension slot.
(4) Attach the board bracket to the PC.
(5) Put the cover back into place.
2. Setup
CAUTION
-Do not touch the board's metal plated terminals (edge connector) with your hands.
Otherwise, the board 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 the board to or from the slot while the computer's or extension unit’s power is
turned on.
Otherwise, the board may malfunction, overheat, or cause a failure.
Be sure that the personal computer power is turned off.
-Make sure that your PC or extension unit can supply ample power to all the boards installed.
Insufficiently energized boards could malfunction, overheat, or cause a failure.
DIO-1616TB-PE
19
Page 27
2. Setup
Step 3 Installing the Hardware
For using an extension board under Windows, you have to let the OS detect the I/O addresses and IRQ
to be used by the board. The process is referred to as installing the hardware.
In the case of using two or more boards, make sure you install one by one with the Found New
Hardware Wizard.
Turning on the PC
Turn on the power to your PC.
CAUTION
-The board cannot be properly installed unless the resources (I/O addresses and interrupt level) for
the board can be allocated. Before attempting to install the board, first determine what PC
resources are free to use.
-The resources used by each board do not depend on the location of the PCI Express bus slot or the
board itself. If you remove two or more boards that have already been installed and then remount
one of them on the computer, it is unknown that which one of the sets of resources previously
assigned to the two boards is assigned to the remounted board. In this case, you must check the
resource settings.
When Using API-DIO(WDM)
(1) The “Found New Hardware Wizard” will be started.
Select “No, not this time” and then click the “Next” button.
20
DIO-1616TB-PE
Page 28
(2) When “Multimedia Controller” is displayed, select “Install from a list or specific
location[Advanced]” and then specify that folder on the CD-ROM which contains the setup
information (INF) file to register the board.
When the model name of hardware is displayed, select “Install the software automatically
[Recommended]” and then click on the “Next” button.
Source folder
The setup information (INF) file is contained in the following folder on the bundled CD-ROM.
Windows Vista, XP, Server 2003, 2000 \INF\Wdm\Dio
2. Setup
DIO-1616TB-PE
\INF\Wdm\Dio
21
Page 29
2. Setup
You have now finished installing the hardware.
* The name of the board
you have just added is
displayed.
- DIO-1616TB-PE
22
DIO-1616TB-PE
Page 30
When Using API-DIO(98/PC)
(1) The “Found New Hardware Wizard” will be started.
Select “No, not this time” and then click the “Next” button.
(2) Select “Install from a list or specific location[Advanced]” and then click the “Next” button.
2. Setup
DIO-1616TB-PE
23
Page 31
2. Setup
(3) Specify that folder on the CD-ROM which contains the setup information (INF) file to register the
board.
* The name of the board
you have just added is
displayed.
- DIO-1616TB-PE
Source folder
The setup information (INF) file is contained in the following folder on the bundled CD-ROM.
Windows Vista, XP, Server 2003, 2000\INF\Win2000\Dio\PCI
Example of specifying the folder for use under Windows XP
\INF\Win2000\Dio\PCI
24
DIO-1616TB-PE
Page 32
2. Setup
CAUTION
In Windows XP, the Hardware Wizard displays the following alert dialog box when you have
located the INF file. This dialog box appears, only indicating that the relevant driver has not
passed Windows Logo testing, and it can be ignored without developing any problem with the
operation of the board.
In this case, click on the [Continue Anyway] button.
You have now finished installing the hardware.
* The name of the board
you have just added is
displayed.
- DIO-1616TB-PE
DIO-1616TB-PE
25
Page 33
2. Setup
Step4 Initializing the Software
The driver function library requires the initial setting to recognize the execution environment. It is
called the initialization of the Driver library.
When Using API-DIO(WDM)
Setting the device name
(1) Run Device Manager. From [My Computer] - [Control Panel], select [System] and then select the
[Device Manager] tab.
(You can also open Device Manager by right clicking on My Computer and selecting Properties.)
* The name of the board
you have just added is
displayed.
- DIO-1616TB-PE
(2) The installed hardware appears under the CONTEC Devices node. Open the CONTEC Devices
node and select the device you want to setup (the device name should appear highlighted). Click
[Properties].
26
DIO-1616TB-PE
Page 34
2. Setup
(3) The property page for the device opens.
Enter the device name in the common settings tab page and then click [OK].
The device name you set here is used later when programming.
*The initial device name that appears is a default value. You can use this default name if you wish.
*Make sure that you do not use the same name for more than one device.
You have now finished installing the initial setting of Software.
DIO-1616TB-PE
27
Page 35
2. Setup
When Using API-DIO(98/PC)
(1) Open the Start Menu, then select “Programs” – “CONTEC API-PAC(W32)” – “API-TOOL
(1) Select “Save setting to registry…” from the “File” menu.
You have now finished installing the initial setting of Software.
28
DIO-1616TB-PE
Page 36
2. Setup
Step 5 Checking Operations with the Diagnosis
Program
Use the diagnosis program to check that the board and driver software work normally, thereby you can
confirm that they have been set up correctly.
What is the Diagnosis Program?
The diagnosis program diagnoses the states of the board and driver software.
It can also be used as a simple checker when an external device is actually connected.
Using the “Diagnosis Report” feature reports the driver settings, the presence or absence of the board,
I/O status, and interrupt status.
Check Method
Connect the board to a remote device to test the input/output and check the execution environment.
The Check Mate (CM-32(PC)E) comes in handy when you check digital I/O boards.
Check the board with the factor defaults untouched.
Connection diagram
Board
Connector
Option cable
PCB37PS-xx
CM-32(PC)E
GROUP 1
7 6 5 4 3 2 1 0
GROUP 3
7 6 5 4 3 2 1 0
GROUP 0
7 6 5 4 3 2 1 0
GROUP 2
7 6 5 4 3 2 1 0
POWER
CN3
To connect a device other than the Check Mate, see Chapter 3 “External Connection”.
DIO-1616TB-PE
29
Page 37
2. Setup
Using the Diagnosis Program
Starting the Diagnosis Program for Use of API-DIO(WDM)
Click the [Diagnosis] button on the device property page to start the diagnosis program.
30
DIO-1616TB-PE
Page 38
2. Setup
Starting the Diagnosis Program for Use of API-DIO(98/PC)
Select the board in the API-TOOL Configuration windows, then run the Diagnosis Program. Follow
the instructions on screen.
* The name of the board you have just added is displayed.
* The name of the board
you have just added is
displayed.
- DIO-1616TB-PE
DIO-1616TB-PE
31
Page 39
2. Setup
Checking Digital Inputs and Outputs
The main panel of the Diagnosis Program appears.
You can check the current operation states of the board in the following boxes:
“Input Port” :
“Output Port” :
“Interrupt” :
Displays input values bit by bit at fixed time intervals.
Mouse operation allows the data to output or display.
Displays the number of interrupts detected bit by bit.
* The name of the board
you have just added is
displayed.
- DIO-1616TB-PE
To use the wait time control feature, click on the [Wait Configuration] button. Use the feature when
the wait time based on the DioWait or DioWaitEx function is not normal.
To use the function execution time measurement feature, click on the [Measurement Time] button.
Enter the I/O start port and the number of ports, then press the measurement button. The time for each
execution of a function will be measured.
32
DIO-1616TB-PE
Page 40
2. Setup
Diagnosis Report
(1) Clicking on the [Show Diagnosis Report] button displays detailed data such as board settings and
the diagnosis results while saving them in text format.
When it is API-DIO(WDM), file name to save the result is displayed.
When it is API-DIO(98/PC), the result is saved to the folder in which to install (Program
Files\CONTEC\API-PAC(W32)) by the text file (DioRep.txt) and then displayed.
The Diagnosis Program performs “board presence/absence check”, “driver file test”, “board setting
test”, and so on.
CAUTION
Before executing diagnosis report output, unplug the cable from the board.
(2) A diagnosis report is displayed as shown below.
* The name of the board
you have just added is
displayed.
- DIO-1616TB-PE
Click on [Show
Diagnosis Report].
* The name of the board
you have just added is
displayed.
- DIO-1616TB-PE
DIO-1616TB-PE
33
Page 41
2. Setup
Setup Troubleshooting
Symptoms and Actions
No output can be obtained.
Use API-TOOL Configuration to check whether the board name setting is wrong.
The board works with the Diagnosis Program but not with an application.
The Diagnosis Program is coded with API-TOOL functions. As long as the board operates with the
Diagnosis Program, it is to operate with other applications as well. In such cases, review your program
while paying attention to the following points:
-Check the arguments to functions and their return values.
-When the board is an isolated type, it has a time lag for its response between the output by a
function and the actual output. Consider the execution intervals between functions.
The OS won’t normally get started or detect the board.
[Windows Vista, XP, Server 2003, 2000
Turn off the power to your PC, then unplug the board. Restart the OS and delete the board settings of
API-TOOL Configuration. Turn off the PC again, plug the board, and restart the OS. Let the OS
detect the board and use API-TOOL Configuration to register board settings.
If your problem cannot be resolved
Contact your retailer.
]
34
DIO-1616TB-PE
Page 42
3. External Connection
3. External Connection
This chapter describes the interface connectors on the board and the external I/O circuits.
Check the information available here when connecting an external device.
How to connect the connectors
Connector shape
The on-board interface connector (CN1) is used when connecting this product and the external devices.
Interface connector (CN1)
- Connector used
37-pin D-SUB connector [F(female)type]
37
3618
212
20
CN1
* Please refer to chapter 1 for more information on the supported cable and accessories.
Figure 3.1. Interface Connector (CN1) Shape
DCLC-J37SAF-20L9E [mfd by JAE] or equivalent to it
19
Lock nut UNC #4-40 (inch screws)
- Applicable connector
17JE-23370-02(D8C) -CG [mfd by DDK, M(male)type ]
FDCD-37P(55) [mfd by HIROSE, M(male)type]
DC-37P-NR [mfd by JAE, M(male)type]
1
DIO-1616TB-PE
35
Page 43
3. External Connection
Connector Pin Assignment
Pin Assignments of Interface Connector (CN1)
19
+5V
Vcc
37
O-37
36
O-36
35
O-35
+3 port
(output)
+2 port
(output)
Signal common
I-00 - I-17 can be used as interrupt signal.
* The numbers in square brackets [ ] are pin numbers designated by HONDA TSUSHIN KOGYO CO., LTD.
I-00 - I-1716 input signal pins. Connect output signals from the external device to these pins.
O-20 - O-3716 output signal pins. Connect these pins to the input signal pins of the external device.
VccWhen using the internal power supply, output +5V. When using the external power supply,
GND
N.C.This pin is left unconnected.
connect these pins to the positive side.
When using the internal power supply, output GND. When using the external power supply,
Relationships between API-PAC(W32) Logical Ports/Bits and
Connector Signal Pins
The following table lists the relationships between the connector signal pins and the logical port/bit
numbers used for I/O functions when applications are written with API-PAC(W32).
Table 3.1. Logical Ports, Logical Bits, and Connector Signal Pins
D7D6D5D4D3D2D1D0
I-07
I-06
I-05
I-04
I-03
I-02
I-01
Input logical port 0
Input logical port 1
Output logical port 0
Output logical port 1
Notes :
[7]
[6]
[5]
[4]
[3]
[2]
I-17
I-16
I-15
I-14
I-13
[15]
[14]
[13]
[12]
D7D6D5D4D3D2D1D0
O-27
O-26
O-25
O-24
[7]
[6]
[5]
[4]
O-37
O-36
O-35
O-34
[15]
[14]
[13]
[12]
I-xx and O-xx represents the I/O signals. [xx] represents the logical
bits.
[11]
O-23
[3]
O-33
[11]
I-12
[10]
O-22
[2]
O-32
[10]
[1]
I-11
[9]
O-21
[1]
O-31
[9]
I-00
[0]
I-10
[8]
O-20
[0]
O-30
[8]
CAUTION
The logical port and logical bit numbers are virtual port and bit numbers that enable programming
independent of board I/O addresses or board types.
For details, refer to API-DIO HELP available after installing API-PAC(W32).
DIO-1616TB-PE
37
Page 45
3. External Connection
Connecting Input Signals
The external digital signal given to the signal input section is TTL level and each input signal is taken
into the PC side by negative logic.
Input Circuit
Vcc
Vcc
GND
Opto-coupler
GND
* Input pin represents I-xx.
JP4
JP5
ISO/GND
ISO/5V
Input pin
Plus
Common
Minus
Common
External circuitBoard
Vcc
GND
Figure 3.3. Input Circuit
The input circuits of interface blocks of this product are illustrated in Figure 3.3. The signal inputs are
isolated by opto-couplers. This product therefore requires the on-board internal power supply or the
external 5VDC power supply to drive the input section of this product. When using the external power
supply, 4.5mA current is requested each channel.
CAUTION
Please refer to “Selecting Power Supply” and then connect the jumper in accordance with the power
supply to be used.
38
DIO-1616TB-PE
Page 46
Connecting a Switch
I-00 (CN1 : 2 pin)
3. External Connection
Board
GND (CN1 : 1 pin)
When the switch is ON, the corresponding bit contains 1.
When the switch is OFF, by contrast, the bit contains 0.
Switch
Figure 3.4. An Example to use Input I-00
DIO-1616TB-PE
39
Page 47
3. External Connection
Connecting Output Signals
The signal output section is TTL driver output and each output signal is sent to an external device as
negative logic.
Output Circuit
Vcc
* Output pin represents O-xx.
Vcc
GND
Opto-coupler
ISO/GND
ISO/5V
JP2
Plus Common
Output Pin
Minus Common
JP3
GND
Board
Vcc
External circuit
Figure 3.5. Output Circuit
The output circuits of interface blocks of this product are illustrated in Figure 3.5. The signal outputs
are TTL level signals isolated by opto-couplers. This product therefore requires the on-board internal
power supply or the external 5VDC power supply to drive the output section of this product.
CAUTION
-The Opto-coupler used on this board, with power turned, feeds low-level output when the primary
circuit is not driven.
-Using the external power supply:
The Opto-coupler keeps on outputting low-level while the external power supply is turned on and
the PC is off.
-Using the internal power supply:
Since the internal power supply ISO/5V is enabled earlier than the PC’s Vcc, the opto-coupler
outputs the low level for several ms while the PC is off or before the PC is turned on.
-Please refer to “Selecting Power Supply” and then connect the jumper in accordance with the power
supply to be used.
40
DIO-1616TB-PE
Page 48
Connection to the LED
Vcc (CN1 : 37 pin)
3. External Connection
2kΩ
Board side
O-20 (CN1 : 21 pin)
When “1” is output to a relevant bit, the corresponding LED comes on.
When “0” is output to the bit, in contrast, the LED goes out.
LED
Figure 3.6. An Example to use Output O-20
DIO-1616TB-PE
41
Page 49
3. External Connection
Surge Protection
When connecting to digital outputs a load that may generate a voltage surge or current, for example an
inductive load such as a relay coil or incandescent lamp, suitable protection measures are required to
prevent damage to the output stage or malfunction owing to noise. The instantaneous interruption of
current flowing through a coil, including a relay ,results in the sudden generation of a high-voltage pulse.
If the voltage exceeds the withstand voltage of the transistor, the transistor performance may be
degraded or the transistor may be damaged. To prevent this, be sure to connect a surge absorption
element when driving an inductive load including a relay coil. Examples of measures against voltage
surge are shown in Figure 3.7. below.
Example of use of relay coil
+5V
Diode
Output pin
Signal common
Example of use of lump
+5V
Output pin
Signal common
Relay coil
Surge current
prevention registor
+5V
Output pin
Signal common
External power voltage < Zener diode voltage
+5V
Output pin
Signal common
Relay coil
Zener diode
Dark-lighting
bypass registor
Figure 3.7. Samples of Voltage Surge Protection
CAUTION
The protection circuit must be installed less than 50 cm from the load and contact to provide
effective protection.
42
DIO-1616TB-PE
Page 50
4. Function
4. Function
This section describes the features of the board.
Each function described here can be easily set and executed by using the bundled driver library. For
details, refer to API-DIO HELP available after installation.
Data I/O Function
Data Input
When input data is “ON”, “1” is input to the relevant bit.
When the input data is “OFF”, in contrast, “0” is input to the relevant bit.
Data Output
When “1” is output to the relevant bit, the corresponding transistor is set to “ON”.
When “0” is output to the relevant bit, in contrast, the corresponding transistor is set to “OFF”.
CAUTION
When the PC is turned on, all output are reset to 0 (OFF).
Monitoring Output Data
This product can read the state of the data currently being output without affecting the output data.
DIO-1616TB-PE
43
Page 51
4. Function
Digital Filter
Using this feature, this product can apply a digital filter to every input pin, thereby preventing the input
signal from being affected by noise or chattering.
Digital Filter Function Principle
The digital filter checks the input signal level during the sampling time of the clock signal. When the
signal level remains the same for the digital filter set time, the digital filter recognizes that signal as the
input signal and changes the signal level of the PC
If the signal level changes at a frequency shorter than the set time, therefore, the level change is ignored.
Input Signal
Input Signal
Input to PC
Digital
Filter
Filter Setting Time
Invalid
Input to PC
Valid
Figure 4.1. Digital Filter Function Principle
Set Digital Filter Time
Set the digital filter time to 0 - 20 (14h).
Setting the digital filter time to 0 disables digital filtering. It is set to 0 when the power is turned on.
Figure 4.2 shows the relationships between digital filter time settings and the actual digital filter times.
-If you set the digital filter time, the filter applies to all input pins. You cannot apply the filter only
to a specific filter.
-Do not set Setting Data to a value outside the above range as doing so can cause the board to
malfunction.
Interrupt Control Function
This product can use all of the input signals as interrupt request signals.
This product can generate an interrupt request signal to the PC when the input signal change from High
to Low or from Low to High.
When the digital filter (described above) is used, interrupt requests are generated by input signals that
have passed through the filter.
Disabling/enabling Interrupts
Interrupt mask bits can be used to disable or enable the individual bits for interruptions.
Once a certain bit has been interrupt-disabled, no interrupt occurs even when the corresponding input
signal changes its level.
To let interrupts occur, enable the corresponding interrupt mask bit for interruptions.
CAUTION
All of the interrupt mask bits are interrupt-disabled when the power is turned on.
Selecting the Interrupt Edge
Interrupt edge select bits can be used to set the input logic for interruption bit by bit.
If you set an interrupt edge select bit to 0, an interrupt occurs when the input value to the corresponding
bit changes from 0 to 1 (at the fall of the input signal from High to Low).
If you set an interrupt edge select bit to 1, an interrupt occurs when the input value to the corresponding
bit changes from 1 to 0 (at the rise of the input signal from Low to High).
CAUTION
When the power is turned on, all of the interrupt edge select bits are set to 0 so that an interrupt
occurs when the input value changes from 0 to 1 (at the fall of the input signal from High to Low).
DIO-1616TB-PE
45
Page 53
4. Function
Clearing the Interrupt Status and Interrupt Signal
Interrupt status bits are used to identify the input signal bit being used for requesting an interrupt.
When an interrupt status is input, the interrupt request signal and the interrupt status are cleared
automatically.
CAUTION
-All of the interrupt status bits are set to 0 when the power is turned on.
-If an interrupt mask bit has been set to disable interrupts, the interrupt status bit is not set even when
the input signal changes its level.
46
DIO-1616TB-PE
Page 54
5. About Software
CD-ROM Directory Structure
\
|– Autorun.exeInstaller Main Window
| Readmej.htmlVersion information on each API-TOOL (Japanese)
| Readmeu.htmlVersion information on each API-TOOL (English)
.
| ––ReleaseDriver file on each API-TOOL
| |––API_NT(For creation of a user-specific install program)
| |––API_W95
.
.
| ––UsersGuideHardware User's Guide(PDF files)
5. About Software
DIO-1616TB-PE
47
Page 55
5. About Software
About Software for Windows
The bundled CD-ROM “Driver Library API-PAC(W32)” contains the functions that provide the
following features:
-Digital input/output of specified ports
-Hardware digital input/output of specified bits
-Hardware digital filtering that prevents chattering
For details, refer to the help file. The help file provides various items of information such as “Function
Reference”, “Sample Programs”, and “FAQs”. Use them for program development and
troubleshooting.
Accessing the Help File
(1) Click on the [Start] button on the Windows taskbar.
(2) Using the API-DIO(WDM), from the Start Menu, select “Programs” – “CONTEC API-PAC(W32)”
- “DIOWDM” - “API-DIO(WDM) HELP” to display help information.
(3) Using the API-DIO(98/PC), from the Start Menu, select “Programs” – “CONTEC API-PAC(W32)”
- “Dio” - “API-DIO HELP” to display help information.
Using Sample Programs
Sample programs have been prepared for specific basic applications.
For the API-DIO(WDM), The sample programs are stored in
\Program Files\CONTEC\API-PAC(W32)\DIOWDM\Sample.
For the API-DIO(98/PC), The sample programs are stored in
\Program Files\CONTEC\API-PAC(W32)\Dio\Samples.
To use each sample program, enter its driver number and group number set by API-TOOL
Configuration in the DrvNo and GrpNo fields.
Use these sample programs as references for program development and operation check.
Running a Sample Program
(1) Click on the [Start] button on the Windows taskbar.
(2) For the API-DIO(WDM), from the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” –
“DIOWDM” – “SAMPLE…”.
(3) For the API-DIO(98/PC), from the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” –
“Dio” – “SAMPLE…”.
(4) A sample program is invoked.
48
DIO-1616TB-PE
Page 56
5. About Software
Sample Programs – Examples
API-DIO(WDM) sample program
-Simple I/O sample program: Input digital data through a specified port.
-Multi ports/bits I/O sample program: Input digital data through a specified multi ports/bits.
-Trigger monitoring sample program: Monitoring rising/falling trigger through a specified
-Interrupt sample program: Services interrupts of a specified board.
API-DIO(98/PC) sample program
-Sample program 1:Inputs digital data through a specified port.
-Sample program 2:Outputs digital data through a specified port.
-Sample program 3:Inputs/outputs digital data from/to a programmable board.
-Sample program 4:Inputs digital data from a specified port in the background.
-Sample program 5:Inputs/outputs digital data from/to a specified bit.
-Sample program 6:Services interrupts of a specified board.
-Sample program 7:Provides process control of a specified board.
-Sample program 8:Performs trigger monitoring of a specified board.
-Sample program 9:Inputs digital data through a specified port using BCD data.
-Sample program 10:Executes digital input (simple functions) at specified bits through a
specified port.
-Sample program 11:Services interrupts of a specified board (using an extended function).
-Sample program (Console):Inputs/outputs digital data through a specified port.
board.
DIO-1616TB-PE
49
Page 57
5. About Software
Uninstalling the Driver Libraries
To uninstall API-PAC(W32), follow the procedure below.
(1) Click on the [Start] button on the Windows taskbar. From the Start Menu, select “Control Panel”.
(2) Double-click on “Add or Remove Programs” in the Control Panel.
(3) For use of API-DIO(WDM), select “CONTEC API-DIO(WDM) driver” and
“CONTEC API-DIO(WDM) VerX.XX (Develop)” from the application list displayed.
For use of API-DIO(98/PC), select “CONTEC API-DIO(98/PC)xx VerX.XX (Develop)” and
“CONTEC API-DIO(98/PC)xx VerX.XX (Runtime)” from the application list displayed.
Click on the [Change/Remove] button. Follow the on-screen instructions to uninstall the function
libraries.
50
DIO-1616TB-PE
Page 58
5. About Software
About Software for Linux
The Linux version of digital I/O function driver, API-DIO(LNX), provides function s that execute the
following features:
-Digital input/output of specified ports
-Digital input/output of specified bits
-Hardware digital filtering that prevents chattering
For details, refer to the help file. The help file provides various items of information such as “Function
Reference”, “Sample Programs”, and “FAQs”. Use them for program development and
troubleshooting.
Driver Software Install Procedure
The Linux version for digital I/O driver, API-DIO(LNX), is supplied as a compressed file
/linux/dio/cdioXXX.tgz on the bundled API-PAC(W32)CD-ROM. (Note: XXX represents the driver
version.)
Mount the CD-ROM as shown below, copy the file to an arbitrary directory, and decompress the file to
install the driver.
For details on using the driver, refer to readme.txt and the help file in HTML format extracted by
installation.
To install the d r iver, log in as a superuser.
Decompression and setup procedure
# cd
# mount /dev/cdrom /mnt/cdromMount the CD-ROM.
# cp /mnt/cdrom/linux/dio/cdioXXX.tgz ./Copy the compressed file.
# tar xvfz cdioXXX.tgzDecompress the compressed file.
................
# cd contec/cdio
# make
Compile the file.
................
# make installInstall.
................
# cd config
# ./configSet up the board to be used.
..... Set as follows.........
# ./contec_dio_start.shStart the driver.
# cd
DIO-1616TB-PE
51
Page 59
5. About Software
Accessing the Help File
(1) Invoke a web browser in your X-Window environment.
(2) In the browser, open diohelp.htm in the the contec/cdio/help directory.
Using Sample Programs
Sample programs have been prepared for specific basic applications.
Sample programs for each language are contained in the contec/cdio/samples directory. For compiling
them, refer to the manual for the desired language.
Uninstalling the driver
To uninstall the driver, use the uninstall shell script contained in the contec/cdio directory. For details,
check the contents of the script.
52
DIO-1616TB-PE
Page 60
6. About Hardware
6. About Hardware
This chapter provides hardware specifications and hardware-related supplementary information.
For detailed technical information
For further detailed technical information (“Technical Reference” including the information such as an
I/O map, configuration register, etc.), visit the Contec's web site (http://www.contec.com/support/) to
call for it.
DIO-1616TB-PE
53
Page 61
6. About Hardware
Hardware specification
Specification
Table 6.1. Specification
ItemSpecification
Input
Input format
Number of input signal
channels
Input resistance
Interrupt
Response time
Output
Output format
Number of output signal
channels
Output voltage
Output
rating
Output current
Response time
Common
Built-in power
Allowable distance of
signal exten sion
I/O addressAny 32-byte boundary
Interruption level1 level use
Max. board count for
connection
Isolated Power500Vrms
External circuit power
supply
Power consumption (Max.)
Operating condition0 - 50°C, 10 - 90%RH (No condensation)
Bus specificationPCI Express Base Specification Rev. 1.0a x1
Dimension (mm)169.3 3(L ) x 110 . 18 (H)
Connector
Weight
*1 Data “0” and “1” correspond to the High and Low levels, respectively.
*2 When using the internal power supply, the input section consumes a maximum of 51mA and the output channel
switching section consumes a maximum of 105.6mA. In this case, therefore, the output current to be supplied from
the board is 443.4mA.
Opto-isolated TTL level input (Negative logic *1)
16ch (all available for interrupts) (1 common)
1.1kΩ
16 interrupt input signals are arranged into a single output of interrupt signal INTA.
An interrupt is generated at the rising edge (HIGH-to-LOW transition) or
falling edge (LOW-to-HIGH transition).
5VDC (Max.)
Average 6.4mA (par channel) (4 TTL loads )
Within 1µsec
5VDC 600mA *2
Approx. 5m (depending on wiring environment)
16 boards including the master board
5VDC (±10%)
When using the internal power supply : 3.3VD C 550mA, 1 2 VD C 35 0mA
When using the external power supply : 3.3VDC 550mA
37 pin D-SUB connector [F (female) type]
DCLC-J37SAF-20L9E [mfd by JAE] or equivalent to it
140g
54
DIO-1616TB-PE
Page 62
Board Dimensions
169.33(L)
6. About Hardware
110.18(H)
The standard outside dimension (L) is
the distancefrom theend ofthe boar
totheoutersurfaceoftheslotcover.
Block Diagram
Control
Circuits
PCI Express bus
[mm]
d
Optocoupler
Optocoupler
Optocoupler
Optocoupler
External
digital input port 0
(8ch, Group 0)
External
digital input port 1
(8ch, Group 1)
External
digital output port 0
(8ch, Group 2)
External
digital output port 1
(8ch, Group 3)
Interrupt
Control
Circuit
Figure 6.1. Block Diagram
DIO-1616TB-PE
DIO-1616TB-PE
55
Page 63
DIO-1616TB-PE
User’s Guide
CONTEC CO., LTD.
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan
Japanese http://www.contec.co.jp/
Englishhttp://www.contec.com/
Chinese http://www.contec.com.cn/
No part of this document may be copied or reproduced in any form by any means without prior written
consent of CONTEC CO., LTD. [02012007]
[02012007]Management No.A-51-385
February 2007 Edition
Parts No.LYHB891
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.