Résumé du contenu de la page N° 1
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.
- FAX (815) 434-7094
Internet:
sales@bb-elec.com
support@bb.elec.com
© 1995 B&B Electronics -
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Cover Page 485SDA103798 Manual
- Revised September 1998
http://www.bb-elec.com
PH (81
Résumé du contenu de la page N° 2
Table of Contents Chapter 1- Introduction ...........................................1 ................................ ...................... 1 Packing List ................................ ................................ ... 2 ................................ ...................... 2 DOS 2 W 3 W W 3 ................................ ................................ ......... 3 W 3 W W 3 Getting Started ................................ .............................. 3 ..........................
Résumé du contenu de la page N° 3
............................... ........................ Chapter 4 - A/D .......................................................19 ................................ ............................. A/D Input Range ................................ .......................... Reference Inputs ................................ ......................... Data Range ................................ ................................ . ................................ ........................... Chapter 5 - So
Résumé du contenu de la page N° 4
TABLE 5.1 - DIGITAL I/O MASK VALUES ................................ .... 24 TABLE A-1 EXTENDED COMMANDS ................................ ........ 2 TABLE C-1: DECIMAL TO HEX TO ASCII TABLE .................... C - 1 Table of Contents B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094 iii 485SDA103798 Manual A-
Résumé du contenu de la page N° 5
Chapter 1- Introduction 485SDA10 Features offers 11 W ith these features, the module can be used to sense a 25S (female) connector. The 485SDA10 connects to the host computer’s RS-485 or -422 serial port using terminal blocks. T he address and turn- detects baud rates from 1200 to 9600. A data format of 8 data bits, The configuration parameters consist of the module address, states. Figure 1.1 - 485SDA10 Unit 1 B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815)
Résumé du contenu de la page N° 6
Figure 1.2 - General Block Diagram Packing List • • • This instruction manual • If any of these items are damaged or missing contact B&B Software Installation comes with several useful programs such as a DOS A: and press the INSTALL 2 B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094 485SDA103798 Manual Follow the instructions given by the program. 4. key. and press the Type 3. key. Type 2. Place the
Résumé du contenu de la page N° 7
Windows 3.11 Windows 9x and Windows NT Click the OK button to run the Setup.exe program. Uninstall W Windows 3.11 Double click the UNW W Windows 9x & Windows NT Click SDA LOGGER. Click the Add/Remove button. W Getting Started refer to Chapter 2 for more precise information on connections. The IRQ’s for COM1 and COM2. • 3 B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094 485SDA103798 Manual can connect a var
Résumé du contenu de la page N° 8
variable resistor must be greater than 1k Ohms to limit the output current to 5mA. • Ref • Ref • Once your connections have been made, run the demo program. Figure 1.3 - A/D with Variable Resistor 4 B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094 485SDA103798 Manual automatically be displayed on the screen. Any change in A/D or digital lines on the 485SDA10 will port. Connect the 485SDA10 to an RS-422 or 4-wire RS-485 seria
Résumé du contenu de la page N° 9
485SDA10 Specifications Analog to Digital Converter Reference Range: DC max. (4.888 mV per bit) 2.5V DC min. (2.444 mV per bit) Total Unadjusted Error: +/- 1 LSB max. A/D input channels must be driven from a source impedance less than 1k Ω . 5 Volt Reference 5mA max. Digital Inputs 3 Leakage Current: μ A max. Digital Outputs 3 0.6V DC @ 8.7mA 4.3V DC @ -5.4mA Power Supply consumption of external devices.) Communications Addresses: Software programmable from 0 to 255 character transmiss
Résumé du contenu de la page N° 10
Chapter 2 - Connections 485SDA10. There are four sets of connections: • • • • CAUTION: When making electrical connections it is important to precautions must be taken to ensure electrical specifications are not exceeded. NOTE: A/D Connections 25S (female) connector. Table 2.1 shows the The next sections explain the functions and connections for the A/D Inputs #0-10 A/D Ref Input + Ref must be at least 2.5V greater than A/D Ref Input-. μ F ceramic and 10 μ 6 B&B Electronics -- 707 Day
Résumé du contenu de la page N° 11
A/D Ref Input - T Analog Ground Ref do not connect Typical Connections Figure 2.1 - Typical 0-5V A/D Connection 7 B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094 485SDA103798 Manual 0 to 5V DC input range. Figure 2.1 shows the typical connections of the 485SDA10 for a unused A/D inputs to analog ground. analog ground and digital ground together. Connect Input- should be connected to this pin. To minimize noise, A/D ground
Résumé du contenu de la page N° 12
Digital I/O Connections DB-25S (female) connector. Table 2.1 shows the port. The next sections explain the functions and connections for Table 2.1 - 485SDA10 I/O Port Pinout 1 GND 2 3 4 5 6 7 8 9 Digital Inputs #0-2 voltages from -30V DC to +30V DC. If a digital input is from -30V W). If a digital Digital Outputs #0-2 W) will output a voltage from 0 to 0.6V from 4.3V DC to 5.0V DC. Refer to Chapter 1, Specifications, for 8 B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ott
Résumé du contenu de la page N° 13
Digital Ground minimize noise, do not connect Typical Connections Figure 2.2 - Typical Digital I/O Connections 9 B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094 485SDA103798 Manual the digital I/O lines. Figure 2.2 shows the typical connections of the 485SDA10 for together. Connect unused digital inputs to digital ground. analog ground and digital ground pin to your digital device's ground. To Connect the digital ground
Résumé du contenu de la page N° 14
Serial Port Connections To communicate with the 485SDA10 module, it must be The 485SDA10 works rates from 1200 to 9600. A data format of 8 data bits, 1 stop bit and Connections are made using terminal blocks. Table 2.2 shows the terminal blocks and their functions. Table 2.2 - RS-485 Terminal Block Connections 485SDA1 Label Signal 0 Function Notes Transmit Data (A) Output Connection is required. [Loop to RD(A) for 2-wire hookup] Transmit Data (B) Output Connection is required. [Loop to RD(B) f
Résumé du contenu de la page N° 15
Figure 2.3 - Typical RS-485 2-wire Connection Figure 2.4 - Typical RS-422 Connection Power Supply Connections requires 7 to 18 V DC at 30mA. Remember that the 30mA requirement doesn’t include the power consumption of B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 434-7094 11 485SDA103798 Manual outputs must be added to this value. sourced with the digital any external devices. Therefore, any current The 485SDA10
Résumé du contenu de la page N° 16
Chapter 3 - Commands There are only three commands • Read A/D command • Read digital I/O command • Set output states command There are four commands used to configure the module: • Set power-up states command • • Set module address command • Read module configuration command The command string consists of four bytes. Some commands Table 3.1 - 485SDA10 Commands Function Command Response Read A/D Channels !{ addr}RA{#} { ch#msb}{ ch#lsb} { ch(#-1) msb}... {ch0msb}{ch0lsb} Read Digital I/O !{ add
Résumé du contenu de la page N° 17
The decimal and hexadecimal equivalents of some ASCII characters more ASCII, decimal, and hexadecimal equivalents. Table 3.2 - Equivalent Values Decimal Hexadecimal ! 0 A D O 4Fh R S NUL 0 SOH 1 STX 2 ETX 3 EOT 4 ENQ 5 6 7 Syntax The command string consists start of message byte. The start of message byte is always the “!” command characters. These bytes are used to specify which command the module will execute. The read A/D and digital I/O Command Syntax: ! _ _ _ | | | | | | | | | | | | | |
Résumé du contenu de la page N° 18
The Read A/D channels command returns two bytes for each Command Syntax !{addr}RA{#} Where “{#}” is a byte that specifies the number of the highest {ch(#)MSB}{ch(#)LSB}{ch(#-1)MSB}...{ch0MSB}{ch0LSB} The most significant byte of the channel specified is received first. descending order. “{ chxMSB}” and “{ chxLSB}” represent the most Table 3.3 - Read A/D Response Response decimal Hex (order of response) 0 0 NUL 2 1 1 SOH 4 2 2 STX 6 3 3 ETX 8 4 4 EOT 5 5 ENQ 6 6 7 7 8 8 9 9 HT A LF NOTE: Ref +, R
Résumé du contenu de la page N° 19
Reading Digital I/O Command W Command Syntax !{addr}RD {states} Where {states} current states of Digital Outputs 0-2 and Bits 3-5 corresponds to the Table 3.4 - Read Digital I/O Response for Outputs 0 0 0 LOW LOW LOW 0 0 1 LOW LOW HIGH 0 1 0 LOW HIGH LOW 0 1 1 LOW HIGH HIGH 1 0 0 HIGH LOW LOW 1 0 1 HIGH LOW HIGH 1 1 0 HIGH HIGH LOW 1 1 1 HIGH HIGH HIGH Table 3.5 - Read Digital I/O Response for Inputs 0 0 0 LOW LOW LOW 0 0 1 LOW LOW HIGH 0 1 0 LOW HIGH LOW 0 1 1 LOW HIGH HIGH 1 0 0 HIGH LOW LOW
Résumé du contenu de la page N° 20
Set Digital Output Command The Set Digital Output command is used to set the states of the LOW . Refer to Table 3.6. NOTE: This command ignores Bits 3-7 of the data byte. Command Syntax !{addr}SO{states} Where {states} no response Table 3.6 - Set Digital Output Data Byte Values 0 0 0 LOW LOW LOW 0 0 1 LOW LOW HIGH 0 1 0 LOW HIGH LOW 0 1 1 LOW HIGH HIGH 1 0 0 HIGH LOW LOW 1 0 1 HIGH LOW HIGH 1 1 0 HIGH HIGH LOW 1 1 1 HIGH HIGH HIGH Set Module Address Command The Set Module Address command is use