Operation Via Ethernet Ip (Modbus/Tcp); Message Structure - Pepperl+Fuchs VBG-ENXK20-DMD-EV Manual

As-i 3.0 ethernet/ip+ modbus tcp gateway
Hide thumbs Also See for VBG-ENXK20-DMD-EV:
Table of Contents

Advertisement

AS-i 3.0 EtherNet/IP+Modbus TCP Gateway

Operation via Ethernet IP (Modbus/TCP)

12.
Operation via Ethernet IP (Modbus/TCP)
The AS-i/Gateway acts as a 1 or 2 complete Master for the AS-i and as a 256 bit
digital I/O module for Ethernet. All possibilities offered by AS-i can be used via
Ethernet TCP/IP.
The used Modbus/TCP protocol is similar to the Modbus protocol. Specifically, it
covers the use of Modbus messaging in an Intranet or Internet environment using
TCP/IP protocols. The only differences to the Modbus protocol are the form of any
"framing" sequence, error check pattern and address interpretation.
All requests are sent via TCP on registered port 502.
Data addresses in Modbus messages
All data addresses in Modbus messages are referenced to zero. The first occurrence
of a data item is addressed as item number zero.
For example:
The coil known as "coil 1" in a programmable controller is addressed as coil 0000 in
the data address field of a Modbus message.
Coil 127 decimal is addressed as coil 007E hex (126 decimal).
Holding register 40001 is addressed as register 0000 in the data address field of the
message. The function code field already specifies a "holding register" operation.
Therefore the "4XXXX reference is implicit.
Holding register 40108 is addressed as register 006B hex (107 decimal).
12.1

Message Structure

Telegrams from the Modbus-Master (query-messages) and answers of the Mod-
bus slaves have the same structure:
The request and response are prefixed by 6 bytes as follows:
T1
T2
high
low
Transaction identifier T
protocol identifier P
data bytes D
P1
P2
B1
high
low
high
,T
: usually 0 - copied by server.
1
2
,P
: 0
1
2
length field B
: upper byte of the length field = 0 (since all messages
1
are smaller then 256)
length field B
: lower byte of the length field = number of bytes follow-
2
ing
unit identifier UI: value to indentifying the client
funktion code F: Code of Modbus-function to be executed by the slave.
Under certain circumstances the slave could answer
with an error-telegram. In this case the function-code in
the response-message is increased by 128.
... D
: Field to hold user-data.
1
n
The number of bytes is variable
B2
UI
F
D1
low
high
D2
...
Dn
low
low
79

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vbg-enxk20-dmdVbg-enxk20-d

Table of Contents