B&B Electronics 232MSS2 manual Programming the Second Character, Programmable Character Setting

Page 11

Programming the Second Character

The second character comes programmed as the ASCII STX character (decimal 2). You can change this to any 8-bit character you wish by reprogramming dipswitch “SW2”. “SW2” is an eight- position switch with each position equal to a certain weight. Refer to “Setup” for instructions on removing the cover to access “SW2”. Table 4 shows the weight chart for “SW2”.

Table 4. Programmable Character Setting

Dipswitch SW2* WEIGHT

11

22

34

48

516

632

764

8128

*Factory Default -- ASCII “STX” character (decimal 2), SW2 position 2 is only one ON.

If you wish to use the letter "U" as the second character, which has a decimal value of 85, you would turn on switches 1, 3, 5, and 7 (1 + 4 + 16 + 64 = 85). Caution should be used when selecting the second character, 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. Also, if your communication configuration is set for 7 data bits you cannot use the eighth bit of SW2. For a list of the ASCII character codes and their decimal values, refer to Appendix A.

Binary File Transfer

A simple method of using the Mini Smart Switch to transfer binary files without the concern of it accidentally disconnecting, is to set the file transfer at a different baud rate from the rate of the Mini Smart Switch. When transferring files at a different baud rate, the Mini Smart Switch will stay connected from the last preamble code.

Documentation Number 232MSS2-0108 Manual

7

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

Image 11
Contents Mini Smart Switch CE Page Table of Contents Table of Contents Documentation Number 232MSS2-0108 Manual Introduction Checklist Communication & Port Setup Dipswitch SW1 3 4 5 6 7 Setting SetupPin# Direction Description Port ConfigurationDCE Master Port Chart C & D Ports DTE Master Port Chart C & D Ports Serial Data ConfigurationSmart Switch Operation ESC STX B Binary File Transfer Programmable Character SettingDipswitch SW2* Weight Programming the Second CharacterSmart Switch/Port Combiner Mode Enhanced Mode -- Timer Features Timer Values Model 232MSS2 SpecificationsDocumentation Number 232MSS2-0108 Manual Software Introduction Windows SSwitchInstallation Running SSwitchDOS Sstsr SETUP.EXE Method preferredSSTSR.EXE Method Command Description OptionsPort Address ParametersType Sstsr A03F8 B7 D8 P1 U8 H6 and press the Enter key Selecting Ports Default ValuesHelp Screen Un-Install Hot Key Method Command Line Method Documentation Number 232MSS2-0108 Manual Appendix a Decimal to HEX to Ascii Conversion Table Appendix B Chart 2. IBM PC DB9 Connector to Master Port Chart 1. IBM PC DB25 Connector to Master PortChart 4. IBM PC DB25 Connector to Ports a D DTE Chart 3. Modem DB25 Connector to Master Port Async ModemDB9 Connector Direction 232MSS2 Ports a D DTE Chart 5. IBM PC DB25 Connector to Ports a D DCEChart 6. IBM PC DB9 Connector to Ports a D DTE DB25 Connector Direction DB9 Connector Chart 7. IBM PC DB9 Connector to Ports a D DCEDB9 Connector Direction 232MSS2 Ports a D DCE Chart 8. IBM PC DB25 Connector to Ports a D DCEDB9 Connector Direction Chart 9. IBM PC DB9 Connector to Ports a D DCEDeclaration of Conformity Appendix C Declaration of ConformityAppendix C Documentation Number 232MSS2-0108 Manual