DKM-411 Modbus Application Manual V3.0 (15.01.2017)
- 9 -
The function 06 (write single register) and the function 16 (write multiple registers) are used for data
writing.
The MODBUS master will send a query containing data to be written. The answer will be one of the below:
-A normal response confirming successful write,
-An exceptional response indicating a write error.
Only some of the available registers are authorized to be written. An attempt to write a write protected
register will result to the exceptional response.
The query message specifies the register address and data. The message structure is below:
See below the description of available registers
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 normal response is below:
See below the description of available registers
See below for the checksum calculation
The exceptional response will be:
144 (function code + 128)
See below for the checksum calculation
DATA WRITING (MULTIPLE REGISTERS)