B&B Electronics 232SDD16 manual Figure C.2 DBM16 Outline Drawing, DBM16 Interfacing

Page 22

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 specifications, failure to do so could result in damage to the DBM16 and will void the warranty.

Before connecting the DBM16 to the SDD16 module and connecting any external device to the DBM16 determine which I/O lines on the SDD16 module are inputs and which are outputs. Once the inputs and outputs are known, set the jumpers on the DBM16 accordingly. Refer to Figure C.2.

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" (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 SDD16 module. Figures C.3 - C.6 show examples of some typical input interfaces.

232SDD16-1005 Manual

Appendix C

C-5

Figure C.3 - Switch Input

Figure C.4 - Solid State Input

Figure C.5 - Isolated Mechanical Input

C-6

Appendix C

232SDD16-1005 Manual

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

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

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

Image 22
Contents Designed and Manufactured Ottawa, Illinois Electronics Mfg. Co. IncInternet Table of Contents Introduction 232SDD16 Features232SDD16-1005 Manual Communications 232SDD16 SpecificationsSize 232SDD16 I/O Port Pinout ConnectionsDigital I/O Connections Serial Port Connections232SDD16 To DTE Connections RS-232 Connector PinoutPower Supply Connections 232SDD16 To DCE ConnectionsEquivalent Values Commands232SDD16 Commands SyntaxSet Output Lines Command Read I/O Lines CommandBit Assignments for I/O Lines Set Power-up States Command Define I/O Lines CommandRead Configuration Command Bin. Example !0RC01010101010000010101000001000000 Interfacing Digital InputsIsolated Solid State Input Programming Techniques SoftwareDigital I/O Mask Values MSpups = MSpups and mask LSpups = LSpups and mask Set Output States CommandMSdefs = MSdefs and mask LSdefs = LSdefs and mask MSstates = MSstates or mask LSstates = LSstates or maskMSdefs = MSdefs or mask LSdefs = LSdefs or mask Define I/O Lines CommandSet Power-up States Command MSdefs = MSdefs and NOTmask LSdefs = LSdefs and NOTmaskDemonstration Program Running Demonstration ProgramAppendix a Appendix B Decimal to Hexadecimal Conversion Figure C.1 DTB25 Outline Drawing 232SDD16-1005 Manual Appendix CTable C.1 DTB25 Connections Table C.2 DBM16 I/O ConnectionsFigure C.2 DBM16 Outline Drawing DBM16 InterfacingFigure C.6 Isolated Solid State Input Inputs DBM16 Specifications LinesOutputs 232SDD16-1005 Manual Appendix C 00FF01FE #0RDMsb~ I/O msbI/O lsb ~ I/O lsb Comp = not x and &HFFTable D-1 Extended Commands 232SDD16-1005 Manual Appendix D