B&B Electronics 485SDD16 manual Interfacing, Digital Inputs

Page 11

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.

Digital Inputs

As stated earlier, digital input lines are CMOS/TTL compatible and can only handle voltages from 0Vdc to +5Vdc.

Digital inputs are used to sense a HIGH or a LOW state. ThisFigure 4.2 - Solid State Input can be accomplished via switch closures, contact closures, or a

solid state digital signal. When an I/O line, defined as an input, senses a voltage level above +2.0Vdc it will be considered "HIGH" and it's input state will be read as a "1". Conversely, when an input senses a voltage level below +1.0Vdc it will be considered "LOW" and it's input state will be read as a "0".

Inputs can also be used to sense AC voltages by using mechanical or solid state relays. Solid state relays are available

from many manufacturers. Figures 4.1 - 4.4 show examples of some typical input interfaces.

Figure 4.3 - Isolated Mechanical Input

Figure 4.1 - Switch Input

485SDD16-1005 Manual

17

18

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

Image 11
Contents Sales@bb-elec.com Support@bb-elec.com Electronics Mfg. Co. IncDesigned and Manufactured Ottawa, Illinois InternetTable of Contents Introduction 485SDD16 Features485SDD16 Specifications Size Power SupplyCommunications Serial Port Connections ConnectionsDigital I/O Connections 485SDD16 I/O Port PinoutExample of Multi-Node Network Syntax Commands485SDD16 Commands Equivalent ValuesBit Assignments for I/O Lines Read I/O Lines CommandSet Output Lines Command Command AddrSC Argument Set Module Address CommandSet Turn-around Delay Command Define I/O Lines CommandCommand AddrRC Argument None Response Set Power-up States CommandRead Configuration Command Read Configuration command returns the modules I/ODigital Inputs InterfacingDigital Outputs Isolated Solid State InputDigital I/O Mask Values SoftwareProgramming Techniques MSstates = MSstates or mask LSstates = LSstates or mask Set Output States CommandMSdefs = MSdefs and mask LSdefs = LSdefs and mask MSpups = MSpups and mask LSpups = LSpups and maskMaddr = Define I/O Lines CommandSet Power-up States Command Cmnd$ = ! + CHR$Maddr + SO + CHR$MSstates + CHR$LSstatesLSpups = LSpups or &H20 Set Module Address CommandMSpups = MSpups and NOTmask LSpups = LSpups and NOTmask Cmnd$ = ! + CHR$Maddr + SS + CHR$MSpups + CHR$LSpupsRunning Demonstration Program Demonstration Program485SDD16-1005 Manual Appendix a Decimal485SDD16-1005 Manual Appendix a 119 120 121 122 123 124 125 126 127485SDD16-1005 Manual Appendix B Appendix B240 4th Hex digit Decimal equals 10FC hexadecimal Decimal to Hexadecimal Conversion252 3rd Hex digitAppendix C DBM16 Interfacing Table C.1 DTB25 ConnectionsTable C.2 DBM16 I/O Connections 485SDD16-1005 Manual Appendix C Figure C.4 Solid State InputConnections Size DBM16 Specifications LinesPower Supply Input Voltage TotalFigure C.10 DBM16 Schematic Comp = not x and &HFF #addrRDMsb~ I/O msbI/O lsb ~ I/O lsb 00FF01FE485SDD16-1005 Manual Appendix D Table D-1 Extended Commands