B&B Electronics RS-485 Digital I/O Module 485SDD16 User Manual Download Page 8

 

485SDD16-1005 Manual 

 

11 

B&B Electronics  --  707 Dayton Road  --  Ottawa, IL  61350 

PH (815) 433-5100  --  FAX (815) 433-5104

 

 

A byte represents an eight-bit binary number (11111111), 

therefore each byte can represent eight I/O lines.  Each bit is 
assigned a bit position and a weight (value).  Refer to Table 3.3.  
 

Table 3.3 - Bit Assignments for I/O Lines 

 

MOST SIGNIFICANT I/O BYTE 

I/O 

Line 

#  15 14 13 12 11 10  9  8 

Bit 

Position 7 6 5 4 3 2 1 0 

Hex 

Weight 80 40 20 10  8  4  2  1 

Dec. Weight

 

128 

64 32 16 8 4 2 1 

LEAST SIGNIFICANT I/O BYTE 

I/O 

Line 

# 7 6 5 4 3 2 1 0 

Bit 

Position 7 6 5 4 3 2 1 0 

Hex 

Weight 80 40 20 10  8  4  2  1 

Dec. Weight

 

128 

64 32 16 8 4 2 1 

 
 

To set an output to a HIGH state the corresponding bit position 

must be set to a "1". Conversely to set an output LOW the 
corresponding bit position must be set to a "0".  When reading I/O 
lines, any bit set to a  "0" indicates the corresponding  I/O line is in 
the LOW state and any bit set to a "1" indicates the corresponding 
I/O line is in the HIGH state. 

 
Example 3.1 

- To set outputs 15, 8, 1, and 0 to a HIGH state, and all 

other outputs to a LOW state (shown in bold face) - 

 

 MS Byte 

 

 LS Byte 

Shown in binary -  

10000001

 

 

00000011

 

Shown in decimal -  

129 

(128+1) 

 

(2+1) 

Shown in hexadecimal -  

81 

(80h+1h) 

 

(2h+1h) 

 
Example 3.2 

- Reply from Read I/O command (shown in bold face) - 

 

 MS Byte 

 

 LS Byte 

Shown in binary -  

11001000

 

 

01010010

 

Shown in decimal -  

200 

(128+64+8) 

 

82 

(64+16+2) 

Shown in hexadecimal -  

C8 

(80h+40h+8h) 

 

52 

(40h+10h+2h) 

 

I/O lines #15, 14, 11, 6, 4, 1 are HIGH and all other I/O lines are 
LOW. 

12 485SDD16-1005 

Manual 

B&B Electronics  --  707 Dayton Road  --  Ottawa, IL  61350 

PH (815) 433-5100  --  FAX (815) 433-5104

 

Read I/O Lines Command 

 

The Read I/O Lines command returns two data bytes that reflect 

the state of the I/O lines.  The first data byte contains the most 
significant I/O lines (15 - 8).  The second data byte contains the least 
significant I/O lines (7 - 0).  If a bit is a "0" then the state of that I/O 
line is LOW. If a bit is a "1" then the state of that I/O line is HIGH. 
 
Command: !{addr}RD 
Argument: none 
Response:  the state of the 16 I/O lines in two 8 bit bytes. (shown in 
bold face)

 

ASCII Example: !0RD

ÈR

 

Dec. Example:  !0RD<

200

><

82

Hex. Example:  !0RD<

C8

><

52

Bin. Example:  !0RD<

11001000

><

01010010

Description:  Read module 0's (decimal 48) I/O lines.  The first byte 
indicates that I/O lines #15, 14, & 11 are HIGH and I/O lines # 13, 
12, 10, 9, & 8 are LOW; the second byte indicates that I/O lines # 6, 
4, & 1 are HIGH and I/O lines # 7, 5, 3, 2, & 0 are LOW. 
 

Set Output Lines Command 

 

The Set Output Lines command is used to set the states of the 

output lines.  This command requires two data bytes.  These data 
bytes specify the output state of each output line.  The first data byte 
represents the most significant I/O lines (15 - 8).  The second data 
byte represents the least significant I/O lines (7 - 0).  If a bit position 
is set to a "0" then the state of that output line will be set LOW. If a 
bit position is set to a "1" then the state of that output line will be set 
HIGH. 
NOTE: Refer to the "Define I/O Lines" command to define an I/O line 
as an output.  
 
Command: !{addr}SO 
Argument: {I/O 

msb}{I/O 

lsb} 

Response: none

 

ASCII Example: !0SOUA 
Dec. Example:  !0SO<85><65> 
Hex. Example:  !0SO <55><41> 
Bin. Example:  !0SO<01010101><01000001> 
Description:  Set module 0's (decimal 48) output lines. The first byte 
sets output lines #14, 12, 10, & 8  HIGH and output lines #15, 13, 
11, & 9 LOW; the second byte sets output lines #6, & 0 HIGH and 
output lines # 7, 5, 4, 3, 2, & 1 LOW.  Note: If any of these lines are 
defined as inputs the bit settings are ignored. 

Summary of Contents for RS-485 Digital I/O Module 485SDD16

Page 1: ...Document ation Number 485SDD16 1005 pn 3605 r1 This product Designed and Manufactured In Ottawa Illinois USA of domestic and imported parts by B B Electronics Mfg Co Inc 707 Dayton Road P O Box 1040 O...

Page 2: ...Chapter 4 I O Interfacing 17 Digital Inputs 17 Digital Outputs 19 ii Table of Contents 485SDD16 1005 Manual B B Electronics 707 Dayton Road Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5104 Chapter 5 S...

