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 (71 pages)
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...
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 .......................... 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......................
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.
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).
*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...
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.
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 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.
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...
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 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...
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. 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 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.
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.
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 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.
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].
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.
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.
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.
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.
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...
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 driver 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 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.
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.
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 |––……...
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...
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.
(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...
# 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/32H(PCI)H...
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...