Gebruiksaanwijzing /service van het product PCI-1784 van de fabrikant Advantech
Ga naar pagina of 57
1 Copyright This documentation and the software included with this product ar e copyrighted 2002 b y Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the ri ght to make improvements in the products described in this manual at an y time without notice.
2.
3 Contents 1. INTRODUCTION .................................................................................................................. 1 1.1 F EAT URES ............................................................................................
4 C.10 S OFTW ARE LA TCH — BASE+28H .............................................................................. 41 C.11 B OARD ID — BASE+28H.......................................................................................... 42 C.12 R ESET CO UNTER — BASE+2CH.
1 1. Introd uction Thank you for bu y i ng the Advantech PCI-1784. The PC I-1784 is a 4- axis quadrature en coder and counter card for PC I bus. This card includes four 32-bit quadruple AB phase encod er counters, 8-bit timer with multi range time-base selector and four isolated di gital input and four isolated digital output.
2 Counters The PCI-1784 has four independent 32-bit counters. The m aximum quadrature input rate is 2 MHz, and the max imum input rate in counter mode is 8 MHz. Y ou can indivi dually configure each co unter for quadrature decoding, pulse/direction countin g or up/down counting.
3 default configuration, depending on jumper setting. This practical function eliminate s dan ger c aused by miss-operation dur ing unex pected 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.
4 1.2 Applications ❏ Motion control ❏ Position sensing, monitoring and m easuring ❏ Coordinate measuring machines ❏ X-Y table monitors ❏ Robotics ❏ Machine control 1.
5 Fig. 1-1 Installation Flow C hart Install Driver from CD-ROM, then power-off PC Install Har dwar e and pow er-on PC Use driver utility to configure h ardware Use test utility to test hardware Read e.
6 1.4 Software Ov erview Advantech offers a rich set of DLL drivers, third-pa rt y driver support and application software to help full y exploit the functions of your PCI- 1784 card: ❏ Device Drive.
7 1.5 Device Driv ers Programm i ng Roadmap This section will provide y ou a roadmap to demonstrate how to build an application from scratch using Advantech Device Drivers with your favorite development tools such as V isual C++, V isual Basic, Delphi and C++ Builder .
8 For information about using other function groups or other development tools, please refer to the Cr eating W indows 95/NT/2000 Application with Device Drivers chapter and the Fun ction Over view chapter on the De vice Drivers Manual .
9 1.6 Accessories Advantech offers a complete set of accessor y products to support the PCI-1784 card. These accesso ries include: Wiring Cable ❏ PCL-10137H The PC L -10137H shi elded cable is speciall y designed for PCI-1784 cards to provide high resistance to noise.
10 2. Installation This chapter gives users a package item checklist, pr oper instructions about unpacking and step-b y-step procedures for both driver and card installation. 2.1 Unpacking After receiving your PCI-1784 packa ge, please inspect its contents first.
11 Also pay extra caution to the following aspects to ensur e proper installation: ! A void ph y s ical contact with materials that could hold static electricit y such as plastic, vin yl and St y rofoam. ! Whenever you handle the card, grasp it only by its edges.
12 2.2 Driver Insta llation W e recommend you to install the driver before you install the P CI - 1784 card into your system, since this will guarantee a smooth installation pr ocess. The Advantech Device Driv ers Setup program for the PC I-1784 card is included on the companion CD-ROM that is shipped with your DA&C card packag e.
13 Step 3: Select t he Individual Drivers option. Step 4: Select the specific device then just follow the installation instructions step by step to complete your device driver setup.
14 Step 1: T urn off your computer and unplug the power cord and cables. TURN OFF your computer before installing o r removing any components on the computer . Step 2: Remove the cover of your computer . Step 3: Remove the slot cover on the back p anel of your computer .
15 Fig. 2-3 The device name listed on the Device Manager Note: ✎ If your card is properly installed, you should see the device na me of y ou r card listed on the Device Manager tab. If you do see your device name listed on it but marked with an exclamation sign “!”, it m eans your card has no t been correctly install ed.
16 2.4 Device Setup & Configuration The PCI-1784 Utility program is a utility tha t allows you to setup, configure and test your device, and later stor es your setting s on the system reg istry . These settings will be used when you call the AP Is of Advantech Device Drivers.
17 Setting Up and configure the dev ice Click Setup to config ure e ach param eter . The dialog box will appear as seen below (Fig. 2-5): Fig. 2-5 The ‘Setup’ dialog box.
18 Fig. 2-6 The “Operation” dialog box After your card is prop erly installed and confi gured, you can click the Operation button to test y our h ardware. For more detailed information, please refe r to Chapter 2 of the Device Drivers Manual . Y ou can also find the rich ex amples on the C D-ROM to speedin g up y our programming.
19 3. Signal Connec tions 3.1 Overvie w 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 unnecessar y and costly damage to your PC and other hardware devices.
20 Setting the time to reset the digital outputs and the counter val u e Some users will want the capabilit y 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 part of system power-on.
21 3.3 Si gnal Connections Pin A ssignment Figure 3-2 shows the pin assignments for the 37-pin I/O connector on the PCI-1784. EGND 1 20 CH 0A- CH0A + 2 21 CH0B- CH0B+ 3 22 CH 0Z- CH0Z + 4 23 CH1A - CH.
22 Quadrature encoder input Single ended outputs of Encoder A B I GND PCI-1784 connecto r CHnA+ CHnB+ CHnZ+ EGND Different ial outputs of Encoder or Line driv er GND A+ A- B+ B- I+ I- PCI-1784 connect.
23 Up/Down Count er UP DN GND PCI-1784 connector CHnA+ CHnB+ EGND Two_Pulse Up Count er UP DN GND PCI-1784 connector CHnA+ CHnB+ EGND Two_Pulse Down Coun te r UP DN GND PCI-1784 connector CHnA+ CHnB+ .
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 .
25 Appendix A. Specifications Encoder Output Number of Axis 4 (inde pendent) Resolutio n 32-bit w/ Digital Filter 1.0 MHz Max. Quadra ture Input Freq uency w/o Digital Filter 2.0 MHz Digital Fi lter 4 stage Driv e T ype Single-e nded or dif ferential Counter Mode Quadratur e, Up/Down, C ount/Dir ection Optical Is olation 2500 V DC Max.
26 Interrupt Source Count er overflow , Counter un derflow , Index inp ut, Compare, T imer , Digital in put Counter Latch Source Software, T imer , Index inp u t, Digital inp u t General I/O Connect or T ype 37-pin D- sub femal e Dimensions 175 mm x 100 m m (6.
27 Appendix B. Blo ck Diagram PCI BU S ADDRESS , CONTROL AND DATA BUS PCI INTERF A CE 32- B I T MU LTI -MOD E UP/ DOWN COUNTE R 32- B I T MU LTI -MOD E UP/ DOWN COUNTE R CONT ROL UNI T 32- B I T MU LT.
28.
29 Appendix C. Reg ister Struc ture and For mat C.1 Overvie w The PCI-1784 is delivered with an eas y-to-use 32-bit DLL driver for user programming under the W indows 2000/95/98/NT/ME/XP operating system.
30 T able C-1 PCI-1784 r egister format (Part 1) PCI-1784 Register Format 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base A d dress + HEX 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Counter 0 Mode DI3 DI.
31 T able C-1 PCI-1784 r egister format (Part 2) PCI-1784 Register Format 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base A d dress + HEX 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Counter 0 Compare Dat.
32 T able C-1 PCI-1784 r egister format (Part 3) PCI-1784 Register Format 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base A d dress + HEX 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Interrupt C ontrol DI.
33 C.3 Counter 0/1/2/3 mode — BA SE+00/04/ 08/0CH T able C-2 PCI-1784 Register for counter 0/1/2/3 mode 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr .
34 UL Counter un derfl ow lock con tr o l 0 Counter continues counting (wraps over) when counter underflow 1 Counter locked when counter underflow DF Digital Filt er 0 Quadrature input frequenc y with.
35 C.4 Counter 0/1/2/3 latch data — BA SE+00/ 04/ 08/ 0CH T able C-3 PCI-1784 Register for counter 0/1/2/3 latch data 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr .
36 C.5 Counter 0/1/2/3 compare data — BA SE+10/14/18/1CH T able C-4 PCI-1784 Register for counter 0/1/2/3 compar e data 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr .
37 C.6 Interrupt control reg ister — BA SE+20H T able C-5 PCI-1784 Register for interrupt contr ol 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr . 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Int.
38 C.7 Interrupt status register — BA SE+20H T able C-6 PCI-1784 Register for interrupt status 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr . 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Interru.
39 C.8 Clear Interrupt — BA SE+24H T able C-7 PCI-1784 Register for clock control 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr . 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Clock Control SC1 SC.
40 C.9 Clear Interrupt — BA SE+24H Read this reg ister to clear the interr upt. T able C-8 PCI-1784 Register for clear interrupt 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr .
41 C.10 Software latch — BA SE+28H T able C-9 PCI-1784 Register for softwar e latch 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr . 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Software Latch SL3.
42 C.1 1 Board ID — BASE+28H The PCI-1784 of fers Board ID register BASE+28H. With correct Board ID settings, use r can easily identify and access e a ch card during hardware configuration a nd software programming. T able C-10 PCI-1784 Boar d ID data 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr .
43 C.12 Reset counter — BA SE+2CH T able C-1 1 PCI-1784 Register for r eset counter 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr . 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Reset Counter SR3 .
44 C.13 Digital output — B ASE+30H T able C-12 PCI-1784 Register for digital output 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr . 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Digital Output DO3.
45 C.14 Digital i nput/ output — BASE+30H T able C-13 PCI-1784 Register for digital input/output 1 5 1 4 1 3 1 2 1 1 1 0 987654321 0 Base Addr . 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Digit.
46.
47 Appendix D. Operatio n D.1 Quadr ature encoder introduction In typical closed-loop control systems, also know as servo s ystem, the encoder interface s enses motor position and sends a position signal to the controller . The dia gram below shows a t ypical servo system.
48 Single-ended vs. differential input Most encoders produce square w ave signals with TTL levels. Industrial systems often use encod er with differential sign als, i.e. channel A and B and their complements. Dif ferential sig n als can reduce se nsitivit y to noise and allow longer transmission distances.
49 2-pulse mode In 2-pulse mode the PCI-1784 uses two input pulses as counting sources: one for clock wise (CW) and one for counterclock wise (CCW) counting. The counter will increment wh enever a rising edge occurs on channel A. It will decre m ent whenever a rising edge occur s on channel B.
50 to 500 KHz quadrature input frequen cy . A 3600 rpm motor with 2000 ppr encoder will nave a max imum quadrature frequenc y 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 frequenc y .
51 DI0 latch A rising edge on the board's DI0 line will latch the counter v alue 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 v alue for the channel.
52 D.7 I nterrupt function The PCI-1784 can generate an inte rrupt 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.
53 registers a t BASE+20H. Y ou will need to set the chip 's interr upt mask register to exclude all but one of the int errupt lines..
Een belangrijk punt na aankoop van elk apparaat Advantech PCI-1784 (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen Advantech PCI-1784 heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens Advantech PCI-1784 vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding Advantech PCI-1784 leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over Advantech PCI-1784 krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van Advantech PCI-1784 bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de Advantech PCI-1784 kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met Advantech PCI-1784 . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.