CTI 2572-A Installation and Operation Guide V1.3
39
Offset 0
Command Error Word
- Your PLC logic should set this to 0 so that any previous
error code is cleared. If a processing error is encountered, the module will write an
error code into this word.
Offset 1
Command Code
- The Command Code for E
XCHANGE
is 515 (hex 0202).
Offset 2
Connection Number
- Use the connection number that was established in the C
REATE
S
OCKET
command block.
Offset 3
Write
Source: Starting V Memory
- Enter the first V memory location in the
local
PLC which
contains the values which you wish to write to the remote PLC.
Offset 4
Number of Words to Write
- Enter the number of words you want to write.
Offset 5
Write
Destination: Starting V Memory
- Enter the beginning address of the V memory block
in the
remote
PLC to which you want to write this data.
Offset 6
Command Timeout in seconds -
When set to 0, the default value of approximately 9 seconds
is selected. A value of 999 specifies an infinite timeout.
Offset 7
Source: Starting V Memory
- Enter the first V memory location in the
remote
PLC from
which you wish to read data.
Offset 8
Number of Words to Read
- Enter the number of words you want to read.
Offset 9
Destination: Starting V Memory
- Enter the beginning address of the V memory block in the
local
PLC to which you want to write this data.
NOTE:
The memory exchange command must contain at least one word to write or an error will be returned.
The maximum number of words which can be written with a single command is 254. The maximum
number of words that can be read is 256.
Offset 10-11
IP Address
-
UDP Only.
If you set the IP Address Location bit to 1 (see offset 4 of
the C
REATE
S
OCKET
command block), you must specify the IP address of the remote
device. Since the IP address consists of 32 bits, the address is contained in two 16 bit
words. An IP Address of 0.0.0.0 (0000 0000 hex) or greater than 223.255.255.255
(DFFF FFFF hex) will return an error. If the IP Address Location bit is set to 0, these
words are ignored and the IP address contained in the C
REATE
S
OCKET
command
block is used.
Offset 12
UDP port number
-
UDP Only
. If you set the IP Address Location bit to 1 (see offset
4 of the C
REATE
S
OCKET
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-A PLC server). If the IP Address
Location bit is set to 0, these words are ignored and the port number contained in the
C
REATE
S
OCKET
command block is used.
Offset 13-15
Unused
- Set to 0.
Содержание 2572-A
Страница 8: ......
Страница 16: ......
Страница 28: ......
Страница 32: ......
Страница 60: ......
Страница 84: ......
Страница 96: ......
Страница 104: ...CTI 2572 A Installation and Operation Guide 96 WX WY Quick Reference...
Страница 112: ......
Страница 116: ......
Страница 126: ......
Страница 130: ...CTI 2572 A Installation and Operation Guide 122 WX WY Quick Reference...