B&B Electronics RS-485 manual Set Power-up States Command, Set Turn-around Delay Command

Page 21

Set Power-up States Command

The Set Power-up States command is used to set the states of the digital outputs at power-up. This command requires a data byte. The data byte is used to specify the power-up output states. Bits 0-2 correspond to the power-up states of digital outputs 0-2. If a bit is a 0 then the output will be set LOW at power-up. If a bit is a 1 then the output will be set HIGH at power-up. Refer to Table 3.6. NOTE: This command ignores bits 3-7 of the data byte.

Command Syntax

!{addr}SS{states} Response Syntax

no response

Where {states} is a byte in which Bits 0-2 correspond to the power-up states of Digital Outputs 0-2

Set Turn-around Delay Command

The Set Turn-around Delay command sets the amount of time the 485SDA10 waits to respond after executing a command. This delay is necessary when two RS-485 transmitters are sharing a pair of wires to ensure that two transmitters are not enabled at the same time. Refer to B&B Electronics’ free RS-422/RS-485 Application Note for more information on RS-422/485. The turn-around delay is stored in non-volatile memory. This command requires a data byte. The data byte is used to specify the turn-around delay. One unit of turn-around delay is equal to the transmission time of one character. The transmission time can be computed as follows:

time = (1 / baud rate) * 10

Command Syntax

!{addr}SC{delay} Response Syntax

no response

Where {delay} is a byte used to specify the turn-around delay.

Read Module Configuration Command

The Read Module Configuration command reads the 485SDA10’s address, power-up states, and turn-around delay (in that order).

Command Syntax

!{addr}RC

Response Syntax

485SDA103798 Manual

17

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

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

Image 21 Contents
Electronics Mfg. Co. Inc Designed and Manufactured Ottawa, IllinoisInternet Table of Contents Tables Software485SDA103798 Manual Table of Contents Iii 485SDA10 Unit 485SDA10 FeaturesPacking List Software InstallationGetting Started UninstallWindows Windows 9x and Windows NTA/D with Variable Resistor 485SDA10 Specifications Ref Input + Inputs #0-10Ref Input Analog GroundTypical Connections 485SDA10 I/O Port Pinout Digital I/O ConnectionsDigital Inputs #0-2 Digital Outputs #0-2Typical Digital I/O Connections Digital GroundRS-485 Terminal Block Connections Serial Port ConnectionsTypical RS-485 2-wire Connection Power Supply Connections485SDA10 Commands CommandsReading A/D Channels Command SyntaxEquivalent Values AddrRA# Ch#MSBch#LSBch#-1MSB...ch0MSBch0LSBRead A/D Response AddrRD Reading Digital I/O CommandStates Read Digital I/O Response for OutputsSet Module Address Command Set Digital Output CommandAddrSOstates Set Digital Output Data Byte ValuesSet Power-up States Command Set Turn-around Delay CommandRead Module Configuration Command Addressstatesdelay Sampling Rate Input RangeReference Inputs Converting Data Data RangePage Command$ = ! + CHR$addr + RA + CHR$channel Read A/D CommandPrint #1, Command$ MSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1Read Digital I/O Command Command$ = ! + CHR$addr + RDReply$ = INPUT$ 1, #1 Digital I/O Mask Values Set Digital Output StatesCommand$ = ! + CHR$addr + SO + CHR$newaddr Command$ = !0SO + CHR$statesSet Module Address Addr =Addr = 5 states = States = states and NOTmaskCommand$ = ! + CHR$addr + SC + CHR$delay Set Turn-around DelayRead Module Configuration #addrRA00FF 00FF01FEComp = not x and &HFF Table A-1 Extended Commands Appendix B Analog Input Impedance 1 2 LSB = R s + 1k Ω × 60pF × ln2048 Simplified Analog Input Analysis485SDA103798 Manual Appendix B Table C-1 Decimal to HEX to Ascii Table Appendix C Decimal to HEX to Ascii TableClass a Equipment
Related manuals
Manual 39 pages 36.61 Kb Manual 46 pages 1.37 Kb