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

B&b electronics rs-485 digital i/o module user manual

Advertisement

Quick Links

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
485SDD16-1005 Manual
Cover Page
B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104

Advertisement

Table of Contents
loading

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

  • Page 1 RS-485 Digital I/O Module Model 485SDD16 Document ation Number 485SDD16-1005 pn#3605-r1 This product Designed and Manufactured In Ottawa, Illinois 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...
  • Page 2: Table Of Contents

    Table of Contents Chapter 1- Introduction... 1 485SDD16 Features... 1 Packing List ... 2 485SDD16 Specifications ... 2 I/O Lines ...2 Inputs ...2 Outputs ...2 Power Supply ...3 Communications ...3 Size ...3 Chapter 2 - Connections ... 5 Digital I/O Connections ... 5 Digital Inputs ...5 Digital Outputs...5 Ground ...5...
  • Page 3: Chapter 1- Introduction

    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 lines. With these features, the module can be used to sense external ON/OFF conditions and to control a variety of devices.
  • Page 4: Power Supply

    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: RS-422/485 Addresses: 256 (Factory default = 48 decimal) Turn-around Delay: Software programmable from 0 to 255 character transmission times.
  • Page 5: Digital Inputs

    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 make any connections to the 485SDD16 until you have read this chapter. Digital I/O Connections Connections to the I/O lines are made through the DB25S (female) I/O port connector.
  • Page 6: Power Supply Connections

    Figure 2.3 - RS-422 4-wire Connection Figure 2.1 - Example of Multi-Node Network Power Supply Connections Power to the 485SDD16 must be supplied by an external power 485SDD16 485SDD16 485SDD16 supply connected to the +12Vdc and GND terminal blocks or to the I/O connector.
  • Page 7: Chapter 3 - Commands

    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: set module address, set turn- around delay, define I/O lines, set power-up states, and read configuration.
  • Page 8: Read I/O Lines Command

    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 # Bit Position Hex Weight...
  • Page 9: Set Module Address Command

    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 module's new address. Addresses can be assigned any decimal value from 0 to 255. The address is stored in non-volatile memory and is effective immediately.
  • Page 10: Set Power-Up States Command

    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. These data bytes specify the output state of each output line. The first data byte represents the eight most significant I/O lines (15 - 8).
  • Page 11: Chapter 4 - I/O Interfacing

    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 exceed 485SDD16 specifications listed in Chapter 1 when interfacing to external devices. Failure to stay within these specifications could result in damage to the unit and will void warranty.
  • Page 12: Digital Outputs

    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 0Vdc and +5Vdc. Outputs can be used to control solid state output modules, CMOS and TTL logic circuits.
  • Page 13: Chapter 5 - Software

    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 manipulating data in QuickBASIC. The second section discusses how to install and run the demonstration program on an IBM PC or compatible.
  • Page 14: Set Output States Command

    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 - Manipulating the data: MSdefs = ASC(MSdefs$) LSdefs = ASC(LSdefs$) MSpups = ASC(MSpups$) LSpups = ASC(LSpups$) Maddr = ASC(Maddr$) Mtdly = ASC(Mtdly$) Step 5 - Determining the I/O line definitions:...
  • Page 15: Define I/O Lines Command

    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 mask of a digital output line, the output's bit will be set to a "0"...
  • Page 16: Set Module Address Command

    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 the appropriate mask of a digital output line, the power-up state's data bit will be set to a "0"...
  • Page 17: Demonstration Program

    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 SDD16.EXE is the executable program, the SDD16.BAS file is the source code in QuickBASIC.
  • Page 18: Appendix A

    APPENDIX A ASCII Character Codes 485SDD16-1005 Manual Appendix A B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Decimal ASCII 0 ... NUL 1 ... SOH 2 ... STX 3 ... ETX 4 ...
  • Page 19 Decimal... ASCII Decimal ...ASCII 80 ... P 119 ... w 81 ... Q 120 ... x 82 ... R 121 ... y 83 ... S 122 ... z 84 ... T 123 ... { 85 ... U 124 ... | 86 ...
  • Page 20: Appendix B

    APPENDIX B Hexadecimal/Decimal Conversions 485SDD16-1005 Manual Appendix B B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 The decimal (base 10) numbering system represents each position in successive powers of 10, with each decimal symbol having a value from 0 to 9.
  • Page 21 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 equivalent value of the hexadecimal symbol. Example: Convert 10FC hexadecimal to decimal.
  • Page 22: Appendix C

    APPENDIX C Interface Modules for SDD16 Models 485SDD16-1005 Manual Appendix C B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 DTB25 The DTB25 connects to the SDD16 models to provide easy access to the available I/O lines. The DTB25 plugs directly into the SDD16's DB25S I/O port connector.
  • Page 23: Dbm16

    Table C.1 - DTB25 Connections DB-25P T.B. DB-25P Pin # Function Pin # Function Unused. I/O #15 Unused. I/O #14 Unused. I/O #13 Unused. I/O #12 Unused. I/O #11 Unused. I/O #10 Ground Unused. +12Vdc Input I/O #9 I/O #0 I/O #8 I/O #1 I/O #7...
  • Page 24: Inputs

    Figure C.4 - Solid State Input 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, contact closures or a solid state digital signals. Each DBM16 input is pulled up through a resistor and will be read as a logic "1"...
  • Page 25: Outputs

    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. Caution must be taken not to exceed the power capability of the outputs. Refer to the DBM16 output specifications.
  • Page 26 Figure C.10 - DBM16 Schematic 485SDD16-1005 Manual Appendix C C-10 Appendix C 485SDD16-1005 Manual B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 PH (815) 433-5100 -- FAX (815) 433-5104...
  • Page 27: Adding Data Field Confirmation

    APPENDIX D Adding Data Field Comfirmation 485SDD16-1005 Manual Appendix D B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 With serial communications in a laboratory environment, the possibility of a communication error occurring is minimal. However, in a harsh or an industrial environment the possibility increases.
  • Page 28 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 no response msb}{~I/O msb}{I/O lsb}{~I/O lsb} Set Module #{addr}SA{new no response Address addr}{~new addr} Set Turn-around #{addr}SC{x}{~x} no response Delay Define I/O Lines #{addr}SD{I/O no response...

Table of Contents