The Byte Swapping Editor of a Tag

<< 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):

modbus_img135

To set a preset byte sequence order, use the following alternative editor options (the respective order is displayed – see pictures):

mbul   High byte first

modbus_img136

This type of byte sequence order is used when polling 2-byte variables (int16, uint16).

mbul   High word first

modbus_img137

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.

mbul High double word first

modbus_img138

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:

modbus_img139

mbul   modbus_img140 – 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)

mbul   modbus_img141 – 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.