background image

 

2. Setup 

 

 

 

DIO-1616T-PE, DI-32T-PE, DO-32T-PE 

19

 

Step 3 Installing the Hardware 

For using an extension board under Windows, you have to let the OS detect the I/O addresses and IRQ 

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 Found New 

Hardware Wizard. 

Turning on the PC 

Turn on the power to your PC. 

CAUTION

 

 

The board cannot be properly installed unless the resources (I/O 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 board do not depend on the location of the PCI Express 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 one of the sets of resources previously 

assigned to the two boards is assigned to the remounted board.    In this case, you must check the 

resource settings. 

 

When Using API-DIO(WDM) 

(1)  The “Found New Hardware Wizard” will be started. 

 

 

Select “No, not this time” and then click the “Next” button. 

Summary of Contents for DI-32T-PE

Page 1: ...PC HELPER Digital I O Board for PCI Express DIO 1616T PE Digital Input Board DI 32T PE Digital Output Board DO 32T PE User s Guide CONTEC CO LTD ...

Page 2: ...the following list that your package is complete If you discover damaged or missing items contact your retailer Product Configuration List Board One of the followings DIO 1616T PE DI 32T PE or DO 32T PE 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: ...ject to change 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...

Page 4: ...tion 6 Handling Precautions 7 Environment 8 Inspection 8 Storage 8 Disposal 8 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 Pr...

Page 5: ...ct the connectors 35 Connector shape 35 Connector Pin Assignment 36 Relationships between API PAC W32 Logical Ports Bits and Connector Signal Pins 38 Connecting Input Signals 40 Input Circuit 40 Connecting a Switch 40 Connecting Output Signals 41 Output Circuit 41 Connection to the LED 41 Surge Protection 42 A Protection Function of the 5V Outputs 42 4 FUNCTION 43 Data I O Function 43 Data Input 4...

Page 6: ...g the Help File 48 Using Sample Programs 48 Uninstalling the Driver Libraries 50 About Software for Linux 53 Driver Software Install Procedure 53 Accessing the Help File 54 Using Sample Programs 54 Uninstalling the driver 54 6 ABOUT HARDWARE 55 For detailed technical information 55 Hardware specification 56 Block Diagram 59 ...

Page 7: ...vi DIO 1616T PE DI 32T PE DO 32T PE ...

Page 8: ...TL level input and 16ch of unisolated open collector output whose response speed is 200nsec The output rating is max 30VDC 40mA per ch The DI 32T PE has the 32ch of unisolated TTL level input whose response speed is 200nsec The DO 32T PE has the 32ch of unisolated open collector output whose response speed is 200nsec The output rating is max 30VDC 40mA per ch You can use all of the input signals a...

Page 9: ...e provided The DI 32T PE The functions same with PCI compatible board DI 32T2 PCI are provided The DO 32T PE The functions same with PCI compatible board DO 32T2 PCI are provided In addition as there is compatibility in terms of connector shape and pin assignments it is easy to migrate from the existing system LabVIEW is supported by a plug in of dedicated library VI DAQ Using the dedicated librar...

Page 10: ...lease visit 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 ref...

Page 11: ...r at One End Mold Type PCA37PS 0 5P 1 5m PCA37PS 1 5P 1 5m D SUB37P Male Connector Set 5 Pieces CN5 D37M Accessories Option Screw Terminal Unit M3 x 37P EPD 37A 1 2 Screw Terminal Unit M3 5 x 37P EPD 37 1 General Purpose Terminal M3 x 37P DTP 3A 1 Screw Terminal M2 6 x 37P DTP 4A 1 Signal Monitor Output Accessory for Digital I O 32P CM 32 PC E 1 1 A PCB37P 1 5 or PCB37PS 0 5P 1 5P optional cable i...

Page 12: ... charge 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 d...

Page 13: ... and the 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 h...

Page 14: ...r remove the board to or from the extension slot while the computer s power is turned on And also do not connect the board and external device while the power is turned on Otherwise the board may malfunction overheat or cause a failure Be sure that the personal computer or the I O extension unit power is turned off Make sure that your PC or extension unit can supply ample power to all the boards i...

Page 15: ...bus connector of the board and its cable have been plugged correctly Check that the board has no dust or foreign matter adhering The gold plated leads of the bus connector have no stain or corrosion 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 and then put it in the box 3 Store the package at room temper...

Page 16: ... 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 thi...

Page 17: ...ng parts of 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 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 ...

Page 18: ... 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 support Windows NT 4 0 Windows 95 ISA bus Use API DIO 98 PC if your operating environment contains such an unsupported piece of software or hardware Check the fo...

Page 19: ...w appears 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 Vista driver is automatically installed CAUTION Before installing the software in Windows Vista XP Server 2003 2000 and NT log in as a user with administrator privileges ...

Page 20: ... Install option 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: ...ng API DIO 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: ...ation 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 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 ...

Page 23: ...o an extension 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 0 1 2 3 4 5 6 7 9 A B C D E F 8 SW1 BOARD ID BOARD ID SW1 37 20 19 1 36 18 21 2 Interface connector CN1 Board ID setting...

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

Page 25: ...nnector 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 computer s or expansion unit s power is turned on Otherwise the board may malfunction overheat or cause a failure Be sure that the personal computer power ...

Page 26: ... O 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 board do not depend on the location of the PCI Express 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 ...

Page 27: ...n the CD ROM which contains 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 Vista XP Server 2003 2000 INF Wdm Dio INF Wdm Dio ...

Page 28: ...2 Setup DIO 1616T PE DI 32T PE DO 32T PE 21 You have now finished installing the hardware The name of the board you have just added is displayed DIO 1616T PE DI 32T PE DO 32T PE ...

Page 29: ... PE DO 32T PE 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: ...er the board Source folder The setup information INF file is contained in the following folder on the bundled CD ROM Windows Vista XP Server 2003 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 DIO 1616T PE DI 32T PE DO 32T PE ...

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 DIO 1616T PE DI 32T PE DO 32T PE ...

Page 32: ...ting procedure 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...

Page 33: ...ttings tab page and then click OK The device 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 ...

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

Page 35: ...oard I O status and interrupt status Check Method Connect the board to a remote device to test the input output and check the execution environment For this board an external power supply is not required The Check Mate CM 32 PC E comes in handy when you check digital I O boards Check the board with the factor defaults untouched Connection diagram CM 32 PC E GROUP 0 7 6 5 4 3 2 1 0 GROUP 2 7 6 5 4 ...

Page 36: ...up DIO 1616T PE DI 32T PE DO 32T PE 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 DIO 1616T PE DI 32T PE DO 32T PE ...

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: ... which to install Program Files CONTEC API PAC W32 by the text file DioRep txt and then displayed 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...

Page 40: ...on 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 actual output Consider the execution intervals between functions The OS won t normally get started or detect the board Windows Vista Windows XP Server 2003 2000 Turn off the power to your PC then unplug th...

Page 41: ...2 Setup 34 DIO 1616T PE DI 32T PE DO 32T PE ...

Page 42: ...onnector CN1 is used when connecting this product and the external devices Connector used 37 Pin D SUB connector F female type DCLC J37SAF 20L9E mfd by JAE or equivalent to it Lock nut UNC 4 40 inch screws Applicable connector 17JE 23370 02 D8C CG mfd by DDK M male type FDCD 37P mfd by HIROSE M male type DC 37P NR mfd by JAE M male type CN1 37 20 19 1 36 18 21 2 Interface connector CN1 Please refe...

Page 43: ...This pin outputs power at 5V Max electrical current is 350mA GND This pin is connected to the slot s GND N C This pin is left unconnected Figure 3 2 Pin Assignments of Interface Connector CN1 DIO 1616T PE Pin Assignments of DI 32T PE Interface Connector CN1 5V Vcc 37 19 N C I 37 36 18 Vcc 5V I 36 35 17 I 17 I 35 34 16 I 16 I 34 33 15 I 15 I 33 32 14 I 14 I 32 31 13 I 13 I 31 30 12 I 12 3 port Inpu...

Page 44: ... port Output O 26 27 9 O 07 O 25 26 8 O 06 O 24 25 7 O 05 O 23 24 6 O 04 O 22 23 5 O 03 O 21 22 4 O 02 2 port Output O 20 21 3 O 01 Signal common GND 20 2 O 00 0 port Output 19 37 20 1 1 GND Signal common O 00 O 37 32 output signal pins Connect these pins to the input signal pins of the external device Vcc Output 5V Max electrical current is 350mA GND This pin is connected to GND in the slot N C T...

Page 45: ...rd I O addresses or board types For details refer to API DIO HELP available after installing API PAC W32 DIO 1616T PE Table 3 1 Logical Ports Logical Bits and Connector Signal Pins DIO 1616T PE D7 D6 D5 D4 D3 D2 D1 D0 論Input logical port 0 I 07 7 I 06 6 I 05 5 I 04 4 I 03 3 I 02 2 I 01 1 I 00 0 Input logical port 1 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 ...

Page 46: ... 31 I 36 30 I 35 29 I 34 28 I 33 27 I 32 26 I 31 25 I 30 24 Notes I xx represents an input signal xx represents the logical bit DO 32T PE Table 3 3 Logical Ports Logical Bits and Connector Signal Pins DO 32T PE D7 D6 D5 D4 D3 D2 D1 D0 Output logical port 0 O 07 7 O 06 6 O 05 5 O 04 4 O 03 3 O 02 2 O 01 1 O 00 0 Output logical port 1 O 17 15 O 16 14 O 15 13 O 14 12 O 13 11 O 12 10 O 11 9 O 10 8 Out...

Page 47: ...e 3 5 External digital signals given to signal inputs are TTL levels The individual input signals are passed to the personal computer as negative logic signals As each of the signal inputs is pulled up internally the output of a relay contact or semiconductor switch can be connected directly between the signal input and the signal common pin Connecting a Switch Switch I 00 CN1 2 pin GND CN1 1 pin ...

Page 48: ...ce is illustrated in Figure 3 7 Signal outputs are open collector outputs individual output signals are sent to the external device as negative logic signals Note that each signal output must be pulled up at the external device as it is not pulled up internally CAUTION When the PC is turned on all output are reset to OFF Connection to the LED 2kΩ O 20 CN1 21 pin LED Vcc CN1 37 pin Board side When ...

Page 49: ...ay coil Examples of measures against voltage surge are shown in Figure 3 9 below 5V Output pin Signal common 5V 5V 5V Examples of use of relay coil Examples of use of lump External power voltage Zener diode voltage Surge current prevention resistor Resistor Diode Relay coil Output pin Signal common Relay coil Zener diode Output pin Signal common Output pin Signal common Figure 3 9 Samples of Volta...

Page 50: ...en input 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 DIO 16...

Page 51: ...g It is set to 0 when the power is turned on Figure 4 2 shows the relationships between digital filter time settings and the actual digital filter times 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 filter function is not used 7 07h 16μsec 14 0Eh 2 048msec 1 01h 0 25μsec 8 08...

Page 52: ...at which to 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 in...

Page 53: ...4 Function 46 DIO 1616T PE DI 32T PE DO 32T PE ...

Page 54: ...Readmeu 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 55: ... DIO WDM HELP to display help information 3 Using 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 ...

Page 56: ...fied 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 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...

Page 57: ... 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 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 ask...

Page 58: ...I 98 PC xx VerX XX and then click Uninstall contains the driver category name AIO CNT DIO SMC etc Uninstall procedure for Windows XP and Windows 2003 Server Uninstall the device driver Use My Computer Control Panel Add and Remove Programs to uninstall the device driver In case of API WDM select Windows driver package CONTEC and then click Change Remove In case of API 98 PC select CONTEC API 98 PC ...

Page 59: ... and Remove Programs to uninstall the development environment In case of API WDM select CONTEC API WDM VerX XX development environment and then click Change Remove In case of API 98 PC select CONTEC API 98 PC xx VerX XX development environment and then click Change Remove contains the driver category name AIO CNT DIO SMC etc ...

Page 60: ...ocedure The Linux version for digital I O 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 extracte...

Page 61: ... Using Sample 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 scrip...

Page 62: ...specifications and hardware related supplementary information For detailed technical information For further detailed technical information Technical Reference including the information such as an I O map configuration register etc visit the Contec s web site http www contec com support to call for it ...

Page 63: ...DC Max Output rating Output current 40mA par channel Max Response time Within 200nsec change by pull up resistor value Common External supply capable current Max 5VDC 350mA Allowable distance of signal extension Approx 1 5m depending on wiring environment I O address Any 32 byte boundary Interruption level 1 level use Max board count for connection 16 boards including the master board Power consum...

Page 64: ...nal supply capable current Max 5VDC 350mA Allowable distance of signal extension Approx 1 5m depending on wiring environment I O address Any 32 byte boundary Interrupt Level 1 level use Max board count for connection 16 boards including the master board Power consumption Max 3 3VDC 300mA Operating condition 0 50 C 10 90 RH No condensation Bus specification PCI Express Base Specification Rev 1 0a x...

Page 65: ... Approx 1 5m depending on wiring environment I O address Any 32 byte boundary Interrupt Level None Max board count for connection 16 boards including the master board Power consumption Max 3 3VDC 550mA Operating condition 0 50 C 10 90 RH No condensation Bus specification PCI Express Base Specification Rev 1 0a x1 Dimension mm 121 69 L x 110 18 H Connector 37 pin D SUB connector F female type DCLC ...

Page 66: ...circuit PCI Express BUS TTL receiver External digital input port 0 8 points group 0 TTL receiver Open collector External digital input port 1 8 points group 1 External digital output port 0 8 points group 2 External digital output port 1 8 points group 3 Open collector Figure 6 1 Block Diagram DIO 1616T PE ...

Page 67: ...ntrol Circuit TTL receiver TTL receiver TTL receiver TTL receiver TTL receiver External digital Input Port 0 8 channels Group 0 External digital Input Port 1 8 channels Group 1 External digital Input Port 2 8 channels Group 2 External digital Input Port 3 8 channels Group 3 Figure 6 2 Block Diagram DI 32T PE ...

Page 68: ...S External digital Output Port 0 8 channels Group 0 External digital Output Port 1 8 channels Group 1 External digital Output Port 2 8 channels Group 2 External digital Output Port 3 8 channels Group 3 Open collector Open collector Open collector Open collector Figure 6 3 Block Diagram DO 32T PE ...

Page 69: ...u 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 05262008 10252006 Management No A 51 314 05262008_rev4 Parts No LYGQ304 ...

Reviews: