B&B Electronics RS-485 Digital I/O Module 485SDD16 User Manual
485SDD16-1005 Manual
Cover Page
B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104
RS-485 Digital I/O Module
Model 485SDD16
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 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104
Internet:
http://www.bb-elec.com
sales@bb-elec.com
support@bb-elec.com
B&B Electronics -- Revised February 2005
Summary of RS-485 Digital I/O Module 485SDD16
Page 1
485sdd16-1005 manual cover page b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 rs-485 digital i/o module model 485sdd16 document ation number 485sdd16-1005 pn#3605-r1 this product designed and manufactured in ottawa, illinois usa of domestic and import...
Page 2
485sdd16-1005 manual table of contents i b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 table of contents chapter 1- introduction ........................................... 1 485sdd16 features ............................................... 1 packing ...
Page 3
485sdd16-1005 manual 1 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 chapter 1- introduction 485sdd16 features the 485sdd16 is a general purpose control module that operates through an rs-485 interface. The 485sdd16 offers 16 discrete digital i/o line...
Page 4
485sdd16-1005 manual 3 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 power supply input voltage: 8 vdc to 16 vdc @ 35 milliamps (doesn’t include the power consumption of external devices.) connection: terminal blocks or db-25s communications standard:...
Page 5
485sdd16-1005 manual 5 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 chapter 2 - connections this chapter will cover the connections required for the 485sdd16. There are three sets of connections: digital i/o, serial port, and power supply. Do not mak...
Page 6
485sdd16-1005 manual 7 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 figure 2.1 - example of multi-node network 485sdd16 485sdd16 485sdd16 figure 2.2 - rs-485 2-wire connection 8 485sdd16-1005 manual b&b electronics -- 707 dayton road -- ottawa, il 61...
Page 7
485sdd16-1005 manual 9 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 chapter 3 - commands there are only two commands required to control the 485sdd16: set output lines, and read i/o lines. Five additional commands are used for configuring the module:...
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 ...
Page 9
485sdd16-1005 manual 13 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 set module address command the set module address command is used to change the address of a 485sdd16. This commands requires one data byte. This data byte is used to specify the mo...
Page 10
485sdd16-1005 manual 15 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 set power-up states command the set power-up states command is used to set the states of output lines when the module's power is recycled. This command requires two data bytes. Thes...
Page 11
485sdd16-1005 manual 17 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 chapter 4 - i/o interfacing this chapter will explain "high" and "low" states and show some general examples of how to interface to the i/o lines. Caution must be taken not to excee...
Page 12
485sdd16-1005 manual 19 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 figure 4.4 - isolated solid state input digital outputs digital outputs are used to turn on or turn off external devices. Digital outputs are cmos compatible and operate between 0vd...
Page 13
485sdd16-1005 manual 21 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 chapter 5 - software this chapter will be divided into two sections. The first section covers programming techniques for constructing a command string, receiving data and manipulati...
Page 14
485sdd16-1005 manual 23 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 step 3 - receiving the data: msdefs$ = input$(1,#1) lsdefs$ = input$(1,#1) mspups$ = input$(1,#1) lspups$ = input$(1,#1) maddr$ = input$(1,#1) mtdly$ = input$(1,#1) step 4 - manipul...
Page 15
485sdd16-1005 manual 25 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 step 1b - set appropriate outputs low msstates = msstates and (not(mask)) lsstates = lsstates and (not(mask)) by "anding" the current states with the complement of the appropriate m...
Page 16
485sdd16-1005 manual 27 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 step 1b - set appropriate outputs power-up states low mspups = mspups and (not(mask)) lspups = lspups and (not(mask)) by "anding" the current power-up states with the complement of ...
Page 17
485sdd16-1005 manual 29 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 demonstration program the 485sdd16 demonstration (sdd16) program (ibm pc or compatible) provides the user with examples of how to receive and transmit commands to the 485sdd16. The ...
Page 18: Appendix A
485sdd16-1005 manual appendix a a-1 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 appendix a ascii character codes a-2 appendix a 485sdd16-1005 manual b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 decim...
Page 19
485sdd16-1005 manual appendix a a-3 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 decimal............ Ascii 80 ................. P 81 ................. Q 82 ................. R 83 ................. S 84 ................. T 85 ................. U 86 .....
Page 20: Appendix B
485sdd16-1005 manual appendix b b-1 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 appendix b hexadecimal/decimal conversions b-2 appendix b 485sdd16-1005 manual b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-...
Page 21
485sdd16-1005 manual appendix b b-3 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 hexadecimal to decimal conversion: decimal = (1st hex digit x 4096) + (2nd hex digit x 256) + (3rd hex digit x 16) + (4th hex digit) each "hex digit" is the decimal equi...
Page 22: Appendix C
485sdd16-1005 manual appendix c c-1 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 appendix c interface modules for sdd16 models c-2 appendix c 485sdd16-1005 manual b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 4...
Page 23
485sdd16-1005 manual appendix c c-3 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 dbm16 the dbm16 module provides buffering and increased power handling for all the sixteen i/o lines of the sdd16 models. Each of the i/o lines can be programmed as an i...
Page 24
485sdd16-1005 manual appendix c c-5 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 figure c.2 - dbm16 outline drawing inputs digital inputs are used to sense "high" and "low" states based on voltage levels. This is accomplished via switch closures, con...
Page 25
485sdd16-1005 manual appendix c c-7 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 outputs digital outputs are used to turn "on" or turn "off" external devices. Outputs can be used to control solid state output modules, logic circuits, and relays. Caut...
Page 26
485sdd16-1005 manual appendix c 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 ph (815) 433-5100 -- fax (815) 433-5104.
Page 27: Appendix D
485sdd16-1005 manual appendix d d-1 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 appendix d adding data field comfirmation d-2 appendix d 485sdd16-1005 manual b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5...
Page 28
485sdd16-1005 manual appendix d d-3 b&b electronics -- 707 dayton road -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 table d-1 extended commands function command response read i/o lines #{addr}rd {i/o msb}{~i/o msb}{i/o lsb}{~i/o lsb} set output lines #{addr}so{i/o msb}{~i/o msb}{i/o l...