background image

14

Signal Connections

3.1

Analog Input 

The PCI-8136 provides 6 A/D converter channels. The analog
source is selectable for each channel to be ±10V DC (Default) or
±20 mA automatically.

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 modes that consist
of two inputs per channel. 

A differential source means the ends of the signal are not
grounded. To avoid the danger of high voltage between the local
ground of signal and the ground of the PC system, a shorted

Signal PIN Connector

Function

ADC0+

20

CN3 (DB25) ADC channel 0 (+)

ADC0-

7

CN3 (DB25) ADC channel 0 (-)

ADC1+

21

CN3 (DB25) ADC channel 1 (+)

ADC1-

8

CN3 (DB25) ADC channel 1 (-)

ADC2+

22

CN3 (DB25) ADC channel 2 (+)

ADC2-

9

CN3 (DB25) ADC channel 2 (-)

ADC3+

23

CN3 (DB25) ADC channel 3 (+)

ADC3-

10

CN3 (DB25) ADC channel 3 (-)

ADC4+

24

CN3 (DB25) ADC channel 4 (+)

ADC4-

11

CN3 (DB25) ADC channel 4 (-)

ADC5+

25

CN3 (DB25) ADC channel 5 (+)

ADC5-

12

CN3 (DB25) ADC channel 5 (-)

Summary of Contents for PCI-8136

Page 1: ...Advance Technologies Automate the World Manual Rev 2 00 Revision Date July 5 2007 Part No 50 11120 1010 PCI 8136 General Purpose Multi Function I O Card User s Manual...

Page 2: ...or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copy right All rights are reserved No pa...

Page 3: ...ice 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 servi...

Page 4: ......

Page 5: ...n 7 Installation Procedures 7 Troubleshooting 7 2 4 Software Installation 8 2 5 CN1 Main Connector 8 2 6 CN2 External Power Input 10 2 7 CN3 Pin Assignments DB25 Connector 11 2 8 CN4 Pin Assignments D...

Page 6: ...coder Counter Value Capture latch 33 Encoder Counter Value Compare 34 4 5 Pulse Output 35 4 6 Interrupt Control 37 5 Function Library 41 5 1 List of Functions 42 5 2 Initialization 44 5 3 System Param...

Page 7: ...List of Tables iii List of Tables Table 2 1 CN1 Main Connector 8 Table 2 2 CN2 External Power Input 10 Table 4 1 _8136_S_Get_Int_Status 38...

Page 8: ...15 Figure 3 2 Analog output circuit 16 Figure 3 3 Digital input circuit 17 Figure 3 4 Digital output circuit 19 Figure 3 5 Pulse input encoder counter circuit 22 Figure 3 6 Connection to line driver o...

Page 9: ...channels and 6 open collector type digi tal output All digital I O are photo coupler isolated The PCI 8136 also has a 24 bit programmable timer for users to generate a con stant timer interval The PC...

Page 10: ...r digital output X Programmable interrupt sources X 6 differential types 32 bit encoder counters X 6 differential type pulse generators X One 24 bit programmable timer X Software supports maximum up t...

Page 11: ...d voltage 2500 VRMS X Throughput 10 kHz 0 1 ms Digital Output X 7 Output channels X Output type Darlington transistor with open collector type ULN2003A X Sink current Z 90 mA Ch typical Z 150 mA Ch ma...

Page 12: ...e connector Z DB9 male connector X Operating Temperature 0 C 50 C X Storage Temperature 20 C 80 C X Humidity 5 85 non condensing X Power Consumption Z Slot power supply input 5V DC 5 900mA max Z Exter...

Page 13: ...nd the connectors pin assignments the rest of the sections and wiring the connections 2 1 What You Have In addition to this User s Guide the package includes the following items X PCI 8136 General Pur...

Page 14: ...g Figure 2 1 PCB Layout of the PCI 8136 CN1 Main Connector CN2 External Power Input CN3 DB25 Connector for analog input output and remote I O CN4 DB9 Connector for remote I O Note Remote I O function...

Page 15: ...accessories printer modem monitor etc connected to computer 3 Remove the cover from your computer 4 Select a 32 bit PCI expansion slot PCI slots are shorter than ISA or EISA slots and are usually whit...

Page 16: ...I Digital Input 01 10 DI06 I Digital Input 06 60 DI08 I Digital Input 08 11 DI07 I Digital Input 07 61 DI09 I Digital Input 09 12 DO0 O Digital Output 00 62 DO1 O Digital Output 01 13 DI02 I Digital...

Page 17: ...37 EZ4 I Encoder Z phase 4 87 EZ5 I Encoder Z phase 5 38 EZ4 I Encoder Z phase 4 88 EZ5 I Encoder Z phase 5 39 OUT0 O Pulse signal 0 89 OUT1 O Pulse signal 1 40 OUT0 O Pulse signal 0 90 OUT1 O Pulse s...

Page 18: ...CN2 Z Solid wire 0 32 mm to 0 65 mm AWG28 to AWG22 Z Twisted wire 0 08 mm2 to 0 32 mm2 AWG28 to AWG22 Z Naked wire length 10 mm standard 4 The EX 24V is shorted inside PCI 8136 with COM in CN1 No 6 7...

Page 19: ...on CN3 are for Analog input and remote serial IO Note1 The DAC1 3 pins are the same with those on CN1 Note2 The Remote Serial IO 2 is reserved 2 8 CN4 Pin Assignments DB9 Connector The signals on CN4...

Page 20: ...12 Installation...

Page 21: ...se refer to the contents of this chapter before wiring the cable between the PCI 8136 and IO Device This chapter contains the following sections Section 3 1 Analog Inputs Section 3 2 Analog Outputs Se...

Page 22: ...channel A differential source means the ends of the signal are not grounded To avoid the danger of high voltage between the local ground of signal and the ground of the PC system a shorted Signal PIN...

Page 23: ...Signal Connections 15 ground path must be connected Figure 3 1 2 shows the connec tion of differential analog input sources Figure 3 1 Analog input circuit...

Page 24: ...nment information for DAC Signal PIN Connector Function DAC0 2 CN1 SCSI II 100 Pin DAC Channel 0 DAC1 3 CN1 SCSI II 100 Pin DAC Channel 1 DAC2 4 CN1 SCSI II 100 Pin DAC Channel 2 DAC3 52 CN1 SCSI II 1...

Page 25: ...ion 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 Here is...

Page 26: ...1 CN1 SCSI II 100 Pin Digital Input Ch 07 DI08 60 CN1 SCSI II 100 Pin Digital Input Ch 08 DI09 61 CN1 SCSI II 100 Pin Digital Input Ch 09 DI10 14 CN1 SCSI II 100 Pin Digital Input Ch 10 DI11 15 CN1 SC...

Page 27: ...et to LOW the resistance value between DO and COM becomes extremely large so that no current was drawn from COM The following is the pin assignment information for Digital Output Signal PIN Connector...

Page 28: ...20 Signal Connections COM 55 CN1 SCSI II 100 Pin DIO Common Ground COM 56 CN1 SCSI II 100 Pin DIO Common Ground Signal PIN Connector Function...

Page 29: ...SCSI II 100 Pin Encoder CH 1 A Phase EB1 73 CN1 SCSI II 100 Pin Encoder CH 1 B Phase EB1 74 CN1 SCSI II 100 Pin Encoder CH 1 B Phase EZ1 75 CN1 SCSI II 100 Pin Encoder CH 1 Z Phase EZ1 76 CN1 SCSI II...

Page 30: ...circuits The input circuits can connect to the encoder or motor driver which are equipped with 1 a differential line driver or 2 open collector output EB4 35 CN1 SCSI II 100 Pin Encoder CH 4 B Phase E...

Page 31: ...tion to Open Collector Output 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 t...

Page 32: ...24 Signal Connections Figure 3 7 Connect to open collector output...

Page 33: ...2 89 CN1 SCSI II 100 Pin CH 2 Pulse Signal OUT2 90 CN1 SCSI II 100 Pin CH 2 Pulse Signal DIR2 91 CN1 SCSI II 100 Pin CH 2 Direction Signal DIR2 92 CN1 SCSI II 100 Pin CH 2 Direction Signal OUT3 43 CN1...

Page 34: ...d VCC 5V on Pin5 of CN1 This voltage source is from external 24V 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...

Page 35: ...2 DA Conversion X Section 4 3 DIO X Section 4 4 Pulse Input and Position Compare X Section 4 5 Pulse Output X Section 4 6 Interrupt Control Please refer to the following architecture diagram of PCI 81...

Page 36: ...to D value read converting table The zero voltage or current is at value 2000 Related functions _8136_A_Initial please refer to section 5 5 _8136_A_Read_Value _8136_A_Read_Volt please refer to section...

Page 37: ...n nel occurs The trigger source could be from encoder counter comparators or ADCs by setting the trigger map in the software functions Users can set every channel s trigger sources indepen dently The...

Page 38: ...hannels 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 le...

Page 39: ...pen collector output channels with 2500Vrms isolation Please carefully refer to section 3 4 for the cir cuit wiring Related functions _8136_D_Output _8136_D_OutputA please refer to sec tion 5 4 DO COM...

Page 40: ...R 90 phase difference signals may be selected to be multiplied by a factor of 1 2 or 4x AB phase mode is the most commonly used for incremental encoder input For example if a rotary encoder has 2000 p...

Page 41: ...the waveform Pulse and direction input Pulse DIR In this mode the high low status of EB will cause the counter value to increase or decrease Direction whereas the high low status of EA will cause the...

Page 42: ...Encoder Counter Value Compare The PCI 8136 provides a position compare function for all six pulse input channels Once the counter value is reached the pre set compare value an interrupt signal will be...

Page 43: ...lse outputs 1 plus and minus pulse inputs CW CCW mode 2 pulse and direction input Pulse DIR 3 90 phase difference signals AB phase mode Pulse and direction input Pulse DIR In this mode the high low st...

Page 44: ...leading or lagging in comparison with DIR signal Where lead or lag of phase differ ence between two signals is caused by the direction of pulse train Related functions _8136_P_Initial please refer to...

Page 45: ...ition compare true Timer is card s internal timer ADC is analog compare true For each channel number the interrupt can be set according to above table Since interruptions can not be handled with a Win...

Page 46: ...mer interrupt 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 prop erly first set interrupt typ...

Page 47: ...t_status 0 0 IntSts ResetEvent hEvent 6 return 0 4 Start the thread Use a boolean value to control the thread s life ThreadOn TRUE AfxBeginThread IntThreadProc GetSafeHwnd THREA D_PRIORITY_NORMAL 5 Be...

Page 48: ...40 Operation Theory...

Page 49: ...to represent the functions real meaning The naming convention rules are In a C Environment _ hardware_model _ action_name e g _8136_Initial In order to recognize the difference between C C library and...

Page 50: ...tion 5 5 _8136_A_Initial Analog I O initialization _8136_A_Set_Source _8136_A_Write_Value _8136_A_Write_Volt Output DAC in voltage _8136_A_Read_Value Input from ADC in value _8136_A_Read_Volt Input fr...

Page 51: ..._Index_Latch Set index latch type _8136_P_Read_Latch_Value Read a latched encoder data _8136_P_Set_Compare_Value Set a encoder compare data _8136_P_Get_Stock_Count _8136_P_Set_Input_Logic Interrupt Se...

Page 52: ...use this function before the program ends _8136_S_Get_IRQ_Channel Although PCI 8136 is a PCI interface card this function can be used to get the IRQ channel which is assigned by PCI BIOS This value h...

Page 53: ...ardNo As Integer irq_no As Integer B_8136_S_Get_Base_Addr ByVal cardNo As Integer base_addr As Integer Arguments CardNo card number designated to set Range 0 3 existCards a return value to indicate ho...

Page 54: ...in PCI 8136 This function settles the ADC 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...

Page 55: ...yVal Clk_Divider As Integer As Integer B_8136_A_Set_ADC_Clk ByVal CardNo As Integer ByVal Clk_Divider As Integer As Integer B_8136_S_Set_Timer_Value ByVal CardNo As Integer ByVal TimerValue As Long As...

Page 56: ...s 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 _8136_D_OutputA There are 7 open collector output channe...

Page 57: ...Val 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...

Page 58: ...compare voltage Description _8136_A_Initial This function enables serial ADC and DAC functions and sets the transmission clock divider Tthis function must be used before using Analog IO _8136_A_Write...

Page 59: ...enables disables DA channel output by trigger source The trigger source would be ADC comparator interrupt or encoder counter comparator interrupt _8136_A_Set_Trigger_Map This function assigns each cha...

Page 60: ...CardNo I16 Channel I16 Value I16 _8136_A_Read_Volt I16 CardNo I16 Channel F32 Volt I16 _8136_A_Output_Control I16 CardNo I16 Channel I16 Control I16 _8136_A_Set_Compare_Value I16 CardNo I16 Channel I...

