Contec PIO-32, PIO-32B(PCI)V User Manual

Page 1
PC-HELPER
Digital I/O Board with Opto-Isolation for PCI
PIO-32/32B(PCI)V
User’s Guide
CONTEC CO.,LTD.
Page 2
Check Your Package
Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following list, that your package is complete. If you discover damage d or missing item s,
contact your retailer.
Product Configuration List
- PIO-32/32B(PCI)V …1
- First step guide …1
- CD-ROM *1 [API-PAC(W32)] …1 *1 The CD-ROM contains the driver software and User’s Guide (this guide)
Board
First step guide
CD-ROM
[API-PAC(W32)]
i
Page 3

Copyright

Copyright 2005 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 no r for re sult s obt ain ed by th e use r as a resu lt of usi ng th is produ ct .

Trademarks

MS, Microsoft, Windows, Windows NT and MS-DOS are trademarks of Microsoft Corporation. Other brand and product names are trademarks of their respective holder.
ii
Page 4

Table of Contents

Check Your Pack ag e............................................................................................................................i
Copyright ............................................................................................................................................ii
Trademarks ......................................................................................................................................... ii
Table of Con tents...............................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the Bo ard.................................................................................................................................. 1
Features........................................................................................................................................ 1
Support Softw ar e ......................................................................................................................... 2
Cable & Connect or ( Op ti on ) ...................................................................................................... 3
Accessories (Op tio n) .................................................................................................................. 4
Customer Supp o rt ............................................................................................................................... 5
Web Site....................................................................................................................................... 5
Limited Thre e -Y ea rs Wa r ra nt y .......................................................................................................... 5
How to Obtain Serv ic e ....................................................................................................................... 5
Liability............................................................................................................................................... 5
Safety Precau t ion s .............................................................................................................................. 6
Safety Infor mat i on ....................................................................................................................... 6
Handling Pre ca u tio n s................................................................................................................... 7
Environment................................................................................................................................. 8
Inspection..................................................................................................................................... 8
Storage ......................................................................................................................................... 8
Disposal ....................................................................................................................................... 8
2. SETUP 9
What is Setup? .................................................................................................................................... 9
Using the Board un de r W in do w s Us in g th e D riv e r Lib ra r y A PI -PAC ( W 3 2) ............................ 9
Using the Board under Windows Using Software Other than the Driver Library
API-PAC(W32 )............................................................................................................................ 9
Using the Board un d er an OS O th e r th an Wi n do w s ................................................................. 10
Step 1 Installi ng th e Sof t wa r e .......................................................................................................... 11
Starting the I ns t all P r og r a m....................................................................................................... 11
Selecting the Di git a l I/ O Dr iv er ................................................................................................12
Executing the In s tal l a tio n ..........................................................................................................1 3
Step 2 Setting th e H ar d wa r e .............................................................................................................14
Parts of the Bo ard an d F ac to r y D ef au l ts ................................................................................... 14
Setting the Bo ard ID .................................................................................................................. 15
Selecting Pow e r Su p pl y............................................................................................................. 16
Plugging the Board ....................................................................................................................17
iii
Page 5
Step 3 Installi ng th e H ard w a re ......................................................................................................... 18
Turning on the PC......................................................................................................................1 8
Setting with th e Fou n d Ne w H a rd war e W iz a rd......................................................................... 18
Step 4 Initi alizing the S o f tware........................................................................................................ 21
Invoking API-TOOL Configuration.......................................................................................... 21
Updating the S e ttin g s................................................................................................................. 21
Step 5 Checking Op e r ati o n s w ith th e D i ag no s is P rog ra m ...............................................................22
What is the Di agno s is P r og r a m?................................................................................................ 22
Check Method ............................................................................................................................ 22
Using the Di agnosis Program.................................................................................................... 23
Setup Troubl esh oo ti n g...................................................................................................................... 26
Symptoms and A cti o ns .............................................................................................................. 26
If your proble m c a nno t b e r eso lv ed........................................................................................... 26
3. EXTERNAL CONNECTION 27
Using the On-board Connectors .......................................................................................................27
Connecting a D evi c e to a Co n n ecto r .........................................................................................2 7
Connector Pin Ass i gnment ........................................................................................................28
Relationships be tw ee n AP I-P AC ( W32 ) Log ic a l Po rt s/ Bi ts a nd Co nn e cto r Sig na l Pin s.......... 30
Connecting In pu t Si gn al s..................................................................................................................3 1
Input Circu it...............................................................................................................................31
Connecting a S wi tc h ..................................................................................................................32
Connecting Output S ign a l s ...............................................................................................................33
Output Circuit ............................................................................................................................ 33
Connection to the LE D .............................................................................................................. 34
Example of Connection to TTL Level Inpu t .............................................................................34
Connecting the Sink T yp e Ou tpu t and S ink O u tp u t S upp o rt I np u t ................................................. 35
4. FUNCTION 37
Data I/O Func tio n ............................................................................................................................. 37
Data Input................................................................................................................................... 37
Data Output................................................................................................................................ 37
Monitoring Ou tp ut D at a ............................................................................................................. 37
Digital Filter...................................................................................................................................... 38
Digital Filter Function Principle................................................................................................ 38
Set Digital F ilt e r Time............................................................................................................... 38
Interrupt Con tr ol Fu n ct io n................................................................................................................ 39
Disabling/en ab l ing I nt e rr up ts .................................................................................................... 39
Selecting th e In t e rru p t E dg e ...................................................................................................... 39
Clearing the Inte rru pt S ta tu s an d In t er rup t Si gn a l .................................................................... 40
iv
Page 6
5. ABOUT SOFTWARE 41
CD-ROM Directo r y S t ru c tu re .......................................................................................................... 41
About Software for Windo w s........................................................................................................... 42
Accessing the He lp F il e........................................................................................................ ..... 42
Using Sample Programs ............................................................................................................ 43
Uninstalling the Dr i v er Li b ra rie s .............................................................................................. 45
About Software for Linux ....................................................................................................... .......... 46
Driver Softwa re In s tal l Pro c ed ur e .............................................................................................46
Accessing the He lp F il e........................................................................................................ ..... 47
Using Sample Programs ............................................................................................................ 47
Uninstalling the driver............................................................................................................... 47
6. ABOUT HARDWARE 49
Hardware spe cification..................................................................................................................... 49
Block Diagra m.................................................................................................................................. 51
Differences b e twee n t he P IO -3 2/ 32 B (P C I)V an d P I O- 32 /3 2 B ( PC I) H ........................................... 52
v
Page 7
vi
Page 8

