Digital i/o board with high-speed isolation for pci (68 pages)
Summary of Contents for Contec PIO-16/16L(CB)H
Page 1
PC-HELPER Digital I/O Card with Opto-Isolation for CardBus PIO-16/16L(CB)H User’s Guide CONTEC CO.,LTD.
Page 2
Product Configuration List - PC Card [PIO-16/16L(CB)H] …1 - Cable with isolation unit [PIO-16/16L(CB)H-BOX and CB-PM68/37] …1 - First step guide …1 - CD-ROM [API-PAC(W32) *1] …1 *1 The CD-ROM contains the driver software and User’s Guide (this guide)
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.
Executing the Installation ......................13 Step 2 Setting the Hardware ......................14 Part Names ..........................14 Connecting the PC Card to the Connector Cable ..............15 Insert the PC Card........................16 Cautions When Using Two or More PIO-16/16L(CB)H Cards..........17 PIO-16/16L(CB)H...
Page 5
Monitoring Output Data......................35 Digital Filter............................36 Digital Filter Function Principle....................36 Set Digital Filter Time ....................... 36 Interrupt Control Function........................ 37 Disabling/Enabling Interrupts....................37 Selecting the Interrupt Edge ...................... 37 Clearing the Interrupt Status and Interrupt Signal ..............37 PIO-16/16L(CB)H...
Page 6
Uninstalling the Driver Libraries ....................43 About Software for Linux......................... 44 Driver Software Install Procedure ..................... 44 Accessing the Help File ......................45 Using Sample Programs ......................45 Uninstalling the driver ....................... 45 ABOUT HARDWARE Hardware specification ........................47 Block Diagram..........................49 PIO-16/16L(CB)H...
PIO-16/16L(CB)H is a PC Card Standard compliant CardBus TYPE II size PC Card for input/output of digital signals. PIO-16/16L(CB)H can input and output digital signals at 12 to 24 VDC and can input and output up to 16 channels. Using the bundled Driver library [API-PAC(W32)], you can create Windows application software for this PC card 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 or PCB37PS optional cable is required separately. * Check the CONTEC’s Web site for more information on these options. PIO-16/16L(CB)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 products are warranted by CONTEC CO., LTD.
WARNING indicates a potentially hazardous situation which, if not avoided, could WARNING result in death or serious injury. CAUTION indicates a potentially hazardous situation which, if not avoided, may CAUTION result in minor or moderate injury or in property damage. PIO-16/16L(CB)H...
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.
(3) Store the package at room temperature at a place free from direct sunlight, moisture, shock, vibration, magnetism, and static electricity. Disposal When disposing of the product, follow the disposal procedures stipulated under the relevant laws and municipal ordinances. PIO-16/16L(CB)H...
Page 15
1. Before Using the Product PIO-16/16L(CB)H...
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 PIO-16/16L(CB)H...
Chapter 6 About Hardware For using the PC card under an OS other than Windows and Linux, see the following parts of this manual. This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 6 About Hardware PIO-16/16L(CB)H...
(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. CAUTION Before installing the software in Windows XP, 2000, or NT, log in as a user with administrator privileges. PIO-16/16L(CB)H...
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-16/16L(CB)H...
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”. You have now finished installing the software. PIO-16/16L(CB)H...
Step 2 Setting the Hardware The following explains how to insert the PC card into the PC. Part Names Figure 2.1 shows the names of each part of the PC card. Interface connector PIO-16/16L(CB)H-BOX PIO-16/16L(CB)H Vcc display LED Isolation circuit box PC card Connection cable Figure 2.1.
Connecting the PC Card to the Connection Cable Plug the PC card connecter of the isolation circuit box PIO-16/16L(CB)H-BOX into the PIO-16/16L(CB)H PC card. Plug the cable with its connector’ front surface (flat face) aligned with the top face of the PC card as shown in Figure 2.2.
Do not move the PC with the cable still plugged in. Do not apply any excessive force to the cable socket on the PC card such as by pulling on the cable connector. Do not place any objects on top of the cable connector. PIO-16/16L(CB)H...
If your PC has two TYPE II size PC card slots one on top of the other, you cannot use PIO-16/16L(CB)H PC cards in both slots at the same time. This is because of the shape of the cable connector.
PC cards are assigned to the remounted PC card. In this case, you must check the resource settings. Setting with the Found New Hardware Wizard (1) The "Found New Hardware Wizard" appears. Select "Install from a list or specific location [Advanced]" and click the "Next" button. PIO-16/16L(CB)H...
Page 26
(2) Specify that folder on the CD-ROM which contains the setup information (INF) file to register the PC card. * The name of the PC card you have just added is displayed. - PIO-16/16L(CB)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\PCCard...
Page 27
Windows Logo testing, and it can be ignored without developing any problem with the operation of the PC card. In this case, click on the [Continue Anyway] button. * The name of the PC card you have just added is displayed. - PIO-16/16L(CB)H You have now finished installing the software. PIO-16/16L(CB)H...
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 the hardware automatically.
GROUP 3 GROUP 2 6 5 4 3 2 1 0 7 6 5 4 POWER Optional cable PCB37PS-xx External power supply 12 to 24VDC To connect a device other than the Check Mate, see Chapter 3 “External Connection”. PIO-16/16L(CB)H...
Select the PC card in the API-TOOL Configuration windows, then run the Diagnosis Program. Run as the following screen. * The name of the PC card you have just added is displayed. * The name of the PC card you have just added is displayed. - PIO-16/16L(CB)H PIO-16/16L(CB)H...
Page 31
* The name of the PC card you have just added is displayed. - PIO-16/16L(CB)H 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.
Page 32
Before executing diagnosis report output, unplug the cable from the PC card. * The name of the PC card you have just added is displayed. - PIO-16/16L(CB)H Click on [Show Diagnosis Report]. (2) A diagnosis report is displayed as shown below.
API-TOOL Configuration. Turn off the PC again, plug the PC card, and restart the OS. Let the OS detect the PC card and use API-TOOL Configuration to register PC card settings. If your problem cannot be resolved Contact your retailer. PIO-16/16L(CB)H...
Connect the positive side of the external power supply. (Input) Connect the positive side of the external power supply. (Output) Connect the negative side of the external power supply. (Output) N.C. This pin is left unconnected. Figure 3.2. Pin Assignments of Interface Connector PIO-16/16L(CB)H...
Note: I-xx and O-xx represent input and output signals, respectively, where [xx] indicates a logical bit. CAUTION The logical port and logical bit numbers are virtual port and bit numbers that enable programming independent of PC card I/O addresses or PC card types. For details, refer to API-DIO HELP available after installing API-PAC(W32). PIO-16/16L(CB)H...
* Input pin represents I-xx. Figure 3.3. Input Circuit The input circuits of interface blocks of the PIO-16/16L(CB)H is illustrated in Figure 3.3. The signal inputs are isolated by opto-couplers (ready to accept current sinking output signals). The PC card therefore requires an external power supply to drive the inputs. The power requirement for each input pin is about 5.1 mA at 24 VDC (about 2.6 mA at 12 VDC).
* Output pin reprezents O-xx Figure 3.5. Output Circuit The output circuits of interface blocks of the PIO-16/16L(CB)H is illustrated in Figure 3.5. The signal output section is an opto-coupler isolated, open-collector output (current sink type). Driving the output section requires an external power supply.
Figure 3.6. An Example to use Output O-20 Example of Connection to TTL Level Input External power supply 12 to 24VDC Input card Output plus common 2kΩ Output TTL level input Output minus common Figure 3.7. Connection Example of Output and TTL level Input Signal PIO-16/16L(CB)H...
12 to 24VDC Output board Input card Input plus common Output plus common Output (sink type) Input (Sink output acceptable) Output minus common Figure 3.8. Example of Connecting the Sink Type Output and Sink Output Support Input PIO-16/16L(CB)H...
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-16/16L(CB)H can read the state of the data currently being output without affecting the output data. PIO-16/16L(CB)H...
4. Function Digital Filter Using this feature, the PIO-16/16L(CB)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...
4. Function Interrupt Control Function The PIO-16/16L(CB)H can use all of the input signals as interrupt request signals. The PC card can generate an interrupt request signal to the PC when the input signal changes from High to Low or from Low to High.
| ––INF Each INF file for OS |––WDM |––Win2000 |––Win95 |––linux Linux driver file |––cnt |––dio |––…… | ––Readme Readme file for each driver | ––Release Driver file on each API-TOOL |––API_NT (For creation of a user-specific install program) |––API_W95 PIO-16/16L(CB)H...
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/16L(CB)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-16/16L(CB)H...
Page 49
Executes digital input (simple functions) at specified bits through a specified port. -Sample program 11 Services interrupts of a specified PC card (using an extended function). -Sample program (Console): Inputs/outputs digital data through a specified port. [Sample program 1] [Sample program 2] [Sample program 5] [Sample program 9] PIO-16/16L(CB)H...
(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/16L(CB)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-16/16L(CB)H...
Data “0” and “1” correspond to the High and Low levels, respectively. On PCs with two TYPE II size PC card slots arranged vertically, two PIO-16/16L(CB)H cards cannot be used in the two slots at the same time. This is due to the shape of the cable connectors.
Page 55
6. About Hardware PC card Dimensions 85.6mm 1.0m 87.0mm PC card Connection cable Isolation circuit box 5.0mm 9.0mm 24.0mm PIO-16/16L(CB)H...
Input Port 1 (8 points, Group 1) Control Circuits External Digital Optocoupler & Output Port 0 transistor (8 points, Group 2) External Digital Optocoupler & Output Port 1 transistor (8 points, Group 3) Interrupt Control PIO-16/16L(CB)H Figure 6.1. Block Diagram PIO-16/16L(CB)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. [08062004] [08062004] Management No. A-46-900 Parts No. LYDY411...
Need help?
Do you have a question about the PIO-16/16L(CB)H and is the answer not in the manual?
Questions and answers