From address, To address, Register count – ProSoft Technology 5201-MNET-ASCII User Manual
Page 32: Swap code
![background image](/files/866211/content/doc032.png)
Modbus TCP/IP Protocol Configuration
MNET ♦ ProLinx Gateway
Driver Manual
Modbus TCP/IP Interface Module
Page 32 of 78
ProSoft Technology, Inc.
September 1, 2010
2.6.1 From Address
0 to highest Status Data address
This field specifies the beginning internal database register address for the copy
operation. This address can be any valid address in the User Data Area or the
Status Data Area of the gateway.
2.6.2 To Address
0 to 3999
This parameter specifies the beginning destination register address for the copy
operation. This address must always be within the User Data registers area.
Take care to specify a destination address that will not overwrite data that has
been stored in memory by one of the communication protocols running on the
gateway.
2.6.3 Register Count
1 to 100
This parameter specifies the number of registers to copy.
2.6.4 Swap Code
N
O
C
HANGE
, W
ORD
S
WAP
, W
ORD AND
B
YTE
S
WAP
, B
YTE
S
WAP
You may need to swap the order of the bytes in the registers during the copy
process in order to change the alignment of bytes between dissimilar protocols.
This parameter is helpful when dealing with floating-point or other multi-register
values, as there is no standard method of storage of these data types in slave
devices.
The following table defines the values and their associated operations:
Swap Code
Description
No Swap
No change is made in the byte ordering (1234 = 1234)
Word Swap
The words are swapped (1234=3412)
Word and
Byte Swap
The words are swapped, then the bytes in each word are swapped (1234=4321)
Bytes
The bytes in each word are swapped (1234=2143)