1. Before Using the Product

1. Before Using the Product
This chapter provides information you should know before using the product.

About the Board

This board is a PCI bus-compliant interface board for input/output of digital signals. It can be inputted by switch and relay.
PIO-32/32B(PCI)V can input and output up to 32 channels. And this board is the equivalent of PIO-32/32B(PCI)H. For t he de ta il, plea se ref er to th e chapter 6
Differences between PIO32/32B(PCI)H and PIO32/32B(PCI)V. Using the bundled driver library package [API-PAC(W32)], you can create Windows application
software for this board in your favorite programming language supporting Win32 API functions, such as Visual Basic or Visual C/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 isolated from each other by an opto­coupler, offering good noise immunity.
- You can use all of the input signals as interrupt events. You can also select the interrupt trigger edge of the input signal.
- The board has a digital filter feature to prevent noise or chatter from causing erroneous inputs.
- Up to 35VDC, 100mA per output signal, max..
- Zener diode connected to output transistors for protection from surge voltage. Overcurrent protective device provided for every eight ch annels of output transistors.
- An on-board isolated supply(12VDC, 250mA) is equip ped. You can select to use either th is o n board supply or external power supply for driving photo-insulation circuits.
1
Page 9
1. Before Using the Product

Support Software

You should use CONTEC support software according to your purpose and development environment. Driver Library
API-PAC(W32)
API-PAC(W32) is the library software that provides the commands for CONTEC hardware products in the form of Windows standard Win32 API functions (DLL). It makes it easy to create high-speed application software taki ng advantage of the CONTEC hardware using various programming languages that support Win32 API functions, such as Visual Basic and Visual C/C++.
CONTEC p r o v ides downl o ad service s a t ( http://www.contec.com/apipac/) to supply t h e u p d a t e d d r ivers and differential files.
For details, read Help on the bundled CD-ROM or visit the CONTEC’s Web site.
< Operating environment >
OS Windows XP, 2000, NT, Me, 98, etc.. Adaptation language Visual C/C++, Visual Basic, Delphi, Builder, etc..
Others Each piece of library software requires 50 megabytes of free hard disk space.
Linux version of digital I/O driver CD-ROM)
This driver is used to control CONTEC digital I/O boards (cards) from within Linux. You can control CONTEC digital I/O boards easily using the shared library used by gcc, Kylix, the device driver (module) for each kernel version, and the board (card) configuration program (config). CONTEC provides download services (at http://www.contec. co.jp/en/) to supply the updated dri vers and differential files. For details, read Help on the bundled CD-ROM or visit the CONTEC’s Web site.
< Operating environment > OS RedHatLinux, TurboLinux, etc..
Adaptation language gcc, Kylix Others Each piece of library software requires 3 megabytes of free hard disk space.
Data acquisition VI library for LabVIEW This is a VI library to use in National Instruments LabVIEW.
VI-DAQ is created with a function form similar to that of La bVIEW'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.
(Bundled)
API-DIO(LNX)
(For details on supported distributions, refer to Help available after installation .)
(Supplied: Stored on the API-PAC(W32)
(Free download)
VI-DAQ
2
Page 10
1. Before Using the Product

Cable & Connector (Option)

Shield Cable with 96-Pin Half-Pitch Connector at Both Ends (Mold Type)
: PCB96PS-0.5P (0.5m) : PCB96PS-1.5P (1.5m) : PCB96PS-3P (3m) : PCB96PS-5P (5m)
Flat Cable with 96-Pin Half-Pitch Connectors at Both Ends
: PCB96P-1.5 (1.5m) : PCB96P-3 (3m) : PCB96P-5 (5m)
Shield Cable with 96-Pin Half-Pitch Connector at One End (Mold Type)
:PCA96PS-0.5P (0.5m) :PCA96PS-1.5P (1.5m) :PCA96PS-3P (3m) :PCA96PS-5P (5m)
Flat Cable with 96-Pin Half-Pitch Connector at One End
: PCA96P-1.5 (1.5m) :PCA96P-3 (3m) :PCA96P-5 (5m)
Distribution Shield Cable with 96-Pin Half-Pitch Connector (96Pin37Pin x 2)
: PCB96WS-1.5P (1.5m)
: PCB96WS-3P (3m) : PCB96WS-5P (5m)
Distribution Flat Cable with 96-Pin Half-Pitch Connector (96Pin→37Pin x 2)
: PCB96W-1.5 (1.5m) : PCB96W-3 (3m) : PCB96W-5 (5m)
Half Pitch 96-Pin Female Connector Set (5 Pieces) : CN5-H96F
3
Page 11
1. Before Using the Product

Accessories (Option)

Screw Terminal : EPD-96 *1 Digital I/O 64CH Series Terminal Panel : DTP-64(PC) *1 Signal Monitor for Digital I/O(64Bits) : CM-64(PC)E *1 Screw Terminal : EPD-37A *2 Screw Terminal : EPD-37 *2 Signal Monitor for Digital I/O : CM-32(PC)E *2 Connection Conversion Board (96-Pin → 37-Pin x 2) : CCB-96 *3
*1 A PCB96P or PCB96PS optional cable is required separately. *2 A PCB96W or PCB96WS optional cable is required separately. *3 Option cable PCB96P or PCB96PS, and the cable for 37-pin D-SUB are required separately.
* Check the CONTEC’s Web site for more information on these options .
4
Page 12
1. Before Using the Product

Customer Support

CONTEC provides the following sup port services for you t o use CONTEC products m ore efficiently and comfortably.

Web Site

Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/
Latest product information CONTEC provides up-to-date information on products. CONTEC also provides product manuals and various technical documents in the PDF.
Free download You can download updated driver software and differential files as well as sample program s 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 Interface boards are warranted by CONTEC CO ., LTD. to be free from defects in m aterial and workmanship for up to three years from the date of purchase by the original purchaser.
Repair will be free of charge only when this device is returned freight prepaid with a copy of the original invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office, from which it was purchased.
This warranty is not applicable for scratches or normal wear, but only for the electronic circuitry and original boards. The warranty is not applicable if the device has been tampered with or damaged through abuse, mistreatment, neglect, or unreaso nable 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 conseq uenti al dam a ges due to such de fect or consequenc es that aris e from inexperienced usage, misuse, or malfunction of this device.
5
Page 13
1. Before Using the Product

Safety Precautions

Understand the following definitions and precautions to use the product safely.

Safety Information

This document provides safety i nformation usin g the following sym bols to prevent accidents resulting in injury or death and the destructio n of equipment an d resources. U nderstand t he meanings of these labels to operate the equipment safely.
DANGER
WARNING
CAUTION
DANGER indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.
WARNING indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.
CAUTION indicates a poten ti all y hazardous situation which, if not avoided, may result in minor or moderate injury or in property damage.
6
Page 14
1. Before Using the Product

Handling Precautions

DANGER
Do not use the product where it is exposed to flamm able or corrosi ve gas. Doing so ma y result in an explosion, fire, electric shock, or failure.
CAUTION
- There are switches and jumpers on the board that need to be set in advance. Be sure to check these before installing the board.
- Only set the switches and jumpers on the board to the specified settings. Otherwise, the board may malfunction, overheat, or cause a failure.
- Do not strike or bend the board. Doing so could damage the board. Otherwise, the board may malfunction, overheat, cause a failure or breakage.
- 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 power is turned on. Otherwise, the board may malfunction, overheat, or cause a failure. Doing so could cause trouble. Be sure that t he perso nal com puter or the I/O ex pansio n unit power is turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed. Insufficiently energized boards could malfunction, overheat, or cause a failure.
- The specifications of this product are subject to change without notice for enhancement and quality improvement. Even when using the product continuously, be sure to read the manual and understand the contents.
- Do not modify the product. CONTEC will bear no responsibility for any problems, etc., resulting from modifying this product.
- Regardless of the foregoing statements, CONTEC is not liable for any damages whatsoever (including damages for loss of business profits) arising out of the use or inability to use this CONTEC product or the information contained herein.
7
Page 15
1. Before Using the Product

Environment

Use this product in the following environment. If used in an unauthorized environment, the board may overheat, malfunction, or cause a failure.
Operating temperature
0 - 50°C
Operating humidity
10 - 90%RH (No condensation)
Corrosive gases
None
Floating dust particles
Not to be excessive

Inspection

Inspect the product periodically as follows to use it safely.
- Check that the bus connector of the board and its cable have been plugged correctly.
- Check that the board has no dust or foreign matter adhering.
- The gold-plated leads of the bus connector have no stain or corrosi o n .

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 p ack ing ma te ria l, th e n pu t 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.
8
Page 16

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 bu nd led C D -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
9
Page 17
2. Setup

Using the Board under an OS Other than Windows

For using the board under Linux, s e e th e 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, such as MS-DOS see the following parts of this manual.
This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 6 About Hardware
10
Page 18

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.

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 the drivers] button.
.
2. Setup
CAUTION
Before installing the software in Windows XP, 2000, or NT, log in as a user with administrator privileges.
11
Page 19
2. Setup

Selecting the Digital I/O Driver

(1)
The following dialog box appears to select “Driver Type” and “Install Ty pe”.
(2)
Select “Digital I/O”
(3)
Select “Driver, Help, etc… (Full install)”.
(4)
Click on the [Install] button.
.
12
Page 20
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” 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”, then go to Step 4 “Initializing the Software”.
You have now finished installing the software.
13
Page 21
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 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 later.

Parts of the Board and Factory Defaults

Figure 2.1. shows the names of major parts on the board. Note that the switch setting shown below is the factory default.
- Power supply select jum per
- Interface connector (CN1)
B48 B47
(JP2 - JP9)
JP2 - 9
1 2 3
PIO-32/32B(PCI)V
B48 B47
SW1
BOARD ID
- BOARD ID Se tting Switc h SW1
BOARD ID
9
7
A
6
B
5
C
4
D
3
E
2
F
1
0
B02 A02 B01
A01
Figure 2.1. Component Locations
14
Page 22
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 - 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 SW1 knob to s et the b oard I D as shown
below.
SW1
BOARD ID
9
A
7
B
6
5
C
D
4
3
E
Factory setting:
2
F
1
0
(Board ID= 0)
Figure 2.2. Board ID Settings (SW1)
15
Page 23
2. Setup

Selecting Power Supply

The photo-insulation circuits need power supply isolated fro m the PC system. This board equips an on board isolated power supply (12VDC, 250mA) for driving photo-insulation circuits. You can select to use this internal power supply or use an external power supply for driving the photo-insulation circuits in unit of two ports (16 channels) per common.
CAUTION
- When the internal power supply is used, the input section of this board consumes up to 80mA current maximum and the output channe l switching sec tion consum es up to 60mA cur rent maxim um. Note that the output current that can be sup plied to the external device is therefore 110mA m aximum in case you use internal power supply for all the input and output channels.
- The both internal and external supply must not be used sim ultaneously. Or the supply will be broke n down.
Setting method Jumpers JP2 - JP9 are used to select the power supply for photo-insulation circuits. Refer following
table for details.
Use Interna Power Use External Power
+0 port (Input) +1 port (Input)
+2 port (Input) +3 port (Input)
+4 port (Output) +5 port (Output)
JP2 JP3
JP4 JP5
JP6 JP7
12
2
1
2
1
3
3
3
JP2 JP3
JP4 JP5
JP6 JP7
2
1
3
2
1
3
2
1
3
+6 port (Output) +7 port (Output)
* Factory setting Notes : These jumpers must be set in pairs.
JP8 JP9
2
1
3
JP8 JP9
2
1
3
Figure 2.3. Power Supply Selecting
16
Page 24
2. Setup

Plugging the Board

(1) Before plugging the board, shut down the syste m, unplug th e power cod e of you r PC. (2) Remove the cover from the PC so that the board can be mounted. (3) Plug the board into an expansion slot. (4) Attach the board bracket to the PC with a screw. (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.
<PCI bus slo t> <PCI bus bo ard> 5-V PCI bus slot
3.3-V PCI bus slot
3.3V key
CAUTION
5V key
A :
Slit for 5-V PCI bus slot
B :
Slit for 3.3-V PCI bus slot
AB
- 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 power is turned on. Otherwise, the board may malfunction, overheat, or cause a failure. Doing so could cause trouble. Be sure that the personal computer or the I/O expansion unit power is turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed. Insufficiently energized boards could malfunction, overheat, or cause a failure.
- Power supply from the PCI bus slot at +5V is required.
17
Page 25
2. Setup

Step 3 Installing the Hardware

For using an expansion board un der Windows, you hav e to let the OS detect the I/O addre sses and IRQ to be used by the board. The process is referred to as installing the hardware.
In the case of using two or more boards, make sure you install one by one with the Add 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 t o install the boar d, first determ ine what PC resources are free to use.
- The resources used by each board do not depe nd on the location of the PCI bus slot or the boar d itself. If you remove two or more boar ds that h ave alre ady b een in stalle d and the n rem ount one of them o n the computer, it is unknown that which one of the sets of resources previously assigned to the two boards is assigned to the remounted board. In this case, you must check the resource settings.

Setting with the Found New Hardware Wizard

(1) The “Found New Hardware Wizard” will be started.
Select “Install from a list or specific location[Advanced]”, then click on the [Next] button.
If you are using Windows NT 4.0, the “Found New Hardware Wizard” is not started. Go to Step 4 “Initializing the Software”.
18
Page 26
2. Setup
(2) Specify that folder on the CD-ROM which contains the setup information (INF) file to register the
board.
* The name of the board you have just added is displayed.
- PIO-32/32B(PCI)V
Source folder The setup information (INF) file is contai ned in the following folder on the bundled CD-ROM.
Windows XP, 2000 \INF\Win2000\Dio\PCI Windows Me, 98, 95 \INF\Win95\Dio\PCI
Example of specifying the folder for use under Windows XP
\INF\Win2000\Dio\PCI
19
Page 27
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 indi cating that the re levant dri ver has not pas sed Windows Logo testing, and it ca n be ign ore d without developing any problem with the operation of the board.
In this case, click on the [Continue Anyway] button.
You have now finished installing the software.
* The name of the board you have just added is displayed.
- PIO-32/32B(PCI)V
20
Page 28
2. Setup

Step 4 Initializing the Software

The API function library requires the initial setting to recognize the execution environment. It is called the initialization of th e Dr iv er li b rary.

Invoking API-TOOL Configuration

(1) Open the Start Menu, then select “Programs” – “CONTEC API-PAC(W32” – “API-TOOL
Configuration”.
(2) API-TOOL Configuration detects boards automatically. The detected boards are listed.

Updating the Settings

(1) Select “Save settings to registry…” from the “File” menu.
You have now finished installing the initial setting of Software.
21
Page 29
2. Setup

Step 5 Checking Operations with the Diagnosis Program

Use the diagnosis program to check that the board and driver software work normally, thereby you can confirm that they have been set up correctly.

What is the Diagnosis Program?

The diagnosis program diagnoses the states of the board and driver software. It can also be used as a simple checker when an external device is actually connected. Using the “Diagnosis Report” feature reports the driver settings, the presence or absence of the board,
I/O status, and interrupt status.

Check Method

Connect the board to a remote device to text the input/output and check the execution environment. For this board, prepare an external power supply (12 to 24 V). 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
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
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
Board
Connector
Optional cable PCB96PS-xxP
To connect a device other than the Check Mate, refer Chapter 3 “External Connection”.
22
Page 30

Using the Diagnosis Program

Starting the Diagnosis Program Select the board in the API-TOOL Configuration windows, then run the Diagnosis Program. * The name of the board you have just added is displayed.
* The name of the board you are testing is displayed
- PIO-32/32B(PCI)V
2. Setup
23
Page 31
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” :
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.
* The name of the board you have just added is displayed.
- PIO-32/32B(PCI)V
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 tim e measurement fea ture, click on the [Measurement Tim e] button. Ente r 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.
24
Page 32
2. Setup
Diagnosis Report (1) Clicking on the [Show Diagnosis Report] button displays detailed data such as board settings and
the diagnosis results while saving them in text format. The results are saved and displayed as a text file (DioRep.txt) in the install folder (Program
Files\CONTEC\API-PAC(W32)). The Diagnosis Program performs “board presence/absence che ck”, “driver file test”, “board setting
test”, and so on.
CAUTION
Before executing diagnosis report output, unplug the cable from the board.
(2) A diagnosis report is displayed as shown below.
* The name of the board you have just added is displayed.
- PIO-32/32B(PCI)V
Click on [Show Diagnosis Report].
* The name of the board you have tested is displayed.
- PIO-32/32B(PCI)V
25
Page 33
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], for 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 board is an isolat ed type, it has a tim e lag for its re sponse between the o utput 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 XP 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.
]
2000]
,

