B&B Electronics manual Table D-1 Extended Commands, 485SDD16-1005 Manual Appendix D

Page 28

Table D-1 Extended Commands

Function

Read I/O Lines

Set Output Lines

Set Module

Address

Set Turn-around Delay

Define I/O Lines

Set Power-up States

Read Configuration

Command

Response

 

 

#{addr}RD

{I/O msb}{~I/O msb}{I/O

 

lsb}{~I/O lsb}

#{addr}SO{I/O

no response

msb}{~I/O msb}{I/O

 

lsb}{~I/O lsb}

 

#{addr}SA{new

no response

addr}{~new addr}

 

#{addr}SC{x}{~x}

no response

 

 

#{addr}SD{I/O

no response

msb}{~I/O msb}{I/O

 

msb}{~I/O msb}

 

#{addr}SS{I/O

no response

msb}{~I/O msb}{I/O

 

lsb}{~I/O lsb}

 

#{addr}RC

{I/O msb}{~I/O msb}{I/O

 

lsb}{~I/O lsb}{I/O powerup

 

msb states}{~I/O powerup

 

msb states}{I/O powerup

 

lsb states}{~I/O powerup

 

lsb states}{addr}{~addr}{turn-

 

around delay}{~turn-around

 

delay}

 

 

Where “x” is the required data byte and “~” signifies the complement of the specified byte.

485SDD16-1005 Manual

Appendix D

D-3

D-4

Appendix D

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 28
Contents Electronics Mfg. Co. Inc Designed and Manufactured Ottawa, IllinoisInternet Sales@bb-elec.com Support@bb-elec.comTable of Contents 485SDD16 Specifications 485SDD16 FeaturesIntroduction Communications Power SupplySize Connections Digital I/O Connections485SDD16 I/O Port Pinout Serial Port ConnectionsExample of Multi-Node Network Commands 485SDD16 CommandsEquivalent Values SyntaxSet Output Lines Command Read I/O Lines CommandBit Assignments for I/O Lines Set Module Address Command Set Turn-around Delay CommandDefine I/O Lines Command Command AddrSC ArgumentSet Power-up States Command Read Configuration CommandRead Configuration command returns the modules I/O Command AddrRC Argument None ResponseInterfacing Digital InputsIsolated Solid State Input Digital OutputsProgramming Techniques SoftwareDigital I/O Mask Values Set Output States Command MSdefs = MSdefs and mask LSdefs = LSdefs and maskMSpups = MSpups and mask LSpups = LSpups and mask MSstates = MSstates or mask LSstates = LSstates or maskDefine I/O Lines Command Set Power-up States CommandCmnd$ = ! + CHR$Maddr + SO + CHR$MSstates + CHR$LSstates Maddr =Set Module Address Command MSpups = MSpups and NOTmask LSpups = LSpups and NOTmaskCmnd$ = ! + CHR$Maddr + SS + CHR$MSpups + CHR$LSpups LSpups = LSpups or &H20Demonstration Program Running Demonstration ProgramDecimal 485SDD16-1005 Manual Appendix a119 120 121 122 123 124 125 126 127 485SDD16-1005 Manual Appendix aAppendix B 485SDD16-1005 Manual Appendix BDecimal to Hexadecimal Conversion 2523rd Hex digit 240 4th Hex digit Decimal equals 10FC hexadecimalAppendix C Table C.2 DBM16 I/O Connections Table C.1 DTB25 ConnectionsDBM16 Interfacing Figure C.4 Solid State Input 485SDD16-1005 Manual Appendix CDBM16 Specifications Lines Power Supply Input VoltageTotal Connections SizeFigure C.10 DBM16 Schematic #addrRD Msb~ I/O msbI/O lsb ~ I/O lsb00FF01FE Comp = not x and &HFFTable D-1 Extended Commands 485SDD16-1005 Manual Appendix D