<< Click to Display Table of Contents >> Navigation: Modbus Universal MasterOPC Server > MasterOPC Universal Modbus Server > The Design-Time Mode > The Byte Swapping Editor > The Byte Swapping Editor of a Tag |
If Device byte order = FALSE, a byte order is configured for the tag individually.
The picture below demonstrates an interface of the byte swapping editor (byte numeration is started from 0):
To set a preset byte sequence order, use the following alternative editor options (the respective order is displayed – see pictures):
High byte first
This type of byte sequence order is used when polling 2-byte variables (int16, uint16).
High word first
As a rule, this type of byte sequence order is used when polling 4-byte variables (int32, uin32, float).
Note. Exceptions are all controllers under Codesys 2 (Wago, Beckhoff and others), They use the byte sequence order high byte first.
High double word first
As a rule, this type of byte sequence order is used when polling 8-byte variables (double).
Note. Byte swapping does not work for String-type variables. In strings, received byte sequence order is always corresponds to initial byte sequence order.
If none of options is picked, the following tools to set an arbitrary byte order are available:
– move the selected byte by one position to the left (the selected byte is highlighted; for example, the byte 3 is selected in the picture above)
– move the selected byte by one position to the right
In all cases, a most-left byte goes first.
To apply changes and close the editor, click OK.
To cancel changes and close the editor, click Cancel.