Digital I/O Board with Opto-Isolation
for PCI Express,
DIO-6464L-PE
Digital Input Board with Opto-Isolation
DI-128L-PE
Digital Output Board with Opto-Isolation
DO-128L-PE
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, t hat your packa ge is complete. If yo u discover dam aged or missi ng items,
contact your retailer.
Product Configuration List
- Board (one of the followings)
[DIO-6464L-PE, DI-128L-PE or DO-128L-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)
CD-ROM
Board
First step guide
[API-PAC(W32)]
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
i
Copyright
Copyright 2006 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.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
ii
Table of Contents
Check Your Packag e............................................................................................................................i
Trademarks ......................................................................................................................................... ii
Table of Con tents ..............................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the Boa rd.................................................................................................................................. 1
Safety Precau ti o n s .............................................................................................................................. 6
Safety Infor mat i o n....................................................................................................................... 6
Handling Pre ca u tio ns................................................................................................................... 7
This chapter provides information you should know before using the product.
About the Board
This product is a PCI Expre ss bu s-complia nt inter face boar d used t o pro vide a di gital signal I/ O functi on
on a PC.
This product can input and output digital signals at 12 - 24VDC.
DIO-6464L-PE features 64 Optocoupler isolated inputs and 64 Optocoupler isolated open-collector
outputs. You can use 16 input signals as interrupt inputs. In addition, the digital filter function to prevent
wrong recognition of input signals is provided and output transistor protection circuit (surge voltage
protection and overcurrent protection).
DI-128L-PE features 128 Optocoupler isolated inputs. You can use 16 input signals as interrupt inputs.
In addition, the digital filter function to prevent wrong recognition of input signals is provided.
DO-128L-PE features 128 Optocoupler isolated open-collector outputs. In addition, output transistor
protection circuit (surge voltage protection and overcurrent protection).
Windows/Linux driver is bundled with this p rodu ct.
Possible to be used as a data recording device for LabVIEW, with dedicated libraries.
Features
- Optocoupler isolated inputs (compatible with current sink output), and Optocoupler isolated
open-collector outputs (current sink type)
DIO-6464L-PE has the 64 channels of Optocoupler isolated input (compatible with current sink output)
and 64 channels Optocoupler isolated open-collector output (current sink type) whose res ponse speed is
200µsec. Common terminal provided per 16 channels, capable of supporting a different external power
supply. Supporting driver voltages of 12 - 24 VDC for I/O.
DI-128L-PE has the 128 channels of Optocoupler isolated input (compatible with current sink output)
whose response speed is 200µsec. Common terminal provided per 16 channels, capable of supporting a
different external power supply. Supporting driver vo ltages of 12 - 24 VDC fo r I/O.
DO-128L-PE has the 128 channels of Optocoupler isolated open-collector output (current sink type)
whose response speed is 200µsec. Common ter minal provided p er 16 ch annels , cap ab le of supporting a
different external power supply. Supporting driver vo ltages of 12 - 24 VDC fo r I/O.
- Optocoupler bus isolation
As the PC is isolated from the input and output interfaces by Optocoupler, this product has excellent
noise performance.
- You can use 16 input signals as interrupt request signals. (For DIO-6464L-PE, DI-128L-PE only)
You can use 16 input signals as interrupt request signals and also disable or enable the interrupt in bit
units and select the edge of the input signals, at which to generate an interrupt.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
1
1. Before Using the Product
- Windows/Linux compatible driver libraries are attached.
Using the attached driver library API-PAC(W32) makes it possible to create applications of
Window/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 wrong recognition of input signals from carrying noise or
a chattering. (For DIO-6464L-PE, DI-128L-PE only)
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.
- Output circuits include zener diodes for surge voltage protection and poly-switches for overcurrent
protection. (DIO-6464L-PE, DO-128L-PE only)
Zener diodes are connected to the output circuits to protect against surge voltages. Similarly,
polyswitches are fitted to each group of 8 channels outputs for over-current protection.
Output rating : max 35VDC, 100mA per pin.
- Functions and connectors are compatible with PCI compatible board PIO-64/64L(PCI)H Series.
DIO-6464L-PE : The functions same with PCI compatible board PIO-64/64L(PCI)H are provided.
DI-128L-PE : The functions same with PCI compatible board PI-128L(PCI)H are provided.
DO-128L-PE : The functions same with PCI compatible board PO-128L(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.
- 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.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
2
1. Before Using the Product
Support Software
You should use CONTEC support software accor d ing to your purpose and development environment.
Windows version of digital I/O driver
API-DIO(WDM) / API-DIO(98/PC)
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-DIO(WDM) / API-DIO(98/PC) is the Windows 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 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 (http://www.contec.com/apipac/). For 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 (modules) 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 availabl e after installation .)
Adaptation language gcc
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
(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.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
3
1. Before Using the Product
Cable & Connector (Option)
Shielded Cable With Two 100pin Connector
: PCB100PS-0.5 (0.5m)
: PCB100WS-1.5 (1.5m)
: PCB100WS-3 (3m)
: PCB100WS-5 (5m)
* If using both the CNA and CNB connectors, two cable sets are required.
Accessories (Option)
Screw Terminal Unit (M3 x 100P) : EPD-100A *1*4*6
Screw Terminal Unit (M3 x 96P) : EPD-96A *2*4*6
Screw Terminal Unit (M3.5 x 96P) : EPD-96 *2*4
Terminal Unit for Cables (M2.5 x 96P) : DTP-64(PC) *2*4
Connector Conversion Board (96-Pin→37-Pin x 2) : CCB-96 *2*4
Signal Monitor / Output Accessory for Digital I/O (64P) : CM-64(PC)E *2*4
Screw Terminal Unit (M3 x 37P) : EPD-37A *3*5*6
Screw Terminal Unit (M3.5 x 37P) : EPD-37 *3*5
General Purpose Terminal (M3 x 37P) : DTP-3A *3*5
Screw Terminal (M2.6 x 37P) : DTP-4A *3*5
*1 PCB100PS optional cable is required separately.
*2 PCB100/96PS optional cable is required separately.
*3 PCB100WS optional cable is required separately.
*4 If using both the CNA and CNB connectors, two each of the terminal block and cable sets are
required.
*5 If using both the CNA and CNB connectors, two cable sets are required.
You will also require sufficient terminal blocks for the number of I/O points you are using.
*6 “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-6464L-PE, DI-128L-PE, DO-128L-PE
4
1. Before Using the Product
Customer Support
CONTEC provides the following s upport services fo r 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 a nd diff erenti al files as we ll as sample pr ograms available i n
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 char ge only w hen thi s device is ret urned fr eight pr epaid with a c opy of the origi nal
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 s uch defec t or consequence s that arise from
inexperienced usage, misuse, or malfunction of this device.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
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 u sing the foll owing sym bols to prevent a ccidents res ulting in
injury or death and the destruc tion of equi pment and res ources. Under stand the mean ings of these la bels
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-6464L-PE, DI-128L-PE, DO-128L-PE
6
1. Before Using the Product
Handling Precautions
DANGER
Do not use the product where it is exposed to flamm able or corr osive ga s. Doi ng so m ay result in an
explosion, fire, electric shock, or failure.
CAUTION
- There are switches and jumpers on the product that need to be set in advance.
Be sure to check these before installing the product.
- Only set the switches and jumpers on the product to the specified settings.
Otherwise, the product may malfunction, overheat, or cause a failure.
- Do not strike or bend the product.
Otherwise, the product may malfunction, overheat, cause a failure or breakage.
- Do not touch the product's metal plated terminals (edge connector) with your hands.
Otherwise, the 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 the product to or from the extension slot while the computer's power is turned
on. And also do not connect the product and external device while the power is turned on.
Otherwise, the product may malfunction, overheat, or cause a failure.
Be sure that the personal computer or the I/O extension unit power is turned off.
- When you use this product in a noisy environment or are nervous about noise, attach ferrite cores to the
connection cable.
- Make sure that your PC or extension unit can supply ample power to all the products installed.
Insufficiently energized products could malfunction, overheat, or cause a failure.
- The specifications of this pr oduct are subject t o cha nge wit hout notic e for en hancement and qua lity
improvement.
Even when using the product continuously, be sure to read the manual and understand the contents.
- Do not modify the product. CONTEC will b ear 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-6464L-PE, DI-128L-PE, DO-128L-PE
7
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
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 fo rm.
(1) Put the 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-6464L-PE, DI-128L-PE, DO-128L-PE
8
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 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-6464L-PE, DI-128L-PE, DO-128L-PE
9
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
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
10
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 sele ct ion gu ide to eas il y se le ct th e driv e r to be us ed.
OS to be used
Windows Vista
Windows XP/Windows 2000
Device type
PCI bus, PC Card
Use the digital board for
the fisrt time?
Ye s
Language to be used
VC.Net, VB.Net, VC#.Net
VC6, VB6
API-DIO(WDM)
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
Windows Me/98/95
Windows 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
Ye s
API-DIO(98/PC)
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 Vista, driver is automatically installed.
CAUTION
Before installing the software in Windows Vista, XP, Server 2003 and 2000, log in as a user with
administrator privileges.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
12
2. Setup
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.
* Clicking the [API-DIO] button displays d etailed 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-6464L-PE, DI-128L-PE, DO-128L-PE
13
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).
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
14
2. Setup
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”.
You have now finished installing the software.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
15
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.
DIO/DI/DO-xx-PE
SW1
BOARD ID
- Board ID setting switch
(SW1)
SW1
BOARD ID
9
8
7
6
5
4
3
2
0
1
A
B
C
D
E
F
- Interface connector
(CNA, CNB)
CNACNB
Figure 2.1. Component Locations
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
16
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 boar d. Tur n the SW 1 knob to set the board ID a s show n
below.
SW1
BOARD ID
8
9
A
7
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-6464L-PE, DI-128L-PE, DO-128L-PE
17
2. Setup
Plugging the Board
(1) Before plugging the board, shut down the system, unplug the power code of you r 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.
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 or the I/O extension unit 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-6464L-PE, DI-128L-PE, DO-128L-PE
18
2. Setup
Step 3 Installing the Hardware
For using an extension board under Windows, y ou have t o 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 boar ds, make sur e you install one by one with the F ound 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 determ ine what PC resource s
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 res ources previous ly
assigned to the two bo ards is assi gned to th e re moun ted bo ard . In th is c ase , you mus t ch e ck th e
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.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
19
2. Setup
(2) When “Multimedia Controller” is displayed, select “Install from a list or s
pecific
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
\INF\Wdm\Dio
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
20
2. Setup
* The name of the board
you have just added is
displayed.
- DIO-6464L-PE,
- DI-128L-PE,
- DO-128L-PE
You have now finished installing the hardware.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
21
2. Setup
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 s
pecific location[Advanced]” and then click the “Next” button.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
22
2. Setup
(3) Specify that folder on the CD-ROM which contains the setup information (INF) f ile to reg ist er th e
board.
* The name of the board
you have just added is
displayed.
- DIO-6464L-PE,
- DI-128L-PE,
- DO-128L-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
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
23
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 releva nt dr iver has not passe d
Windows Logo testing, an d it ca n be i gnored without developing any pro bl em wit h t he opera t i on o f
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-6464L-PE,
- DI-128L-PE,
- DO-128L-PE
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
24
2. Setup
Step 4 Initializing the Software
The driver function library requires the initial setting to recognize the execution environment. It is
called the initializ ati on of th e D riv er li b rar y.
When U sin g API-DIO(WDM)
API-DIO(WDM) is initialized automatically during hardware installation. Therefore, if you want to use
it with its initial settings, you can skip the setting procedure described in Step 4. To change the device
name, follow the setting procedure shown below.
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-6464L-PE,
- DI-128L-PE,
- DO-128L-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].
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
25
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-6464L-PE, DI-128L-PE, DO-128L-PE
26
2. Setup
When Usi ng 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.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
27
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 si mple ch ec k er when an ex t ern al dev i ce i s actu all y co nn ect ed .
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.
For this board, prepare an external power supply (12 - 24VDC).
The Check Mate (CM-64(PC)E) comes in handy when you check digital I/O boards.
Check the board with the factor defaults untouched.
Connection diagram
Connector
Optional cable
PCB100/96PS-xx
To connect a device other than the Check Mate, see Chapter 3 “External Connection”.
CM-64(PC)E
GROUP 1
7 6 5 4 3 2 1 0
GROUP 3
7 6 5 4 3 2 1 0
GROUP 5
7 6 5 4 3 2 1 0
GROUP 7
7 6 5 4 3 2 1 0
ACK
External power
supply
12 - 24VDC
GROUP 0
7 6 5 4 3 2 1 0
GROUP 2
7 6 5 4 3 2 1 0
GROUP 4
7 6 5 4 3 2 1 0
GROUP 6
7 6 5 4 3 2 1 0
STB
POWER
CN3
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
28
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 di agnosis progra m.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
29
2. Setup
Startin g the Dia gnosis Pro gram 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-6464L-PE,
- DI-128L-PE,
- DO-128L-PE
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
30
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 i ntervals .
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-6464L-PE,
- DI-128L-PE,
- DO-128L-PE
To use the wait time control feature, click on t he [W ait C onfiguration] button. U se t he feat ure w hen t he
wait time based on the DioWait or DioWaitEx function is not normal.
To use the function executi on time measurem ent feature, click on t he [Measurem ent 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.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
31
2. Setup
Diagnosis Report
(1) Clicking on the [Show Diagnosis Report] button displays detailed da ta such as bo ard settin gs 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 wh i ch to in sta ll (Prog ra m
Files\CONTEC\API-PAC(W32)) by the text file (DioRep.txt) an d t h en displaye d .
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.
* The name of the board
you have just added is
displayed.
- DIO-6464L-PE,
- DI-128L-PE,
- DO-128L-PE
(2) A diagnosis report is displayed as shown below.
* The name of the board
you have just added is
displayed.
- DIO-6464L-PE,
- DI-128L-PE,
- DO-128L-PE
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
32
Click on [Show
Diagnosis Report].
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 th e OS and delete the board setting s of
API-TOOL Configuration. Turn off the PC ag ai n, pl ug the board, a nd res tart 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.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
33
2. Setup
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
34
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 (CNA, CNB) is used when connecting this product and the external
devices.
Interface connector
CNACNB
- Connector used
HDRA-E100W1LFDT1EC-SL+
[mfd by HONDA
TSUSHIN KOGYO CO., LTD.]
or equivalent to it
- Applicable connector
HDRA-E100MA1 [mfd by HONDA
TSUSHIN KOGYO CO., LTD.]
* Please refer to chapter 1 for more information on the supported cable and accessories.
Figure 3.1. Inte r face C onn ector (CNA, CNB) Shape
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
35
3. External Connection
Connector Pin Assignment
Pin Assignments of DIO-6464L-PE Interface Connector (CNA, CNB)
Common
P-E/F 100 50 P-A/B
plus pin for
+E/+F
output
P-E/F 99 49 P-A/B
ports
O-F7 98 48 O-B7 N.C. 3 53 N.C.
O-F6 97 47 O-B6 N.C. 4 54 N.C.
O-F5 96 46 O-B5 N.C. 5 55 N.C.
O-F4 95 45 O-B4 N.C. 6 56 N.C.
+F port
(Output)
O-F3 94 44 O-B3* I-00 7 57 I-40
O-F2 93 43 O-B2* I-01 8 58 I-41
O-F1 92 42 O-B1* I-02 9 59 I-42
O-F0 91 41 O-B0
O-E7 90 40 O-A7* I-04 11 61 I-44
O-E6 89 39 O-A6* I-05 12 62 I-45
O-E5 88 38 O-A5* I-06 13 63 I-46
O-E4 87 37 O-A4
+E port
(Output)
O-E3 86 36 O-A3* I-10 15 65 I-50
O-E2 85 35 O-A2* I-11 16 66 I-51
O-E1 84 34 O-A1* I-12 17 67 I-52
O-E0 83 33 O-A0
N-E/F 82 32 N-A/B* I-14 19 69 I-54
N-E/F 81 31 N-A/B* I-15 20 70 I-55
Common
N-E/F 80 30 N-A/B* I-16 21 71 I-56
minus pin
for
N-E/F 79 29 N-A/B
+E/+F
output
N-E/F 78 28 N-A/BP-0/ 1 23 73 P -4/5
ports
N-E/F 77 27 N-A/B
N.C. 76 26 N.C. N.C. 25 75 N.C.
N.C. 75 25 N.C. N.C. 26 76 N.C.
Common
P-C/D 74 24 P-8/ 9 N.C. 27 77 N.C.
plus pin for
+C/+D
output
P-C/D 73 23 P-8/ 9
ports
O-D7 72 22 O-97 N.C. 29 79 N.C.
O-D6 71 21 O-96 N.C. 30 80 N.C.
O-D5 70 20 O-95 N.C. 31 81 N.C.
O-D4 69 19 O-94 N.C. 32 82 N.C.
+D port
(Output)
O-D3 68 18 O-93I-20 33 83 I-60
O-D2 67 17 O-92I-21 34 84 I-61
O-D1 66 16 O-91I-22 35 85 I-62
O-D0 65 15 O-90
O-C7 64 14 O-87I-24 37 87 I-64
O-C6 63 13 O-86I-25 38 88 I-65
O-C5 62 12 O-85I-26 39 89 I-66
O-C4 61 11 O-84
+C port
(Output)
O-C3 60 10 O-83I-30 41 91 I-70
O-C2 59 9 O-82I-31 42 92 I-71
O-C1 58 8 O-81I-32 43 93 I-72
O-C0 57 7 O-80
N-C/D 56 6 N-8/9I-34 45 95 I-74
N-C/D 55 5 N-8/9I-35 46 96 I-75
Common
N-C/D 54 4 N-8/9I-36 47 97 I-76
minus pin
for
N-C/D 53 3 N-8/9
+C/+D
output
N-C/D 52 2 N-8/9P-2/ 3 49 99 P-6/7
ports
N-C/D 51
CNB
10050
511
1 N-8/9
* I-00 - I-17 can be used as interrupt signal.
Common
plus pin for
+A/+B
output
ports
+B port
(Output)
+A port
(Output)
Common
minus pin
for
+A/+B
output
ports
Common
plus pin for
+8/+9
output
ports
+9 port
(Output)
+8 port
(Output)
Common
minus pin
for
+8/+9
output
ports
1 51
N.C.
N.C. 2 52 N.C.
* I-03 10 60 I-43
+0 port
(Input)
CNA
* I-07 14 64 I-47
* I-13 18 68 I-53
+1 port
(Input)
* I-17 22 72 I-57
Common
plus pin for
+0/+1 input
P-0/1 24 74 P-4/5
ports
N.C. 28 78 N.C.
I-23 36 86 I-63
+2 Port
(Input)
I-27 40 90 I-67
I-33 44 94 I-73
+3 Port
(Input)
I-37 48 98 I-77
Common
plus pin
for +2/+3
P-2/3 50
input ports
151
50100
N.C.
100 P-6/7
+4 port
(Input)
+5 port
(Input)
Common
plus pin for
+4/+5 input
ports
+6 port
(Input)
+7 Port
(Input)
Common
plus pin
for +6/+7
input ports
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
36
3. External Connection
I-00 - I-77 64 channels input signal. Connect o utput signals from the external device to these pins.
O-80 - O-F7 64 channels output signal. Connect input signals from the external device to these pins.
P-0/1 - P-6/7 Connect the positive side of the external power supply. These pins are common to 16 channels input signal.
P-8/9 - P-E/F Connect the positive side of the external power supply. These pins are common to 16 channels output signal.
N-8/9 - N-E/F Connect the negative side of the external power supply. These pins are common to 16 channels output signal. One pin permissible current of the
connector is 0.3A. Please connect necess ary number of pins for the corresponding total current of the output 16 channels. When 16 channels are used by
the output full ratings (100m A per 1 channel), it is necessary to connect six all.
Pin Assignments of DO-128L-PE Interface Connector (CNA, CNB)
Common
P-E/F 100 50 P-A/B
plus pin for
+E/+F
output
P-E/F 99 49 P-A/B
ports
O-F7 98 48 O-B7
O-F6 97 47 O-B6
O-F5 96 46 O-B5
O-F4 95 45 O-B4
+F port
(Output)
O-F3 94 44 O-B3O-00 7 57 O-40
O-F2 93 43 O-B2O-01 8 58 O-41
O-F1 92 42 O-B1O-02 9 59 O-42
O-F0 91 41 O-B0
O-E7 90 40 O-A7O-04 11 61 O-44
O-E6 89 39 O-A6O-05 12 62 O-45
O-E5 88 38 O-A5O-06 13 63 O-46
O-E4 87 37 O-A4O-07 14 64 O-47
+E port
(Output)
O-E3 86 36 O-A3
O-E2 85 35 O-A2O-11 16 66 O-51
O-E1 84 34 O-A1O-12 17 67 O-52
O-E0 83 33 O-A0
N-E/F 82 32 N-A/BO-14 19 69 O-54
N-E/F 81 31 N-A/BO-15 20 70 O-55
Common
N-E/F 80 30 N-A/BO-16 21 71 O-56
minus pin
N-E/F 79 29 N-A/B
for
+E/+F
output
N-E/F 78 28 N-A/BP-0/1 23 73 P-4/5
ports
N-E/F 77 27 N-A/B
N.C. 76 26 N.C. N.C. 25 75 N.C.
N.C. 75 25 N.C. N.C. 26 76 N.C.
Common
P-C/D 74 24 P- 8/9N-2/ 3 27 77 N-6/7
plus pin for
+C/+D
output
P-C/D 73 23 P- 8/9
ports
O-D7 72 22 O-97N-2/3 29 79 N-6/7
O-D6 71 21 O-96N-2/3 30 80 N-6/7
O-D5 70 20 O-95N-2/3 31 81 N-6/7
O-D4 69 19 O-94
+D port
(Output)
O-D3 68 18 O-93O-20 33 83 O-60
O-D2 67 17 O-92O-21 34 84 O-61
O-D1 66 16 O-91O-22 35 85 O-62
O-D0 65 15 O-90
O-C7 64 14 O-87O-24 37 87 O-64
O-C6 63 13 O-86O-25 38 88 O-65
O-C5 62 12 O-85O-26 39 89 O-66
O-C4 61 11 O-84
+C port
(Output)
O-C3 60 10 O-83O-30 41 91 O-70
O-C2 59 9 O-82O-31 42 92 O-71
O-C1 58 8 O-81O-32 43 93 O-72
O-C0 57 7 O-80
N-C/D 56 6 N-8/9O-34 45 95 O-74
N-C/D 55 5 N-8/9O-35 46 96 O-75
Common
N-C/D 54 4 N-8/9O-36 47 97 O-76
minus pin
N-C/D 53 3 N-8/9
for
+C/+D
output
N-C/D 52 2 N-8/9P-2/ 3 49 99 P-6/7
ports
N-C/D 51
CNB
10050
511
1 N-8/9
Common
plus pin for
+A/+B
output
ports
+B port
(Output)
+A port
(Output)
Common
minus pin
for
+A/+B
output
ports
Common
plus pin for
+8/+9
output
ports
+9 port
(Output)
+8 port
(Output)
Common
minus pin
for
+8/+9
output
ports
1 51
N-0/1
Common
minus pin
for +0/+1
output
ports
+0 port
(Output)
+1 port
(Output)
Common
plus pin for
+0/+1
output
ports
Common
minus pin
for +2/+3
output
ports
+2 port
(Output)
+3 Port
(Output)
Common
plus pin
for +2/+3
output
ports
2 52 N-4/5
N-0/1
3 53 N-4/5
N-0/1
4 54 N-4/5
N-0/1
5 55 N-4/5
N-0/1
6 56 N-4/5
N-0/1
O-03 10 60 O-43
O-10 15 65 O-50
O-13 18 68 O-53
O-17 22 72 O-57
P-0/1 24 74 P-4/5
N-2/3 28 78 N-6/7
N-2/3 32 82 N-6/7
O-23 36 86 O-63
O-27 40 90 O-67
O-33 44 94 O-73
O-37 48 98 O-77
P-2/3 50
151
50100
CNA
N-4/5
100 P- 6/7
Common
minus pin
for +4/+5
output
ports
+4 port
(Output)
+5 port
(Output)
Common
plus pin for
+4/+5
output
ports
Common
minus pin
for +6/+7
output
ports
+6 port
(Output)
+7 Port
(Output)
Common
plus pin
for +6/+7
output
ports
O-00 - O-F7 128 channels output signal. Connect input signals from the external device to these pins.
P-0/1 - P-E/F Connect the positive side of the external power supply. These pins are common to 16 channels output signal.
N-0/1 - N-E/F Connect the negative side of the external power supply. These pins are common to 16 channels output signal. One pin permissible current of the
connector is 0.3A. Please co nnect necessary number of pins for the corresponding total cur rent of the output 16 channels. When 16 channels are used by
the output full ratings (100m A per 1 channel), it is necessary to connect six all.
Pin assignments for connecting to the PCB100/96PS or PCB 100WS
The figure below shows the correspondence between the option cable pins and signals.
< Pin assignments for connecting a PCB100/96PS or PCB100WS to the DIO-6464L-PE >
Figure 3.10. Pin Assignments of PCB100WS < DO-128L-PE >
for
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
45
3. External Connection
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).
DIO-6464L-PE
Table 3.1. Logical Ports, Logical Bits, and Connector Signal Pins < DIO-6464L-PE >
D7 D6 D5 D4 D3 D2 D1 D0
I-07
I-06
I-05
I-04
I-03
I-02
I-01
Input logical port 0
Input logical port 1
Input logical port 2
Input logical port 3
Input logical port 4
Input logical port 5
Input logical port 6
Input logical port 7
Output logical port 0
Output logical port 1
Output logical port 2
Output logical port 3
Output logical port 4
Output logical port 5
Output logical port 6
Output logical port 7
Note: I-xx and O-xx represents input and output signals of CNA, CNB, respectively, where [xx] indicates a logical bit.
[7]
[6]
[5]
[4]
[3]
[2]
I-17
I-16
I-15
I-14
I-13
[15]
[14]
[13]
[12]
I-27
I-26
I-25
[23]
[22]
I-37
I-36
[31]
[30]
I-47
I-46
[39]
[38]
I-57
I-56
[47]
[46]
I-67
I-66
[55]
[54]
I-77
I-76
[63]
[62]
D7 D6 D5 D4 D3 D2 D1 D0
O-87
O-86
[7]
[6]
O-97
O-96
[15]
[14]
O-A7
O-A6
[23]
[22]
O-B7
O-B6
[31]
[30]
O-C7
O-C6
[39]
[38]
O-D7
O-D6
[47]
[46]
O-E7
O-E6
[55]
[54]
O-F7
O-F6
[63]
[62]
[21]
I-35
[29]
I-45
[37]
I-55
[45]
I-65
[53]
I-75
[61]
O-85
[5]
O-95
[13]
O-A5
[21]
O-B5
[29]
O-C5
[37]
O-D5
[45]
O-E5
[53]
O-F5
[61]
I-24
[20]
I-34
[28]
I-44
[36]
I-54
[44]
I-64
[52]
I-74
[60]
O-84
[4]
O-94
[12]
O-A4
[20]
O-B4
[28]
O-C4
[36]
O-D4
[44]
O-E4
[52]
O-F4
[60]
[11]
I-23
[19]
I-33
[27]
I-43
[35]
I-53
[43]
I-63
[51]
I-73
[59]
O-83
[3]
O-93
[11]
O-A3
[19]
O-B3
[27]
O-C3
[35]
O-D3
[43]
O-E3
[51]
O-F3
[59]
I-12
[10]
I-22
[18]
I-32
[26]
I-42
[34]
I-52
[42]
I-62
[50]
I-72
[58]
O-82
[2]
O-92
[10]
O-A2
[18]
O-B2
[26]
O-C2
[34]
O-D2
[42]
O-E2
[50]
O-F2
[58]
[1]
I-11
[9]
I-21
[17]
I-31
[25]
I-41
[33]
I-51
[41]
I-61
[49]
I-71
[57]
O-81
[1]
O-91
[9]
O-A1
[17]
O-B1
[25]
O-C1
[33]
O-D1
[41]
O-E1
[49]
O-F1
[57]
I-00
[0]
I-10
[8]
I-20
[16]
I-30
[24]
I-40
[32]
I-50
[40]
I-60
[48]
I-70
[56]
O-80
[0]
O-90
[8]
O-A0
[16]
O-B0
[24]
O-C0
[32]
O-D0
[40]
O-E0
[48]
O-F0
[56]
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
46
3. External Connection
DI-128L-PE
Table 3.2. Logical Ports, Logical Bits, and Connector Signal Pins < DI-128L-PE >
D7 D6 D5 D4 D3 D2 D1 D0
I-07
I-06
I-05
I-04
I-03
I-02
I-01
Input logical port 0
Input logical port 1
Input logical port 2
Input logical port 3
Input logical port 4
Input logical port 5
Input logical port 6
Input logical port 7
Input logical port 8
Input logical port 9
Input logical port 10
Input logical port 11
Input logical port 12
Input logical port 13
Input logical port 14
Input logical port 15
Note: I-xx represents input signals of CNA, CNB, respectively, where [xx] indicates a logical bit.
[7]
I-17
[15]
I-27
[23]
I-37
[31]
I-47
[39]
I-57
[47]
I-67
[55]
I-77
[63]
I-87
[71]
I-97
[79]
I-A7
[87]
I-B7
[95]
I-C7
[103]
I-D7
[111]
I-E7
[119]
I-F7
[127]
[6]
I-16
[14]
I-26
[22]
I-36
[30]
I-46
[38]
I-56
[46]
I-66
[54]
I-76
[62]
I-86
[70]
I-96
[78]
I-A6
[86]
I-B6
[94]
I-C6
[102]
I-D6
[110]
I-E6
[118]
I-F6
[126]
[5]
I-15
[13]
I-25
[21]
I-35
[29]
I-45
[37]
I-55
[45]
I-65
[53]
I-75
[61]
I-85
[69]
I-95
[77]
I-A5
[85]
I-B5
[93]
I-C5
[101]
I-D5
[109]
I-E5
[117]
I-F5
[125]
[4]
I-14
[12]
I-24
[20]
I-34
[28]
I-44
[36]
I-54
[44]
I-64
[52]
I-74
[60]
I-84
[68]
I-94
[76]
I-A4
[84]
I-B4
[92]
I-C4
[100]
I-D4
[108]
I-E4
[116]
I-F4
[124]
[3]
I-13
[11]
I-23
[19]
I-33
[27]
I-43
[35]
I-53
[43]
I-63
[51]
I-73
[59]
I-83
[67]
I-93
[75]
I-A3
[83]
I-B3
[91]
I-C3
[99]
I-D3
[107]
I-E3
[115]
I-F3
[123]
[2]
I-12
[10]
I-22
[18]
I-32
[26]
I-42
[34]
I-52
[42]
I-62
[50]
I-72
[58]
I-82
[66]
I-92
[74]
I-A2
[82]
I-B2
[90]
I-C2
[98]
I-D2
[106]
I-E2
[114]
I-F2
[122]
[1]
I-11
[9]
I-21
[17]
I-31
[25]
I-41
[33]
I-51
[41]
I-61
[49]
I-71
[57]
I-81
[65]
I-91
[73]
I-A1
[81]
I-B1
[89]
I-C1
[97]
I-D1
[105]
I-E1
[113]
I-F1
[121]
I-00
[0]
I-10
[8]
I-20
[16]
I-30
[24]
I-40
[32]
I-50
[40]
I-60
[48]
I-70
[56]
I-80
[64]
I-90
[72]
I-A0
[80]
I-B0
[88]
I-C0
[96]
I-D0
[104]
I-E0
[112]
I-F0
[120]
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
47
3. External Connection
DO-128L-PE
Table 3.3. Logical Ports, Logical Bits, and Connector Signal Pins < DO-128L-PE >
D7 D6 D5 D4 D3 D2 D1 D0
O-07
O-06
O-05
O-04
O-03
O-02
O-01
Output logical port 0
Output logical port 1
Output logical port 2
Output logical port 3
Output logical port 4
Output logical port 5
Output logical port 6
Output logical port 7
Output logical port 8
Output logical port 9
Output logical port 10
Output logical port 11
Output logical port 12
Output logical port 13
Output logical port 14
Output logical port 15
Note: O-xx represents outputput signals of CNA, CNB, respectively, where [xx] indicates a logical bit.
CAUTION
[7]
O-17
[15]
O-27
[23]
O-37
[31]
O-47
[39]
O-57
[47]
O-67
[55]
O-77
[63]
O-87
[71]
O-97
[79]
O-A7
[87]
O-B7
[95]
O-C7
[103]
O-D7
[111]
O-E7
[119]
O-F7
[127]
[6]
[5]
[4]
[3]
[2]
O-16
O-15
O-14
O-13
[14]
O-26
[22]
O-36
[30]
O-46
[38]
O-56
[46]
O-66
[54]
O-76
[62]
O-86
[70]
O-96
[78]
O-A6
[86]
O-B6
[94]
O-C6
[102]
O-D6
[110]
O-E6
[118]
O-F6
[126]
[13]
O-25
[21]
O-35
[29]
O-45
[37]
O-55
[45]
O-65
[53]
O-75
[61]
O-85
[69]
O-95
[77]
O-A5
[85]
O-B5
[93]
O-C5
[101]
O-D5
[109]
O-E5
[117]
O-F5
[125]
[12]
O-24
[20]
O-34
[28]
O-44
[36]
O-54
[44]
O-64
[52]
O-74
[60]
O-84
[68]
O-94
[76]
O-A4
[84]
O-B4
[92]
O-C4
[100]
O-D4
[108]
O-E4
[116]
O-F4
[124]
[11]
O-23
[19]
O-33
[27]
O-43
[35]
O-53
[43]
O-63
[51]
O-73
[59]
O-83
[67]
O-93
[75]
O-A3
[83]
O-B3
[91]
O-C3
[99]
O-D3
[107]
O-E3
[115]
O-F3
[123]
O-12
[10]
O-22
[18]
O-32
[26]
O-42
[34]
O-52
[42]
O-62
[50]
O-72
[58]
O-82
[66]
O-92
[74]
O-A2
[82]
O-B2
[90]
O-C2
[98]
O-D2
[106]
O-E2
[114]
O-F2
[122]
[1]
O-11
[9]
O-21
[17]
O-31
[25]
O-41
[33]
O-51
[41]
O-61
[49]
O-71
[57]
O-81
[65]
O-91
[73]
O-A1
[81]
O-B1
[89]
O-C1
[97]
O-D1
[105]
O-E1
[113]
O-F1
[121]
O-00
[0]
O-10
[8]
O-20
[16]
O-30
[24]
O-40
[32]
O-50
[40]
O-60
[48]
O-70
[56]
O-80
[64]
O-90
[72]
O-A0
[80]
O-B0
[88]
O-C0
[96]
O-D0
[104]
O-E0
[112]
O-F0
[120]
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-6464L-PE, DI-128L-PE, DO-128L-PE
48
3. External Connection
Connecting Input Signals
Connect the input signals to a device which can be current-driven, such as a switch or transistor output
device.
The connection requi res an exte rn al po we r sup pl y to feed cu rr ent s.
The board inputs the ON/OFF state of the current-driven device as a digital value.
The < DIO-6464L-PE >, < DI-128L-PE > input circuit of interface is illustrated in Figure 3.11.
The signal inputs are isolated by Optocoupler (ready to accept current sinking output signals). The board
therefore requires an external power supply to drive the inputs. The power requirement for each input
pin is about 5.1mA at 24VDC (about 2.6mA at 12VDC).
Connecting to the Switch
Common plus for input (CNA : 23 pin)
I-00 (CNA : 7 pin)
Board
Switch
When the switch is ON, the corresponding bit contains 1.
When the switch is OFF, by contrast, the bit contains 0.
Figure 3.12. An Example to use Input I-00 < DIO-6464L-PE >, < DI-128L-PE >
+
External
Power
Supply
12 - 24 VDC
-
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
49
3. External Connection
Connecting Output Signals
Connect the output signals to a current-driven controlled device such as a relay or LED.
The connection requi res an exte rn al po we r sup pl y to feed cu rr ent s.
The board controls turning on/off the current-driven controlled device using a digital value.
The < DIO-6464L-PE >, < DO-128L-PE > output circuit of interface is illustrated in Figure 3.13.
The signal output section is an Optocoupler isolated, open-collector output (current sink type). Driving
the output section requires an ex tern al power supply.
The rated output current per channel is 100mA at maximum.
The output section can also be connected to a TTL level input as it uses a low-saturated transistor for
output. The residual voltage (low-level voltage) between the collector and emitter with the output on is
0.5V or less at an output current within 50mA or at most 1.0V at an output current within 100 mA.
A zener diode is connected to the output transistor for protection from surge voltages. A
PolySwitch-based overcurrent protector is provided for every eight output transistors. When the
overcurrent protector works, the output section of the board is temporarily disabled. If this is the case,
turn of the power to the PC and the external power supply and wait for a few minutes, then t urn t hem on
back.
CAUTION
When the PC is tu rn ed on , all ou tpu t are rese t to OFF .
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
50
3. External Connection
Connecting to the LED
Common pluus for output (CNB : 23 pin)
5.1kΩ
Board
O-80 (CNB : 7 pin)
Common Minus for output (CNB : 1 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
+
External
Power
Supply
12 - 24 VDC
-
Figure 3.14. An Exa mple to use Output O-80 < DIO-6464L -PE >, < DO-128L -PE >
Example of Connection to TTL Level Input
External
Power Supply
12 - 24 VDC
+
-
Input Board
Ω
2k
VCC
TTL Level Input
Common plus
for output
Output
Common Minnus
for output
GND
Figure 3.15. Connection Example of Output and TTL level Input Signal
< DIO-6464L-PE >, < DO-128L-PE >
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
51
3. External Connection
Connecting the Sink Type Output and Sink
Output Support Input
The following example shows a connection between a sink type output (output board) and a sink output
support input (input board). Refer to this connection example when you connect such boards to each
other.
External
Power Supply
12 - 24 VDC
+
-
Output Board
Common plus
for output
Output(Sink Type)
Common Minnus
for output
Input Board
Common plus
for input
Input(Sink Output Support)
Figure 3.16. Example of Connecting the Sink Type Output and Sink Output Support Input
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
52
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 API function 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 rel eva nt bi t.
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 tu rn ed on , a ll ou tpu t a re res et to 0 (OF F)
Monitoring Output Data
The < DIO-6464L-PE >, < DO-128L-PE > can read the state of the data currently being output without
affecting the output data.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
53
4. Function
Digital Filter Function
Using this feature, the < DIO-6464L-PE > and < DI-128L-PE > can apply a digital filter to every input
pin, thereby preventing wrong recognition of input signals 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 shorte r than the set t ime, therefore, the level cha nge is ignored.
Input Signal
Input Signal
Input to PC
Digital
Filter
Filter Setting Time
Invalid
Input to PC
Val id
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 t o 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.
n
/ (8 x 106)
Setting Data
(n)
7 (07h) 16μsec 14 (0Eh) 2.048msec
Digital Filter
Time
Setting Data
(n)
Digital Filter
Time
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
54
4. Function
Interrupt Control Function
Up to 16 channels of the inputs on the < DIO-6464L-PE > and < DI-128L-PE > can be used as interrupt
request signals. The inputs I-00 - I-17 can be used 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 correspondi ng inp ut
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 Edge of input signals, at which to generate an
interrupt
The input signal edge selection bit can be used to set the input logic for interruption bit by bit.
If you set an input signal edge selection 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 fro m High to Lo w).
If you set an input signal edge selection 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 sign al from Low to High).
CAUTION
All of the input signal edge selection bits are set to 0 when the power is turned on.
Clearing the Interrupt Status and Interr upt Sig nal
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 eve n when
the input signal changes its level.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
55
4. Function
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
56
5. About Software
5. About Software
CD-ROM Directory Structure
\
|– Autorun.exe Installer Main Window
| Readmej.html Version information on each API-TOOL (Japanese)
| Readmeu.html Version information on each API-TOOL (English)
.
| ––Release Driver file on each API-TOOL
| |––API_NT (For creation of a user-specific install program)
| |––API_W95
.
.
| ––UsersGuide Hardware User's Guid e( P DF fil es )
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
57
5. About Software
About Software for Windows
The bundled CD-ROM “Driver Library API-PAC(W32)” contains the function s th at provid e th e
following features:
- Digital input/output of specified po rts
- Hardware digital input/output of specified bits
- Hardware digital filtering that prevents wrong recognition of input signals from being affected by
noise or chattering.
For details, refer to the he lp file. The help file prov i de s various items of information such as “Function
Reference”, “Sample Programs”, and “FAQs”. Use them for program development and troubleshooti ng.
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” – “CONTE C API- PAC(W 32)”
- “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 num ber 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.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
58
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
board.
- 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 prog ra mmable bo ard.
-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/outputs digital data through a specified port using BCD data.
-Sample program 10 : Executes digital input/output (simple functions) at specified bits
-Sample program 11 : Services interrupts of a specified board (using an extended function).
-Sample program (Console) : Inputs/outputs digital data through a specified port.
through a specified port.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
59
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.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
60
5. About Software
About Software for Linux
The Linux version of digital I/O function driver, API-DIO(LNX), provides functions that execute the
following features:
- Digital input/output of specified po rts
- Digital input/output of specified bits
- Hardware digital filtering that prevents wrong recognition of input sign als f r om being affected by
noise or chattering.
For details, refer to the he lp file. The help file prov i de s various items of information such as “Function
Reference”, “Sample Programs”, and “FAQs”. Use them for program development and troubleshooti ng.
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 dr ive r, ref e r to re ad me.tx t and th e help fil e in HT ML fo r mat ex tra ct ed b y
installation.
To install the driv er , log in as a sup eru s er.
Decompression and setup procedure
# cd
# mount /dev/cdrom /mnt/cdrom Mount the CD-ROM.
# cp /mnt/cdrom/linux/dio/cdioXXX.tgz ./ Copy the compressed file.
# tar xvfz cdioXXX.tgz Decompress the compressed file.
................
# cd contec/cdio
# make Compile the file.
................
# make install Install.
................
# cd config
# ./config Set up the board to be used.
..... Set as follows.........
# ./contec_dio_start.sh Start the driver.
# cd
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
61
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 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 th e sc ri pt.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
62
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.
*1 Data "0" corresponds at the High level and data "1" correspond at the Low level.
Output voltage 35VDC (Max.) Output
Output current 100mA (par 1
128 channels (1 common per 16 channels unit)
channel) (Max.)
0.5V or less (Output current≤50mA), 1.0V or less (Output current≤100mA)
μsec
Approx. 50m (depending on wiring environment)
16 boards including the master board
12 - 24VDC(±10%)
HDRA-E100W1LFDT1EC-SL+[HONDA TSUSHIN KOGYO CO., LTD.] or
equivalent to it
Board Dimensions
169.33(L)
110. 18(H )
The standard outside dimension (L) is
the distance from the end of the board to
the outer surface of the slot cover.
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
66
[mm]
6. About Hardware
Block Diagram
DIO-6464L-PE
External
digital input port0
(8 channels, group0)
External
digital input port1
(8 channels, group1)
External
digital input port2
(8 channels, group2)
External
Opto
coupler
Control
Circuits
PCI Express BUS
Opto
coupler
&
Interrupt
Control Circuit
Transistors
DIO-6464L-PE
Figure 6.1. Block Diagram < DIO-6464L-PE >
digital input port3
(8 channels, group3)
External
digital input port4
(8 channels, group4)
External
digital input port5
(8 channels, group5)
External
digital input port6
(8 channels, group6)
External
digital input port7
(8ch, group7)
External
digital output port0
(8 channels, group8)
External
digital output port1
(8 channels, group9)
External
digital output port2
(8 channels, groupA)
External
digital output port3
(8 channels, groupB)
External
digital output port4
(8 channels, groupC)
External
digital output port5
(8 channels, groupD)
External
digital output port6
(8 channels, groupE)
External
digital output port7
(8 channels, groupF)
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
67
6. About Hardware
DI-128L-PE
PCI Express BUS
Interrupt
Control Circuit
Control
Circuits
Opto
coupler
DI-128L-PE
External
digital input port0
(8 channels, group0)
External
digital input port1
(8 channels, group1)
External
digital input port2
(8 channels, group2)
External
digital input port3
(8 channels, group3)
External
digital input port4
(8 channels, group4)
External
digital input port5
(8 channels, group5)
External
digital input port6
(8 channels, group6)
External
digital input port7
(8 channels, group7)
External
digital input port8
(8 channels, group8)
External
digital input port9
(8 channels, group9)
External
digital input port A
(8 channels, groupA)
External
digital input port B
(8 channels, groupB)
External
digital input port C
(8 channels, groupC)
External
digital input port D
(8 channels, groupD)
External
digital input port E
(8 channels, groupE)
External
digital input port F
(8 channels, groupF)
Figure 6.2. Block Diagram < DI-128L-PE >
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
68
6. About Hardware
DO-128L-PE
External
digital output port0
(8 channels, group0)
External
digital output port1
(8 channels, group1)
External
digital output port2
(8 channels, group2)
External
digital output port3
(8 channels, group3)
External
digital output port4
(8 channels, group4)
External
digital output port5
(8 channels, group5)
External
digital output port6
Control
Circuits
PCI Express BUS
Opto
coupler
&
Transistors
DO-128L-PE
(8 channels, group6)
External
digital output port7
(8 channels, group7)
External
digital output port8
(8 channels, group8)
External
digital output port9
(8 channels, group9)
External
digital output port A
(8 channels, groupA)
External
digital output port B
(8 channels, groupB)
External
digital output port C
(8 channels, groupC)
External
digital output port D
(8 channels, groupD)
External
digital output port E
(8 channels, groupE)
External
digital output port F
(8 channels, groupF)
Figure 6.3. Block Diagram < DO-128L-PE >
DIO-6464L-PE, DI-128L-PE, DO-128L-PE
69
DIO-6464L-PE
DI-128L-PE
DO-128L-PE
User’s Guide
CONTEC CO., LTD.January 2009 Edition
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan
Japanese http://www.contec.co.jp/
English http://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. [01062009]
[10232006] Management No. A-51-324
[01062009_rev3] Parts No. LYGS083
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.