B&B Electronics 232SS2 Manual page 13

Smart switch
Table of Contents

Advertisement

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 232SS2 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 232SS2 it is the set timer mode command and the
"0" indicates to set up the timer as a inactivity timer. When the timer
is configured as an inactivity timer, the 232SS2 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 232SS2 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
B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104
Table 3 - Timer Values
Data Byte
0
timer disabled
1
2
3
4
5
6
7
8
9
Value
10ms
25ms
100ms
500ms
1 s
5 s
30 s
1 min.
5 min.
232SS21600 Manual

Advertisement

Table of Contents
loading

Table of Contents