beautypg.com

ProSoft Technology MVI56E-MNETC User Manual

Page 56

background image

Guide to the MVI56E-MNETC User Manual

MVI56E-MNETC ♦ ControlLogix Platform

User Manual

Modbus TCP/IP Client Enhanced Communication Module

Page 56 of 183

ProSoft Technology, Inc.

February 3, 2013

Swap Code

N

ONE

S

WAP

W

ORDS

S

WAP

W

ORDS

&

B

YTES

S

WAP

B

YTES

This parameter defines if and how the order of bytes in data received or sent is to
be rearranged. This option exists to allow for the fact that different manufacturers
store and transmit multi-byte data in different combinations. This parameter is
helpful when dealing with floating-point or other multi-byte values, as there is no
one standard method of storing these data types. The parameter can be set to
rearrange the byte order of data received or sent into an order more useful or
convenient for other applications. The following table defines the valid Swap
Code
values and the effect they have on the byte-order of the data.

Swap Code

Description

N

ONE

No change is made in the byte ordering (1234 = 1234)

S

WAP

W

ORDS

The words are swapped (1234=3412)

S

WAP

W

ORDS

&

B

YTES

The words are swapped, then the bytes in each word are swapped

(1234=4321)

S

WAP

B

YTES

The bytes in each word are swapped (1234=2143)

These swap operations affect 4-byte (or 2-word) groups of data. Therefore, data
swapping using these Swap Codes should be done only when using an even
number of words, such as when 32-bit integer or floating-point data is involved.

Node IP Address

xxx.xxx.xxx.xxx

The IP address of the device being addressed by the command.

Service Port

502

or other port numbers supported on a server

Use a value of 502 when addressing Modbus TCP/IP servers that are compatible
with the Schneider Electric MBAP specifications (this will be most devices). If a
server implementation supports another service port, enter the value here.