CTI 2572 Installation and Operation Guide
36
Offset 12 UDP port number - UDP Only, firmware Version 5.0 and greater. If you set the IP
Address Location bit to 1 (see offset 4 of the C
REATE SOCKET command block), you
must specify the UDP port number of the remote device. If you are accessing another
2572, you will typically set this value to 1505 (the recommended value for the 2572
PLC server). If the IP Address Location bit is set to 0, this word is ignored and the
port number contained in the C
REATE SOCKET command block is used.
Offset 13-15 Unused - Set to 0.
Word Transfer - Read Remote
This function reads the contents of a designated area of V memory in the remote PLC and writes the
values in a specified area of V memory in the local PLC. You can specify the starting V memory
addresses on both the local and remote PLCs and the number of words to be transferred (up to 256
words). Based on the specification, the 2572 sends a message requesting the data to the network
recipient associated with the Connection Number. When the response is returned, the 2572 verifies
the response. If there is no error, the 2572 writes the data in local V memory. If an error is
encountered, the 2572 will post an error which may be processed by PLC logic.
The following command block will cause the 2572 to read the designated V memory in the remote
PLC and store the result in local V memory.
Offset Description Hex Decimal
0 Error Word
0000 0
1 Command Code (Read Remote Memory)
0202 514
2 Connection Number (19221-19228)
3 Source: Starting V Memory Address in Remote PLC
4 Number of Words to Transfer (1-256)
5 Destination: Starting V Memory Address in this PLC
6 Command Timeout in seconds
(0 = Use Default)
0000 0
7-9 Unused (Set to 0)
0000 0
10 IP Address of Remote Device - High 16 bits
(UDP Only: IP Address Location bit in the Create
Socket command must be set to 1)
11 IP Address of Remote Device - Low 16 bits
(UDP Only: IP Address Location bit in the Create
Socket command must be set to 1)
12 UDP Port Number of Remote Device
(UDP Only: IP Address Location bit in the Create
Socket command must be set to 1)
13 - 15 Unused (Set to 0)
0000 0
Offset 0 Error Word - Set to 0 so that any previous error codes are cleared