Contec DIO-1616TB-PE User Manual Download Page 58

5. About Software

 

                                                                                                                                                  

DIO-1616TB-PE

51

About Software for Linux

The Linux version of digital I/O function driver, API-DIO(LNX), provides functions that execute the

following features:

-

Digital input/output of specified ports

-

Digital input/output of specified bits

-

Hardware digital filtering that prevents chattering

For details, refer to the help file.    The help file provides various items of information such as “Function

Reference”, “Sample Programs”, and “FAQs”.    Use them for program development and

troubleshooting.

Driver Software Install Procedure

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 extracted by

installation.

To install the driver, log in as a superuser.

Decompression and setup procedure

# cd

 # 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

Set up the board to be used.

 ..... Set as follows.........

 # ./contec_dio_start.sh

Start the driver.

# cd

Summary of Contents for DIO-1616TB-PE

Page 1: ...PC HELPER Digital I O Board with High Speed Opto Isolation for PCI Express DIO 1616TB PE 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 DIO 1616TB PE 1 First step guide 1 CD ROM 1...

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

Page 4: ...autions 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 Ot...

Page 5: ...EXTERNAL CONNECTION 35 How to connect the connectors 35 Connector shape 35 Connector Pin Assignment 36 Relationships between API PAC W32 Logical Ports Bits and Connector Signal Pins 37 Connecting Inpu...

Page 6: ...Using Sample Programs 48 Uninstalling the Driver Libraries 50 About Software for Linux 51 Driver Software Install Procedure 51 Accessing the Help File 52 Using Sample Programs 52 Uninstalling the driv...

Page 7: ...vi DIO 1616TB PE...

Page 8: ...noise performance Power supply 5VDC 600mA for driving opto coupler Power supply 5VDC 600mA for driving opto coupler is equipped Whether or not to use the internal power supply can be specified by jump...

Page 9: ...e supported OS applicable language and new information please 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 AP...

Page 10: ...One 37 pin D SUB Connector PCA37P 1 5 1 5m PCA37P 3 3m PCA37P 5 5m Shielded Cable with One 37 pin D SUB Connector PCA37PS 0 5P 0 5m PCA37PS 1 5P 1 5m PCA37PS 3P 3m PCA37PS 5P 5m 37 pin D SUB Male Conn...

Page 11: ...ly 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 Thi...

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

Page 13: ...r remove this product to or from the extension slot while the computer s power is turned on And also do not connect this product and external device while the power is turned on Otherwise this product...

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

Page 15: ...1 Before Using the Product 8 DIO 1616TB PE...

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

Page 17: ...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 t...

Page 18: ...he 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 device...

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

Page 20: ...on 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...

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

Page 22: ...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 a...

Page 23: ...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 settin...

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

Page 25: ...te that the output current that can be supplied to the external device is therefore 443 4mA maximum in case you use internal power supply for all the input and output channels The both internal and ex...

Page 26: ...h 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 bo...

Page 27: ...es 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 loc...

Page 28: ...M 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 butt...

Page 29: ...2 Setup 22 DIO 1616TB PE You have now finished installing the hardware The name of the board you have just added is displayed DIO 1616TB PE...

Page 30: ...23 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...

Page 31: ...r 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 fold...

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

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

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

Page 35: ...ect 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...

Page 36: ...g 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 test the input outp...

Page 37: ...2 Setup 30 DIO 1616TB PE 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 38: ...e 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 na...

Page 39: ...pt 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 DioWaitE...

Page 40: ...folder in 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 te...

Page 41: ...he 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 outpu...

Page 42: ...is used when connecting this product and the external devices CN1 37 20 19 1 36 18 21 2 Connector used 37 pin D SUB connector F female type DCLC J37SAF 20L9E mfd by JAE or equivalent to it Lock nut U...

Page 43: ...ommon I 00 I 17 can be used as interrupt signal The numbers in square brackets are pin numbers designated by HONDA TSUSHIN KOGYO CO LTD I 00 I 17 16 input signal pins Connect output signals from the e...

Page 44: ...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 D0 Output logical port 0 O 27 7 O 26 6 O 25 5 O 24 4...

Page 45: ...pler Input pin represents I xx Figure 3 3 Input Circuit The input circuits of interface blocks of this product are illustrated in Figure 3 3 The signal inputs are isolated by opto couplers This produc...

Page 46: ...1616TB PE 39 Connecting a Switch GND CN1 1 pin Board I 00 CN1 2 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 4 An E...

Page 47: ...uct therefore requires the on board internal power supply or the external 5VDC power supply to drive the output section of this product CAUTION The Opto coupler used on this board with power turned fe...

Page 48: ...1 Connection to the LED O 20 CN1 21 pin LED 2k Vcc CN1 37 pin Board side 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 Figu...

Page 49: ...istor 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 measu...

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

Page 51: ...lter Input to PC Figure 4 1 Digital Filter Function Principle Set Digital Filter Time Set the digital filter time to 0 20 14h Setting the digital filter time to 0 disables digital filtering It is set...

Page 52: ...bit has been interrupt disabled no interrupt occurs even when the corresponding input signal changes its level To let interrupts occur enable the corresponding interrupt mask bit for interruptions CAU...

Page 53: ...equesting an interrupt When an interrupt status is input the interrupt request signal and the interrupt status are cleared automatically CAUTION All of the interrupt status bits are set to 0 when the...

Page 54: ...ml Version information on each API TOOL English APIPACEach 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...

Page 55: ...g 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 appl...

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

Page 57: ...dd or Remove Programs in the Control Panel 3 For use of API DIO WDM select CONTEC API DIO WDM driver and CONTEC API DIO WDM VerX XX Develop from the application list displayed For use of API DIO 98 PC...

Page 58: ...iver 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 arb...

Page 59: ...ple 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 man...

Page 60: ...ions 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 confi...

Page 61: ...mA 2 Allowable distance of signal extension Approx 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...

Page 62: ...ard outside dimension L is Block Diagram PCI Express bus DIO 1616TB PE Opto coupler Control Circuits Interrupt Control Circuit External digital input port 0 8ch Group 0 External digital input port 1 8...

Page 63: ...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 pr...

Reviews: