Operational Description; Message Format; Gateway/Host Interface; Figure 5. Ethernet Headers On Modbus Messages - GE POWER LEADER GEH-6505A User Manual

Ge power leadertm ethernet gateway user's guide geh6505a
Table of Contents

Advertisement

1-3 Operational Description

The Ethernet Gateway transparently passes message
between the host and devices attached to the
Gateway. Figure 5 illustrates the stripping or adding
of Ethernet headers to the Modbus messages. This
section describes the nature of these messages and
how the Gateway routes them. The following
information is not necessary for configuration and use of
the Ethernet Gateway, but is provided for users who may be
developing
custom
applications
information.

Message Format

Messages sent from the software to RS485 devices
via the Ethernet Gateway have a 15-byte header
inserted in front of the message. The header tells
the Gateway where to send the message, how long
the
message
is,
and
encountered. This header has the following format:
SS
DD
SS
Sequence of ten AA hex bytes indicating the start
of a message
Ho st
P MC S
and
need
if
parity
errors
EE
NN
CC
Modbus messages fr om host to devi ce - Ether net Gateway str ips off header
Ethernet
Mod bu s
header
messa ge
information
M essage tr aveli ng on Ethernet
Ethernet
Mod bu s
header
messa ge
information
Modbus messages f rom devi ce to host - Ether net Gateway adds header

Figure 5. Ethernet headers on Modbus messages.

POWER LEADER™ Ethernet Gateway
DD
Destination device port number – the Gateway
RS485 port to which the message should be
routed (0 - 3)
EE
Error status byte (0 = no parity errors, 1 = parity
errors encountered)
NN
Number of bytes in the Modbus message
CC
A one byte checksum calculated by adding the
first 14 bytes in the header
The header is stripped off the message by the
such
Gateway and the remainder of the message is sent
without changes to the destination device (or
interpreted by the Gateway if a configuration
message).
Messages from the RS485 devices to the host are
processed by adding the 15-byte header onto the
start of the message. For messages from devices to
the host, the byte in the DD position contains the
were
RS485 port from which the message came.
Cyclic redundancy check (CRC) handling is done
by the host on the Ethernet and the RS485 device
on the Modbus. The Gateway does not check the
CRC when receiving messages from the host or
from RS485 devices.
Ethernet
Gateway
Ethernet
Gateway

Gateway/Host Interface

The Gateway uses TCP/IP (Transmission Control
Protocol/Internet Protocol) to interface with the
host on the Ethernet.
The Gateway initially opens a socket and waits for a
host device to attempt to connect with the socket.
Once a connection is established, data messages
may be transmitted to the Gateway (and ultimately
the RS485 devices) and messages from RS485
devices passed to the host.
3
Chapter 1 – Introduction
Mo db u s
messa g e
M essage tr avel i ng on RS485
Mo db u s
messa g e
RS485
device
RS485
device

Advertisement

Table of Contents
loading

Table of Contents