Page 2
Trademarks NuDAQ, PCI-8136 are registered trademarks of ADLINK Technology Inc, MS-DOS & Windows 95 are registered trademarks of Microsoft Corporation., Borland C++ is a registered trademark of Borland International, Inc. Other...
Page 3
Getting service from ADLINK Customer Satisfaction is always the most important thing for ADLINK Tech Inc. If you need any help or service, please contact us and get it. ADLINK Technology Inc. Web Site http://www.adlink.com.tw http://www.adlinktechnology.com Sales & Service service@adlink.com.tw...
Page 6
Remote Serial IO.................. 31 Interrupt Control .................. 31 Chapter 5 ............. 34 Function Library List of Functions ................. 35 Initialization................... 36 System Parameters................38 Card Information ................. 40 Digital I/O ....................41 Remote I/O ( Not Released) .............. 43 Analog I/O....................45 Pulse I/O....................
How to Use This Guide This manual is designed to help you to use the PCI-8136. The manual describes how to modify various settings on the PCI-8136 card to meet your requirements. It is divided into five chapters: l Chapter 1, "Introduction", gives an overview of the product features, applications, and specifications.
Introduction The PCI-8136 is a multi function DAQ card. It contains 6-CH 12-bit AD for signal measurement and 6-CH 16-bit DA for precise voltage output. It also has six-channel 32-bit differential encoder counters and six pulse train generators. Both of them supports three kinds of differential pulse types: Out/Dir, A/B phase, CW/CCW.
Features The PCI-8136 provides ADPIO functions for users. The ADPIO stands for Analog/Digital/Pulse Input/Output. The following lists summarize the main features of the PCI-8136. l 32-bit PCI-bus, plug and play l 6 channels 16-bit analog output l 6 channels 12-bit analog input...
Page 11
u Analog Output l 6 output channels l Output range: bipolar, ±10V l 16-bit DAC resolution, 14-bit accuracy guaranteed l Settling time: 2 µ second l Voltage output drive: 5mA max. u Digital Input l 19 input channels for NPN type sensor l Input impedance: 4.7K Ohms l Max.
u Timer: l One 24-bit programmable timer l Base clock: 33MHz from PCI bus u General Specifications l Connectors: Ÿ 100-pin SCSI-type connector Ÿ DB25 female connector Ÿ DB9 male connector l Operating Temperature: 0° C ~ 50° C l Storage Temperature: -20° C ~ 80° C l Humidity: 5 ~ 85%, non-condensing l Power Consumption: Ÿ...
Installation This chapter describes how to install the PCI-8136 hardware and software correctly. Please follow the following steps. l Check what you have (section 2.1) l Check the PCB (section 2.2) l Install the hardware (section 2.3) l Install the software driver (section 2.4)
2.3.2 PCI slot selection Your computer will probably have both PCI and ISA slots. Do not force the PCI card into a PC/AT slot. The PCI-8136 can be used in any PCI slot. 2.3.3 Installation Procedures 1. Read through this manual, and setup the jumper according to your application 2.
CN1 Pin Assignments: Main Connector The CN1 is the major connector for the Digital I/O, Pulse IO and Analog output signals. Name Function Name Function AGND Analog ground AGND Analog ground Analog output, • Analog output, „ DAC1 DAC4 Analog output, ‚ Analog output, …...
Twisted wire:0.08mm to 0.32mm (AWG28 to AWG22) Naked wire length:10mm standard 4. The EX+24V is shorted inside PCI-8136 with COM+ in CN1 (No. 6,7,8). 5. The EXGND is shorted inside PCI-8136 with COM- in CN1 (No. 55,56). Installation • 9...
CN3 Pin Assignments: DB25 Connector The signals on CN3 are for Analog input and remote serial IO. G2SIOCLK/ (14) G2SIOCLK G2SCS0/ (15) S2SCS0 Remote serial IO #2 G2S2MD/ (16) G2S2MD G2M2SD/ (17) G2M2SD AGND (18) DAC1 Analog output DAC3 (19) DAC2 ADC1- (20)
The signal connections of all the I/O signals are described in this chapter. Please refer the contents of this chapter before wiring the cable between the PCI-8136 and IO Device. This chapter contains the following sections: l Section 3.1 Analog Inputs l Section 3.2 Analog Outputs...
Analog Input The PCI-8136 provides 6 12-bit A/D converter channels. The analog source is selectable for each channel to be ±10V DC (Default) or ±20 mA by soldering a 124O resistor which is shipped with PCI-8136. Figure 3.1.1: Current input mode – location of 124O resistor...
Page 21
To avoid ground loops and get more accuracy measurement of A/D conversion, it is quite important to understand the signal source type. The PCI-8136 provides differential input mode that consists of two inputs each channel. Signal Connector Function ADC1+ CN3 (DB25)
Analog Output The PCI-8136 provides 6 16-bit Digital-to-Analog converter channels. The output voltage ranged from -10 V to +10V. To make correct connection, please refer to following figure: Figure 3.2.1 Analog output circuit The Analog outputs are all single ended with common ground 'AGND'. The following is the pin assignment information for DAC.
Digital Input The PCI-8136 provides 19 digital inputs with 2500V rms isolation. The system recognizes a logical '1' when no current goes from COM+ to DIf, and, Logical '0' is returned when current goes from COM+ to DIf . The max current passing trough DIf must be less than 20mA.
Page 24
The following is the pin assignment information for digital input. Signal Connector Function DI01 CN1 (SCSI II – 100 Pin) Digital Input Ch. 01 DI02 CN1 (SCSI II – 100 Pin) Digital Input Ch. 02 DI03 CN1 (SCSI II – 100 Pin) Digital Input Ch.
Digital Output The PCI-8136 provides 7 open collector outputs with 2500 V rms isolation. The maximum output switching frequency is 10 kHz, when the continuous output supply current is subject to 500mA/total, 90mA/CH(typical), and 150mA/CH(max). In power-on state, the system issues a logical '0'.
Pulse Input (Encoder Counter) The PCI-8136 provides 6 differential pulse inputs with 2500V rms isolation. The pulse mode is software programmable to be AB-phase, CW/CCW, or Pulse/Direction, and the counter speed goes up to 2 MHz. The relative signal names, and pin numbers are shown in the following tables.
Page 27
(1) differential line driver or (2) open collector output. u Connection to Line Driver Output To drive the PCI-8136 encoder input, the driver output must provide at least 3.5V across the differential pairs with at least 6 mA driving capability. The ground level of the two sides must be tight together too.
Page 28
To connect with open collector output, an external power supply is necessary. Some motor drivers also provide the power source. The connection between PCI-8136, encoder, and the power supply is shown in the following diagram. Please note that the external current limit resistor R is necessary to protect the PCI-8136 input circuit.
Pulse Output (Pulse Generator) The PCI-8136 provides 6 differential pulse output channels. The pulse mode is software programmable to be Pulse/Direction, CW/CCW, or AB-phase, and the output frequency goes up to 500 KHz. The operations of pulse output channels are quite straightforward. Call library functions to set pulse mode, send pulse at constant frequency, and stop pulse.
Please don't use this voltage source on any device which is connected to PCI-8136's isolation I/Os. If not, the grounds will be connected at both of the isolative sides and the noise will be introduced from this loop.
Operation Theorem This chapter describes the detail operation of the PCI-8136 card. Contents of the following sections are as following. l Section 4.1: AD Conversion and Preloaded Trigger l Section 4.2: DA Conversion l Section 4.3: Local DIO l Section 4.4: Pulse Input and Position Compare l Section 4.5: Pulse Output...
AD Conversion and Preloaded Trigger 4.1.1 The PCI-8136 provides 6 differential ADC channels. Each channel consists of two inputs. One is for (+) signal and the other is for (-) signal. The input signal may be voltage ranged from –10 ~ +10V or current ranged from –20mA ~ 20mA.
4.1.2 Voltage Compare The voltage compare function of PCI-8136 is very useful. It allows user to set a compare value by software function. When one ADC signal reaches the pre-set value, an interrupt will be generated for corresponding channel. Relative functions:...
4.3.1 Digital Input The PCI-8136 provides 19 digital input channels with 2500Vrms isolation. The DI channel is logically “HIGH” when no current goes from COM+ to DIf , and, Logically “LOW” when current goes from COM+ to DIf . The max current passing through DIf must be less than 20mA..
Pulse Input and Position Compare 4.4.1 Pulse Input The PCI-8136 has 6 32-bit pulse input channels for encoder counter. It can accept 3 kinds of pulse signal: 1. Plus and minus pulses input (CW/CCW mode) 2. 90°phase difference signals(AB phase mode) 3.
Page 36
u 90°phase difference signals Input Mode(AB phase Mode) In this mode, the EA signal is 90° phase leading or lagging in comparison with EB signal. Where “lead” or “lag' of phase difference between two signals is caused by the turning direction of motors. The up/down counter counts up when the phase of EA signal leads the phase of EB signal.
_8136_S_Set_Int_Factor() : please refer to section 5,9 _8136_P_Set_Compare_Value(): please refer to section 5.8 Pulse Output The PCI-8136 provides 6 pulse output channels. They are used to send out constant-frequency pulse trains. When changing the output frequency of any channel, there is at most 265ms time delay.
Page 38
u Plus and minus pulses input mode(CW/CCW Mode) In this mode, plus frequency (plus direction) goes on OUT, whereas negative frequency (negative direction) is generated from DIR. Positive Direction Negative Direction u 90°phase difference signals input mode(AB phase Mode) In this mode, the OUT signal is 90° phase leading or lagging in comparison with DIR signal.
Remote Serial IO The PCI-8136 support 2 sets of remote serial IO, each set may consist at most 64DI and 64DO. To use remote serial IO function, a slave module is needed. Note: The remote I/O functions are reserved on current version Related functions: _8136_R_Initial() : please refer to section 5.2...
Page 40
Use Thread to deal with Interrupt under Windows NT/95 In order to detect the interrupt signal from PCI-8136 under Windows NT/95, users must create a thread routine first. Then use APIs provided by PCI-8136 to get the interrupt signal.Each card has 7 events for these interrupts. Event 0 ~ 5 stands for channel 0~5 and event 6 stands for timer interrupt and alarm interrupt.
Page 41
Steps: 1. Define a Global Value to deal with interrupt event HANDLE hEvent[7]; volatile bool ThreadOn; 2. In Initializing Section ( you must Initialize PCI-8136 properly first), set interrupt types and enable an event for each axis. _8136_S_Set_Int_Factor(0,0, 0x40); _8136_S_INT_Control(0,1);...
Function Library This chapter describes the supporting software for PCI-8136 cards. User can use these functions to develop application program in C or Visual Basic or C++ language. The function prototypes and some common data types are decelerated in PCI-8136.H. These data types are used by PCI-8136 library. We suggest you to use these data types in your application programs.
_8136_R_Initial – Initialize Remote I/O Module @ Description _8136_Initial: This function is used to initialize PCI-8136 card. User must use this function before any operation in the program. This function will return a number to notice user how many cards is found.
Page 45
@ Syntax C/C++ (DOS, Windows 95/98/NT/2000) I16 _8136_Initial(I16 *existCards); I16 _8136_S_Close(I16 CardNo); I16 _8136_A_Initial(I16 CardNo); I16 _8136_P_Initial(I16 CardNo); U16 _8136_R_Initial(I16 CardNo, I16 SlaveControl); Visual Basic 5.0 or higher B_8136_Initial (existCards As Integer) As Integer B_8136_S_Close (ByVal CardNo As Integer) As Integer B_8136_A_Initial (ByVal CardNo As Integer) As Integer B_8136_P_Initial (ByVal CardNo As Integer) As Integer B_8136_R_Initial (ByVal CardNo As Integer, ByVal SlaveControl...
16.7Mhz and the minimum is about 130Khz for each slave module. _8136_A_Set_DAC_Clk There are 6 serial type DA channels in PCI-8136. This function is for setting the DAC transmission clock. Assign a clock divider number to change the DAC transmission rate. The maximum transmission clock is about 8.33 Mhz and the minimum is about 65Khz.
Page 47
@ Syntax C/C++ (DOS, Windows 95/98/NT/2000) I16 _8136_R_Set_RIO_Clk(I16 CardNo, I16 SlaveNo, I16 Clk_Divider) I16 _8136_A_Set_DAC_Clk(I16 CardNo, I16 Clk_Divider) I16 _8136_A_Set_ADC_Clk(I16 CardNo, I16 Clk_Divider) I16 _8136_S_Set_Timer_Value(I16 CardNo,U32 TimerValue) I16 _8136_P_Set_Enc_Filter(I16 CardNo,I16 Filter) Visual Basic 5.0 or higher B_8136_R_Set_RIO_Clk(ByVal CardNo As Integer, ByVal SlaveNo As Integer, ByVal Clk_Divider As Integer) As Integer B_8136_A_Set_DAC_Clk(ByVal CardNo As Integer, ByVal Clk_Divider As Integer) As Integer...
@ Description _8136_S_Get_IRQ_Channel: Although PCI-8136 is a PCI interface card, user can use this function to get the IRQ channel which is assigned by PCI BIOS. This value is no meaning when operating this card. It is only a part of...
_8136_D_Input There are 19 open isolated digital input channels in PCI-8136. This function is for getting these input bits by setting them on or off. This function can get each channel individually. Please refer to the pin assignment for bit numbers.
Page 50
Visual Basic 5.0 or higher B_8136_D_Output(ByVal CardNo As Integer, ByVal Channe As Integer, ByVal Control As Integer) As Integer B_8136_D_Input(ByVal CardNo As Integer, ByVal Channel As Integer, Control As Integer) As Integer B_8136_D_OutputA (ByVal CardNo As Integer, ByVal Value As Integer) As Integer B_8136_D_InputA(ByVal CardNo As Integer, Value As Long) As Integer...
Remote I/O ( Not Released) @ Name _8136_R_Status - Check Remote I/O Status _8136_R_Write - Write a word to remote _8136_R_Read - Read a word from remote @ Description _8136_R_Status: This function is for checking remote I/O stopped status. If the remote I/O is not running, user can use this function to check to status of remote I/O.
Page 52
@ Argument CardNo: card number designated to set (Range 0 ~ 3) SlaveNo: assign slave number (Range 0~1) SetNo: I/O range in slave module 0: bit 0~15 1: bit 16~31 2: bit 32~47 3: bit 48~63 SetValue: 16-bit value to write *SetValue: 16-bit value to read @ Return Code ERR_RangeError...
Analog I/O @ Name _8136_A_Write_Value - Output DAC in value _8136_A_Write_Volt - Output DAC in voltage _8136_A_Read_Value - Input from ADC in value _8136_A_Read_Volt - Input from ADC in voltage _8136_A_Output_Control - Start or stop DAC output _8136_A_Set_Trigger - Set DAC output by trigger _8136_A_Set_Trigger_Map - Select DAC trigger source _8136_A_Set_Preload_Volt - Set DAC trigger output voltage _8136_A_Set_Compare_Value - Set ADC compare value...
Page 54
_8136_A_Output_Control Once user wants to stop outputting any voltage from DA channel, he can use this function to close DA channel immediately. It can be open again by this function too. _8136_A_Set_Trigger This function is for enable/disable DA channel output by trigger source.
Page 56
@ Argument CardNo: card number designated to set (Range 0 ~ 3) Channel: channel number designated to set (Range 0 ~ 6) Value: the output value for DAC channel (Range –32768 ~ +32767) Volt: the output voltage for DAC channel (Range –10.0 ~ +10.0) Value: the input value for ADC channel (Range 0 ~4000) Volt: the input voltage for ADC channel (Range –10.0 ~ +10.0) Control: enable or disable trigger ( 1 for enable/0 for...
@ Description _8136_P_Set_Output_Type: There are 3 pulse output types in PCI-8136. This function is for configuring pulse output type by a value. Write a value 0 is for pulse/direction type. Write a value 1 is for CW/CCW type. Write a value 2 is for A/B phase type.
Page 58
This function is for changing the output pulse frequency on line. _8136_P_Read_Index There are 6 index signal input in one PCI-8136. This function is for checking the index status on or off. Each bit of this status value represents a index status.
Interrupt @ Name _8136_INT_Enable - Set interrupt event handler _8136_INT_Disable - Remove int. event handler _8136_S_Set_Int_Factor - Set interrupt factor _8136_S_INT_Control - Enable/disable interrupt _8136_S_Get_Int_Status - Get Int. status _8136_Callback_Function - Set a call back function for int @ Description _8136_INT_Enable This function is only for Windows system.
Page 63
*IntStatus: Read the interrupt status of one axis. To adjudge which interrupt is coming. bit0: Positive Limit switch on bit1: Minus Limit switch on bit2: Emergency stop on bit3: Home switch on bit4: Index signal on bit5: Encoder value compared bit6: Timer interrupt bit7: ADC pre-load value reached OptionType: Set ADC compare direction...
Product Warranty/Service Seller warrants that equipment furnished will be free form defects in material and workmanship for a period of one year from the confirmed date of purchase of the original buyer and that upon written notice of any such defect, Seller will, at its option, repair or replace the defective item under the terms of this warranty, subject to the provisions and specific exclusions listed herein.
Need help?
Do you have a question about the PCI-8136 and is the answer not in the manual?
Questions and answers