background image

 

2. Setup  

 

 

 

PIO-16/16RL(PCI)H 

9

 

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 

programs for the board using the bundled CD-ROM “Driver Library API-PAC(W32)”. 

Taking the following steps sets up the software and hardware.  You can use the diagnosis program later 
to check whether the software and hardware function normally. 

 

Step 1 Installing the Software 

 

Step 2 Setting the Hardware 

 

Step 3 Installing the Hardware 

 

Step 4 Initializing the Software 

 

Step 5 Checking Operations with the Diagnosis Program 

If Setup fails to be performed normally, see the “Setup Troubleshooting” section at the end of this 
chapter. 

Using the Board under Windows 

Using Software Other than the Driver Library API-PAC(W32) 

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 

Summary of Contents for PIO-16/16RL(PCI)H

Page 1: ...PC HELPER Reverse Common Digital I O Board with Opto Isolation PIO 16 16RL PCI H User s Guide CONTEC CO LTD ...

Page 2: ... 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 16RL PCI H 1 First step guide 1 CD ROM 1 API PAC W32 1 1 The CD ROM contains the driver software and User s Guide this guide CD ROM API PAC W32 Board First step guide ...

Page 3: ...e without notice All relevant issues have been considered in the preparation of this document Should you notice an omission or any questionable item in this document please feel free to notify CONTEC CO LTD Regardless of the foregoing statement CONTEC assumes no responsibility for any errors that may appear in this document or for results obtained by the user as a result of using this product Trad...

Page 4: ...utions 6 Environment 7 Inspection 7 Storage 7 Disposal 7 2 SETUP 9 What is Setup 9 Using the Board under Windows Using the Driver Library API PAC W32 9 Using the Board under Windows Using Software Other than the Driver Library API PAC W32 9 Using the Board under an OS Other than Windows 10 Step 1 Installing the Software 11 About the driver to be used 11 Starting the Install Program 12 Select API D...

Page 5: ...ting a Device to a Connector 35 Connector Pin Assignment 36 Relationships between API PAC W32 Logical Ports Bits and Connector Signal Pins 37 Connecting Input Signals 38 Input Circuit 38 Connecting a Switch 38 Connecting Output Signals 39 Output Circuit 39 Connection to the LED 40 4 FUNCTION 41 Data I O Function 41 Data Input 41 Data Output 41 Monitoring Output Data 41 Digital Filter Function 42 D...

Page 6: ...rograms 46 Uninstalling the Driver Libraries 48 About Software for Linux 51 Driver Software Install Procedure 51 Accessing the Help File 52 Using Sample Programs 52 Uninstalling the driver 52 6 ABOUT HARDWARE 53 For detailed technical information 53 Hardware specification 53 Block Diagram 55 ...

Page 7: ...vi PIO 16 16RL PCI H ...

Page 8: ...AC 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 Features A different external power supply can be used for each common pin as it is shared by 16 channels The PCI bus personal computer and the I O interface are isolated from each other by an opto coupler offering good noise immuni...

Page 9: ...isit the CONTEC s Web site Linux version of digital I O driver API DIO LNX Stored on the bundled CD ROM driver library API PAC W32 The API DIO LNX is the Linux version driver software which provides device drivers modules by shared library and kernel version Various sample programs of gcc are provided Operating environment OS RedHatLinux TurboLinux For details on supported distributions refer to H...

Page 10: ...7P 3 3m PCA37P 5 5m Shelded Cable with a 37 Pin D SUB Connector PCA37PS 0 5P 0 5m PCA37PS 1 5P 1 5m PCA37PS 3P 3m PCA37PS 5P 5m D SUB37P Male Connector Set 5 Pieces CN5 D37M Accessories Option Screw Terminal M3 x 37P EPD 37A 1 2 Screw Terminal M3 5 x 37P EPD 37 1 General Purpose Terminal M3 x 37P DTP 3C 1 Screw Terminal M2 5 x 37P DTP 4C 1 1 A PCB37P or PCB37PS optional cable is required separatel...

Page 11: ...harge only when this device is returned freight prepaid with a copy of the original invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office from which it was purchased This warranty is not applicable for scratches or normal wear but only for the electronic circuitry and original products The warranty is not applicable if the device has been tampered with or dam...

Page 12: ... destruction of equipment and resources Understand the meanings of these labels to operate the equipment safely DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury WARNING WARNING indicates a potentially hazardous situation which if not avoided could result in death or serious injury CAUTION CAUTION indicates a potentially hazardous...

Page 13: ...e the board to or from the expansion slot while the computer s power or expansion unit is turned on Otherwise the board may malfunction overheat or cause a failure Be sure that the personal computer power is turned off 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 The specifi...

