background image

2. Setup   

 

 

 

 

10

 

DI-64T2-PCI, DO-64T2-PCI 

Step 1 Installing the Software 

This section describes how to install the Driver libraries. 

Before installing the hardware in a PC, install "Driver Library API-PAC(W32)" from the 

bundled media or download and install the latest edition of this software from the CONTEC web 
site. 

Although some user interfaces are different depending on the OS used, the basic procedure is the same. 

About the driver to be used 

Two Digital I/O drivers are available : API-DIO(WDM) and API-DIO(98/PC). 

When using this product, use the advanced digital I/O driver "API-DIO(WDM)". The following 
information is focused on setting up API-DIO(WDM). 

If API-DIO(98/PC) using existing systems continue to use API-DIO(98/PC). 

Please note that the API-DIO(98/PC) does not support Windows 8 or later, and the 64-bit OS. 

 

Use the API-DIO(98/PC) 

If you are installing from disk attachments, select "all" from the "Installer" later in this chapter and 
starts the execution environment and development environment packages installer 

Please see the Help folder in the installed hardware installation instructions please see reference in help 
disk attachments or downloaded from 

CONTEC’s Web site

 development environment. 

Furthermore, that applies to the default step 4 software described below, see config.chm folder installed 
execution environment 

Summary of Contents for DI-64T2-PCI

Page 1: ...PC HELPER Digital Input Board for PCI DI 64T2 PCI Digital Output Board for PCI DO 64T2 PCI User s Guide CONTEC CO LTD ...

Page 2: ...r damaged or missing items contact your retailer Product Configuration List Board One of the followings DI 64T2 PCI or DO 64T2 PCI 1 First step guide 1 Disk 1 API PAC W32 1 Warranty Certificate 1 Serial Number Label 1 1 The bundled disk contains the driver software and User s Guide this guide Board First step guide First step guide Warranty Certificate Warranty Certificate Disk API PAC W32 Serial ...

Page 3: ... 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 pro...

Page 4: ... Information 5 Handling Precautions 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 an OS Other than Windows 9 Step 1 Installing the Software 10 About the driver to be used 10 Select API DIO WDM 12 Step 2 Setting the Hardware 13 Parts of the Board and Factory Defaults 13 Setting t...

Page 5: ...tion 34 4 FUNCTION 35 Data I O Function 35 Data Input 35 Data Output 35 Monitoring Output Data 35 Digital Filter Function 36 Digital Filter Function Principle 36 Set Digital Filter Time 36 Interrupt Control Function 37 Disabling enabling Interrupts 37 Selecting the Edge of input signals at which to generate an iterrupt 37 Clearing the Interrupt Status and Interrupt Signal 37 5 ABOUT SOFTWARE 39 Ab...

Page 6: ...DI 64T2 PCI DO 64T2 PCI v 6 ABOUT HARDWARE 45 For detailed technical information 45 Hardware specifications 45 Block Diagram 47 ...

Page 7: ...vi DI 64T2 PCI DO 64T2 PCI ...

Page 8: ...hannels whose response speed is 200nsec Output rating max 30VDC 40mA per pin You can use 32channels of the input signals as interrupt request signals For DI 64T2 PCI only You can use 32channels of the input signals as interrupt request signals and also disable or enable the interrupt in bit units and select the edge of the input signals at which to generate an interrupt This product has a digital ...

Page 9: ... Web site http www contec com apipac Linux version of digital I O driver API DIO LNX Stored on the bundled disk 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 For more details on the supported OS applicable language and how to download the updated ...

Page 10: ...w Terminal M3 x 96 EPD 96A 1 4 Terminal Unit for Relay Terminal Banks EPD 96 1 Screw Terminal DTP 64A 1 Signal Monitor for Digital I O 64Bits CM 64L 1 Screw Terminal Unit M3 x 37P EPD 37A 2 4 Screw Terminal Unit M3 5 x 37P EPD 37 2 General Purpose Terminal DTP 3A 2 Screw Terminal DTP 4C 2 Signal Monitor for Digital I O CM 32L 2 Connection Conversion Board 96 Pin 37 Pin x 2 CCB 96 3 1 A PCB96P or P...

Page 11: ...rge 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 damag...

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

Page 13: ...o 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 installed Insufficien...

Page 14: ... 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 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...

Page 15: ...1 Before Using the Product 8 DI 64T2 PCI DO 64T2 PCI ...

Page 16: ...ndled disk 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 Operation Checks If Setup fails to be performed normally see the Setup...

Page 17: ...O driver API DIO WDM The following information is focused on setting up API DIO WDM If API DIO 98 PC using existing systems continue to use API DIO 98 PC Please note that the API DIO 98 PC does not support Windows 8 or later and the 64 bit OS Use the API DIO 98 PC If you are installing from disk attachments select all from the Installer later in this chapter and starts the execution environment an...

Page 18: ...n your PC 2 The API PAC W32 Installer window appears automatically If the panel does not appear run drive letter AUTORUN exe 3 Click on the Install Development or Execution Environment button Before installing the software in Windows 2000 or later log in as a user with administrator privileges CAUTION ...

Page 19: ... Usage of driver library 2 Select the Advanced Digital I O driver 3 Click on the Install button Clicking the API DIO button under the Detail 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 20: ... 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 Figure 2 1 Component Locations SW1 BOARD ID 0 1 2 3 4 5 6 7 9 A B C D E F 8 A01 A02 B02 B01 A48 A47 B48 B47 DI DO xxT2 PCI SW1 BOARD ID Int...

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

Page 22: ...onnector 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 23: ...he 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 bus slot or the board itself If you remove two or more boards that have already been installed and then remount o...

Page 24: ...ethods to follow in performing installations on different Windows operating systems are included on the bundled disk so refer to the files in the following folder Help Hwinst Eng ApiTool chm 1 The Found New Hardware Wizard will be started Select No not this time and then click the Next button 2 When the model name of hardware is displayed select Install the software automatically Recommended and t...

Page 25: ...ed 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 node and sele...

Page 26: ... 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 DI 64T2 PCI DO 64T2 PCI ...

Page 27: ...has been set up correctly Check Method Connect the board to a remote device to test the input output and check the execution environment Set the board in the default factory To connect an external device see Chapter 3 External Connection Starting the Diagnosis Program Open the Properties page of the device that was used for the software initialization and press the Diagnosis button ...

Page 28: ...me intervals Output Port Mouse operation allows the data to output or display Interrupt Displays the number of interrupts detected bit by bit 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 The time for each execution of a function will be measured The name of the board yo...

Page 29: ...the diagnosis results while saving them in text format The Diagnosis Program performs board presence absence check driver file test board setting test and so on Before executing diagnosis report output unplug the cable from the board CAUTION Click on Show Diagnosis Report The name of the board you have just added is displayed DI 64T2 PCI DO 64T2 PCI ...

Page 30: ...gram has been created using the driver API functions If the board works with the Diagnosis Program it will work with other applications Review the program paying attention to the following points Check the return values of functions Refer to the source code of sample program Refer to the Troubleshooting in API TOOL WDM HELP APITOOL chm The name of the board you have just added is displayed DI 64T2...

Page 31: ...2 Setup 24 DI 64T2 PCI DO 64T2 PCI ...

Page 32: ...ors Connector shape The on board interface connector CN1 is used when connecting this product and the external devices Please refer to chapter 1 for more information on the supported cable and accessories Figure 3 1 Interface Connector CN1 Shape B48 B47 A48 A47 A02 A01 B02 B01 Interface connector CN1 Connector used PCR E96LMD equivalent to it mfd by HONDA TSUSHIN KOGYO CO LTD Applicable connectors...

Page 33: ...I 16 I 15 I 14 I 13 I 12 I 11 I 10 I 07 I 06 I 05 I 04 I 03 I 02 I 01 I 00 GND GND Vcc Vcc I 77 I 76 I 75 I 74 I 73 I 72 I 71 I 70 I 67 I 66 I 65 I 64 I 63 I 62 I 61 I 60 GND GND N C N C N C N C N C N C N C N C Vcc Vcc I 57 I 56 I 55 I 54 I 53 I 52 I 51 I 50 I 47 I 46 I 45 I 44 I 43 I 42 I 41 I 40 GND GND 7 port input N C 6 port input 5 port input 4 port input 5V Signal common 2 port input 3 port ...

Page 34: ... 03 O 02 O 01 O 00 GND GND 2 port output 3 port output 1 port output 0 port output Signal common N C Signal common Signal common Signal common Signal common 7 port output N C 6 port output 5 port output 4 port output Signal common Signal common Vcc Vcc O 57 O 56 O 55 O 54 O 53 O 52 O 51 O 50 O 47 O 46 O 45 O 44 O 43 O 42 O 41 O 40 GND GND Vcc Vcc O 77 O 76 O 75 O 74 O 73 O 72 O 71 O 70 O 67 O 66 O...

Page 35: ...16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 N C Vcc I 17 I 16 I 15 I 14 I 13 I 12 I 11 I 10 I 07 I 06 I 05 I 04 I 03 I 02 I 01 I 00 GND 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 Vcc I 37 I 36 I 35 I 34 I 33 I 32 I 31 I 30 I 27 I 26 I 25 I 24 I 23 I 22 I 21 I 20 GND 5V Signal common 0 port input 1 port input 5V 2 port input 3 port input Signal common 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4...

Page 36: ...4 O 13 O 12 O 11 O 10 O 07 O 06 O 05 O 04 O 03 O 02 O 01 O 00 GND 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 Vcc O 37 O 36 O 35 O 34 O 33 O 32 O 31 O 30 O 27 O 26 O 25 O 24 O 23 O 22 O 21 O 20 GND 5V Signal common 0 port output 1 port output 5V 2 port output 3 port output Signal common 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 N C Vcc O 57 O 56 O 55 O 54 O 53 O 52 O 51 O 50 O 47 O...

