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.
Contents 1. INTRODUCTION.................................................................................................................. 1 1.1 FEATURES ....................................................................................................................... 1 1.2 APPLICATIONS ................................................................................................................. 3 1.3 INSTALLATION GUIDE ...........................................................................
C.9 DAC RANGE AND CALIBRATION STATUS — BASE+14H .............................................. 38 C.10 SADC CONTROL COMMAND FOR CALIBRATION FUNCTION— BASE+16H ................. 40 C.11 SADC CONTROL STATUS FOR CALIBRATION FUNCTION— BASE+16H....................... 40 C.12 CALIBRATION PARAMETER STROBE — BASE+18H.................................................... 41 C.13 DIGITAL I/O SETTING — BASE+1AH........................................................................ 42 C.
1. Introduction Thank you for buying the Advantech PCI-1723. The PCI-1723 is a nonisolated multiple channels analog output card for PCI bus, and each of analog output channels is equipped with a 16-bit, double-buffered DAC. It features auto-calibration function and Board ID. The PCI-1723 is an ideal solution for industrial applications where multiple analog output channels are required.
Flexible Voltage Output Range The PCI-1723 provides fixed voltage output range as ± 10V to fulfill your flexible range needed applications. User can define the specific voltage output range and output data format via the enclosed software utility and driver. Keeping the Output Values After System Reset Users can independently set the eight outputs to different ranges: ± 10V, 0~20mA or 4~20mA, and all the ranges are software selectable.
1.2 Applications ❏ Process control ❏ Programmable voltage source ❏ Programmable current sink ❏ Servo control ❏ Multiple loop PID control 1.
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 Fig.
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 PCI1723 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.
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.
development tools, please refer to the Creating Windows 95/NT/2000 Application 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.
1.6 Accessories Advantech offers a complete set of accessory products to support the PCI-1723 card. These accessories include: Wiring Cable ❏ PCL-10168 The PCL-10168 shielded cable is specially designed for PCI-1723 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.
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-1723 package, please inspect its contents first. The package should contain the following items: ! PCI-1723 card ! Companion CD-ROM (Device Drivers included) ! User’s Manual The PCI-1723 card harbors certain electronic components vulnerable to electrostatic discharge (ESD).
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.
2.2 Driver Installation We recommend you to install the driver before you install the PCI1723 card into your system, since this will guarantee a smooth installation process. The Advantech Device Drivers Setup program for the PCI-1723 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 3: Select the Device Drivers option. Step 4: Select the specific device then just follow the installation instructions step by step to complete your device driver installation and 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: Start/Programs/Advantech Device Drivers V2.0/Device Drivers Manual 2.
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-1723 card into a PCI slot. Hold the card only by its edges and carefully align it with the slot.
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 correctly installed. In this case, remove the card device from the Device Manager by selecting its device name and press the Remove button. Then go through the driver installation process again.
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. Setting Up the Device Step 1: To install the I/O device for your card, you must first run the Device Installation program (by accessing Start/Programs/ Advantech Device Driver V2.0).
Step 3: Scroll down the List of Devices box to find the device that you wish to install, then click the Add… button to evoke the Device(s) found dialog box such as one shown in Fig. 2-5. The Device(s) found dialog box lists all the installed devices on your system. Select the device you want to configure from the list box and press the OK button. After you have clicked OK, you will see a Device Setting dialog box such as the one in Fig. 2-6. Fig.
Note: ✎ Users can configure the source of D/A reference voltage either as Internal or External, and select the output voltage range. When selecting voltage source as Internal, users have three options for the output voltage ranges and current ranges: -10 ~ 10 V, 0~20 mA and 4~20 mA.
Note: ✎ As we have noted, the device name “000:PCI-1723 BoardID=0 I/O=6500H” begins with a device number “000”, which is specifically assigned to each card. The device number is passed to the driver to specify which device you wish to control. After your card is properly installed and configured, you can click the Test… button to test your hardware by using the testing utility we supplied. For more detailed information, please refer to Chapter 2 of the Device Drivers Manual.
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 chapter provides useful information about how to connect input and output signals to the PCI-1723 via the I/O connector. 3.
Setting the time to reset the analog outputs Some users will want the capability of clearing each analog output when the system (or PC) issues a reset signal on the PCI bus. Some users will want to clear their analog output only as part of system power-on. The PCI-1723 satisfies both these needs by providing jumper JP1. Depending on the application, this capability may allow analog outputs to be "ZERO" without requiring a complete shutdown of processes controlled by the card.
3.3 Signal Connections Pin Assignment Figure 3-2 shows the pin assignments for the 68-pin I/O connector on the PCI-1723.
I/O Connector Signal Description Table 3-2 I/O Connector Signal Description Signal Name Vout<0..3> Iout<0..3> Reference AGND AGND Direction Output Output AGND - - DI0<0..15> DGND - DGND - - +12V DGND Output +5V DGND Output Description Voltage Output, Channels 0 through 3. Current Output, Channels 0 through 3. Analog Ground. The two ground references (AGND and DGND) are connected together on the PCI-1723 card. Digital Input / Output signals.
3.4 Field Wiring Considerations When you use the PCI-1723 to acquire data from outside, noises in the environment might significantly affect the accuracy of your measurements if due cautions are not taken. The following measures will be helpful to reduce possible interference running signal wires between signal sources and the PCI-1723.
24
Appendix A. Specifications Analog Output Channels Resolution Operation mode Output Range (Internal Reference only) Accuracy 8 16-bit Single output, Synchronized output -10~+10V, 0~20 mA, 4~20 mA Relative Differential Non-linearity Offset Output Impedance Throughput Settling time Power Consumption Temperature Relative Humidity Certification ± 6 LSB (monotonic) < 6 LSB Ω max. 0.
26
Appendix B.
28
Appendix C. Register Structure and Format C.1 Overview The PCI-1723 is delivered with an easy-to-use 32-bit Device Drivers for user programming under the Windows 2000/95/98/NT/ME/XP operating system. We advise users to program the PCI-1723sing the 32-bit Device Drivers provided by Advantech to avoid the complexity of low-level programming by register. The most important consideration in programming the PCI-1723 the register level is to understand the function of the card's registers.
Table C-1 PCI-1723 register format (Part 1) Base Address + HEX PCI-1723 Register Format 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1 DA0 DA4 DA3 DA2 DA1
Table C-1 PCI-1723 register format (Part 2) Base Address + HEX PCI-1723 Register Format 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 BD3 BD2 BD1 BD0 X X X X SYNC 0 0 0 0 SYNC N/A W 10H Board ID R 0 0 0 0 0 0 0 0 0 All D/A channels synchronized setting W X X X X X X X X X X X 12H All D/A channels synchronized status R 0 0 0 0 0 0 0 0 0 0 0 DAC range and calibration mode W X X X X X X X SELF X X R1 R0 O_G CH2 CH1 CH0 R0 O_G CH2 CH1
Table C-1 PCI-1723 register format (Part 3) Base Address + HEX PCI-1723 Register Format 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 X X X X X X X X X X X X X X X X X X X X X X X X X X Synchronized strobe W X X X X X X X X X X 20H N/A R Reset all D/A channels strobe W X X X X X X X X X X X 22H N/A R Reset the calibration controller strobe W X X X X X X X X X X X 24H N/A R Change D/A channels output type strobe W X X X X X X X X X X
C.3 D/A channels output data — BASE+00H~0EH Table C-2 Register for D/A channels output data Base Addr.
C.4 D/A channels latch data — BASE+00H~0EH Table C-3 Register for D/A channels latch data Base Addr.
C.5 Board ID — BASE+10H The PCI-1723 offers Board ID register BASE+10H. With correct Board ID settings, user can easily identify and access each card during hardware configuration and software programming. Table C-4 Register for Board ID Base Addr.
C.6 All D/A channels synchronized setting — BASE+12H The PCI-1723 provides the innovate function which all D/A channels can output the data synchronization. Table C-5 Register for all D/A channels synchronized setting 15 Base Addr.
C.8 DAC range and calibration mode — BASE+14H Table C-7 Register for DAC range and calibration mode 15 Base Addr.
C.9 DAC range and calibration status — BASE+14H Table C-8 Register for DAC range and calibration status 15 Base Addr.
IDX1 ~ IDX0 Calibration procedure index 00 Read/Write calibration status 01 Write calibration parameter 10 Change D/A channels output type and reload the parameters 11 N/A 39
C.10 SADC control command for calibration function— BASE+16H The PCI-1723 use SADC (serial analog to digital converter) for calibration function. Please refer to the Burr-Brown ADS7822 data sheet for the chipset detail information (CD-ROM:\Documents\Component Specification\ ADS7822.PDF). Table C-9 Register for SADC control command for calibration function Base Addr.
C.12 Calibration parameter strobe — BASE+18H Write any values to BASE+18H after finished the calibration procedure, to save all the D/A channels’ parameter into the EEPROM. Table C-11 Register for calibration parameter strobe Base Addr. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 X X X X X X Calibration parameter strobe 18H W X X X X X X X X X X Note: ✎ Once you want to calibrate the range of the specific channel, be sure to write the value to BASE+14H first.
C.13 Digital I/O setting — BASE+1AH Table C-12 Register for digital I/O port setting Base Addr. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 X X X X 1 0 Digital I/O port setting 1AH W X X X X X X X X X X LDIO Setting the Low byte DIO port 0 Output 1 Input HDIO Setting the High byte DIO port 0 Output 1 Input HDIO LDIO Note: ✎ The port that setup as output was supported ‘read back’ function. ✎ The port that setup as input was supported ‘mask’ function.
C.15 Write digital output command — BASE+1CH Table C-14 Register for write digital output command Base Addr. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 D5 D4 D3 D2 D1 D0 Write digital output command 1CH W D15 D14 D13 D15 ~ D0 D12 D11 D10 D9 D8 D7 D6 Digital output data D0 LSB of the output data D15 MSB of the output data C.16 Read digital input data — BASE+1CH Table C-15 Register for read digital input data Base Addr.
C.17 Write calibration command — BASE+1EH Table C-16 Register for write calibration command Base Addr. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 D5 D4 D3 D2 D1 D0 Write calibration command 1EH W X X X D7 ~ D0 X X X X X D7 D6 Calibration result data D0 the least significant bit (LSB) of the data D7 the most significant bit (MSB) Note: ✎ Once you want to calibrate the range of the specific channel, be sure to write the value to BASE+14H first.
C.19 Synchronized strobe — BASE+20H Write any values to BASE+20H to synchronize all D/A channels. Table C-18 Register for synchronized strobe Base Addr. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 X X X X X X Synchronized strobe 20H W X X X X X X X X X X Note: ✎ Be sure to enable the synchronize function by write the value to BASE+12H first. Next, write the specific data into BASE+00H ~ 0FH. Last, to write any value to this register to synchronize all D/A channels.
C.21 Reset the calibration controller strobe — BASE+24H Write any values to BASE+24H to reset the calibration controller. Table C-20 Register for reset the calibration controller strobe Base Addr. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 X X X X X Reset the calibration controller strobe 24H W X X X X X X X X X X X C.22 Change D/A channels output type strobe — BASE+26H Write any values to BASE+26H to change D/A channels output type.
C.23 Select the calibration Ref_V — BASE+28H Table C-22 Register for select the calibration Ref_V Base Addr. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 X X X X 1 0 Select the calibration Ref_V 28H W X X X X REF_A1 ~ REF_A0 00 01 10 11 X X X X X X Ref_V (reference voltage) index -10 V 0V N/A +10 V C.
48
Appendix D. Calibration This chapter provides brief information on PCI-1723 calibration. Regular calibration checks are important to maintain accuracy in data acquisition and control applications. We provide the calibration programs or utility on the companion CD-ROM to assist you in D/A calibration. Note: ✎ If you installed the program to another directory, you can find these programs in the corresponding subfolders in your destination directory.
D.1 VR Assignment There is two variable resistors (VR1 and VR2) on the PCI-1723 to adjust the accurate reference voltage. We have provided two test points (See J4 and J7 in Figure D-1) for you to check the reference voltage on board. Before you start to calibrate the D/A channels, please adjust VR1 until the reference voltage on J4 has between +9.9995 ~ +10.0005 V. And adjust VR2 until the reference voltage on J7 has between -9.9995 ~ -10.0005 V. Figure D-1 shows the locations of VR1, VR2, J4 and J7.
D.2 D/A Calibration Note: ✎ Using a precision voltmeter to calibrate the D/A outputs is recommended. The auto-calibration program AutoCali.EXE helps you finish the D/A calibration procedure automatically. Although the procedure is not necessary, the following calibration steps are provided below for your reference in case you want to implement the calibration yourself: 1. To adjust those eight jumpers JP1~JP8 to 0~20 mA. 2. Setting the output range as ± 10 V for channel 0 (BASE+14H). 3.
D.3 Calibration Utility The calibration utility, AutoCali, provides two functions - auto D/A calibration and manual D/A calibration. The program helps the user to easily finish the calibration procedures automatically, however, the user can calibrate the PCI-1723 manually. The following steps will guide you through the PCI-1723 software calibration. Step 1: Access the calibration utility program Cal1723.exe from the default location: C:\Program Files\Advantech\ADSAPI\Utilities\PCI1723/Windows/ Cal1723.
Step 3: After you start to calibrate the PCI-1723, please don’t forget to adjust the VR1 and VR2. Figure D-3: Warning message before start calibration D/A channel Auto-Calibration Step 4: There are eight D/A channels in PCI-1723, select the output range for each channel and then press the start button to calibrate D/A channels (Fig. D-4).
Step 5: Clicking the Start button, the utility will test some registers to make sure the PCI-1723 has stable enough to process the calibrate procedure (Fig. D-5) Figure D-5: Burning test Step 6: D/A channel 0 calibration is enabled (Fig. D-6) Figure D-6: Calibrating D/A Channel 0 Step 7: D/A channel 1 calibration is enabled (Fig.
Step 8: Auto-calibration is finished (Fig. D-8) Figure D-8: D/A Calibration is finished D/A channel Manual-Calibration Step 1: Click the Manual D/A Calibration tab to show the D/A channel manual calibration panel. Eight D/A channels are individually calibrated . Before calibrating, output desired voltage from the D/A channels and measure it through an external precision multi-meter.
Step 3: According to the difference between the output voltage from D/A channel and the value in the multi-meter, adjust the gain, bipolar offset and unipolar offset registers (Fig. D-10) Figure D-10: Adjusting registers Step 4: Adjust registers until they fall between the output voltage from the D/A channel and the value in the multi-meter.