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.
Thank you for buying the Advantech PCI-1784. The PCI-1784 is a 4axis 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 V
DC
❏ 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.
1
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 PCI1784 can generate an indicated output based on a signal from overcompare/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
2
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.
3
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
❏
Wiring cable PCL-10137H (option)
(included in the companion CD-ROM)
❏
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:
4
Install Driver from CD-ROM, then power-off P C
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
Fig. 1-1 Installation Flow Chart
5
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 PCI1784 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 timeconsuming 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, RegisterStructure and Format, or to the example codes included on the
companion CD-ROM.
6
1.5 Device Drivers Programming Roadmap
This section will provide you a roadmap to demonstrate how to build
an application from scratch using Advantech Device Drivers with your
favorite development tools such as Visual C++, Visual Basic, Delphi
and C++ Builder. The step-by-step instructions on how to build your
own applications using each development tool will be given in the
Device Drivers Manual. Moreover, a rich set of example source codes
are also given for your reference.
Programming Tools
Programmers can develop application programs with their favorite
development tools:
❏
Visual C++
❏
Visual Basic
❏
Delphi
❏
C++ Builder
For instructions on how to begin programming works in each
development tool, Advantech offers a Tutorial Chapter in the DeviceDrivers Manual for your reference. Please refer to the corresponding
sections in this chapter on the Device Drivers Manual to begin your
programming efforts. You can also take a look at the example source
codes provided for each programming tool, since they can get you very
well-oriented.
The Device Drivers Manual can be found on the companion CD-ROM.
Or if you have already installed the Device Drivers on your system,
The Device Drivers Manual can be readily accessed through the Start
button:
The example source codes could be found under the corresponding
installation folder such as the default installation path:
\Program Files\Advantech\ADSAPI\Example s
7
For information about using other function groups or other
development tools, please refer to the Creating Windows 95/NT/2000Application with Device Drivers chapter and the Function Overview
chapter on the Device Drivers Manual.
Programming with Device Drivers Function Library
Advantech Device Drivers offers a rich function library to be utilized
in various application programs. This function library consists of
numerous APIs that support many development tools, such as Visual
C++, Visual Basic, Delphi and C++ Builder.
According to their specific functions or services, those APIs can be
categorized into several function groups:
❏
Digital Input/Output Function Group
❏
Counter Function Group
❏
Port Function Group (direct I/O)
❏
Event Function Group
For the usage and parameters of each function, please refer to the
Function Overview chapter in the Device Drivers Manual.
Troubleshooting Device Drivers Error
Driver functions will return a status code when they are called to
perform a certain task for the application. When a function returns a
code that is not zero, it means the function has failed to perform its
designated function. To troubleshoot the Device Drivers error, you can
pass the error code to DRV_GetErrorMessage function to return the
error message. Or you can refer to the Device Drivers Error Codes
Appendix in the Device Drivers Manaul for a detailed listing of the
Error Code, Error ID and the Error Message.
8
1.6 Accessories
Advantech offers a complete set of accessory products to support the
PCI-1784 card. These accessories include:
Wiring Cable
❏
PCL-10137H The PCL-10137H shielded cable is specially designed
Wiring Boards
❏
ADAM-3937 The ADAM-3937 is a 37-pin D-type wiring terminal
for PCI-1784 cards to provide high resistance to noise.
To achieve a better signal quality, the signal wires are
twisted in such a way as to form a “twisted-pair cable”,
reducing cross-talk and noise from other signal sources.
Furthermore, its analog and digital lines are separately
sheathed and shielded to neutralize EMI/EMC
problems.
module for DIN-rail mounting. This terminal module
can be readily connected to the Advantech PC-Lab
cards and allow easy yet reliable access to individual
pin connections for the PCI-1784 card.
9
2. Installation
This chapter gives users a package item checklist, proper instructions
about unpacking and step-by-step procedures for both driver and card
installation.
2.1 Unpacking
After receiving your PCI-1784 package, please inspect its contents first.
The package should contain the following items:
The PCI-1784 card harbors certain electronic components vulnerable to
electrostatic discharge (ESD). ESD could easily damage the integrated
circuits and certain components if preventive measures are not carefully
paid attention to.
Before removing the card from the antistatic plastic bag, you should
take following precautions to ward off possible ESD damage:
" Touch the metal part of your computer chassis with your hand to
discharge static electricity accumulated on your body. Or one can
also use a grounding strap.
" Touch the anti-static bag to a metal part of your computer chassis
before opening the bag.
" Take hold of the card only by the metal bracket when removing it
out of the bag.
After taking out the card, first you should:
" Inspect the card for any possible signs of external damage (loose or
damaged components, etc.). If the card is visibly damaged, please
notify our service department or our local sales representative
immediately. Avoid installing a damaged card into your system.
10
Also pay extra caution to the following aspects to ensure proper
installation:
! Avoid physical contact with materials that could hold static
electricity such as plastic, vinyl and Styrofoam.
! Whenever you handle the card, grasp it only by its edges. DO NOT
TOUCH the exposed metal pins of the connector or the electronic
components.
Note:
✎ Keep the anti-static bag for future use. You might need the original bag to
store the card if you have to remove the card from PC or transport it
elsewhere.
11
2.2 Driver Installation
We recommend you to install the driver before you install the PCI1784 card into your system, since this will guarantee a smooth
installation process.
The Advantech Device Drivers Setup program for the PCI-1784 card is
included on the companion CD-ROM that is shipped with your DA&C
card package. Please follow the steps below to install the driver
software:
Step 1: Insert the companion CD-ROM into your CD-ROM drive.
Step 2: The Setup program will be launched automatically if you have
the autoplay function enabled on your system. When the Setup
Program is launched, you’ll see the following Setup Screen.
Note:
✎ If the autoplay function is not enabled on your computer, use Windows
Explorer or Windows Run command to execute SETUP.EXE on the
companion CD-ROM.
Fig. 2-1 The Setup Screen of Advantech Automation Software
12
Step 3: Select the Individual Drivers option.
Step 4: Select the specific device then just follow the installation
instructions step by step to complete your device driver setup.
Fig. 2-2 Different options for Driver Setup
For further information on driver-related issues, an online version of
Device Drivers Manual is available by accessing the following path:
✎ Make sure you have installed the driver first before you install the card
(please refer to 2.2 Driver Installation)
After the DLL driver installation is completed, you can now go on to
install the PCI-1784 card in any PCI slot on your computer. But it is
suggested that you should refer to the computer user manual or related
documentation if you have any doubt. Please follow the steps below to
install the card on your system.
13
Step 1: Turn off your computer and unplug the power cord and cables.
TURN OFF your computer before installing or removing any
components on the computer.
Step 2: Remove the cover of your computer.
Step 3: Remove the slot cover on the back panel of your computer.
Step 4: Touch the metal part on the surface of your computer to
neutralize the static electricity that might be on your body.
Step 5: Insert the PCI-1784 card into a PCI slot. Hold the card only by
its edges and carefully align it with the slot. Insert the card
firmly into place. Use of excessive force must be avoided,
otherwise the card might be damaged.
Step 6: Fasten the bracket of the PCI card on the back panel rail of the
Step 8: Replace the cover of your computer chassis. Re-connect the
cables you removed in step 2.
Step 9: Plug in the power cord and turn on the computer.
Note:
✎ In case you installed the card without installing the DLL driver first,
Windows 95/98/ME will recognize your card as an “unknown device” after
rebooting, and will prompt you to provide the necessary driver. You should
ignore the prompting messages (just click the Cancel button) and set up the
driver according to the steps described in 2.2 Driver Installation.
After the PCI-1784 card is installed, you can verify whether it is
properly installed on your system in the Device Manager:
1. Access the Device Manager through Control Panel/System/DeviceManager.
2. The device name of the PCI-1784 should be listed on the DeviceManager tab on the System Property Page.
14
Loading...
+ 39 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.