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

Manual is about: RS-232 Digital I/O Module

Summary of RS-232 Digital I/O Module 232SDD16

  • Page 1

    232sdd16-1005 manual cover page b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 rs-232 digital i/o module model 232sdd16 documentation number 232sdd16-1005 pn#3604-r1 this product designed and manufactured in ottawa, illinois usa of domestic and imported pa...

  • Page 2

    232sdd16-1005 manual table of contents i b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 table of contents chapter 1- introduction ........................................... 1 232sdd16 features ............................................... 1 packing list...

  • Page 3

    232sdd16-1005 manual 1 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 chapter 1- introduction 232sdd16 features the 232sdd16 is a general purpose control module that is connected to your computer’s rs-232 serial port. The 232sdd16 offers 16 discrete digita...

  • Page 4

    232sdd16-1005 manual 3 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 232sdd16 specifications i/o lines total: 16 (factory default = inputs) digital inputs voltage range: 0 vdc to 5 vdc low voltage: 1.0 vdc max. High voltage: 2.0 vdc min. Leakage current: ...

  • Page 5

    232sdd16-1005 manual 5 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 chapter 2 - connections this chapter will cover the connections required for the 232sdd16. There are three sets of connections: digital i/o, serial port, and power supply. Do not make an...

  • Page 6

    232sdd16-1005 manual 7 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 table 2.2 - rs-232 connector pinout db-25s pin # signal signal direction at 232sdd16 notes 2 transmit data (td) input connection is required. 3 receive data (rd) output connection is req...

  • Page 7

    232sdd16-1005 manual 9 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 chapter 3 - commands there are only two commands required to control the 232sdd16: set output lines, and read i/o lines. Three additional commands are used for configuring the module: de...

  • Page 8

    232sdd16-1005 manual 11 b&b electronics -- po box 1040 -- 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....

  • Page 9

    232sdd16-1005 manual 13 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 command: !0so argument: {i/o msb}{i/o lsb} response: none ascii example: !0soua dec. Example: !0so hex. Example: !0so bin. Example: !0so description: the first byte sets output lines #1...

  • Page 10

    232sdd16-1005 manual 15 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 command: !0rc argument: none response: definition of the sixteen i/o lines in two 8 bit bytes, and the power-up states in two 8 bit bytes. (shown in bold face) ascii example: !0rcuap@ d...

  • Page 11

    232sdd16-1005 manual 17 b&b electronics -- po box 1040 -- 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 exceed 23...

  • Page 12

    232sdd16-1005 manual 19 b&b electronics -- po box 1040 -- 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 external devices on or off. Digital outputs are cmos/ttl compatible and operate between 0vdc and...

  • Page 13

    232sdd16-1005 manual 21 b&b electronics -- po box 1040 -- 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 manipulating d...

  • Page 14

    232sdd16-1005 manual 23 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 step 5 - determining the i/o line definitions: msdefs = msdefs and mask lsdefs = lsdefs and mask by "anding" the value of msdefs or lsdefs with the appropriate mask of an i/o line, the ...

  • Page 15

    232sdd16-1005 manual 25 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 define i/o lines command step 1a - construct the command string: define an i/o line as output msdefs = msdefs or mask lsdefs = lsdefs or mask by "oring" the current definitions with the...

  • Page 16

    232sdd16-1005 manual 27 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 demonstration program the 232sdd16 demonstration (sdd16) program (ibm pc or compatible) provides the user with examples of how to receive and transmit commands to the 232sdd16. The sdd1...

  • Page 17: Appendix A

    232sdd16-1005 manual appendix a a-1 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 appendix a ascii character codes a-2 appendix a 232sdd16-1005 manual b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 decimal to he...

  • Page 18: Appendix B

    232sdd16-1005 manual appendix b b-1 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 appendix b hexadecimal/decimal conversions b-2 appendix b 232sdd16-1005 manual b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 the...

  • Page 19

    232sdd16-1005 manual appendix b b-3 b&b electronics -- po box 1040 -- 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 equivale...

  • Page 20: Appendix C

    232sdd16-1005 manual appendix c c-1 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 appendix c interface modules for sdd16 models c-2 appendix c 232sdd16-1005 manual b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 ...

  • Page 21

    232sdd16-1005 manual appendix c c-3 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 table c.1 - dtb25 connections db-25p pin # function t.B. # db-25p pin # function t.B. # 1 unused. 1 14 i/o #15 14 2 unused. 2 15 i/o #14 15 3 unused. 3 16 i/o #13 16 4 unuse...

  • Page 22

    232sdd16-1005 manual appendix c c-5 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 dbm16 interfacing this section will show some general examples of how to interface the dbm16 i/o lines to external devices. Caution must be taken not to exceed the dbm16 spe...

  • Page 23

    232sdd16-1005 manual appendix c c-7 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 figure c.6 - isolated solid state input outputs digital outputs are used to turn "on" or turn "off" external devices. Outputs can be used to control solid state output modul...

  • Page 24

    232sdd16-1005 manual appendix c c-9 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 dbm16 specifications i/o lines total: 16 (factory default - set to inputs) inputs voltage range: 0vdc to +50vdc low voltage: 0vdc to +1.5vdc high voltage: +2.5vdc to +50vdc ...

  • Page 25

    232sdd16-1005 manual appendix c c-11 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104.

  • Page 26: Appendix D

    232sdd16-1005 manual appendix d d-1 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 appendix d adding data field confirmation d-2 appendix d 232sdd16-1005 manual b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 with...

  • Page 27

    232sdd16-1005 manual appendix d d-3 b&b electronics -- po box 1040 -- ottawa, il 61350 ph (815) 433-5100 -- fax (815) 433-5104 table d-1 extended commands function command response read i/o lines #0rd {i/o msb}{~i/o msb}{i/o lsb}{~i/o lsb} set output lines #0so{i/o msb}{~i/o msb}{i/o lsb}{~i/o lsb} ...