Page 14: ...leads of the bus connector have no stain or corrosion Check that the board has no dust or foreign matter adhering Check that the bus connector of the board and its cable have been plugged correctly Storage When storing this product keep it in its original packing form 1 Put the board in the storage bag 2 Wrap it in the packing material then put it in the box 3 Store the package at room temperature...

Page 15: ...1 Before Using the Product 8 PIO 16 16RL PCI H ...

Page 16: ...are and hardware You can use the diagnosis program later to check whether the software and hardware function normally Step 1 Installing the Software Step 2 Setting the Hardware Step 3 Installing the Hardware Step 4 Initializing the Software Step 5 Checking Operations with the Diagnosis Program If Setup fails to be performed normally see the Setup Troubleshooting section at the end of this chapter ...

Page 17: ...f 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 This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 6 About Hardware ...

Page 18: ... Two digital I O drivers are available API DIO WDM and API DIO 98 PC API DIO WDM is a new driver to perform digital I O under Windows API DIO WDM was developed to improve the conventional product version of API DIO 98 PC in the ease of use and functionality It is advisable to use API DIO WDM for you to use an digital I O device API DIO WDM will support new OS and devices in the future but will not...

Page 19: ...s automatically If the panel does not appear run CD ROM drive letter AUTORUN exe 3 Click on the Install Development or Execution Environment button When using the Windows 7 Vista driver is automatically installed CAUTION Before installing the software in Windows 7 Vista XP Server 2003 and 2000 log in as a user with administrator privileges ...

Page 20: ...ption Usage of driver library 2 Select the Advanced Digital I O driver 3 Click on the Install button Clicking the API DIO button displays detailed information about API DIO WDM and API DIO 98 PC Run the installation 1 Complete the installation by following the instructions on the screen 2 The Readme file appears when the installation is complete ...

Page 21: ... 98 PC 1 The following dialog box appears to select Driver to install and Install option Usage of driver library 2 Select Classic Digital I O driver 3 Click on the Install button Clicking on the API DIO button displays detailed information on API DIO WDM API DIO 98 PC ...

Page 22: ...nd 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 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 API TOOL Configuration then go to Step 4 Initializing the Software You have now finished install...

Page 23: ...xpansion slot The board can be set up even with the factory defaults untouched You can change board settings later Parts of the Board and Factory Defaults Figure 2 1 shows the names of major parts on the board Note that the switch setting shown below is the factory default Interface connector CN1 Board ID setting switch SW1 BOARD ID SW1 0 1 2 3 4 5 6 7 9 A B C D E F PIO 16 16RL PCI H SW1 BOARD ID ...

Page 24: ...m 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 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 Board ID 0 Factory setting SW1 0 1 2 3 4 5 6 7 9 A B C D E F Figure 2 2 Board ID Settings SW1 ...

Page 25: ... PCI bus slot 3 3 V PCI bus slot A B Slit for 5 V PCI bus slot Slit for 3 3 V PCI bus slot CAUTION Do not touch the board s metal plated terminals edge connector with your hands Otherwise the board may malfunction overheat or cause a failure If the terminals are touched by someone s hands clean the terminals with industrial alcohol Do not install or remove the board to or from the slot while the c...

Page 26: ... addresses and interrupt level for the board can be allocated Before attempting to install the board first determine what PC resources are free to use The resources used by each PCI bus board do not depend on the location of the PCI bus slot or the board itself If you remove two or more boards that have already been installed and then remount one of them on the computer it is unknown that which on...

Page 27: ... the setup information INF file to register the board When the model name of hardware is displayed select Install the software automatically Recommended and then click on the Next button Source folder The setup information INF file is contained in the following folder on the bundled CD ROM Windows 7 64 32bit Vista 64 32bit XP 64 32bit Server 2003 64 32bit 2000 INF Wdm Dio INF Wdm Dio ...

Page 28: ...2 Setup PIO 16 16RL PCI H 21 You have now finished installing the hardware The name of the board you have just added is displayed PIO 16 16RL PCI H ...

Page 29: ... PCI H When Using API DIO 98 PC 1 The Found New Hardware Wizard will be started Select No not this time and then click the Next button 2 Select Install from a list or specific location Advanced and then click the Next button ...

Page 30: ...Source folder The setup information INF file is contained in the following folder on the bundled CD ROM Windows 7 32bit Vista 32bit XP 32bit Server 2003 32bit 2000 INF Win2000 Dio PCI Example of specifying the folder for use under Windows XP INF Win2000 Dio PCI The name of the board you have just added is displayed PIO 16 16RL PCI H ...

Page 31: ...s 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 In this case click on the Continue Anyway button You have now finished installing the hardware The name of the board you have just added is displayed PIO 16 16RL PCI H ...

