B&b electronics rs-232 digital relay i/o user manual (28 pages)
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...
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.
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.
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.
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.
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.
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...
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.
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).
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.
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.
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.
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"...
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"...
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 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 ...
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.
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.
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"...
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.
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...