DKM-411 Modbus Application Manual V3.0 (15.01.2017)
- 7 -
The function 03 (read multiple registers) will be used for data reading. The MODBUS master will send a
query. The answer will be one of the below:
-A response containing the requested data
-An exceptional response indicating a read error.
The maximum number of registers read in one message is 16. If more registers are requested, the
unit will send only the first 16 registers.
The query message specifies the starting register and quantity of registers to be read. The
message structure is below:
See below the description of available registers
See below for the checksum calculation
Here is the sequence to read 16 registers starting from address 20h (32 decimal):
01 03 00 20 00 10 45 CC (each byte is expressed as 2 hexadecimal characters)
The checksum value in the above message may be used for the verification of checksum
calculation algorithm.
The normal response will be:
High byte of 1st register
High byte of 2nd register
High byte of the last register
Low byte of the last register
See below for the checksum calculation
The exceptional response will be:
131 (function code + 128)
See below for the checksum calculation