B&B Electronics RS-485 manual

Page 25

The step size is also referred to as the resolution. Once the step size is known, all that is needed to determine the voltage of an A/D input is the number of steps. The data returned from the 485SDA10 is the number of steps. The voltage at the A/D inputs can be calculated as follows:

Voltage = (# of steps) * (Step size)

Example 4.1 - Assume: A/D Ref. Input + = 5.0V DC and A/D Ref.Input - = 0V DC.

Therefore:

Reference Range = (A/D Ref. Input +) - (A/D Ref. Input -) Reference Range = (5.0V DC) - (0V DC)

Reference Range = 5.0V DC

Step size = (Reference Range) / 1023 Step size = (5.0V DC) / 1023

Step size = 4.8876 millivolts

Example #1: A/D reading = 1023 (3FFH)

A/D voltage = reading * step size

A/D voltage = 1023 * 4.8876 millivolts

A/D voltage = 5.0 Volts

Example #2: A/D reading = 0

A/D voltage = 0 * 4.8876 millivolts

A/D voltage = 0 Volts

Example #3: A/D reading = 675 (2A3H)

A/D voltage = 675 * 4.8876 millivolts

A/D voltage = 3.2991 Volts

485SDA103798 Manual

21

B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 434-7094

Image 25 Contents
Designed and Manufactured Ottawa, Illinois Electronics Mfg. Co. IncInternet Table of Contents Tables Software485SDA103798 Manual Table of Contents Iii 485SDA10 Unit 485SDA10 FeaturesPacking List Software InstallationGetting Started UninstallWindows Windows 9x and Windows NTA/D with Variable Resistor 485SDA10 Specifications Ref Input + Inputs #0-10Analog Ground Ref InputTypical Connections 485SDA10 I/O Port Pinout Digital I/O ConnectionsDigital Inputs #0-2 Digital Outputs #0-2Typical Digital I/O Connections Digital GroundRS-485 Terminal Block Connections Serial Port ConnectionsTypical RS-485 2-wire Connection Power Supply Connections485SDA10 Commands CommandsSyntax Reading A/D Channels CommandEquivalent Values Ch#MSBch#LSBch#-1MSB...ch0MSBch0LSB AddrRA#Read A/D Response AddrRD Reading Digital I/O CommandStates Read Digital I/O Response for OutputsSet Module Address Command Set Digital Output CommandAddrSOstates Set Digital Output Data Byte ValuesSet Turn-around Delay Command Set Power-up States CommandRead Module Configuration Command Addressstatesdelay Input Range Sampling RateReference Inputs Converting Data Data RangePage Command$ = ! + CHR$addr + RA + CHR$channel Read A/D CommandPrint #1, Command$ MSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1Command$ = ! + CHR$addr + RD Read Digital I/O CommandReply$ = INPUT$ 1, #1 Digital I/O Mask Values Set Digital Output StatesCommand$ = ! + CHR$addr + SO + CHR$newaddr Command$ = !0SO + CHR$statesSet Module Address Addr =Addr = 5 states = States = states and NOTmaskCommand$ = ! + CHR$addr + SC + CHR$delay Set Turn-around DelayRead Module Configuration 00FF01FE #addrRA00FFComp = not x and &HFF Table A-1 Extended Commands Appendix B Analog Input Impedance 1 2 LSB = R s + 1k Ω × 60pF × ln2048 Simplified Analog Input Analysis485SDA103798 Manual Appendix B Table C-1 Decimal to HEX to Ascii Table Appendix C Decimal to HEX to Ascii TableClass a Equipment
Related manuals
Manual 39 pages 36.61 Kb Manual 46 pages 1.37 Kb