Ba01258r09en 0215
Ba01258r09en 0215
Additional Manual
Ecograph T, RSG35
Universal Data Manager
Modbus RTU / TCP Slave
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
Table of contents:
2
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
1 General information
Symbols:
NOTICE Note
Failure to observe this sign can result in a device defect or a malfunction.
Tip
Indicates additional information.
1.2 Prerequisites
The "Modbus Slave" option must be enabled in the device. To retrofit optional functions, please follow the
information in the Operating Instructions.
Modbus RTU via RS485 is only possible if the device has the optional RS232/RS485 interface (back of device),
and only RS485 is supported. Modbus TCP is possible via the integrated Ethernet interface (back of device).
NOTICE The terminal assignment does not correspond to the standard (Modbus over serial line
specification and implementation guide V1.02).
3
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The Modbus TCP option makes it possible to connect the device to Modbus TCP with the functionality of a
Modbus TCP slave. The Ethernet connection supports 10/100 Mbit, full or half duplex.
The user can choose between Modbus TCP or Modbus RTU in the settings. It is not possible to select both at the
same time.
4
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
If Modbus TCP is used, the settings for the Ethernet interface can be made under "Setup / Advanced setup /
Communication / Ethernet":
In addition, it is possible to set a timeout period under "/Expert / Communication /Modbus Slave / Timeout"
after which the channel in question is set to "Invalid".
The timeout only refers to channels that receive a value from the Modbus Master. It does not affect channels that
are only read by the Modbus Master.
5
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
All the universal inputs (12) are enabled and can be used as Modbus
inputs even if they are not really available as plug-in cards.
With this setting, a Modbus Master can write to the universal input as described in Section 2.6.1.
6
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
With this setting, the Modbus Master can write to the digital channel as described in Section 2.6.2.
The digital state transmitted by the Modbus Master has the same function in the device as the state of a digital
channel that is actually present.
7
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The following values can be transmitted from the Modbus Master to the device:
- Analog values (instantaneous values)
- Digital states
The following values can be transmitted from the device to the Modbus Master:
- Analog values (instantaneous values)
- Integrated analog values (totalizer)
- Math channels (result: state, instantaneous value, operating time, totalizer)
- Integrated math channels (totalizer)
- Digital states
- Pulse counter (totalizer)
- Operational times
- Relay states
8
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
2.6 Addressing
The query/response examples refer to Modbus RTU via RS485.
The register addresses are all to the base 0.
The 1st register contains the status (see Section 2.6.10.4) of the floating point number (32 bit float) transmitted
in the 2nd and 3rd register.
Example: Writing to universal channel 6 with the value 123.456 (32 bit float), slave address 1
Byte 0 1 2 3 4 5
00 80 42 F6 E9 79
Floating Floating point number
point = 123.456 (32 bit
number float)
status
9
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The 1st register contains the status (see Section 2.6.10.4) of the floating point number (64 bit float) transmitted
in the 2nd to 5th register).
Example: Writing to universal channel 6 with the value 123.456 (64 bit float), slave address 1
Byte 0 1 2 3 4 5 6 7 8 9
00 80 40 5E DD 2F 1A 9F BE 77
Floating
point
Floating point number = 123.456 (64 bit float)
number
status
10
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
Example: Setting digital input 4 to high (all others to low), slave address 1
Byte 0 Byte 1
state (bit 15-8) state (bit 7-0)
00000000 00001000
Bit 3 high
Always 0
digital 4
11
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The states of digital inputs 1-6 must be written via 16 Write Multiple Registers.
Byte 0 Byte 1
state (bit 15-8) state (bit 7-0)
00000000 00001000
Bit 3 high
Always 0
digital 4
12
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
Universal inputs 1-12 are read out via 03 Read Holding Register (4x).
It is possible to transmit the value as a 32 bit float or 64 bit float.
The 1st register contains the status (see Section 2.6.10.4) and the limit value violations (see Section 2.6.10.3) of
the floating point number (32 bit float) transmitted in the 2nd and 3rd register.
Example: Reading analog 1 with the value 82.47239685 (32 bit float), slave address 1
Byte 0 1 2 3 4 5
00 80 42 A4 F1 DE
Limit Floating Floating point number
value point =
violations number 82.47239685
status
13
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The 1st register contains the status (see Section 2.6.10.4) and the limit value violations (see Section 2.6.10.3) of
the floating point number (64 bit float) transmitted in the 2nd to 5th register.
Example: Reading universal channel 1 with the value 82.4723968506 (64 bit float), slave address 1
Byte 0 1 2 3 4 5 6 7 8 9
00 80 40 54 9E 3B C0 00 00 00
Limit Floating
value point Floating point number = 82.4723968506 (64 bit
violations number float)
status
14
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The results of the math channels are read out via 03 Read Holding Register (4x).
It is possible to transmit the value as a 32 bit float or 64 bit float.
The 1st register contains the status (see Section 2.6.10.4) and the limit value violations (see Section 2.6.10.3) of
the floating point number (32 bit float) transmitted in the 2nd and 3rd register.
Example: Reading math 1 (instantaneous value result), (32 bit float), slave address 1
Byte 0 1 2 3 4 5
00 80 46 40 E6 B7
Limit Floating Floating point number
value point =
violations number 12345.67871
status
15
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The 1st register contains the status (see Section 2.6.10.4) and the limit value violations (see Section 2.6.10.3) of
the floating point number (64 bit float) transmitted in the 2nd to 5th register.
Example: Reading math 1 (instantaneous value result), (64 bit float), slave address 1
Byte 0 1 2 3 4 5 6 7 8 9
00 80 40 C8 1C D6 E6 31 F8 A1
Limit Floating
value point
Floating point number = 12345.6789 (64 bit float)
violations number
status
16
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
Example: Reading math 1-4 (state result), slave address 1
The states of math channels 1-4 are read out via 03 Read Holding Register (4x).
Byte 0 Byte 1
state (bit 5-0)
00000000 00000011
Bit 0 and 1 high
Always 0
Math 1 and 2
17
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The states of digital inputs 1-6 are read out via 03 Read Holding Register (4x).
Byte 0 Byte 1
state (bit 15-8) state (bit 7-0)
00000000 00100100
Bit 2 and 5 high
Always 0
Digital 3 and 6
18
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The states of digital inputs 1-6 are read out via 03 Read Holding Register (4x).
Byte 0 Byte 1
State bit 0
00000000 00000001
Bit 0 high
Always 0
Digital 6
19
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The totalizers of digital inputs 1-6 are read out via 03 Read Holding Register (4x).
It is possible to transmit the value as a 32 bit float or 64 bit float.
Tab. 12: Register addresses of digital input totalizers (device -> Modbus Master)
The 1st register (low byte) contains the status (see Section 2.6.10.4) and the limit value violations (see Section
2.6.10.3) of the floating point number (32 bit float) transmitted in the 2nd and 3rd register.
Example: Reading totalizer of digital input 6 (32 bit float), slave address 1
Byte 0 1 2 3 4 5
00 80 40 C9 99 9A
Limit Floating Floating point number
value point =
violations number 65552.0
status
20
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The 1st register (low byte) contains the status (see Section 2.6.10.4) and the limit value violations (see Section
2.6.10.3) of the floating point number (64 bit float) transmitted in the 2nd to 5th register.
Example: Reading totalizer of digital input 6 (64 bit float), slave address 1
Byte 0 1 2 3 4 5 6 7 8 9
00 80 40 19 33 33 39 80 00 00
Limit Floating
value point
Floating point number = 6.3 (64 bit float)
violations number
status
21
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The totalizers of universal inputs 1-12 are read out via 03 Read Holding Register (4x).
It is possible to transmit the value as a 32 bit float or 64 bit float.
The 1st register contains the status (see Section 2.6.10.4) and the limit value violations (see Section 2.6.10.3) of
the floating point number (32 bit float) transmitted in the 2nd and 3rd register.
Example: Reading totalizer for universal channel 1 with the value 26557.48633 (32 bit float),
slave address 1
Byte 0 1 2 3 4 5
00 80 46 CF 7A E6
Limit Floating Floating point number
value point =
violations number 26557.48633
status
22
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The 1st register contains the status (see Section 2.6.10.4) and the limit value violations (see Section 2.6.10.3) of
the floating point number (64 bit float) transmitted in the 2nd to 5th register.
Example: Reading totalizer for universal channel 1 with the value 33174.3672951 (64 bit float),
slave address 1
Byte 0 1 2 3 4 5 6 7 8 9
00 80 40 E0 32 CB C0 E1 99 A9
Limit Floating
value point Floating point number = 33174.3672951 (64 bit
violations number float)
status
23
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The totalizers of the math channels are read out via 03 Read Holding Register (4x).
It is possible to transmit the value as a 32 bit float or 64 bit float.
Tab. 14: Register addresses of math channel totalizers (device -> Modbus Master)
The 1st register contains the status (see Section 2.6.10.4) of the floating point number (32 bit float) transmitted
in the 2nd and 3rd register.
Byte 0 1 2 3 4 5
00 80 4B 29 85 F4
Floating Floating point number
point =
number 33174.3672951
status
24
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The 1st register contains the status (see Section 2.6.10.4) of the floating point number (64 bit float) transmitted
in the 2nd to 5th register).
Byte 0 1 2 3 4 5 6 7 8 9
00 80 41 68 5F 26 35 2A FC 7E
Floating
point Floating point number = 33174.3672951 (64 bit
number float)
status
25
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
The states of the relays are read out via 03 Read Holding Register (4x).
Bit 0 corresponds to relay 1.
Byte 0 Byte 1
state (bit 15-8) state (bit 7-0)
00000000 00010000
Bit 4 high
Always 0
Relay 5
Byte 1:
Bit 0 = Status relay 1
Bit 1 = Status relay 2
Bit 2 = Status relay 3
Bit 3 = Status relay 4
Bit 4 = Status relay 5
Bit 5 = Status relay 6
1 = Active, 0 = Inactive
26
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
Octet 8 7 6 5 4 3 2 1
7 6
0 Sign (E) 2 (E) 2 (E) 21
0 -1 -2
1 (E) 2 (M) 2 (M) 2 (M) 2-7
2 (M) 2-8 (M) 2-15
-16
3 (M) 2 (M) 2-23
= 1 4 1,875 7,5
Byte 0 1 2 3 4 5
00 80 40 F0 00 00
Limit Floating Floating point number
value point =
violations number 7.5
status
Octet 8 7 6 5 4 3 2 1
0 Sign (E) 210 (E) 29 (E) 24
1 (E) 23 (E) 22 (E) 21 (E) 20 (M) 2-1 (M) 2-2 (M) 2-3 (M) 2-4
2 (M) 2-5 (M) 2-12
-13
3 (M) 2 (M) 2-20
4 (M) 2-21 (M) 2-28
5 (M) 2-29 (M) 2-36
-37
6 (M) 2 (M) 2-44
7 (M) 2-45 (M) 2-52
= 1 4 1,875 7,5
Byte 0 1 2 3 4 5 6 7 8 9
00 80 40 1E 00 00 00 00 0 0
27
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
Floating
point
Floating point number =7.5
number
status
The states of the first 8 limit values that are assigned to the channel are entered here.
Example:
If universal input 1 is assigned a limit value for the instantaneous value and a limit value for analysis 1, the 2
limit value states are indicated in bit 0 and bit 1 in the measured value of universal input 1 (register 200) and
integrated universal input 1 (register 800).
Byte 0 1 2 3 4 5
02 80 40 F0 00 00
Limit Floating Floating point number
value point =
violations number 7.5
status
Bit 0.0 = 0: 1st assigned limit value not violated, here limit value for instantaneous value
Bit 0.1 = 1: 2nd assigned limit value violated, here limit value for integrated value
28
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
29
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
3 Overview of registers
The register addresses are all to the base 0, i.e. they correspond to the value that is transmitted in the
Modbus protocol.
30
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
5805 Universal 2 totalizer Status + 64 Bit Float R
5810 Universal 3 totalizer Status + 64 Bit Float R
5815 Universal 4 totalizer Status + 64 Bit Float R
5820 Universal 5 totalizer Status + 64 Bit Float R
5825 Universal 6 totalizer Status + 64 Bit Float R
5830 Universal 7 totalizer Status + 64 Bit Float R
5835 Universal 8 totalizer Status + 64 Bit Float R
5840 Universal 9 totalizer Status + 64 Bit Float R
5845 Universal 10 totalizer Status + 64 Bit Float R
5850 Universal 11 totalizer Status + 64 Bit Float R
5855 Universal 12 totalizer Status + 64 Bit Float R
6300 Digital 1 totalizer Status + 64 Bit Float R
6305 Digital 2 totalizer Status + 64 Bit Float R
6310 Digital 3 totalizer Status + 64 Bit Float R
6315 Digital 4 totalizer Status + 64 Bit Float R
6320 Digital 5 totalizer Status + 64 Bit Float R
6325 Digital 6 totalizer Status + 64 Bit Float R
6700 Math 1 totalizer Status + 64 Bit Float R
6705 Math 2 totalizer Status + 64 Bit Float R
6710 Math 3 totalizer Status + 64 Bit Float R
6715 Math 4 totalizer Status + 64 Bit Float R
4 Troubleshooting
4.1 Troubleshooting for Modbus TCP
Is the Ethernet connection between the device and master OK?
Does the IP address sent by the master match the address configured on the device?
Do the port configured on the master and the port configured on the device match?
31
Universal Data Manager/Modbus Slave
___________________________________________________________________________________
6 Index
Analog channel 6 Inputs 6
Baud rate 4 LED, status 4
Floating point number 27 Mathematics channel 6
Floating point number status 29 Outputs 6
Function 4
www.endress.com/worldwide
32