Swap code, Node ip address, Service port – ProSoft Technology 5201-MNET-ASCII User Manual

Page 28

Advertising
background image

Modbus TCP/IP Protocol Configuration

MNET ♦ ProLinx Gateway

Driver Manual

Modbus TCP/IP Interface Module

Page 28 of 78

ProSoft Technology, Inc.

September 1, 2010

2.5.7 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 that do other
manufacturers. 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. This parameter can be set to rearrange the byte order of data received or
sent into 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

None

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

Swap Words

The words are swapped (1234=3412)

Swap Words & Bytes

The words are swapped then the bytes in each word are swapped
(1234=4321)

Swap Bytes

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.

2.5.8 Node IP Address

xxx.xxx.xxx.xxx

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

2.5.9 Service Port

502

or other supported ports on 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.

Advertising