Page 61: ...hannel As Integer ByVal Control As Integer As Integer B_8136_A_Set_Trigger_Map ByVal CardNo As Integer ByVal Channel As Integer ByVal Source As Integer As Integer B_8136_A_Set_Trigger ByVal CardNo As...

Page 62: ...54 Function Library Value 0 5 is for encoder 0 5 Value 8 13 is for ADC channel 0 5 Return Code ERR_RangeError ERR_NoError...

Page 63: ...r compare data Description _8136_P_Initial This function is for setting the encoder counter s clockand enabling pulse output functions Tthis function must be used to enable pulse input and output _813...

Page 64: ...value to zero immedi ately _8136_P_Send This function sends a fixed frequency pulse train of each channel It will output a pre configured pulse format which is set by P_Set_Output_Type _8136_P_Stop T...

Page 65: ...16 PulseFmt I16 _8136_P_Set_Input_Type I16 CardNo I16 EncNo I16 EncFmt I16 Mul I16 _8136_P_Read I16 CardNo I16 EncNo I32 EncData I16 _8136_P_Send I16 CardNo I16 ChannelNo F64 FrqL I16 _8136_P_Stop I16...

Page 66: ...As Integer As Integer B_8136_P_Set_Compare_Value ByVal CardNo As Integer ByVal EncNo As Integer ByVal CompValue As Long As Integer B_8136_P_Read_Latch_Value ByVal CardNo As Integer ByVal EncNo As Inte...

Page 67: ...Phase 3 4X A_B Phase EncData read back encoder data FrqL Pulse output frequency Range 0 500k Hz CompValue Encoder Compare Value Index Index Status 0 or 1 Type two trigger latch mode 0 for first trigg...

Page 68: ...tem It clear event resources which is allocated by INT_Enable function _8136_S_Set_Int_Factor This function settles the interrupt source for each channel Every channel has 6 types of interrupt that ca...

Page 69: ...or OptionType U16 _S_Get_Int_Status I16 CardNo I16 AxisNo U16 IntStatus void _8136_Callback_Function I16 CardNo void callbackAddr I16 AxisNo U16 IntSts Visual Basic 5 0 or higher B_8136_INT_Enable ByV...

Page 70: ...nterrupt for each type in each bit bit0 Limit switch on bit1 Emergency stop on bit2 Home switch on bit3 Index signal on bit4 Encoder value compared bit5 Timer interrupt bit6 ADC pre load value reached...

Page 71: ...Function Library 63 3 Both Direction callbackAddr I16 AxisNo U16 IntSts function pointer type Return Code ERR_RangeError ERR_NoError...

Page 72: ...64 Function Library...

Page 73: ...pendix 65 6 Appendix 6 1 Auto Calibration Utility 1 Execute the utility under c program file adlink pci 8136 utility 2 Connect all AD channel to ground 3 It will remind you when you press Tune AD butt...

Page 74: ...dix 4 After a minute a message will show that the adjustment is complete 5 Connect all DA channels to AD channels one by one then press Tune DA button 6 It will remind you to connect the AD channel to...

Page 75: ...Appendix 67 nel one by one 7 After a minute a messge will show that the adjustment is complete 8 Please use multimeter to do measure and adjust...

Page 76: ...68 Appendix 9 Use the 4 buttons outlined below to do fine adjustments Please use Channel item box to change DA channel...

Page 77: ...Appendix 69 10 Please press Save All Channel to save parameter 11 You will be asked if you would like to save the adjust ment value 11...

Page 78: ...70 Appendix 12 A save finish window will appear 13 Press Exit button to exit utility...

Page 79: ...Appendix 71 6 2 Analog Output Error Test This appendix is a reference for error values and their analog out put The error value depends on your card Channel 0 Channel 1...

Page 80: ...72 Appendix Channel 2 Channel 3...

Page 81: ...Appendix 73 Channel 4 Channel 5...

Page 82: ...74 Appendix...

Page 83: ...party products not manufactured by ADLINK will be covered by the original manufactur ers warranty X For products containing storage devices hard drives flash cards etc please back up your data before...

Page 84: ...f battery fluid during or after change of batteries by customer user X Damage from improper repair by unauthorized ADLINK technicians X Products with altered and or damaged serial numbers are not enti...

Reviews: