background image

 

 

 

 

 

PC-HELPER 

 

 

4ch 24Bit Differencial 
Up/Down Counter Board for PCI 

CNT24-4D(PCI)H 

User’s Guide 

 

 

 

 

 

 

 

 

 

 

 

 

 

CONTEC CO.,LTD.

 

 

Summary of Contents for CNT24-4D(PCI)H

Page 1: ...PC HELPER 4ch 24Bit Differencial Up Down Counter Board for PCI CNT24 4D PCI H User s Guide CONTEC CO LTD ...

Page 2: ...ou discover damaged or missing items contact your retailer Product Configuration List CNT24 4D PCI H 1 First step guide 1 CD ROM 1 API PAC W32 1 Warranty Certificate 1 Serial number label 1 1 The CD ROM contains the driver software and User s Guide this guide Board CD ROM API PAC W32 XXXXXXXXXXXXX XXXXXXXXXXXXX Serial No Label Product Registration Card First step guide Warranty Certificate ...

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

Page 4: ...ronment 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 Program 12 When Using API CNT WDM 13...

Page 5: ... Connecting the Interface Connector 35 Connector Pin Assignment 36 PCB96WS and CCB 96 Signal Assignment 37 External Connection Line Receive Input 39 Line Receiver Input Circuit 39 Detailed Line Receiver Input Circuit 39 Example Connection with a Rotary Encoder 40 Example Connection with a Linear Scale 40 External Connection TTL level Input 41 TTL level Input Circuit 41 Detailed TTL level Input Cir...

Page 6: ... 50 Status Data 51 5 ABOUT SOFTWARE 53 CD ROM Directory Structure 53 About Software for Windows 54 Accessing the Help File 55 Using Sample Programs 56 Uninstalling the Driver Libraries 58 About Software for Linux 59 Driver Software Install Procedure 59 Accessing the Help File 60 Using Sample Programs 60 Uninstalling the driver 60 6 ABOUT HARDWARE 61 Hardware specification 61 Block Diagram 62 Diffe...

Page 7: ...vi CNT24 4D PCI H ...

Page 8: ... as Visual Basic or Visual C C Example Linear Scale Detecting a position of the table of a machine tool Processing thing Tool Power supply RelayBOX CNT24 4D PCI H Encoder Detecting a change in weight Power supply Rack CNT24 4D PCI H Features This board is a PCI compliant interface board for counting input pulse signals It is equipped with four channels of 24 bit up down counters The board can coun...

Page 9: ...pose COUNT driver API CNT LNX Stored on the bundled CD ROM driver library API PAC W32 This driver is used to control CONTEC counter boards PC Cards You can control CONTEC counter boards easily using the shared library used by gcc Kylix the device driver module for each kernel version and the board PC Cards configuration program config CONTEC provides download services at http www contec com apipac...

Page 10: ...Cable with 96 Pin Half Pitch Connectors at Both Ends PCB96P 1 5 1 5m PCB96P 3 3m PCB96P 5 5m Shield Cable with 96 Pin Half Pitch Connector at One End Mold Type PCA96PS 0 5P 0 5m PCA96PS 1 5P 1 5m PCA96PS 3P 3m PCA96PS 5P 5m Distribution Shield Cable with 96 Pin Half Pitch Connector 96Pin 37Pin x 2 PCB96WS 1 5P 1 5m PCB96WS 3P 3m PCB96WS 5P 5m Connector with 96 Pin Half Pitch Female Set 5 Pieces CN...

Page 11: ...nit M3 x 37P EPD 37A 2 4 Screw Terminal Unit M3 5 x 37P EPD 37 2 Connection Conversion Board 96 Pin 37 Pin x 2 CCB 96 3 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 4 Spring up type terminal is used to prevent terminal screws from fallin...

Page 12: ...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 boards The warranty is not applicable if the device has been tampered with or damaged...

Page 13: ...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 14: ...minals with industrial alcohol Do not install or remove the board to or from the slot while the computer s power is turned on Otherwise the board may malfunction overheat or cause a failure Doing so could cause trouble Be sure that the personal computer or the I O expansion unit power is turned off Make sure that your PC or expansion unit can supply ample power to all the boards installed Insuffic...

Page 15: ...ard has no dust or foreign matter adhering The gold plated leads of the bus connector have no stain or corrosion 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 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 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: ...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 CNT WDM and API CNT 98 PC API CNT WDM is a new driver to perform digital I O under Windows API CNT WDM was developed to improve the conventional product version of API CNT 98 PC in the ease of use and functionality It is advisable to use API CNT 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: ...2 Installer window 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 CAUTION Before installing the software in Windows 7 Server 2008 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 Counter input driver 3 Click on the Install button Clicking the API CNT button displays detailed information about API CNT WDM and API CNT 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: ...8 PC 1 The following dialog box appears to select Driver to install and Install option Usage of driver library 2 Select Classic Counter input driver 3 Click on the Install button Clicking the API CNT button displays detailed information about API CNT WDM and API CNT 98 PC ...

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

Page 23: ...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 Terminator setting switches SW3 to SW6 Board ID setting switch Interface connector CN1 Switch for setting one shot pulse output signals SW2 SW6 ch0 ON 1 3 2 4 SW5 ch1 ON 1 3 2 4 SW4 ch2 ON 1 3 2 4 SW3 ch3 ON 1 3 2 4 SW1 BOARD ...

Page 24: ...n 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 Setting One shot Pulse Output Signals The TTL level output or open collector output can be selected by channel Select them depending on the specifications of the external device to be connected Setting method Set the type of one shot pulse output signals with SW2 By referring to the follo...

Page 25: ...o insert terminators By referring to the following table set whether or not to insert terminators SW6 ch0 ON 1 3 2 4 SW5 ch1 ON 1 3 2 4 SW4 ch2 ON 1 3 2 4 SW3 ch3 ON 1 3 2 4 Factory Setting ON Bit Input signal Insert the terminal Not insert the terminal 4 General purpose U ON OFF 3 Phase Z ON OFF 2 Phase B ON OFF 1 Phase A ON OFF Figure 2 4 Terminator setting switches CAUTION Channel whose the lin...

Page 26: ...CI 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 com...

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

Page 28: ...folder on 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 INF Wdm Cnt INF Wdm Cnt ...

Page 29: ... 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 The name of the board you have just added is displayed CNT24 4D PCI H ...

Page 30: ...er The setup information INF file is contained in the following folder on the bundled CD ROM Windows 7 Server 2008 Vista XP Server 2003 2000 INF Win2000 Cnt PCI Windows Me 98 95 INF Win95 Cnt PCI Example of specifying the folder for use under Windows XP The name of the board you have just added is displayed CNT24 4D PCI H INF Win2000 Cnt PCI ...

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 software The name of the board you have just added is displayed CNT24 4D PCI H ...

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

Page 33: ...b 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: ...ms CONTEC API PAC W32 API TOOL Configuration 2 Click on the CNT icon API TOOL Configuration detects boards 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: ...test the input output and check the execution environment Check the board with the factor defaults untouched Connection diagram Use the following connection to connect the rotary encoder to the line receiver input For the details on the example connection of input and signal position see Chapter 3 External Connection Line receiver input connection diagram Pin No of Connector CH0 B3 CH2 B31 CH1 B11...

Page 36: ... Diagnosis button on the device property page to start the diagnosis program Starting the Diagnosis Program for Use of API CNT 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 are testing is displayed CNT24 4D PCI H ...

Page 37: ...Setting the channel0 Select line receiver input for Signal Source Use default data for other settings Because other three channels should be the same settings click Use Same Mode then Click on the Counter Mode Button Click on the Use Same Mode Select the line receiver input ...

Page 38: ...2 Setup CNT24 4D PCI H 31 3 Click End button to finish condition setting Click on the End Button line receiver input ...

Page 39: ...est following counter actions by using this diagnosis program Start counting Reset Stop counting 1 Click Counter Start button to Start counting 2 The count value of each counter and their status AI U A B and Z will be displayed Click on the Counter Start Button ...

Page 40: ... as a text file CntRep txt in 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 the Diagnosis Report Button The name of the board you have tested is disp...

Page 41: ...ally Read the function description in API CNT HELP or this manual to set an appropriate mode The board works with the Diagnosis Program but not with an application The Diagnosis Program 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 p...

Page 42: ...connecting an external device Using the On board Connectors Connecting the Interface Connector To connect an external device to this board plug the cable from the device into the interface connector shown below Connector used PCR E96LMD mfd by HONDA Applicable connectors PCR E96FA mfd by HONDA B48 B47 A48 A47 A02 A01 B02 B01 Interface connector CN1 Figure 3 1 Connecting the Interface Connector ...

Page 43: ...receiver general purpose input CH2 line receiver Z phase input CH2 line receiver Z phase input CH2 line receiver B phase input CH2 line receiver B phase input CH2 line receiver A phase input CH2 line receiver A phase input Pin numbers specified by HONDA Not connected CH3TTL general purpose input CH3TTLZ phase input CH3TTLB phase input CH3TTLA phase input Ground CH2TTL general purpose input CH2TTLZ...

Page 44: ...ceiver general purpose input CH0 line receiver general purpose input CH1 line receiverA phase input CH1 line receiverA phase input CH1 line receiver B phase input CH1 line receiver B phase input CH1 line receiver Z phase input CH1 line receiver Z phase input CH1 line receiver general purpose input CH1 line receiver general purpose input Ground Not connected PCB96WS s CNA Not connected CH0 one shot...

Page 45: ... CH1 line receiverA phase input CH1 line receiver B phase input CH1 line receiver B phase input CH1 line receiver Z phase input CH1 line receiver Z phase input CH1 line receiver general purpose input CH1 line receiver general purpose input Ground Not connected CCB 96 s CN3 CNA Not connected CH0 one shot output CH1 one shot output CH2 one shot output CH3 one shot output Ground CH2TTLA phase input C...

Page 46: ...t to either phase A or phase B If not using the Z phase this does not need to be connected You can select whether to use the terminator in case of the line receiver input Detailed Line Receiver Input Circuit 1kΩ 51Ω 100Ω 51Ω 1kΩ Board Internal circuit 26LS31 or equivalent to it Input pin Varistor 5V GND 26LS32 or equivalent to it Remote device Plus common External power supply 5VDC Input pin Outpu...

Page 47: ... B14 CH3 B42 CH0 B7 CH2 B35 CH1 B15 CH3 B43 CH0 B8 CH2 B36 CH1 B16 CH3 B44 Figure 3 6 Example Connection with a Differential Line Driver Type Rotary Encoder Example Connection with a Linear Scale Pin No of Connector CH0 B3 CH2 B31 CH1 B11 CH3 B39 CH0 B4 CH2 B32 CH1 B12 CH3 B40 0V GND CH0 B5 CH2 B33 CH1 B13 CH3 B41 CH0 B6 CH2 B34 CH1 B14 CH3 B42 CH0 B7 CH2 B35 CH1 B15 CH3 B43 CH0 B8 CH2 B36 CH1 B16...

Page 48: ...the Z phase this does not need to be connected You can select whether to use the terminator in case of the line receiver input Detailed TTL level Input Circuit Board Internal circuit GND Output pin Remote device Plus common Diode 5V Input pin Equivalent to LS541 5V 10kΩ External power supply 5VDC Minus common Diode Figure 3 8 TTL level input circuit CAUTION The general input signal uses the same c...

Page 49: ...ld Phase A Phase B Phase Z Phase A Phase B Phase Z Figure 3 9 Example Connection with a TTL Level output Rotary Encoder Example Connection with a Linear Scale Linear Scale Pin No of Connector CH0 A10 CH2 A38 CH1 A15 CH3 A43 0V CH0 A11 CH2 A39 CH1 A16 CH3 A44 CH0 A12 CH2 A40 CH1 A17 CH3 A45 GND CNT24 4D PCI H One of A2 to A8 A14 A21 to A28 A37 A42 B1 B2 B19 to B30 B47 B48 Power supply Shield Phase ...

Page 50: ...nal power supply source For pulse wide settings refer to Chapter4 Function Other Function One shot Pulse Output Circuit and an Example Connection When the count value of a channel matches a preset compare value the transistor of an output circuit turns on only the time of the preset pulse width 5V Input Current sink output 5V 24VDC SW2 10kΩ Trangistor Board Internal circuit GND Remote device Plus ...

Page 51: ...ch as a relay generates a sudden high voltage pulse If this voltage exceeds the voltage tolerance level of the output transistor it can cause the transistor to gradually deteriorate or even completely damage the transistor Therefore when driving an induction load such as a relay coil you should always connect a surge absorbing device The following illustrates a surge voltage countermeasure that ca...

Page 52: ...ut with Gate Control Asynchronous Clear Multiply by 2 2 phase Input Two phase pulse input consists of a phase A pulse advanced signal and a phase B delayed signal pulse that have 90 of phase difference If the phase Z reference position signal is used a Z pulse will reset count value of the two phase pulse input to zero 0 1 2 Count operation for incremental counting in the CW direction When decreme...

Page 53: ...N pulse Phase B DOWN Count value Figure 4 2 Example counting during single phase input Single phase Input with Gate Control The counter can be started and stopped by using a gate control signal along with the single phase pulse stream 7 8 6 9 Series of single phase pulses Phase A UP Gate control signal Phase B DOWN Count operation for incremental counting in the CW direction When decremental count...

Page 54: ...ultiply by 2 Multiply by 4 Figure 4 4 Example counting when count input multiplication is set Synchronous Clear If a counter is set for CW clockwise direction Up count and phase Z positive logic within a low level input of phase B a high level signal of phase Z input will reset the count value of this counter after this phase Z input signal goes to low level the following rising edge of the phase ...

Page 55: ...put remains low When phase Z negative logic is used the signal is enabled while the phase Z input remains low Figure 4 6 Example counting during asynchronous clear Phase Z CLR Input Phase Z is the signal to clear the counter to zero The number of phase Z inputs can be specified by software Phase Z input Disable phase Z input Counter 0 Ignored Phase Z input Enable the next phase Z input only once C...

Page 56: ...s the digital filter outputs HIGH or LOW and communicates it to the counter circuit The cycle can be set in a range of 0 1µsec through 1 056 1µsec All externally input signals except for general purpose input signals are fetched through the digital filter into the internal counter They are fetched after a delay of four set sampling cycle clocks When initialized externally input signals are fetched...

Page 57: ...The width can be set in a range of 0 through 104 45msec CAUTION The default state is set to pulse width 0 do not output Pulse widths may slightly vary depending on the specifications of a connected load General purpose Input Signal Select This command selects line receiver input or TTL level input for the general purpose input signals of a corresponding channel when line receiver input is in use C...

Page 58: ... input status 1 0 Phase A input status 0 B Indicates phase B input status 1 Phase B input status 1 0 Phase B input status 0 U D Count direction operating status This status bit indicates the direction in which the current up down counter is operating 0 Engaged in counting up 1 Engaged in counting down EQ Detects and outputs match or mismatch 0 The count value matches compare register s contents 1 ...

Page 59: ...4 Function 52 CNT24 4D PCI H ...

Page 60: ...tml 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 61: ...ster of a specified channel Set for using hardware digital filter function to prevent signal chattering Pre set a target data and to allow the counter to output a one shot pulse when the count data of this specified channel matched this target data 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...

Page 62: ...ut Software CNT24 4D PCI H 55 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 Cnt API CNT HELP to display help information ...

Page 63: ...et by API TOOL Configuration in the DrvNo and GrpNo fields Use these sample programs as references for program development and operation check The sample programs are stored in Program Files CONTEC API PAC W32 Cnt 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 Cnt SAMPLE 3 A sample program is invoked ...

Page 64: ...T24 4D PCI H 57 Sample Programs Examples Counter Sample CNT1 Basic actions of counting input signals Timer Sample CNT2 Using programmable timer to generate interrupt requests periodically Sample program 1 Sample program 2 ...

Page 65: ...e Add or Remove Programs in the Control Panel 3 For use of API CNT WDM select CONTEC API CNT WDM driver and CONTEC API CNT WDM VerX XX Develop from the application list displayed For use of API CNT 98 PC select CONTEC API CNT 98 PC xx VerX XX Develop and CONTEC API CNT 98 PC xx VerX XX Runtime from the application list displayed Click on the Change Remove button Follow the on screen instructions t...

Page 66: ...ed as a compressed file linux cnt ccntXXX 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 super user Decompr...

Page 67: ...le Programs Sample programs have been prepared for specific basic applications Sample programs for each language are contained in the contec ccnt 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 ccnt directory For details check the contents of the script ...

Page 68: ...on distance Equivalent to the SN74LS541 T I 1 5m dependent on wiring environment Response frequency Line receiver input TTL level input 1MHz 50 duty Max 1MHz 50 duty Max Interrupt One Generated when each channel count matches or the timer runs out of time Digital filter 0 1µsec 1056 1µsec can be independently set for each channel Timer 1msec 200sec Match signal output Output point 1 x 4 channels O...

Page 69: ...nd of theboard to theouter surfaceof theslot cover mm 121 69 L 105 68 H Block Diagram CNT24 4D PCI H PCI Bus Interface 24 bit readout register 24 bit counter 24 bit comparator 24 bit compare register One shot pulse output 20MHz system clock Line receiver input x 4 channels TTL level input x 4 channels One shot pulse output x 4 channels TTL level output or open collector output can be selected PCI ...

Page 70: ...C 670mA Max 5VDC 320mA Max Dimension mm 176 41 L 105 68 H 176 41 L 105 68 H 176 41 L 105 68 H 121 69 L 105 68 H Differences between the CNT24 4D PCI H and CNT24 4D PCI The CNT24 4D PCI H partially enhanced version of the conventional products of CNT24 4D PCI and it is upper compatible with CNT24 4D PCI 1 There are difference in the board s external dimension CNT24 4D PCI 176 41 L x 106 68 H mm CNT...

Page 71: ...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 02232015 03082005 Management No A 51 006 02232015_rev7 Parts No LYES127 ...

Reviews: