MODEL232BSS4 B&B Electronics, MODEL232BSS4 Datasheet - Page 11

no-image

MODEL232BSS4

Manufacturer Part Number
MODEL232BSS4
Description
Buffered Smart Switch
Manufacturer
B&B Electronics
Datasheet
Clear Receive Buffer – “X” + one control byte specifying which ports’
buffers to clear.
Documentation Number 232BSS41202 Manual
ports is given in Table 2.2.
For instance, to broadcast to ports B & C, send:
VB Example:
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.
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.
ports is given in Table 2.2.
For instance, to clear the receive buffer on ports A & D, send:
VB Example:
A summary of the control characters for each combination of
{Char1}{Char2} {Char3} ”S”{Decimal 6}
(B = 2, C = 4, 2 + 4 = 6)
BroadcastBC$ = CHR$(27) & CHR$(2) & “S” & CHR$(6)
The Clear Buffer command will tell the 232BSS4 which Slave
The lowest four bits of the control byte tell the 232BSS4 which
A summary of the control characters for each combination of
{Char1}{Char2} {Char3} ”S”{Decimal 9}
(A = 1, D = 8, 1 + 8 = 9)
ClearAD$ = CHR$(27) & CHR$(2) & “X” & CHR$(9)
9

Related parts for MODEL232BSS4