background image

 

232XS5-1005 Manual 

 

11 

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  

SetTV$ = CHR$(27) + CHR$(2) +”T” + “6” 

The “T” tells the 232XS5 it is the set timer value command and the 
“6” indicates which timer value to use. 

 

Table 7 - Timer Values

 

 
 

The Set Timer Mode command tells the 232XS5 whether the 

time set by the Set Timer Value command will be used to determine 
the time-out of an inactive port, or the length of time switching 
commands are ignored.  The third byte of the Set Timer Mode 
command is an ASCII “M”.  If the data byte (fourth byte) is an ASCII 
“0”, zero (default),  the timer will be setup as an inactivity timer.  For 
example, sending the following string to the 232XS5 will set up the 
timer as an inactivity timer (assuming programmable character is 
the factory default of 2). 

SetTM$ = CHR$(27) + CHR$(2) +”M” + “0” 

The “M” tells the 232XS5 it is the set timer mode command and the 
“0” indicates to set up the timer as an inactivity timer.  When the 
timer is configured as an inactivity timer, the 232XS5 will monitor the 
data lines (TD & RD) for data.  If there is no activity for the specified 
timer value, the slave port that is connected to the master port will 
be disconnected.  In smart switch mode, the inactivity timer can be 
used to prevent the preamble codes from being received by the 
slave devices.  In port combiner mode, the inactivity timer can be 
used to prevent devices from tying up the master port.  For example 
(port combiner mode), all the slave ports have their handshake lines 
asserted.  The device on Port C has its handshake line asserted 
and is currently connected to the master port, but has not been 
transmitting or receiving data.  When the inactivity timer expires, 
Port C will be disconnected and the next slave port will then be 

Data 

Byte 

Value 

0 timer 

disabled 

1 10ms 
2 25ms 
3 100ms 
4 500ms 
5 1 

6 5 

7 30 

8 1 

min. 

9 5 

min. 

 

  

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  

12

connected to the master port (following the first-come-first-served 
rule).  Port C will then be placed at the “end of the line”. 
 

If the data byte of the Set Timer Mode command is an ASCII 

“1”, the timer will be setup to ignore switching commands.  Sending 
the following string to the 232XS5 will set up the timer to ignore 
switching commands.  (Assuming programmable character is the 
factory default of 2). 
 

SetTM$ = CHR$(27) + CHR$(2) +”M” + “1” 

 

The “M” tells the 232XS5 it is the set timer mode command and the 
“1” indicates to set up the timer to ignore switching commands.  
When the timer is configured in this mode, the 232XS5 will not 
accept any switching commands (“A”, ”B”, ”C”, ”D”, “E”, or “EOT”) for 
the specified timer value.  After the timer has expired, the slave port 
that is connected to the master port will be disconnected.  This 
feature is useful to prevent inadvertent switching during 
binary/graphic type file transfers.  For example (smart switch mode), 
the timer is configured to ignore switching commands for 5 seconds.  
The select Port D command is sent to the 232XS5.  Once Port D is 
connected a file of unknown data type (so file may or may not 
contain a switching command sequence) is to be transferred 
through the 232XS5.  For a period of 5 seconds after Port D is 
connected, no switching commands will be accepted.  As long as 
the file transfer takes less than 5 seconds, there is no chance the 
232XS5 will inadvertently switch ports. 
 

Table 8 - 232XS5 Smart Switch Mode Commands 

*X represents the programmable character set by dipswitch SW2 
**NU = Not Used 

 Command 

Characters  

Function 1st 

2nd 

3rd 

4th 

Comments 

Select Port A 

ESC 

X* 

“A” 

NU**  Switching Command 

Select Port B 

ESC 

X* 

“B” 

NU**  Switching Command 

Select Port C 

ESC 

X* 

“C” 

NU**  Switching Command 

Select Port D 

ESC 

X* 

“D” 

NU**  Switching Command 

Select Port E 

ESC 

X* 

“E” 

NU**  Switching Command 

Deselect Port 

ESC 

X* 

EOT

NU**  Switching Command 

Set Timer Value 

ESC 

X* 

“T” “0”-”9”  Enhanced 

Mode 

Set Timer Mode 

ESC 

X* 

“M”  “0”,”1” 

Enhanced Mode 

Summary of Contents for 232XS5

Page 1: ...B B Electronics Westlink Commercial Park Oranmore Co Galway Ireland Phone 353 91 92444 Fax 353 91 92445 www bb europe com 1997 B B Electronics Revised March 2005 2000 B B Electronics No part of this p...

Page 2: ...lation 15 Setup 15 Default Values 16 Selecting Ports 16 Parameters 16 Appendix A ASCII Character Codes A 1 Appendix B Cable Charts B 1 Chart 1 IBM PC DB25 Connector to Master Port B 1 Chart 2 IBM PC D...

Page 3: ...CTS DSR DTR and DCD The 232XS5 has an enhanced timer mode which offers special timer features The timer features can be used to prevent slave devices from receiving preamble commands inadvertently sw...

Page 4: ...4 Table 2 Mode Setup On Jumper Installed Off Jumper Removed X DON T CARE FACTORY DEFAULT Port Configuration In order to determine the proper port configuration of the 232XS5 it is necessary to have a...

Page 5: ...Commercial Park Oranmore Galway Ireland Ph 353 91 792444 Fax 353 91 792445 6 Serial Data Configuration In order for the host device that is connected to the master port to select any of the five port...

Page 6: ...nce it is still selected and the letter B will show up on your port A device For information on preventing command codes from being received by slave devices refer to the Enhance Mode section NOTE The...

Page 7: ...0 Fax 815 433 5104 B B Electronics Ltd Westlink Commercial Park Oranmore Galway Ireland Ph 353 91 792444 Fax 353 91 792445 10 NOTE When a port is selected via the Master Port the RTS lines will be ign...

Page 8: ...9 5 min 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 P...

Page 9: ...Expansion Mode Address D C C Address C Slave Port B Slave Port A Slave Port A Address B Slave Port Slave Port A B Slave Port B C Slave Port D E Slave Port E Slave Port Expansion Port E Slave Port D S...

Page 10: ...rs as per their specific needs Comport Baud Rate and Data Bits Character Mode and User Defined Character may also be set for 232XSS and 232XS5 Modules 232XS5 1005 Manual B B Electronics Mfg Co Inc 707...

Page 11: ...ch character that gets sent from the PC to the Smart Switch This value must be specified so that it is equal to SW1 position 4 on the Smart Switch The Module must be set so that it is equal to the Sma...

Page 12: ...ctrl L 44 2C 76 4C L 108 6C l 13 D CR ctrl M 45 2D 77 4D M 109 6D m 14 E SO ctrl N 46 2E 78 4E N 110 6E n 15 F SI ctrl O 47 2F 79 4F O 111 6F o 16 10 DLE ctrl P 48 30 0 80 50 P 112 70 p 17 11 DC1 ctrl...

Page 13: ...2 4 7 5 8 6 6 7 5 8 1 20 4 IBM PC Serial Port DB9 Connector Signal Direction 232XS5 Master Port DCE DB9 Connector 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 B 2 Appendix B 232XS5 1005 Manual B B Electronics PO...

Page 14: ...ignal Direction 232XS5 Ports A E DTE DB9 Connector 1 4 2 3 3 2 4 6 5 5 6 4 7 8 8 7 B 4 Appendix B 232XS5 1005 Manual B B Electronics PO Box 1040 Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5104 Chart...

Page 15: ...onfigured as a DTE port with a modem connected see Chart 3 IBM PC Serial Port DB9 Connector Signal Direction 232XS5 Ports A E DCE DB9 Connector 3 3 2 2 7 6 8 4 6 4 5 5 1 8 4 7 Pins are tied together i...

Reviews: