Communication Protocol TCP/IP Communications Setup Command Set
CubiScan 125 Service Manual 77
between 49152 and 65535 to avoid conflicts. Consult your network administrator to select the
port number.
Read Port
This command is used to read the current TCP Port number setting from the CubiScan 125.
Pos Len Description Type Range ASCII
Command Format
1 1 Start of Text Control (STX) 02h
21Set Command Alpha (@) 40h
3 1 Port Command Alpha (P) 50h
4 1-5 or n Port Alpha (1) to (65535)
4+n 1 End of Text Control (ETX) 03h
5+n 1 Carriage Return Control (CR) 0Dh
6+n 1 Line Feed Control (LF) 0Ah
Acknowledge Format
1 1 Start of Text Control (STX) 02h
21Set Command Alpha (@) 40h
3 1 Port Command Alpha (P) 50h
4 1 Acknowledge Alpha (A) 41h
51End of Text Control(ETX) 03h
6 1 Carriage Return Control (CR) 0Dh
7 1 Line Feed Control (LF) 0Ah
Negative Acknowledge Format
1 1 Start of Text Control (STX) 02h
21Set Command Alpha (@) 40h
3 1 Port Command Alpha (P) 50h
41Neg. AcknowledgeAlpha (N) 4Eh
51End of Text Control(ETX) 03h
6 1 Carriage Return Control (CR) 0Dh
7 1 Line Feed Control (LF) 0Ah
Pos Len Description Type Range ASCII
Command Format
1 1 Start of Text Control (STX) 02h
2 1 Set Command Alpha (~) 7Eh
3 1 Port Command Alpha (P) 50h
41End of Text Control(ETX) 03h