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)
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 - PIO-32/32B(PCI)V …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.
Selecting the Digital I/O Driver ....................12 Executing the Installation ......................13 Step 2 Setting the Hardware ......................14 Parts of the Board and Factory Defaults ................... 14 Setting the Board ID ........................15 Selecting Power Supply......................16 Plugging the Board ........................17 PIO-32/32B(PCI)V...
Page 5
Monitoring Output Data......................37 Digital Filter............................38 Digital Filter Function Principle....................38 Set Digital Filter Time ....................... 38 Interrupt Control Function........................ 39 Disabling/enabling Interrupts ....................39 Selecting the Interrupt Edge ...................... 39 Clearing the Interrupt Status and Interrupt Signal ..............40 PIO-32/32B(PCI)V...
Page 6
Driver Software Install Procedure ..................... 46 Accessing the Help File ......................47 Using Sample Programs ......................47 Uninstalling the driver ....................... 47 ABOUT HARDWARE Hardware specification ........................49 Block Diagram..........................51 Differences between the PIO-32/32B(PCI)V and PIO-32/32B(PCI)H ........... 52 PIO-32/32B(PCI)V...
It can be inputted by switch and relay. PIO-32/32B(PCI)V can input and output up to 32 channels. And this board is the equivalent of PIO-32/32B(PCI)H. For the detail, please refer to the chapter 6 Differences between PIO32/32B(PCI)H and PIO32/32B(PCI)V. Using the bundled driver library package [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 (cards) from within Linux. You can control CONTEC digital I/O boards easily using the shared library used by gcc, Kylix, the device driver (module) for each kernel version, and the board (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/32B(PCI)V...
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.
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-32/32B(PCI)V...
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-32/32B(PCI)V...
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-32/32B(PCI)V...
Chapter 6 About Hardware For using the board under an OS other than Windows, such as MS-DOS see the following parts of this manual. This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 6 About Hardware PIO-32/32B(PCI)V...
(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-32/32B(PCI)V...
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/32B(PCI)V...
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-32/32B(PCI)V...
Figure 2.1. shows the names of major parts on the board. Note that the switch setting shown below is the factory default. - Power supply select jumper (JP2 - JP9) JP2 - 9 PIO-32/32B(PCI)V BOARD ID - BOARD ID Setting Switch BOARD ID - Interface connector (CN1) Figure 2.1.
Setting Procedure To set the board ID, use the rotary switch on the board. Turn the SW1 knob to set the board ID as shown below. BOARD ID Factory setting: (Board ID= 0) Figure 2.2. Board ID Settings (SW1) PIO-32/32B(PCI)V...
+0 port (Input) +1 port (Input) +2 port (Input) +3 port (Input) +4 port (Output) +5 port (Output) +6 port (Output) +7 port (Output) * Factory setting Notes : These jumpers must be set in pairs. Figure 2.3. Power Supply Selecting PIO-32/32B(PCI)V...
Make sure that your PC or expansion unit can supply ample power to all the boards installed. Insufficiently energized boards could malfunction, overheat, or cause a failure. Power supply from the PCI bus slot at +5V is required. PIO-32/32B(PCI)V...
(1) The “Found New Hardware Wizard” will be started. Select “Install from a list or specific location[Advanced]”, then click on the [Next] button. If you are using Windows NT 4.0, the “Found New Hardware Wizard” is not started. Go to Step 4 “Initializing the Software”. PIO-32/32B(PCI)V...
Page 26
(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/32B(PCI)V 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...
Page 27
Windows Logo testing, and it can be ignored without developing any problem with the operation of the board. In this case, click on the [Continue Anyway] button. * The name of the board you have just added is displayed. - PIO-32/32B(PCI)V You have now finished installing the software. PIO-32/32B(PCI)V...
The API function 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 boards automatically.
Starting the Diagnosis Program Select the board in the API-TOOL Configuration windows, then run the Diagnosis Program. * The name of the board you have just added is displayed. * The name of the board you are testing is displayed - PIO-32/32B(PCI)V PIO-32/32B(PCI)V...
Page 31
* The name of the board you have just added is displayed. - PIO-32/32B(PCI)V 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 board. * The name of the board you have just added is displayed. - PIO-32/32B(PCI)V Click on [Show Diagnosis Report]. (2) A diagnosis report is displayed as shown below. * The name of the board you have tested is displayed.
Turn off the power to your PC, then unplug the board. Restart the OS and delete the board settings of API-TOOL Configuration. Turn off the PC again, plug the board, and restart the OS. Let the OS detect the board and use API-TOOL Configuration to register board settings. If your problem cannot be resolved Contact your retailer. PIO-32/32B(PCI)V...
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). Interface connector (CN1) Connector used PCR-E96LMD (mfd. by HONDA) Figure 3.1. Connecting the Interface Connector PIO-32/32B(PCI)V...
When the external power supply is selected, its negative side is connected to this pin. When the internal power supply is selected, this pin serves as the ground. These pins are common to 16 input signal pins. N.C. This pin is left unconnected. Figure 3.2. Pin Assignments of Interface Connector < PIO-32/32B(PCI)V > PIO-32/32B(PCI)V...
Page 36
Common ON 6/7 IN 0/1 Common ON 4/5 minus pin minus pin minus pin minus pin for +0/+1 for +2/+3 for +4/+5 for +6/+7 input ports input ports output ports output ports Figure 3.3. PCB96WS and CCB-96 Signal Assignments PIO-32/32B(PCI)V...
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/32B(PCI)V Table 3.1. Logical Ports, Logical Bits, and Connector Signal Pins <PIO-32/32B(PCI)V> I-07 I-06...
Figure 3.4. Input Circuit < PIO-32/32B(PCI)V > The input circuits of interface blocks of the PIO-32/32B(PCI)V are illustrated in Figure 3.4. The signal inputs are isolated by opto-couplers (ready to accept current sinking output signals). The board therefore requires an additional power supply isolated from the PC system to drive the photo-isolated circuits. The board offers you an on-board isolated 12VDC power supply in option.
Input minus common (CN1 : A01 pin) Switch When the switch is ON, the corresponding bit contains 1. When the switch is OFF, by contrast, the bit contains 0. Figure 3.5. An Example to use Input I00 < PIO-32/32B(PCI)V > PIO-32/32B(PCI)V...
* Output pin represents O-xx. Figure 3.6. Output Circuit <PIO-32/32B(PCI)V> The output circuits of interface blocks of the PIO-32/32B(PCI)V are illustrated in Figure 3.6. The signal output section is an opto-coupler isolated, open-collector output (current sink type). Driving the output section requires an additional power supply isolated from the PC system.
Example of Connection to TTL Level Input External powwer supply 12 - 24VDC Input board Output plus common 2kΩ Output TTL level input Output minus common Figure 3.8. Connection Example of Output and TTL level Input Signal < PIO-32/32B(PCI)V > PIO-32/32B(PCI)V...
12 - 24VDC Output board Input board Input plus common Output plus common Output (sink type) Input (Compatible with sink output) Output minus common Figure 3.9. Example of Connecting the Sink Type Output and Sink Output Support Input PIO-32/32B(PCI)V...
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-32/32B(PCI)V> can read the state of the data currently being output without affecting the output data. PIO-32/32B(PCI)V...
4. Function Digital Filter Using this feature, the PIO-32/32B(PCI)V 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...
Interrupt Control Function The PIO-32/32B(PCI)V 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 change from High to Low or from Low to High.
All of the interrupt status bits are set to 0 when the power is turned on. If an interrupt mask bit has been set to disable interrupts, the interrupt status bit is not set even when the input signal changes its level. PIO-32/32B(PCI)V...
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/32B(PCI)V...
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/32B(PCI)V...
Page 51
Executes digital input (simple functions) at specified bits through a specified port. -Sample program 11 Services interrupts of a specified board (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-32/32B(PCI)V...
“Control Panel”. (2) Double-click on “Install or Remove Programs and Windows components” in the Control Panel. (3) Select “CONTEC API-DIO(98/PC)xx” from the application list displayed, then click on the [Change/Remove] button. Follow the on-screen instructions to uninstall the function libraries.
# 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/32B(PCI)V...
PIO-32/32B(PCI)H : Nothing (4) Different in interrupt level resource allocation PIO-32/32B(PCI)V : Automatically allocates on interrupt level. PIO-32/32B(PCI)H : Uses a jumper switch to select whether to allocate interrupt levels. (5) Different in whether ASIC or not PIO-32/32B(PCI)V : Nothing...
Page 60
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. [04032006] [03242005] Management No. A-46-969 [04032006_rev2] Parts No. LYEN361...
Need help?
Do you have a question about the PIO-32 and is the answer not in the manual?
Questions and answers