If your problem cannot be resolved

Contact your retailer.
26
Page 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.

Using the On-board Connectors

Connecting a Device to a Connector

To connect an external device to this board, plug the cable from the device into the interface connector (CN1).
Interface connector (CN1)
Figure 3.1. Connecting the Interface Connector
B48 B47
B02 B01
- Connector used
A48
PCR-E96LMD
A47
(mfd. by HONDA)
A02 A01
27
Page 35
3. External Connection

Connector Pin Assignment

Pin Assignments of Interface Connector <PIO-32/32B(PCI)V>
[1]
[49] B48
N.C.
OP 6/7 OP 6/7
O-77 O-76 O-75 O-74 O-73 O-72 O-71 O-70 O-67 O-66 O-65 O-64 O-63 O-62 O-61
O-60 ON 6/7 ON 6/7
N.C.
N.C.
N.C.
N.C.
N.C.
N.C.
N.C.
N.C. OP 4/5 OP 4/5
O-57 O-56 O-55 O-54 O-53 O-52 O-51 O-50 O-47 O-46 O-45 O-44 O-43 O-42 O-41
O-40 ON 4/5 ON 4/5
B47 B46 B45 B44 B43 B42 B41 B40 B39 B38 B37 B36 B35 B34 B33 B32 B31 B30 B29 B28 B27 B26 B25 B24 B23 B22 B21 B20 B19 B18 B17 B16 B15 B14 B13 B12 B11 B10 B09 B08 B07 B06 B05 B04 B03 B02 B01
[96] [48]
Common plus pin for +6/+7 output ports
+7 port (output)
+6 port (output)
Common minus pin for +6/+7 output ports
Common plus pin for +4/+5 output ports
+5 port (output)
+4 port (output)
Common minus pin for +4/+5 output ports
- The number in squre brackets [] are pin numbers designated by HONDA TSUSHIN KOGYO CO., LTD..
A48 A47 A46 A45 A44 A43 A42 A41 A40 A39 A38 A37 A36 A35 A34 A33 A32 A31 A30 A29 A28 A27 A26 A25 A24 A23 A22 A21 A20 A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A09 A08 A07 A06 A05 A04 A03 A02 A01
IP 2/3
Common plus pin for
IP 2/3
+2/+3 input ports I-37 I-36 I-35 I-34
+3 port (input)
I-33 I-32 I-31 I-30 I-27 I-26 I-25 I-24
+2 port (input)
I-23 I-22 I-21 I-20
Common minus pin f or
IN 2/3
+2/+3 input ports
IN 2/3 N.C. N.C. N.C. N.C.
N.C.
N.C. N.C. N.C. N.C. IP 0/1
Common plus pin of the handshake IP 0/1
signal and fo r +0/ +1 ports. I-17
I-16 I-15 I-14
+1 port (input)
I-13 I-12 I-11 I-10 I-07 I-06 I-05 I-04
+0 port (input)
I-03 I-02 I-01 I-00 IN 0/1
Common minus pi n for
IN 0/1
+0/+1 input ports
I-00 - I-37 32 input signal pins. Connect output signals from the external devi ce to these pins. O-40 - O-77 32 output signal pins. Connect these pins to th e input sig nal pins o f the ext ernal device. IP 0/1, IP 2/3 When the external power sup ply i s se le cted, it s po si tiv e sid e i s con ne cte d to th es e pi ns.
When the internal power supply is used, these pins output power at +12 V. These pins are common to 16 input signal pins.
IN 0/1, IN 2/3 When the e xte rnal pow er supply i s sele cted, its negative side is connected to this pin.
When the internal power supply is selected, this pin serves as the ground. These pins are common to 16 input signal pins.
OP 4/5, OP 6/7 When the external power supply is selected, its positive side is connected to these pins.
When the internal power supply is used, these pins output power at +12 V. These pins are common to 16 input signal pins.
ON 4/5, ON 6/7 When the external power supply is selected, its negativ e si de is con ne cted to thi s pin .
When the internal power supply is selected, this pin serves as the ground. These pins are common to 16 input signal pins.
N.C. This pin is left unconnected.
Figure 3.2. Pin Assignments of Interface Connector < PIO-32/32B(PCI)V >
28
Page 36
3. External Connection
Pin Assignments of Optional Connector PCB96WS and CCB-96
* Optional cable PCB96WS-**
Connector
A
17JE-23370-02(D8C) [mfd. by DDK] or equivalent
B
Connector: PCR-E96FA [mfd. by HONDA]
B48 B47
B2 B1
On-board connector name PCR-E96LMD [mfd. by HONDA]
PCB96WS's CNA and CCB96's CN3 (CNA)
Common plus pin for +0/+1 input ports
+1 port (input)
+0 port (input)
Common minus pin for +0/+1 input ports
A48 A47
A2 A1
N.C.
IP 0/1
I-17 I-16 I-15 I-14 I-13 I-12 I-11 I-10 I-07 I-06 I-05 I-04 I-03 I-02 I-01 I-00
IN 0/1
Connector cover: PCS-E96LKPA [mfd. by HONDA]
* Optional cable PCB96PS-** + connector conversion board CCB-96
Connector DCLC-J37SAF-20L9 [mfd. by JAE] or equivalent
Connector: PCR-E96FA [mfd. by HONDA] Connector cover: PCS-E96LKPA [mfd. by HONDA]
** represents the cable length (1.5, 3, or 5m).
19
37
18
36
17
35
16
34
15
33
14
32
13
31
12
30
11
29
10
28
9
27
8
26
7
25
6
24
5
23
4
22
3
21
2
20
1
IP 2/3 I-37 I-36 I-35 I-34 I-33 I-32 I-31 I-30 I-27 I-26 I-25 I-24 I-23 I-22 I-21 I-20 IN 2/3
Common plus pin for +2/+3 input ports
+3 port (input)
+2 port (input)
Common minus pin for +2/+3 input ports
CCB-96
PCB96WS's CNB and CCB96's CN4 (CNB)
Common plus pin for +4/+5 output ports
+5 port (output)
+4 port (output)
Common minus pin for +4/+5 output ports
N.C.
OP 4/5
O-57 O-56 O-55 O-54 O-53 O-52 O-51 O-50 O-47 O-46 O-45 O-44 O-43 O-42 O-41 O-40
ON 4/5
Figure 3.3. PCB96WS and CCB-96 Signal Assignments
19
37
18
36
17
35
16
34
15
33
14
32
13
31
12
30
11
29
10
28
9
27
8
26
7
25
6
24
5
23
4
22
3
21
2
20
1
OP 6/7 O-77 O-76 O-75 O-74 O-73 O-72 O-71 O-70 O-67 O-66 O-65 O-64 O-63 O-62 O-61 O-60 ON 6/7
Common plus pin for +6/+7 output ports
+7 port (output)
+6 port (output)
Common minus pin for +6/+7 output ports
29
Page 37
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).
PIO-32/32B(PCI)V
Table 3.1. Logical Ports, Logical Bits, and Connector Signal Pins <PIO-32/32B(PCI)V>
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
Output logical port0
Output logical port1
Output logical port2
Output logical port3
Note :
[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]
D7 D6 D5 D4 D3 D2 D1 D0
O-47
O-46
[7]
[6]
O-57
O-56
[15]
[14]
O-67
O-66
[23]
[22]
O-77
O-76
[31]
[30]
I-xx represents a CAN input signal; O-xx represents a CNB output signal. [xx] represents a logical bit.
[21] I-35
[29]
O-45
[5]
O-55
[13]
O-65 [21]
O-75 [29]
I-24 [20]
I-34 [28]
O-44
[4]
O-54
[12]
O-64
[20]
O-74
[28]
[11] I-23
[19] I-33
[27]
O-43
[3]
O-53
[11]
O-63
[19]
O-73
[27]
I-12 [10]
I-22 [18]
I-32 [26]
O-42
[2]
O-52
[10]
O-62
[18]
O-72
[26]
[1]
I-11
[9]
I-21 [17]
I-31 [25]
O-41
[1]
O-51
[9]
O-61
[17]
O-71
[25]
I-00
[0]
I-10
[8]
I-20 [16]
I-30 [24]
O-40
[0]
O-50
[8]
O-60
[16]
O-70
[24]
CAUTION
The logical port and logical bit numbers are virtual port and bit numbers that enable programming independent of board I/O addresses or board types.
For details, refer to API-DIO HELP available after installing API-PAC(W32).
30
Page 38
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 requires an external power supply to feed currents. The board inputs the ON/OFF state of the current-driven device as a digital value.

