PCI-1724U 14-bit, 32-ch, Isolated Analog Output Card User Manual
Copyright The documentation and the software included with this product are copyrighted 2004 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.
Product Warranty (2 years) Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for two years from the date of purchase. This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech, or which have been subject to misuse, abuse, accident or improper installation.
CE This product 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. Technical Support and Assistance Step 1. Visit the Advantech web site at www.advantech.com/support where you can find the latest information about the product. Step 2.
Contents Chapter Chapter 1 Introduction ..................................................... 2 1.1 1.2 1.3 Features ............................................................................. 2 Applications ...................................................................... 3 Installation Guide .............................................................. 4 1.4 1.5 1.6 Software Overview............................................................ 6 Device Driver Programming Roadmap ..............
3.4 Field Wiring Considerations ........................................... 27 Appendix A Specifications ................................................. 30 A.1 A.2 Analog Output ................................................................. 30 General ............................................................................ 30 Appendix B Block Diagram ............................................... 32 Appendix C Register Structure & Format ....................... 34 C.1 Overview ...............
Calibration 50 Figure D.10:The Adjustment Process of Offset Calibration 51 Figure D.11:The Adjustment Process of Span Calibration 52 Figure D.12:Check the Analog Output Value ............. 52 Figure D.13:Finish Calibration .................................... 53 Figure D.14:Data will be Overwritten .........................
PCI-1724U User Manual viii
CHAPTER 1 2 Introduction This chapter gives background information on the PCI-1724U.
Chapter 1 Introduction Thank you for buying the Advantech PCI-1724U. The PCI-1724U is an isolated multiple channels analog output card for PCI bus, and each analog output channel is equipped with a 14-bit, double-buffered DAC. The PCI-1724U is an ideal solution for industrial applications where multiple analog output channels are required.
Keeps Output Values After System Reset Users can independently set the 32 outputs to different ranges: ±10 V, 0 ~ 20 mA or 4 ~ 20 mA, and all ranges are software selectable. When the system is hot reset (power not shut down), the PCI-1724U can either retain the last analog output values, or return to its default configuration, depending on the jumper setting. This practical function eliminates dangers caused by improper operation during unexpected system resets.
1.
Install Driver from CD-ROM and turn off computer Install hardware and turn on computer Use driver utility to configure hardware Use test utility to test hardware Read examples & driver manual Start to write your own application Figure 1.
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 PCI1724U 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 Driver 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 code is also given for your reference.
For information about using other function groups or other 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 offer a rich function library that can be utilized in various application programs.
1.6 Accessories Advantech offers a complete set of accessory products to support the PCI1724U card. These accessories include: Wiring Cable PCL-10162 The PCL-10162 shielded cable is specially designed for PCI-1724U 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.
PCI-1724U User Manual 10
CHAPTER 2 2 Installation This chapter gives users a package item checklist, proper instructions for unpacking and step-by-step procedures for both driver and card installation.
Chapter 2 Installation 2.1 Unpacking After receiving your PCI-1724U package, please inspect its contents first. The package should contain the following items: • PCI-1724U card • Companion CD-ROM (Device Drivers included) • User Manual The PCI-1724U card harbors certain electronic components vulnerable to electrostatic discharge (ESD). ESD can easily damage the integrated circuits and certain components if preventive measures are ignored.
• 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 PCI-1724U card into your system, since this will guarantee a smooth installation process.
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 CDROM. Step 3: Select the Individual Driver option. Step 4: Select the specific device then just follow the installation instructions step by step to complete your device driver installation and setup. Figure 2.
2.3 Hardware Installation Make sure you have installed the driver first before you install the card (please refer to 2.2 Driver Installation). After the Device Drivers installation is completed, you can then install the PCI-1724U card into any PCI slot on your computer. However, it is suggested that you refer to the computer user’s manual or related documentation if you have any doubt. Please follow the steps below to install the card onto your system. 1.
After the PCI-1724U 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/Device Manager. 2. The device name of the PCI-1724U should be listed on the Device Manager tab on the System Property Page. Figure 2.3: The Device Name Listed on the Device Manager If your card is properly installed, you should see the device name of your card listed on the Device Manager tab.
2.4 Device Setup and 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. 2.4.1 Setting Up the Device 1. To install the I/O device for your card, you must first run the Device Installation program (by accessing Start/Programs/ Advantech Automation/Device Manager). 2.
2.4.2 Configuring the Device 3. In the Device Setting dialog box (Fig.2-5), you can calibrate the voltage output range for the 8 D/A channels in 4 groups. For more detailed information, please refer to Appendix D Calibration Utility. Figure 2.5: The Device Setting dialog box Note: Users have three options for the output voltage ranges and current ranges: -10 ~ 10 V, 0 ~ 20 mA and 4 ~ 20 mA.
4. After you have finished configuring the device, click OK and the device name will appear in the Installed Devices box as seen below: Figure 2.6: Device Name Appearing on the List of Devices Box After your card is properly installed and configured, you can click the Test… button to test your hardware by using the testing utility supplied. For more detailed information, please refer to Chapter 2 of the Device Drivers Manual. You can also find the rich examples on the CD-ROM to speed up your programming.
PCI-1724U User Manual 20
CHAPTER 3 2 Signal Connections This chapter provides advise on settings and connections for PCI-1724U.
Chapter 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 PCI1724U via the I/O connector. 3.
3.2.1 JP67 Keep last status after hot reset. Default configuration. 3.2.
3.2.3 Setting the Time to Reset 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-1724U satisfies both these needs by providing jumper JP67. 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 3.3.1 Pin Assignment Figure 3-2 shows the pin assignments for the 62-pin I/O connector on the PCI-1724U. Figure 3.
3.3.2 I/O Connector Signal Descriptions Table 3.1: I/O Connector Signal Descriptions Signal Refere nce Direction Description Vout<0~31> AGND Output Voltage Output, Channel 0 through 31 Iin<0~31> AGND Input(Sink) Current Input, Channel 0 through 32 AGND - - Analog Ground. The two ground references (AGND and DGND) are connected together on the PCI1724U card. 3.3.3 Analog Output Connection The PCI-1724U provides 32 D/A output channels, AO0~AO31.
3.3.5 Current Mode (Sink type): Caution: The external voltage should be under 30 V. Ri: Internal resistor= 499 ohm Vext: External voltage Isink : The controlled current output (0~20 mA) Since Isink =Vext / (Ri+RL), RL can not be higher than | Vext/Imax | -Ri For Example: Vext=24 V, Imax=20 mA RL max = | 24 V / 20 mA | - 499= 701 (ohm) Isink_n RL Load Data Bus + D/A n Vext - Ri AGND Internal External n: 0~31 3.
If the cable travels through an area with significant electromagnetic interference, you should adopt individually shielded, twisted-pair wires as the analog input cable. This type of cable has its signal wires twisted together and shielded with a metal mesh. The metal mesh should only be connected to one point at the signal source ground. Avoid running the signal cables through any conduit that might have power lines in it.
APPENDIX A 2 Specifications This appendix provides information on the specifications of PCI-1724U.
Appendix A Specifications A.1 Analog Output Channels 32-CH Isolation Resolution 14-bit Operation Mode Single output, Synchronized output Output Range (Internal Reference only) -10~+10V, 0~20mA, 4~20mA (0~20mA, 4~20mA is selected by software, please refer to Appendix D Calibration Utility.) Accuracy Relative +/- 4 LSB Differential Non-linearity +/- 2 LSB (monotonic) Offset < 2 LSB Output Impedance 0.1 Ω max.
APPENDIX B 2 Block Diagram This appendix shows the block diagram for PCI-1724U.
Appendix B Block Diagram MEM VREF+ AGND Decoder / Controller VREF- Control Data DACx Isolation AGND DGND PCI Bridge +15V 0V -15V PCI-1724U User Manual 32 +12V DC-DC 0V PCI Bus VoutX/ IoutX BID
APPENDIX C 2 Register Structure & Format This chapter provides information on the register structure and format for PCI-1724U.
Appendix C Register Structure & Format C.1 Overview The PCI-1724U is delivered with an easy-to-use 32-bit device driver for user programming under the Windows 2000/95/98/ME/XP operating systems. We advise users to program the PCI-1724U using the 32-bit device drivers provided by Advantech to avoid the complexity of low-level registry programming. The most important consideration in programming the PCI-1724U at register level is to understand the function of the card's registers.
Table C.
C.2 DAC Control Register-0x00 PCI-1724U is designed for a 32-bit bus and will read all 32 bits at the same time. Because the card can be addressed individually, knowing how the PCI-1724U’s register works becomes a very important issue. There are several channel groupings which enable you to simultaneously write the same data to multiple DAC channels. Table C-3 shows the format of the DAC control register. Table C.
Table C.4: Register Selection REG1 REG0 Register Selected 1 1 Normal Mode(Recommended) 1 0 Offset Mode(Used in calibration) 0 1 Gain Mode(Used in calibration) 0 0 N/A Table C.5: DAC Normal Mode Selection (REG1 = REG0 = 1) D23~D20 D19~D16 D15 D14 D13~D0 GX CX 1 1 DATA C.2.3 D23~D16 Address bits D23~D20 are decoded to select on group or multiple groups of registers. Address bits D19~D16 select the channels. See Table C-6, C-7, C-8. Table C.
Table C.8: Channel CX Register Channel CX D19 D18 D17 D16 CX=0 0 0 0 0 CX=1 0 0 0 1 CX=2 0 0 1 0 CX=3 0 0 1 1 CX=4 0 1 0 0 CX=5 0 1 0 1 CX=6 0 1 1 0 CX=7 0 1 1 1 Note Mapping AOx = (Group GX-1) * 8 + Channel CX x=0~31 (GX=1~4; CX=0~7).
C.3 Synchronous Output Control Register/DAC Ready Status-0x04 The PCI-1724U provides an innovate function in which all D/A channels can output their data in synchronization. It is necessary to verify DACSTAT status every time you want to output DAC data, otherwise the command results in errors. Table C.
C.4 Synchronous Output Trigger Register-0x0C Write any value to 0x0C to synchronize all D/A channels. You can write only one channel, or several channels. Table C.10: Synchronous Output Trigger Register Offset Address (HEX) 0x0C W PCI-1724U Register Format D31~D6 Note D4 D3 D2 D1 D0 X X X X X SYNOUT Trigger X R D5 X N/A Synchronous Mode: Be sure to enable the synchronize function by writing the value to Offset Address=0x04 first. Second, write the specific data into Offset Address=0x00.
C.5 Board ID-0x10 The PCI-1724U offers Board ID register Offset Address=0x10. With correct Board ID settings, you can easily identify and access each card during hardware configuration and software programming. Table C.11: Board ID Register Offset Address (HEX) 0x10 PCI-1724U Register Format D31~D6 W N/A R Board ID X D5 D4 D3 D2 D1 D0 X BD3 BD2 BD1 BD0 X Table C.
PCI-1724U User Manual 42
APPENDIX D 2 Calibration This chapter offers a brief guide to the calibration procedure.
Appendix D Calibration The PCI-1724U has been well calibrated at the factory, so it is normally not necessary to calibrate the PCI-1724U for initial use. However, if some special conditions have to be met, calibrate the PCI-1724U by the procedure shown below. To perform an effective calibration, a standard 4-1/2 digits resolution measurement meter has to be used. There are 2 calibration procedures in PCI-1724U.
D.1 Voltage Calibration Procedure 1. Click the Setup button on the Advantech Device Manager window (Fig.1) to launch the PCI-1724U Device Setting window (Fig.2). Figure D.1: Click the Setup button to Launch the Device Setting 2. Select the output range of the channel to –10V~10V. 3. Click the Calibration button to start the calibration process. The Calibration Wizard window will pop up. Note Each calibration process can calibrate only one channel and one input range at a time.
Figure D.2: Click the Calibration Button to Launch the Calibration 4. Follow the instruction of Calibration Wizard and click the Next button to proceed to the next step. Figure D.
5. At this step, the Wizard will output –10V on the channel you selected. Please check the value on the meter is in the range (I). If the value does not fit, please perform the adjustment. There are 3 ways to perform the adjustment. 1. Move the slider (II). 2. Input the adjust value (III). Note that only if the [Set] button is pressed, the value will take effect. 3. Press [Default] button (IV). This will load the factory default value. The value on the meter will change after you modify the Adjust Value.
6. This step is to adjust Span. The Wizard will output +10 V on the channel you selected. The steps of span calibration are quite similar to those of the offset calibration (Step 5). Follow the instructions of the Calibration Wizard. If value fits the condition, press the [Next] button to continue. Figure D.5: The Adjustment Process of Span Calibration Step 7: After span calibration, you have successfully calibrated your PCI1724U device. Please press [Finish] to finish it. Figure D.
Step 8: The wizard will pop up a dialog to inform you that the current calibration data of this channel will be overwritten, if you click [Yes] button. Otherwise click [No] to give up the data. Figure D.7: Data will be Overwritten D.2 Current Calibration Procedure Step 1: Click the Setup button on the Advantech Device Manager window (Fig.1) to launch the PCI-1724U Device Setting window (Fig.2). Figure D.
Step 2: Select the output range of the channel to 0~20mA or 4~20mA. Step 3: Click the Calibration button to start the calibration process. The Calibration Wizard window will pop up. Note Each calibration process can calibrate only one channel and one input range at a time. Figure D.9: Click the Calibration Button to Launch the Calibration Step 4: Follow the instruction of Calibration Wizard and click the Next button to proceed to the next step. Fig.
3. Press [Default] button (IV). This action will load the factory default value. The value on the meter will change after you change the Adjust Value. Please check the value on the meter is in the range again. If value fits the condition, press the [Next] button to continue. Figure D.10: The Adjustment Process of Offset Calibration Step 6: After offset calibration, this step is to adjust Span. The Wizard will output 20mA on the channel you selected.
Figure D.11: The Adjustment Process of Span Calibration Step 7 After span calibration, the wizard will output 4mA on the channel, and ask you to check whether the value on the meter is in the range (I). If the value on the meter fits the condition, press [Yes] button. Otherwise, press the [No] button and the wizard will go to Step 5. Figure D.12: Check the Analog Output Value Step 8: If the value on the meter fits the condition on Step 7, you have successfully calibrated your PCI-1724U device.
Figure D.13: Finish Calibration Step 9: The wizard will pop up a dialog to inform you that the current calibration data of this channel will be overwritten if you click the [Yes] button. Otherwise click [No] to give up the data. Figure D.
PCI-1724U User Manual 54