The turn off string also adds the ASCII ESC character to the front of the
The first character is the ASCII ESC character. The second and third character of the command control string is the
Example 2: To turn off all ports and the user defined character is ASCII STX (decimal 2).
Send to Master Port: ESC STX STX EOT
(27 2 2 4 decimal)
It is recommended that the
If you were writing a program in GWBASIC to select port E of the 232D4SS8 (address zero) you would form a string like this:
SW0E$ = CHR$(27) + CHR$(2) + "0" + "E"
You could then send SW0E$ to select port E. Similar strings could be used for turning on the other ports. To turn off the ports the string might look like this:
TOFF$ = CHR$(27) + CHR$(2) + CHR$(2) + CHR$(4)
NOTE: There is no delay through the Smart Switch and the data is not buffered.
Programming the User Defined Character
The
Documentation Number 232D4SS84502 Manual | 15 |
B&B Electronics Mfg Co – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph