background image

232XS2497 Manual 

 

B&B Electronics  --  PO Box 1040  --  Ottawa, IL  61350 

PH (815) 433-5100  --  FAX (815) 433-5109

 

Chapter 1:   INTRODUCTION 

 

 
 

The RS-232 Five Port Expandable Smart Switch, Model 

232XS5, allows one RS-232 host device to connect to as many as 
five RS-232 devices.  The switch can be controlled in three different 
ways.  The first way is referred to as smart switch mode or code 
activated switch mode
.  In this mode, the switch is controlled by 
sending a programmable preamble code to the "Master" port of the 
232XS5.  The second way the switch can be controlled is referred to 
as port combiner mode.  In port combiner mode, a slave port can 
gain access to the master port by asserting a handshake line.  If 
none of the slave ports have their handshake line asserted, the 
switch can be controlled using the preamble code.  The third way the 
switch can be controlled is the expander mode in which up to four 
switches can be cascaded together to form up to 17 slave ports. 

 

The master port can be configured as a DTE or DCE port by an 

internal switch setting.  If the master port is configured as a DTE 
port, the five slave ports will become DCE ports.  The 232XS5 
supports the following signals:  TD, RD, RTS, 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 switching 
from binary/graphic file transfers, and inactive slave devices from 
holding control of the master port. 
 

The 232XS5 will work with baud rates from 1200 to 115.2K bps; 

7 or 8 data bits; even, odd or no parity; and 1 or 2 stop bits (7,N,1 is 
not allowed). 
 

 
NOTE:  The data format and rates mentioned are used to switch 
the 232XS5.  The communication between the devices can use 
any format or data rate. 

 

Содержание 232XS5

Страница 1: ...national Headquarters B B Electronics Mfg Co Inc 707 Dayton Road P O Box 1040 Ottawa IL 61350 USA Phone 815 433 5100 General Fax 815 433 5105 Home Page www bb elec com Orders e mail orders bb elec com Fax 815 433 5109 Technical Support e mail support bb elec com Fax 815 433 5104 European Headquarters B B Electronics Ltd Westlink Commercial Park Oranmore Co Galway Ireland Phone 353 91 92444 Fax 353...

Страница 2: ...o change without notice and does not represent a commitment on the part of B B Electronics B B Electronics shall not be liable for incidental or consequential damages resulting from the furnishing performance or use of this manual All brand names used in this manual are the registered trademarks of their respective owners The use of trademarks or other designations in this publication is for refer...

Страница 3: ...ansion Mode 13 Chapter 4 SOFTWARE 15 Introduction 15 Installation 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 DB9 Connector to Master Port B 1 Chart 3 Modem DB25 Connector to Master Port B 2 Chart 4 IBM PC DB25 Connector to Ports A E DTE B 2 Chart 5 IB...

Страница 4: ...preamble code The third way the switch can be controlled is the expander mode in which up to four switches can be cascaded together to form up to 17 slave ports The master port can be configured as a DTE or DCE port by an internal switch setting If the master port is configured as a DTE port the five slave ports will become DCE ports The 232XS5 supports the following signals TD RD RTS CTS DSR DTR ...

Страница 5: ...requires 12Vdc at 100ma which is provided through a 2 5mm power jack Checklist Examine the shipping carton and contents for physical damage If damage is found file a claim with the shipper immediately The following equipment should be in the shipping carton 1 RS 232 Smart Switch 2 Instruction Manual 3 1 3 5 floppy disk If any of the items above are not in the shipping carton contact the shipper im...

Страница 6: ...o set the second character of the preamble After the switches and jumpers have been set to match your requirements you can put the unit back together Table 1 shows the settings for dipswitch SW1 and Table 2 shows the mode settings for JP6 jumpers FACTORY DEFAULT Table 1 Communication Port Setup Dipswitch SW1 1 2 3 4 5 6 7 8 Setting 0 0 0 X X X X X 1200 Baud 1 0 0 X X X X X 2400 Baud 0 1 0 X X X X ...

Страница 7: ...rals The pinouts for this 9 pin connector have since become the EIA TIA 574 standard This standard specifies a DTE device that transmits on pin 3 and receives on pin 2 with the DCE having the opposite configuration If an IBM PC compatible DTE device is going to be connected to the 232XS5 master port the master port should be configured as a DCE port If a modem DCE device is going to be connected t...

Страница 8: ...t Transmit Data TD 3 Output 2 Output Receive Data RD 2 Input 7 Input Request to Send RTS 7 Output 8 Output Clear to Send CTS 8 Input 4 Input Data Terminal Ready DTR 4 Output 6 Output Data Set Ready DSR 6 Input 1 Output Data Carrier Detect DCD 1 Input 5 Signal Ground SG 5 Master Port DTE Signal A B C D E Ports DCE Pin Direction Description Pin Direction 3 Output Transmit Data TD 3 Input 2 Input Rec...

Страница 9: ...n Refer to Table 1 Always power down the smart switch when changing switch settings RS 485 Support RS 485 support may be provided by adding a Model 485SD9TB RS 232 to RS 485 converter or other recommended device to the slave ports of the 232XS5 Port power of about 30 mA may be applied through the DTR line Pin 4 of the slave ports with jumper JP1 JP5 Normally the jumpers are set to allow DTR to pas...

Страница 10: ...equivalent decimal values are listed in Appendix A Example To turn on port B you would send the three ASCII characters ESC STX 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 B You could then send SWB to select port B Similar strings could be used for turning on the other ports To turn off the ports the string might look like ...

Страница 11: ... so that by itself or with the ESC character in front of it it is not a valid command to any of the devices on the port For instance on some printers ESC is the reset command If you tried to use the symbol decimal 64 for the second character you could reset your printer every time the preamble code was sent Note also that if your communication configuration is set for 7 data bits you cannot use th...

Страница 12: ... line Port A asserts its RTS line Port D asserts its RTS line and then Port C disasserts its RTS line When Port C asserts its RTS line a connection will be made between the master port and Port C When Port C disasserts its RTS line Port C will be disconnected and Port A will be connected to the master port When Port A disasserts its RTS Port A will be disconnected and Port D will be connected to t...

Страница 13: ...e When in inactivity mode the 232XS5 will monitor the data lines If there is no activity for the specified time the selected slave port will be disconnected from the master port When in inadvertent switch mode the 232XS5 will ignore switching commands for the specified period of time After this time has expired the selected slave port will be disconnected from the master port The timer functions a...

Страница 14: ...dicates 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...

Страница 15: ...ype 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 a...

Страница 16: ...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 t...

Страница 17: ...ipswitch SW2 NU Not Used Port C is used as the expansion port for unit addresses B thru D 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...

Страница 18: ... program Method Two Place the disk in drive A Select Programs from the Start Button and click on Windows Explorer Click on the drive containing the SS Setup Disk Double click on the file Setup exe Follow the instructions of the setup program The following file will be located on your hard drive SS EXE The executable file for the Smart Switch FILES LST Contains a list and description of files insta...

Страница 19: ...l only detect invalid undefined comports Parameters The Port Address is the address where the serial communications port is located If this is unknown you can use the program PORTFIND EXE which is located on the disk To use PORTFIND EXE If you installed the software on your hard drive see the Installation section Type C and press the ENTER key Type CD SS UTIL and press the ENTER key Type PORTFIND ...

Страница 20: ...W1 positions 1 3 on the Smart Switch The Number of Data Bits is the length of each 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 Smart Switch Module which you are using i e PortMUX if you are using a PortMUX The User Defined Character must be set so th...

Страница 21: ... 106 6A j 11 B VT ctrl K 43 2B 75 4B K 107 6B k 12 C FF 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 Q 49 31 1 81 51 Q 113 71 q 18 12 DC2 ctrl R 50 32 2 82 52 R 114 72 r 19 13 DC3 ctrl S 51 33 3 83 53 S 115 73 s 20 14 DC4 ctrl T 52 34 4 84 54 T...

Страница 22: ... Port configurations Chart 1 IBM PC DB25 Connector to Master Port Pins are tied together inside the 232XS5 they are not connected to ports A B C D or E Chart 2 IBM PC DB9 Connector to Master Port Pins are tied together inside the 232XS5 they are not connected to ports A B C D or E IBM PC Serial Port DB25 Connector Signal Direction 232XS5 Master Port DCE DB9 Connector 2 3 3 2 4 7 5 8 6 6 7 5 8 1 20...

Страница 23: ... to ports A B C D or E of the smart switch refer to Charts 8 and 9 Chart 4 IBM PC DB25 Connector to Ports A E DTE Master port configured as a DCE port Pins are tied together inside the 232XS5 they are not connected to the master port Async Modem Serial Port DB25 Connector Signal Direction 232XS5 Master Port DTE DB9 Connector 2 3 3 2 4 6 5 4 7 5 8 8 20 7 IBM PC Serial Port DB25 Connector Signal Dir...

Страница 24: ... are not connected to the master port Chart 5 IBM PC DB25 Connector to Ports A E DCE Master port configured as a DTE port IBM PC Serial Port DB25 Connector Signal Direction 232XS5 Ports A E DCE DB9 Connector 2 3 3 2 4 7 5 8 6 6 7 5 8 4 20 4 Pins are tied together inside the 232XS5 they are not connected to the master port IBM PC Serial Port DB9 Connector Signal Direction 232XS5 Ports A E DTE DB9 C...

Страница 25: ... to the master port IBM PC Serial Port DB9 Connector Signal Direction 232XS5 Ports A E DCE DB9 Connector 1 4 2 2 3 3 4 4 5 5 6 6 7 7 8 8 Chart 8 IBM PC DB25 Connector to Ports A E DCE Master port configured as a DTE port with a modem connected see Chart 3 IBM PC Serial Port DB25 Connector Signal Direction 232XS5 Ports A E DCE DB9 Connector 2 3 3 2 4 6 5 4 6 4 7 5 8 8 20 7 Pins are tied together in...

Страница 26: ...rt 9 IBM PC DB9 Connector to Ports A E DCE Master port configured 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 inside the 232XS5 they are not connected to the master port ...

Отзывы: