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-64/64L(PCI), PI-128L(PCI) or PO-128L(PCI)] …1
Copyright 2002 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 nor for results obtained by the user as a result of using this product.
Trademarks
MS, Microsoft, MS-DOS and Windows are trademarks of Microsoft Corporation. Other brand and
product names are trademarks of their respective holder.
ii
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 4
Table of Contents
Check Your Package....................................................................................................................................i
Table of Contents.......................................................................................................................................iii
1.BEFORE USING THE PRODUCT1
About the Board .......................................................................................................................................... 1
What is Setup?.............................................................................................................................................7
Using the Board under Windows Using the API Function Library Package API-PAC(W32)...7
Using the Board under Window Using Software Other than
the API Function Library Package API-PAC(W32)............8
Using the Board under an OS Other than Windows........................................................................8
Step 1 Installing the Software....................................................................................................................9
Starting the Install Program................................................................................................................9
Selecting the Digital I/O Driver ....................................................................................................... 10
Executing the Installation.................................................................................................................11
Step 2 Setting the Hardware....................................................................................................................12
Parts of the Board and Factory Defaults ......................................................................................... 12
Setting the Board ID..........................................................................................................................13
Plugging the Board............................................................................................................................14
Example of Connection to LED....................................................................................................... 34
Example of Connection to TTL Level Input .................................................................................. 34
Connecting the Sink Type Output and Sink Output Support Input.....................................................35
4.FUNCTIONS37
Data I/O Function.....................................................................................................................................37
Data Input...........................................................................................................................................37
Data Output........................................................................................................................................37
This chapter provides information you should know before using the product.
About the Board
This board is a PCI-compliant interface board for input/output of digital signals.
The board can input the open/closed circuit states of switches and can control relays.
<PIO-64/64L(PCI)> can input and output up to 64 channels.
<PI-128L(PCI)> can input up to 128 channels.
<PO-128L(PCI)> can output up to 128 channels.
Using the bundled API function 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
-Common power-supply configuration in 16 channel units, capable of supporting different external
power supplies.
-Opto-coupler used to electrically isolated I/O signal interface from the PCI bus, offering good noise
immunity.
- Capable of using up to 16 channels of input signals as interrupt inputs.
Also capable of selecting the input signal edge for generating interrupts
<PIO-64/64L(PCI)>, <PI-128L(PCI)>
-Digital filtering that prevents input signal noise and chattering.
<PIO-64/64L(PCI)>, <PI-128L(PCI)>
-Up to 35VDC, 100mA per signal, max. output.
<PIO-64/64L(PCI)>, <PO-128L(PCI)>
-Zener diode connected to output transistors for protection from surge voltage. Over-current
protective device provided for every eight channels of output transistors.
<PIO-64/64L(PCI)>, <PO-128L(PCI)>
You should use CONTEC support software according to your purpose and development environment.
Driver Software Package
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 taking advantage of the CONTEC hardware using various programming languages
that support Win32 API functions, such as Visual Basic and Visual C/C++.
It can also be used by the installed diagnosis program to check hardware operations.
CONTEC provides download services (at http://www.contec.co.jp/en/) to supply the updated drivers and
differential files.
For details, read Help on the bundled CD-ROM or visit the CONTEC’s Web site.
< Operating environment >
OSWindows XP, 2000, NT, Me, 98, etc..
Adaptation languageVisual C/C++, Borland C++, Visual Basic, etc..
OthersEach piece of library software requires 20 megabytes of free hard disk space.
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
*1: A PCB100/96PS optional cable is required separately.
*Check the CONTEC’s Web site for more information on these options.
2
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 10
1. Before Using the Product
Customer Support
CONTEC provides the following support services for you to use CONTEC products more efficiently and
comfortably.
Web Site http://www.contec.co.jp/en/
Latest product information
CONTEC provides up-to-date information on products.
CONTEC also provides product manuals and various technical documents in the PDF.
Free download
You can download updated driver software and differential files as well as sample programs available in
several languages.
Note! For product information
Contact your retailer if you have any technical question about a CONTEC product or need its price,
delivery time, or estimate information.
Limited Three-Year Warranty
CONTEC Interface boards are warranted by CONTEC Co., LTD. to be free from defects in material and
workmanship for up to three years from the date of purchase by the original purchaser.
Repair will be free of charge only when this device is returned freight prepaid with a copy of the original
invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office, from
which it was purchased.
This warranty is not applicable for scratches or normal wear, but only for the electronic circuitry and
original boards. The warranty is not applicable if the device has been tampered with or damaged through
abuse, mistreatment, neglect, or unreasonable use, or if the original invoice is not included, in which case
repairs will be considered beyond the warranty policy.
How to Obtain Service
For replacement or repair, return the device freight prepaid, with a copy of the original invoice. Please
obtain a Return Merchandise Authorization Number (RMA) from the CONTEC group office where you
purchased before returning any product.
*No product will be accepted by CONTEC group without the RMA number.
Liability
The obligation of the warrantor is solely to repair or replace the product. In no event will the warrantor
be liable for any incidental or consequential damages due to such defect or consequences that arise from
inexperienced usage, misuse, or malfunction of this device.
Understand the following definitions and precautions to use the product safely.
Safety Information
This document provides safety information using the following symbols to prevent accidents resulting in
injury or death and the destruction of equipment and resources. Understand the meanings of these labels
to operate the equipment safely.
DANGER
WARNING
CAUTION
DANGER indicates an imminently hazardous situation which, if not avoided, will
result in death or serious injury.
WARNING indicates a potentially hazardous situation which, if not avoided, could
result in death or serious injury.
CAUTION indicates a potentially hazardous situation which, if not avoided, may
result in minor or moderate injury or in property damage.
4
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 12
1. Before Using the Product
Handling Precautions
DANGER
Do not use the product where it is exposed to flammable or corrosive gas. Doing so may result in an
explosion, fire, electric shock, or failure.
CAUTION
-There are switches 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 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.
- 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.
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 to 50ºC
Humidity
10 to 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.
of the board and its cable have
been plugged correctly .
- Check that the board has
no dust or foreign matter adhering.
- The gold-plated leads of the bus connector
have no stain or corrosion.
Storage
When storing this product, keep it in its original packing form.
(1) Put 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 temperature at a place free from direct sunlight, moisture, shock,
vibration, magnetism, and static electricity.
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
6
CONTEC CO., LTD.
Page 14
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 API Function Library Package 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 “API Function Library Package 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 Software Other than the API Function Library Package
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
Using the Board under an OS Other than Windows
For using the board under an OS other than Windows, see the following parts of this manual.
This chapter Step 2 Setting the Hardware
Chapter 3 External Connection
Chapter 6 About Hardware
8
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 16
Step 1 Installing the Software
This section describes how to install the API function libraries.
Before installing the hardware on your PC, install the API function libraries from the bundled
API-PAC(W32) CD-ROM.
The following description assumes the operating system as Windows Me. 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.
The following dialog box appears to select “Driver Type” and “Install Type”.
(2)
Select “Digital I/O API-DIO(98/PC)W95”.
(3)
Select “Driver, Help, etc..(Full Install)”.
(4)
Click on the [Install] button.
10
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 18
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”.
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.
If you install two or more boards on one personal computer, assign a different ID value to each of the
boards to distinguish them.
The board IDs can be set from 0 to Fh to identify up to sixteen boards.
If only one board is used, the original factory setting (Board ID = 0) should be used.
Setting Procedure
To set the board ID, use the rotary switch on the board. Turn the SW1 knob to set the board ID as shown
(1) Before plugging the board, shut down the system, unplug the power code of your PC.
(2) Remove the cover from the PC so that the board can be mounted.
(3) Plug the board into an expansion slot.
(4) Put the cover back into place.
CAUTION
-Do not touch the board's metal plated terminals (edge connector) with your hands.
Otherwise, the board may malfunction, overheat, or cause a failure.
If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
-Do not install or remove the board to or from the slot while the computer's 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.
14
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 22
2. Setup
Step 3 Installing the Hardware
For using an expansion board under Windows, you have to let the OS detect the I/O addresses and IRQ to
be used by the board. The process is referred to as installing the hardware.
In the case of using two or more boards, make sure you install one by one with the 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 to install the board, first determine what PC resources
are free to use.
-The resources used by each board do not depend on the location of the PCI bus slot or the board itself.
If you remove two or more boards that have already been installed and then remount one of them on
the computer, it is unknown that which one of the sets of resources previously assigned to the two
boards is assigned to the remounted board. In this case, you must check the resource settings.
Setting with the Add New Hardware Wizard
(1) The “Add New Hardware Wizard” will be started.
Select “Specify the location of the driver”, then click on the [Next] button.
If you are using Windows NT 4.0, the “Add New Hardware Wizard” is not started.
Go to Step 4 “Initializing the Software”.
(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-64/64L(PCI)
- PI-128L(PCI)
- PO-128L(PCI)
Source folder
The setup information (INF) file is contained 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 Me
\INF\Win95\Dio\PCI
16
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 24
2. Setup
CAUTION
In Windows XP, the Hardware Wizard displays the following alert dialog box when you have
located the INF file. This dialog box appears, only indicating that the relevant driver has not passed
Windows Logo testing, and it can be ignored without developing any problem with the operation of
the board.
In this case, click on the [Continue Anyway] button.
* The name of the board
you have just added is
displayed.
The API function library requires the initial setting to recognize the execution environment. It is called
the initialization of the API function library.
Invoking API-TOOL Configuration
(1) Open the Start Menu, then select “Programs” – “CONTEC API-PAC(W32)” – “API-TOOL
(1) Select “Save settings to registry…” from the “File” menu.
You have now finished installing the initial setting of Software.
18
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 26
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
GR OUP 0
GRO UP 1
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
Exte r nal Power Supply
12 to 24V DC
GR OUP 3
GRO U P 5
GRO U P 7
AC K S TB
GRO UP 2
7 6 5 4 3 2 1 0
GR OUP 4
7 6 5 4 3 2 1 0
GR OUP 6
7 6 5 4 3 2 1 0
POW ER
CN 3
Board
Connector
Optional cabl es
PCB10 0 /96PS -xx
To connect a device other than the Check Mate, see Chapter 3 “External Connection”.
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 have just added is
displayed.
- PIO-64/64L(PCI)
- PI-128L(PCI)
- PO-128L(PCI)
20
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 28
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-64/64L(PCI)
- PI-128L(PCI)
- PO-128L(PCI)
2. Setup
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.
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 check”, “ driver file test”, “board setting
test”, and so on.
CAUTION
-Before executing diagnosis report output, unplug the cable from the board.
* The name of the board
you have just added is
displayed.
- PIO-64/64L(PCI)
- PI-128L(PCI)
- PO-128L(PCI)
Click on [Show
Diagnosis Report].
(2) A diagnosis report is displayed as shown below.
* The name of the board
you have just added is
displayed.
- PIO-64/64L(PCI)
- PI-128L(PCI)
- PO-128L(PCI)
22
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 30
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 isolated type, it has a time lag for its response between the output by a function
and the actual output. Consider the execution intervals between functions.
The OS won’t normally get started or detect the board. [Windows XP, 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
Refer to the FAQs in API-DIO HELP and, if you still have a question, contact your retailer with a report
generated by the Diagnosis Report feature of the Diagnosis Program.
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
(CAN,CNB) shown below.
O-00 to O-F7128 output signal pins. Connect input signals from the external device to these pins.
P-0/1 to P-E/F
Connect the positive side of the external power supply. These pins are common to 16 output
signal pins.
N-0/1 to N-E/F Connect the negative side of the external power supply. These pins are common to 16 output
signal pins.
A current of 0.3 A is allowable per connector pin. Connect the required number of pins for the
total current for the corresponding 16 output signals.
N.C.This pin is left unconnected.
Figure 3.4. Pin Assignments of Interface Connector <PO-128L(PCI)>
28
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 36
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-64/64L(PCI)
Table 3.1. Relationships between Logical Ports/Bits and Connector Signal Pins
<PIO-64/64L(PCI)>
Table 3.3. Relationships between Logical Ports/Bits and Connector Signal Pins
<PO-128L(PCI)>
D7D6D5D4D3D2D1D0
O-07
O-06
O-05
O-04
O-03
O-02
O-01
Output logical port 0
Output logical port 1
Output logical port 2
Output logical port 3
Output logical port 4
Output logical port 5
Output logical port 6
Output logical port 7
Output logical port 8
Output logical port 9
Output logical port 10
Output logical port 11
Output logical port 12
Output logical port 13
Output logical port 14
Output logical port 15
O-xx represents a CNA or a CNB output signal. [xx] represents a logical bit.
[7]
O-17
[15]
O-27
[23]
O-37
[31]
O-47
[39]
O-57
[47]
O-67
[55]
O-77
[63]
O-87
[71]
O-97
[79]
O-A7
[87]
O-B7
[95]
O-C7
[103]
O-D7
[111]
O-E7
[119]
O-F7
[127]
[6]
O-16
[14]
O-26
[22]
O-36
[30]
O-46
[38]
O-56
[46]
O-66
[54]
O-76
[62]
O-86
[70]
O-96
[78]
O-A6
[86]
O-B6
[94]
O-C6
[102]
O-D6
[110]
O-E6
[118]
O-F6
[126]
[5]
O-15
[13]
O-25
[21]
O-35
[29]
O-45
[37]
O-55
[45]
O-65
[53]
O-75
[61]
O-85
[69]
O-95
[77]
O-A5
[85]
O-B5
[93]
O-C5
[101]
O-D5
[109]
O-E5
[117]
O-F5
[125]
[4]
O-14
[12]
O-24
[20]
O-34
[28]
O-44
[36]
O-54
[44]
O-64
[52]
O-74
[60]
O-84
[68]
O-94
[76]
O-A4
[84]
O-B4
[92]
O-C4
[100]
O-D4
[108]
O-E4
[116]
O-F4
[124]
[3]
O-13
[11]
O-23
[19]
O-33
[27]
O-43
[35]
O-53
[43]
O-63
[51]
O-73
[59]
O-83
[67]
O-93
[75]
O-A3
[83]
O-B3
[91]
O-C3
[99]
O-D3
[107]
O-E3
[115]
O-F3
[123]
[2]
O-12
[10]
O-22
[18]
O-32
[26]
O-42
[34]
O-52
[42]
O-62
[50]
O-72
[58]
O-82
[66]
O-92
[74]
O-A2
[82]
O-B2
[90]
O-C2
[98]
O-D2
[106]
O-E2
[114]
O-F2
[122]
[1]
O-11
[9]
O-21
[17]
O-31
[25]
O-41
[33]
O-51
[41]
O-61
[49]
O-71
[57]
O-81
[65]
O-91
[73]
O-A1
[81]
O-B1
[89]
O-C1
[97]
O-D1
[105]
O-E1
[113]
O-F1
[121]
O-00
[0]
O-10
[8]
O-20
[16]
O-30
[24]
O-40
[32]
O-50
[40]
O-60
[48]
O-70
[56]
O-80
[64]
O-90
[72]
O-A0
[80]
O-B0
[88]
O-C0
[96]
O-D0
[104]
O-E0
[112]
O-F0
[120]
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).
The input circuit of this board is illustrated in Figure 3.5. The on-board opto-couplers isolate internal
input circuits from outside devices. The input channels are to be connected with current sinking output
signals. Driving these opto-isolated circuits require an additional power supply isolated from the PC
system. When a 12VDC external power is used, each input channel will consume about 2.6mA current;
when a 24VDC external power supply is selected, each input channel will consume about 5.1mA current.
Connecting a Switch
Com m on plus for inp ut (C NA : 23 p in)
I-00 (CN A : 7 pin)
Board
Switch
Input DataI-xxExternal Circuit
1LowClose
0HighOpen
Figure 3.6. An Example to use Input I00 <PIO-64/64L(PCI)>, <PI-128L(PCI)>
32
+
External
Power
Supp ly
12 to
24VD C
-
CONTEC CO., LTD.
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
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.
The output circuit of this board is illustrated in Figure 3.7. The signal output section is an opto- isolated,
open-collector output (current sink type). Driving the output section requires an external power supply.
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 over-current protector is provided for every eight output transistors. When the over-current
protector works, the output section of the board is temporarily disabled. If this is the case, turn of the
power to the PC and the external power supply and wait for a few minutes, then turn them on back.
CAUTION
When the PC is turned on, all output are reset to OFF.
O-80 (CNB : 7 pin)
Com m on Minu s for outp ut (C NB : 1 p in)
Whe n “1” is output to a relevant bit, the corres pon ding LE D com es on.
Whe n “0” is output to t he bit, in con tr ast, th e L ED g oes ou t.
LED
Figure 3.8. An Example to use Output O-80 <PIO-64/64L(PCI)>, <PO-128L(PCI)>
External
+
-
Power
Supply
12V to
24VD C
Example of Connection to TTL Level Input
External
Power S up pl y
1 2V t o 24VDC
+
-
Input Boa rd
Com m on plus
fo r ou tput
Outp ut
Com m on Minn us
fo r ou tput
VCC
2k Ω
TTL Le v el Input
GND
Figure 3.9. Connection Example of Output and TTL level Input Signal
<PIO-64/64L(PCI)>, <PO-128L(PCI)>
34
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
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 connect such boards to each
other.
External
Power Supply
12V to 24VDC
+
-
Outp ut Board
Com m on plus
fo r ou tput
Output(Sin k Type)
Com m on Minn us
fo r ou tput
Input Board
Com m on plus
fo r input
Input(Sink O utput Suppo rt)
Figure 3.10.Example of Connecting the Sink Type Output and Sink Output Support Input
This section describes the functions of the board.
Data I/O Function
Data Input
When input data is “ON”, “1” is input to the relevant bit.
When the input data is “OFF”, in contrast, “0” is input to the relevant bit
Data Output
When “1” is output to the relevant bit, the corresponding transistor is set to “ON”.
When “0” is output to the relevant bit, in contrast, the corresponding transistor is set to “OFF”.
CAUTION
When the PC is turned on, all output are reset to 0 (OFF).
Monitoring Output Data
The <PIO-64/64L(PCI)> and <PO-128L(PCI)> can read the state of the data currently being output
without affecting the output data.
<PIO-64/64L(PCI)>, <PI-128L(PCI)> are equipped with a digital filter function for input signals. This
function provides all input channels with a means of cutting chattering and noise.
Digital Filter Function Principle
To use this function, you must set a filter time. The function circuits will then check all input signals
synchronizing with the clock. A signal level, low or high, will be input only if the signal level remains
stable during the filter set time. Therefore, if a signal level changes faster than the filter set time, this
level change will be ignored and the previous signal level will be input.
Input Signal
Input Signal
Input to PC
Digi tal
Filter
Fi lter Se tting Tim e
Inva lid
Input to PC
Va lid
Figure 4.1. Digital Filter Function Principle
Set Digital Filter Time
Set the digital filter time to 0 to 24 (14h).
Setting the digital filter time to 0 disables digital filtering. It is set to 0 when the power is turned on.
Table 4.1. shows the relationships between digital filter time settings and the actual digital filter times.
-Writing a setting data other than a "0" will apply this filter function to all input channels. This
function cannot be applied to particular pins only but is applied to all input channels.
-Do not set a data more than 20(14H). Doing so may cause the board malfunctioning.
Digital Filter
Time
Setting Data
(n)
Digital Filter
Time
38
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 46
4. Functions
Interrupt Control Function
The <PIO-64/64L(PCI)> and <PO-128L(PCI)> can use up to 16 channels of input signals as interrupt
request signals. The input signals available as interrupt request signals are I-00 to I-17.
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, all of the interrupt edge select bits are set to 0 so that an interrupt
occurs when the input value changes from 0 to 1 (at the fall of the input signal from High to Low).
Clearing the Interrupt Status and Interrupt Signal
Interrupt status bits are used to identify the input signal bit being used for requesting an interrupt.
When an interrupt status is input, the interrupt request signal and the interrupt status are cleared
automatically.
CAUTION
-All of the interrupt status bits are set to 0 when the power is turned on.
-If an interrupt mask bit has been set to disable interrupts, the interrupt status bit is not set even when
the input signal changes its level.
The bundled CD-ROM “API Function Library Package API-PAC(W32) ” contains the functions that
provide the following features:
-Digital input/output of specified ports
-Hardware digital input/output of specified bits
-Hardware digital filtering that prevents chattering
For details, refer to the help file. The help file provides various items of information such as “Function
Reference”, “Sample Programs” , and “FAQs”. Use them for program development and troubleshooting.
Accessing the Help File
(1) Click on the [Start] button on the Windows taskbar.
(2) From the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” – “Dio” – “API-DIO
Sample programs have been prepared for specific basic applications.
To use each sample program, enter its driver number and group number set by API-TOOL Configuration
in the DrvNo and GrpNo fields.
Use these sample programs as references for program development and operation check.
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.
42
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 50
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 through a specified bit.
-Sample program 6:Services interrupts of a specified board.
-Sample program 7:Performs process control of a specified board.
-Sample program 8:Performs trigger monitoring of a specified board.
-Sample program 9:Inputs digital data through a specified port using BCD data.
-Sample program 10:Executes digital input (simple functions) at specified bits through a
specified port.
-Sample program 11:Services interrupts of a specified board (using an extended function).
-Sample program (Console) :Inputs/outputs digital data through a specified board.
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 “Add/Remove Programs” in the Control Panel.
(3) Select “CONTEC API-DIO(98/PC)xx” from the application list displayed, then click on the
[Add/Remove] button. Follow the on-screen instructions to uninstall the function libraries.
44
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
CONTEC CO., LTD.
Page 52
CD-ROM Directory Structure
\
| Autorun.exeInstaller Main Window
| Readmeu.htmVersion information on each API-TOOL
|– APIPAC
| |– AIO
| | |– Disk 1
| | |– Disk 2
| | |– ……
| | |– Disk N
| |– CNT
| |– ……
|– FreeSamples Sample programs in Delphi and Builder
| |– Builder 1.0
| |– ……
|– HELP HELP file
| |– Aio
| |– Cnt
| |– ……
|– INFOS-specific INF file folder(Windows 9X, 2000)
| |– WDM
| |– Win2000
| |– Win95
|– ManualReference Manual(PDF type)
|– ReadmeDriver readme file folder
|– ReleaseDriver file(For creation of a user-specific install program)
|– API_NT
|– API_W95
Interrupt level1 level use
Boards in one system Maximum of 16 boards can be install in a same system.
Isolated voltage250Vrms
External power
supply
Power consumption 5VDC 500mA(Max.)
Operating condition 0 to 50°C, 10 to 90%RH (No condensation)
Connecting distance 50m(Typ.)(depending on wiring environment)
PCI bus specification 32bit, 33MHz, 5V
Dimension (mm)176.41(L)×106.68(H)
Weight215g
* Data “0” and “1” correspond to the High and Low levels, respectively.
Interrupt level1 level use
Boards in one system Maximum of 16 boards can be install in a same system.
Isolated voltage250Vrms
External power
supply
Power consumption 5VDC 500mA(Max.)
Operating condition 0 to 50°C, 10 to 90%RH (No condensation)
Connecting distance 50m(Typ.)(depending on wiring environment)
PCI bus specification 32bit, 33MHz, 5V
Dimension (mm)176.41(L)×106.68(H)
Weight215g
* Data “0” and “1” correspond to the High and Low levels, respectively.
128 channels (16 of these 128 can be used as interrupt signal)
(16 channels share a positive common)
2.0mA(Min.)
0.16mA(Max.)
the INTA.
Either rising edge or falling edge of input signal can generate
interrupt.
12 to 24VDC(±10%)
6. About Hardware
Board Dimensions
176.41(L)
106.68(H)
The standard outside dimension (L) is
the distance from the end of the board
to the outer surface of the slot cover.
CONTEC CO., LTD.
[mm]
PIO-64/64L(PCI), PI-128L(PCI), PO-128L(PCI)
49
Page 57
6. About Hardware
PO-128L(PCI)
Table 6.3. Specifications < PO-128L(PCI)>
ItemSpecifications
TypeOpto-Isolated Open Collector Output (current sinking type)
Output
(Negative logic *)
Number of Channels 128 channels ( 16 channels share a negative common)
Voltage 35VDC(Max.)Rate
Current 100mA/channel (Max.)
Interrupt levelnot use
Boards in one system Maximum of 16 boards can be install in a same system.
Isolated voltage250Vrms
External power
supply
Power consumption 5VDC 500mA(Max.)
Operating condition 0 to 50°C, 10 to 90%RH (No condensation)
Connecting distance 50m(Typ.)(depending on wiring environment)
PCI bus specification 32bit, 33MHz, 5V
Dimension (mm)176.41(L)×106.68(H)
Weight215g
* Data “0” and “1” correspond to the High and Low levels, respectively.
0.5V or less (Output current ≤ 50mA),
1.0V or less (Output current ≤ 100mA)
12 to 24VDC(±10%)
Board Dimensions
176.41(L)
106.68(H)
The standard outside dimension (L) is
the distance from the end of the board
to the outer surface of the slot cover.
B-8F, Hua Tong Building, No. B19, Che Gong Zhuang West Road,
Hai Dian District, Beijing 100044, China
Tel: +86(10)8801-8228Fax : +86 (10)8801-8209
E-mail: ict@ict.com.cn
SHANGHAI CONTEC MICROELECTRONICS CORP.
No. 481 Gui Ping Road, Cao He Jing Hi-Tech Park Shanghai, 200233, China
Tel: +86 (21) 6485-1907Fax : +86 (21) 6485-0330
E-mail: contec@contec.com.cn