Convert Between Big-Endian and Little-Endian
To convert between big-endian and little-endian you must reverse the byte order.
Figure 24. I/O data map, Endian swap
To reverse the byte order:
1.
In the web-interface left sidebar menu, click .
2.
Select the endian swap type from the Endian swap drop-down menu.
Setting
Description
No swapping
Default setting
No swapping is performed on the data.
Bytes
Swap 2 bytes
A B C D becomes B A D C
Words
Swap 4 bytes
A B C D becomes C D A B
Bytes and words
A B C D becomes D C B A
Detailed swap
With Detailed swap, you can select a Endian swap method for each byte in the I/O Configuration.
Set the endian swap type No swap, Bytes, AB → BA, Word swap, ABCD → CDAB or Bytes and words,
ABCD → DCBA for each bite. See
Build Detailed Endian Swap (page 34)
.
3.
To apply the settings, click Apply in the web-interface header, and follow the instructions.
I/O Configuration
Anybus
®
Communicator
™
- Modbus TCP Server to PROFIBUS DP Device
SCM-1202-201 Version 1.0
Page 33 of 60