background image

Artisan Technology Group 

is your source for quality 

new and certified-used/pre-owned equipment

• 

FAST SHIPPING AND 

DELIVERY

• 

TENS OF THOUSANDS OF 

IN-STOCK ITEMS

•  EQUIPMENT DEMOS
• 

HUNDREDS OF 

MANUFACTURERS 

SUPPORTED

•  LEASING/MONTHLY

 

RENTALS

•  ITAR CERTIFIED

           

SECURE ASSET 

SOLUTIONS

SERVICE CENTER REPAIRS

Experienced engineers and technicians on staff 

at our full-service, in-house repair center

WE BUY USED EQUIPMENT

Sell your excess, underutilized, and idle used equipment 

We also offer credit for buy-backs and trade-ins

www.artisantg.com/WeBuyEquipment

                        

REMOTE INSPECTION

Remotely inspect equipment before purchasing with 

our interactive website at

 

www.instraview.com

LOOKING FOR MORE INFORMATION? 

Visit us on the web at

 

www.artisantg.com

    

for more 

information on price quotations, drivers, technical 

specifications, manuals, and documentation

Contact us:

 

 

(888) 88-SOURCE  |  [email protected]  |  www.artisantg.com

SM

View

Instra

Summary of Contents for PCL-813

Page 1: ...l service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE INSPECTION Remotely inspect equipment before purchasing with our interactive website at www instraview com LOOKING FOR MORE INFORMATION Visit us on the web at www artisantg com for more information on ...

Page 2: ...l PCL 813 Model PCL 813 Model PCL 813 Model PCL 813 Model PCL 813 32 Channel Single Ended IsolatedAnalogInputCard Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 3: ...dreliable However AdvantechCo Ltd assumesnoresponsibilityforitsuse norforany infringementsofrightsofthirdpartieswhichmayresultfromitsuse Acknowledgments PC LabCard is a trademark of Advantech Co Ltd IBM PC and PC XT ATaretrademarksofInternationalBusinessMachines Corporation MS DOS MASM QuickBASIC Microsoft C and MS PASCALaretrademarksofMicrosoftCorporation Intelisatrade markofIntelCorporation Turb...

Page 4: ...ings 7 Connector Pin Assignment 9 Plugging the PCL 813 into your PC 10 CHAPTER 3 SIGNAL CONNECTION 11 AnalogInputConnection 12 CHAPTER 4 REGISTER STRUCTURE AND FORMAT 13 I O Port Address Map 14 A DDataRegisters 16 GainControlRegister 17 MultiplexerScanRegister 18 HowtoInitiateanA DConversion 19 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 5: ...SIC 4 0 and 4 5 32 MicrosoftC 32 Turbo C 33 Borland C 33 Microsoft PASCAL 34 Turbo PASCAL 34 APPENDIX A CALIBRATION 35 VR Assignments 36 VRlocation 37 A DCalibration 38 APPENDIX B PCLD 881 INDUSTRIAL TERMINATION BOARD 39 I n t r o d u c t i o n 40 F e a t u r e s 40 Applications 41 TechnicalDiagrams 42 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 6: ...Chapter 1 Introduction 1 1 1 1 1 1 INTRODUCTION C H A P T E R Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 7: ...atoryapplications Suchapplicationsinclude measurementoftransducerandsensordata waveformacquisitionand measurement processmonitoring andvibrationandtransient a n a l y s i s Features 32Single ended isolatedanaloginputs 12 BitresolutionA Dconversion Programmableanaloginputranges 5V 2 5V 1 25V 0 625V 0 10V 0 5V 0 2 5V 0 1 25V Supportssoftwaretrigger Versatile language drivers including BASIC PASCAL C...

Page 8: ...cation Amplification Amplification Amplification Amplification x1 x2 x4 x8 softwareprogrammable Triggermode Triggermode Triggermode Triggermode Triggermode Bysoftwaretrigger Temp coefficient Temp coefficient Temp coefficient Temp coefficient Temp coefficient 25 ppm O C Overvoltage Overvoltage Overvoltage Overvoltage Overvoltage Continuous 30 V maximum Input impedance Input impedance Input impedanc...

Page 9: ...Chapter 2 Installation 5 5 5 5 5 2 INSTALLATION C H A P T E R Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 10: ...iror r e p l a c et h eu n i t RemovethePCL 813cardfromitsprotectivepackaging carefully Keeptheanti vibrationpackage Wheneveryouarenot usingtheboard pleasestoreitinthepackageforprotection Dischargeanystaticelectricitybytouchingthebackofthesystem unitbeforeyouhandletheboard Youshouldavoidcontactwith m a t e r i a l st h a tc r e a t es t a t i ce l e c t r i c i t ys u c ha sp l a s t i c v i n y l...

Page 11: ...noconflictsbetweenthem andthePCL 813 KeepinmindthatthePCL 813uses16consecutive addresslocationsinyourPC sI Ospace Thefollowingtableprovides anI Oportaddressmapforyourreference Thiswillassistinlocating appropriateaddressesforyourotherperipheraldevicesandinterface cards I Oportbaseaddressesareselectedfromthe6 positionDIP switchSW1on boardthePCL 813 Thevalidaddressesare000to 3F0 hexadecimal Thefactor...

Page 12: ...00 100 l l l l l l 100 10F l l l l l 200 20F l l l l l 210 21F l l l l 220 22F l l l l 300 30F l l l l 3F0 3FF Off l On F a c t o r yd e f a u l ts e t t i n g NOTE NOTE NOTE NOTE NOTE A4 through A9 corresponds to your PC s address lines Input Range Selection IfyourapplicationalwaysusesUnipolarinputtypes youshould switchtheJP100tothe U location sothePCL 813mayacceptto 0 10V 0 5V 0 2 5V and 0 1 25V...

Page 13: ... 15 16 14 17 18 19 20 21 3 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 AI 1 AI 3 AI 5 AI 7 AI 9 AI 11 AI 13 AI 15 AGND AGND AI 17 AI 19 AI 21 AI 23 AI 25 AI 27 AI 29 AI 31 AI 0 AI 2 AI 4 AI 6 AI 8 AI 10 AI 12 AI 14 AGND AGND AI 16 AI 18 AI 20 AI 22 AI 24 AI 26 AI 28 AI 30 AGND Key AI Analoginput AGND Analog ground Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www ar...

Page 14: ...hefollowingprocedureasaguidelineforpluggingthePCL 813 intoyourPC 1 RemovethecoverfromthePC schassis andlocateavacant expansionslotonthepassivebackplaneormotherboardfor installingthePCL 813 2 Takethecardandinsertitintotheexpansionslot pressingit firmlyintoplace Usethecard smountingbracketasaguide betweenthechassis rearpanelandbackplaneormotherboard 3 Onceyouhaveinsertedthecardfirmlyintotheslot secu...

Page 15: ...Chapter 3 Signal Connection 11 11 11 11 11 3 Signal Connection C H A P T E R Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 16: ...tedtoananaloginputterminal whichisreferenced toacommonground Forexample inordertomeasurethevoltageof abattery simplyconnectitsnegativesidetothePCL 813 sground anyoneoftheAGNDpinsonconnectorCN1 anditspositivesideto oneofthecard sanaloginputchannels NOTE NOTE NOTE NOTE NOTE ThePCL 813doesnotsupportdifferentialsignalsourceinputs Thefollowingdiagramillustratesasingle ended commonground analoginputconn...

Page 17: ... Chapter 4 Chapter 4 Chapter 4 Chapter 4 Register Structure And Format 13 4 Register Structure And Format C H A P T E R Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 18: ...gister formatsandcontrolprocedures I O Port Address Map ThefollowingtableshowsyouwhichbaseI Oaddressesareusedby thePCL 813 Refertothismapfromtimetotimeinordertobecome familiarwitheachofthecard sregisterformatsandtheirpurpose SixteenconsecutiveregisterscorrespondingtotheirI Oaddressesare usedtocontrolthePCL 813 svariousfunctions Thefollowingtable hasbeenprovidedinthischapterasaprefacewhichoutlinest...

Page 19: ...5 A Dhighbyte N U BASE 6 N U N U BASE 7 N U N U BASE 8 N U N U BASE 9 N U Gaincontrol BASE 10 N U Multiplexerscancontrol BASE 11 N U N U BASE 12 N U SoftwareA Dtrigger BASE 13 N U N U BASE 14 N U N U BASE 15 N U N U NOTE NOTE NOTE NOTE NOTE N U Not used Thesectionsthatfollowprovidefurtherinformationabouteach r e g i s t e r sd a t af o r m a ta c c o r d i n gt oi t ss p e c i f i co p e r a t i o...

Page 20: ... D0 D0 D0 D0 AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 BASE 5 A D High Byte Data Read D7 D7 D7 D7 D7 D6 D6 D6 D6 D6 D5 D5 D5 D5 D5 D4 D4 D4 D4 D4 D3 D3 D3 D3 D3 D2 D2 D2 D2 D2 D1 D1 D1 D1 D1 D0 D0 D0 D0 D0 X X X DRDY AD11 AD10 AD9 AD8 Where AD0 through AD11 Represent the PCL 813 s A D data bits AD0 is theLeastSignificantBit LSB andAD11isthe MostSignificantBit MSB DRDY DataReadyBit WhenA Dconversionisin prog...

Page 21: ...D5 D5 D4 D4 D4 D4 D4 D3 D3 D3 D3 D3 D2 D2 D2 D2 D2 D1 D1 D1 D1 D1 D0 D0 D0 D0 D0 G1 G0 If JP100 is located at B G1 G1 G1 G1 G1 G0 G0 G0 G0 G0 Gain Gain Gain Gain Gain Input Range Input Range Input Range Input Range Input Range 0 0 x 1 5 V 0 1 x 2 2 5 V 1 0 x 4 1 25 V 1 1 x 8 0 625 V If JP100 is locatesd at U G1 G1 G1 G1 G1 G0 G0 G0 G0 G0 Gain Gain Gain Gain Gain Input Range Input Range Input Range...

Page 22: ...D7 D7 D7 D7 D6 D6 D6 D6 D6 D5 D5 D5 D5 D5 D4 D4 D4 D4 D4 D3 D3 D3 D3 D3 D2 D2 D2 D2 D2 D1 D1 D1 D1 D1 D0 D0 D0 D0 D0 C4 C3 C2 C1 C0 Inordertofacilitatetheselectionof32channelsusingthe5 bit register eachbit D0 D4 canbesetviathefollowingtable 32 channel selection C4 C4 C4 C4 C4 C3 C3 C3 C3 C3 C2 C2 C2 C2 C2 C1 C1 C1 C1 C1 C0 C0 C0 C0 C0 CH CH CH CH CH 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 2 0 0 0 1 1 3 ...

Page 23: ... Wesuggestthatyouusethelatter thePCL 813softwaredriver since Itmakesyourprogrammingjobeasier Youwillobtainamorereadablesourcecodewhichiseasytodebug Itwillenhanceyourprogram sperformance Forthosewhoprefertousethefirstmethod writingdirectlytotheI O portsfromwithintheirownapplication weprovidethefollowingstep bystepprocedure S t e p1 SetthedesiredchannelbyspecifyingtheMUXscanrange Waitatleast5msbefor...

Page 24: ...Chapter 5 Chapter 5 Chapter 5 Chapter 5 Chapter 5 Software 21 5 Software C H A P T E R Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 25: ...programmingbyusingaParame terTablereferencealgorithm Thetablesholdparameters minimum andmaximumvalues andotherspecificinformationregardingthe functions Incontrast theapplicationprogramcontainstables specifyingparametersandmodesofoperations Allthefunctioncalls supportedbythedriversneedonlytwoarguments thefunction numberandamemoryaddresspointerwhichpointstoapre defined ParameterTable OncetheParamete...

Page 26: ...e address param 10 FP_OFF ptr offset address param 11 FP_SEG ptr segment address param 12 0 only one buffer used param 13 0 param 14 100 number of A D conver sion param 15 0x0 A D start channel param 16 0xA A D stop channel param 17 0x0 gain code pcl813 3 param initialize the PC LabCard pcl813 4 param initialize A D func tion pcl813 5 param A D conversions and store converted data to buffer Artisa...

Page 27: ...ssetting just changethecorrespondingparameterinyourParameterTable Example Clanguage extern pcl813 int unsigned int unsigned int param 60 Parameter Table main param 15 0x0 A D start channel param 16 0xA A D stop channel pcl813 5 param S W triggered A D conversion param 15 0x2 A D start channel pcl813 5 param S W triggered A D conversion Artisan Technology Group Quality Instrumentation Guaranteed 88...

Page 28: ...ng wecandefinean individualParameterTableinadvanceforeachoffrequentlycalled functionswithouttroublesometablemodifications Example Clanguage extern pcl813 int unsigned int unsigned param1 60 Parameter Table 1 unsigned param2 60 Parameter Table 2 main JOB 1 param1 15 0x0 A D start channel param1 16 0xA A D stop channel param1 17 0x0 gain code pcl813 5 param1 S W triggered A D conversion JOB 2 param2...

Page 29: ...S i z e S i z e S i z e Index Index Index Index Index Board number 1 word Param 0 BaseI Oaddress 1 word Param 1 Reserved 1 word Param 2 Reserved 1 word Param 3 Reserved 1 word Param 4 Reserved 2 words Param 5 Reserved 1 word Param 7 Reserved 1 word Param 8 Reserved 1 word Param 9 A DDataBufferA saddress 2 words Param 10 A DDataBufferB saddress 2 words Param 12 A D conversion number 1 word Param 14...

Page 30: ...am 13 param 13 SegmentaddressforA DdatabufferB NOTE NOTE NOTE NOTE NOTE ForCorPASCAL usetheirbuilt inmemoryallocation functionstoallocatesufficientmemoryforbuffersAandB These memoryallocationfunctionswillreturntheoffsetandsegment addresses SavethemtoParam 10 throughParam 13 IfbufferBis notused besurethatyousetParam 12 andParam 13 to0 Because BASICA and Quick BASIC do not provide memory alloca tion...

Page 31: ...rivertoreferto t h eg a i na r r a yt a b l e param 18 param 18 param 18 param 18 param 18 Offsetaddressforthegainarraytable param 45 param 45 param 45 param 45 param 45 Errornumber param 46 param 46 param 46 param 46 param 46 Returnvalue0 param 47 param 47 param 47 param 47 param 47 Returnvalue1 Function List Special Function Calls Function 0 GetErrorMessage Function 1 Reserve Function 2 GetDrive...

Page 32: ...tofaddressofthestringpointer param 47 param 47 param 47 param 47 param 47 Segmentofaddressofthestringpointer Function2 GetDriverVersionNumber Thisfunctionreturnsthecurrentversionofthedriveraswellasthe v e r s i o no ft h i sD r i v e rS p e c i f i c a t i o n Parametersused param 45 param 45 param 45 param 45 param 45 Errorcode param 46 param 46 param 46 param 46 param 46 Driverspecificationversi...

Page 33: ...rorcode A D Function Calls Function4 A DInitialization ThisfunctionisusedtoinitializethePC LabCard sA Dfunction accordingtotheaboveparameter ssetting Returndata param 45 param 45 param 45 param 45 param 45 Errorcode Function5 PerformA Dconversionwithsoftwaredatatransfer ThisfunctionwillperformA DconversionNtimesusingsoftware t r i g g e rw i t hs o f t w a r ed a t at r a n s f e r I tw i l ln o t...

Page 34: ...20 SEG 256 PEEK H511 PEEK H510 130 SG SG 49152 16 140 DEF SEG SG 150 BLOAD 813BAS BIN 0 GWBASIC version 3 20 Thefollowingprogramexampleprovidesyouwiththeappropriate procedurestoloadthelanguageinterfaceforGWBASICVersion3 20 a n dl a t e r Example 110 LOAD 813BAS BIN DRIVER TO AN OUTSIDE AREA 120 DEF SEG H5000 DEFINE OUTSIDE AREA 130 BLOAD 813BAS BIN 140 END OF DRIVER LOADING Artisan Technology Grou...

Page 35: ...t C The following examples show you how to compile and link the interfacefordifferentmodesusingMicrosoftC Small Mode Compile c l A S cf i l e c Link linkfile 813CS LIB Compact Mode Compile c l A C cf i l e c Link linkfile 813CC LIB Medium Mode Compile c l A M cf i l e c Link linkfile 813CM LIB Large Mode Compile c l A L cf i l e c Link linkfile 813CL LIB Artisan Technology Group Quality Instrument...

Page 36: ...st Small Mode Theprojectfileshouldcontain813cs lib Compact Mode Theprojectfileshouldcontain813cc lib Medium Mode Theprojectfileshouldcontain813cm lib Large Mode Theprojectfileshouldcontain813cl lib Borland C The following examples show you how to compile and link the interfacefordifferentmodesusingBorlandC DOS Command Line Small Mode BCC ms cfile c813cs lib Compact Mode BCC mc cfile c813cc lib Med...

Page 37: ...as2 Link linkdemoxx 813msp pascal Turbo PASCAL The following examples show you how to compile and link the languageinterfaceusingTurboPASCALbyaddingcertainstatements toyourprogram Example 1 rogram main uses Crt F L 813tpf use as far call Example 2 rogram main uses Crt F L 813tpn use as near call Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 38: ...APPENDIX A APPENDIX A APPENDIX A APPENDIX A APPENDIX A Calibration 35 A Calibration A P P E N D I X Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 39: ...rdduringcalibrationandwill probablybeusefulforotherapplications CalibrationiseasilyperformedusingtheCALB EXEprogram This programwillleadyouthroughthecalibrationandset upprocedure withavarietyofpromptsandgraphicdisplaysdirectingyoutothe appropriateadjustments Materialinthissectionisbriefandis intendedforuseinconjunctionwiththecalibrationprogram VR Assignments The PCL 813 has four on board VRs which...

Page 40: ...X A APPENDIX A APPENDIX A Calibration 37 PCL 813 32 CH S E ISOLATED A D CARD A987 654 S W 1 VR4 VR1 VR2 V JP 100 TP 1 U 21 U 19 VRLocation Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 41: ...st VR1 untilthereadingoftheA Dconversionflickersbetween 2047 and 2048 2 Applyavoltagewithafull scalevaluecorrespondingtothe specificA DinputrangetoA DChannel0 AdjustVR2 untilthereadingoftheA Dconversionflickersbetween 4094 and 4095 b UnipolarAdjustment JP100locatedat U 1 Short the A D input of channel 0 to AGND Adjust VRI untilthereadingoftheA Dconversionflickersbetween 0000 and 0001 2 Applyavolta...

Page 42: ...PPENDIX B APPENDIX B APPENDIX B APPENDIX B Industrial Termination Board 39 B INDUSTRIAL TERMINATION BOARD A P P E N D I X Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 43: ...o rc u r r e n t t o v o l t a g e converterbyaddingresistorsandcapacitorsontotheboard scircuit p a d s Features Low costuniversalscrew terminalboardforPC LabCardswith20 pinconnectors 40terminalpointsforoneDB 37port Reservedspaceforsignal conditioningcircuitssuchaslow pass f i l t e r c u r r e n ts h u n ta n dv o l t a g ea t t e n u a t o r Industrialtypeterminationblockspermitheavy dutyandreli...

Page 44: ...connector Ra C0 Rb AIO A GND Terminal block a Straight throughconnection factorysetting Ra 0 W jumper Rb none open C0 none open b 1 6KHz 3dB lowpassfilter Ra 10 KW Rb none Co 0 01 mF c 1 0 1v o l t a g ea t t e n u a t o r Ra 9 KW Rb 1 KW C0 none Assume source impedance 10 KW d 4 20mAto1 5VDC signalconverter Ra 0 W jumper Rb 250W 0 1 precisionresistor C0 none 1 2pRaC0 Attenuation Rb Ra Rb f3dB Art...

Page 45: ...I7 RD3 R RD4 R CD2 CAP AG EI AG EI RD5 R RD6 R CD3 CAP AGND AI2 AGND EI8 RD17 R RD18 R CD9 CAP AGND AI8 AI7 AI8 AI9 AI10 AI11 AI12 AI13 AI14 AI15 AGND AGND AGND AGND AI16 AI17 AI18 AI19 AGND AI9 RD19 R AGND AI3 AGND EI9 RD7 R AG EI AG EI RD8 R RD9 R CD4 CAP AGND AI4 AGND EI10 RD20 R RD21 R CD10 CAP AGND AI10 AI20 AI21 AI22 AI23 AI24 AI25 AI26 AI27 AI28 AI29 AI30 AI31 AGND AGND RD22 R RD23 R CD11 C...

Page 46: ...R RD64 R AGND AI25 CD26 CAP AGND EI25 RD51 R RD52 R AGND AI19 CD20 CAP RD3 R RD40 R RD4 R RD42 R AGND AI20 CD21 CAP AGND EI26 RD53 R RD54 R AGND AI26 CD27 CAP AGND AGND AGND AI27 AGND EI27 RD55 R AGND AI21 RD4 R RD44 R RD4 R AGND AI22 CD22 CAP AGND EI28 RD56 R RD57 R AGND AI28 CD28 CAP AI 12 31 EI 12 31 AI 12 31 EI 12 31 AGND AGND CD29 CAP AGND RD58 R RD59 R AGND CD23 CAP RD46 R RD4 R RD48 R AGND ...

Page 47: ...ion a voltage calibrator or stable DC voltage source is required A card extender such as the PC LabCard Model PCL 757 is an inexpensive device that you will find greatly improves access to the board dur ing calibration and will probably be useful for other applications Calibration is easily performed using the CALB EXE program This program will lead you through the calibration and set up procedure...

Page 48: ...ents for each of the card s A D functions The location of each VR is indicated in Figure A 1 The function of each VR is listed below VR1 A D Bipolar offset adjustment VR2 A D Bipolar full scale adjustment VR3 Programmable amplifier offset adjustment VR4 A D Unipolar full scale adjust ment Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 49: ... Steps Calibration Steps Calibration Steps a Bipolar Adjustment a Bipolar Adjustment a Bipolar Adjustment a Bipolar Adjustment a Bipolar Adjustment JP100 located at B 1 Short the A D input of Channel 0 to AGND Adjust VR1 until the reading of the A D conversion flickers between 2047 and 2048 2 Apply a voltage with a full scale value corresponding to the specific A D input range to A D Channel 0 Adj...

Page 50: ...d 0001 2 Apply a voltage with a full scale value corresponding to the specific A D input range to A D channel 0 Adjust VR4 until the reading of the A D conversion flickers between 4094 and 4095 PCLD 881 Industrial Terminal Board Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 51: ...l service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE INSPECTION Remotely inspect equipment before purchasing with our interactive website at www instraview com LOOKING FOR MORE INFORMATION Visit us on the web at www artisantg com for more information on ...

Reviews: