B&B Electronics 485SDA10 Manual

Rs-485 data acquisition module
Table of Contents

Advertisement

Quick Links

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
485SDA103798 Manual
Cover Page
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094

Advertisement

Table of Contents
loading

Summary of Contents for B&B Electronics 485SDA10

  • Page 1 RS-485 Data Acquisition Module Model 485SDA10 Document No. 485SDA103798 This product Designed and Manufactured In Ottawa, Illinois 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...
  • Page 2: Table Of Contents

    Table of Contents Chapter 1- Introduction ...........1 485SDA10 Features ............1 Packing List ..............2 Software Installation ............2 DOS ..................2 Windows 3.11 ............... 3 Windows 9x and Windows NT..........3 Uninstall................. 3 Windows 3.11 ............... 3 Windows 9x & Windows NT ..........3 Getting Started ..............
  • Page 3 FIGURE 4.1 - A/D CONVERTER DATA RANGE........20 FIGURE B-1 - EQUIVALENT INPUT CIRCUIT INCL/DRIVING SOURCEB-3 Tables TABLE 2.1 - 485SDA10 I/O PORT PINOUT ........8 TABLE 2.2 - RS-485 TERMINAL BLOCK CONNECTIONS ..10 TABLE 3.1 - 485SDA10 COMMANDS ..........12 TABLE 3.2 - EQUIVALENT VALUES ..........
  • Page 4 TABLE 5.1 - DIGITAL I/O MASK VALUES........24 TABLE A-1 EXTENDED COMMANDS........A-2 TABLE C-1: DECIMAL TO HEX TO ASCII TABLE....C-1 485SDA103798 Manual Table of Contents B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094...
  • Page 5: Chapter 1- Introduction

    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 10-bit A/D (analog to digital), 3 digital inputs and 3 digital outputs. With these features, the module can be used to sense a variety of external conditions and to control a variety of devices.
  • Page 6: Packing List

    If any of these items are damaged or missing contact B&B Electronics immediately. Software Installation The 485SDA10 comes with several useful programs such as a data logging utility, a demonstration program, etc. The installation for the SDA Logger is different depending on the platform you install it to.
  • Page 7: Windows 3.11

    4. Click the Add/Remove button. 5. Follow the Uninstall Wizard. Getting Started This section will provide a quick example using the 485SDA10 and the demonstration program. If you experience any problems, refer to Chapter 2 for more precise information on connections. The demo program continually reads the A/D inputs and the digital I/O.
  • Page 8: Figure 1.3 - A/D With Variable Resistor

    Connect the 485SDA10 to an RS-422 or 4-wire RS-485 serial port. Once your connections have been made, run the demo program. Any change in A/D or digital lines on the 485SDA10 will automatically be displayed on the screen. Figure 1.3 - A/D with Variable Resistor 485SDA103798 Manual B&B Electronics -- 707 Dayton Rd.
  • Page 9: 485Sda10 Specifications

    485SDA10 Specifications Analog to Digital Converter Resolution: 10 bit Channels: Reference Range: 5.0V DC max. (4.888 mV per bit) 2.5V DC min. (2.444 mV per bit) A/D Ref. Input - 0V DC to 2.5V DC A/D Ref. Input + 2.5V DC to 5.0V DC Input Voltage Range: -0.3V DC to 5.3V DC...
  • Page 10: Chapter 2 - Connections

    • Serial port • Power supply Do not make any connections to the 485SDA10 until you have read this chapter. CAUTION: When making electrical connections it is important to power down the devices being connected. If this is not possible, precautions must be taken to ensure electrical specifications are not exceeded.
  • Page 11: A/D Ref Input

    Connect unused A/D inputs to analog ground. Typical Connections Figure 2.1 shows the typical connections of the 485SDA10 for a 0 to 5V DC input range. Figure 2.1 - Typical 0-5V A/D Connection 485SDA103798 Manual B&B Electronics -- 707 Dayton Rd.
  • Page 12: 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 sections explain the functions and connections for the various digital signals. Table 2.1 - 485SDA10 I/O Port Pinout DB-25S DB-25S Pin #...
  • Page 13: Digital Ground

    Connect unused digital inputs to digital ground. Typical Connections Figure 2.2 shows the typical connections of the 485SDA10 for the digital I/O lines. Figure 2.2 - Typical Digital I/O Connections 485SDA103798 Manual B&B Electronics -- 707 Dayton Rd.
  • Page 14: Serial Port Connections

    A typical 2-wire RS-485 connection is shown in Figure 2.3 and a typical RS-422 (or RS-485) 4-wire is shown in Figure 2.4. NOTE: The 485SDA10 labels the data lines with “A” and “B” designators (per EIA RS-485 Specification). However, some RS- 485 equipment used “+”...
  • Page 15: Power Supply Connections

    Figure 2.4 - Typical RS-422 Connection 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. Therefore, any current sourced with the digital outputs must be added to this value.
  • Page 16: Chapter 3 - Commands

    The command string consists of four bytes. Some commands require an additional data byte. For information on adding data field confirmation to the data fields refer to Appendix A. See Table 3.1. Table 3.1 - 485SDA10 Commands Function Command Response...
  • Page 17: Syntax

    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 of 0. Refer to Appendix C for more ASCII, decimal, and hexadecimal equivalents. Table 3.2 - Equivalent Values ASCII Decimal...
  • Page 18: Table 3.3 - Read A/D Response

    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 reading. The MSB is received first, followed by the LSB. This command requires a data byte.
  • Page 19: Reading Digital I/O Command

    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 correspond to the states of digital inputs 0-2. Bits 0-2 correspond to the states of digital outputs 0-2.
  • Page 20: Set Digital Output Command

    Set Module Address Command The Set Module Address command is used to change the address of a 485SDA10. This command requires a data byte. The data byte is used to specify the new address of the unit. The address of a module is stored in non-volatile memory.
  • Page 21: Set Power-Up States Command

    Set Turn-around Delay Command The Set Turn-around Delay command sets the amount of time the 485SDA10 waits to respond after executing a command. This delay is necessary when two RS-485 transmitters are sharing a pair of wires to ensure that two transmitters are not enabled at the same time.
  • Page 22: B&B Electronics -- 707 Dayton Rd. -- Po Box 1040 -- Ottawa, Il

    {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} is a byte representing the module’s turn-around delay. 485SDA103798 Manual B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094...
  • Page 23: Chapter 4 - A/D

    This averaging filters out noise. A/D Input Range The A/D input range on the 485SDA10 is from 0 to +5V DC. If it is possible for your device to output a voltage that doesn’t fall in this range, steps must be taken to ensure that the voltage remains between 0 and +5V DC.
  • Page 24: Data Range

    The data read from the 485SDA10 A/D converter is directly related to the A/D input channel and the reference range (discussed in previous sections). The 485SDA10 has a 10-bit A/D converter. A 10-bit A/D has 1024 possible output values, 0 to 1023 (0 to 3FFh).
  • 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...
  • Page 26: Chapter 5 - Software

    The various steps and examples are shown in QuickBasic. If you are programming in another language, these sections can be used as a guideline for programming the 485SDA10. Read A/D Command The Read A/D channels command returns two bytes for each channel read.
  • Page 27: Read Digital I/O Command

    ‘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$ = INPUT$ (1, #1) reading0 = (ASC(MSB$) * 256) + ASC(LSB$) The value of reading1 is the result of the A/D conversion on channel 1.
  • Page 28: Set Digital Output States

    Table 5.1 - Digital I/O Mask Values Mask Values I/O Line Hexadecimal Decimal Digital Output #0 Digital Output #1 Digital Output #2 Digital Input #0 Digital Input #1 Digital Input #2 Example 5.2 - Determining the status of Digital Input #1 of the module with and address of 10.
  • Page 29: Set Module Address

    Set Module Address The Set Module Address command is used to change the address of a 485SDA10. This command requires a data byte. The data byte is used to specify the new address of the unit. The address of a module is stored in non-volatile memory.
  • Page 30: Set Power-Up States Command

    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 States Command The Set Power-up States command is used to set the states of the digital outputs at power-up.
  • Page 31: Set Turn-Around Delay

    Set Turn-around Delay The Set Turn-around Delay command sets the amount of time the 485SDA10 waits to respond after executing a command. This delay is necessary when two RS-485 transmitters are sharing a pair of wires to ensure that two transmitters are not enabled at the same time.
  • Page 32: Read Module Configuration

    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 steps to reading a module’s configuration are given below: 1) Constructing the command string: Command$ = “!” + CHR$(addr) + “RC”...
  • Page 33: Appendix A: Adding Data Field Confirmation

    A communication error occurs when a bit transmitted as a “1” is received as a “0” or vice versa. If the 485SDA10 receives an error in one or more of the first four command characters (“!0xx”), the unit will not execute the command.
  • Page 34 Table A-1 Extended Commands Function Command Response Read A/D Channels #{addr}RA{x}{~x} {chxmsb}{~chxmsb}{chxlsb} {~chxlsb}{ch(x-1)msb}... {ch0msb} {~ch0msb}{ch0lsb}{~ch0lsb} Read Digital I/O #{addr}RD {I/O states}{~I/O states} Set Output States #{addr}SO{x}{~x} no response Set Module #{addr}SA{new no response Address addr}{~new addr} Set Power-up #{addr}SS{x}{~x} no response States Set Turn-around #{addr}SC{x}{~x}...
  • Page 35: Appendix B: Analog Input Impedance

    The data sheet for the TLC1543 states that “The driving source impedance should be less than or equal to 1kΩ.” B&B Electronics recommends placing a voltage follower between the 485SDA10 and any device with output source impedance greater than 1kΩ. 485SDA103798 Manual Appendix B B&B Electronics -- 707 Dayton Rd.
  • Page 36 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 ½ LSB can be derived as follows: The capacitance charging voltage is given by − t R C −...
  • Page 37 Figure B-1. Equivalent Input Circuit Including the Driving Source 485SDA103798 Manual Appendix B B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094...
  • Page 38: Appendix C: Decimal To Hex To Ascii Table

    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 HEX ASCII ctrl @ ctrl A “...
  • Page 39 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 protection against harmful interference when the equipment is operated in a commercial environment.

Table of Contents