B&B Electronics 485DSS User Manual

Page 18

Advertising
background image

14

485DSS-0308

Manual

B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104

B&B Electronics – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91 792444 – Fax +353 91 792445

Unit 17 decimal (11 hex) waited 360 milliseconds and then
sent a reply indicating no connection of the RS-232 port to the
network and the CTS handshake line is in the high state.

If you were writing a program in BASIC to request status from

address 5 decimal, you might form a string like this:

DSS05RS$ = CHR$(19) + "0" + "5" + CHR$(6)

You could then send DSS05RS$ to request status from 485DSS
address 5. Use similar strings for requesting status from other
individual 485DSS's.

If you were writing a program in BASIC to request status from all

the 485DSS's on the network, you might form a string like this:

DSSALLRS$ = CHR$(19) + CHR$(18) + CHR$(18) + CHR$(6)

You could then send DSSALLRS$ to request status from all the
485DSS's on the network.

Setting the 485DSS Address

Assign each 485DSS on the RS-485 network its own unique

address. To set the address use the eight position DIP switch on
the 485DSS labeled “SW1”. Refer to Figure 2 for the location of the
switch. To access this switch, you will need to remove the top cover
of the 485DSS. Insert a small screwdriver in the slot in the side of
the cover and twist to remove it. Each switch position is equal to a
specific weight value. Set the 485DSS to any decimal address from
0 to 255. To assign the new address to the 485DSS, cycle the
power on the unit.

Table 4. Address Switch


DIP Switch 1

DECIMAL

WEIGHT

HEX

WEIGHT

1 1

1

2 2

2

3 4

4

4 8

8

5 16

10

6 32

20

7 64

40

8 128

80

OFF = Weight False ON = Weight True

Factory Default Address = 0

Advertising