Use Of Modbus Rtu; Holding Registers; Read Holding Register Instruction; Read Version Number - Ebyte Wireless Modem User Manual

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
Speed over ground
40213
Course over
40215
ground
【Note】 Single-precision floating-point uses the standard IEEE754 format, with a total of 32 bits (4 bytes). The
default single-precision floating point endian mode is ABCD (high byte first, low byte last), for example: 0x3FF1EB85
represents 1.89 (reserved 2 decimal places).

5. Use of Modbus RTU

【Note】In the following demo, the device address is 1. If using a different device address, then the address bits and
checking code are different from below values.

Holding Registers

5.1
The register used by E108-D01 is holding register. The function code for writing the holding register is 0x06 (write
a single holding register), and reading the holding register uses 0x03 (reading the holding register)
0x03 code read instruction format (take the read version as an example):
Device address
01
Return format (take the read version as an example):
Device address
01
0x06 code configuration command format (configure device address as an example):
Device address
01
Return format (configured device address as an example): the same as the command format;

Read Holding Register Instruction

5.2

5.2.1 Read version number

Command frame: 01 03 00 01 00 01 D5 CA
Address
0x01
Response frame: 01 03 02 00 10 B9 88
Copyright ©2012–2022, Chengdu Ebyte Electronic Technology Co., Ltd.
00D5
00D7
Function code
First address
03
00 01
Function code
Data length
03
Function code
Data length
03
00 02
Function code
Register start address
0x03
order: big endian, byte order: big endian;
Float
The unit is Kn, read-only, word order: big endian,
(4Byte)
byte order: big endian;
Float
The unit is Kn, read-only, word order: big endian,
(4Byte)
byte order: big endian;
Read quantity
00 01
Read quantity
02
00 10
Value
00 01
Number of
0x00 0x01
0x00 0x01
E108-D01 User Manual
Check code CRC
D5 CA
Check code CRC
B9 88
Check code CRC
25 CA
CRC check
registers
0xD5 0xCA
11

Advertisement

Table of Contents
loading

This manual is also suitable for:

E108-d01

Table of Contents