Page 32: ...cedure described in Step 4 To change the device name follow the setting procedure shown below Setting the device name 1 Run Device Manager From My Computer Control Panel select System and then select the Device Manager tab You can also open Device Manager by right clicking on My Computer and selecting Properties 2 The installed hardware appears under the CONTEC Devices node Open the CONTEC Devices...

Page 33: ... name you set here is used later when programming The initial device name that appears is a default value You can use this default name if you wish Make sure that you do not use the same name for more than one device You have now finished installing the initial setting of Software The name of the board you have just added is displayed PIO 16 16RL PCI H ...

Page 34: ...elect Programs CONTEC API PAC W32 API TOOL Configuration 2 API TOOL Configuration detects hardware automatically The detected boards are listed Updating the Settings 1 Select Save settings to registry from the File menu You have now finished installing the initial setting of Software ...

Page 35: ...ard and driver software It can also be used as a simple checker when an external device is actually connected Using the Diagnosis Report feature reports the driver settings the presence or absence of the board I O status and interrupt status Check Method Connect the board to a remote device to text the input output and check the execution environment For this board prepare an external power supply...

Page 36: ...2 Setup PIO 16 16RL PCI H 29 Using the Diagnosis Program Starting the Diagnosis Program for Use of API DIO WDM Click the Diagnosis button on the device property page to start the diagnosis program ...

Page 37: ...se of API DIO 98 PC 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 PIO 16 16RL PCI H ...

Page 38: ...upt Displays the number of interrupts detected bit by bit 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 To use the function execution time measurement feature click on the Measurement Time button Enter the I O start port and the number of ports then press the measurement button...

Page 39: ...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 CAUTION Before executing diagnosis report output unplug the cable from the board 2 A diagnosis report is displayed as shown below Click on Show Diagnosis Report The name of the board you have just added is displayed PIO 16 16RL PCI H The name...

Page 40: ...rogram is coded with API TOOL functions As long as the board operates with the Diagnosis Program it is to operate with other applications as well In such cases review your program while paying attention to the following points Check the arguments to functions and their return values When the board is an isolated type it has a time lag for its response between the output by a function and the actua...

Page 41: ...2 Setup 34 PIO 16 16RL PCI H ...

Page 42: ...ternal device to this board plug the cable from the device into the interface connector shown below CN1 37 20 19 1 36 18 21 2 Interface connector CN1 Connector used 37 pin D SUB female connector DCLC J37SAF 20L9 mfd by JAE Thumb screw UNC 4 40 inch screw Applicable connectors 17JE 23370 02 D8C mfd by DDK Male FDCD 37P mfd by HIROSE Male DC 37P N mfd by JAE Male Please refer to chapter 1 for more i...

Page 43: ...port output 3 port output Common minus pin for 0 1 input ports Common plus pin for 2 3 output ports I 00 I 17 16 input signal pins Connect output signals from the external device to these pins O20 O37 16 output signal pins Connect these pins to the input signal pins of the external device IN 0 1 Connect the negative side of the external power supply These pins are common to 16 input signal pins OP...

Page 44: ...05 5 I 04 4 I 03 3 I 02 2 I 01 1 I 00 0 Input Logical Ports1 I 17 15 I 16 14 I 15 13 I 14 12 I 13 11 I 12 10 I 11 9 I 10 8 D7 D6 D5 D4 D3 D2 D1 D0 Output Logical Ports0 O 27 7 O 26 6 O 25 5 O 24 4 O 23 3 O 22 2 O 21 1 O 20 0 Output Logical Ports1 O 37 15 O 36 14 O 35 13 O 34 12 O 33 11 O 32 10 O 31 9 O 30 8 Note I xx represents an input signal O xx is an output signal xx represents a logical bits ...

Page 45: ... of interface blocks of the PIO 16 16RL PCI H are illustrated in Figure 3 3 The signal inputs are isolated by opto couplers corresponding to the current source output The board therefore requires an external power supply to drive the inputs The power requirement for each input pin is about 5 1mA at 24VDC about 2 6mA at 12VDC Connecting a Switch Input minus common CN1 1pin External power supply 12 ...

Page 46: ...al output section is an opto coupler isolated open collector output current source type Driving the output section requires an external power supply The rated output current per channel is 100mA at maximum A zener diode is connected to the output transistor for protection from surge voltages A PolySwitch based overcurrent protector is provided for every eight output transistors When the overcurren...

Page 47: ...e LED O 20 CN1 21pin Output plus common CN1 37pin External power supply 12 24VDC 5 1kΩ LED Board side When outputting 1 to the corresponding bit LED is ON When outputting 0 to the corresponding bit by contrast LED is off Figure 3 6 An Example to use Output O 20 ...

Page 48: ...ut data is ON 1 is input to the relevant bit When the input data is OFF in contrast 0 is input to the relevant bit Data Output When 1 is output to the relevant bit the corresponding transistor is set to ON 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 16RL ...

Page 49: ...e digital filter time to 0 20 14h Setting the digital filter time to 0 disables digital filtering It is set to 0 when the power is turned on Figure 4 2 shows the relationships between the digital filter time and the setting data Digital Filter Time sec 2n 8 x 106 n setting data 0 20 Setting Data n Digital Filter Time Setting Data n Digital Filter Time Setting Data n Digital Filter Time 0 00h The f...

Page 50: ... generate an iterrupt The input signal edge selection bit can be used to set the input logic for interruption bit by bit If you set an input signal edge selection bit to 0 an interrupt occurs when the input value to the corresponding bit changes from 0 to 1 at the fall of the input signal from High to Low If you set an input signal edge selection bit to 1 an interrupt occurs when the input value t...

Page 51: ...4 Function 44 PIO 16 16RL PCI H ...

Page 52: ...html Version information on each API TOOL English APIPAC Each installer AIO DISK1 DISK2 DISKN AioWdm CNT DIO HELP HELP file Aio Cnt 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 UsersGuide Hardware User s Guide PDF files ...

Page 53: ...sing the API DIO 98 PC from the Start Menu select Programs CONTEC API PAC W32 Dio API DIO HELP to display help information Using Sample Programs Sample programs have been prepared for specific basic applications For the API DIO WDM The sample programs are stored in Program Files CONTEC API PAC W32 DIOWDM Sample For the API DIO 98 PC The sample programs are stored in Program Files CONTEC API PAC W3...

Page 54: ...t 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 Sample program 5 Inputs outputs digital data from to a specified bit Sample program 6 Services interrupts of a specified board Sample program 7 Provides process control of a specified board Sample program 8 Performs trigger monitoring of a specifi...

Page 55: ...open Device Manager by right clicking on My Computer and selecting Properties 2 All of the hardware that uses the API TOOL WDM driver is registered under the CONTEC Devices tree Open the device tree select the hardware to uninstall and then right click the hardware From the popup menu select Uninstall 3 A dialog box opens asking you to confirm whether to uninstall Select the Delete the driver soft...

Page 56: ...se My Computer Control Panel Add and Remove Applications to uninstall the device driver Select Windows driver package CONTEC and then click Change Remove contains the driver category name caio ccnt cdio csmc etc Uninstall the development environment Use My Computer Control Panel Add and Remove Applications to uninstall the development environment Select CONTEC API WDM VerX XX development environme...

Page 57: ...nt environment and then click Add and Remove Applications contains the driver category name AIO CNT DIO SMC etc Uninstall procedure for Windows 98 98SecondEdition Uninstall the device driver Use My Computer Control Panel Add and Remove Applications to uninstall the device driver Select CONTEC API WDM driver and then click Add and Remove Applications contains the driver category name AIO CNT DIO SM...

Page 58: ... driver API DIO LNX is supplied as a compressed file linux dio cdioXXX tgz on the bundled API PAC W32 CD ROM Note XXX represents the driver version Mount the CD ROM as shown below copy the file to an arbitrary directory and decompress the file to install the driver For details on using the driver refer to readme txt and the help file in HTML format extracted by installation To install the driver l...

Page 59: ...mple Programs Sample programs have been prepared for specific basic applications 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 ...

Page 60: ...r of input signal channels 16 channels all available for interrupts One common Input resistance 4 7kΩ Input ON current 2 0mA or more Input OFF current 0 16mA or less Interrupt 16 interrupt input signals are arranged into a single output of interrupt signal INTA An interrupt is generated at the falling edge HIGH to LOW transition or rising edge LOW to HIGH transition Response time 200µsec within Ou...

Page 61: ... RH No condensation Allowable distance of signal extension Approx 50 m depending on wiring environment Bus specification PCI 32bit 33MHz Universal key shapes supported 2 Dimension mm 121 69 L x 105 68 H Weight 130g 1 Data 0 and 1 correspond to the Low and High levels respectively 2 This board requires power supply at 5 V from an expansion slot it does not work on a machine with a 3 3 V power suppl...

Page 62: ...s PCI BUS Opto coupler External Digital Input Port0 8 channels Group 0 External Digital Input Port1 8 channels Group 1 External Digital Output Port0 8 channels Group 2 External Digital Output Port1 8 channels Group 3 Opto coupler Opto coupler Transistors Opto coupler Transistors Figure 6 1 Block Diagram ...

Page 63: ...a 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 03302016 08052004 Management No A 46 894 03302016_rev6 Parts No LYDW854 ...

Reviews: