Home

Model PCL-813 32-Channel Single-Ended Isolated Analog Input Card

image

Contents

1. H 25 18 PCL 813 User s Manual How to Initiate an A D Conversion The PCL 813 A D conversion is software controlled and is based upon the polling After the A D converter has been triggered the application program checks the Data Ready Bit DRDY of the A D status register If this bit is detected then A D eanversicn is in progress When this bit returns to low then A D conversion is campleted and the converted binary data may be read by the program There are two software methods to force the A D converter to execute single conversion by writing a program yourself that writes the instruction directly to the I O port or by writing a progran which utilizes that provided by the PCL 813 driver We suggest that you use the latter the PCL 813 software driver since It makes your progranming job easier You will obtain a more readable source code which is easy to debug It will enhance your program s performance For those who prefer to use the first method writing directly to the I O ports franwithin their own application we provide the following step by step procedure Step 1 Set the desired channel by specifying the MUX scan range Wait at least 5ms before issuing a new command to the PCL 813 Step 2 Trigger the A D conversion by writing any
2. 35 VR ASSTONMENES dy Sis dons doe Geared 36 VEGIOGGEJCD ts Reheat eee whew i 37 A D Calibration cud oe eo es 38 APPENDIX B PCLD 881 INDUSTRIAL TERMINATION BOARD 39 TREPOGUCEION 2 bab a bh ee ae RARE RR ee de 40 fx seh eee hake 40 Pm 41 INTRODUCTION Ae INTRODUCTION The PCL 813 32 Channel Single Ended Isolated Analog Input Card is an easy to use and cost effective PC XT AT carpatible data acquisition card The specifications and the user friendly software driver of this card mke it a popular solution for a wide range of industrial and laboratory agolications Such apgolications include measurement of transducer and sensor data waveform acquisition and measurement process monitoring and vibration and transient alysis Features 32 Single enced isolated analog inputs 12 Bit resolution A D conversion Programmable analog input ranges 25 V 12 5 V 1 25 V 0 625 V 0 10 V 0 5 V 0 2 5 V 0 1 25 V Supports software trigger Versatile language drivers including BASIC PASCAL C and CH 2 PCL 813 User s Manual Specifications Analog Input A D Converter Channels 32 Single ended with isolation Resolution 12 bit suc
3. 200 20F 210 21F 220 22F 300 30F O Off on Factory default setting NOTE A4 through A9 corresponds to your s address lines Input Range Selection If your application always uses Unipolar input types you should switch the JP100 to the U location so the PCL 813 may accept to 0 10 0 5V 0 2 5V and 0 1 25V Unipolar analog inputs 8 PCL 613 User s Manual Connector Pin Assignment The PCL 813 is equipped with one 37 pin D type connector located on the card s mounting bracket An illustration of this connector is given below 10 12 AI 1 14 16 15 ALB 17 Al 10 ANS 12 Al 11 AL 14 AI 13 AGND AI 15 AGND AGND AI 16 AGND AI 18 117 Al 20 Al 19 Al 22 Al 21 Al 24 Al 23 Al 26 Al 25 Al 28 Al 27 Al 30 Al 29 AGND Al 31 Key Analog input AGND Analog ground Chapter 2 Installation Plugging the PCL 813 into your PC Warning Turn off your PC s power supply whenever you install or remove the PCL 813 or its cables Static electricity can easily damage computer equipment Ground yourself by touching the chassis of the computer metal before you touch any boards See the static warning on page 6 Before you plug the PCL 813 into your PC make sure that the computer s power is tumedoff and that all power cords and all peripheral d
4. 242 9 930999 4 ees 3 CHAPTER 2 INSTALLATION 5 DS duse dus us 6 Switch and Jumper Settings 7 Connector Assignment 9 Plugging the 813 nto your PC 2 245 999 10 CHAPTER SIGNAL CONNECTION 11 Anexo pub Connect ION is ug o e so vue 12 CHAPTER 4 REGISTER STRUCTURE AND 13 T O Port Address RES 14 A D Data RediStets 646 604 om HO Ew 16 can A ie wA de Die XAR RE 17 Multiplexer Scan Register 18 How to Initiate an A D Conversion 19 ERACE M P 22 Parameter Table Sees SS lees 22 PareamEkerDescriptcHs ww ERST 27 sc ve ieee uo Te hee Se n UG 28 EUNCEVOMDESCHIDELON batts Aare RR 29 Iang MEATA 146043407 1 40 ux 3 BAS CA S scere co Per EE Ses Ve Aes TE 3l GWBASIC version 3 20 iul cae wk za 3l OUrCKBASIC A Qand AS ace eR RR 32 pila was 32 kil aioe tasty wales sine es eats eta T 33 Borland CEF quee ret e aie a ete acie 33 Mirerosoft PASCAL ewe ER Seas 34 TurbosPASCAD dte Sel Sa SoG 34 APPENDIX A
5. 20 RDS4 RD42 p27 2 AGND AGND AGND RDSS 27 27 Ar21 5 2 22 AGND AGND AGND 2 3 2 31 EID12 311 RDS7 28 Er28 A122 5 29 p23 AGND AGND AGND 29 29 A123 p24 AGND AGND AGND it Diagram PCLD 881 43 APPENDIX B Industrial Termination Board APPENDIX CALIBRATION In data acquisition and control applications it is important to ensure that all measurement devices are calibrated regularly in order to maintain accuracy A calibration program CALB EXE is provided on the PCL 813 software disk to assist your calibration work The minimum equipment required to perform a satisfactory calibration is a 4 digit digital multimeter In addition 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 with a variety of prompts and graphic displays directing you to the appropriate adjustments Materia
6. Model PCL 813 32 Channel Single Ended Isolated Analog Input Card Copyright Notice This documentation and the software included with this product are copyrighted 1994 by Advantech Co Ltd All rights are reserved Advantech Co Ltd reserves the right to make improvements to the products described in this manual at any time without notice No part of this manual or software may be reproduced copied translated or transmitted in any formor by any means without the prior written permission of Advantech Co Ltd Information provided inthis manual is intended to be accurate and reliable However Advantech Co Ltd assures no responsibility for its use nor for any infringaments of rights of third parties which may result fram its use Acknowledgments PC LabCard is a trademark of Advantech Co Ltd IBM PC and PC XT AT are trademarks of International Business Machines Corporation MS DOS MASM QuickBASIC Microsoft C and MS PASCAL are trademarks of Microsoft Corporation Intel is a trade mark of Intel Corporation Turbo C and Turbo PASCAL are trade marks of Borland International MOXA is a trademark of 404 Technologies Inc Part No 2003813030 4th Edition Printed Taiwan August 1994 Contents CHAPTER 1 INTRODUCTION 1 2 S selle
7. L 8130B QLB Example 2 L 813QB QLB Microsoft C The following examples show you how to compile and link the interface for different modes using Microsoft C Small Mode Compile cl 726 c ink Link file 813cS LIB Compact Mode Compile cl cfile c ink link file 8130C LIB Medium Mode Compile cl AM c file c ink link file 813CM LIB Large Mode Compile cl AL c file c ink link file 813CL LIB 32 PCL 813 User s Manual Turbo C The following examples show you how to compile and link the interface for different modes using Turbo C DOS Command Line Small Mode Toc rs file c 813cs lib Compact Mode w file c 813cc lib Medium Mode TCC m file c 813 lib Large Mode TOC 8131 15 Integrated Development Environment You will need to use a general text editor to create a project file with the extension name for example 813 PRJ which contains the corresponding mode interface and your program list Small Mode 2 The project file should contain 813cs 1ib Compact Mode 2 The project file should contain 813cc lib Medium Mode The project file should contain 813 lib Large Mode project file should omtain 813c1 1ib Borland C The following examples show you how to compile and link the interface for different modes using Borland
8. 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 D Data Buffer A s address 2 words Param 10 A D Data Buffer address 2 words Param 12 A D conversion number 1 word Param 14 A D start channel 1 word Param 15 A D stop channel 1 word Param 16 Overall gain code 1 word Param 17 Gain code array pointer 2 words Param 18 Error number 1 word Param 45 Return value 0 1 word Param 46 Return value 1 1 word Param 47 PCL 813 User s Manual Parameter Descriptions param 0 param 1 param 10 param 11 param 12 param 13 NOTE 0 Specify Number one Card 1 Specify Number two Card The software driver supports up to two PC LabCards at one time Set Param 0 to tell the driver which card is PC LabCard address can be anywhere from 200 Hex to 3F0 Hex The base address can be set to 200 or 210 230 or 240 FO Offset address for A D data buffer A Segment address for A D data buffer A Offset address for A D data buffer B Segment address for A D data buffer B For or PASCAL use their built in memory allocation functions to allocate sufficient memory for buffers and B These memory allocation functions will retum the offset and segment addresses Save them to Param 10 through Param 13 If buffer B is not used be sure that you set Param 12 and Param 13 t
9. DOS Command Line Small Mode ECC ms file c 813cs lib Compact Mode ECC c file c 813cc 1lib Medium Mode BCC m c file c 813 lib Large Mode ECC ml file c 813cl lib Integrated Development Environment In Borland s integrated environment just pick the Project menu to create a project file and add the corresponding mode interface toit Chapter 5 Software 33 34 Microsoft PASCAL he following examples show you how to compile and link the language interface using Microsoft PASCAL Example Compile demoxx pas2 Link Link cemoxx 813msptpascal Turbo PASCAL he following examples show you how to compile and link the language interface using Turbo PASCAL by adding certain statements to your program Example 1 rogram main uses Crt 5 SL 813tpf use as far call Example 2 rogram main uses Crt 5 SL 813tpn use as near call PCL 813 User s Manual Calibration APPENDIX CALIBRATION 36 Tn data acquisition and control applications it is important to ensure that all measurerent devices are calibrated regularly in order to maintain accuracy A calibration program CALB EXE is provided the 813 software disk to assist your calibration work The minimum equipment required to perform a satisfactory calibra tio isa digital miltimeter In aition a voltage ca
10. PCL 813 User s Manual Function Description Special Function Calls Function 0 Get Error Message This function retums a zero terminated text string pointer correspand ing to an error cock The zero temminated text string is a text string with numeric zero added at the end Parameters used param 45 Error code param 46 Offset of address of the string pointer param 47 Segrent of address of the string pointer Retum cata param 46 Offset of address of the string pointer param 47 Segrent of address of the string pointer Function 2 Gt Driver Version Number This function retums the current version of the driver as well as the versicn of this Driver Specification Parameters used param 45 Error code param 46 Driver specification version param 47 Driver version number Retum cata param 45 Error code param 46 Driver specification version nunber param 47 Driver version number Chapter 5 Software 29 Function 3 Driver Initialization The PC LakCard is initialized according to the parameter s defini tions It will stop all functims release all resources Tt shouldbe called before any other function Parameters used param 0 Board number param 1 Base I O address Return data param 45 Error code A D Function Calls Function 4 A D Initialization This function is used to initialize
11. the PC LakCard s A D function according to the above parameter s setting Retum cata param 45 Error code Function 5 Perform A D conversion with software data transfer This function will perform A D conversion N times using software trigger with software data transfer It will not retum until the Nth conversion has been campleted The value of N is specified at param 14 Retum cata param 45 Error code 30 PCL 813 User s Manual Language Interface BASICA The following program example provides you with the appropriate procedures to load the language interface for BASICA and GWBASIC version 2 02 Example 100 CLEAR 49152 110 DEF SEG 0 120 SEG 256 PEEK amp H511 PEEK amp H510 130 SG SG 49152 16 140 DEF SEG SG 150 BLOAD 813BAS BIN 0 GWBASIC version 3 20 The following program example provides you with the appropriate procedures to load the language interface for GNBASIC Version 3 20 ard later Example 110 LOAD 813BAS BIN DRIVER TO AN OUTSIDE AREA 120 DEF SEG amp H5000 DEFINE OUTSIDE AREA 130 BLOAD 813BAS BIN 140 END OF DRIVER LOADING Chapter 5 Software 31 QuickBASIC 4 0 and 4 5 The following program example provides you with the appropriate procedures to load the language interface for QuickBASIC 4 0 or 4 5 Example 1 QB filename
12. value to 2 of the A D port and then wait at least 20ms Step 3 Wait until the Data Ready Signal Read the A D high byte register DRDY bit D4 of BASE 5 has returned to low Step 4 Obtain the binary data by reading the A D registers 5 and 4 First read the high byte then the low byte Step 5 Convert the binary data to an integer value Refer to the 01 program for further details Chapter 4 Register Structure And Format 19 al GL IL el W Software SOFTWARE 22 Introduction This chapter describes the functions supported by the PCL 813 software driver Programming languages supported by the driver include BASICA GWBASIC Quick BASIC 4 0 4 5 Microsoft C Turbo C Borland Microsoft PASCAL and Turbo PASCAL The driver is a Terminate and Stay Resident TSR program which runs in the background while your application runs in the foreground You must install the driver before you can use the following functions Each PC LakCard has its own driver loaded typing the appropriate filename at the DOS prompt In the case of the PC LabCard PCL 813 just type PCL 813 at DOS prampt and press enter to load the program Parameter Table The software driver simplifies your programming by using a Parame ter Table reference algorithm The tables hold parameters minimum andmaximum values and other specific infomation regarding th
13. 5 ATL AES Ara AES AIT AGND m 16 AGND AGND Ar9 AI10 2 AIB RD17 EIS A12 RDS 114 AI1S AGND AGND AGND AGND RD18 AGND AGND cos RDG AGND AI16 117 9 19 A13 119 AI20 AI21 A122 Ax23 124 AGND X 4 25 A126 AI27 AI28 Ar10 RD21 er10 Ara RDO 129 AGND CONNECTOR 0837 Ar 12 31 Er 12 31 nnd AGND lt RD22 AGND AGND cos VA ar11 RD23 5 AGND cp12 RD24 AGND AGND 12 2 311 it Diagram PCID 881 PCL 813 User s Manual 42 RD61 Ar30 Er30 A124 Er24 Ar18 R R RD62 RDSO RD38 25 19 AGND AGND AGND AGND AGND RD63 51 Ar31 Er31 A125 E125 Ar19 RDS2 RD40 p32 26 co20 AGND AGND AGND AGND AGND RDS3 A126 6126
14. a preface which outlines these actresses relative to their location and reador write assign ments 14 PCL 813 User s Manual I O Port Address LOCATION READ WRITE BASE 0 N U U BASE 1 N U U BASE 2 N U U BASE 3 N U U BASE 4 A D low byte U BASE 5 A D high byte U BASE 6 U U BASE 7 U U BASE 8 U U BASE 9 N U Gain control BASE 10 U Multiplexer scan control BASE 11 U U BASE 12 U Software A D trigger BASE 13 U U BASE 14 U U BASE 15 U U NOTE N U Not used The sections that follow provide further infomation about each register s data fonat according to its specific goeratian Chapter 4 Register Structure And Format 15 16 A D Data Registers The PCL 813 uses the data registers located at I O ports BASE4 and BASE 5 to store the converted A D data The low byte data is stored at 4 and the high byte data is stored at BASES BASE 4 A D Low Byte Data Read D7 D6 05 04 D3 D2 D1 DO AD7 AD6 AD5 AD4 AD3 AD2 AD1 ADO BASE 5 A D High Byte Data Read D7 D6 D5 D4 D3 D2 D1 DO X X X DRDY 11 AD10 9 AD8 Where ADO through AD11 Represent the PCL 813 s A D data bits ADO is the Least Significant Bit LSB and 011 is the Most Significant Bit MSB DRDY Data Ready Bit When A D conversion is in progress this bit r
15. ate whenever a different A D range is selected Calibration Steps a Bipolar Adjustment JP100 located at 0 Short the A D input of Channel 0 to Adjust 1 until the reading of the A D conversion flickers between 2047 and 2048 0 Apply a voltage with a full scale value corresponding to the Specific A D input range to A D Channel 0 Adjust VR2 until the reading of the A D conversion flickers between 4094 and 4095 Unipolar Adjustment JP100 located at 707 0 Short the A D input of channel 0 to Adjust VRI until the reading of the A D conversion flickers between 0000 and 0001 Q 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 38 PCL 813 User s Manual INDUSTRIAL TERMINATION BOARD APPENDIX Introduction 40 The PCLD 881 is an universal screw temu nal board designed for feild signal wiring in industrial applications It can be connected to the analog and digital ports of various PC LABCards via shielded cable and DB 37 connector Due to the PCID 881 s special PCB layout you can install passive canponents to construct your own signal conditioning circuits You can easily construct low paess filter attenuator or current to voltage converter by adding resistors and capacitors onto the boan s circuit pecs Fe
16. atures Low cost universal screw termminal board for PC LabCards with 20 pin connectors 40 terminal points for DB 37 port Reserved space for signal conditioning circuits such as lowpass filter current shunt and voltage attenuator Industrial type termination blocks pemit heavy duty and reliable connections of signals Table top mounting using nylon standoffs Screws and washers provided for panel or wall mounting Dimensions 8 7 L x 4 53 221 m x 115 mm PCL 813 User s Manual Applications Field wiring for analog and digital I O channels of PC LabCards which employ standard or DB 37 connectors Signal omditioning circuits be implemented as illustrated in the following examples Ra AW Internal Terminal connector Re T9 block 4 GND Straight through connection factory setting Ra Jumper none open Co none open 1 6 KHz 3 B lowpass filter fope Ra TO RW 2pRaCO R none Co 0 01 mF C 10 1 voltage attenuator nomm Rb enuation ud Ra Rb Ro 1 KW Co none Assume source impedance 10 KW d 4 20 mA to 1 5 signal converter RA OW jumper R 250W 0 1 precision resistor Co none APPENDIX B Industrial Termination Board 41 AIT 2 AIG Ere AGND lt AGND AGND coi 1
17. cessive approximation Input Range Bipolar 5 V 2 5 V 1 25 V 0 625 V software programmable Unipolar 0 10V 0 5V 0 2 5V 0 1 25V software programmable Bipolar or Unipolar is selected by JP100 Converter AD574 or equivalent with 25 ms conversion time Data transfer rate 25 Kops maximum software control only Isolation voltage 2500 fram input to output Accuracy 0 01 of reading 1 LSB Nonlinearity 1 bit maximum Amplification 1 x2 x4 x8 software programmable Trigger mode By software trigger Temp coefficient 25 pom C Overvoltage Continuous 30 V maximum Input impedance gt 10 MW General Specifications Power consumption 5 V 660 mA typical 12 V 140 mA typical connector 37 D type connector analog input port Operating temp 0 to 50 C 32 to 122F Storage temp 20 to 50 C 4 to 1498 Board dimensions 99 mm x 219 mm Weight 210 gm 7 42 oz Chapter 1 Introduction INSTALLATION IB INSTALLATION 6 Initial Inspection When you receive your PCL 813 you should find enclosed One PCL 813 32 Channel Single Ended Isolated Analog Input Card User s Manual Utility Diskette which includes the card s software driver The PCL 813 was carefully inspected both mechanically and electri cally before shipment It should be free of marks and scratches and in perfect electrical order cn receipt When un
18. e functions In oontrast the application program contains tables specifying parameters and m s of operations All the function calls supported by the drivers need only two arguments the function number and a memory address pointer which points to a pre defined Parameter Table Once the Parameter Table is defined just assign the desired function number and the Parameter Table s address to the driver Once this is done it will pick uo the necessary parameters associated with that Specific functim call and then autaratically execute the function A Parareter Table s format will be illustrated in detail later in this manual What you have to know here is that the Parameter Tabl includes the parameter settings necessary for all data acquisition function calls supported by the software driver The following is an example of parameter tables PCL 813 User s Manual Example C language extern pcl813 int unsigned int unsigned param 60 Parameter Table unsigned buffer 100 A D data buffer main unsigned far ptr buffer pointer tr unsigned far buffer 0 0 card number param 1 0x220 I O base address param 10 FP_OFF ptr offset address param 11 SEG ptr segment address param 12 0 only one buffer used param 13 0 param 14 100 number o
19. emains as 1 It becomes 0 when the A D conversion is campleted PCL 813 User s Manual Gain Control Register BASE 9 is used to set the PCL 813 s amplification gain for A D conversion The PCL 813 provides four different gains xl x2 x4 and x8 The following tables out Line BASE 9 s register fonat and corre sponding gain settings BASE 9 Gain Control Register Write D7 06 05 04 D3 D2 D1 DO G1 GO If JP100 is located at B G1 GO Gain Input Range 0 0 x 5 V 0 1 32 5V 1 0 x 1 25 V 1 1 38 10 625 V If JP100 is locatesd at U G1 GO Gain Input Range 0 0 x 0 10V 0 1 x2 0 5V 1 0 x 0 2 5V 1 1 38 0 1 25V Chapter 4 Register Structure And Format T7 Multiplexer Scan Register The PCL 813 can multiplex up to 32 channels of analog input Users have to set this register located at 10 to select the channel to be measured before performing any A D conversion This is done by selecting the channel to be used using bit register The register format is as shown below BASE 10 Multiplexer Scan Control Write D7 D6 D5 D4 D3 D2 D1 DO 4 C3 C2 CO orcer to facilitate the selection of 32 chamels using the bit register eachbit 00 04 can be set via the following table 32 channel selection Q Q ui ex pues ae
20. evices have been disconnected fran the system Use the following procedure as a guideline for plugging the PCL 813 into your PC 1 Remove the cover fra the PC s chassis and locate a vacant expansion slot on the passive backplane or motherboard for installing the PCL 813 Take the card and insert it into the expansion slot pressing it fimmly into place Use the card s mounting bracket as a guide between the chassis rear panel and backplane or motherboard Once you have inserted the card into the slot secure it to the chassis by fastening its mounting bracket with a screw Attach the appropriate cable to connector Replace the chassis cover and reconnect all power cords and perid eral cables Installation of the PCL 813 is now canplete 10 PCL 813 User s Manual CHAPTER Signal Connection SIGNAL CONNECTION Since most data acquisition applications involve voltage measurement it is important to make the correct signal connections in order to avoid any damage to your system and to ensure accurate measurements This chapter provides same helpful infomation about making the proper signal connections for your application Analog Input Connection As you already know the PCL 813 supports 32 single ended isolated analog inputs A single ended analog input connection uses only one signal wire connected to an analog input terminal which is referenced caman ground For exa
21. f A D conver sion param 15 0x0 A D start channel param 16 OxA A D stop channel param 17 0x0 gain code 1813 3 initialize the LabCard 1813 4 initialize A D func tion 1813 5 A D conversions and store converted data to buffer Chapter 5 Software 23 24 There are two ways to change your program s settings 1 Modify corresponding parameters directly If you want to change the A D start channel number for example you do nct need to issue any function calls to change this setting just change the corresponding parameter in your Parameter Table Example C language extern pcl813 int unsigned int unsigned int param 60 Parameter Table main param 15 0x0 A D start channel param 16 OxA A D stop channel 1813 5 S W triggered A D conversion param 15 0x2 A D start channel pc1813 5 param S W triggered A D conversion PCL 813 User s Manual 2 Create a new Parameter Table The software driver s jdo oriented algorithm gives your program the capability of addressing several Parameter Tables using the same function call or group of function calls in one program It should ke noted however that the driver can only address one Parameter Table at atime The driver executes the 3006 according to the specified Para
22. l in this section is brief and is in tended for use in conjunction with the calibra tion program VR Assignments The PCL 813 has four on board VRs which will allow you to make accurate calibration adjust ments 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 Figure A 1 VR Location A D Calibration Because the PCL 813 supports a variety of A D input ranges accurate calibration for a cer tain A D range may result in a small offset when the input range is altered It is strongly suggested that you recalibrate whenever a dif ferent A D range is selected Calibration Steps a Bipolar Adjustment JP100 located at B 1 Short the A D input of Channel 0 to Adjust 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 Adjust VR2 until the reading of the A D conversion flickers between 4094 and 4095 b Unipolar Adjustment JP100 located at U 1 Short the A D input of channel 0 to AGND Adjust VRI until the reading of the A D conversion flickers between 0000 and 0001 2 Ap
23. librator stable DC voltage source is required A carc extender such as the PC LabCard Model PCL 757 is an inexpensive device that you will find greatly improves access to the board during calibration and will be useful for other applications Calibration is easily perfomed using the CALB EXE program This program will lead you through the calibration and set up procedure with a variety of prampts and graphic displays directing you to the agorooriate adjustments Material in this section is brief and is intended for use in conjunction with the calibration program VR Assignments The PCL 813 has four on board VRs which will allow you to make accurate calibration adjustments for each of the cand s A D functions The location of each VR is indicated in Figure A 1 The function of each VR is listed below A D Bipolar offset adjustment VR2 A D Bipolar full scale adjustment VR3 Programmable amplifier offset adjustment VR4 A D Unipolar full scale adjustment PCL 813 User s Manual PCL 813 32 CH S E ISOLATED A D CARD A987 654 JP 100 V VR2 V g E E 019 0 21 VR Location 37 APPENDIX A Calibration A D Calibration Because the PCL 813 supports a variety of A D input ranges accurate calibration for a certain A D range may result ina small offset when the ipt range is altered It is strongly suggested that you recalibr
24. meter Table For convenient progranming we can define an individual Parameter Table in advance for each of frequently called functions without troublesame table modifications Example C language extern pcl813 int unsigned int unsigned param1 60 Parameter Table 1 unsigned param2 60 Parameter Table 2 main JOB 1 15 0x0 A D start channel 1 16 OxA A D stop channel param1 17 0x0 gain code pcl813 5 paraml S W triggered A D conversion F JoB 2x param2 15 0x2 A D start channel param2 16 0x8 A D stop channel param2 17 0x5 gain code pcl813 5 param2 S W triggered A D conversion Chapter 5 Software 25 26 Two Parameter Tables are defined in this example Jobs 1 and 2 are the same exceot for the start channel stop channel and gain setting NOTE 1 When using BASIC language negative numbers must be used to reoresent integer data over 32767 2 Negative nunber integer 65536 3 For example you need to pass 45000 as input parameter to BASIC function 45000 65536 20536 So you have to use 20536 rather than 45000 as a parameter for the BASIC function Parameter List Name Size Index Board number 1 word Param 0 Base I O address 1 word Param 1 Reserved 1 word Param 2
25. mple in order to measure the voltage of abattery simply connect its negative side to the PCL 813 s ground any one of the pins on connector and its positive side to one of the s analog input channels NOTE The 813 does not support differential signal source inputs Ihe following diagram illustrates a single ended cammon ground analog input connection To A D CHIP Single Ended Analog Input Connection 12 PCL 813 User s Manual CHAPTER Register Structure And Format REGISTER STRUCTURE AND FORMAT This chapter has been written for those who wish to write their own software driver instead of using that of the PCL 813 The 813 requires 16 consecutive addresses in I O space The most important issue in programming the PCL 813 is understanding the meaning of the 16 registers addressable frm the selected I O port base aciress Here you will find cetailed infomation about the 813 s register and control procedures I O Port Address Map The following table shows you which base I O addresses are used by the PCL 813 Refer to this map fram time to time in order to became familiar with each of the card s register formats and their purpose Sixteen consecutive registers corresponding to their addresses are used to control the PCL 813 s various functions The following table has been provided in this chapter as
26. o 0 Because BASICA and Quick BASIC do not provide memory alloca tion functions you will have to assign explicit segwment addresses for each buffer If you assign a segment address as 0 then the driver will use the current data segment DS for buffers A and B If buffer is not used be sure that you set Param 12 and Param 13 to 0 param 14 param 15 This parameter sets the A D conversion number The range is fram 1 to 32767 Sets the A D start channel nurber Chapter 5 Software 27 param 16 param 17 param 18 param 45 param 46 param 47 Sets the A D stop channel nurber The driver allows you to set all the A D channels to the same amplification gain Param 17 sets the A D gain code for all channels Remenber that individual amplifi cation gains can be set for each channel defined in the gain array table This parameter is used only for setting all A D channels to the arplification gain Set Param 17 to FF Hex to cause the driver to refer to the gain array table Offset actress for the gain array table Error number Rectum value 0 Retun value 1 Function List Special Function Calls Function Function Function Function 0 Get Error Message 1 Reserve 2 Get Driver Version Number 3 Driver Initializatian A D Function Calls Function Function 4 A D Initializatim 5 Perfom A D conversion with software data transfer 28
27. packing check the unit for signs of shipping damage damaged box scratches dents etc If there is damage to the unit or it fails tomest specifications notify our service department or your local sales reoresentative immediately Also call the carrier im mediately and retain the shipping carton and packing material for the inspection by the carrier We will make arrangements to repair replace the unit Remove the PCL 813 card fram its protective packaging carefully Keep the anti vibration package Whenever you are not using the board please store it in the package for protection Discharge any static electricity by touching the back of the systen unit before you handle the board You should avoid contact with materials that create static electricity suchas plastic vinyl and styrofoam The board should be handled only by the edges to avoid static electric discharge which could damage the integrated circuits the PCL 813 Warning Discharge your body s static electric charge by touching the back of the grounded chassis of the system unit metal before handling the board You should avoid contact with materials that hold a static charge such as plastic vinyl and styrofoam Handle the board only by its edges to avoid static damage to its integrated circuits Avoid touching the exposed circuit connectors PCL 813 User s Manual Switch and Jumper Settings The PCL 813 has been designed
28. ply 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
29. with ease of use in mind On board the card you will notice that there is only one DIP switch SWl This switch is used to set the PCL 813 s base address Unipolar or Bipolar mode inputs is selected by jumper JP100 The following section goes into this Gail I O Address Selection Most peripheral devices and interface cards are controlled by your PC s I O ports These devices and cards should be placed in appropriate I O space so that there will be no conflicts between them and the PCL 813 Keep in mind that the PCL 813 uses 16 consecutive address locations in your s I O space The following table provides an I O port acdiress map for your reference This will assist in locating appropriate addresses for your other peripheral devices and interface cards I O port base addresses are selected frm the 6 position DIP switch SWl on board the PCL 813 The valid addresses are 000 to 360 hexadecimal The factory default base address setting is 220 From time to time you may find that you will have to use same of these spaces for other devices If this is the case then you can change the address according to the infomation given in the following table Chapter 2 Installation 7 CARD I O Address SW1 I O ADDRESS RANGE SWITCH POSITION 1 2 3 4 5 6 HEXADECIMAL 9 8 7 6 5 4 000 100 100 10

Download Pdf Manuals

image

Related Search

Related Contents

Ein Konzept zur international vergleichenden Analyse von  C - Brother  Intel BX80637I33240 BX80637I33240 User's Manual    Abridged user`s manual  Canon LS-330H User's Manual  Computation of characteristic polynomials of hyperplane  Valueline VLSP40904W coaxial connector  Manual del usuario  Philips SHB4000WT  

Copyright © All rights reserved.
Failed to retrieve file