B&B Electronics 485DSS manual OFF Command, Status Request Command

Page 15

If you were writing a program in BASIC to turn on address 10 decimal (0A hexadecimal) you might form a string like this:

DSS0AON$ = CHR$(19) + "0" + "A" + CHR$(1)

You could then send DSS0AON$ to select 485DSS address 10 (0A hex). Use similar strings for turning on the other 485DSS's.

OFF Command

This command turns off all 485DSS's on the network and lowers the RTS output handshake line on pin 4 of the DB25 connector. The command string consists of all non-printable ASCII characters. This command uses two broadcast characters "DC2" (decimal 18) in the address field. Sending this command before sending a command that has a specific address (address characters are printable) keeps the RS-232 device from outputting any printable characters.

NOTE: This command permits only the use of the broadcast characters in the address field.

Command character: EOT (decimal 4)

Example 1: Turn off all the 485DSS's on the network.

HOST transmits: Xoff

DC2 DC2

EOT

( 19

18

18

4 decimal)

( 13

12

12

4 hex)

The turn off string in BASIC might look like this:

DSSOFF$ = CHR$(19) + CHR$(18) + CHR$(18) + CHR$(4) You could then send DSSOFF$ to turn off all 485DSS's.

ALL data and control characters are passed through the 485DSS after it has been selected.

STATUS REQUEST Command

The Status Request command requests the status of an individual 485DSS or the status of all 485DSS's on the network. This command enables the Host computer to determine from each reply message received if the RS-232 device is requesting access to the network and if it has access to the network. By using this command the Host has the ability to prioritize all the 485DSS's on the network. A specific address in the address field specifies a

485DSS-0308 Manual

11

B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 B&B Electronics – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91 792444 – Fax +353 91 792445

Image 15
Contents 485DSS-0308 Manual Cover Electronics Mfg. Co. IncDesigned and Manufactured Ottawa, Illinois InternetPage Table of Contents IiTable of Contents 485DSS-0308 Manual Hardware Introduction ChecklistSpecifications Port ConfigurationRS-485/422 Port RS-422/485 Port Terminal Block Signal Description Direction Signal Ground +12VDC Power Supply InputRS-232 Port Frame Ground Transmit Data Output Receive Data Input Clear to Send Input Signal GroundRS-422/485 Wiring Wire ModeComponent Values For Send Data Timing RS-485 Wiring Diagram Wire Mode RS-422 Wiring Diagram RS-485 and RS-422 Termination Power SupplyOperation Distributed Smart Switch Commands Communication ConfigurationHex Command StringOn Command DecimalStatus Request Command OFF CommandPage ACK Setting the 485DSS Address Address SwitchDIP Switch Binary File Transfer Software Description 485DSS-0308 Manual Appendix a Appendix a Ascii Character CodesPage 485DSS-0308 Manual Appendix B SymbolAppendix B Decimal/Hexadecimal/Conversions Dec/Hex Conversions Decimal HexadecimalDecimal to Hexadecimal Conversion Hexadecimal to Decimal ConversionRS-232 DTE Port Appendix C Cable ChartsChart 1. IBM PC DB25 Connector to 485DSS RS-232 DTE Port RS-232 DTE Port DB25 Connector DirectionChart 6. RS-485 2-Wire Device to 485DSS RS-485/422 Port RS-485/422Device Direction Terminal Blocks
Related manuals
Manual 26 pages 24.25 Kb