B&B Electronics 232BSS4 Switch User Manual


 
8 Documentation Number 232BSS4-2907m
B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 – www.bb-elec.com
B&B Electronics – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445 – www.bb-europe.com
Command Summary:
Three Character Command Format:
Char1 Char2 Command Char Control Char
Control Char is only needed for Tx Only, Clear Buffer, and Ignore
Commands
Four Character Command Format:
Char1 Char2 Char3 Command Char Control Char
Control Char is only needed for Tx Only, Clear Buffer, and Ignore
Commands
Table 2.1 - 232BSS4 Command Summary
Function Command
Char.
Control
Char.
Comments
Select Port A Tx & Rx “A” None Switching Command
Select Port B Tx & Rx “B” None Switching Command
Select Port C Tx & Rx “C” None Switching Command
Select Port D Tx & Rx “D” None Switching Command
Deselect All Ports EOT None Switching Command
Tx Only to Specific Ports “S” Dec 0 to 15 Use to Broadcast
Clear Buffer on Specific
Ports
“X” Dec 0 to 15 Clear the Receive
Buffer
Ignore Commands “T” “0” to “9” Sets Timer Value
Values in quotes “” are ASCII characters.
Dec. is an abbreviation for decimal value.
Command Explanation:
Where applicable, this section will provide an example of how to
create the command strings in Visual Basic. Other programming languages
may require a slightly different syntax, but the examples given should
provide enough information to port to other languages. For our examples,
we will use the default settings of the switch:
3 Character Command Sequence
Character 1 set to ASCII ESC character (Decimal 27)
Character 2 set to ASCII STX character (Decimal 2)
If you choose to use a four character command sequence, just add
another character between the second programmable character and the
command character in the command string.