B&B Electronics 232MSS2 manual Timer Values

Page 14

Table 3 - Timer Values

Data Byte

Value

 

 

0

timer disabled

1

10ms

2

25ms

3

100ms

4

500ms

5

1 s

6

5 s

7

30 s

8

1 min.

9

5 min.

The Set Timer Mode command requires the third byte to be 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 232MSS2 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 232MSS2 it is the set timer mode command and the “0” indicates to set up up the timer as an inactivity timer. When configured as an inactivity timer, the 232MSS2 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 connected to the master port (following the first-come-first-serve 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 232MSS2 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”

10

Documentation Number 232MSS2-0108 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

Image 14
Contents Mini Smart Switch CE Page Table of Contents Table of Contents Documentation Number 232MSS2-0108 Manual Introduction Checklist Setup Communication & Port Setup Dipswitch SW1 3 4 5 6 7 SettingPin# 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 Programming the Second Character Programmable Character SettingDipswitch SW2* Weight Binary File TransferSmart Switch/Port Combiner Mode Enhanced Mode -- Timer Features Timer Values Specifications Model 232MSS2Documentation Number 232MSS2-0108 Manual Running SSwitch Windows SSwitchInstallation Software IntroductionSETUP.EXE Method preferred DOS SstsrCommand Description Options SSTSR.EXE MethodPort 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 1. IBM PC DB25 Connector to Master Port Chart 2. IBM PC DB9 Connector to Master PortChart 3. Modem DB25 Connector to Master Port Async Modem Chart 4. IBM PC DB25 Connector to Ports a D DTEDB9 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 Chart 8. IBM PC DB25 Connector to Ports a D DCE Chart 7. IBM PC DB9 Connector to Ports a D DCEDB9 Connector Direction 232MSS2 Ports a D DCE DB25 Connector Direction DB9 ConnectorChart 9. IBM PC DB9 Connector to Ports a D DCE DB9 Connector DirectionAppendix C Declaration of Conformity Declaration of ConformityAppendix C Documentation Number 232MSS2-0108 Manual