Input Circuit

Vcc
Optocoupler
Vcc
Optocoupler
* Input pin represents I-xx.
Board
JP2/JP4
un-connect
un-connect
JP3/JP5
+12V
Plus
common
Input
pin
Input
pin
Minus
common
External device
Swich
Swich
External power supply 12 - 24VDC
Figure 3.4. Input Circuit < PIO-32/32B(PCI)V >
The input circuits of interface blocks of the PIO-32/32B( PCI)V are illustrated in Figure 3.4. The signal inputs are isolated by opto-couple rs (ready to accept cu rrent sinking outp ut signals). The board t herefore requires an additional power supply isolated from the PC system to drive the photo-isolated circuits. The board offers you an on-board isol ated 12 VDC power supply in option. In this case (u sing external supply), 5.1mA current is requested each channel on 24VDC (2.6mA on 12VDC).
CAUTION
Please refer to Selecting Power Supply, and choose the proper supply by jumps.
31
Page 39
3. External Connection

Connecting a Switch

I-00 (CN1 : A03 pin)
Input minus common (CN1 : A01 pin)
Board side
When the switch is ON, the corresponding bit contains 1. When the switch is OFF, by contrast, the bit contains 0.
Figure 3.5. An Example to use Input I00 < PIO-32/32B(PCI)V >
Switch
32
Page 40
3. External Connection

Connecting Output Signals

Connect the output signals to a current-driven controlled device 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

Board
+12V
External device
Vcc
Optocoupler
Optocoupler
* Output pin represents O-xx.
JP6/JP8
Zener diode
Zener diode
PolySwitch
JP7/JP9
Plus
common
Output
pin
Output
pin
Minus
common
*
Load *
Load
External power supply 12 - 24VDC
Figure 3.6. Output Circuit <PIO-32/32B(PCI)V>
The output circuits of interface blocks of the PIO-32/32B(PCI)V are illustrated in Figure 3.6. The signal output section is an opto-coupler isolated, open-collector output (current sink type). Driving the output section requires an additional power supply isolated from the PC system. The board offers you an on­board isolated 12VDC power supply in option.
The rated output current per channel is 100 mA 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.5 V or less at an output current within 50 mA or at most 1.0 V 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 th e power to the PC and the external power supply and wait for a few minutes, then turn them on back .
33
Page 41
3. External Connection
CAUTION
When the PC is turned on, a ll outpu t ar e re set t o O FF .

Connection to the LED

Output plus co mmon (CN1 : B19 pin)
5.1k
Board side
O-40 (CN1 : B03 pin)
When "1" is output to a relevant bit, the corresponding LED comes on. When "0" is output to the bit, in contrast, the LED goes out.
LED
Figure 3.7. An Example to use Output O-40 < PIO-32/32B(PCI)V >

