Page 3 - Contents
3 Contents 1. INTRODUCTION .................................................................................................................. 1 1.1 F EATURES ........................................................................................................................ 1 1.2 A PPLICATIONS ....
Page 5 - Encoder Interface
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 isola...
Page 7 - Board ID; when multiple PCI-1784 cards have been installed on the same PC
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 ch...
Page 8 - Installation Guide; Driver software
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...
Page 10 - Software Overview; Device Drivers; Structure and Format
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 choic...
Page 11 - Device Drivers Programming Roadmap; Programming Tools; Start
7 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 ...
Page 16 - Driver Installation; We recommend you to install the driver before you install the PCI-; Run
12 2.2 Driver Installation We recommend you to install the driver before you install the PCI- 1784 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...
Page 17 - Hardware Installation; Driver Installation
13 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 Dev...
Page 18 - Cancel
14 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 th...
Page 19 - Fig. 2-3 The device name listed on the Device Manager; If you do see your device name; Remove
15 Fig. 2-3 The device name listed on the Device Manager Note: ✎ If your card is properly installed, you should see the device name of your card listed on the Device Manager tab. If you do see your device name listed on it but marked with an exclamation sign “!”, it means your card has not been corr...
Page 20 - Board selection; Board Selection
16 2.4 Device Setup & Configuration The PCI-1784 Utility program is a utility that allows you to setup, configure and test your device, and later stores your settings on the system registry. These settings will be used when you call the APIs of Advantech Device Drivers. Board selection After you...
Page 21 - Setting Up and configure the device; Click
17 Setting Up and configure the device Click Setup to configure each parameter. The dialog box will appear as seen below (Fig. 2-5): Fig. 2-5 The ‘Setup’ dialog box
Page 23 - Signal Connections; Switch and Jumper Settings; The PCI-1784 card has one function switch and five jumper settings.; Names of Jumpers; Keep last status after hot reset
19 3. Signal Connections 3.1 Overview Maintaining signal connections is one of the most important factors in ensuring that your application system is sending and receiving data correctly. A good signal connection can avoid unnecessary and costly damage to your PC and other hardware devices. This cha...
Page 24 - the PCI bus. Some users will want to clear their counter and digital
20 Setting the time to reset the digital outputs and the counter value Some users will want the capability of clearing each counter and the isolated digital output when the system (or PC) issues a reset signal on the PCI bus. Some users will want to clear their counter and digital output only as par...
Page 25 - Signal Connections; Pin Assignment; Figure 3-2 shows the pin assignments for the 37-pin I/O connector on; I/O Connector Signal Description; Table 3-2 I/O Connector Signal Description
21 3.3 Signal Connections Pin Assignment Figure 3-2 shows the pin assignments for the 37-pin I/O connector on the PCI-1784. EGND 1 20 CH0A- CH0A+ 2 21 CH0B- CH0B+ 3 22 CH0Z- CH0Z+ 4 23 CH1A- CH1A+ 5 24 CH1B- CH1B+ 6 25 CH1Z- CH1Z+ 7 26 CH2A- CH2A+ 8 27 CH2B- CH2B+ 9 28 CH2Z- CH2Z+ 10 29 CH3A- CH3A+ ...
Page 26 - Quadrature encoder input; Figure 3-3: Quadrature encoder input connections
22 Quadrature encoder input Single ended outputs of Encoder A B I GND PCI-1784 connector CHnA+ CHnB+ CHnZ+ EGND Differential outputs of Encoder or Line driver GND A+A-B+B-I+I- PCI-1784 connector EGND CHnA+ CHnA- CHnB+ CHnB- CHnZ+ CHnZ- Pulse/Direction Counter PULSE DIR GND PCI-1784 connector CHnA+ C...
Page 27 - Counter; Up Counter; Down Counter; cause unexpected result.
23 Up/Down Counter UP DN GND PCI-1784 connector CHnA+ CHnB+ EGND Two_Pulse Up Counter UP DN GND PCI-1784 connector CHnA+ CHnB+ EGND Two_Pulse Down Counter UP DN GND PCI-1784 connector CHnA+ CHnB+ EGND Figure 3-4: Quadrature encoder (up/down counter) input connections Note: ✎ In case you want to conn...
Page 28 - Isolated digital input; Figure 3-4: Isolated digital input connections; Isolated digital output; Figure 3-5: Isolated digital output connections
24 Isolated digital input VCC GND IDI0~IDI3 Internal External IDI COM DC (5-30V) Figure 3-4: Isolated digital input connections Isolated digital output Isolated Protection Circuit TTL level TTL level Internal IDO0~IDO3 External EGND Figure 3-5: Isolated digital output connections
Page 29 - Appendix A. Specifications; Encoder Output
25 Appendix A. Specifications Encoder Output Number of Axis 4 (independent) Resolution 32-bit w/ Digital Filter 1.0 MHz Max. Quadrature Input Frequency w/o Digital Filter 2.0 MHz Digital Filter 4 stage Drive Type Single-ended or differential Counter Mode Quadrature, Up/Down, Count/Direction Optical ...
Page 31 - Appendix B. Block Diagram
27 Appendix B. Block Diagram P C I B U S ADD RE SS , CON T R O L AND D A T A B U S P C I I N T E R F A C E 3 2 - B I T M U L T I - M O D E U P / D O W N C O U N T E R 3 2 - B I T M U L T I - M O D E U P / D O W N C O U N T E R C O N T ROL UN IT 3 2 - B I T M U L T I - M O D E U P / D O W N C O U N T...
Page 33 - Appendix C. Register Structure and Format
29 Appendix C. Register Structure and Format C.1 Overview The PCI-1784 is delivered with an easy-to-use 32-bit DLL driver for user programming under the Windows 2000/95/98/NT/ME/XP operating system. We advise users to program the PCI-1784 using the 32-bit DLL driver provided by Advantech to avoid th...
Page 37 - Counter input mode control
33 C.3 Counter 0/1/2/3 mode — BASE+00/04/08/0CH Table C-2 PCI-1784 Register for counter 0/1/2/3 mode 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Counter 0 Mode DI3 DI2 DI1 DI0 TM IX SW DF UL OL RF M2 M1 M0 00H W Counter 1 Mode DI3 DI2 DI1 DI0 TM I...
Page 39 - Counter latch data
35 C.4 Counter 0/1/2/3 latch data — BASE+00/04/08/0CH Table C-3 PCI-1784 Register for counter 0/1/2/3 latch data 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Counter 0 Latch Data D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 00H R D31 D30 D...
Page 40 - Counter compare data
36 C.5 Counter 0/1/2/3 compare data — BASE+10/14/18/1CH Table C-4 PCI-1784 Register for counter 0/1/2/3 compare data 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Counter 0 Compare Data D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 W D31 D30...
Page 41 - C.6 Interrupt control register — BASE+20H; Table C-5 PCI-1784 Register for interrupt control
37 C.6 Interrupt control register — BASE+20H Table C-5 PCI-1784 Register for interrupt control 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Interrupt control DI3 DI2 DI1 DI0 IX3 IX2 IX1 IX0 UN3 UN2 UN1 UN0 OV3 OV2 OV1 OV0 20H W IE TM UC3 UC2 UC1 UC...
Page 42 - C.7 Interrupt status register — BASE+20H; Table C-6 PCI-1784 Register for interrupt status
38 C.7 Interrupt status register — BASE+20H Table C-6 PCI-1784 Register for interrupt status 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Interrupt status DI3 DI2 DI1 DI0 IX3 IX2 IX1 IX0 UN3 UN2 UN1 UN0 OV3 OV2 OV1 OV0 20H R IF TM UC3 UC2 UC1 UC0 O...
Page 43 - Table C-7 PCI-1784 Register for clock control; Sampling clock select
39 C.8 Clear Interrupt — BASE+24H Table C-7 PCI-1784 Register for clock control 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Clock Control SC1 SC0 24H W TB2 TB1 TB0 DV7 DV6 DV5 DV4 DV3 DV2 DV1 DV0 SC1 ~ SC0 Sampling clock select 00 8 MHz sampling c...
Page 45 - Table C-9 PCI-1784 Register for software latch; Software latch command (; Latch counter to latch register
41 C.10 Software latch — BASE+28H Table C-9 PCI-1784 Register for software latch 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Software Latch SL3 SL2 SL1 SL0 28H W SL n Software latch command ( n : 0 ~ 3) 0 N/A 1 Latch counter to latch register
Page 46 - configuration and software programming.; LSB of the Board ID
42 C.11 Board ID — BASE+28H The PCI-1784 offers Board ID register BASE+28H. With correct Board ID settings, user can easily identify and access each card during hardware configuration and software programming. Table C-10 PCI-1784 Board ID data 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 2...
Page 47 - Table C-11 PCI-1784 Register for reset counter; Reset counter command (; Reset counter to default value
43 C.12 Reset counter — BASE+2CH Table C-11 PCI-1784 Register for reset counter 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Reset Counter SR3 SR2 SR1 SR0 2CH W SR n Reset counter command ( n : 0 ~ 3) 0 N/A 1 Reset counter to default value
Page 48 - Table C-12 PCI-1784 Register for digital output; Pulse with counter clock
44 C.13 Digital output — BASE+30H Table C-12 PCI-1784 Register for digital output 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Base Addr. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Digital Output DO3 DO2 DO1 DO0 30H W DM3 DM2 DM1 DM0 LE3 LE2 LE1 LE0 UC3 UC2 UC1 UC0 OC3 OC2 OC1 OC0 DO3 ~ DO0 Digital ou...
Page 51 - Appendix D. Operation; D.1 Quadrature encoder introduction; the controller. The diagram below shows a typical servo system.
47 Appendix D. Operation D.1 Quadrature encoder introduction In typical closed-loop control systems, also know as servo system, the encoder interface senses motor position and sends a position signal to the controller. The diagram below shows a typical servo system. The encoder generates pulses whic...
Page 52 - -pulse 8 MHz 4 MHz 2 MHz 1 MHz; Quadrature input counter mode
48 Single-ended vs. differential input Most encoders produce square wave signals with TTL levels. Industrial systems often use encoder with differential signals, i.e. channel A and B and their complements. Differential signals can reduce sensitivity to noise and allow longer transmission distances. ...
Page 53 - Disabled mode; D.3 Digital noise filter
49 2-pulse mode In 2-pulse mode the PCI-1784 uses two input pulses as counting sources: one for clockwise (CW) and one for counterclockwise (CCW) counting. The counter will increment whenever a rising edge occurs on channel A. It will decrement whenever a rising edge occurs on channel B. pulse/direc...
Page 54 - Clock frequency Maximum width; MHz 0.5 usec.; Index latch
50 to 500 KHz quadrature input frequency. A 3600 rpm motor with 2000 ppr encoder will nave a maximum quadrature frequency of 3600×2000÷60 = 120 KHz. In the above example the 2 MHz sampling clock will have the noise immunity and will meet the required input frequency. The following table shows the ma...
Page 55 - D.5 Counter reset value
51 DI0 latch A rising edge on the board's DI0 line will latch the counter value for the channel. DI1 latch A rising edge on the DI1 line will latch the counter value for the channel. DI2 latch A rising edge on the board's DI2 line will latch the counter value for the channel. DI3 latch A rising edge...
Page 56 - D.7 Interrupt function
52 D.7 Interrupt function The PCI-1784 can generate an interrupt to the PC for any of the following conditions: 1. Counter 0 overflow 2. Counter 1 overflow 3. Counter 2 overflow 4. Counter 3 overflow 5. Counter 0 underflow 6. Counter 1 underflow 7. Counter 2 underflow 8. Counter 3 underflow 9. Count...