Page 37: ...ins DI 64T2 PCI 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 Input logical port 2 I 27 23 I 26 22 I 25 21 I 24 20 I 23 19 I 22 18 I 21 17 I 20 16 Input logical port 3 I 37 31 I 36 30 I 35 29 I 34 28 I 33 27 I 32 26 I 31 25 I 30 24 Input logical port 4 I 47 39 I...

Page 38: ...O 26 22 O 25 21 O 24 20 O 23 19 O 22 18 O 21 17 O 20 16 Output logical port 3 O 37 31 O 36 30 O 35 29 O 34 28 O 33 27 O 32 26 O 31 25 O 30 24 Output logical port 4 O 47 39 O 46 38 O 45 37 O 44 36 O 43 35 O 42 34 O 41 33 O 40 32 Output logical port 5 O 57 47 O 56 46 O 55 45 O 54 44 O 53 43 O 52 42 O 51 41 O 50 40 Output logical port 6 O 67 55 O 66 54 O 65 53 O 64 52 O 63 51 O 62 50 O 61 49 O 60 48 ...

Page 39: ... 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 When the switch is ON the corresponding bit contains 1 When the switch is OFF by contrast the bit contains 0 Figure 3 7 An Example to use Input I 0...

Page 40: ...gative logic signals Note that each signal output must be pulled up at the external device as it is not pulled up internally When the PC is turned on all output are reset to OFF Connection to the LED When 1 is output to a relevant bit the corresponding LED comes on When 0 is output to the bit in contrast the LED goes out Figure 3 9 An Example to use Output O 40 DO 64T2 PCI External device Output p...

Page 41: ...istor the transistor performance may be degraded or the transistor may be damaged To prevent this be sure to connect a surge absorption element when driving an inductive load including a relay coil Examples of measures against voltage surge are shown in Figure 3 10 below Figure 3 10 Samples of Voltage Surge Protection The protection circuit must be installed less than 50 cm from the load and conta...

Page 42: ...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 When the PC is turned on all output are reset to 0 OFF Monitoring Output Data The DO 64T2 PCI can r...

Page 43: ...t 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 filter function is not used 7 07h 16µsec 14 0Eh 2 048msec 1 01h 0 25µsec 8 08h 32µsec 15 0Fh 4 096ms...

Page 44: ...rate 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 to the...

Page 45: ...4 Function 38 DI 64T2 PCI DO 64T2 PCI ...

Page 46: ...f input signals from being affected by noise or chattering For details refer to the help file Accessing the Help File The method to use in accessing the help file varies slightly depending on the version of the driver the development environment that is installed From the Start menu click CONTEC API PAC W32 API TOOL WDM HELP When this link does not exist From the Start menu click CONTEC API PAC W3...

Page 47: ...ple program is invoked Sample list Simple I O Executes digital I O processing of the specified port Multiple port bit I O ports bits Simultaneously executes digital I O processing of multiple Monitoring Trigger Monitors rising edge falling edge triggers Interrupt Executes interrupt processing of the specified board Sampling 1 Executes pattern input sampling in 32bits Saves sampling data to a file ...

Page 48: ...y right clicking on My Computer and selecting Properties 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 Programs and Features to uninstall the development environment In case of API WDM select CONTEC API WDM VerX XX Develop and then click Uninstall contai...

Page 49: ... I O driver API DIO LNX is supplied as a compressed file linux dio cdioXXX tgz on the bundled disk Note XXX represents the driver version Mount the bundled disk 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 log i...

Page 50: ...ng 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 script ...

Page 51: ...5 About Software 44 DI 64T2 PCI DO 64T2 PCI ...

Page 52: ...t signal INTA An interrupt is generated at the rising edge HIGH to LOW transition or falling edge LOW to HIGH transition Response time 200nsec within Common External supply capable current Max 5VDC 1A 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 ...

Page 53: ...el None Max board count for connection 16 boards including the master board Power consumption Max 5VDC 310mA Operating condition 0 50 C 10 90 RH No condensation Bus specification PCI 32bit 33MHz Universal key shapes supported 2 Dimension mm 121 69 L x 105 68 H Connector 96 pin half pitch connector M male type PCR E96LMD HONDA TSUSHIN KOGYO CO LTD equivalent to it Weight 100g Standard VCCI Class A ...

Page 54: ...t Control Circuit TTL receiver TTL receiver TTL receiver 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 External digital Input Port 4 8 channels Group 4 External digital Input Port 5 8 c...

Page 55: ...er TTL driver 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 External digital output Port 4 8 channels Group 4 External digital output Port 5 8 channels Group 5 External digital output Port 6 8 channels Group 6 External digital output Port 7 8 cha...

Page 56: ......

Page 57: ...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 02172017 03022007 Management No A 51 440 02172017_rev2 Parts No LYHG792 ...

Reviews: