Contec CNT24-4D(PCI) User Manual

CNT24-4D(PCI)
24Bit Differencial Up/Down Counter Board
for PCI
User’s Guide
Copyright
Copyright 2000 CONTEC Co., LTD. ALL RIGHTS RESERVED No part of this document may be copied or reproduced in any form
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.
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 nor for results obtained by the user as a result of using this product.
Trademarks
MS, Microsoft, MS-DOS and Windows are trademarks of Microsoft Corporation. Other brand and product names are trademarks of their respective holder.
CNT24-4D(PCI) i
Product Configuration
- CNT24-4D(PCI) Board…1
- CNT24-4D(PCI) SETUP DISK (3.5inch/1.44MB) …1
- User’s Guide (this booklet)…1
Unpacking:
This board is specially packed in an anti-static bag to prevent damage in shipping.
Check the contents to make sure that you have everything listed above. If you do not have all the items, contact your distributor or CONTEC group office where you purchased.
Note!
Do not remove the board from its protective packaging until the computer case is open and ready for installation. Electrical static can cause damage to electrical components.
CNT24-4D(PCI)ii
Table of Contents
Copyright............................................................................i
Trademarks ........................................................................i
Product Configuration ..................................................... ii
1. Introduction .............................................................1
Features.........................................................................1
Limited Three-Year Warranty......................................2
How to Obtain Service..................................................2
Liability.........................................................................2
Handling Precautions...................................................3
About the Manual.........................................................4
2. Component Locations and Setting..............................5
Component Locations........................................................5
Setting the Board ID .........................................................6
Setting Procedure .........................................................6
Setting One-shot Pulse Output Signals ...........................7
Setting Terminators..........................................................8
3. Board Setup .............................................................9
Use CONTEC Windows Software Products.....................9
When Not Using CONTEC Software for Windows .......10
For Windows 98 Systems............................................10
For Windows 95 Systems............................................14
For other OS systems .................................................19
4. Connection with External Devices............................ 21
Interface Connector.........................................................21
Connecting the Interface Connector..........................21
Interface-Connector Signal Assignment....................22
PCB96WS and CCB-96 Signal Assignment ..............23
Connection of External Signals......................................24
Line Receiver Input Circuit and an Example
Connection...................................................................24
CNT24-4D(PCI) iii
TTL-level Input Circuit
and an Example Connection ......................................25
Output Circuit and an Example Connection.............25
Example Connection with a Rotary Encoder.................27
Measures against Voltage Surges ..................................28
5. I/O Port Bit Assignment .......................................... 29
I/O Port Bit Assignment .................................................29
Setting Data................................................................30
Count Flow......................................................................31
Operation Commands.....................................................32
Description of Output Commands..................................34
Initial Count Value (Command CH0:00H:, CH1:05H:,
CH2:0AH:, CH3:0FH).................................................34
Operation Mode (Command CH0:01H:, CH1:06H:,
CH2:0BH:, CH3:10H) .................................................34
Each Counter Operating Mode ..................................36
Phase Z/CLR Input (Command CH0:02H, CH1:07H,
CH2:0CH, CH3:11H)...................................................40
Compare Register (Command CH0:03H, CH1:08H,
CH2:0DH, CH3:12H)..................................................41
Digital Filter (Command CH0:04H, CH1:09H,
CH2:0EH, CH3:13H) ..................................................42
Count Value Latch (Command 14H)..........................43
Interrupt Mask (Command 15H)...............................44
Sense Reset (Command 16H).....................................44
Programmable Timer (Command timer data:17H,
Timer start:18H).........................................................45
One-shot Pulse (Command 19H)................................46
General-purpose Input Signal Select
(Command 1AH) .........................................................48
Description of Input Commands ....................................49
Count Read (Command CH0:00H, CH1:05H,
CH2:0AH, CH3:0FH)..................................................49
Status Data (Command CH0:01H, CH1:06H,
CH2:0BH, CH3:10H) ..................................................49
Interrupt Mask (Command 15H)...............................51
CNT24-4D(PCI)iv
Sense Port (Command 16H).......................................51
General-purse Input Signal Select
(Command 1AH) .........................................................52
Initialization....................................................................53
6. Board Specifications................................................ 55
Block Diagram.................................................................55
Specifications...................................................................56
7. Index ..................................................................... 59
CNT24-4D(PCI) v
List of Figures
Figure 2.1. Component Locations............................................... 5
Figure 2.2. Board ID Settings (SW1).......................................... 6
Figure 2.3. Switch for setting one-shot-pulse output signals....... 7
Figure 2.4. Terminator setting switches...................................... 8
Figure 4.1. Connecting the interface connector ........................ 21
Figure 4.2. Connectors in use................................................... 21
Figure 4.3. Interface-connector signal assignment.................... 22
Figure 4.4. PCB96WS and CCB-96 signal assignment............. 23
Figure 4.5. Line-receiver input circuit
and an example connection..................................... 24
Figure 4.6. TTL-level input circuit and an example connection 25 Figure 4.7. Open-collector output circuit and an example
connection.............................................................. 26
Figure 4.8. TTL-level output circuit and an example connection26 Figure 4.9. Example connection with a rotary encoder
(Line receiver input) ............................................... 27
Figure 4.10. Example connection with a rotary encoder
(TTL input)............................................................ 27
Figure 4.11. Example measures against voltage surges............... 28
Figure 5.1. Output port............................................................. 29
Figure 5.2. Input port ............................................................... 29
Figure 5.3. Count flow.............................................................. 31
Figure 5.4. Example counting during 2-phase input.................. 36
Figure 5.5. Example counting during single-phase input .......... 36
Figure 5.6. Example counting during single-phase input
with gate control attached....................................... 37
CNT24-4D(PCI)vi
Figure 5.7. Example counting during synchronous clear .......... 37
Figure 5.8. Example counting during asynchronous clear......... 38
Figure 5.9. Example counting when count input multiplication
is set....................................................................... 39
Figure 5.10. Phase Z enable frequency ZSEL=0
(Positive logic) ....................................................... 40
Figure 5.11. Digital filter............................................................ 42
Figure 6.1. Block Diagram....................................................... 55
CNT24-4D(PCI) vii
List of Tables
Table 2.1. One-shot-pulse output signal settings.......................... 7
Table 2.2. Terminator settings...................................................... 8
Table 5.1. Output commands..................................................... 32
Table 5.2. Input commands........................................................ 33
Table 5.3. Counter operation modes .......................................... 35
Table 5.4. Switching counting directions................................... 35
Table 5.5. Phase Z input mode................................................... 40
Table 5.6. Digital filter clock settings........................................ 43
Table 5.7. Relationship between programmable timer setting data
and timer interrupt cycles.......................................... 46
Table 5.8. Relationship between specified one-shot-pulse width
data and pulse widths................................................ 47
Table 5.9. Initialized state.......................................................... 53
Table 6.1. Specifications............................................................ 56
CNT24-4D(PCI)viii
1. Introduction
Thank you for purchasing the CONTEC CNT24-4D(PCI). The CNT24-4D(PCI) is a PCI bus-compliant interface that counts
digital signals from an external device. This board should be inserted into a PC's PCI bus slot or PCI bus unit.
Read this guide thoroughly before you build a system including creation of application programs and connection with external devices.
Support software sold separately
- Driver Software Package (Option) API-PAC(W32) Please follow the setup instructions of the User’s manual shipped
with the software products and/or the help files of the package to setup our interface board(s) to your system.
For details of CONTEC software products, please contact our sales agencies.
Features
- The PCI bus-compliant interface board can be used with the PC­98 series or PC-AT (DOS/V machines) equipped with a PCI bus expansion slot.
- This single board can count up and down 24 bits for four channels.
- The board can count two-phase signals of a rotary encoder or linear gauge, for example.
- The board allows you to select a photocoupler insulated input or TTL-level input for each channel.
- The board can either generate interrupts or output signals when a count of each channel matches any specified value.
- The board is equipped with a programmable timer to allow interrupts to be generated periodically according to a specified timer value.
- The board is equipped with one general-purpose input signal for each channel (both photocoupler and TTL).
Introduction
CNT24-4D(PCI) 1
Introduction
Limited Three-Year Warranty
CONTEC Interface boards are warranted by CONTEC Co., LTD. to be free from defects in material and workmanship for up to three years from the date of purchase by the original purchaser.
Repair will be free of 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 boards. The warranty is not applicable if the device has been tampered with or damaged through abuse, mistreatment, neglect, or unreasonable use, or if the original invoice is not included, in which case repairs will be considered beyond the warranty policy.
How to Obtain Service
For replacement or repair, return the device freight prepaid, with a copy of the original invoice. Please obtain a Return Merchandise Authorization Number (RMA) from the CONTEC group office where you purchased before returning any product.
* No product will be accepted by CONTEC group without the
RMA number.
Liability
The obligation of the warrantor is solely to repair or replace the product. In no event will the warrantor be liable for any incidental or consequential damages due to such defect or consequences that arise from inexperienced usage, misuse, or malfunction of this device.
CNT24-4D(PCI)2
Handling Precautions
Take the following precautions when handling this board.
- Never modify the board. The manufacturer cannot be responsible for any board that has been modified by the user.
- Protect the board against shock and do not bend the board or it will be damaged.
- Do not touch the gold-plated lines (edge connectors) on the board. Touching causes poor contact. If you accidentally touch the connectors, wipe it clean using industrial alcohol.
- The board has a switch that needs to be set before using the board. Be sure to verify the switch before fitting the board into the slot.
- Always be sure to set the switches and jumpers on the board as designated or it will fail.
- Always be sure to connect only the designated signals to the connectors on the board or it will fail.
- Install the board in the PCI expansion slot in the PC.
- Do not insert or remove the board into or from the slot with the PC turned on or the board will fail. Be sure to turn off either the PC or the I/O expansion unit before inserting or removing the board.
- The total current consumption of boards to be installed in the PCI bus expansion slots of the PC must not exceed the power supply capacity permitted to the PC.
Introduction
CNT24-4D(PCI) 3
Introduction
About the Manual
This manual consists of the following chapters: Chapter 1 Component Identification and Settings
Chapter 2 Setup
Chapter 3 Board Setup
Chapter 4 Connection with External Devices
Chapter 5 I/O Port Bit Assignment
Chapter 6 Board Specifications
Identifies each component of the board and explains how to set the switch, for example.
Explains how to set up the board to use it.
Explains how to set up the board.
Explains the interface connector and connection precautions.
Explains each I/O register which the board uses, bit assignment, and bit definitions.
Explains the specifications and circuit block diagram.
CNT24-4D(PCI)4
Component Locations and Setting
2. Component Locations and Setting
Component Locations
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
CNT24-4D(PCI) 5
Component Locations and Setting
Setting the Board ID
When installing multiple CNT24-4D (PCI) boards in one PC, you need to set their IDs in order to distinguish one board from another. Each ID should be set to a unique value.
A board ID can be set in a range of 0 through F and 16 boards can be distinguished at maximum.
When using only board, its factory setting (a board ID of 0) must be used.
Setting Procedure
The board ID should be set with the rotary switch on the board. Turn the SW1 twist knob to set the ID.
SW1
BOARD ID
9
7
A
6
B
5
C
4
D
3
E
2
Figure 2.2. Board ID Settings (SW1)
1
0
F
Factory setting (board ID=0)
CNT24-4D(PCI)6
Component Locations and Setting
Setting One-shot Pulse Output Signals
Set the type of one-shot-pulse output signals with SW2. The TTL-level output or open collector output can be selected by channel. By referring to the following table, set the one-shot pulse output signal.
3 2 4
1
ON
SW2
Figure 2.3. Switch for setting one-shot-pulse output signals Table 2.1. One-shot-pulse output signal settings
Bit Channel TTL-level output Open-collector output
4 ch3 ON OFF 3 ch2 ON OFF 2 ch1 ON OFF 1 ch0 ON OFF
Factory Setting: ON
CNT24-4D(PCI) 7
Component Locations and Setting
Setting Terminators
Using SW3 through SW6, set whether or not to insert terminators. By referring to the following table, set whether or not to insert
terminators.
ON
SW6(ch0)
3 2 4
1
ON
SW5(ch1)
1 32 4
ON
SW4(ch2)
3 2 4
1
ON
SW3(ch3)
3 2 4
1
Factory Setting: ON
Figure 2.4. Terminator setting switches Table 2.2. Terminator settings
Bit Input signal Insert terminator Do not insert terminator
4 General purpose (U) ON OFF 3 Phase Z ON OFF 2 Phase B ON OFF 1 Phase A ON OFF
CNT24-4D(PCI)8
3. Board Setup
The board setup method varies according to the operating system being used.
Use CONTEC Windows Software Products
For MS Windows OS systems, we recommend you to use our Windows software products (optional).
< Examples of CONTEC software products for Windows>
- Driver Software Package (Option) API-PAC(W32)
Please follow the setup instructions of the User’s manual shipped with the software products and/or the help files of the package to setup our interface board(s) to your system.
For details of CONTEC software products, please contact our sales agencies.
Board Setup
CNT24-4D(PCI) 9
Board Setup
When Not Using CONTEC Software for Windows
When you don't use CONTEC software for Windows, the board setup procedure varies with each OS.
For Windows 98 Systems
Every PCI bus board/device will be automatically assigned required system resources, such as I/O address range and interrupt level, by the system whenever the system is turned on.
Under Windows 98 OS, before using the board you should register the board information, such as assigned resources, to the OS. This procedure is called hardware installation. After the hardware installation is done, Windows 98 can then manage the board information from its registers.
Following is hardware installation steps. After finished the installation, you are supposed to confirm the registered board information from Windows 98 registers.
This procedure does not install board driver(s). Lately you should install driver program(s) yourself.
CNT24-4D(PCI)10
Board Setup
Hardware Installation Steps
(1) Set the board ID. (2) Be sure the power of the personal computer is turned off; then
plug the board into a PCI bus slot in the system.
(3) Turn the personal computer ON to start up Windows 98. (4) Because this is the first time Windows 98 detected the board
from the system, Windows 98 will display a message of [New Hardware] on the screen and start run an [Add New Hardware Wizard] program. After you find a massage of [PCI Multimedia Device] from the program window, click [Next>] to continue.
(5) In the next dialog box, select a radio button of [Search for the
best driver for your device. (Recommended).], then click [Next>] to continue.
(6) In the next dialog box, select both of the [Floppy disk drives
(F)] and [Specify Location (L)] check boxes, then enter the drive name, such as "A:", and the directory name, WIN95, into the [Location] field. Insert the attached FD into the disk drive, then click [Next>] to continue.
(7) In the [Windows driver file search for the device] dialog box,
check that "CONTEC Co., Ltd.-Board Name" and "CNT_PI0.INF" in the [Location of driver] has been listed, then click [Next>] to continue.
(8) In the next dialog box, you will find a message of "Windows
has finished installing the software that your new hardware device requires." Then you click [Finish] to complete the installation of the board. After completed the board installation, you are supposed to confirm the registered board information from Windows 98 registers. The "Checking resources" part of this section explains you how to do it.
CNT24-4D(PCI) 11
Board Setup
Method of installing two or more boards:
(1) Install the first board correctly. (2) Be sure to complete installation of the first board before
attempting to install a second one. (3) Exit Windows 98 and turn the personal computer off. (4) Set the board ID of the second board that should be different
from the first one. Then plug the board into a PCI bus slot. (5) Turn the personal computer on and start the Windows 98 again. (6) Windows 98 will display a massage of [New Hardware] on the
screen and start run an [Add New Hardware Wizard] program.
After you find a massage of [CONTEC Co., Ltd.-Board Name]
from the program window, click [Next>] to continue. (7) In the next dialog box, select a radio button of [Display a list
of all the drivers in a specific location, so you can select the
driver you want.], then click [Next>] to continue. (8) From the [Models] window, select "CONTEC Co., Ltd.-
Board Name" and click [Next>] to continue. (9) In the [Windows driver file search for the device] dialog box,
there should be the message of "CONTEC Co., Ltd.-Board
Name" and "CONTEC~*.INF" in the [Location of driver]
window, after confirmed this message click [Next>] to
continue. (A number which is assigned by the OS will
replace the "*" mark.) (10) In the next dialog box, you will find a message of "Windows
has finished installing the software that your new hardware
device requires." Then you click [Finish] to complete the
installation of the board. After completed the board
installation, you are supposed to confirm the registered board
information from Windows 98 registers again. For installing the third board and any additional boards, follow the
same steps as those for installing a second board. Before you can install a third board or additional boards, all the boards that are already installed must be in their PCI bus slots.
CNT24-4D(PCI)12
Loading...
+ 49 hidden pages