CTI 2572-A Installation and Operation Guide
34
Offset 9
TCP/UDP port number
- If the IP
A
DDRESS
S
ELECTION
option bit in Offset 4 is set to 0, this
word specifies the TCP/UDP port number of the remote node. If you are accessing
another 2572, you will typically set this value to 1505 (the recommended value for
the 2572-A PLC server). If you are using UDP and bit 15 of offset 4 is set to 1, then
this address becomes the default port number.
Offset 10-15
Unused
- These words are unused and should be set to 0.
5.4. Close Socket Command
The following command block will close a connection to a TCP/IP socket. Once the connection has
been successfully closed, you can re-use the connection number in a subsequent C
REATE
S
OCKET
command block.
Offset
Description
Hex
Value
Decimal
Value
0 Error
Word
0000
0
1
Command Code (Close Connection)
0002
02
2
Connection Number (19221 - 19228)
3- 15
Unused (Set to 0)
0000
0
Offset 0
Error Word
- Set to 0 so that any previous error codes are cleared.
Offset 1
Command Code
- The Command Code of the Close Connection command is 02.
Offset 2
Connection Number
- You can specify any connection number that has been previously
established in a Create Socket command block.
Offset 3-15
Unused
- These words are unused by this command and should be set to 0.
NOTE:
This command can be used only for client connections. You cannot use the command to close the
connection to the PLC Network Server.
Summary of Contents for 2572-A
Page 8: ......
Page 16: ......
Page 28: ......
Page 32: ......
Page 60: ......
Page 84: ......
Page 96: ......
Page 104: ...CTI 2572 A Installation and Operation Guide 96 WX WY Quick Reference...
Page 112: ......
Page 116: ......
Page 126: ......
Page 130: ...CTI 2572 A Installation and Operation Guide 122 WX WY Quick Reference...