CTI 2572-A Installation and Operation Guide V1.3
43
Word Transfer Command Block
The following command block writes 25 words obtained from local PLC V memory starting at V100
to the a block of V memory starting at V200 in the remote PLC.
Offset
Description
Hex
Decimal
0 Error
Word
0000
0
1
Command Code (Write)
0201
513
2
Connection Number (19221 - 19228)
4B15
19221
3
Source: Starting V Memory Address in this PLC
0064
100
4
Number of Words to Transfer (1-256)
0019
25
5
Destination: Starting V Memory Address in Remote PLC
00C8
200
6
Command Timeout in seconds
(0 = Use Default)
0000 0
7-15
Unused (Set to 0)
0000
0
If you need to verify that the command was completed successfully, you can monitor the error status.
If a problem occurs while executing the command, the 2572-A will set the CMD ERR bit and place
the applicable error code in the Error Word. See
Appendix D
for additional information.
UDP Client Example
This example creates a UDP Socket with the address location bit set to allow the target IP address to
be set in the Word Transfer commands. The Write command block can then be used to write to
different modules.
Create Socket Command Block
This command block creates a UDP socket with a default IP address of 192.168.177.01 (hex
C0.A8.B1.01) and UDP port 1505. Note that the startup option bit 15 is set (Word 4 = 0x0002).
Offset
Description
Hex
Decimal
0 Error
Word
0000
0
1
Command Code (Create Socket)
0003
03
2
Connection Number (19221 - 19228)
4B15
19221
3
Protocol Manager Number
0024
36
4
Startup Option Bits
0002
2
5
Type of Service (1 = TCP, 2 = UDP)
0002
2
6
Remote Device - High 16 bits of IP Address
C0A8
49320
7
Remote Device - Low 16 bits of IP Address
B101
45313
8
Unused (Set to 0)
0000
0
9
TCP/UDP Port Number
05E1
1505
10-15
Unused (Set to 0)
0000
0
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...