B&B Electronics RS-485 manual Table A-1 Extended Commands

Page 34

Table A-1 Extended Commands

Function

 

Command

Response

 

 

 

 

Read A/D Channels

 

#{addr}RA{x}{~x}

{chxmsb}{~chxmsb}{chxlsb}

 

 

 

{~chxlsb}{ch(x-1)msb}...

 

 

 

{ch0msb}

 

 

 

{~ch0msb}{ch0lsb}{~ch0lsb}

Read Digital I/O

 

#{addr}RD

{I/O states}{~I/O states}

Set Output States

 

#{addr}SO{x}{~x}

no response

Set Module

 

#{addr}SA{new

no response

Address

 

addr}{~new addr}

 

Set Power-up

 

#{addr}SS{x}{~x}

no response

States

 

 

 

Set Turn-around

 

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

no response

Delay

 

 

 

Read Configuration

 

#{addr}RC

{addr}{~addr}{powerup

 

 

 

states}{~powerup

 

 

 

states}{turn-around

 

 

 

delay}{~turn-around delay}

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

A-2

Appendix A

485SDA103798 Manual

B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 434-7094

Image 34 Contents
Designed and Manufactured Ottawa, Illinois Electronics Mfg. Co. IncInternet Table of Contents Software Tables485SDA103798 Manual Table of Contents Iii 485SDA10 Features 485SDA10 UnitSoftware Installation Packing ListWindows UninstallGetting Started Windows 9x and Windows NTA/D with Variable Resistor 485SDA10 Specifications Inputs #0-10 Ref Input +Analog Ground Ref InputTypical Connections Digital Inputs #0-2 Digital I/O Connections485SDA10 I/O Port Pinout Digital Outputs #0-2Digital Ground Typical Digital I/O ConnectionsSerial Port Connections RS-485 Terminal Block ConnectionsPower Supply Connections Typical RS-485 2-wire ConnectionCommands 485SDA10 CommandsSyntax Reading A/D Channels CommandEquivalent Values Ch#MSBch#LSBch#-1MSB...ch0MSBch0LSB AddrRA#Read A/D Response States Reading Digital I/O CommandAddrRD Read Digital I/O Response for OutputsAddrSOstates Set Digital Output CommandSet Module Address Command Set Digital Output Data Byte ValuesSet Turn-around Delay Command Set Power-up States CommandRead Module Configuration Command Addressstatesdelay Input Range Sampling RateReference Inputs Data Range Converting DataPage Print #1, Command$ Read A/D CommandCommand$ = ! + CHR$addr + RA + CHR$channel MSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1Command$ = ! + CHR$addr + RD Read Digital I/O CommandReply$ = INPUT$ 1, #1 Set Digital Output States Digital I/O Mask ValuesSet Module Address Command$ = !0SO + CHR$statesCommand$ = ! + CHR$addr + SO + CHR$newaddr Addr =States = states and NOTmask Addr = 5 states =Set Turn-around Delay Command$ = ! + CHR$addr + SC + CHR$delayRead Module Configuration 00FF01FE #addrRA00FFComp = not x and &HFF Table A-1 Extended Commands Appendix B Analog Input Impedance Simplified Analog Input Analysis 1 2 LSB = R s + 1k Ω × 60pF × ln2048485SDA103798 Manual Appendix B Appendix C Decimal to HEX to Ascii Table Table C-1 Decimal to HEX to Ascii TableClass a Equipment
Related manuals
Manual 39 pages 36.61 Kb Manual 46 pages 1.37 Kb