B&B Electronics 485SDA10 Manual
485SDA103798 Manual
Cover Page
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
RS-485 Data Acquisition Module
Model 485SDA10
Document No. 485SDA103798
This product
Designed and Manufactured
In Ottawa, Illinois
USA
of domestic and imported parts by
B&B Electronics Mfg. Co. Inc.
707 Dayton Rd. -- P.O. Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Internet:
http://www.bb-elec.com
sales@bb-elec.com
support@bb.elec.com
1995 B&B Electronics -- Revised September 1998
Summary of 485SDA10
Page 1
485sda103798 manual cover page b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 rs-485 data acquisition module model 485sda10 document no. 485sda103798 this product designed and manufactured in ottawa, illinois usa of domestic and imported ...
Page 2: Table of Contents
485sda103798 manual table of contents i b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 table of contents chapter 1- introduction ...........................................1 485sda10 features .................................................
Page 3: Figures
Ii table of contents 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 set turn-around delay command ............................... 17 read module configuration command........................ 17 chapter 4 - a/d ...........
Page 4
485sda103798 manual table of contents iii b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 table 5.1 - digital i/o mask values.................................... 24 table a-1 extended commands........................................ A-2 ta...
Page 5: Chapter 1- Introduction
485sda103798 manual 1 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 chapter 1- introduction 485sda10 features the 485sda10 is a general purpose control module which operates through an rs-485 interface. The 485sda10 offers 11 channels of...
Page 6: Packing List
2 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 figure 1.2 - general block diagram packing list examine the shipping carton and contents for physical damage. The following items should be in the shipping carton: • 485...
Page 7: Uninstall
485sda103798 manual 3 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 windows 3.11 1. Insert sda logger installation disk in your floppy drive. 2. Click the file manager button. 3. Select the floppy drive containing the sda logger installa...
Page 8
4 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 variable resistor must be greater than 1k ohms to limit the output current to 5ma. • connect a/d ref input+ to +5v dc. • connect a/d ref input- to analog ground (see fig...
Page 9: 485Sda10 Specifications
485sda103798 manual 5 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 485sda10 specifications analog to digital converter resolution: 10 bit channels: 11 reference range: 5.0v dc max. (4.888 mv per bit) 2.5v dc min. (2.444 mv per bit) a/d ...
Page 10: Chapter 2 - Connections
6 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 chapter 2 - connections this chapter will cover the connections required for the 485sda10. There are four sets of connections: • a/d converter • digital i/o • serial por...
Page 11
485sda103798 manual 7 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 a/d ref input - the voltage connected to this pin determines the low end of the input voltage range. For proper operation, this pin must be connected to a dc voltage bet...
Page 12: Digital I/o Connections
8 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 digital i/o connections the digital i/o connections are made on the i/o port, which is a db-25s (female) connector. Table 2.1 shows the pinout of the i/o port. The next ...
Page 13
485sda103798 manual 9 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 digital ground connect the digital ground pin to your digital device's ground. To minimize noise, do not connect analog ground and digital ground together. Connect unuse...
Page 14: Serial Port Connections
10 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 serial port connections to communicate with the 485sda10 module, it must be connected to an rs-422/rs-485 serial port. The 485sda10 works with 2-wire or 4-wire rs-485. ...
Page 15: Power Supply Connections
485sda103798 manual 11 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 power supply connections the 485sda10 requires 7 to 18 v dc at 30ma. Remember that the 30ma requirement doesn’t include the power consumption of any external devices. T...
Page 16: Chapter 3 - Commands
12 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 chapter 3 - commands there are only three commands required to control the 485sda10: • read a/d command • read digital i/o command • set output states command there are...
Page 17: Syntax
485sda103798 manual 13 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 the decimal and hexadecimal equivalents of some ascii characters are shown in table 3.2. Notice that the ascii representation of the character “0” does not have a value...
Page 18
14 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 the read a/d channels command returns two bytes for each channel read. The two bytes represent the most significant byte (msb) and least significant byte (lsb) of the r...
Page 19: Reading Digital I/o Command
485sda103798 manual 15 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 reading digital i/o command the read digital i/o command returns a byte which represents the states of the 3 digital input and 3 digital output states. Bits 3-5 corresp...
Page 20: Set Digital Output Command
16 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 set digital output command the set digital output command is used to set the states of the 3 digital output lines. This command requires a data byte. The data byte is u...
Page 21: Set Power-Up States Command
485sda103798 manual 17 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 set power-up states command the set power-up states command is used to set the states of the digital outputs at power-up. This command requires a data byte. The data by...
Page 22
18 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 {address}{states}{delay} where {address} is a byte representing the module’s current address, {states} is a byte representing the module’s power-up states, and {delay} ...
Page 23: Chapter 4 - A/d
485sda103798 manual 19 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 chapter 4 - a/d this chapter will deal with manipulating an a/d reading and cover some of the aspects that were not explained in the a/d connections chapter. Sampling r...
Page 24: Data Range
20 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 data range the data range of the a/d converter is determined by a/d ref input+ and a/d ref input-. A/d ref input- sets the bottom of the data range. Any input voltage t...
Page 25
485sda103798 manual 21 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 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. Th...
Page 26: Chapter 5 - Software
22 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 chapter 5 - software this chapter covers programming techniques such as constructing a command string, receiving data and manipulating data. The various steps and examp...
Page 27: Read Digital I/o Command
485sda103798 manual 23 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 ‘get the value of channel 1 msb$ = input$ (1, #1) lsb$ = input$ (1, #1) reading1 = (asc(msb$) * 256) + asc(lsb$) ‘get the value of channel 0 msb$ = input$ (1, #1) lsb$ ...
Page 28: Set Digital Output States
24 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 table 5.1 - digital i/o mask values example 5.2 - determining the status of digital input #1 of the module with and address of 10. Mask = &h10 command$ = “!” + chr$(add...
Page 29: Set Module Address
485sda103798 manual 25 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 b) set appropriate outputs low states = states and (not(mask)) by “anding” the current states with the complement of the appropriate mask of a digital output (given in ...
Page 30: Set Power-Up States Command
26 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 example 5.4 – change the address of a model from 5 to 10. Addr = 5 newaddr = 10 command$ = “!” + chr$(addr) + “sa” + chr$(newaddr) print #1, command$ set power-up state...
Page 31: Set Turn-Around Delay
485sda103798 manual 27 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 ‘ clear bit 2 of states to make digital output 2 low states = states and (not(4)) command$ = “!” + chr$(addr) + “ss” + chr$(states) print #1, command$ at power-up digit...
Page 32: Read Module Configuration
28 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 read module configuration the read module configuration command reads the 485sda10’s address first, then the power-up states, and finally the turn-around delay. The ste...
Page 33
485sda103798 manual appendix a a-1 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 appendix a: adding data field confirmation with serial communications in a laboratory environment, the possibility of a communication error occurring is min...
Page 34
A-2 appendix a 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 where “x” is the required data byte and “~” signifies the complement of the specified byte. Table a-1 extended commands function command response read a/d c...
Page 35
485sda103798 manual appendix b b-1 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 appendix b: analog input impedance when interfacing with an a/d converter, it is important that the device you are connecting can drive the a/d input. To de...
Page 36
B-2 appendix b 485sda103798 manual b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 simplified analog input analysis using the equivalent circuit in figure b-1, the time required to charge the analog input capacitance from 0 to vs within ½ ...
Page 37
485sda103798 manual appendix b b-3 b&b electronics -- 707 dayton rd. -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 figure b-1. Equivalent input circuit including the driving source.
Page 38
485sda103798 manual appendix c c-1 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 434-7094 appendix c: decimal to hex to ascii table table c-1: decimal to hex to ascii table decimal to hex to ascii conversion table dec hex ascii key dec hex ascii dec hex ascii dec ...
Page 39
Fcc class a equipment statement federal communications commission radio frequency interface statement class a equipment this equipment has been tested and found to comply with the limits for class a digital device, pursuant to part 15 of the fcc rules. These limits are designed to provide reasonable...