PCI-6308 Isolated Analog Output Board User’s Manual Manual Rev. 2.00 Revision Date: June 3, 2005 Part No: 50-11101-102 Advance Technologies; Automate the World.
Copyright 2005 ADLINK TECHNOLOGY INC. All Rights Reserved. The information in this document is subject to change without prior notice in order to improve reliability, design, and function and does not represent a commitment on the part of the manufacturer. In no event will the manufacturer be liable for direct, indirect, special, incidental, or consequential damages arising out of the use or inability to use the product or documentation, even if advised of the possibility of such damages.
Getting Service from ADLINK Customer Satisfaction is top priority for ADLINK Technology Inc. Please contact us should you require any service or assistance. ADLINK TECHNOLOGY INC. Web Site: http://www.adlinktech.com Sales & Service: Service@adlinktech.com TEL: +886-2-82265877 FAX: +886-2-82265717 Address: 9F, No. 166, Jian Yi Road, Chungho City, Taipei, 235 Taiwan Please email or FAX this completed service form for prompt and satisfactory service.
Table of Contents 1 Introduction ........................................................................ 1 1.1 1.2 1.3 1.4 Features............................................................................... 2 Applications ......................................................................... 2 Specifications....................................................................... 3 Voltage Output ................................................................ 3 Current Output ......................
3.3 3.4 3.5 DA Output Register............................................................ 20 Digital Output Register....................................................... 21 Digital Input Ports............................................................... 21 4 Operation Theory .............................................................. 23 4.1 4.2 4.3 4.4 4.5 Voltage Output ................................................................... 23 Voltage Output Range Selection .........................
@Syntax ....................................................................... 35 @Return Code .............................................................. 35 5.8 _6308_Get_DA_Status...................................................... 36 @ Description ............................................................... 36 @ Syntax ...................................................................... 36 @ Arguments ................................................................ 36 @ Return Code ...........
List of Tables Table Table Table Table Table Table Table Table Table iv 2-1: 2-2: 2-3: 3-1: 3-2: 3-3: 3-4: 4-1: 5-1: CN1 Pin Assignment Legend .................................. Channel Jumper Settings ....................................... Output Range Jumper Settings .............................. I/O Address Map ..................................................... DA Output Register ................................................. Digital Output Register ............................................
List of Figures Figure 2-1: Figure 2-2: Figure 2-3: Figure 4-1: Figure 4-2: Figure 4-3: List of Figures PCI-6308V Layout ................................................... PCI-6308V 0A5 Version .......................................... CN1 Pin Assignment ............................................... Current Output Circuit.............................................. Isolated Digital Output ............................................. Isolated Digital Input ...........................................
1 Introduction The PCI-6308 series of isolated analog output cards includes the following three cards: X PCI-6308V: Isolated 8-CH voltage output card X PCI-6308A: Isolated 8-CH voltage and current output card X PCI-6304V: Isolated 4-CH voltage output card The PCI-6308V is a high-performance, 12-bit analog output board with PCI interface that provides 8 identical voltage output channels, with each channel capable of: (1) bipolar ±10V voltage outputs; (2) unipolar 0 - +10V voltage output; and (3) unipo
1.1 Features X 8-CH 12-bit voltage output X Fully isolation protection from PC power to external device X 3750Vrms isolation voltage for DA X 2500Vrms isolation voltage for DIO X Unipolar or bipolar voltage output range X Current output available on PCI-6308A, X On board DC-to-DC converter provide voltage and current source X 4 Isolated digital input channels X 4 Isolated digital output channels X Supports Universal +3.3V and +5V PCI Bus (Rev.
1.3 Specifications Voltage Output X Numbers of channel: 8 channel for PCI-6308V and PCI6308A X Converter: AD7564 or equivalent X Conversion type: Monolithic multiplying X Resolution: 12-bit no missing code (11-bit guarantee) X Voltage output range: (jumper selectable) Z Bipolar: ±10V Z Unipolar: 0 - 10V Z User defined unipolar: 0 - user defined voltage (inner ±15V) X Voltage output driving capability: ±20mA Max. X Settling time: 10µs (-10V to +10V) X DA update time: 13.
Current Output X Numbers of channel: 8 channel for PCI-6308A X Current output range: 0~20mA, 4~20mA, 5~25mA. (Software programmable) X Voltage to current converter: B.B. XTR110 or equivalent X Settling time: 17µs (0~20mA) X Slew rate: 1.3mA / µs X Non-linearity: ±0.01 % of Span X Span error: 0.
Power Supply source X X +15V output (Pin #7 on CN1): Z 200mA maximum (for PCI-6308V) Z 20mA maximum (for PCI-6308A, when all current output channel is 25mA) -15V output (Pin #25 on CN1): Z 200mA maximum (for PCI-6308V) Z 20mA maximum (for PCI-6308A, when all current output channel is 25mA) General Specifications X Operating temperature: 0 ~ 55°C X Storage temperature: -20 ~ 80°C X Humidity: 5 ~95% non-condensing X Connector: 37-pin D-sub connector (female) X Bus interface: 32-bit slave PC
1.4 Supporting Software ADLINK provides versatile software drivers and packages for different approaches to building up a system. We not only provide programming libraries such as DLL for many Windows systems, but also provide drivers for many software package such as LabVIEW®, HP VEETM, DASYLabTM, InTouchTM, InControlTM, ISaGRAFTM, and so on. All software options are included in the ADLINK CD. Non-free software drivers are protected with licensing codes.
The above software drivers are shipped with the board. Please refer to the “Software Installation Guide” for installation procedures. DAQ-LVIEW: LabVIEW® Driver DAQ-LVIEW contains the VIs, which are used to interface with NI’s LabVIEW® software package. The DAQ-LVIEW supports Windows 98/NT/2000/XP. The LabVIEW® drivers is shipped free with the board. You can install and use them without any license. For more information about PCIS-LVIEW, please refer to the user’s guide in the CD.
the ADLINK CD. It needs a license. The DDE server can be used in conjunction with any DDE client under Windows NT. PCIS-ISG: ISaGRAFTM driver The ISaGRAF WorkBench is an IEC1131-3 SoftPLC control program development environment. The PCIS-ISG includes ADLINK product drivers for ISaGRAF under Windows NT environment. The PCIS-ISG is included in the ADLINK CD. A license is needed to use the drivers. PCIS-ICL: InControlTM Driver PCIS-ICL is the InControl driver, which supports Windows 98/NT/ 2000/XP.
2 Installation This chapter outlines the contents of package, describes unpacking information, and describes how to install PCI-6308 hardware and software. 2.1 Contents of Package The package includes the following items: X PCI-6308V (or PCI-6308A) Board X ADLINK All-in-one Compact Disc X This User’s Manual X Software Installation Guide If any of these items are missing or damaged, contact your ADLINK dealer. Save the shipping materials and carton in to ship or store the product in the future.
2.2 Unpacking The PCI-6308 contains electro-static sensitive components that can be easily be damaged by static electricity. Therefore, the module should be handled on a grounded antistatic mat. The operator should be wearing an anti-static wristband, grounded at the same point as the anti-static mat. Inspect the module for obvious damage. Shipping and handling may cause damage to the module. Be sure there are no shipping and handling damage on the module before continuing.
2.
2.
2.5 Hardware Installation Outline Hardware configuration The PCI cards (or CompactPCI cards) are equipped with plug and play PCI controllers, it can request base addresses and interrupts according to the PCI standard. The system BIOS will assign the system resources based on the PCI cards’ configuration registers and system parameters (which are set by the system BIOS). Interrupt assignment and memory usage (I/O port locations) can only be assigned by the system BIOS.
2.6 Device Installation for Windows Systems Once Windows 98/2000/XP has started, the Plug and Play functions of the Windows system will find and locate the new NuDAQ/ NuIPC card. If this is the first time a NuDAQ/NuIPC card is installed in your Windows system, you will be prompted to input the device information source. Please refer to the “Software Installation Guide” for installation procedures of the device drivers.
2.
Legend Vn The voltage output of channel n. For PCI-6308V/ 6308A, n=0~7. An the current output of channel n. An is used by the PCI-6308A only, n=0~7. ExtVref External reference voltage for voltage output. AGND Ground of analog output channels and +/-15V. -15V -15V voltage output. +15V +15V voltage output. DIx Digital input channel x. DOx Digital Output channel x. DIGND Isolated ground of digital input. DOGND Isolated ground of digital output.
2.8 Jumper Settings The PCI-6308‘s voltage output channels can be configured with different voltage range. Each output channel and its corresponding jumpers are listed below. Channel NO.
Unipolar/Bipolar Output Range JP1~JP8 JP9~JP10 external/ internal JP11~JP12 -10V to +10V Bipolar (Default) 0V to +10V Unipolar 0V to ExtRef Voltage Unipolar Table 2-3: Output Range Jumper Settings 2.9 Termination Board Connection The PCI-6308 is equipped with a DB-37 connector. The available termination boards include: 18 X ACLD-9137: A general purposed 37-pin screw terminal. The ACLD-9137 has a DB-37 male connector, which is used to directly attach to the PCI-6308.
3 Registers The descriptions of the registers and structure of the PCI-6308 Series are outlined in this chapter. The information in this chapter will assist programmers, who wish to handle the card with lowlevel programs. In addition, the low level programming syntax is introduced. This information can help beginners to operate the 743X in the shortest possible time. 3.1 PCI PnP Registers This PCI card functions as a 32-bit PCI target device to any master on the PCI bus.
3.2 I/O Address Map Most of the PCI-6308 registers are 16 bits. Users can access these registers using 16-bit I/O instructions. The following table shows the registers map, including descriptions and their offset addresses relative to the base address.
3.4 Digital Output Register D0~D3 is the digital output signal written to the output channel. D4~D7 don’t care. Address: BASE + 40(hex) Attribute: write only Data Format: Bit 7 6 5 4 3 2 1 0 BASE+20 X X X X DO3 DO2 DO1 DO0 Table 3-3: Digital Output Register 3.5 Digital Input Ports D4~D7 is the digital input signal from CN1. D0~D3 is read back signal from the digital output channel.
22 Registers
4 Operation Theory In this chapter, the detail operation theory of the PCI-6308V and PCI-6308A is described. Before programming or applying the PCI6308 card to your application, please go through this chapter to understand the features first. 4.1 Voltage Output There are 8 voltage output channels for PCI-6308V and 6308A. For voltage output operation, you have to understand: 1. How to set the voltage output range. 2. The DA data format.
For +/-10V mode: Digital Value HEX value Output Voltage 4095 0xFFF +9.99969V 2048 0x800 0.00000V 0 0x000 -10.00000V For 0~+10V mode: Digital Value HEX value Output Voltage 4095 0xFFF +9.99969V 2048 0x800 5.00000V 0 0x000 0.00000V For 0V~Vuser mode: Digital Value HEX value Output Voltage 4095 0xFFF +Vuser 2048 0x800 +Vuser/2 0 0x000 0.00000V Table 4-1: DA Voltage Output Format The above table shows the address of every analog output ports relative to the base address.
4.2 Analog Output Status Register The DAC uses a series bus architecture hence there is a delay in the output of the digital value. The data transfer time for every DA data write takes 13µs, therefore the software driver must wait for 13µs before sending another set of data to any analog output port. While the DA value is sending, the Data_Send bit is ‘H’. The software driver should check this bit before writing any data to the output port. This register is read only. Base D16~D1 0x00 X D0 Data_Send 4.
example, voltage output channel 3 control the current source of channel 3. The output current range is programmable. The current range control register controls all 8 current channels on the PCI-6308A. There are three kinds of output current ranges. Refer to the following table and Section 5.2.9 for programming the current range using the _6308_I2V_Control function. Mode Input Voltage Range Output Current Range 0 0~10V 0~20 mA 1 0~10V 5~25 mA 2 -- -- 3 0~10V 4~20 mA 4.
4.5 Isolated Digital Input The isolated digital input circuits have the following characteristics. The input is equipped with a current-limit resistor. The input voltage can be up to 35V. The isolation voltage between the isolated input and the host power signals is 2500 Vrms.
28 Operation Theory
5 C/C++ Library This chapter describes the software library for operating this card. Only the functions in the DOS library and Windows 95 DLL are described. Please refer to the PCIS-DASK function reference manual, which is included in the ADLINK CD, for descriptions of Windows 98/NT/2000 DLL functions. Function prototypes and useful constants are defined in the header files of the LIB directory (DOS) and INCLUDE directory (Windows 95). For Windows 95 DLL, the developing environment can be Visual Basic 4.
All functions in the PCI-6308 driver start with 6308 as {hardware_model} and can be used by both the PCI-6308V and PCI-6308A. In order to distinguish the difference between DOS library and Windows 95 library, a capital "W" is place on the beginning of each function name of the Windows 95 DLL driver. e.g. W_6308_Initial(). Data Types We have defined some data type in the Pci_6308.h (DOS) and Acl_pci.h (Windows 95) header files.
5.3 _6308_Initial @ Description This function is used to initialize the PCI 6308. Every PCI_6308 has to be initialized by this function before calling other functions.
5.4 _6308_Software_Reset @ Description This function is used to reset the I/O port configuration. Note that this function cannot re-start the PCI bus and all the hardware setting won’t be change either.
5.5 _6308_DA @ Description This function is used to write data to the D/A converters. There are 8 Digital-to-Analog conversion channels on the PCI-6308. The resolution of each channel is 12 bits unsign; i.e. the digital value range from 0 (0x000) to +4095 (0xFFF). Please refer to section 4.1 for details of the DA data format.
5.6 _6308_DA_0_3 @Description This function is used to simultaneously write data to the D/A converters of channel 0 to channel 3. The resolution of each channel is 12 bits unsign; i.e. the digital value range from 0 to 4095. Please refer to section 4.1 for details of the DA data format.
5.7 _6308_DA_4_7 @Description This function is used to simultaneously write data to the D/A converters of channel 4 to channel 7. The resolution of each channel is 12 bits unsign; i.e. the digital value range from 0 to 4095. Please refer to section 4.1 for details of the DA data format.
5.8 _6308_Get_DA_Status @ Description This function is used to check the DA data sending status. Because the data transfer time for every DA data takes 16.0 µs, the software driver must wait for 16.0µs before sending another data to any analog output port. This function should be called before writing any data to the output port. While the DA value is sending, the returned value is “1”, otherwise the returned value is “0”.
5.9 _6308_DI @ Description This function is used to read data from the digital input ports. There are 4 digital input channels on the PCI-6308. The retrieved value is stored in DIData.
5.10 _6308_DO @ Description This function is used to write data to the digital output ports. There are 4 digital output channels on the PCI-6308, i.e. the output value ranges from 0 to 15.
5.11 _6308_I2V_Control @ Description This function is used to set the PCI-6308As’ voltage-to-current mode control. There are three range modes for the PCI-6308A. Please refer to section 3.3 for details of the voltage to current conversion.
40 C/C++ Library
Warranty Policy Thank you for choosing ADLINK. To understand your rights and enjoy all the after-sales services we offer, please read the following carefully. 1. Before using ADLINK’s products please read the user manual and follow the instructions exactly. When sending in damaged products for repair, please attach an RMA application form which can be downloaded from: http:// rma.adlinktech.com/policy/. 2.
3. Our repair service is not covered by ADLINK's two-year guarantee in the following situations: X Damage caused by not following instructions in the user's manual. X Damage caused by carelessness on the user's part during product transportation. X Damage caused by fire, earthquakes, floods, lightening, pollution, other acts of God, and/or incorrect usage of voltage transformers. X Damage caused by unsuitable storage environments (i.e. high temperatures, high humidity, or volatile chemicals).