Expansion Mode - B&B Electronics 232XS5 Instruction Manual

B&b electronic five port expandable smart switch instruction manual 232xs5
Hide thumbs Also See for 232XS5:
Table of Contents

Advertisement

Expansion Mode

Expansion
Expansion
Port
Port
Slave
Slave
Slave
Slave
Port
Port
Port
Port
E
D
E
D
Master
C
Address D
C
Address C
Port
A
B
A
B
Slave
Slave
Slave
Slave
Port
Port
Port
Port
17-Port Cascaded Expansion Mode
The number of serial ports on the 232XS5 can easily be
expanded to a maximum of seventeen ports. Up to four 232XS5
units may be cascaded in expander mode. Each unit address adds
four additional serial ports to the five on unit address "A". Port C is
used as the expansion port that connects to the follow-on master-
port for switch units addressed "B" thru "D". Expansion Switch unit
address "A" is the last Switch in the chain.
Expander mode is selected when jumper "JP6-B" is OFF
(removed.) In Expander mode, the 232XS5 is constantly looking for
a four character preamble code by monitoring the data that is being
received on the master port from the host device. The 232XS5
requires a four character preamble code to turn on and off a port.
The first character must be the ASCII escape character (decimal
27). The second character is user programmable by setting
dipswitch "SW2". "SW2" comes from the factory programmed to the
ASCII character STX (decimal 2). The third character is the
Expansion Switch Unit Address character "A" through "D". The
fourth character should be the ASCII upper case letters "A", "B", "C",
"D" or "E" (decimal 65, 66, 67, 68 or 69 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 of
Expansion Switch unit address C, you would send:
ESC STX C B
If you were writing a program in BASIC to control the Smart
Switch you would form a string like this:
SWB$ = CHR$(27) + CHR$(2) + "C" + "B"
232XS5-1005 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
Expansion
Port
Slave
Slave
Slave
Slave
Port
Port
Port
Port
D
E
D
E
Slave
C
C
Address B
Address A
Port
A
A
B
B
Slave
Slave
Slave
Slave
Port
Port
Port
Port
13
You could then send SWB$ to select port B of Expansion switch
unit address "C". 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.
For information on preventing command codes from being received
by slave devices, refer to the Enhanced Mode section.
Table 9 - 232XS5 Expander Mode Commands
Command Characters
Function
1st
2nd
Select Port A
ESC
X*
Select Port B
ESC
X*
Select Port C
ESC
X*
Select Port D
ESC
X*
Select Port E
ESC
X*
Select Port A
ESC
X*
Select Port B
ESC
X*
Select Port D
ESC
X*
Select Port E
ESC
X*
Select Port A
ESC
X*
Select Port B
ESC
X*
Select Port D
ESC
X*
Select Port E
ESC
X*
Select Port A
ESC
X*
Select Port B
ESC
X*
Select Port D
ESC
X*
Select Port E
ESC
X*
Deselect Port
ESC
X*
Set Timer Value
ESC
X*
Set Timer Mode
ESC
X*
* X represents the programmable character set by dipswitch SW2
** NU = Not Used
***Port C is used as the expansion port for unit addresses B thru D.
14
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
3rd
4th
Comments
"A"
"A"
Address A
"A"
"B"
Address A
"A"
"C"***
Address A
"A"
"D"
Address A
"A"
"E"
Address A
"B"
"A"
Address B
"B"
"B"
Address B
"B"
"D"
Address B
"B"
"E"
Address B
"C"
"A"
Address C
"C"
"B"
Address C
"C"
"D"
Address C
"C"
"E"
Address C
"D"
"A"
Address D
"D"
"B"
Address D
"D"
"D"
Address D
"D"
"E"
Address D
EOT
NU**
Switching Command
"T"
"0"-"9"
Enhanced Mode
"M"
"0","1"
Enhanced Mode
232XS5-1005 Manual

Advertisement

Table of Contents
loading

Table of Contents