B&B Electronics 232OPSDA manual Gain =

Page 19

The signal conditioning circuit for this A/D input channel has been designed to be easily modified. In the original configuration, R5 and R6 are left OPEN (they are not present). These two spaces are provided if you need a different gain. Reducing the gain of this non- inverting amplifier allows you to measure currents up to 100mA, and increasing the gain allows you to read much smaller currents with greater accuracy. See the circuit schematic in Figure B.1 and board layout in Figure B.2 in Appendix B.

To change the gain of this non-inverting amplifier, remove R8 and R9, and calculate values for R4 and R5 using the equation below.

Gain =

V0

= 1+

R5

10 × LoopCurrent

R4

NOTE: V0 is the voltage read by the A/D converter and (10 x loop

current) is the voltage drop across the 10Ω resistor. R4 and R5 should be chosen so that V0 does not exceed 5.00VDC.

NOTE: Decreasing the gain allows you to measure larger currents, but the maximum current that can be read is 100mA. The 100mA limit is due to the power rating of the 10Ω resistor (0.125W).

NOTE: When using the 4-20mA current loop input, A/D 1 - A/D 5 should be connected to the terminal block labeled GND.

Documentation Number 232OPSDA1397 Manual

17

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 433-5105

Image 19
Contents Designed and Manufactured Ottawa, Illinois Electronics Mfg. Co. IncInternet Table of Contents Page Introduction 232OPSDA FeaturesPacking List General Block Diagram232OPSDA Specifications Software InstallationAnalog to Digital Converter Communications Power SupplyDigital Input Digital OutputTerminal Function Description Block Connections232OPSDA Serial Port Connections Digital I/O Connections232OPSDA Power Supply Connections Commands Syntax Reading A/D Channels Command States Reading Digital I/O CommandSet Digital Output Command 0RDBuffered 0 to 5V A/D Inputs Sampling RateConverter Range Non-buffered 0 to 5VDC A/D Inputs20mA Current Loop A/D Input To 10VDC A/D InputGain = Application Program Interface Syntax C B232OPSDAReadDigitalSee Also B232OPSDASetDigitalOutputReturns DeinitComPort PurposeDeinitComPort Low-Level CommunicationsPort Address Returns See AlsoMSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1 Read A/D CommandCommand$ = !0RA + CHR$channel Print #1, Command$Read Digital I/O Command Status = states and mask Command$ = !0RDReply$ = INPUT$ 1, #1 States = ASCReply$States = states and NOTmask Command$ = !0SO + CHR$statesSet Digital Output State ‘ Set Output High states = states or maskDecimal to HEX to Ascii Conversion Table Appendix a Decimal to Hex to Ascii Conversion