Contec PIO-32 User Manual

Contec PIO-32 User Manual

Digital i/o board with opto-isolation for pci
Hide thumbs Also See for PIO-32:
Table of Contents

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIO-32 and is the answer not in the manual?

Questions and answers

Summary of Contents for Contec PIO-32

  • Page 1 PC-HELPER Digital I/O Board with Opto-Isolation for PCI PIO-32/32B(PCI)V User’s Guide CONTEC CO.,LTD.
  • Page 2: Check Your Package

    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...
  • 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

    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...
  • Page 7 PIO-32/32B(PCI)V...
  • Page 8: Before Using The Product

    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++.
  • Page 9: Support Software

    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).
  • Page 10: Cable & Connector (Option)

    Distribution Shield Cable with 96-Pin Half-Pitch Connector (96Pin→37Pin x 2) : PCB96WS-1.5P (1.5m) : PCB96WS-3P (3m) : PCB96WS-5P (5m) Distribution Flat Cable with 96-Pin Half-Pitch Connector (96Pin→37Pin x 2) : PCB96W-1.5 (1.5m) : PCB96W-3 (3m) : PCB96W-5 (5m) Half Pitch 96-Pin Female Connector Set (5 Pieces) : CN5-H96F PIO-32/32B(PCI)V...
  • 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/32B(PCI)V...
  • 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 Interface boards are warranted by CONTEC CO., LTD.
  • Page 13: Safety Precautions

    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...
  • 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

    (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...
  • Page 16: Setup

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

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

    (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...
  • 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/32B(PCI)V...
  • Page 20: Executing The Installation

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

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

    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...
  • Page 23: Selecting Power Supply

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

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

    (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...
  • Page 28: Step 4 Initializing The Software

    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.
  • Page 29: Step 5 Checking Operations With The Diagnosis Program

    GROUP 7 GROUP 6 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 ACK STB POWER Optional cable PCB96PS-xxP To connect a device other than the Check Mate, refer Chapter 3 “External Connection”. PIO-32/32B(PCI)V...
  • Page 30: Using The Diagnosis Program

    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.
  • Page 33: Setup Troubleshooting

    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...
  • Page 34: External Connection

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

    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...
  • Page 37: 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). 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...
  • Page 38: Connecting Input Signals

    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.
  • Page 39: Connecting A Switch

    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...
  • Page 40: Connecting Output Signals

    * 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.
  • Page 41: Connection To The Led

    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...
  • Page 42: Connecting The Sink Type Output And Sink Output Support Input

    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...
  • Page 43 3. External Connection PIO-32/32B(PCI)V...
  • Page 44: Function

    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...
  • Page 45: Digital Filter

    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...
  • Page 46: Interrupt Control Function

    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.
  • Page 47: Clearing The Interrupt Status And Interrupt Signal

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

    |––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 | ––UsersGuide Hardware User's Guide(PDF files) PIO-32/32B(PCI)V...
  • Page 49: 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/32B(PCI)V...
  • Page 50: 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/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...
  • Page 52: Uninstalling The Driver Libraries

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

    6. About Hardware About Hardware This chapter provides hardware specifications and hardware-related supplementary information. Hardware specification Table 6.1. Specification < PIO-32/32B(PCI)V > < 1 /2 > Item Specification Input Input format Opto-isolated input (Compatible with current sink output)(Negative logic *1)
  • Page 57 6. About Hardware Table 6.1. Specification < PIO-32/32B(PCI)V> <2/2> Item Specification Common Power consumption 5VDC 200mA(Max.) (Using the external power) 5VDC 1050mA(Max.)(Using the internal power) Operating condition 0 - 50 ° C, 10 - 90%RH(No condensation) Allowable distance Approx. 50m (depending on wiring environment)
  • Page 58: Block Diagram

    (8 channels, Group 5) Transistors Opto- External Digital coupler Output Port2 & (8 channels, Group 6) Transistors Interrupt Control Circuit Opto- External Digital coupler Output Port3 & (8 channels, Group 7) Transistors PIO-32/32B(PCI)V Figure 6.1. Block Diagram < PIO-32/32B(PCI)V> PIO-32/32B(PCI)V...
  • Page 59: Differences Between The Pio-32/32B(Pci)V And Pio-32/32B(Pci)H

    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...

This manual is also suitable for:

Pio-32b(pci)v

Table of Contents