Example of Connection to TTL Level Input

External powwer supply 12 - 24VDC
-+
Input board
2k
VCC
TTL level input
GND
Output plus common
Output
Output minus common
Figure 3.8. Connection Example of Output and TTL level Input Signal < PIO-32/32B(PCI)V >
34
Page 42
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 conn ect such boards to each other.
External power supply 12 - 24VDC
+
-
Output board
Output plus common
Output (sink type)
Output minus common
Input boar d
Input plus common
Input (Compatible with sink output)
Figure 3.9. Example of Connecting the Sink Type Output and Sink Output Support Input
35
Page 43
3. External Connection
36
Page 44

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 relevant bit

Data Output

When “1” is output to the relevant bit, the corresponding transistor is set to “ON”. When “0” is output to the relevant bit, in contrast, the corresponding transistor is set to “OFF”.
CAUTION
When the PC is turned on, all output ar e reset to 0 (OFF).

Monitoring Output Data

The <PIO-32/32B(PCI)V> can read the state of the data currently being output without affecting the output data.
37
Page 45
4. Function

Digital Filter

Using this feature, the PIO-32/3 2B(PCI)V can apply a digital filter to ever y input pin, thereb y preventing the input signal from being affected by noise or chattering.

Digital Filter Function Principle

The digital filter checks the input signal level during the sampling time of the clock signal. When the signal level remains the same for the digi tal filter set time, the digital filter recognizes that signal as the input signal and changes the signal level of the PC
If the signal level changes at a frequency shorter than the set time, there fore, the level cha nge is ignored.
Input Signal
Input Signal
Input to PC
Digital Filter
Filter Setting Time
Invalid
Input to PC
Valid
Figure 4.1. Digital Filter Function Principle