Page 3: ...utomatically detects baud rates from 1200 to 9600 A data format of 8 data bits 1 stop bit and no parity is used Configuration parameters are stored in non volatile memory These parameters consists of...

Page 4: ...es 256 Factory default 48 decimal Turn around Delay Software programmable from 0 to 255 character transmission times Factory default 1 Baud Rate 1200 to 9600 automatic detection Format 8 data bits 1 s...

Page 5: ...an RS 422 RS 485 serial port The 485SDD16 will work on a 2 wire or 4 wire RS 485 multi node network Refer to B B Electronics free RS 422 485 Application Note for more information The unit automatical...

Page 6: ...ly Connections Power to the 485SDD16 must be supplied by an external power supply connected to the 12Vdc and GND terminal blocks or to the I O connector An external power supply must be able to supply...

Page 7: ...have a numeric value of zero but has a value of 48 The decimal and hexadecimal equivalents of some ASCII characters are shown in Table 3 2 Some commands require additional data bytes to complete the...

Page 8: ...The Read I O Lines command returns two data bytes that reflect the state of the I O lines The first data byte contains the most significant I O lines 15 8 The second data byte contains the least sign...

Page 9: ...racter transmission time The turn around delay can be computed as follows character time 1 baud rate 10 turn around delay character time data byte Command addr SC Argument turn around delay Response n...

Page 10: ...he eight most significant I O lines 15 8 and the eight least significant I O lines 7 0 respectively If a bit position is set to a 0 the I O line is defined as an input if set to a 1 the I O line is de...

Page 11: ...re used to sense a HIGH or a LOW state This can be accomplished via switch closures contact closures or a solid state digital signal When an I O line defined as an input senses a voltage level above 2...

Page 12: ...l solid state output modules CMOS and TTL logic circuits Caution must be taken not to exceed the power capability of the outputs Refer to the output specifications in Chapter 1 Setting an output line...

Page 13: ...or LSIO with the appropriate mask of an I O line the status of the I O line can be determined If the status is equal to zero the I O line is LOW If the status is not equal to zero the I O line is HIG...

Page 14: ...nd power up state of I O lines 2 10 of module 5 24 485SDD16 1005 Manual B B Electronics 707 Dayton Road Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5104 Maddr 5 mask H4 Cmnd CHR Maddr RC PRINT 1 Cmnd...

Page 15: ...1 HIGH and the I O line will be defined as an Output 26 485SDD16 1005 Manual B B Electronics 707 Dayton Road Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5104 Step 1b Define an I O line as an Input MS...

Page 16: ...requires a data byte The data byte is used to specify the new address of the module Step 1 Construct the command string Cmnd CHR Maddr SA CHR Naddr Where Maddr if the module s current address and Nadd...

Page 17: ...s an illustration of how to send and receive commands from the 485SDD16 NOTE This is a demonstration program only and not intended for system applications Running Demonstration Program Before you can...

Page 18: ...433 5100 FAX 815 433 5104 Decimal ASCII 0 NUL 1 SOH 2 STX 3 ETX 4 EOT 5 ENQ 6 ACK 7 BEL 8 BS 9 HT 10 LF 11 VT 12 FF 13 CR 14 SO 15 SI 16 DLE 17 DC1 18 DC2 19 DC3 20 DC4 21 NAK 22 SYN 23 ETB 24 CAN 25...

Page 19: ...87 W 88 X 89 Y 90 Z 91 92 93 94 95 _ 96 97 a 98 b 99 c 100 d 101 e 102 f 103 g 104 h 105 i 106 j 107 k 108 l 109 m 110 n 111 o 112 p 113 q 114 r 115 s 116 t 117 u 118 v Decimal ASCII 119 w 120 x 121...

Page 20: ...h each decimal symbol having a value from 0 to 9 The hexadecimal base 16 numbering system represents each position in successive powers of 16 with each hex symbol having a value of 0 to 15 Since each...

Page 21: ...decimal symbol Example Convert 10FC hexadecimal to decimal 10FC hex equals 4348 decimal Decimal to Hexadecimal Conversion Example Convert 4348 decimal to hexadecimal 4348 decimal equals 10FC hexadecim...

Page 22: ...nnector Each of the twenty five pins on the connector is brought out to a terminal block Refer to Table C 1 Dimensions 0 5 x 2 1 x 4 3 An enclosure for the DTB25 is available Figure C 1 DTB25 Outline...

Page 23: ...5SDD16 1005 Manual B B Electronics 707 Dayton Road Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5104 Table C 2 DBM16 I O Connections T B 1 Label Function T B 2 Label Function I O7 I O Line 7 I O8 I O L...

Page 24: ...ignals Each DBM16 input is pulled up through a resistor and will be read as a logic 1 HIGH by the SDD16 module When an input on the DBM16 is grounded below 1 5Vdc a logic 0 LOW will be read by the SDD...

Page 25: ...aces Figure C 7 Solid State Output Figure C 8 Isolated Mechanical Output C 8 Appendix C 485SDD16 1005 Manual B B Electronics 707 Dayton Road Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5104 Figure C 9...

Page 26: ...C 9 B B Electronics 707 Dayton Road Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5104 Figure C 10 DBM16 Schematic C 10 Appendix C 485SDD16 1005 Manual B B Electronics 707 Dayton Road Ottawa IL 61350 P...

Page 27: ...85SDD16 receives an communication error on a data byte I O byte for Read Digital command or state byte for Set Output State command the command will be executed since the unit has no way of knowing th...

Page 28: ...elay addr SC x x no response Define I O Lines addr SD I O msb I O msb I O msb I O msb no response Set Power up States addr SS I O msb I O msb I O lsb I O lsb no response Read Configuration addr RC I O...

Reviews: