Digital i/o board with opto-isolation for pci
pio-32/32l(pci)h
digital input board with opto-isolation for pci
pi-64l(pci)h
digital output board with opto-isolation for pci
po-64l(pci)h
Digital i/o board with opto-isolation for pci, digital input board with opto-isolation for pci, digital output board with opto-isolation for pci (71 pages)
High-speed gpib communication board
for pci express (63 pages)
Summary of Contents for Contec PI-64L Series
Page 1
PC-HELPER Digital I/O Board with Opto-Isolation for PCI PIO-32/32L(PCI)H Digital Input Board with Opto-Isolation for PCI PI-64L(PCI)H Digital Output Board with Opto-Isolation for PCI PO-64L(PCI)H User’s Guide CONTEC CO.,LTD.
Page 2
Check Your Package Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following list, that your package is complete. If you discover damaged or missing items, contact your retailer. Product Configuration List - Board (One of the following) [PIO-32/32L(PCI)H, PI-64L(PCI)H, or PO-64L(PCI)H] …1...
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.
Table of Contents Check Your Package..........................i Copyright ............................ii Trademarks ............................ii Table of Contents..........................iii BEFORE USING THE PRODUCT About the Board..........................1 Features ............................1 Support Software ......................... 3 Cable & Connector (Option) ...................... 4 Accessories (Option) ........................4 Customer Support ..........................
Page 5
Turning on the PC........................19 When Using API-DIO(WDM) ...................... 19 When Using API-DIO(98/PC) ...................... 22 Step 4 Initializing the Software ......................25 When Using API-DIO(WDM) ....................25 When Using API-DIO(98/PC) ....................27 Updating the Settings......................... 27 Step 5 Checking Operations with the Diagnosis Program ............... 28 What is the Diagnosis Program?....................
Page 6
CD-ROM Directory Structure ......................49 About Software for Windows......................50 Accessing the Help File ......................50 Using Sample Programs ......................50 Uninstalling the Driver Libraries ....................52 About Software for Linux......................... 53 Driver Software Install Procedure ..................... 53 Accessing the Help File ......................54 Using Sample Programs ......................
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 product is a PCI bus-compliant interface board used to provide a digital signal I/O function on a PC. This product can input and output digital signals at 12 - 24VDC.
Page 9
1. Before Using the Product - Windows/Linux compatible driver libraries are attached. Using the attached driver library API-PAC(W32) makes it possible to create applications of Windows/Linux. In addition, a diagnostic program by which the operations of hardware can be checked is provided.
Visual Basic, Visual C++, Visual C#, Delphi, C++ Builder You can download the updated version from the CONTEC’s Web site (http://www.contec.com/apipac/). For more details on the supported OS, applicable language and new information, please visit the CONTEC’s Web site. Linux version of digital I/O driver API-DIO(LNX)
*3 Option cable PCB96P or PCB96PS, and the cable for 37-pin D-SUB are required separately. *4 “Spring-up” type terminal is used to prevent terminal screws from falling off. * Check the CONTEC’s Web site for more information on these options. PIO-32/32L(PCI)H, PI-64L(PCI)H, PO-64L(PCI)H...
You can download updated driver software and differential files as well as sample programs available in several languages. Note! For product information Contact your retailer if you have any technical question about a CONTEC product or need its price, delivery time, or estimate information. Limited Three-Years Warranty CONTEC Interface boards are warranted by CONTEC CO., LTD.
1. Before Using the Product Safety Precautions Understand the following definitions and precautions to use the product safely. Safety Information This document provides safety information using the following symbols to prevent accidents resulting in injury or death and the destruction of equipment and resources. Understand the meanings of these labels to operate the equipment safely.
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.
1. Before Using the Product Environment Use this product in the following environment. If used in an unauthorized environment, the board may overheat, malfunction, or cause a failure. Operating temperature 0 - 50°C Humidity 10 - 90%RH (No condensation) Corrosive gases None Floating dust particles Not to be excessive...
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...
2. Setup Using the Board under an OS Other than Windows For using the board under Linux, see the following parts of this manual. This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 5 About Software Chapter 6 About Hardware For using the board under an OS such as MS-DOS other than Windows, see the following parts of this manual.
2. Setup Step 1 Installing the Software This section describes how to install the Driver libraries. Before installing the hardware on your PC, install the Driver libraries from the bundled API-PAC(W32) CD-ROM. The following description assumes the operating system as Windows XP. Although some user interfaces are different depending on the OS used, the basic procedure is the same.
2. Setup Starting the Install Program (1) Load the CD-ROM [API-PAC(W32)] on your PC. (2) The API-PAC(W32) Installer window appears automatically. If the panel does not appear, run (CD-ROM drive letter):\AUTORUN.exe. (3) Click on the [Install Development or Execution Environment] button. * When using the Windows Vista, driver is automatically installed.
2. Setup Select API-DIO(WDM) Selecting API-DIO(WDM) (1) The following dialog box appears to select “Driver to install” and “Install option”, “Usage of driver library”. (2) Select the "Advanced Digital I/O driver". (3) Click on the [Install] button. Clicking the [API-DIO] button displays detailed information about API-DIO(WDM) and API-DIO(98/PC).
2. Setup Select API-DIO(98/PC) Selecting API-DIO(98/PC) (1) The following dialog box appears to select “Driver to install” and “Install option”, “Usage of driver library”. (2) Select “Classic Digital I/O driver”. (3) Click on the [Install] button. Clicking on the [API-DIO] button displays detailed information on API-DIO(WDM), API-DIO(98/PC).
Page 22
2. Setup Executing the Installation (1) Follow the on-screen instructions to proceed to install. (2) When the required files have been copied, the “Perform a hardware setup now(API-TOOL Configuration)” and “Show readme file” check boxes are displayed. When you are installing the software or hardware for the first time: 1) Uncheck “Perform a hardware setup now”.
2. 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.
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.
2. Setup Plugging the Board (1) Before plugging the board, shut down the system, unplug the power code of your PC. (2) Remove the cover from the PC so that the board can be mounted. (3) Plug the board into an expansion slot. (4) Attach the board bracket to the PC with a screw.
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 Found New Hardware Wizard.
Page 27
2. Setup (2) When “Multimedia Controller” is displayed, select “Install from a list or specific location[Advanced]” and then specify that folder on the CD-ROM which contains the setup information (INF) file to register the board. When the model name of hardware is displayed, select “Install the software automatically [Recommended]”...
Page 28
2. Setup * The name of the board you have just added is displayed. - PIO-32/32L(PCI)H, - PI-64L(PCI)H, - PO-64L(PCI)H You have now finished installing the hardware. PIO-32/32L(PCI)H, PI-64L(PCI)H, PO-64L(PCI)H...
2. Setup When Using API-DIO(98/PC) (1) The “Found New Hardware Wizard” will be started. Select “No, not this time” and then click the “Next” button. (2) Select “Install from a list or specific location[Advanced]” and then click the “Next” button. PIO-32/32L(PCI)H, PI-64L(PCI)H, PO-64L(PCI)H...
Page 30
2. Setup (3) Specify that folder on the CD-ROM which contains the setup information (INF) file to register the board. * The name of the board you have just added is displayed. - PIO-32/32L(PCI)H, - PI-64L(PCI)H, - PO-64L(PCI)H Source folder The setup information (INF) file is contained in the following folder on the bundled CD-ROM.
Page 31
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.
- PIO-32/32L(PCI)H, - PI-64L(PCI)H, - PO-64L(PCI)H (2) The installed hardware appears under the CONTEC Devices node. Open the CONTEC Devices node and select the device you want to setup (the device name should appear highlighted). Click [Properties]. PIO-32/32L(PCI)H, PI-64L(PCI)H, PO-64L(PCI)H...
Page 33
2. Setup (3) The property page for the device opens. Enter the device name in the common settings tab page and then click [OK]. The device name you set here is used later when programming. The initial device name that appears is a default value. You can use this default name if you wish. Make sure that you do not use the same name for more than one device.
2. Setup When Using API-DIO(98/PC) (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 setting to registry…” from the “File” menu.
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.
2. Setup Using the Diagnosis Program Starting the Diagnosis Program for Use of API-DIO(WDM) Click the [Diagnosis] button on the device property page to start the diagnosis program. PIO-32/32L(PCI)H, PI-64L(PCI)H, PO-64L(PCI)H...
Page 37
2. Setup Starting the Diagnosis Program for Use of API-DIO(98/PC) Select the board in the API-TOOL Configuration windows, then run the Diagnosis Program. Follow the instructions on screen. * The name of the board you have just added is displayed. * The name of the board you have just added is displayed.
Page 38
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”...
Page 39
When it is API-DIO(WDM), file name to save the result is displayed. When it is API-DIO(98/PC), the result is saved to the folder in which to install (Program Files\CONTEC\API-PAC(W32)) by the text file (DioRep.txt) and then displayed. The Diagnosis Program performs “board presence/absence check”, “driver file test”, “board setting test”, and so on.
2. Setup Setup Troubleshooting Symptoms and Actions No output can be obtained. Use API-TOOL Configuration to check whether the board name setting is wrong. The board works with the Diagnosis Program but not with an application. The Diagnosis Program is coded with API-TOOL functions. As long as the board operates with the Diagnosis Program, it is to operate with other applications as well.
3. External Connection 3. External Connection This chapter describes the interface connectors on the board and the external I/O circuits. Check the information available here when connecting an external device. How to connect the connectors Connector shape The on-board interface connector (CN1) is used when connecting this product and the external devices. Interface connector (CN1) - Connector used PCR-E96LMD (mfd.
3. External Connection Connector Pin Assignment Pin Assignments of Interface Connector (CN1) <PIO-32/32L(PCI)H> [49] OP 6/7 IP 2/3 Common plus pin for Common plus pin for OP 6/7 IP 2/3 +6/+7 output ports +2/+3 intput ports O-77 I-37 O-76 I-36 O-75 I-35 O-74...
Page 44
3. External Connection Pin Assignments of Interface Connector (CN1) <PI-64L(PCI)H> [49] Common plus pin for Common plus pin for IP 6/7 IP 2/3 +2/+3 intput ports +6/+7 intput ports IP 6/7 IP 2/3 I-77 I-37* I-76 I-36* I-75 I-35* I-74 I-34* +7 port (input) +3 port (input)
Page 45
3. External Connection Pin Assignments of Interface Connector (CN1) <PO-64L(PCI)H> [49] Common plus pin for Common plus pin for OP 6/7 OP 2/3 +6/+7 output ports +2/+3 output ports OP 6/7 OP 2/3 O-77 O-37 O-76 O-36 O-75 O-35 O-74 O-34 +7 port (output) +3 port (output)
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/32L(PCI)H Table 3.1. Logical Ports, Logical Bits, and Connector Signal Pins <PIO-32/32L(PCI)H> I-07 I-06 I-05...
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 Board External device...
3. External Connection Output Circuit 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 External device...
3. External Connection Connection to the LED Output plus common (CN1 : B19pin) External 5.1kΩ power supply 12 - 24VDC O-40 (CN1 : B03pin) Output minus common (CN1 : B01pin) When "1" is output to a relevant bit, the corresponding LED comes on. When "0"...
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.
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”...
4. Function Digital Filter Function Using this feature, the < PIO-32/32L(PCI)H > and < PI-64L(PCI)H > can apply a digital filter to every input pin, thereby preventing wrong recognition of input signals from being affected by noise or chattering. Digital Filter Function Principle The digital filter checks the input signal level during the sampling time of the clock signal.
4. Function Interrupt Control Function The PIO-32/32L(PCI)H can use all of the input signals as interrupt request signals. The <PI-64L(PCI)> can use up to 32 channels of input signals as interrupt request signals. The input signals available as interrupt request signals are I-00 - I-37. 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.
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.
5. About Software 5. About Software CD-ROM Directory Structure |– Autorun.exe Installer Main Window | Readmej.html Version information on each API-TOOL (Japanese) | Readmeu.html Version information on each API-TOOL (English) |–––APIPAC Each installer |––AIO |––DISK1 |––DISK2 |––…… |––DISKN |––AioWdm |––CNT |––DIO |––……...
Running a Sample Program (1) Click on the [Start] button on the Windows taskbar. (2) For the API-DIO(WDM), from the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” – “DIOWDM” – “SAMPLE…”. (3) For the API-DIO(98/PC), from the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” –...
Page 58
5. About Software Sample Programs – Examples API-DIO(WDM) sample program Simple I/O sample program : Input digital data through a specified port. Multi ports/bits I/O sample program : Input digital data through a specified multi ports/bits. Trigger monitoring sample program : Monitoring rising/falling trigger through a specified board.
(1) Click on the [Start] button on the Windows taskbar. From the Start Menu, select “Control Panel”. (2) Double-click on “Add or Remove Programs” in the Control Panel. (3) For use of API-DIO(WDM), select “CONTEC API-DIO(WDM) driver” and “CONTEC API-DIO(WDM) VerX.XX (Develop)” from the application list displayed.
# 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...
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. PIO-32/32L(PCI)H, PI-64L(PCI)H, PO-64L(PCI)H...
This chapter provides hardware specifications and hardware-related supplementary information. For detailed technical information For further detailed technical information (“Technical Reference” including the information such as an I/O map, configuration register, etc.), visit the Contec's web site (http://www.contec.com/support/) to call for it. Hardware specification PIO-32/32L(PCI)H Table 6.1.
Page 63
6. About Hardware Table 6.1. Specification < PIO-32/32L(PCI)H> <2/2> Item Specification Common Power consumption 5VDC 250mA (Max.) Operating condition 0 - 50°C, 10 - 90%RH(No condensation) Allowable distance of Approx. 50m (depending on wiring environment) signal extension PCI bus specification 32bit, 33MHz, Universal key shapes supported *2 Dimension (mm) 176.41(L) x 105.68(H)
Page 64
6. About Hardware PI-64L(PCI)H Table 6.2. Specification < PI-64L(PCI)H> Item Specification Input Input format Opto-coupler isolated input (Compatible with current sink output)(Negative logic *1) Number of input 64 channels (32 channels available for interrupts) (One common power supply per 16 signal channels channels) Input resistance...
Page 65
6. About Hardware PO-64L(PCI)H Table 6.3. Specification < PO-64L(PCI)H> Item Specification Output Output format Opto-coupler isolated open-collector output (current sink type)(Negative logic *1) Number of output 64 channels(One common power supply per 16 channels) signal channels Output Output 35VDC (Max.) voltage rating Output...
6. About Hardware Block Diagram PIO-32/32L(PCI)H Input Port 0 Opto- coupler (8 channels, Group 0) Input Port 1 Opto- coupler (8 channels, Group 1) Input Port 2 Opto- coupler (8 channels, Group 2) Input Port 3 Opto- coupler (8 channels, Group 3) Control Circuits Opto-...
Page 67
6. About Hardware PI-64L(PCI)H Input Port0 Opto- coupler (8 channels, Group 0) Input Port1 Opto- coupler (8 channels, Group 1) Input Port2 Opto- coupler (8 channels, Group 2) Input Port3 Opto- coupler (8 channels, Group 3) Control Circuits Input Port4 Opto- coupler (8 channels, Group 4)
Page 68
6. About Hardware PO-64L(PCI)H Output Port 0 Opto-coupler & (8 channels, Group 0) Transistors Output Port 1 Opto-coupler & (8 channels, Group 1) Transistors Opto-coupler Output Port 2 & (8 channels, Group 2) Transistors Opto-coupler Output Port 3 & (8 channels, Group 3) Transistors Control Circuits...
6. About Hardware Differences between the PIO-32/32L(PCI)H and PIO-32/32L(PCI) The PIO-32/32L(PCI)H is connector-pin compatible with the conventional PIO-32/32L(PCI) but has the following differences from it: (1) Different in the number of input signals available to interrupt requests PIO-32/32L(PCI)H : All of 32 channels PIO-32/32L(PCI) : 4 channels (2) Different in the expression to calculate the digital filter time (n: setting value)
6. About Hardware Differences between the PO-64L(PCI)H and PO-64L(PCI) The PO-64L(PCI)H is connector-pin compatible with the conventional PO-64L(PCI) but has the following differences from it: (1) Protective elements provided for outputs PO-64L(PCI)H : Surge protector: Zener diode PO-64L(PCI) : Nothing (2) Different in interrupt level resource allocation PO-64L(PCI)H : Automatically allocates on interrupt level.
Page 71
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/ No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. [09032007] [04112003] Management No. A-46-736 [09032007_rev4] Parts No. LYCB522...
Need help?
Do you have a question about the PI-64L Series and is the answer not in the manual?
Questions and answers