D1-N Series Servo Drive User Manual Modbus Communication
HIWIN MIKROSYSTEM Corp. 14-5
Table14.2.7 is the example of reading register 0x0008. The content of register 0x0008 is 2 bytes. Its
value is 00 0Ah.
Table14.2.7
Command Response Error
Starting
address
Register 0x0008
CRC
Register
number
CRC
CRC
(3) Writing multiple registers (10h)
This function is used to write data to the contiguous blocks of registers. 123 registers at most can be
written at the same time.
Table14.2.8
Request Data Length Value Range
Function code 1 Byte 10h
Starting address 2 Bytes 0x0000~0xFFFF
Register number 2 Bytes 1~123
Byte count 1 Byte 2 x N
Register value 2 x N Bytes
Response Data Length Value Range
Function code 1 Byte 10h
Starting address 2 Bytes 0x0000~0xFFFF
Register number 2 Bytes 1~123
Error Data Length Value Range
Error code 1 Byte 90h
Exception code 1 Byte 01h, 02h, 03h, 04h
Note:
N is the number of registers.