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

Page 27

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

no response

 

 

msb}{~I/O

 

 

 

msb}{I/O

 

 

 

lsb}{~I/O lsb}

 

Define I/O Lines

 

#0SD{I/O

no response

 

 

msb}{~I/O

 

 

 

msb}{I/O

 

 

 

msb}{~I/O msb}

 

Set Power-up

 

#0SS{I/O

no response

States

 

msb}{~I/O

 

 

 

msb}{I/O

 

 

 

lsb}{~I/O lsb}

 

Read

 

#0RC

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

Configuration

 

 

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

 

 

 

msb states}{~I/O powerup

 

 

 

msb states}{I/O powerup

 

 

 

lsb states}{~I/O powerup

 

 

 

lsb}

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

232SDD16-1005 Manual

Appendix D

D-3

D-4

Appendix D

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 27
Contents Electronics Mfg. Co. Inc Designed and Manufactured Ottawa, IllinoisInternet Table of Contents 232SDD16 Features Introduction232SDD16-1005 Manual 232SDD16 Specifications CommunicationsSize Serial Port Connections ConnectionsDigital I/O Connections 232SDD16 I/O Port Pinout232SDD16 To DCE Connections RS-232 Connector PinoutPower Supply Connections 232SDD16 To DTE ConnectionsSyntax Commands232SDD16 Commands Equivalent ValuesRead I/O Lines Command Set Output Lines CommandBit Assignments for I/O Lines Define I/O Lines Command Set Power-up States CommandRead Configuration Command Bin. Example !0RC01010101010000010101000001000000 Digital Inputs InterfacingIsolated Solid State Input Software Programming TechniquesDigital I/O Mask Values 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 maskMSdefs = MSdefs and NOTmask LSdefs = LSdefs and NOTmask Define I/O Lines CommandSet Power-up States Command MSdefs = MSdefs or mask LSdefs = LSdefs or maskRunning Demonstration Program Demonstration ProgramAppendix a Appendix B Decimal to Hexadecimal Conversion 232SDD16-1005 Manual Appendix C Figure C.1 DTB25 Outline DrawingTable C.2 DBM16 I/O Connections Table C.1 DTB25 ConnectionsDBM16 Interfacing Figure C.2 DBM16 Outline DrawingFigure C.6 Isolated Solid State Input DBM16 Specifications Lines InputsOutputs 232SDD16-1005 Manual Appendix C Comp = not x and &HFF #0RDMsb~ I/O msbI/O lsb ~ I/O lsb 00FF01FE232SDD16-1005 Manual Appendix D Table D-1 Extended Commands