F518 HOLYKELL RS485 Modbus Protocol V1.3 EN

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

HOLYKELL Pressure&Level Transmitter

RS485 Modbus RTU Protocol


Date:2022/12/09 Doc No.: HLKE-RD-XY-A000001 Version:V1.3

Hardware Interface
RS485 serial interface
Serial port parameters: default address 01, default baud rate 9600. ---1200, 2400, 4800, 9600,19200bps option
Data bit: 8 bits
Stop bit: 1bit
Check bit: default none check, odd check, even check option
Register Name Data Type Qty of Register Register Function Codes Instruction
Register addres(Dec) addres
(Hex)
Read Write

The following are user-written parameters in big-endian format.


Unsigned 0x03,
Sensor's Type 1 0 0x00 Span:1~65535
integer 0x04
Unsigned 0x03, 0x06,
Slave/Sensor address 1 1 0x01 Span:1~254 , 0 is the broadcast address
integer 0x04 0x10
0:19200
1:9600(default)
Unsigned 0x03, 0x06,
Serial port baud rate 1 2 0x02 2:4800
integer 0x04 0x10
3:2400
4:1200
0:odd check
Unsigned 0x03, 0x06,
Serial check bit 1 3 0x03 1:no check (default)
integer 0x04 0x10
2:even check

Default value is 1000, which is mean 1.000g/cm3 density.


IEEE754 floating 0x03, 0x06,
Density of medium 2 4 0x04 Remarks: Liquid level =(measured pressure value - pressure offset)/(density x
point type 0x04 0x10
gravitational acceleration)+ blind area.

第 1 页,共 5 页
Register Name Data Type Qty of Register Register Function Codes Instruction
Register addres(Dec) addres
(Hex)
Dec Hex

0-Pa 0-Pa
Display pressure unit (only Unsigned 0x03, 0x06,
1 6 0x06 1-KPa 1-KPa
for pressure sensors) integer 0x04 0x10
2-MPa 2-MPa
3-bar 3-bar
4-psi 4-psi
5-atm 5-atm
6-mH2O 6-mH2O
7-cmH2O 7-cmH2O
Display Levvel unit Unsigned 0x03, 0x06, 8-mmH2O 8-mmH2O
1 7 0x07
(only for level sensors) integer 0x04 0x10 9-inH2O 9-inH2O
10-ftH2O A-ftH2O
11-kg/cm2 B-kg/cm2
12-mbar C-mbar
13-mmHg D-mmHg
14-inHg E-inHg
15-Torr F-Torr
Display temperature unit 16-m 10-m
Unsigned 0x03, 0x06,
(only for customized temp 1 8 0x08 17-cm 11-cm
integer 0x04 0x10
output function sensors) 18-mm 12-mm
19-℃ 13-℃
20-℉ 14-℉

Pressure Value 0x03, 0x06,


Signed integer 2 16 0x10 Min/Max display value: -2147483648~2147483647
(only for pressure sensor) 0x04 0x10

The decimal points of


Unsigned 0x03,
pressure display 1 18 0x12 Max display value: 65535
integer 0x04
(only for pressure sensor)

第 2 页,共 5 页
Register Name Data Type Qty of Register Register Function Codes Instruction
Register addres(Dec) addres
(Hex)

Level Value 0x03, 0x06,


Signed integer 2 19 0x13 Min/Max display value: -2147483648~2147483647
(only for level sensors) 0x04 0x10

The decimal points of


Unsigned 0x03,
level display 1 21 0x15 Max display value: 65535
integer 0x04
(only for level sensor)

Temperature Value
0x03, 0x06,
(only for customized temp Signed integer 2 22 0x16 Min/Max display value: -2147483648~2147483647
0x04 0x10
output function sensor)

The decimal points of


temperature display Unsigned 0x03,
1 24 0x18 Max display value: 65535
(only for customized temp integer 0x04
output function sensor)
Unsigned 0x03,
Hardware Version 1 34 0x22 Span: 1~65535
integer 0x04
Unsigned 0x03,
Software Version 1 35 0x23 Span: 1~65535
integer 0x04
Customer's second Unsigned 0x03, 0x06,
2 45 0x2d Max display value: 4294967295
calibration date integer 0x04 0x10
Year 3 digits + month 2 digits + day 2 digits + Batch number 6 digits + serial
Customer defined serial Unsigned 0x03, 0x06,
4 47 0x2f number 7 digits.
number integer 0x04 0x10
Max display value:184, 46, 74, 407370 9551615
Sensor operating mode Unsigned 0x03, 0x06, 0: low power mode
1 51 0x33
(Reserved) integer 0x04 0x10 1: Normal working mode
Span: 1~100, 1 decimal place, so the register value is 10, which means the
Pressure data collection Unsigned 0x03, 0x06,
1 52 0x34 filter factor is 1.0 seconds (*attention please, for Low-power version, this
filtering time integer 0x04 0x10
filiter unavaliable!)

第 3 页,共 5 页
Register Name Data Type Qty of Register Register Function Codes Instruction
Register addres(Dec) addres
(Hex)
Restore slave address, baud rate, check bit, user secondary calibration,
secondary calibration date, customer custom serial number, unit, pressure
Unsigned 0x06,
Restore factory Settings 1 53 0x35 filtering time, pressure offset, automatic reporting interval, blind area, density
integer 0x10
parameters to the factory configuration parameters. The sensor will restart
after recovery.
After the interval of automatic reporting of each variable is set, the sensor
reports the results of each measurement independently without the upper
computer sending a reading or activation command. Time range :10-65535
Set the interval for Unsigned 0x03, 0x06,
1 54 0x36 Unit: second S 0: the scheduled data
automatic reporting integer 0x04 0x10
reporting function is disabled. To report floating point data in modbus-RTU
format: pressure, level, temperature, reserved 1, reserved 2. Writing any
value will restart.
based on the display Units
Set the pressure offset IEEE754 floating 0x03, 0x06,
2 55 0x37 Liquid level =(measured pressure value - pressure offset value)/(density *
value point type 0x04 0x10
gravity acceleration)+ blind area customers and factories can be modified!
Units: mm
Sensor blind area/zone IEEE754 floating 0x03, 0x06,
2 57 0x39 Liquid level =(measured pressure value - pressure offset value)/(density *
compensation point type 0x04 0x10
gravity acceleration)+ blind area customers and factories can be modified!

0x03, 0x06, one decimal point, for example: 15 means 1.5, unit is degree C.
Temperature Offset Signed integer 1 59 0x3b
0x04 0x10 Temperature reading value=sensor collected temp data + temp offset value.

Floating point Read the pressure data/value with floating point type
pressure value IEEE754 floating 0x03,
2 60 0x3c *Display pressure = secondary calibrated pressure measurement value -
(only for pressure point type 0x04
pressure offset value
sensors)
Floating point level value IEEE755 floating 0x03,
2 62 0x3e Read the level data/value with floating point type
(only for level sensors) point type 0x04

Floating point temp value


IEEE756 floating 0x03,
(only for customized temp 2 64 0x40 Read the temperature data/value with floating point type
point type 0x04
output function sensors)

第 4 页,共 5 页
Register Name Data Type Qty of Register Register Function Codes Instruction
Register addres(Dec) addres
(Hex)
Format of the communication command
1. format of Sending inquiry command: address+function code of read+register address+number of register+CRC, Response from sensor: address+function code of
read+length of data+datas+CRC.
Integer data for example: using 03 function code to read level data
a. sending 0x01 0x03 0x00 0x13 0x00 0x02 0x35 0xce,
b. sensor feedback/response 0x01 0x03 0x04 0x00 0x00 0x01 0xe1 0x3b 0xeb
from above response data to analysis, the level data is 0x00 0x00 0x01 0xe1, transfer to Dec data is 481, the default unit is meter and default decimal place is three,
then the feedback result is 0.481m level.
Float data for example: using 03 function code to read level data
a. sending 0x01 0x03 0x00 0x3e 0x00 0x02 0xa5 0xc7
b. sensor feedback/response 0x01 0x03 0x04 0x3e 0xf6 0x4e 0xab 0x63 0xf6
from above response data to analysis, the level data is 0x3e 0xf6 0x4e 0xab, IEEE754 floating point numbers converted from hexadecimal to decimal data is 0.481m
level.

第 5 页,共 5 页

You might also like