
COMMUNICATIONS PROTOCOL
TCP/IP communications setup command set
CubiScan 325 Service Manual
84
Read port
This command is used to read the current TCP Port number setting from the Cubiscan 325.
Set port
This command is used to set the Cubiscan 325 TCP port number. In TCP/IP networks, port
numbers are used to distinguish between different logical channels on the same network
interface on the same computer. For example, port 80 is used for HTTP traffic on the Internet.
Some ports have numbers assigned to them by the Internet Assigned Numbers Authority (IANA).
These are known as “well-known ports” and are limited to numbers 0 through 1023. Ports 1024
through 49151 are “registered ports” listed by the IANA, and can be used by ordinary user
processes on most systems. Ports 49152 through 65535 are called “dynamic and/or private
ports” and are free for use. It is recommended that the Cubiscan 325 TCP port be set to a
Pos
Len
Description
Type
Range
ASCII
Command format
1
1
Start of text
Control
(STX)
02h
2
1
Read command
Alpha
(~)
7Eh
3
1
Port command
Alpha
(P)
50h
4
1
End of text
Control
(ETX)
03h
5
1
Carriage return
Control
(CR)
0Dh
6
1
Line feed
Control
(LF)
0Ah
Acknowledge format
1
1
Start of text
Control
(STX)
02h
2
1
Read command
Alpha
(~)
7Eh
3
1
Port command
Alpha
(P)
50h
4
1
Acknowledge
Alpha
(A)
41h
5
1-5 or n Port
Alpha
(0) to (65535)
5+n
1
End of text
Control
(ETX)
03h
6+n
1
Carriage return
Control
(CR)
0Dh
7+n
1
Line feed
Control
(LF)
0Ah
Negative acknowledge format
1
1
Start of text
Control
(STX)
02h
2
1
Read command
Alpha
(~)
7Eh
3
1
Port command
Alpha
(P)
50h
4
1
Neg. acknowledge
Alpha
(N)
4Eh
5
1
End of text
Control
(ETX)
03h
6
1
Carriage return
Control
(CR)
0Dh
7
1
Line feed
Control
(LF)
0Ah