beautypg.com

Rtu framing, Table 5.14, Response sample – RLE LD2100 V.2.6 User Manual

Page 79

background image

rletech.com

LD2100 User Guide

79

5

Modbus Communication

5.3. RTU

Framing

The example below shows a typical Query/Response from an LD2100 module.

Slave address 2 responds to Function Code 4 with six bytes of hexadecimal data and ends with

CRC16 checksum.

Register Values:

40001 = 0000 (hex)

40002 = 0000 (hex)

40003 = 0001 (hex)

Table 5.14 Response Sample

Slave

Address

Function

Code

Count Bytes

of Data

Register

Data

Msb

Lsb

Register

Data

Msb

Lsb

Register

Data

Msb

Lsb

CRC

16

“Lsb”

CRC

126

“Msb”

02

04

06

00 00

00 00

00 01

B5

A3