B&B Electronics Buffered Smart Switch, 232BSS4 manual VB Example

Page 14
Manual background

A summary of the control characters for each combination of ports is given in Table 2.2.

For instance, to broadcast to ports B & C, send: {Char1}{Char2}{Char3}”S”{Decimal 6} (B = 2, C = 4, 2 + 4 = 6)

VB Example:

BroadcastBC$ = CHR$(27) & CHR$(2) & “S” & CHR$(6)

Clear Receive Buffer – “X” + one control byte specifying which ports’ buffers to clear.

The Clear Buffer command will tell the 232BSS4 which Slave ports’ receive buffers to purge. If the Master device is only interested in the most recent data from the Slaves, this command can be used to delete old data from one or more of the Slave port buffers before it is sent to the Master.

The lowest four bits of the control byte tell the 232BSS4 which ports’ buffers to purge. Bit 0 represents port A, Bit 1 represents port B, Bit 2 represents port C, and Bit 3 represents port D. In decimal, this is represents a value of 1, 2, 4, and 8 respectively. To clear more than one buffer with a single command, the decimal equivalents of each port would be added together to give the final byte.

A summary of the control characters for each combination of ports is given in Table 2.2.

For instance, to clear the receive buffer on ports A & D, send: {Char1}{Char2}{Char3}”S”{Decimal 9}

(A = 1, D = 8, 1 + 8 = 9)

VB Example:

ClearAD$ = CHR$(27) & CHR$(2) & “X” & CHR$(9)

10

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-5104www.bb-elec.comB&B Electronics – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445www.bb-europe.com

Image 14
Contents This product designed and manufactured in Ottawa, Illinois USA Buffered Smart SwitchModel 232BSS4 of domestic and imported parts byPage APPENDIX B CABLE CHARTS Table of ContentsCHAPTER 4 SETUP SOFTWARE APPENDIX C BLOCK DIAGRAMDocumentation Number 232BSS4-2907m Chapter 1 - Introduction Documentation Number 232BSS4-2907mSpecifications Default ParametersThe following equipment should be in the shipping carton Checklist1. RS-232 Buffered Smart Switch model 232BSS4 2. Instruction Manual 3. 2 3.5 floppy disksDocumentation Number 232BSS4-2907m Chapter 2 OPERATION Symbols and ConventionsLED Indicators Port Configurations Options Smart Switch Only ModeDescription Four Character Command Format Command SummaryThree Character Command Format Command ExplanationCommands Select Port A to transmit and receive - “A” VB Example Table 2.2 Send Only and Clear Buffer Control Characters Table 2.3 - Timer Values commands and the Master can initiate the next communications sequence Auto Select/Smart Switch Mode Inactivity Time Using the 232BSS4 as a Buffered Splitter/Combiner Figure 2.1. Multiple Terminals to a Host ControllerBack to Back Operation mux/demux Figure 2.2. Back to Back OperationCascading Multiple Switches Figure 2.3. Expanding the Number of Slave PortsSlave Devices that Automatically Send their Data Slave Devices that Require Polling 25 Pin DTE Chapter 3 PORT CONNECTIONSDTE/DCE Explanation 25 Pin DCEMaster Port Connections Slave Port ConnectionsConnection Chapter 4 SETUP SOFTWAREIntroduction Select SETTINGS, CONTROL PANEL from the Windows START menu Software InstallationSoftware Uninstall Double Click ADD/REMOVE PROGRAMSSetup Tutorial Single Unit Main Screen26Documentation Number 232BSS42907 Manual Back to Back Main Screen 28Documentation Number 232BSS42907 Manual Copying Parameters Between Switches Default ParametersDocumentation Number 232BSS42907 Manual ASCII Appendix A ASCII Character CodesDECIMAL to HEX to ASCII CONVERSION TABLE Appendix A Chart B.1. DTE PC DB25 Connector to Master Port Appendix B Cable ChartsPins 6, 8, & 20 looped back internally on the 232BSS4 Chart B.2. DTE PC DB9 Connector to Master PortAppendix B Cable Charts Chart B.4. DCE Modem DB9 Connector to Master Port Pins 6, 8, & 20 looped back internally on the 232BSS4Chart B.3. DCE Modem DB25 Connector to Master Port Chart B.6. Ports A - D DTE to DTE PC DB9 Connector Pins 1, 4, & 6 looped back internally on the 232BSS4Chart B.5. Ports A - D DTE to DTE PC DB25 Connector Chart B.7. Ports A - D DTE to DCE Modem DB25 ConnectorPins 1, 4, & 6 looped back internally on the 232BSS4 Chart B.8. Ports A - D DTE to DCE Modem DB9 ConnectorAppendix B Cable Charts UART Appendix C Block DiagramMASTER UART UARTAppendix C Appendix D Declaration of Conformity DECLARATION OF CONFORMITY