Reverse-Common Digital I/O Board
with Opto-Isolation
PIO-16/16RL(PCI)H
User’s Guide
CONTEC CO.,LTD.
Page 2
CD-ROM
[API-PAC(W32)]Board
First step guide
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 [PIO-16/16RL(PCI)H] …1
- First st ep gui d e … 1
- CD-ROM *1 [API-PAC(W32)] …1
*1 The CD-ROM contains the driver software and User’s Guide (this guide)
PIO-16/16RL(PCI)H
i
Page 3
Copyright
Copyright 2013 CONTEC CO., LTD. ALL RIGH TS RESERVED
No part of this d ocument 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 d ocument. Should you notice an
omission or any questi onab le i tem in thi s docu ment , plea s e feel fr ee t o no ti fy CO NTEC CO. , LTD.
Regardless of the forego i ng stat em en t, C ONTEC a ssum es no resp onsi bi lit y for an y errors tha t ma y
appear in this document or for results obtained by the user as a result of using this product.
Trademarks
MS, Microsoft, Windows, Windows NT and MS-DOS are trademarks of Microsoft Corpor at ion . Oth er
brand and product names are trademarks of their respective holder.
PIO-16/16RL(PCI)H
ii
Page 4
Table of Contents
Check Your Package ............................................................................................................................ i
Copyright ............................................................................................................................................ ii
Trademarks ......................................................................................................................................... ii
Table of Contents ............................................................................................................................... iii
1. BEFORE USING THE PRODUCT 1
About the Board .................................................................................................................................. 1
Features ........................................................................................................................................ 1
Support Software ......................................................................................................................... 2
This chapter provides information you should know before using the product.
About the Board
This board is a PCI bus-compliant interface board for input/output of digita l s ignals.
The board is a reverse-c om mon typed and insurated digital input/output board and can input and output
digital signals at 12 - 24 VDC.
PIO-16/16RL(PCI)H can input and output up to 16 channels.
This product uses opto- coupler isolated input (ready to accept cur rent source output signals) for input
and opto- coupler isolated open-collect or output (current source type) for output.
Using the bundled driver library [API-PAC(W32)], you can create Windows application s oftware for
this board in your favorite programming language supporting Win32 API functions, such as Visual Basic
or Visual C++.
Features
- A different external power supply can be used for each common pin as it is shared by 16 channels.
- The PCI bus (personal computer) and the I/O interface are isola t ed fro m each ot her by an
opto-coup ler, offerin g good noise immunit y.
- You can use 16 signal channels of the input signals as interrupt input s.
You can also s elect the interrupt trigger edge of the input signal.
- The board has a digital filt er t o prevent wrong recogniti on of input signals from carrying noise or a
chattering.
- Up to 35 VDC, 100 mA per signal, max. output.
- Zener diode connected to output transistors for protection from surge voltage. Overcurrent
protective device provided for every eight channels of output transistors.
PIO-16/16RL(PCI)H
1
Page 9
1. Before Using the Product
Support Software
You should use CONTEC support software according to your purpose and development environment.
Windows version of digital I/O driver
API-DIO(WDM) / API-DIO(98/PC)
[Stored on the bundled CD-ROM driver li brary 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 W i n32 API fu nctions (DLL) . Va rious sample p rogramms s uch a s Visual Basic and Visual C++ , etc and
diagnostic program useful for checking operation is provided.
< Operating environment >
OS Windows 7, V is ta , 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 li b rary 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 available 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 sit e. )
This is a VI library to use in National Instruments LabVIEW.
VI-DAQ is cr e ate d w i t h a f unc tio n for m s im ilar to t hat of L a bVI EW 's Da ta Acquisition VI, al low ing y ou
to use various devices without complicated settings.
See http://www.contec.com/vidaq/ for details and download of VI-DAQ.
PIO-16/16RL(PCI)H
2
Page 10
1. Before Using the Product
Cable & Connector (Option)
Flat Cable with a 37-Pin D-SUB Connectors at 2 Ends : PCB37P-1.5 (1.5m)
: PCB37P-3 (3m)
: PCB37P-5 (5m)
Shielded Cable with a 37-Pin D -SUB Conn ectors at 2 Ends : PCB37PS-0.5P (0.5m)
: PCB37PS-1.5P (1.5m)
: PCB37PS-3P (3m)
: PCB37PS-5P (5m)
Flat Cable with a 37-Pin D-SUB Connector : PCA37P-1.5 (1.5m)
: PCA37P-3 (3m)
: PCA37P-5 (5m)
Shelded Cable with a 37-Pin D-SUB Connector : PCA37PS-0.5P (0.5m)
: PCA37PS-1.5P (1.5m)
: PCA37PS-3P (3m)
: PCA37PS-5P (5m)
D-SUB37P Male Connect or Set ( 5 Pi eces) : CN5-D37M
Accessories (Option)
Screw Terminal (M3 x 37P) : EPD-37A *1*2
Screw Terminal (M3.5 x 37P) : EPD-37 *1
General Purpose Termi na l (M3 x 37P) : DTP-3C *1
Screw Terminal (M2.5 x 37P) : DTP-4C *1
*1 A PCB37P or PCB37PS optional cab le is required separat ely.
*2 "Spring-up" type terminal is used to prevent terminal sc rews from falling off.
* Check the CONTEC’s Web site for more informat ion on thes e opti on s.
PIO-16/16RL(PCI)H
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 Si t e
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 prod u c t s .
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! Fo r p r od uct information
Contact your retailer if you have any technical question about a CONTEC product or need its price,
delivery time, or est imat e in fo rmati on .
Limited Three-Years Warranty
CONTEC Interface products are warranted by CONTEC CO., LTD. to be free from defects in ma t eria l
and workmanship for up to three years from the date of purchase by the original purchaser.
Repair w il l be fr e e o f c har ge o nly w hen t his de vi ce is r e tur ne d f re ig ht pre pa i d w ith a co py o f the or ig i nal
invoice and a Return Merchandise A u thorization to the distributor or the CONTEC group office, from
which it was purchased .
This warranty is not app lica b le fo r scrat ch es or nor ma l wear , but on ly for th e elec tr onic circu it r y and
original products. The warranty is not applicable i f th e devi c e has been tampered with or d amaged
through abuse, mistreatment, neglect, or unreasonable use, or if the or iginal invoice is not included, in
which case repairs wi ll be c onsid ere d bey ond th e wa rrant y p olic y.
How to Obtain Service
For replacement or r epai r, 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 ret u rnin g an y prod uct.
* No pr oduct will be accep t ed b y CONTEC gr oup without the RMA number.
Liability
The obligation o f th e warrantor is solely to rep air or replace the product. In no event will the warr antor
be lia bl e for any i nc idental or c onsequential damages due to such defect or conseq uences that arise from
inexperienced usage, misuse, or malfunction of this device.
PIO-16/16RL(PCI)H
4
Page 12
1. Before Using the Product
D
ANGER
WARNING
C
AUTION
Safety Precautions
Understand the following definitions and precautions to use the product s afely.
Safety Information
This document provides safety inf orm ati on using the foll owi ng sy mbol s to pre ve nt 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 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 potentiall y hazard ous situ ation wh ich, i f not avoided, may
result in minor or moderate injury or in property damage.
PIO-16/16RL(PCI)H
5
Page 13
1. Before Using the Product
D
ANGER
CA
UTI
ON
Handling Precautions
Do not use the product where it is exposed to flammable or corrosive gas. Doing so may result in an
explosion, fire, el ect ric sh ock, or fai lure.
- There are switches and jumpers on the board that need to be set in advance.
Be sure to check these before in stalling to the expansion slot.
- Only set the switches and ju mper s on th e boa rd to th e sp ecifi ed s ett in gs.
Otherwise, the boa rd may ma lfunc ti on , overh eat , or cau se a fail u re.
- Do not strike or bend the board.
Otherwise, the boa rd may ma lfunc ti on , overh eat , cau s e a fai lure o r breakage.
- Do not touch the board's m eta l plated terminals (edge connector) with your hands.
Otherwise, the boa rd may ma lfunc ti on , overh eat , or cau se a fail u re.
If the terminals are touched by someone's hands, clean the terminals with industrial alcoho l.
- Do not install or remove the board to or from the expansion slot while the computer's power or
expansion unit is turned on.
Otherwise, the boa rd may ma lfunc ti on , overh eat , or cause a failur e.
Be sure that the personal computer power is turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed.
Insufficientl y ener gi zed boa rds c oul d ma lfun cti on, overh eat, or cause a f ai lure.
- The specifications of this product are subject to change without notice for enhancement and qualit y
improvement.
Even whe n us i ng the product continuously, be sure to read the manual a n d u nderstand the contents.
- Do not modify the product. CONTEC will bear no responsibility for any problems, etc., resulting
from modifying this product.
- Regardless of the foreg oi n g statem en ts , CONTEC is not liab le for an y damag es wha ts oever
(including damages for loss of business profits) arising out of the use or inability to use this
CONTEC product or the information contained herein.
- If you use this product in a no i sy env ironm ent , att ach a ferr it e core t o th e I/O cab le to stabi li ze th e
operation.
PIO-16/16RL(PCI)H
6
Page 14
1. Before Using the Product
- The gold-plated leads of the bus connector
have no stain or corrosion.
- Check that the board has
no dust or foreign matter adhering.
- Check that the bus connector
of the board and its cable have
been plugged correctly.
Environment
Use this product in the following environment. If used in an unauthorized environment, the board may
overheat, malfunc ti on, or caus e a fail ur e.
Operating temp er ature
0 - 50°C
Operating humidity
10 - 90%RH (No condensation)
Corrosive gases
None
Floating dust particles
Not to be excessive
Inspection
Inspect the product periodically as follows to use it safely.
Storage
When storing this product, keep it in its original packing form.
(1) Put the board in the storage bag.
(2) Wrap it in the packing material, then put it in the box.
(3) Store the package at room temperatu re at a pl ace f ree fr om di r ect sun li ght , moi stur e, sh ock ,
vibration, magn etism , and st at ic el ectr ic it y.
Disposal
When disposing of the product, follow the disposal procedures stipulated under the relevant laws and
municipal ordinances.
PIO-16/16RL(PCI)H
7
Page 15
1. Before Using the Product
PIO-16/16RL(PCI)H
8
Page 16
2. Setup
2. Setup
This chapter explains how to set up the boa rd.
What is Setup?
Setup means a series o f step s to tak e b efor e the prod uc t can be used .
Different steps are required for software and hardware.
The setup procedure va ries with th e OS and soft ware us ed.
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 Lib rar y AP I-PAC(W32)”.
Taking the following steps sets up the software and hardware. You can use the diagnosis p rogram lat er
to check whether the software and hardware function normally.
Step 1 In s talling the So f tware
Step 2 Setting the Hardware
Step 3 Installing the Hardware
Step 4 Initializing the Softw ar e
Step 5 Checking Operations with the Diagnosis Program
If Setup fails to be perf orm ed nor ma ll y, see th e “Setup Troub leshootin g” 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 t o the manu a l for that so ft ware. See a lso th e
following parts of this manual as required.
This chapter Step 2 Se tt i ng t he Ha r dw a re
This chapter Step 3 Ins talling the Ha r dw a re
Chapter 3 External Connection
Chapter 6 About Hardware
PIO-16/16RL(PCI)H
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 Se tt i ng t he Ha r dw a re
Chapter 3 External Connection
Chapter 5 A bo u t So f tware
Chapter 6 About Hardware
For using the board under an OS such as MS-DOS other than Windows, see th e follo wing pa rts of this
manual.
This chapter Step 2 Se tt i ng t he Ha r dw a re
Chapter 3 External Connection
Chapter 6 About Hardware
PIO-16/16RL(PCI)H
10
Page 18
2. Setup
Step 1 Installing the Software
This section describes how to insta ll the Dri ver lib rari es.
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 dri v ers 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) i n the
ease of use and functionality.
It is advisable to use AP I-D IO(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 followin g select i on guid e t o easi ly sel ect th e d river to be u sed.
PIO-16/16RL(PCI)H
11
Page 19
2. Setup
CAU
TION
Starting the Install Program
(1)
Load the CD-ROM [AP I -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 t he [ I ns ta l l De v el o p me n t o r Execution Environment] button.
* When using the Win dows 7, Vista, driv er i s automatically installed.
Before installing the software in Windows 7, Vista, XP, Server 2003 and 2000, log in as a user with
administrator privileges.
PIO-16/16RL(PCI)H
12
Page 20
2. Setup
Select API-DIO(WDM)
Selecting API-DIO(WDM)
(1)
The following dialog box appears to select “Driver to instal l” and “Install optio n”, “Usage of
driver library”.
(2)
Select the "Advanced Digital I/O driver".
(3)
Click on t he [ Install] button.
* Clicking the [API-DIO] button displays detailed inform a t ion about AP I-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.
PIO-16/16RL(PCI)H
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 instal l” and “Install optio n”, “Usage of
driver library”.
(2)
Select “Classic Digital I/O driver”.
(3)
Click on t he [ Install] button.
* Clicking on the [API-DIO] button di spla ys detai led in format ion on API-DIO(WDM),
API-DIO(98/PC).
PIO-16/16RL(PCI)H
14
Page 22
2. Setup
Executing the Installation
(1)
Follow the on-screen in str uc tion s to procee d to inst all .
(2) When the required files have been copied, the “Perform a hardware setup now (API-TOOL
Configuration)” and “Show readme fi le” check boxes are displayed.
When you are installi ng the sof twa re or ha r dwar e for th e fir st ti me:
1) Unche ck “Perform a hardware setup now”.
2) Click on the [Finish] button.
Go to Ste p 2 to se t a nd plug the hardware.
* When the hardware has already been insta ll ed:
Check “Perform a hardware setup now (API-TOOL Configuration)”, then go to Step 4
“Initializing the Software”.
You have now fi n is h e d i n s ta l li ng the softwa r e.
PIO-16/16RL(PCI)H
15
Page 23
2. Setup
- Interface connector
(CN1)
Board ID setting switch
SW1
BOARD ID
(SW1)
0
1
2
3
4
5
6
7
9
A
B
C
D
E
F
P
I
O-
1
6
/
1
6
RL
(PCI
)H
S
W1
BO
ARD
ID
3
7
2
0
19
1
3
6
1
8
21
2
Step 2 Setting the Hardware
This section descri bes h ow t o s e t the board and plug it on your PC.
The board has some s wi t ches and jumper to be preset.
Check the on-board switches and jumpers before plugging the board into an expansion slot.
The board can be set up even with the factory defaults untouched. You can change board settings lat er.
Parts of the Board and Factory Defaults
Figure 2.1. shows the names of m ajor parts on the board.
Note that the switch setting shown belo w is the fac tor y defau lt.
Figure 2.1. Component Locations
PIO-16/16RL(PCI)H
16
Page 24
2. Setup
BOARD ID
(Board ID= 0)
Factory setting:
SW1
0
1
2
3
4
5
6
7
9
A
B
C
D
E
F
Setting the Board ID
If you insta ll 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 - 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 boar d I D , use the ro t ary sw it ch o n the boar d. Turn the SW 1 kno b to se t t he boar d I D as sho w n
below.
Figure 2.2. Board ID Se t ti ng s ( S W1 )
PIO-16/16RL(PCI)H
17
Page 25
2. Setup
AB
5V key
3.3V key
<PCI bus slot><PCI bus board>
5-V PCI bus slot
3.3-V PCI bus slot
A :
B :
Slit for 5-V PCI bus slot
Slit for 3.3-V PCI bus slot
CA
UTION
Plugging the Board
(1) Before plugging the board, shut down the system, unplug the power code of your PC.
(2) Remove the cover f rom the PC so that the board can be mounted.
(3) Plug the board into an expansion slot.
(4) Attach the board brack et t o the PC with a sc re w.
(5) Put the cover back into place.
Applicable PCI bus slots
PCI bus slots used in PCs have keys to prevent 5V and 3.3V PCI bus boards from being accidentally
plugged into wrong bus slots. This board can be plugged into both of the 5V and 3.3V PCI bus slots.
- Do not touch the board's metal plated terminals (edge connector) with your hands.
Otherwise, the boa rd may ma lfunc ti on , overh eat , or cau se a fail u re.
If the terminals ar e touched by someone's hand s, clean the terminals with industrial alcohol.
- Do not install or remove the board to or from the slot while the computer's power or expansion unit is
turned on.
Otherwise, the boa rd may ma lfunc ti on , overh eat , or cau se a fail u re.
Be sure that the personal computer power is turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed.
Insufficientl y ener gi zed boa rds c oul d ma lfun cti on, overh eat, or cause a f ai lure.
- Power supply from the PCI bus slot at +5V is required.
PIO-16/16RL(PCI)H
18
Page 26
2. Setup
C
AU
TIO
N
Step 3 Installing the Hardware
For using an expansion board under Windows, you have to let the OS detect the I/O addresses and
interrupt level 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 Add New Hardware
Wizard.
Turning on t h e PC
Turn on the power to your PC.
- The board cannot be properly installed unless the resources (I/O addresses and interrupt level) for
the boar d can be all ocat ed. Befo re atte mpt ing to ins tal l the boar d, fir st de term ine wha t PC re sour ces
are free to use.
- The resources used by each PCI bus board do not depend on the location of the PCI bus slot or the
board itself. If you rem ove t wo or more boards that have already been in s talled and then remount
one of them on the computer, it is unknown that which one of the set s of res ourc es previ ou sly
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 Ha rdwar e Wi za rd” will be started.
Select “No, not this time” and then click the “Next” button.
PIO-16/16RL(PCI)H
19
Page 27
2. Setup
\INF\Wdm\Dio
(2) When “Multimedia Controller” is displayed, select “Install from a list or specific
location[Advanced]” and then speci f y that fo ld er on th e CD -ROM which c ontain s the setu p
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 7 [64, 32bit], Vista [64, 32bit], XP [64, 32bit],
Server 2003 [64, 32bit], 2000 \INF\Wdm\Dio
PIO-16/16RL(PCI)H
20
Page 28
2. Setup
* The name of the board
you have just added is
displayed.
- PIO-16/16RL(PCI)H
You have now fi n is h e d i n s ta l li ng the hardwa r e .
PIO-16/16RL(PCI)H
21
Page 29
2. Setup
When Using API-DIO(98/PC)
(1) The “Found New Ha rdwar e Wi za rd” will be started.
Select “No, not this time” and then click the “Next” button.
(2) Select “Install from a list or speci fic location[Advan ced]” and then click the “Next” button.
PIO-16/16RL(PCI)H
22
Page 30
2. Setup
\INF\Win2000\Dio\PCI
* The name of the board
- PIO-16/16RL(PCI)H
(3) Specify that folder on the CD-ROM which contains the setup inf ormati on ( INF) file to register the
board.
you have just added is
displayed.
Source folder
The setup information (INF) file is contained in the following folder on the bundled CD-ROM.
Windows 7 [32bit], Vista [32bit], XP [32bit],
Server 2003 [32bit], 2000 \INF\Win2000\Dio\PCI
Example of specifying the folder for use under Windows XP
PIO-16/16RL(PCI)H
23
Page 31
2. Setup
CAUTION
* The name of the board
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 just added is
displayed.
- PIO-16/16RL(PCI)H
You have now fi n is h e d i n s ta l li ng the hardwa r e .
PIO-16/16RL(PCI)H
24
Page 32
2. Setup
* The name of the board
Step 4 Initializing the Software
The driver library requires the initial setting to recognize the execution envi ronment. It is called the
initialization of the Driv er libra ry.
When Using API-DIO(WDM)
API-DIO(WDM) is initialized automatically during hardware installation. Therefore, if you wan t 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 d ev i ce name
(1) Run Device Manager. From [My Computer] - [Control Panel], select [System] an d then select the
[Device Manager] tab.
(You can also open Device Manager by right clicking on My Computer and selecting Properties.)
you have just added is
displayed.
- PIO-16/16RL(PCI)H “DIO000”
(2) The installed h ardware appears under the CONTEC Devices node. Open the CONTEC Devices
node and select the devi c e you wan t to setup (the device name should appear highlighted). Click
[Properties].
PIO-16/16RL(PCI)H
25
Page 33
2. Setup
* The name of the board
(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.
you have just added is
displayed.
- PIO-16/16RL(PCI)H
* The i n itial 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 na me for more than one device.
You have now fi n is h e d i n s ta l li ng the initial setting of Software.
PIO-16/16RL(PCI)H
26
Page 34
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 set ti ngs to registry…” from the “File” menu.
You have now fi n is h e d i n s ta l li ng the initial setting of Software.
PIO-16/16RL(PCI)H
27
Page 35
2. Setup
Step 5 Checking Operations with the Diagnosis
Program
Use the diagnosis program to c heck 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 ch eck er when an ex t erna l devi c e is actu al ly c onn ect ed.
Using the “Diagnosis Report” feature reports the dri ver s ett in gs, th e pres enc e or abs enc e of the board,
I/O status, and interrupt status.
Check Method
Connect the board to a remot e device to text the input/output and check the execution environment.
For this board, prepare an external power supply (12 - 24VDC).
Set the board in the default factory.
To connect the externa l devi c e, s ee Chapt er 3 “E xternal C on n e c t i on ”.
PIO-16/16RL(PCI)H
28
Page 36
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.
PIO-16/16RL(PCI)H
29
Page 37
2. Setup
* The name of the board
Starting the Diagnosis Program for Use of API-DIO(98/PC)
Select the board in the API-TOOL Configur at i on windows , then run the Diagnosis Program. Follow the
instructions on screen.
* The name of the board you have just added is displayed.
you have just added is
displayed.
- PIO-16/16RL(PCI)H
PIO-16/16RL(PCI)H
30
Page 38
2. Setup
* The name of the board
- PIO-16/16RL(PCI)H
Checking Digital Inputs and Outputs
The main panel o f the Diagnosis Program appears.
You can check the current oper at ion stat es of th e board in the following b oxes :
“Input Port” : Displays input values bit by bit at fixed time intervals.
“Output Port” : Mouse operation allows the data to output or display.
“Interrupt” : Displays the number of interrupts detected bit by bit.
you have just added is
displayed.
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.
PIO-16/16RL(PCI)H
31
Page 39
2. Setup
CA
UTION
Click on [Show
* The name of the board
* The name of the board
- PIO-16/16RL(PCI)H
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.
The results are saved and disp la yed a s a t ext file ( Di oRep. t xt) in the in sta ll fold er (Pr ogra m
Files\CONTEC\API-PAC(W32)).
The Diagnosis Program performs “board pr esence/absence check”, “driver file test”, “board setting
test”, and so on.
Before executing diagnosis report output, unplug the cable from the board.
you have just added is
displayed.
- PIO-16/16RL(PCI)H
(2) A diagnosis report is displayed as shown below.
PIO-16/16RL(PCI)H
32
you have just added is
displayed.
Diagnosis Report].
Page 40
2. Setup
Setup Troubleshooting
Symptoms and Actions
The board cannot be initialized [Windows NT 4.0]
The driver may not yet be activated.
When using the board under an OS not compliant with Plug and Play, such as Windows NT 4.0, make
sure that the [PnP OS] BIOS option has been set to [NO], [disable], or [Do not use]. If the option has
been set to [Windows 95], f or example, the board may not be detected normally. For details on BIOS
settings, refer to the user’s guide for your PC.
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 boar d is a n isol ate d ty pe, it has a time lag for it s res pons e betw een the outp ut by a func tio n
and the actual output. Consider the execution intervals between functions.
The OS won’t normally get started or detect the board.
[Windows 7, Vis ta, 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 r etailer.
PIO-16/16RL(PCI)H
33
Page 41
2. Setup
PIO-16/16RL(PCI)H
34
Page 42
3. External Connection
CN1
37
20
19
1
3618
212
Interface connector (CN1)
- Connector used
37-pin D-SUB, female connector
DCLC-J37SAF-20L9(mfd. by JAE)
Thumb screw : UNC#4-40(inch screw)
- Applicable connectors
17JE-23370-02(D8C) (mfd. by DDK, Male)
FDCD-37P (mfd. by HIROSE, Male)
DC-37P-N (mfd. by JAE, Male)
3. External Connection
This chapter desc ribes the int erf ac e conn ec to rs on the board and the external I/O circuits.
Check the information available here when connecting an external device.
Using the On-board Connectors
Connecting a Device to a Connector
To connect an external device to this board, plug the cable from the d evice into the interface connector
shown below.
* Please refer to chapter 1 for more information on the supported cable and accessories.
Figure 3.1. Interface Connector and Applicable Cable Connector
PIO-16/16RL(PCI)H
35
Page 43
3. External C onnection
1
9
1
8
1
7
1
6
15
1
4
1
3
1
2
1
1
1
0
9
8
7
6
5
4
3
2
1
N
.
C
.
O
P
2
/
3
I
-
17
I
-
1
6
I-
1
5
I
-
1
4
I
-
1
3
I
-
1
2
I
-
1
1
I
-
1
0
I
-
07
I
-
0
6
I
-
0
5
I
-
0
4
I
-
0
3
I
-0
2
I
-
0
1
I
-
00
I
N
0
/
1
3
7
3
6
3
5
3
4
3
3
3
2
31
3
0
29
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
O
P
2
/
3
O
-
3
7
O
-
3
6
O-
3
5
O
-
3
4
O
-
3
3
O
-3
2
O-
3
1
O-
3
0
O
-
2
7
O-
2
6
O
-
2
5
O
-
2
4
O
-
23
O
-
2
2
O
-
21
O
-
2
0
N.
C.
+
0
po
r
t
(
i
n
pu
t
)
+
1
po
r
t
(
i
n
p
u
t
)
+2
p
o
r
t
(
o
u
t
p
u
t
)
+
3
p
o
rt
(
o
u
t
p
ut
)
Co
mm
on
mi
n
u
s
p
i
n
f
o
r
+
0/
+
1
in
p
ut
p
o
rts
C
o
mm
o
n
p
l
u
s
p
in
f
o
r
+
2
/
+
3
o
u
t
p
u
t
p
o
r
t
s
I-00 - I-17
16 input signal pins. Connect output signals from the external device to these pins.
16 output signal pins. Connect these pins to the input signal pins of the external device.
input signal pins.
output signal pins.
N.C.
This pin is left unconnected.
Connector Pin Assignment
O20 - O37
IN 0/1 Connect the negative side of the external power supply. These pins are common to 16
OP 2/3 Connect the positive side of the external power supply. These pins are common to 16
Figure 3.2. Pin Assignments of In terfa ce Con nec tor
PIO-16/16RL(PCI)H
36
Page 44
3. External Connection
[15]
[14]
[13]
[12]
[11]
[10]
[9]
[8]
D7
D6
D5
D4
D3
D2
D1
D0
Note :
[xx] represents a logical bits.
CAUTION
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 Bi ts, and Connector Signal Pin s
D7 D6 D5 D4 D3 D2 D1 D0
Input Logical Ports0 I-07
Input Logical Ports1 I-17
[7]
I-06
[6]
I-16
I-05
[5]
I-15
I-04
[4]
I-14
I-03
[3]
I-13
I-02
[2]
I-12
I-01
[1]
I-11
I-00
[0]
I-10
Output Logical Ports0 O-27
Output Logical Ports1 O-37
O-26
O-25
O-24
O-23
O-22
O-21
[7]
[6]
[5]
[4]
[3]
[2]
[1]
O-36
O-35
O-34
O-33
O-32
[15]
[14]
[13]
[12]
[11]
I-xx represents an input signal; O-xx is an output signal.
[10]
O-31
[9]
O-20
[0]
O-30
[8]
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 t o API-DIO HELP available after installi n g API-PAC(W32).
PIO-16/16RL(PCI)H
37
Page 45
3. External C onnection
Input minus common (CN1 : 1pin)
External
power supply
12 - 24VDC
+
-
Board side
When the switch is ON, the corresponding bit contains 1.
When the switch is OFF, by contrast, the bit contains 0.
Switch
I-00 (CN1 : 2pin)
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 requires an external power supply to feed currents.
The board inputs the ON/OFF stat e of the current-driven devi ce as a digital value.
Input Circuit
Figure 3.3. Input Cir c ui t
The input circuits o f inter fac e b locks of the PIO-16/16RL(PCI)H ar e illustrated in Figu re 3.3.
The signal inputs are isolated by opto-couplers (corresponding to the current source output). The board
therefore requi res an ext ern al p ower supp l y t o drive th e input s . The po wer requi rem ent fo r each inpu t
pin is about 5.1mA a t 24VDC (about 2.6m A at 12VDC).
Connecting a Switch
Figure 3 .4 . An Example to use Input I-00
PIO-16/16RL(PCI)H
38
Page 46
3. External Connection
CAUTION
Connecting Output Signals
Connect the output si gna ls t o a curr ent -driven controll ed devic e such as a relay or LED.
The connection requires an external power supply to feed currents.
The board controls turning on/off the current-driven controlled device using a digital value.
Output Circuit
Figure 3.5. Output Circuit
The output ci rcui ts of inter fa c e block s of the PIO-16/16RL(PCI)H are illustrated in Figure 3.5. The
signal output section is an opto-coupler isolated open-collector output (current source type). Driving the
output section requires an external power supply.
The rated output curren t p er chann el i s 100 mA at ma ximu m.
A zener diode is connected to the output transistor for protection from surge voltages. A
PolySwitch-based overcurrent p rot ector is provided for every eight output transistors. When the
overcurrent protector works, the output section of the board is temporarily di sabl ed . If thi s is th e case,
turn of the power to the PC and the external power supply and wait for a few minutes, then turn them on
back.
When the PC is turned on, all output are reset to OFF.
PIO-16/16RL(PCI)H
39
Page 47
3. External C onnection
O-20 (CN1 : 21pin)
Output plus common (CN1 : 37pin)
External
power supply
12 - 24VDC
5.1kΩ LED
Board side
When outputting 1 to the corresponding bit, LED is ON.
When outputting 0 to the corresponding bit, by contrast, LED is off.
+
-
Connection to the LED
Figure 3.6. An Example to use Output O-20
PIO-16/16RL(PCI)H
40
Page 48
4. Function
C
AUT
I
ON
4. Function
This section descri bes th e f eatu res o f the bo ard.
Each function described here can be easily set and executed by using the bundled API driver library. For
details, refer to API-DIO HELP available aft er installation.
Data I/O Function
Data Input
When input data is “ON”, “1” is input to th e relevant bit.
When the input data is “OFF”, in contrast, “0” i s i nput 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 b it, in contrast, the corresponding tran s istor is set to “OFF”.
When the PC is turned on, all output are reset to 0 (OFF).
Monitoring Output Data
The PIO-16/16RL(PCI)H can read the state of the data currently being output without affecting the
output data.
PIO-16/16RL(PCI)H
41
Page 49
4. Function
In
put
Signal
Filter Se
tti
ng
Time
Inval
id
Vali
d
In
put to PC
I
npu
t Si
gnal
Dig
ita
l
Filter
Input to PC
is not used.
1 (01h)
0.25µsec
8 (08h)
32µsec
15 (0Fh)
4.096msec
2 (02h)
0.5µsec
9 (09h)
64µsec
16 (10h)
8.192msec
3 (03h)
1µsec
10 (0Ah)
128µsec
17 (11h)
16.384msec
4 (04h)
2µsec
11 (0Bh)
256µsec
18 (12h)
32.768msec
5 (05h)
4µsec
12 (0Ch)
512µsec
19 (13h)
65.536msec
6 (06h)
8µsec
13 (0Dh)
1.024msec
20 (14h)
131.072msec
CAUTION
Digital Filter Function
Using this feature, the PIO-16/16RL(PCI)H can apply a digital filt er 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 th e same f or the di gita l filter set tim e, th e digit al fi lt er reco gni zes th at sign al as the
input signal and chan ges the si gna l level of th e PC.
If the signal level changes at a frequency shorter than the set time, therefore, the level change is ignored.
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 rela ti on ship s b etween the di git al fi lt er tim e and th e s etti n g data.
Digital Filter Time[sec.] = 2
n: = setti n g da ta(0 - 20)
Setting Data
(n)
0 (00h) The filter function
Digital Filter
Time
n
/ (8 x 106)
Setting Data
(n)
7 (07h) 16µsec 14 (0Eh) 2.048msec
Digital Filter
Time
Setting Data
(n)
Digital Filter
Time
Figure 4.2. Digital Filter Time and Setting Data
- If you set the digital filter ti me, the fil te r ap plie s to al l in put p ins . Yo u cann ot a ppl y the filter only t o
a specific input pin.
- Do not set a value outside the above range to the Setting Data as doing so can cause the board to
malfunction.
PIO-16/16RL(PCI)H
42
Page 50
4. Function
C
AU
TIO
N
CAUTION
CAUTION
Interrupt Control Function
The PIO-16/16RL(PCI)H can use all of the input signals as interrupt requ est signa ls.
The board 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 interruption s.
All of the interrupt mask bits are interrupt-disabled when th e po wer is turn ed on.
Selecting the Edge of input signals, at which to generate an
iterrupt
The input signal edge selection bit can be used to set the input logic for interruption bit by bit.
If you set an i nput signal edge selection bit t o 0, an int erru pt occu rs 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 i nput signal edge selection bit t o 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).
All of the input signal edge selection bits are set to 0 when the power is turned on.
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.
- 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.
PIO-16/16RL(PCI)H
43
Page 51
4. Function
PIO-16/16RL(PCI)H
44
Page 52
5. About Software
5. About Software
CD-ROM Directory Structure
\
|– Autorun.exe Installer Main Window
| Readmej.ht ml Version information on each API-TO OL (Jap an ese)
| Readmeu.html Version information on each API-TOOL (English)
.
.
| ––Release Driver file on each AP I-TOOL
| |––API_NT (For creation of a user-specific in stall program)
| |––API_W95
.
.
| ––UsersGuide Hardware User's Guide(PDF files)
PIO-16/16RL(PCI)H
45
Page 53
5. About Software
About Software for Windows
The bundled CD-ROM “Driver Library API-PAC(W32)” contains the functions that provide the
following featu res :
- Digital input/output of specified ports
- Hardware digital input/output of sp ecified bits
- Hardware digital fi ltering 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 prog ram deve lo pme nt a nd tro uble sho oti 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 disp lay help in fo rmati on.
(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 e ach sam ple prog ram , e nter its driv er n umbe r and g rou p num ber se t by A PI -TOOL Configuration
in the DrvNo and GrpNo fields.
Use these sample prog rams as references for program development a n d operation check.
Running a Sample Program
(1) Click on the [Start] button on the Windows taskbar.
(2) For the API-DIO(WDM), from t he 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.
PIO-16/16RL(PCI)H
46
Page 54
5. About Software
Sample Programs - Examples
API-DIO(WDM) sample program
- Simple I/O sample program : Input di gital data through a specifi ed port .
- Multi ports/bits I/O sample program : Input digital data through a specified multi ports/bits.
- Trigger monitoring sample program : Monitoring r ising/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 dat a from/to a programmable board.
-Sample program 4 : Inputs digital data fr om 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 inputs/outputs (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.
PIO-16/16RL(PCI)H
47
Page 55
5. About Software
* The name of the board
* The name of the board
Uninstalling the Driver Libraries
The method used to uninstall API-PAC(W32) differs depending on which OS you are using.
Follow the procedure given below.
Uninstall procedure for Windows 7 and Windows Vista
< Uninstalling the device driver >
1. Run Device Mana ger. From [My Computer] - [Control Panel], select [System] and then select the
[Device Manager] tab.
(You can also open Devic e Mana ger b y right clicking on My Computer and selecting Proper ties . )
2. All of the hardware that uses th e API-TOOL(WDM) driver is registered under th e CONTEC
Devices tree.
Open the device tree, s elec t th e hard war e t o uninst a ll, and then ri ght-click the hardware.
From the popup menu, select [Uninstall].
you have just added is
displayed.
- PIO-16/16RL(PCI)H
3. A dialog box opens asking you to confirm whether t o uninstall. Select the [Delete the driver
software for this device] checkbox, and then click [OK].
you have just added is
displayed.
- PIO-16/16RL(PCI)H
PIO-16/16RL(PCI)H
48
Page 56
5. About Software
* The name of the driver
* The name of the driver
< Uninstall the development environment >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall th e development
environment.
Select [C ONTEC API-***(WDM) VerX.XX (development environment)] and then click [Uninsta ll].
* "***" cont ain s th e dri ver ca t egory n ame ( AIO, CNT, D IO, SMC, etc .).
you have just added is
displayed.
Uninstall procedure for Windows XP and Windows 2003 Server
< Uninstall the device driver >
Use [My Computer] - [Control Panel] - [Add and Remove Applic ations] to uninstall the device driver.
Select [Windows driver package - CONTEC (****)] and then clic k [Change/Remove].
* "***" contains the driver category name (caio, ccnt, cdio, cs mc, etc.).
< Uninstall th e development environment >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall th e development
environment.
Select [C ONTEC API-***(WDM) VerX.XX (development environment)] and then click
[Change/Remove].
* "***" contains the driver category name (AIO, CNT, DIO, SMC, etc.).
PIO-16/16RL(PCI)H
you have just added is
displayed.
49
Page 57
5. About Software
Uninstall procedure for Windows Me
< Uninstall the device driver >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall th e device driver.
Select [CONTEC AP I-***(WDM) driver] and then click [Add and Remove Applications].
* "***" cont ain s th e dri ver ca t egory n ame ( AIO, CNT, D IO, SMC, etc .).
< Uninstall the development environment >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall th e development
environment.
Select [CONTEC API-***(WDM) VerX.XX (development environment)] and then click [Add and
Remove Applications].
* "***" cont ain s th e dri ver ca t egory n ame ( AIO, CNT, D IO, SMC, etc .).
Uninstall procedure for Windows 98, 98SecondEditi on
< Uninstall the device driver >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall th e device driver.
Select [CONTEC AP I-***(WDM) driver] and then click [Add and Remove Applications].
* "***" cont ain s th e dri ver ca t egory n ame ( AIO, CNT, D IO, SMC, etc .).
< Uninstall the development environment >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall th e development
environment.
Select [C ONTEC API-***(WDM) VerX.XX (development environment)] and then click [Add and
Remove Applications].
* "***" cont ain s th e dri ver ca t egory n ame ( AIO, CNT, D IO, SMC, etc .).
PIO-16/16RL(PCI)H
50
Page 58
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 featu res :
- Digital input/output of specified ports
- Digital input/output of specified bits
- Hardware digital fi ltering that prevents chattering
For details, refer to the help file. The help file pr ovid es va rious it em s of informa ti on such as “Function
Reference”, “Sample Programs”, and “FAQs”. Use the m fo r prog ra m dev elo pme nt a nd tro uble sho ot ing.
Driver Software Install Procedu re
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 sho wn belo w, cop y th e file t o an a rbit rar y direct or y, and dec omp ress the fi le to
install the driver.
For details on using the driver, refer to read m e.tx t and th e help fi le in HTM L format ext ract ed by
installation.
To install the driver, log in as a superuser .
Decompression and setup procedure
# cd
# moun t /dev/cd rom /mnt /cdrom Mount the CD-ROM.
# cp / mnt/cdrom /linux/d io/cdioXXX.tg z ./ Copy the comp ressed f ile.
# tar xvfz cdio XXX.tgz Decompress the c ompresse d file.
................
# cd c ontec/cdi o
# make Compile the file .
................
# make install Install.
................
# cd c onfig
# ./co nfig Set up the board to be u sed.
..... Set as follows .........
# ./co ntec_dio_ start.sh Start the driver.
# cd
PIO-16/16RL(PCI)H
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 contec/cdio/help directory.
Using Sample Programs
Sample programs have been prepared for specific basic applications.
Sample pr ogram s for each lan gu a ge are c ontain ed in th e cont ec/ cdi o/s a mp les di rect or y. For c ompi lin g
them, refer to the manual for the desired language.
Uninstalling the driver
To uninstall the dr iver, use the uninstall shell script contained in the contec/cdio directory. For details,
check the contents of the script.
PIO-16/16RL(PCI)H
52
Page 60
6. About Hardware
Item
Specification
Input
Input format
Opto-isolated input (Compatible with current source output)(Positive logic *1)
Number of input signal
16 channels (all available for interrupts)(One common)
Interrupt
16 interrupt input signals are arranged into a single output of interrupt signal INTA.
This chapter provides hardware specifications and ha rdware-related suppl ementary information.
For detailed technical information
For further detailed t echni ca l infor mati on ( “Techn ical Reference” including the infor mation such as an
I/O map, configuration register, etc.), visit the Contec's web site (http://www.contec.com/support/) to
call for it.
Hardware specification
Table 6.1. S pecification < 1 / 2 >
channels
Input resistance 4.7kΩ
Input ON current 2.0mA or more
Input OFF current 0.16mA or less
An interrupt is generated at the falling edge (HIGH-to-LOW transition) or
rising edge (LOW-to-HIGH transition).
rating
ON
PIO-16/16RL(PCI)H
53
Page 61
6. About Hardware
Common
I/O address
8 bits x 32 ports
Interruption level
1 level use
connection
Dielectric strength
1000Vrms
External circuit power
supply
12 - 24VDC (±10%)
Power consumption
5 VDC 150mA (Max.)
Operating condition
0 - 50°C, 10 - 90%RH (No condensation)
Allowable distance of
Approx. 50 m (depending on wiring environment)
Bus specification
The standard outside dimension (L) is
the distance from the end of the board to
the outer surface of the slot cover.
Table 6.1. S pecification < 2 / 2 >
Item Specification
Max. board count for
signal extension
*1 Data “0” and “1” correspond to the Low and High levels, respectively.
*2 This board requires power supply at +5 V from an expansion slot (it does not work on a machine with a +3.3 V power
supply alone).
16 boards including the master board
Board Dimensions
PIO-16/16RL(PCI)H
54
Page 62
6. About Hardware
PIO-16/16RL(PCI)H
Interrupt
Control
Control
Circuits
PCI BUS
Opto-
coupler
External Digital
Input Port0
(8 channels, Group 0)
External Digital
Input Port1
(8 channels, Group 1)
External Digital
Output Port0
(8 channels, Group 2)
External Digital
Output Port1
(8 channels, Group 3)
Opto-
coupler
Opto-
coupler
&
Transistors
Opto-
coupler
&
Transistors
Block Diagram
Figure 6.1. B lock D iagram
PIO-16/16RL(PCI)H
55
Page 63
PIO-16/16RL(PCI)H
User’s Guide
CONTEC CO., LTD.March 2016 Edition
3-9-31, Himesato, Nishiyodogawa-k u, Osak a 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. [03302016]
[08052004] Management No. A-46-894
[03302016_rev6] Parts No. LYDW854
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.