background image

RS485 with MODBUS-RTU Protocol

Serial interface

The following parameters are possible for data transfer via the EIA-485 interface on the ModBus sensors made by 
Mela

®

:

Baud rate:

19200 / 9600 / 4800 / 2400 / 1200 / 600

Data bits:

8

Parity:

N / E / O

Stop bits:

1 / 2

Modus 19200@8N2 is pre-defined.

Access to Modbus registers

To ensure compatibility with all Modbus masters, all available registers can be read both with function code 03

hex

 (read 

holding register), as well as with function code 04

hex

. Registers with additional write permission can be modified with 

function code 06

hex

 (write holding register). All registers available with Modbus sensors by Mela are listed in table 1.

Register-no.

Data type

Value 

Permission

0

FLOAT32

Temperature (°C)

readable

1

2

UINT16

Alarm code temperature

3

FLOAT32

Relative humidity (%rH)

4

5

UINT16

Alarm code humidity

6

UINT32

Serial number sensor

7

8

UINT32

Serial number sensor

9

10

FLOAT32

Dew point temperature (°C)

11

12

FLOAT32

Enthalpy (kJ/kg)

13

14

FLOAT32

Mixing ratio (g/kg)

15

16

FLOAT32

Absolute humidity (g/m³)

17

18

FLOAT32

Wet-bulb temperature (°C)

19

20

UINT16

Alarm code hx processor

205

UINT16

Modbus address

read and writeable

Functioning

The measured values for relative humidity, temperature and the corresponding alarm codes are saved in registers 

0…5 in a cycle time of 2s.  Registers 6(8) and 7(9) contain the sensor‘s serial number. If an hx value is scanned from 

registers 10…19, this is recalculated at the time of the scan, based on the current temperature and the relative humi-
dity. The hx processor emits an alarm code if the values for temperature or relative humidity are outside the permis-
sible input range. No calculation is made in this case, and the register displays the last valid value for each variable.

The memory organisation for the temperature and air humidity readings, as well as for the serial number, is Little 
Endian. This means that the low byte word is in the lower register and the high byte word is in the higher register.

Table 1 - Modbus register

Summary of Contents for IL Series

Page 1: ...ree of protection housing IP65 Material of housing PC light grey white General data Power supply external 6 30 VDC Max transfer distance RS232 RS485 15m 1000 m Consumption of electronics 1 0 mA Direct...

Page 2: ...d to check the accuracy of the sensors 84 rh at 25 C humidity standard to check the accuracy of the sensors 97 rh at 25 C ZE33 as designation F5 2 adapter for humidity standard ZE 31 1 Flange 20 045 f...

Page 3: ...ature C enthalpy kJ kg mixing ratio g kg absolute humidity g m and wet bulb temperature C K 4 Output signals RS232 ASCII protocol R RS485 MODBUS RTU protocol M 5 6 Operation conditions special version...

Page 4: ...Series Design Duct version Physical outputs active outputs Output signals MODBUS RTU Operation conditions special versions Sealing against vibrations Measured variable and output range 1 Measured vari...

Page 5: ...dity occur The sensor tube resp measuring head or measuring chamber should be exposed to the flow of air Avoid installation next to heaters doors or on outer walls Avoid places exposed to the sun Not...

Page 6: ...FLOAT32 Dew point temperature C 11 12 FLOAT32 Enthalpy kJ kg 13 14 FLOAT32 Mixing ratio g kg 15 16 FLOAT32 Absolute humidity g m 17 18 FLOAT32 Wet bulb temperature C 19 20 UINT16 Alarm code hx proces...

Page 7: ...sor The Modbus address can be modified at any time via write access to the address register reg no 205 Permissi ble slave addresses are within the 1 247 range Using address 0 as a slave address is not...

Page 8: ...rs in this impedance category 256 bus nodes are theoretically possible instead of 32 However due to the available address space in practice the number reduces to 247 The scanning interval should not e...

Page 9: ...ret the decimal result as a hexadecimal number 56 38hex 5 Compare the individual hexadecimal numbers with the transmitted ASCII characters of the checksum 38hex 3 8 VisualPMU Freeware for RS232 This s...

Reviews: