Computer interface protocol, Commands, Computer – DNF Controls SW32PS_Port_Switcher User Manual
Page 13: Interface, Protocol 12
Page 12 of 24
SW32PS RS422 Port Switcher
6.
COMPUTER INTERFACE PROTOCOL
Connection:
Connect RS232 COM PORT on computer to the “RS232” labeled port on the rear of the SW32PS.
See RS232 SERIAL CONNECTOR pin out diagram below.
Communication Format:
BAUD:
38400
PARITY: None
DATA:
8 Bits
START:
1 Bit
STOP:
1
Bit
COMMANDS
For the command descriptions and examples below:
All characters enclosed in single quotes represent ASCII Characters.
For example, ‘R’ represents the hexadecimal value 0x52.
The “+” symbol should not be included in the command string. This symbol is used for
the sole purpose of enhancing readability. For example, the command string ‘1’ + ‘2’ +
‘3’ should be transmitted as 0x31 0x32 0x33.
The CR symbol represents Carriage Return, which has a hexadecimal value of 0x0D.
Replace the CR symbol with its hexadecimal value of 0x0D.
a)
Route: Set From To Route
Route the “FROM” port to the “TO” port
Command = ‘R’+ FROM + TO + CR
FROM = Source Port, TO = Destination Port
Response = ‘O’ + ‘K’ + CR
Example # 1: FROM Port 4 TO Port 23
Command = ‘R’ + ‘0’ + ‘4’ + ‘2’ + ‘3’ + CR
Response = ‘O’ + ‘K’ + CR
Example # 2: FROM Port 13 TO Port 5.
Command = ‘R’ + ‘1’ + ‘3’ + ‘0’ + ‘5’ + CR
Response = ‘O’ + ‘K’ + CR