3 modbus-tcp/-udp, Comparison, Modbus-tcp/-udp – Rice Lake PR5230 Fieldbus Transmitter User Manual
Page 169: Pr 5230 instrument manual j-bus/modbus protocol
![background image](/manuals/639397/169/background.png)
PR 5230 Instrument Manual
J-Bus/ModBus Protocol
Sartorius
EN-169
6.3
ModBus-TCP/-UDP
Connection is via the network interface (fixed address or with DHCP).
The telegram consists of six blocks:
Trans
16
Proto
16
Size
16
Addr
8
Func
8
Legend
Trans
16
Sequential transaction number. The number is reflected
by the instrument in such a way that the reply can be
assigned to the enquiry.
Proto
16
Reserved for future extension, here always 0.
Size
16
Number of subsequent bytes
Addr
8
Normally, the device address is not used with ModBus-
TCP/-UDP.
It is used if ModBus-TCP/-UDP is connected behind a
ModBus RTU gateway.
With ModBus-TCP/-UDP, PR 5230 ignores this parameter.
Func
8
Function code (see Chapter 6.4)
Further data (see Chapter 6.4)
The telegrams can be exchanged using TCP or UDP via Port 502. Normally, this is a fixed setting in the
ModBus-TCP master.
With UDP, the typical response time is 4 ms and max. 8 ms. With high network traffic, failed telegram
transmissions must be expected. Suitable measures must be taken in the ModBus-TCP master to force a
repeated transmission in the event of telegram loss.
With TCP, the typical response time is approx. 10 ms. With high network traffic, transmission can be delayed
(max. 120 seconds in extremely disturbed networks, or with long transmission distances as encountered e.g.
with the Internet). Normally, however, no telegrams are lost.
Comparison
ModBus-TCP
ModBus-UDP
Reliable transmission:
As long as the line is not interrupted, no telegram is
lost.
Unreliable transmission:
With high network traffic or transmission over long
distances, telegram loss must be expected.
Low speed:
With transmission problems, transmission can be
delayed considerably.
High speed:
The reply is transmitted quickly, or not at all.
Suitable for:
-
Parameter transmission
-
Result logging
-
Non-time-critical process control
Suitable for:
-
Transmission of dynamic values
-
Visualization
-
Time-critical process control (requiring timeout
handling)