B&B Electronics RS-485 manual Software, Tables

Page 3

 

Set Turn-around Delay Command

17

 

Read Module Configuration Command

17

Chapter 4 - A/D

19

 

Sampling Rate

19

 

A/D Input Range

19

 

Reference Inputs

19

 

Data Range

20

 

Converting Data

20

Chapter 5 - Software

22

 

Read A/D Command

22

 

Read Digital I/O Command

23

 

Set Digital Output States

24

 

Set Module Address

25

 

Set Power-up States Command

26

 

Set Turn-around Delay

27

 

Read Module Configuration

28

Appendix A: Adding Data Field Confirmation....

A-1

Appendix B: Analog Input Impedance

B-1

Appendix C: Decimal to HEX to ASCII Table ....

C-1

Figures

 

 

FIGURE 1.1 - 485SDA10 UNIT

1

FIGURE 1.2 - GENERAL BLOCK DIAGRAM

2

FIGURE 1.3 - A/D WITH VARIABLE RESISTOR

4

FIGURE 2.1 - TYPICAL 0-5V A/D CONNECTION

7

FIGURE 2.2 - TYPICAL DIGITAL I/O CONNECTIONS

9

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

13

TABLE 3.3 - READ A/D RESPONSE

14

TABLE 3.4 - READ DIGITAL I/O RESPONSE FOR OUTPUTS

15

TABLE 3.5 - READ DIGITAL I/O RESPONSE FOR INPUTS

15

TABLE 3.6 - SET DIGITAL OUTPUT DATA BYTE VALUES

16

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

Image 3 Contents
Electronics Mfg. Co. Inc Designed and Manufactured Ottawa, IllinoisInternet Table of Contents Tables Software485SDA103798 Manual Table of Contents Iii 485SDA10 Unit 485SDA10 FeaturesPacking List Software InstallationWindows 9x and Windows NT UninstallGetting Started WindowsA/D with Variable Resistor 485SDA10 Specifications Ref Input + Inputs #0-10Ref Input Analog GroundTypical Connections Digital Outputs #0-2 Digital I/O Connections485SDA10 I/O Port Pinout Digital Inputs #0-2Typical Digital I/O Connections Digital GroundRS-485 Terminal Block Connections Serial Port ConnectionsTypical RS-485 2-wire Connection Power Supply Connections485SDA10 Commands CommandsReading A/D Channels Command SyntaxEquivalent Values AddrRA# Ch#MSBch#LSBch#-1MSB...ch0MSBch0LSBRead A/D Response Read Digital I/O Response for Outputs Reading Digital I/O CommandAddrRD StatesSet Digital Output Data Byte Values Set Digital Output CommandSet Module Address Command AddrSOstatesSet Power-up States Command Set Turn-around Delay CommandRead Module Configuration Command Addressstatesdelay Sampling Rate Input RangeReference Inputs Converting Data Data RangePage MSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1 Read A/D CommandCommand$ = ! + CHR$addr + RA + CHR$channel Print #1, Command$Read Digital I/O Command Command$ = ! + CHR$addr + RDReply$ = INPUT$ 1, #1 Digital I/O Mask Values Set Digital Output StatesAddr = Command$ = !0SO + CHR$statesCommand$ = ! + CHR$addr + SO + CHR$newaddr Set Module AddressAddr = 5 states = States = states and NOTmaskCommand$ = ! + CHR$addr + SC + CHR$delay Set Turn-around DelayRead Module Configuration #addrRA00FF 00FF01FEComp = 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