AdvantechメーカーPCI-1718 Seriesの使用説明書/サービス説明書
ページ先へ移動 of 94
PCI-1718 Series 12-bit Multifunction Cards with Universal PCI Bus User Manual.
PCI-1718 Series User Manual ii Copyright The documentation and th e software included with this product are copy- righted 2005 by Advantech Co., Lt d. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time wi thout notice.
iii Product W arranty (2 years) Advantech warrants to you, the original purchaser , that each of its prod- ucts will be free from defects in mat erials and workm anship for two years from the date of purchase.
PCI-1718 Series User Manual iv CE This product has passed the CE test for environmental specificati ons when shielded cables are used for external wiring. W e recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for orderi ng information.
v Contents Chapter 1 Introd uction ..................................................... 2 1.1 Features ............. .............. ........... .............. ........... .............. 3 1.2 Applications ..... .............. ........... ............
PCI-1718 Series User Manual vi Table 3.9:I/O Connector Signal Descriptions .. ............ 29 3.3.2 Analog Input Connections ...... ........... ........... ......... ...... 30 Figure 3.3:Analog Output Connect ions .......... ............. 33 3.3.3 Di gital Signal Connections .
vii C.13 A/D Control — BASE+09H ................. .............. ............ 73 Table C.15:Registe r for A/D Control ............ ........... .. 73 C.14 Timer/Counter Enable — BA SE+0AH .......... ........... ...... 74 Table C.16:Registe r for Timer/Counter Enable .
PCI-1718 Series User Manual viii.
2 CHAPTER 1 Introduction This chapter introduces the PCI-1718 cards and their typical applications. Sections include: • Features • Application s • Installation Guide • Software Overview • De.
PCI-1718 Series User Manual 2 Chapter 1 Introduction Thank you for buying the Adv antech PCI-1718HDU/HGU. PCI- 1718HDU/HGU is a PCI-Bus multifun ction card for IBM PC/XT/A T or compatible computers.
3 Chapter 1 1.1 Features • Register lev el programm ing compatibl e with PCL-818HD/ HG • 16 single-ended or 8 differential A/D inputs, switch selectab le • 12-bit A/D converter, up to 100 kHz sa.
PCI-1718 Series User Manual 4 Onboard FIFO There are 1 K samples FIFO for A/D (AI) on PCI-17 18HDU/HGU. This is an important feature for faster data transfer and more predictable per- formance under Windows system.
5 Chapter 1 1.3 Inst allation Guide Before you install your PCI-1 718HDU/ HGU card, please make sure you have the following necessary comp onents: • PCI-1718HDU/HG U DA&C card • PCI-1718HDU/HG.
PCI-1718 Series User Manual 6 Figure 1.1: Installation Flow Chart.
7 Chapter 1 1.4 Sof tware Overview Advantech offers a rich set of DLL dr ivers, third-party driver su pport and application software to help fully exploit the functions of your PCI- 1718HDU/HGU card: .
PCI-1718 Series User Manual 8 1.5 Device Driver Programming Roadmap This section will provide you a roadmap to demonstrate ho w to build an application from scrat ch using A dvantech Devi ce Drivers w ith your favorite development tools such as V isual C++, V isual Basic, Delphi and C++ Builder .
9 Chapter 1 Programming with Device Drivers Function Library Advantech Device Drivers of fer a rich function lib rary that can be uti- lized in various applicat ion programs. Th is function library con sists of numerous APIs that support man y development tools, such as V isual C++, V isual Basic, Delphi and C++ Builder .
PCI-1718 Series User Manual 10 1.6 Accessories Advantech offers a complete set of accessory products to support the PCI-1718HDU/HGU card. Th ese accessories include: Wiring Cables PCL-10120 The PCL-10120 cable is a 20-pin flat cable for PCI-1718HDU/HG U cards.
2 CHAPTER 2 Inst allation This chapter provides a packaged item checklist, proper instructions for unpacking and step-b y-step procedures for both driver and card installation.
PCI-1718 Series User Manual 12 Chapter 2 Inst allation 2.1 Unp ackin g After receiving your PCI-1718HDU/H GU package, please inspect its contents first.
13 Chapter 2 . 2.2 Driver Inst allation W e recommend you instal l the driver before you install the PCI- 1718HDU/HGU card into you r system, since this will guarantee a smooth installation process.
PCI-1718 Series User Manual 14 Figure 2.1: Setup Screen of Advantech Automation Software 3. Select the Device Drivers option. 4. Select the specific device then just follow the in stallation instruc- tions step by step to complete your device driver installation and setup.
15 Chapter 2 2.3 Hardware Inst allation After the Device Drivers inst allation is completed you can install the PCI- 1718HDU/HGU card into any PCI slot on your computer . However, it is suggested that you refer to the computer ’ s user manual or related docu- mentation if you hav e any doubts.
PCI-1718 Series User Manual 16 2.4 Device Setup & Configuration The Advantech Device Manager program is a utility that allows you to set up, 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.
17 Chapter 2 Configuring the Device 4. On the Device Setting dialog box (Fig. 2-4), you can configure the A/D channels configuration either as 8 Differ en tial or 16 Singl e- ended , and specify the D/A voltage referenc e either as External or Internal .
PCI-1718 Series User Manual 18 After your card is properly installed and config ured, you can click the Te s t … button to test your hardware by using the testin g utility supplied. Figure 2.6: The T est Utility Dialog Box For more detailed inform ation, please refer to Chapter 2 of the Device Drivers Manual .
2 CHAPTER 3 Signal Connections This chapter provides u seful inform a- tion about how to connect inpu t and output signal s to the PCI-1718 cards via the I/O connector .
PCI-1718 Series User Manual 20 Chapter 3 Signal Connections 3.1 Overview Maintaining si gnal connections is one of the most important factors in ensuring that y our application system is se nding and receiving data cor- rectly . A good signal connection can avoid unnecessary and costly dam- age to your PC and other hardware devices.
21 Chapter 3 3.2.1 Setting the BoardID Switch (SW1) BoardID settings are used to set a boa rd’ s unique identifier when multiple identical cards are installed in the same sys tem. PCI-1718 cards have a built-in DIP switc h (SW1 ), which is used to define each card’ s unique identifier .
PCI-1718 Series User Manual 22 3.2.2 Channel Configuration, S/E or DIFF (SW2) The PCI-1718 cards offer 16 single-ended or eight differential analog input channels.
23 Chapter 3 When you set JP11 to EXT , the D/A converter takes its reference vo ltage input from pin 31 of connector CN3. Y o u can apply any voltage between -10 V and +10 V to this pin t o functio n as the external reference. The ref- erence input can be either DC or AC (<100 kHz).
PCI-1718 Series User Manual 24 3.2.5 Timer Clock Selection (JP8) PCI-1718’ s JP8 controls the input clo ck frequency for the 8254 program- mable clock/timer . Y ou have two choices: 10 or 1 MHz. This lets you generate pacer output frequencies from 2.
25 Chapter 3 3.2.6 Ext. trigger and Counter Gate 0 Control (JP5) JP5 has two jumpers. The upper jump er selects the card's A/D trigger source when you use external trigge ring. The lower jumper selects the gate control for counter 0 of the card's 8254 timer/ counter .
PCI-1718 Series User Manual 26 T able 3.7: Summary of Jumper Setting s Jumper Func tion Description JP1 (first) S0 D0 (default) JP1 (sec- ond) S1 D1 (default) JP1 (third) S2 D2 (default) JP1 (fourth) .
27 Chapter 3 3.2.8 Setting the T ime to Reset Digit al Output s Some users will want the capability of clearing each digital output when the system (or PC) issues a reset sign al on the PCI bus. Other users will want to clear their si gnal outputs only as part of sy stem power-on.
PCI-1718 Series User Manual 28 3.3 Signal Connections Pin Assignment Figure 3-2 shows the pin assignments for th e 37-pin I/O connector on the PCI-1718HDU/HGU.
29 Chapter 3 3.3.1 I/O Connector Signal Description T able 3.9: I/O Connector Signal Descriptions Signal Name Refere nce Direct ion Description A/D S <0..15> A.GND Input Analog input (single-ended), channels 0 through 15. A/D H <0..7> A.GND Input Analog input hi gh (differential), channels 0 through 7.
PCI-1718 Series User Manual 30 3.3.2 Analog Input Connections PCI-1718HDU/HGU support s either 16 single-ended or 8 differential analog inputs. Switch SW2 selects the input channel configuration. Single-ended Channel Connections Single-ended connections use o nly one signal wire per channel.
31 Chapter 3 If the signal source h as one side con nected to a local g round, the signal source ground and the PCI-1718HDU/HGU ground will not be at exactly the same vol tage, as they are connected t hrough the grou nd return of the equipment and building wiring .
PCI-1718 Series User Manual 32 Expanding An alog Inputs Y ou can expand any or all of the PCI-1718HD U/HGU's A/D input chan- nels using m ultiplexing daught erboards. Daughterb oards without D-typ e connectors require the PCLD-774 Analog Expansion Board.
33 Chapter 3 Analog Outp ut Connection The PCI-1718HDU/HGU provides one D /A output channel. Y ou can use the internal precision -5 V or -10 V reference t o generate 0 to +5 V or 0 to +10 V D/A output. Use an external reference for other D/A output ranges.
PCI-1718 Series User Manual 34 3.3.3 Digit al Signal Connections The PCI-1718HDU/HGU has 16 digi tal input and 16 digital output chan- nels. The digital I/O levels are TTL compatible.
35 Chapter 3 3.4 Field Wiring Considerations When you use PCI-1718 cards to acquire dat a from outside, noises in the environment might signifi cantly affect the accur acy of your measure- ments if due cautions are not taken.
PCI-1718 Series User Manual 36.
2 CHAPTER 4 Programming Guide This chapter provides u seful inform a- tion about how to do register level pro - gramming for PCI-1 718 cards. Sections include: • Overview • Programmin g with the D.
PCI-1718 Series User Manual 38 Chapter 4 Programming Guide 4.1 Overview The PCI-1718 cards are delivered with an easy-to-use 32-bit Devi ce Driver for user programming under the Windows 98/2000/XP operating systems.
39 Chapter 4 4.3.1 Sof tware T rigger and Polling 1. Set the input range for each A/D channel 2. Set the input channel by specifying the MUX scan rang e 3. T rigger the A/D conversion by w riting to the A/D low byt e register (BASE+0) with any value. 4.
PCI-1718 Series User Manual 40 Example Code: /********This code supports T urboC 3.0 or later v ersions******* */ #include <stdio.h> #include <DOS.
41 Chapter 4 4.3.2 Pacer T rigger Mode with Interrupt MUX Scan Channel Control & A/D Range Control Set Scan Channel Set To Pacer Trigger Mode and Enable Device Interrupt w Base+0 1 H w Base+0 2 H w Base+ 09H Set To Pacer Trigger Mode To Enable Trigger Set Pacer Rate Base+0 CH~ Base+0FH Interrupt Set to Software Trigger Mode To Disable Trigger.
PCI-1718 Series User Manual 42 1. Set the input range for each A/D channel 2. Set the input channel by specifying the MUX scan rang e 3. Set pacer rate and interr upt service routine (ISR) 4. Enable device to generate interr upts and system to accept interrupts 5.
43 Chapter 4 /***** Set Pacer *****/ outportb(base_addr+0x0f ,0x7E); //P acer=1M/clk1/clk2 outportb(base_addr+0x0d,0x0A); //clk 1 outportb(base_addr+0x0d,0x 00); //10=0x0A ; 100=0x64 ; 1000=0x3E8 outp.
PCI-1718 Series User Manual 44 void interrupt isr(void) { disable(); /***** Add code on here *****/ iflag = 1; //Interrupt Flag outportb(base_addr+0x08,0);// Clear In terrupt /****************** *****.
45 Chapter 4 4.3.3 Pacer T rigger Mode with Interrupt and FIFO MUX Scan Channel Control & A/D Range Control Set Scan Channel w Base+0 1 H w Base+0 2 H Clear FIFO Set To Pacer Trigger Mode To Enabl.
PCI-1718 Series User Manual 46 1. Set the input range for each A/D channel 2. Set the input channel by specifying the MUX scan rang e 3. Set pacer rate and interr upt service routine (ISR) 4. Enable FIFO to generate interr upts and system to accept interrupts 5.
47 Chapter 4 outportb(base_addr+0x02,0x00); //MUX Scan Channel Control outportb(base_addr+0x01,0x03); //Chan nel 1 Gain Setting outportb(base_addr+0x02,0x11); // MUX Scan Channel Control outportb(base.
PCI-1718 Series User Manual 48 while(iflag==0) {;} /***** FIFO HALF Interrupt and Get Data *****/ for(k=0;k<512;k++) { iflag= 0; ad_lb=inportb(base_addr+0x17); ad_hb=inportb(base_addr+0x18); /*****.
49 Chapter 4 4.4 Programming with LabVIEW and ActiveDAQ Advantech offers not only a rich set of DLL drivers, but also third-party driver support and applicat ion software to help fully explo it the functions of your PCI-1718 cards.
PCI-1718 Series User Manual 50.
2 APPENDIX A Sp ecifications.
PCI-1718 Series User Manual 52 Appendix A Specifications A.1 Analog Input Channels 16 single-ended or 8 differential or combination Resolution 12-bit FIFO Size 1K samples Max. Sampling Rate 1 00 kS/s Input range and Gain List for PCI- 1718HDU Gain 0.5 1 2 4 8 Unipolar N/A 0~10 0~5 0~2.
53 Appendix A A.2 Analog Output A.3 Digit al Input Channels 1 Resolution 12-bit Max. T ransfer Rate 100 kS/s Output Range (Internal & External Reference) Using Internal Reference 0~+5V ,0~+10 V Us.
PCI-1718 Series User Manual 54 A.4 Digit al Output A.5 Counter/Timer Output Channels 16 Output V oltage Low 0.4 V max.@ +8.0mA (sink) High 2.4 V min.@ -0.
55 Appendix A A.6 General I/O Connector Ty p e 37-pin DSUB female for Analog One 20-pin Box Header for DI One 20-pin Box Header for DO Dimensions 175 x 100 mm (6.
PCI-1718 Series User Manual 56.
2 APPENDIX B Block Diagrams.
PCI-1718 Series User Manual 58 Appendix B Block Diagrams.
2 APPENDIX C Register S tructure & Format.
PCI-1718 Series User Manual 60 Appendix C Register S tructure & Format C.1 Overview PCI-1718 cards are delivered with an easy-to-use 32-bit Device Drivers for user programming under the Wi ndows 98/2000/XP operating sys- tems.
61 Appendix C T able C.1: PCI-1718HDU /HGU Register Format (Part 1) Base Addr . +HEX 7 6 54 3210 00H R A/D low byte data and channels AD3 AD2 AD1 AD0 C3 C2 C1 C0 W Software A/D trigger 01H R A/D high .
PCI-1718 Series User Manual 62 T able C.2: PCI-1718HDU /HGU Register Format (Part 2) Base Addr . +HEX 76 5432 1 0 08H R A/D S tatus EOC U/B MUX INT CN3 CN2 CN1 CN0 W Clear interrupt request 09H R A/D .
63 Appendix C T able C.3: PCI-1718HDU /HGU Register Format (Part 3) Base Addr . +HEX 7 6543210 14H R BoardID I D 3I D 2I D 1I D 0 W Clear FIFO Interrupt Request 17H R A/D data and channels from FIFO A.
PCI-1718 Series User Manual 64 C.3 A/D Dat a and Ch annels — BASE+00H~01H AD1 1 ~ AD0 Analog to digi tal data AD0 The least signi ficant bit (LSB) of the A/D data AD1 1 The most significant bit (MSB) C3 ~ C0 A/D channel numb er from which th e data is derived C0 The least significant bit (LSB) of the channels C3 The most significant bit (MSB) C.
65 Appendix C C.5 A/D Range Control — BASE+01H Each A/D channel has its own indi vidual input range, controll ed by a range code stored in onboard RAM.
PCI-1718 Series User Manual 66 PCI-1718HGU Input Range (V) Unipolar/Bipola r Gain Code G3 G2 G1 G0 ± 5 V B 0000 ± 0 . 5 V B 0001 ±0.05V B 0 0 1 0 ± 0 . 0 0 5 V B 0011 0 t o 1 0 V U 0100 0 to 1V U 0 1 0 1 0 to 0. 1V U 0 1 1 0 0 to 0. 01V U 0 1 1 1 ±10V B 1 0 0 0 ± 1 V B 1001 ± 0 .
67 Appendix C C.6 MUX Scan Channel Control — BASE+02H The write register at BASE+02H controls multiplexer (MUX) scannin g. The high nibble provides the stop scan channel number , and th e low nib- ble provides the start scan channel number . Writing to this register auto- matically initializes the MUX to the start channel.
PCI-1718 Series User Manual 68 C.7 MUX Scan Channel St atus — BASE+02H Read register BASE+02H to get th e current multiplexer (MUX) channel. CC3 ~ CC0 Current channel number CC0 The least significant b it (LSB) of the stop channel CC3 The most significant bit (MSB) C.
69 Appendix C DI15 ~ DI0 Digital input data DI0 The least significant bit (LSB) of the DI data DI15 The most significant bit (MSB) C.9 D/A Output — BASE+04/05H W rite-only registers B ASE+04H and BASE+05H accept data for D/A output. The PCI-1718 cards provide one D/A output channel with two double- buffered 12-bit multi plying D/A conver ters.
PCI-1718 Series User Manual 70 DA1 1 ~ DA0 Analog to digital data DA0 The least significant bit (L SB) of the D/A data DA1 1 The most significant bit (MSB) When you write d ata to D/A ch annels, write the low by te first. The low byte is temporarily held by a register in the D/A and not released to the output.
71 Appendix C C.1 1 Clear Interrup t Request — BASE+08H W rite any valu e to register BASE+08H to clear the interrupt request. C.12 A/D S t atus — BASE+08H Read-only reg ister BASE+08H provides information on the A/D configu- ration and operation.
PCI-1718 Series User Manual 72 U/B Unipolar/bipolar mode indicator 0 Bipolar mode 1 Unipolar mode MUX Single-ended/differen tial channel indicator 0 8 differential channels 1 16 single-ended channel s INT Data valid 0 No A/D conversion has been comple t ed since the last time the INT bit was cleared.
73 Appendix C C.13 A/D Control — BASE+09H Read/write register BASE+09H pro vides information on the PCI- 1718HDU/HGU's operating mo des. INTE Disable/enable ge nerated interrupts 0 Disables the generation of interrupts. No interrupt signal can be sent to the PC bus.
PCI-1718 Series User Manual 74 C.14 T imer/Counter Enable — BASE+0AH W rite register BASE+0AH enables or disables the PCI-1718 card’ s timer/ counter . TC0 Disable/enable pacer 0 Pacer enabled 1 Pacer controlled by TRIG0. This bl ocks trigger pulses sent from the pacer to the A/D until TRIG0 is taken high.
75 Appendix C C.16 Clear FIFO Inte rrupt Request — BASE+14H W rite any valu e to this I/O port to clear the FIFO's interrupt request. C.17 A/D Dat a and Channe l from FIFO - BASE + 17/18H The PCL-818HD/HG stores data from A/D conversions in a 1 K word First-In First-Out (FIFO) data buf fer .
PCI-1718 Series User Manual 76 C.18 FIFO St atus — BASE+19H The register at BASE+19H clears the FI FO buffer and sets its empty flag (EF). The FIFO status register, a ddress BASE+19H, has flags which you can read to determine the current stat e of the FIFO buf fer , including full flag, half-full flag, and empty flag.
77 Appendix C C.20 Register Prog ramming Flow Chart C.20.1 Sof tware T rigger Mode with Polling MUX Scan Channel Control & A/D Range Control Set Software Trigger and Disable Generated Interrupt So.
PCI-1718 Series User Manual 78 C.20.2 Pacer T rigger Mode with Interrupt MUX Scan Channel Control & A/D Range Control Set Scan Channel Set To Pacer Trigger Mode and Enable Device Interrupt w Base+.
79 Appendix C C.20.3 Pacer T rigger Mode with Interrupt [FIFO Used] MUX Scan Channel Control & A/D Range Control Set Scan Channel w Base+0 1 H w Base+0 2 H Clear FIFO Set To Pacer Trigger Mode To .
PCI-1718 Series User Manual 80.
2 APPENDIX D Calibration This appendix provides brief informa- tion on PCI-1718 card calibration. R eg- ular calibration check s are important to maintain accuracy in data acquisition and contr ol applications.
PCI-1718 Series User Manual 82 Appendix D Calibration PCI-1718 cards are calibrated at the f actory for initial use. However, a recalibration of the analog input and the analo g output function is recom- mended: 1. Every six months. 2. Everytime the analog output range is c hanged.
83 Appendix D D.1 VR Assignment The six variable resistors (VRs) on the PCI-1718HDU/H GU board help you make accurate adjustment on all A/D and D/A channels. See the fig- ure in Appendi x B for help finding th e VRs. The followi ng list shows the function of each VR: Figure D.
PCI-1718 Series User Manual 84 D.2 A/D Calibration Regular and accurate calibration en sures maximum possible accuracy . The CALB.EXE calibration pro gram leads you through the whole A/ D offset and gain adjustment procedur e.
85 Appendix D D.3 D/A Calibration Connect a reference voltage within th e range ± 10 V to the reference inp ut of the D/A channel you want to calib rate. Y ou can use either the on-board -5 V (-10 V) reference or an external reference. Adjust the full -scale gain and zero offset of the D/A channel wi th VR5 and VR6, respectively .
PCI-1718 Series User Manual 86.
デバイスAdvantech PCI-1718 Seriesの購入後に(又は購入する前であっても)重要なポイントは、説明書をよく読むことです。その単純な理由はいくつかあります:
Advantech PCI-1718 Seriesをまだ購入していないなら、この製品の基本情報を理解する良い機会です。まずは上にある説明書の最初のページをご覧ください。そこにはAdvantech PCI-1718 Seriesの技術情報の概要が記載されているはずです。デバイスがあなたのニーズを満たすかどうかは、ここで確認しましょう。Advantech PCI-1718 Seriesの取扱説明書の次のページをよく読むことにより、製品の全機能やその取り扱いに関する情報を知ることができます。Advantech PCI-1718 Seriesで得られた情報は、きっとあなたの購入の決断を手助けしてくれることでしょう。
Advantech PCI-1718 Seriesを既にお持ちだが、まだ読んでいない場合は、上記の理由によりそれを行うべきです。そうすることにより機能を適切に使用しているか、又はAdvantech PCI-1718 Seriesの不適切な取り扱いによりその寿命を短くする危険を犯していないかどうかを知ることができます。
ですが、ユーザガイドが果たす重要な役割の一つは、Advantech PCI-1718 Seriesに関する問題の解決を支援することです。そこにはほとんどの場合、トラブルシューティング、すなわちAdvantech PCI-1718 Seriesデバイスで最もよく起こりうる故障・不良とそれらの対処法についてのアドバイスを見つけることができるはずです。たとえ問題を解決できなかった場合でも、説明書にはカスタマー・サービスセンター又は最寄りのサービスセンターへの問い合わせ先等、次の対処法についての指示があるはずです。