Set Digital Filter Time

Set the digital filter time to 0 - 20 (14h). Setting the digital filter time to 0 disables digital filtering. It is set to 0 when the power is turn ed on . Figure 4.2 shows the relationships between digital filter time settings and the actual digital filter times.
Digital Filter Time[sec.] = 2
n: = setting data(0 - 20)
Setting Data
(n)
0 (00h)
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
Digital Filter
Time
The filter function
is not used.
Figure 4.2. Digital Filter Time and Setting Data
n
/ (8 x 106)
Setting Data
(n)
7 (07h) 16µsec 14 (0Eh) 2.048msec
Digital Filter
Time
Setting Data
(n)
Digital Filter
Time
38
Page 46
4. Function
CAUTION
- If you set the digital filter time, the filter applies to all in put pins. You cannot a pply the filter only to a specific filter.
- Do not set Setting Data to a value outside the above range as doing so can cause the board to malfunction.

Interrupt Control Function

The PIO-32/32B(PCI)V can use all of the input signals as interrupt request signals. 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 interruptions.
CAUTION
All of the interrupt mask bits are interrupt-disabled when the power is turned on.

Selecting the Interrupt Edge

Interrupt edge select bits can be used to set the input logic for interruption bit by bit. If you set an interrupt edge select bit to 0, an interrupt occurs when the input value to the corresponding
bit changes from 0 to 1 (at the fall of the input signal from High to Low). If you set an interrupt edge select bit to 1, an interrupt occurs when the input value to the corresponding
bit changes from 1 to 0 (at the rise of the input signal from Low to High).
CAUTION
When the power is turned on, a ll of th e inte rrup t edge select bits are set to 0 so that an interrupt occurs when the input valu e cha ng es fr o m 0 to 1 (at the f al l of th e inpu t signa l from High to Low).
39
Page 47
4. Function

Clearing the Interrupt Status and Interrupt Signal

Interrupt status bits are used to identify the input signal bit being used for requesting an interrupt. When an interrupt status is input, the interrupt request signal and the interrupt status are cleared
automatically.
CAUTION
- All of the interrupt status bits are set to 0 when the power is turned on.
- If an interrupt mask bit has been set to disable interrupts, the interrupt status bit i s not set even when the input signal changes its level.
40
Page 48

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)
.
. |–––APIPAC Each installer | |––AIO | | |––DISK1 | | |––DISK2 | | |––…… | | |––DISKN | |––AioWdm | |––CNT | |––DIO | |––……
.
. | ––HELP HELP file | |––Aio | |––Cnt | |––……
.
. | ––INF Each INF file for OS | |––WDM | |––Win2000 | |––Win95
.
. |––linux Linux driver file | |––cnt | |––dio | |––……
. . | ––Readme Readme file for each driver
.
. | ––Release Driver file on each API-TOOL | |––API_NT (For creation of a user-specific install program) | |––API_W95
.
. | ––UsersGuide Hardware User's Guide(PDF files)

5. About Software

41
Page 49
5. About Software

About Software for Windows

The bundled CD-ROM “Driver Library API-PAC(W32)” contains the functions th at provide the following features:
- Digital input/output of specified ports
- Hardware digital input/output of specified bits
- Hardware digital filtering that prevents chattering
For details, refer to the help file. The help file provides various items of information such as “Function Reference”, “Sample Programs”, and “FAQs”. Use them for program development and troublesh ooting.

Accessing the Help File

(1) Click on the [Start] button on the Windows taskbar. (2) From the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” – “Dio” – “API-DIO
HELP” to display help information.
42
Page 50
5. About Software

Using Sample Programs

Sample programs have been prepared for specific basic applications. To use each sample program, enter its dri ver number and grou p number set by API-T OOL Configurati on in the DrvNo and GrpNo fields.
Use these sample programs as references for program development and operation check. The sample programs are stored in \Program Files\CONTEC\API-PAC(W32)\Dio\Samples.
Running a Sample Program (1) Click on the [Start] button on the Windows taskbar. (2) From the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” – “Dio” – “SAMPLE…”. (3) A sample program is invoked.
43
Page 51
5. About Software
Sample Programs - Examples
-Sample program 1 : Inputs digital data through a specified port.
-Sample program 2 : Outputs digital data through a specified port.
-Sample program 3 : Inputs/outputs digital data from/to a programmable board.
-Sample program 4 : Inputs digital data from a specified port in the background.
-Sample program 5 : Inputs/outputs digital data from/to a specified bit.
-Sample program 6 : Services interrupts of a specified board.
-Sample program 7 : Provides process control of a specified board.
-Sample program 8 : Performs trigger monitoring of a specified board.
-Sample program 9 : Inputs digital data through a specified port using BCD data.
-Sample program 10 : Executes digital input (simple functions) at specified bits through a
-Sample program 11 : Services interrupts of a specified board (using an extended function).
-Sample program (Console): Inputs/outputs digital data through a specif ied po rt.
[Sample program 1] [Sample program 2]
specified port.
[Sample program 5] [Sample program 9]
44
Page 52
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 “Settings” –
“Control Panel”. (2) Double-click on “Install or Remove Programs and Windows components” in the Control Panel. (3) Select “CONTEC API-DIO(98/PC)xx” from the application list displayed, then click on the
[Change/Remove] button. Follow the on-screen instructions to uninstall the function libraries.
45
Page 53
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 ports
- Digital input/output of specified b i ts
- Hardware digital filtering that prevents chattering
For details, refer to the help file. The help file provides various items of information such as “Function Reference”, “Sample Programs”, and “FAQs”. Use them for program development and troublesh ooting.

Driver Software Install Procedure

The Linux version for digital I/O driver, API-DIO(LNX), is supplied as a compressed file /linux/dio/cdioXXX.tgz on the bundled API-PAC(W32)CD-ROM. (Note: XXX represents the driver version.)
Mount the CD-ROM as shown below, copy the file to an arbitrary directory, and decompress the file to install the driver.
For details on using the driver, refer to readme.txt and the help file in HTML format extracted by installation.
To install the driver , l og in as a sup eru se r.
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
46
Page 54
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 the script.
47
Page 55
5. About Software
48
Page 56

6. About Hardware

6. About Hardware
This chapter provides hardware specifications and hardware-related supplementary information.

Hardware specification

Table 6.1. Specification < PIO-32/32B(PCI)V > < 1 /2 >
Item Specification
Input
Input format Opto-isol at ed in pu t (Com pa tibl e wi th cur re nt si nk ou tp ut)(N ega ti ve lo gi c *1) Number of input
signal channels Input resistance 4.7k Input ON current 2.0mA or more Input OFF current 0.16mA or less Interrupt 32 interrupt input signals are arranged into a single output of interrupt signal INTA.
Response time 200µsec within
Output
Output format Opto-isolate d open col lec to r out put (cu rren t si nk ty pe ) (Neg ati ve l ogi c*1 ) Number of output
signal channels
Output voltage
rating
Output current
Residual voltage with output on
Surge protector Zener diode RD47FM(NEC) or equivalent Response time 200µsec within
Common
I/O address Any 32-byte boundary Interruption level 1 level use Max. board co un t
for connectio n Dielectric stren gth External circuit
power supply Internal power 12VDC 250m A *2
32 channels (all available for interrupts) (One common power supply per 16 channels)
An interrupt is generated at the rising edge (HIGH-to-LOW transition) or falling edge (LOW-to -HI GH tran si tion ).
32 channels (One common power supply per 16 channels)
35VDC (Max.)Output
100mA (par channel) (Max.)
0.5V or less (Output current50mA), 1.0V or less (Output current100mA)
16 boards
500Vrms
12 - 24VDC(±10%)
49
Page 57
6. About Hardware
Table 6.1. Specification < PIO-32/32B(PCI)V> <2/2>
Item Specification
Common
Power consumption 5VDC 200mA(Max.) (Using the external power)
5VDC 1050mA(Max.)(Using the internal powe r) Operating condition 0 - 50°C, 10 - 90%RH(No condensation) Allowable dista nce
of signal extension PCI bus
specification Dimension (mm) 176.41 (L) x 105.68 (H) Weight 215g
*1 Data “0” and “1” correspond to the High and Low levels, respectively. *2
When the internal power supply is used, the input section consumes a maximum of 80 mA and the output channel switching section consumes a maximum of 60 mA. In this case, therefore, the output current to be supplied from the board is 110 mA.
*3
This board requires +5V power supply from expansion slots (it does not operate in the environment of only +3.3V
power supply).
Approx. 50m (depending on wir ing e nvir onmen t)
32bit, 33MHz, Universal key shapes supported *3
Board Dimensions
176.41(L)
105.68(H)
[mm]
The standard outside dimension (L) is the distance from the end of the board to the outer surface of the slot cover.
50
Page 58

Block Diagram

PIO-32/32B(PCI)V
6. About Hardware
&
&
&
&
External Digital Input Port0 (8 channels, Group 0)
External Digital Input Port1 (8 channels, Group 1)
External Digital Input Port2 (8 channels, Group 2)
External Digital Input Port3 (8 channels, Group 3)
External Digital Output Port0 (8 channels, Group 4)
External Digital Output Port1 (8 channels, Group 5)
External Digital Output Port2 (8 channels, Group 6)
External Digital Output Port3 (8 channels, Group 7)
Opto­coupler
Opto­coupler
Opto­coupler
Opto­coupler
Control Circuits
PCI BUS
Interrupt Control Circuit
PIO-32/32B(PCI)V
Opto-
coupler
Transistors
Opto-
coupler
Transistors
Opto-
coupler
Transistors
Opto-
coupler
Transistors
Figure 6.1. Block Diagram < PIO-32/32B(PCI)V>
51
Page 59
6. About Hardware
Differences between the PIO-32/32B(PCI)V and PIO-32/32B(PCI)H
The PIO-32/32B(PCI)V is connector-pin compatible with the conventional PIO-32/32B(PCI)H but has the following differences from it:
(1) Different in the number of input signals available to interrupt requests
PIO-32/32B(PCI)V : Al l of 32 chan n els PIO-32/32B(PCI)H : 4 c han n els
(2) Different in the expression to calculate the digital filter time (n: setting value)
PIO-32/32B(PCI)V : 2 PIO-32/32B(PCI)H : 2
(3) Protective elements provided for outputs
PIO-32/32B(PCI)V : Surge protector: Zener diode PIO-32/32B(PCI)H : Nothing
(4) Different in interrupt level resource allocation
PIO-32/32B(PCI)V : Automatically allocates on interrupt level. PIO-32/32B(PCI)H : Uses a jumper switch to select whether to allocate interrupt levels.
(5) Different in whether ASIC or not
PIO-32/32B(PCI)V : Noth in g PIO-32/32B(PCI)H : ASIC
(6) Different in Power Consumption
PIO-32/32B(PCI)V : 5VDC 200mA(Max.) (Using the external power)
PIO-32/32B(PCI)H : 5VDC 300mA(Max.) (Using the external power)
n
/ (8 x 106)
n
/ (16 x 106)
5VDC 1050mA(Max.) (Using the internal power)
5VDC 1300mA(Max.) (Using the internal power)
52
Page 60
PIO-32/32B(PCI)V
User’s Guide
CONTEC CO., LTD. April 2006 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 withou t prior written consent of CONTEC CO., LTD. [04032006]
[03242005] Management No. A-46-969 [04032006_rev2] Parts No. LYEN361
Loading...