Expansion Mode
Expansion | Expansion | Expansion |
Port | Port | Port |
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:
Slave | Slave | Slave | Slave | Slave | Slave |
Port | Port | Port | Port | Port | Port |
Slave Slave
Port Port
TOFF$ = CHR$(27) + CHR$(2) + CHR$(4)
Master Port
E | D |
| ||
| Address D C |
| ||
|
| |||
A | B |
| ||
|
|
|
|
|
Slave | Slave |
| ||
Port | Port |
|
E | D |
| ||
| Address C C |
| ||
|
| |||
A | B |
| ||
|
|
|
|
|
Slave | Slave | |||
Port | Port |
E D
Address B C
A B
Slave Slave
Port Port
E | D |
| Slave | ||
| Address A C |
| |||
|
| ||||
A | B |
| Port | ||
|
| ||||
|
|
|
|
| |
Slave | Slave |
| |||
Port | Port |
|
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.
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
Expander mode is selected when jumper
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”
13 |
B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph
B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353
Table 9 - 232XS5 Expander Mode Commands
| Command Characters |
| |||
Function | 1st | 2nd | 3rd | 4th | Comments |
|
|
|
|
|
|
Select Port A | ESC | X* | “A” | “A” | Address A |
Select Port B | ESC | X* | “A” | “B” | Address A |
Select Port C | ESC | X* | “A” | “C”*** | Address A |
Select Port D | ESC | X* | “A” | “D” | Address A |
Select Port E | ESC | X* | “A” | “E” | Address A |
Select Port A | ESC | X* | “B” | “A” | Address B |
Select Port B | ESC | X* | “B” | “B” | Address B |
Select Port D | ESC | X* | “B” | “D” | Address B |
Select Port E | ESC | X* | “B” | “E” | Address B |
Select Port A | ESC | X* | “C” | “A” | Address C |
Select Port B | ESC | X* | “C” | “B” | Address C |
Select Port D | ESC | X* | “C” | “D” | Address C |
Select Port E | ESC | X* | “C” | “E” | Address C |
Select Port A | ESC | X* | “D” | “A” | Address D |
Select Port B | ESC | X* | “D” | “B” | Address D |
Select Port D | ESC | X* | “D” | “D” | Address D |
Select Port E | ESC | X* | “D” | “E” | Address D |
Deselect Port | ESC | X* | EOT | NU** | Switching Command |
Set Timer Value | ESC | X* | “T” | Enhanced Mode | |
Set Timer Mode | ESC | X* | “M” | “0”,”1” | Enhanced Mode |
*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
B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353