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-16/16T(PCI)] …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)........................3 Customer Support............................ 4 Web Site ............................
Page 5
Turning on the PC ..........................17 Setting with the Add 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?....................21 Check Method..........................21 Using the Diagnosis Program......................22 Setup Troubleshooting...........................25 Symptoms and Actions........................25...
Page 6
ABOUT SOFTWARE CD-ROM Directory Structure ......................37 About Software for Windows ....................... 38 Accessing the Help File ......................... 38 Using Sample Programs......................... 39 Uninstalling the Driver Libraries....................41 About Software for Linux ........................42 Driver Software Install Procedure ....................42 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 PIO-16/16T(PCI) is a PCI bus-compliant interface board for input/output of TTL-level digital signals. This board can input and output up to 16 channels. Using the bundled driver library [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++.
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).
Termination Panel (M3) : DTP-3(PC) Terminal Unit for Cables : DTP-4(PC) Signal Monitor for Digital I/O : CM-32(PC)E *1 *1 PCB37P-1.5, PCB37PS-0.5P or PCB37PS-1.5P optional cable is required separately. * Check the CONTEC’s Web site for more information on these options. PIO-16/16T(PCI)
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 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 user’s guide 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 to 50°C Operating humidity 10 to 90%RH (No condensation) Corrosive gases None Floating dust particles...
Page 15
1. Before Using the Product PIO-16/16T(PCI)
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 user’s guide. 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 user’s guide.
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 Me. 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 API-DIO(98/PC)W95”. (3) Select “Driver, Help, etc… (Full install)”. (4) Click on the [Install] button. PIO-16/16T(PCI)
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 the PIO-16/16T(PCI), 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.
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-16/16T(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...
Page 26
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.
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 (CN1) 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 I-07 I-06 I-05...
3. External Connection Connecting Input Signals The Input circuits in the interface section of this board are illustrated in Figure 3.3. External digital signals given to signal inputs are TTL levels. The individual input signals are passed to the personal computer as active low signals.
3. External Connection Connecting Output Signals The Input circuits in the interface section of this board are illustrated in Figure 3.5. Signal outputs are open-collector outputs; individual output signals are sent to the external device as active low signals. Note that each signal output must be pulled up at the external device as it is not pulled up internally. Output Circuit External circuit Board...
3. External Connection Surge Voltage Countermeasures When a load that generates surge voltages and inrush currents, such as an induction load (relay coil) or an incandescent light bulb, is connected to the digital output, appropriate protection must be provided in order to prevent damage to the output stage or a malfunction due to noise.
4. Function 4. Function This section describes the features 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 (high level)”, in contrast, “0” is input to the relevant bit. Data Output When “1”...
4. Function Digital Filter Using this feature, the PIO-16/16T(PCI) 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 When jumper JP1 has been set "to use interrupts," the board can use up to four input signals as interrupt request signals. I-00 to I-03 can be used as interrupt request signals. The board can generate an interrupt request signal to the PC when the input signal change from High to Low or from Low to High.
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-16/16T(PCI)
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-16/16T(PCI)
Page 47
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-16/16T(PCI)
# 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 user’s guide 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-16/16T(PCI)
6. About Hardware 6. About Hardware This chapter provides hardware specifications and hardware-related supplementary information. Hardware specification Table 6.1. Specification Item Specification Input Input format Unisolated TTL-level input (Negative logic *1) 16 channels (4 channels can be used for interrupts.) Number of input channels 10k Ω...
6. About Hardware Block Diagram External digital input port 0 receiver (8 points, group 0) External digital input port 1 receiver (8 points, group 1) Control circuit External digital output port 0 driver (8 points, group 2) External digital output port 1 driver (8 points, group 3) Interrupt...
Page 54
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. [03112004] [12101998] Management No. A-41-957 [09062004_rev2] Parts No. LZH3031...
Need help?
Do you have a question about the PIO-16/16T(PCI) and is the answer not in the manual?
Questions and answers