VA5xx Modbus RTU TCP Slave Installation 1.11 EN
VA5xx Modbus RTU TCP Slave Installation 1.11 EN
1 Instructions 4
1.1 Definition and abbreviation 4
1.2 References 4
3 Installation 6
3.1 RS485 Bus Wiring (Modbus RTU) 6
3.1.1 Termination 6
3.1.2 Bias 6
3.2 RS485 Bus Verdrahtung (Modbus RTU) – Anschlussplan 7
3.2.1 Termination 7
3.2.2 Bias 7
5 Modbus TCP 8
8 Appendix 28
8.1 APPENDIX A - Exception codes 28
Page 3 of 28
1 Instructions
This manual is intended to provide instructions for the installation and use of the
MODBUS function. The MODBUS function can let the MODBUS master device to
read out the online measurement values.
This manual is not intended to be a complete tutorial on the MODBUS RTU protocol, and it
is assumed the end user already has a general working knowledge of MODBUS RTU
Communications, especially in respect of master station configuration and operation.
However an overview is included in the following section to explain some of the
fundamental aspects of the protocol.
1.2 References
Page 4 of 28
2 Technical data Modbus
2.1 MODBUS RTU specificationn
RTU mode Modbus Application Data Unit (ADU) frame is shown below, and is valid for
both requests and responses.
Table 1
Side 5 of 28
4 Modbus RTU communication settings
Before communication with the master, baudrate, address, and framing must be defined
Note:
It is recommended NOT to use the default address in a multi-slave network. It is of great
importance to ensure at the time of the procedure of device addressing, that there
is not two devices with the same address. In such a case, an abnormal behaviour of the
whole serial bus can occur, the master being then in the impossibility to communicate with
all present slaves on the bus.
5 Modbus TCP
Modbus communication requires the establishment of a TCP connection between a client (e.g. PC)
and the sensor. The TCP port 502 reserved for Modbus is normally used for communication. However,
the user can also configure a different port number.
If a firewall is arranged between sensor and client, it must be ensured that the configured TCP port is
enabled.
Side 8 of 28
6 Modbus addressing model
Byte Order:
The size of each Modbus-register is 2 Byte. For a 32 bit value two Modbus register will be read out by
thHSUREH. Accordingly for a 16bit Value only one register is read.
Data format:
General exceptions:
• Requesting less than 1 or more than 125 registers => Exception 3 (Illegal data value)
• Requesting more than max. message size (27 registers) => Exception 2(Illegal data address)
• Requesting data out of defined range of registers chapter 8 => Exception 2 (Illegal data address)
Application exceptions:
• Application errors => Exception 4 (Slave device error)
Holes/register alignment:
• The read command always returns data if no exception is given. Bad
start/end alignment will result in only parts of the data item being read.
Side 9 of 28
6.2 Function code 16 (Write multiple registers)
In general, only status register (register 2001 – 2064) are writable.
General exceptions:
• Writing less than 1 or more than 63 registers => Exception 3 (Illegal data value)
• If Byte Count is not exactly 2 times NoOfRegisters => Exception 3 (Illegal data value)
• Exceeding max. message size (27 registers) => Exception 2 (Illegal data address)
• Writing data out of defined register range chapter 8 =>Exception 2 (Illegal data address)
Application exceptions:
• Application errors => Exception 4 (Slave device error)
• If start-address is not the start of a mapped holding register => Exception 2 (Illegal data address)
• Writing to holes is allowed (ie ignored - and no exception occurs) — except for
the condition described above
Side 10 of 28
7 Modbus Holding Register
7.1 Basic Values Register (1…1000)
sprintf(str,"%u.%02u",hw>>16,hw&0
3 2 4 UInt32 Software Version 0 R
xffff);
sprintf(str,"%u.%02u",hw>>16,hw&0
5 4 4 UInt32 Hardware Version 0 R
xffff);
7 6 4 UInt32 0 R
17 16 4 UInt32 0 R
sprintf(str,"%u.%02u",hw>>16,hw&0
21 20 4 UInt32 Curve Version 0 R
xffff);
0 = NoLock, 1 = DiameterLock, 2 =
27 26 4 UInt32 LockSettings 0 R CounterLock, 3 =
RefConditionsLock
Bit Mask
0 = no option 1 = 4-20mA
29 28 4 UInt32 OptionBoard 0 R 2 = Ethernet 4 = Mbus
8 = ProfiBus 16 = SDI
32 = Pressure 64 = Direction
31 30 4 Dword Variant x R
OptionBoard
sprintf(str,"%u.%02u",hw>>16,hw&0
37 36 4 Dword HardwareVersion x R
xffff);
(if available)
OptionBoard
sprintf(str,"%u.%02u",hw>>16,hw&0
39 38 4 Dword SoftwareVerision x R
xffff);
(falls verfügbar)
Side 11 of 28
7.2 Values register (1001….1600)
.
Modbus Modbus No.of Read
Data Type Description Default Unit /Comment
Register Address Byte Write
Side 12 of 28
Modbus Modbus No.of Read
Data Type Description Default Unit /Comment
Register Address Byte Write
Incremented Pulses
1041 1040 4 Float/Dword x R
since setup pulse
Systempressure (at
Value only available with
1043 1042 4 Float/Dword Pressure Unit showed in x R
pressure option
Display)
Systempressure Min at
Value only available with
1045 1044 4 Float/Dword Pressure Unit in Display x R
pressure option
since Clear Min/Max
Systempressure Max at
Value only available with
1047 1046 4 Float/Dword Pressure Unit in Display x R
pressure option
since Clear Min/Max
Total Counter bevore
only available in Direction
1049 1048 4 Uint/Dword comma as showed in x R
Sensor Vaxxxx
Display (left side)
Total Counter after
only available in Direction
1051 1050 4 Float/Dword comma as showed in x R
Sensor Vaxxxx
Display (left side)
Total Counter bevore
comma as showed in only available in Direction
1053 1052 4 Uint/Dword x R
Display (left side + right Sensor Vaxxxx
side)
Total Counter after
comma as showed in only available in Direction
1055 1054 4 Float/Dword x R
Display (left side + right Sensor Vaxxxx
side)
to
Side 13 of 28
Modbus Modbus No.of Read
Data Type Description Default Unit /Comment
Register Address Byte Write
Side 14 of 28
Modbus Modbus No.of Read
Data Type Description Default Unit /Comment
Register Address Byte Write
Side 15 of 28
Modbus Modbus No.of Read
Data Type Description Default Unit /Comment
Register Address Byte Write
Side 16 of 28
Modbus Modbus No.of Data Read
Description Default Unit /Comment
Register Address Byte Type Write
Consumption m³ before
1269 1268 4 UInt32 x R
comma
Side 17 of 28
Modbus Modbus No.of Def Read
Data Type Description Unit /Comment
Register Address Byte ault Write
Side 18 of 28
Modbus Modbus No.of Def Read
Data Type Description Unit /Comment
Register Address Byte ault Write
Value only available with
1475 1474 4 Float Systempressure mbar x R
pressure option
Float systempressure Min mbar since Value only available with
1477 1476 4 x R
Clear Min/Max pressure option
Float systempressure Max mbar since Value only available with
1479 1478 4 x R
Clear Min/Max pressure option
Float Value only available with
1481 1480 4 Systempressure bar x R
pressure option
Float systempressure Min bar since Value only available with
1483 1482 4 x R
Clear Min/Max pressure option
Float systempressure Max bar since Value only available with
1485 1484 4 x R
Clear Min/Max pressure option
Float Value only available with
1487 1486 4 Systempressure psi x R
pressure option
Float systempressure Min psi since Value only available with
1489 1488 4 x R
Clear Min/Max pressure option
Float systempressure Max psi since Value only available with
1491 1490 4 x R
Clear Min/Max pressure option
Side 19 of 28
Modbus Modbus No.of Def Read
Data Type Description Unit /Comment
Register Address Byte ault Write
Consumption m³ bevore comma
1533 1532 4 UInt x R
(left side)
Consumption m³ after comma
1535 1534 4 Float x R
(left side)
Consumption total m³ bevore
1537 1536 4 UInt x R
comma (left side + right side)
Consumption total m³ after
1539 1538 4 Float x R
comma (left side + right side)
Consumption Nm³ bevore
1541 1540 4 UInt x R
comma (left side)
Consumption Nm³ after comma
1543 1542 4 Float x R
(left side)
Consumption total Nm³ bevore
1545 1544 4 UInt x R
comma (left side + right side)
Consumption total Nm³ after
1547 1546 4 Float x R
comma (left side + right side)
Consumption ltr bevore comma
1549 1548 4 UInt x R
(left side)
Consumption ltr after comma
1551 1550 4 Float x R
(left side)
Consumption total ltr bevore
1553 1552 4 UInt x R
comma (left side + right side)
Consumption total ltr after only available in Direction
1555 1554 4 Float x R
comma (left side + right side)
Consumption Nltr bevore comma
1557 1556 4 UInt x R
(left side)
Consumption Nltr after comma
1559 1558 4 Float/ x R
(left side)
Consumption total Nltr bevore
1561 1560 4 UInt x R
comma (left side + right side)
Consumption total Nltr after
1563 1562 4 Float x R
comma (left side + right side)
Consumption Cf bevore comma
1565 1564 4 UInt x R
(left side)
Consumption Cf after comma
1567 1566 4 Floatd x R
(left side)
Consumption total Cf bevore
1569 1568 4 UInt x R
comma (left side + right side)
Consumption total Cf after
1571 1570 4 Float x R
comma (left side + right side)
Consumption NCf bevore
1573 1572 4 UInt x R
comma (left side)
Consumption NCf after comma
1575 1574 4 Float x R
(left side)
Consumption total NCf bevore
1577 1576 4 UInt x R
comma (left side + right side)
Side 20 of 28
Modbus Modbus No.of Def Read
Data Type Description Unit /Comment
Register Address Byte ault Write
Consumption total NCf after
1579 1578 4 Float/Dword x R
comma (left side + right side)
Consumption kg bevore comma
1581 1580 4 UInt/Dword x R
(left side)
Consumption kg after comma
1583 1582 4 Float/Dword x R
(left side)
Consumption total kg bevore
1585 1584 4 UInt/Dword x R
comma (left side + right side)
only available in
Consumption total kg after
1587 1586 4 Float/Dword
comma (left side + right side)
x R Direction Sensor
Consumption kWh bevore
1589 1588 4 UInt/Dword x R
comma (left side)
Consumption kWh after comma
1591 1590 4 Float/Dword x R
(left side)
Consumption total kWh bevore
1593 1592 4 UInt/Dword x R
comma (left side + right side)
Consumption total kWh after
1595 1594 4 Float/Dword x R
comma (left side + right side)
Side 21 of 28
7.3 Device settings register
7.3.1 Modbus Settings (2001…2005)
Modbus Modbus No.of Default Read
Data Type Description Unit /Comment
Register Address Byte Setting Write
0 = 1200
1 = 2400
2 = 4800
3 = 9600
2002 2001 2 UInt16 Baudrate 4 R/W
4 = 19200
5 = 38400
6 = 57600
7 = 115200
0 = none
2003 2002 2 UInt16 Parity 1 R/W 1 = even
2 = odd
0 = 1 Stop Bit
2004 2003 2 UInt16 Number of Stopbits R/W
1 = 2 Stop Bit
Side 22 of 28
7.3.3 Device Settings (2021…2063)
Modbus Modbus No.of Default Read
Data Type Description Unit /Comment
Register Address Byte Setting Write
Side 23 of 28
Modbus Modbus No.of Default Read
Data Type Description Unit /Comment
Register Address Byte Setting Write
0 = none
2081 2080 4 Float Relais Mode as index 1 R/W 1 = Puls
2 = Alarm
U_m3
U_ltr
2083 2082 4 Float Unit Puls from Unit Table U_m3 R/W
U_cf
U_kg
Pulse Value (value where
2085 2084 4 Float 1 R/W
is generated a new puls)
0 = neg
2087 2086 4 Float Pulse Polarity 1 R/W
1 = pos
U_m_s
U_m3_h
U_ltr_s
U_GRA U_cfm
2089 2088 4 Float Unit Alarm from Unit Table R/W
D_C U_kg_min
U_kg_s
U_GRAD_C
U_GRAD_F
Side 24 of 28
7.3.4 Analog 4…20mA Register
Modbus Modbus No.of Default Read
Data Type Description Unit /Comment
Register Address Byte Setting Write
0 = not used
4-20mA CH1 Selected 1 = Flow
2201 2200 4 UInt32 1 or 2 R/W
Value as index 2 = Velocity
3 = Temperature
Flow:
U_m3_h,U_Nm3_h,U_m3_
min,U_Nm3_min,U_ltr_h,U
U_m3_h _Nltr_h,U_ltr_min,U_Nl_mi
(VA520 & VA n,U_ltr_s,U_Nl_s,U_cfm,U
4-20mA CH1 Unit index
570) _Ncfm,U_kg_h,U_kg_min,
2203 2202 4 UInt32 from unit table for above R/W
U_m_s U_kg_s,U_kW
selected Value
(VA500 & VA Velocity:
550) U_m_s,U_Nm_s,U_Ft_min
,U_Nft_min
Temperature:
U_GRAD_C,U_GRAD_F
4-20mA CH1 Auto or 0 = AutoRange
2205 2204 4 UInt32 0 R/W
Manual Range 1 = Manual Range
Side 25 of 28
7.4 Gas names
Modbus Modbus No.of Default Read
Data Type Description Unit /Comment
Register Address Byte Setting Write
Side 26 of 28
7.5 MBus Register
Modbus Modbus No.of Default Read
Data Type Description Unit /Comment
Register Address Byte Setting Write
3001 3000 4 Dword Mbus Primary Address 0x01 R/W Range 1..255
to
Side 27 of 28
7.7 Unit Index table
81 g/s
82 g/min
83 m
84 ft
8 Appendix
8.1 APPENDIX A - Exception codes
The VA 5xx Modbus uses the following exception codes when responding to the master
Side 28 of 28