ASCII character STX (decimal 2). The third character should be the ASCII upper case letters "A", "B", "C" or "D" (decimal 65, 66, 67, or 68 respectively) to select those ports. To turn off the selected port the third character should be the ASCII EOT character (decimal 4). For instance, to turn on port B you would send:

ESC STX B

If you were writing a program in BASIC to control the Mini Smart Switch you would form a string like this:

SWB$ = CHR$(27) + CHR$(2) + "B"

You could then send SWB$ to select port B. Similar strings could be used for turning on the other ports. To turn off the ports the string might look like this:

TOFF$ = CHR$(27) + CHR$(2) + CHR$(4)

When you are done with a port you can either select a new one directly or turn off the selected port and then turn on the next one. We recommend that you turn off the selected port before selecting the next one. The turn off command consists of three characters that are nonprinting (ESC STX EOT). If port A is selected and you send the command to select port B, all three characters (ESC STX B) will pass through the A port since it is still selected and the letter B will show up on your port A device. For information on preventing command codes from being received by slave devices, refer to the Enhance Mode section.

NOTE: There is no delay through the Mini Smart Switch and the data is not buffered.

6Documentation Number 232MSS2-0108 Manual

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 Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445

Page 10
Image 10
B&B Electronics 232MSS2 manual Esc Stx B