EasyManua.ls Logo

CTI 2572-B - Close Socket Command; Memory Transfer Commands

Default Icon
119 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CTI 2572-B / 2500C-2572-B Installation and Operation Manual 40
Offset 9 TCP/UDP port number - If the IP ADDRESS SELECTION 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-B 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.
9.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 SOCKET 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.
9.5. Memory Transfer Commands
Memory Transfer commands are designed to provide a device independent method of transferring data
words. For SIMATIC® 505 PLCs, the memory transfer commands provide a simple way to transfer V memory
between the local PLC and another PLC (or suitably programmed computer) on the network. These
commands access only the first 64K bytes of V memory. Before using the Memory Transfer commands you
must have successfully completed a CREATE SOCKET command.
Word Transfer - Write
This function reads the contents of a designated area of V memory in the local PLC and writes the values in a
specified area of memory in another PLC. You can specify the starting memory addresses on both the local
and remote PLCs and the number of words to be transferred (up to 256 words). When the command is
triggered, the 2572-B reads the local V memory and sends a request message to the remote PLC. When the
response is returned from the remote PLC, the 2572-B verifies that the message was properly processed. If
not, the 2572-B places the error code in the command block and raises the applicable error bit.

Table of Contents