Table of Contents

Advertisement

Quick Links

Digital I/O Board
with Opto-Isolation for PCI
PIO-32/32H(PCI)H
User's Guide
CONTEC CO.,LTD.

Advertisement

Table of Contents
loading

Summary of Contents for Contec PIO-32H(PCI)H

  • Page 1 Digital I/O Board with Opto-Isolation for PCI PIO-32/32H(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 [PIO-32/32H(PCI)H] …1...
  • Page 3: Copyright

    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.
  • Page 4: Table Of Contents

    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 .......................... 2 Cable & Connector (Option) ..................... 3 Accessories (Option) .........................
  • Page 5 Step 3 Installing the Hardware ......................17 Turning on the PC ........................17 Setting with the Found New Hardware Wizard................17 Step 4 Initializing the Software ......................20 Invoking API-TOOL Configuration ................... 20 Updating the Settings ......................... 20 Step 5 Checking Operations with the Diagnosis Program ..............21 What is the Diagnosis Program? ....................
  • Page 6 ABOUT SOFTWARE CD-ROM Directory Structure ......................39 About Software for Windows ......................40 Accessing the Help File......................40 Using Sample Programs ......................41 Uninstalling the Driver Libraries ....................43 About Software for Linux ......................... 44 Driver Software Install Procedure ....................44 Accessing the Help File......................
  • Page 7 PIO-32/32H(PCI)H...
  • Page 8: Before Using The Product

    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. The board can input and output digital signals at 24 - 48VDC. PIO-32/32H(PCI)H can input and output up to 32 channels.
  • Page 9: Support Software

    This driver is used to control CONTEC digital I/O boards (PC cards) from within Linux. You can control CONTEC I/O boards easily using the shared library used by gcc and Kylix, the device driver (module) for each kernel version, and the board (PC card) configuration program (config).
  • Page 10: Cable & Connector (Option)

    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)
  • Page 11: Accessories (Option)

    *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. PIO-32/32H(PCI)H...
  • Page 12: Customer Support

    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 products are warranted by CONTEC CO., LTD.
  • Page 13: Safety Precautions

    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.
  • Page 14: Handling Precautions

    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.
  • Page 15: Environment

    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 Operating humidity Corrosive gases Floating dust particles Inspection Storage When storing this product, keep it in its original packing form. (1) Put the board in the storage bag.
  • Page 16: Setup

    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 software 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...
  • Page 17: Using The Board Under An Os Other Than Windows

    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.
  • Page 18: Step 1 Installing The Software

    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.
  • Page 19: Selecting The Digital I/O Driver

    2. Setup Selecting the Digital I/O Driver (1) The following dialog box appears to select “Driver Type” and “Install Type”. (2) Select “Digital I/O”. (3) Select “Driver, Help, etc… (Full install)”. (4) Click on the [Install] button. PIO-32/32H(PCI)H...
  • Page 20: Executing The Installation

    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”.
  • Page 21: Step 2 Setting The Hardware

    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.
  • Page 22: Setting The Board Id

    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.
  • Page 23: Plugging The Board

    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.
  • Page 24: Step 3 Installing The Hardware

    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 interrupt level to be used by the board. The process is referred to as installing the hardware. In the case of using two or more boards, make sure you install one by one with the Add New Hardware Wizard.
  • Page 25 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/32H(PCI)H 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...
  • Page 26 2. Setup 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.
  • Page 27: Step 4 Initializing The Software

    The driver library requires the initial setting to recognize the execution environment. It is called the initialization of the Driver library. Invoking API-TOOL Configuration (1) Open the Start Menu, then select “Programs” – “CONTEC API-PAC(W32)” – “API-TOOL Configuration”. (2) API-TOOL Configuration detects hardware automatically.
  • Page 28: Step 5 Checking Operations With The Diagnosis Program

    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.
  • Page 29: Using The Diagnosis Program

    2. Setup Using the Diagnosis Program Starting the Diagnosis Program 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 30 2. Setup Checking Digital Inputs and Outputs The main panel of the Diagnosis Program appears. You can check the current operation states of the board in the following boxes: “Input Port” : Displays input values bit by bit at fixed time intervals. “Output Port”...
  • Page 31 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.
  • Page 32: Setup Troubleshooting

    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].
  • Page 33 2. Setup PIO-32/32H(PCI)H...
  • Page 34: External Connection

    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 shown below.
  • Page 35: Connector Pin Assignment

    3. External Connection Connector Pin Assignment Figure 3.2. Pin Assignments of Interface Connector PIO-32/32H(PCI)H...
  • Page 36: Relationships Between Api-Pac(W32) Logical Ports/Bits And Connector Signal Pins

    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). Table 3.1. Logical Ports, Logical Bits, and Connector Signal Pins 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.
  • Page 37: Connecting Input Signals

    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 Figure 3.3.
  • Page 38: Connecting Output Signals

    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 Figure 3.5.
  • Page 39: Connection To The Led

    3. External Connection Connection to the LED Figure 3.6. An Example to use Output O-40 Example of Connection to TTL Level Input Figure 3.7. Connection Example of Output and TTL level Input Signal PIO-32/32H(PCI)H...
  • Page 40: Connecting The Sink Type Output And Sink Output Support Input

    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.
  • Page 41 3. External Connection PIO-32/32H(PCI)H...
  • Page 42: Function

    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 driver library. For details, refer to API-DIO HELP available after installation. Data I/O Function Data Input When input data is “ON”, “1”...
  • Page 43: Digital Filter

    4. Function Digital Filter Using this feature, the PIO-32/32H(PCI)H can apply a digital filter to every input pin, thereby 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 digital filter set time, the digital filter recognizes that signal as the input signal and changes the signal level of the PC.
  • Page 44: Interrupt Control Function

    4. Function Interrupt Control Function The PIO-32/32H(PCI)H 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 changes 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.
  • Page 45: Clearing The Interrupt Status And Interrupt Signal

    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.
  • Page 46: About Software

    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 |––……...
  • Page 47: About Software For Windows

    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 HELP” to display help information. PIO-32/32H(PCI)H...
  • Page 48: Using Sample Programs

    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. PIO-32/32H(PCI)H...
  • Page 49 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.
  • Page 50: Uninstalling The Driver Libraries

    (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. PIO-32/32H(PCI)H...
  • Page 51: About Software For Linux

    # 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...
  • Page 52: Accessing The Help File

    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/32H(PCI)H...
  • Page 53 5. About Software PIO-32/32H(PCI)H...
  • Page 54: About Hardware

    6. About Hardware 6. About Hardware This chapter provides hardware specifications and hardware-related supplementary information. Hardware specification Table 6.1. Specification < 1 / 2 > PIO-32/32H(PCI)H...
  • Page 55 6. About Hardware Table 6.1. Specification < 2 / 2 > Board Dimensions PIO-32/32H(PCI)H...
  • Page 56: Block Diagram

    6. About Hardware Block Diagram Figure 6.1. Block Diagram PIO-32/32H(PCI)H...
  • Page 57 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. [04012016] [08052004] Management No. A-46-891 [04012016_rev3] Parts No. LYDW822...

This manual is also suitable for:

Pio-32

Table of Contents