CTI 2572-B / 2500C-2572-B Installation and Operation Manual 49
Word Transfer - Write 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.
Connection Number (19221 - 19228)
Source: Starting V Memory Address in this PLC
Number of Words to Transfer (1-256)
5 Destination: Starting V Memory Address in Remote
00C8 200
6 Command Timeout in seconds
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-B 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).
Command Code (Create Socket)
Connection Number (19221 - 19228)
Type of Service (1 = TCP, 2 = UDP)
Remote Device - High 16 bits of IP Address
Remote Device - Low 16 bits of IP Address