Contec CNT24-4D(PCI)H User Manual

4ch 24bit differencial up/down counter board for pci
Table of Contents

Advertisement

Quick Links

PC-HELPER
4ch 24Bit Differencial
Up/Down Counter Board for PCI
CNT24-4D(PCI)H
User's Guide
CONTEC CO.,LTD.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CNT24-4D(PCI)H and is the answer not in the manual?

Questions and answers

Summary of Contents for Contec 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 Check Your Package Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following list, that your package is complete. If you discover damaged or missing items, contact your retailer. Product Configuration List - CNT24-4D(PCI)H …1...
  • Page 3: Copyright

    No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. CONTEC CO., LTD. makes no commitment to update or keep current the information contained in this document. The information in this document is subject to change without notice.
  • Page 4: Table Of Contents

    When Using API-CNT(98/PC) ....................14 Executing the Installation ......................15 Step 2 Setting the Hardware ......................16 Parts of the Board and Factory Defaults ................... 16 Setting the Board ID ........................17 Setting One-shot Pulse Output Signals .................... 17 CNT24-4D(PCI)H...
  • Page 5 One-shot Pulse Output Connection ................... 43 Output Circuit and an Example Connection ................43 Surge Voltage Countermeasures....................... 44 FUNCTION Types and Operations of Pulse Signals .................... 45 Types of pulse signals ........................ 45 2-phase Input ..........................45 Single-phase Input ........................46 CNT24-4D(PCI)H...
  • Page 6 Accessing the Help File ......................60 Using Sample Programs......................60 Uninstalling the driver ....................... 60 ABOUT HARDWARE Hardware specification ........................61 Block Diagram ..........................62 Different in the specification ......................63 Differences between the CNT24-4D(PCI)H and CNT24-4D(PCI) ..........63 CNT24-4D(PCI)H...
  • Page 7 CNT24-4D(PCI)H...
  • Page 8: Before Using The Product

    Win32 API functions, such as Visual Basic or Visual C/C++. < Example > - Detecting a position of the table of a machine tool - Detecting a change in weight Tool CNT24-4D(PCI)H Processing thing Rack Encoder Power supply Linear Scale...
  • Page 9: Support Software

    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).
  • Page 10: Cable & Connector (Option)

    : 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) : CN5-H96F CNT24-4D(PCI)H...
  • Page 11: Accessories (Option)

    *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 falling off. Check the CONTEC’s Web site for more information on these options. CNT24-4D(PCI)H...
  • Page 12: Customer Support

    You can download updated driver software and differential files as well as sample programs available in several languages. Note! For product information Contact your retailer if you have any technical question about a CONTEC product or need its price, delivery time, or estimate information. Limited Three-Year Warranty CONTEC Interface boards are warranted by CONTEC CO., LTD.
  • Page 13: Safety Precautions

    WARNING indicates a potentially hazardous situation which, if not avoided, could WARNING result in death or serious injury. CAUTION indicates a potentially hazardous situation which, if not avoided, may CAUTION result in minor or moderate injury or in property damage. CNT24-4D(PCI)H...
  • Page 14: Handling Precautions

    Even when using the product continuously, be sure to read the manual and understand the contents. Do not modify the product. CONTEC will bear no responsibility for any problems, etc., resulting from modifying this product. Regardless of the foregoing statements, CONTEC is not liable for any damages whatsoever (including damages for loss of business profits) arising out of the use or inability to use this CONTEC product or the information contained herein.
  • Page 15: Environment

    (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 ordinances. CNT24-4D(PCI)H...
  • Page 16: Setup

    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 CNT24-4D(PCI)H...
  • Page 17: Using The Board Under An Os Other Than Windows

    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 CNT24-4D(PCI)H...
  • Page 18: Step 1 Installing The Software

    OS and devices in the future but will not support Windows NT 4.0, Windows 95, ISA bus. Use API-CNT(98/PC) if your operating environment contains such an unsupported piece of software or hardware. Check the following selection guide to easily select the driver to be used. CNT24-4D(PCI)H...
  • Page 19: Starting The Install Program

    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 Vista, XP, Server 2003 and 2000, log in as 7, Server 2008, a user with administrator privileges. CNT24-4D(PCI)H...
  • Page 20: When Using Api-Cnt(Wdm)

    (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. CNT24-4D(PCI)H...
  • Page 21: When Using Api-Cnt(98/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). CNT24-4D(PCI)H...
  • Page 22: Executing The Installation

    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. CNT24-4D(PCI)H...
  • Page 23: Step 2 Setting The Hardware

    Note that the switch setting shown below is the factory default. Switch for setting one-shot pulse Board ID setting switch (output signals (SW2) Terminator setting switches (SW3 to SW6) - Board No. BOARD ID CNT24-4D(PCI)H No.xxxxx BOARD ID Interface connector (CN1) Figure 2.1. Component Locations CNT24-4D(PCI)H...
  • Page 24: Setting The Board Id

    Setting method Set the type of one-shot-pulse output signals with SW2. By referring to the following table, set the one-shot pulse output signal. Channel TTL-Level output Open-collector output Factory Setting : ON Figure 2.3. Switch for setting one-shot-pulse output signals CNT24-4D(PCI)H...
  • Page 25: Setting Terminators

    Input signal Insert the Not insert the terminal terminal General-purpose(U) Phase-Z Phase-B Phase-A Figure 2.4. Terminator setting switches CAUTION Channel whose the line receiver input is not used and unused input signal should be left as “Not insert the terminal”. CNT24-4D(PCI)H...
  • Page 26: Plugging The Board

    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. Power supply from the PCI bus slot at +5V is required. CNT24-4D(PCI)H...
  • Page 27: Step 3 Installing The Hardware

    In this case, you must check the resource settings. When Using API-CNT(WDM) (1) The “Found New Hardware Wizard” will be started. Select “No, not this time” and then click the “Next” button. CNT24-4D(PCI)H...
  • Page 28 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 CNT24-4D(PCI)H...
  • Page 29: When Using Api-Cnt(98/Pc)

    2. Setup * The name of the board you have just added is displayed. - CNT24-4D(PCI)H You have now finished installing the hardware. When Using API-CNT(98/PC) (1) The “Found New Hardware Wizard” will be started. Select “Install from a list or specific location[Advanced]”, then click on the [Next] button.
  • Page 30 * The name of the board you have just added is displayed. - CNT24-4D(PCI)H Source folder 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...
  • Page 31 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. * The name of the board you have just added is displayed. - CNT24-4D(PCI)H You have now finished installing the software. CNT24-4D(PCI)H...
  • Page 32: Step 4 Initializing The Software

    - CNT24-4D(PCI)H (2) The installed hardware appears under the CONTEC Devices node. Open the CONTEC Devices node and select the device you want to setup (the device name should appear highlighted). Click [Properties]. CNT24-4D(PCI)H...
  • Page 33 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. CNT24-4D(PCI)H...
  • Page 34: When Using Api-Cnt(98/Pc)

    2. Setup When Using API-CNT(98/PC) (1) Open the Start Menu, then select “Programs” – “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.
  • Page 35: Step 5 Checking Operations With The Diagnosis Program

    Power supply (Pin No. of Connector) CH0 : B3 CH2 : B31 Phase-A+ Phase-A+ CH1 : B11 CH3 : B39 CNT24-4D(PCI)H CH0 : B4 CH2 : B32 Phase-A- CH1 : B12 CH3 : B40 Phase-A- CH0 : B5 CH2 : B33...
  • Page 36: Using 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 CNT24-4D(PCI)H...
  • Page 37 (2) 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. Select the [line receiver input]. Click on the [Use Same Mode]. CNT24-4D(PCI)H...
  • Page 38 2. Setup (3) Click [End] button to finish condition setting. [line receiver input] Click on the [End] Button. CNT24-4D(PCI)H...
  • Page 39 You can test following counter actions by using this diagnosis program Start counting Reset Stop counting (1) Click [Counter Start] button to Start counting Click on the [Counter Start] Button (2) The count value of each counter and their status (AI, U, A, B,and Z) will be displayed CNT24-4D(PCI)H...
  • Page 40 Click on the [Diagnosis Report] Button CAUTION Before executing diagnosis report output, unplug the cable from the board. (2) A diagnosis report is displayed as shown below. * The name of the board you have tested is displayed. - CNT24-4D(PCI)H CNT24-4D(PCI)H...
  • Page 41: Setup Troubleshooting

    Turn off the power to your PC, then unplug the board. Restart the OS and delete the board settings of API-TOOL Configuration. Turn off the PC again, plug the board, and restart the OS. Let the OS detect the board and use API-TOOL Configuration to register board settings. If your problem cannot be resolved Contact your retailer. CNT24-4D(PCI)H...
  • Page 42: External Connection

    To connect an external device to this board, plug the cable from the device into the interface connector shown below. Interface connector (CN1) Connector used (PCR-E96LMD ((mfd. by HONDA) Applicable connectors (PCR-E96FA ((mfd. by HONDA) Figure 3.1. Connecting the Interface Connector CNT24-4D(PCI)H...
  • Page 43: Connector Pin Assignment

    CH0 line receiver B phase input+ L0B+ CH0 line receiver A phase input- L0A- CH0 line receiver A phase input+ L0A+ Ground Not connected N.C. [96] [48] * [Pin numbers specified by HONDA] Figure 3.2. Pin Assignments of Interface Connector < CNT24-4D(PCI)H > CNT24-4D(PCI)H...
  • Page 44: Pcb96Ws And Ccb-96 Signal Assignment

    CH3 line receiver Z phase input- L3Z- L1U+ CH1 line receiver general-purpose input+ CH3 line receiver general-purpose input+ L3U+ L1U- CH1 line receiver general-purpose input- CH3 line receiver general-purpose input- L3U- Ground Ground N.C. Not connected Figure 3.3. PCB96WS signal assignment CNT24-4D(PCI)H...
  • Page 45 CH3 line receiver Z phase input- CH1 line receiver general-purpose input+ L1U+ L3U+ CH3 line receiver general-purpose input+ CH1 line receiver general-purpose input- L1U- L3U- CH3 line receiver general-purpose input- Ground Ground Not connected N.C. Figure 3.4. CCB-96 signal assignment CNT24-4D(PCI)H...
  • Page 46: External Connection-Line Receive Input

    Input pin+ Output pin+ 51Ω Varistor Internal 100Ω circuit Input pin- Output pin- 26LS32 or 51Ω Varistor equivalent to it 1kΩ Minus common Figure 3.5. Line-receiver input circuit CAUTION The general input signal uses the same circuit structure. CNT24-4D(PCI)H...
  • Page 47: Example Connection With A Rotary Encoder

    Power supply (Pin No. of Connector) CH0 : B3 CH2 : B31 Phase-A+ Phase-A+ Phase-A+ CH1 : B11 CH3 : B39 CNT24-4D(PCI)H CH0 : B4 CH2 : B32 CH1 : B12 CH3 : B40 Phase-A- Phase-A- Phase-A- CH0 : B5...
  • Page 48: External Connection-Ttl-Level Input

    Figure 3.8. TTL-level input circuit CAUTION The general input signal uses the same circuit structure. The cable should be 1.5m or less. To prevent malfunction caused by noise, separate the circuit as much as possible from other signal cables and noise sources. CNT24-4D(PCI)H...
  • Page 49: Example Connection With A Rotary Encoder

    Power supply (Pin No. of Connector) CH0 : A10 CH2 : A38 Phase-A Phase-A CH1 : A15 CH3 : A43 CNT24-4D(PCI)H CH0 : A11 CH2 : A39 Phase-B Phase-B CH1 : A16 CH3 : A44 CH0 : A12 CH2 : A40...
  • Page 50: Output Circuit And An Example Connection

    External power supply +5V - +24VDC Board Remote device 10kΩ Plus common Current sink Input output Internal circuit Trangistor Figure 3.10. Open Collector Output Circuit Board Remote device 10kΩ Output TTL-level input Internal circuit Trangistor Figure 3.11. TTL-level Output Circuit CNT24-4D(PCI)H...
  • Page 51: Surge Voltage Countermeasures

    Surge current prevention resistor Output pin Output pin Dark-lighting bypass resistor Ground Ground Figure 3.12. Samples of Surge Voltage Protection CAUTION The protection circuit will not be effective unless it is installed less than 50cm from the load and contact. CNT24-4D(PCI)H...
  • Page 52: Function

    * The minimum phase difference between phases-A and B is 300 nsec. Counting is not performed normally if the phase difference is less than 300 nsec. Figure 4.1. Example counting during 2-phase input CNT24-4D(PCI)H...
  • Page 53: Single-Phase Input

    (phase-A/UP) while the gate control signal (phase-B/DOWN) goes high and stops counting while the gate control signal goes low. Figure 4.3. Example counting during single-phase input with gate control CNT24-4D(PCI)H...
  • Page 54: Multiplication Of Count Input

    (Phase-Z/CLR) Count value * When decremental counting in the CW direction is set, the board performs decremental counting at the rising edge of the phase-A signal while the phase-B input remains low. Figure 4.5. Example counting during synchronous clear CNT24-4D(PCI)H...
  • Page 55: Asynchronous Clear

    The default setting is “only the next phase-Z input is enabled once”. If phase-Z is set as negative logic, a valid signal of phase-Z input is low level. If the phase-Z/CLR input is not used, be sure to set the phase-Z to “disable the phase-Z input.” CNT24-4D(PCI)H...
  • Page 56: Other Function

    A delay of more than four set-cycle clocks may occur depending on noise. If a level changes at a frequency faster than the set-sampling-clock cycle, that level change is invalidated and not correctly counted. Be sure to input signals which are less than the input frequency. CNT24-4D(PCI)H...
  • Page 57: Programmable Timer

    CAUTION The initial state is set to "line-receiver input (00H)." The line receiver input cannot be select for the general-purpose input signals when the TTL level input is used. Only TTL-level input is available. CNT24-4D(PCI)H...
  • Page 58: Status Data

    The initial state varies with external connection states. A, B, and Z phase statuses lag by four cyclical clocks since the status data is available after the filter function is processed. The general-purpose input status indicates the external input status as it is. CNT24-4D(PCI)H...
  • Page 59 4. Function CNT24-4D(PCI)H...
  • Page 60: About Software

    |––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) CNT24-4D(PCI)H...
  • Page 61: About Software For Windows

    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 program development and troubleshooting. CNT24-4D(PCI)H...
  • Page 62: Accessing The Help File

    5. About Software 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. CNT24-4D(PCI)H...
  • Page 63: Using Sample Programs

    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. CNT24-4D(PCI)H...
  • Page 64 5. About Software 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] CNT24-4D(PCI)H...
  • Page 65: Uninstalling The Driver Libraries

    (1) Click on the [Start] button on the Windows taskbar. From the Start Menu, select “Control Panel”. (2) Double-click on the “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.
  • Page 66: About Software For Linux

    # 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...
  • Page 67: Accessing The Help File

    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. CNT24-4D(PCI)H...
  • Page 68: About Hardware

    PCI bus specification 32bit, 33MHz, Universal key shapes supported *2 Dimension (mm) 121.69(L)×105.68(H) *3 Weight 120g Boards with different board numbers are different in these specifications. See Table 6.2 "Different in the specification" at the end of this document. CNT24-4D(PCI)H...
  • Page 69: Block Diagram

    4 channels TTL-level 24-bit counter input x 4 channels 24-bit comparator 24-bit compare register One-shot pulse output x 4 channels (TTL-level output or One-shot pulse output open-collector output can be selected.) 20MHz system clock CNT24-4D(PCI)H Figure 6.1. Block Diagram CNT24-4D(PCI)H...
  • Page 70: Different In The Specification

    6. About Hardware Different in the specification The CNT24-4D(PCI)H different in specifications, depending on the board number as listed below. Table 6.2. Different in the specification CNT24-4D(PCI)H Board No. No.7294 No.7294A No.7294B No.7294C later Power consumption 5VDC 500mA (Max.) 5VDC 500mA (Max.) 5VDC 670mA (Max.)
  • Page 71 3-9-31, Himesato, Nishiyodogawa-ku, 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. [02232015] [03082005] Management No. A-51-006 [02232015_rev7] Parts No. LYES127...

Table of Contents