Advantech PC-LabCard PCI-1784 Manuale utente

1
Copyright
This documentation and the software included with this product are
copyrighted 2002 by Advantech Co., Ltd. All rights are reserved.
Advantech Co., Ltd. reserves the right to make improvements in the
products described in this manual at any time without notice. No part of this
manual may be reproduced, copied, translated or transmitted in any form or
by any means without the prior written permission of Advantech Co., Ltd.
Information provided in this manual is intended to be accurate and reliable.
However, Advantech Co., Ltd. assumes no responsibility for its use, nor for
any infringements of the rights of third parties which may result from its
use.
Acknowledgments
PC-LabCard is a trademark of Advantech Co., Ltd. IBM and PC are
trademarks of International Business Machines Corporation. MS-DOS,
Windows, Microsoft Visual C++ and Visual BASIC are trademarks of
Microsoft Corporation. Intel and Pentium are trademarks of Intel
Corporation. Delphi and C++ Builder are trademarks of Inprise
Corporation.
CE notification
The PCI-1784, developed by ADVANTECH CO., LTD., has passed the CE
test for environmental specifications when shielded cables are used for
external wiring. We recommend the use of shielded cables. This kind of
cable is available from Advantech. Please contact your local supplier for
ordering information.
On-line Technical Support
For technical support and service, please visit our support website at:
http://www.advantech.com/support
Note:
✎ Concerning the environment protection, we’d like to reduce the paper
using for the user’s manual. Starting the page of Appendix C, please find
the PDF file of the CD-ROM.
Part No. 2003178400 1st Edition
Printed in Taiwan July 2002

2

3
Contents
1. INTRODUCTION..................................................................................................................1
1.1 FEATURES........................................................................................................................1
1.2 APPLICATIONS .................................................................................................................4
1.3 INSTALLATION GUIDE...................................................................................................... 4
1.4 SOFTWARE OVERVIEW..................................................................................................... 6
1.5 DEVICE DRIVERS PROGRAMMING ROADMAP .................................................................. 7
1.6 ACCESSORIES .................................................................................................................. 9
2. INSTALLATION..................................................................................................................10
2.1 UNPACKING...................................................................................................................10
2.2 DRIVER INSTALLATION..................................................................................................12
2.3 HARDWARE INSTALLATION............................................................................................13
2.4 DEVICE SETUP & CONFIGURATION................................................................................ 16
3. SIGNAL CONNECTIONS.................................................................................................. 19
3.1 OVERVIEW.....................................................................................................................19
3.2 SWITCH AND JUMPER SETTINGS....................................................................................19
3.3 SIGNAL CONNECTIONS .................................................................................................. 21
APPENDIX A. SPECIFICATIONS........................................................................................ 25
APPENDIX B. BLOCK DIAGRAM ......................................................................................27
APPENDIX C. REGISTER STRUCTURE AND FORMAT...............................................29
C.1 OVERVIEW.................................................................................................................... 29
C.2 I/O PORT ADDRESS MAP .............................................................................................. 29
C.3 COUNTER 0/1/2/3 MODE — BASE+00/04/08/0CH ......................................................33
C.4 COUNTER 0/1/2/3 LATCH DATA — BASE+00/04/08/0CH.............................................35
C.5 COUNTER 0/1/2/3 COMPARE DATA — BASE+10/14/18/1CH........................................ 36
C.6 INTERRUPT CONTROL REGISTER — BASE+20H........................................................... 37
C.7 INTERRUPT STATUS REGISTER — BASE+20H ..............................................................38
C.8 CLEAR INTERRUPT — BASE+24H............................................................................... 39
C.9 CLEAR INTERRUPT — BASE+24H............................................................................... 40

4
C.10 SOFTWARE LATCH — BASE+28H.............................................................................. 41
C.11 BOARD ID — BASE+28H..........................................................................................42
C.12 RESET COUNTER — BASE+2CH................................................................................ 43
C.13 DIGITAL OUTPUT — BASE+30H................................................................................ 44
C.14 DIGITAL INPUT/OUTPUT — BASE+30H ..................................................................... 45
APPENDIX D. OPERATION .................................................................................................47
D.1 QUADRATURE ENCODER INTRODUCTION ...................................................................... 47
D.2 COUNTER MODES ......................................................................................................... 48
D.3 DIGITAL NOISE FILTER .................................................................................................. 49
D.4 LATCH MODE ................................................................................................................ 50
D.5 COUNTER RESET VALUE................................................................................................51
D.6 TIMER FUNCTION.......................................................................................................... 51
D.7 INTERRUPT FUNCTION .................................................................................................. 52

1
1. Introduction
Thank you for buying the Advantech PCI-1784. The PCI-1784 is a 4-
axis quadrature encoder and counter card for PCI bus. This card
includes four 32-bit quadruple AB phase encoder counters, 8-bit timer
with multi range time-base selector and four isolated digital input and
four isolated digital output. Its flexible interrupt sources are suitable for
motor control and position monitoring.
The following sections of this chapter will provide further information
about features of the multifunction cards, a Quick Start for installation,
together with some brief information on software and accessories for the
PCI-1784 card.
1.1 Features
❏Four 32-bit up/down counters
❏Single ended or differential inputs
❏Pulse/direction and up/down counter
❏x1, x2, x4 counts for each encoder cycle
❏Optically isolated up to 2500 VDC
❏4-stage digital filter with selectable sampling rate
❏On board 8-bit timer with wide range time-base selector
❏Multiple interrupt sources for precision application
❏Four isolated digital input
❏Four isolated digital output with flexible function
❏Board ID
The Advantech PCI-1784 offers the following main features:
Encoder Interface
Each channel includes a decoding circuit for incremental quadrature
encoding. Inputs accept either single-ended or differential signals.
Quadrature input works with or without an index, allowing linear or
rotary encoder feedback.

2
Counters
The PCI-1784 has four independent 32-bit counters. The maximum
quadrature input rate is 2 MHz, and the maximum input rate in counter
mode is 8 MHz. You can individually configure each counter for
quadrature decoding, pulse/direction counting or up/down counting.
Digital Input and Interrupts
The PCI-1784 provides four digital input channels. Each channel
accepts digital input as an index input for a rotary encoder or as a home
sensor input for a linear encoder. The card can generate an interrupt to
the system based on a signal from its digital inputs, overflow/underflow
and over-compare/under-compare of its counters, or on a programmed
time interval. It can repeatedly generate interrupts at any time interval
you specify, from 20 micro second to 51 second. These interrupts let
you precisely monitor the speed of a control system.
Flexible Digital Output function
The PCI-1784 provides four digital output channels. Each channel
accepts digital output as a normal TTL output for a rotary encoder, or as
an indicated output with pulse/level mode for a linear encoder. The PCI-
1784 can generate an indicated output based on a signal from over-
compare/under-compare of its counters. The pulse width of an indicated
output is depends on the counter clock or clear interrupt.
Special Shielded Cable for Noise Reduction
The PCL-10137H shielded cable is specially designed for the PCI-1784
for reducing noise. Its wires are all twisted pairs, and the input signals
and output signals are separately shielded, providing minimal cross talk
between signals and the best protection against EMI/EMC problems.
Keeping the Counter Values and the Output Status after system
reset
Users can independently use the four counter channels. When the
system is hot reset (power not shut down), the PCI-1784 can either
retain the last counter values and the output status, or return to its

3
default configuration, depending on jumper setting. This practical
function eliminates danger caused by miss-operation during unexpected
system reset.
Board ID
The PCI-1784 has a built-in DIP Switch that helps define each card’s ID
when multiple PCI-1784 cards have been installed on the same PC
chassis. The board ID setting function is very useful when users build
their system with multiple PCI-1784 cards. With correct Board ID
settings, you can easily identify and access each card during hardware
configuration and software programming.
Note:
✎ For detailed specifications of the PCI-1784, please refer to Appendix A,
Specifications.

4
1.2 Applications
❏Motion control
❏Position sensing, monitoring and measuring
❏Coordinate measuring machines
❏X-Y table monitors
❏Robotics
❏Machine control
1.3 Installation Guide
Before you install your PCI-1784 card, please make sure you have the
following necessary components:
❏PCI-1784 DA&C card
❏PCI-1784 User’s Manual
❏Driver software Advantech DLL drivers
(included in the companion CD-ROM)
❏Wiring cable PCL-10137H (option)
❏Wiring board ADAM-3937 (option)
❏Computer Personal computer or workstation with a
PCI-bus slot (running Windows 2000/95/98/
NT/ME/XP)
Some other optional components are also available for enhanced
operation:
❏Application software ActiveDAQ, GeniDAQ or other third-party
software packages
After you get the necessary components and maybe some of the
accessories for enhanced operation of your Multifunction card, you can
then begin the Installation procedures. Figure 1-1 on the next page
provides a concise flow chart to give users a broad picture of the
software and hardware installation procedures:

5
Fig. 1-1 Installation Flow Chart
Install Driver from CD-ROM, then power-off PC
Install Hardware and power-on PC
Use driver utility to configure hardware
Use test utility to test hardware
Read examples & driver manual
Start to write your own application

6
1.4 Software Overview
Advantech offers a rich set of DLL drivers, third-party driver support
and application software to help fully exploit the functions of your PCI-
1784 card:
❏Device Drivers (on the companion CD-ROM)
❏LabVIEW driver*
❏Advantech ActiveDAQ
❏Advantech GeniDAQ
Programming choices for DA&C cards: You may use Advantech
application software such as Advantech Device Drivers. On the other
hand, advanced users are allowed another option for register-level
programming, although not recommended due to its laborious and time-
consuming nature.
Device Drivers
The Advantech Device Drivers software is included on the companion
CD-ROM at no extra charge. It also comes with all the Advantech
DA&C cards. Advantech’s device drivers features a complete I/O
function library to help boost your application performance. The
Advantech Device Drivers for Windows 2000/95/98/ ME/NT/XP
works seamlessly with development tools such as Visual C++, Visual
Basic, Inprise C++ Builder and Inprise Delphi.
Register-level Programming
Register-level programming is reserved for experienced programmers
who find it necessary to write codes directly at the level of device
registers. Since register-level programming requires much effort and
time, we recommend that you use the Advantech Device Drivers
instead. However, if register-level programming is indispensable, you
should refer to the relevant information in Appendix C, Register
Structure and Format, or to the example codes included on the
companion CD-ROM.
Indice
Altri manuali Advantech Scheda di rete

Advantech
Advantech MIC-3660 Manuale utente

Advantech
Advantech PCM-3680 Manuale di installazione e funzionamento

Advantech
Advantech Data Acquisition Modules ADAM 4000 Manuale utente

Advantech
Advantech ECU-P1524SPE Manuale di installazione e funzionamento

Advantech
Advantech PCL-843 Manuale utente

Advantech
Advantech Network Device USB-4761 Manuale utente
Manuali Scheda di rete popolari di altre marche

Buffalo
Buffalo AirStation WLI-PCM-L11GP Manuale utente

National Instruments
National Instruments NI 9234 Manuale utente

Hama
Hama 49276 Manuale utente

Linksys
Linksys WCF54G - Wireless-G Compact Flash Card Manuale operativo

Compaq
Compaq Wireless LAN 100 Manuale utente

Bose
Bose PowerMatch Dante Manuale utente











