EasyManua.ls Logo

Hiwin D2 - Page 289

Hiwin D2
302 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
D2 Drive User Guide v1.8 D. Modbus Communication
HIWIN Mikrosystem Corp. 283
Table D-8
Command
Response
Error
Slave address
01h
Slave address
01h
Slave address
01h
Function code
04h
Function code
04h
Error code
84h
Starting
address
Hi
00h
Byte count
02h
Exception code
02h
Lo
08h
Register
0x0008
Hi
00h
CRC
Lo
C2h
Quantity of
registers
Hi
00h
Lo
0Ah
Hi
C1h
Lo
01h
CRC
Lo
35h
CRC
Lo
B0h
Hi
37h
Hi
08h
(3) Write multiple registers (10h)
This function is used to write the data into consecutive blocks of registers in the drive. The
maximum of consecutive blocks read at the same time is 123.
Table D-9
Data length
Value
Request
Function code
1 Byte
10h
Starting address
2 Bytes
0x0000 - 0xFFFF
Quantity of registers
2 Bytes
1 - 123
Byte count
1 Byte
2 x N
Register value
2 x N Bytes
Response
Function code
1 Byte
10h
Starting address
2 Bytes
0x0000 - 0xFFFF
Quantity of registers
2 Bytes
1 - 123
Error
Error code
1 Byte
90h
Exception code
1 Byte
01h, 02h, 03h, 04h
Note. N is the quantity of registers.
Table D-10
Exception
code
Exception name
Cause
01h
Illegal function
The function code is not supported.
02h
Illegal data address
Try to write an illegal register.
03h
Illegal data value
The quantity of registers is too large (>123).
04h
Server device failure
The accessed data includes the incomplete data.
For example, the host controller only writes 16 bits of
32-bits parameter.
The following table is an example of requesting to write the data of 00 0Ah and 01 02h into
2 registers, where the starting address is 0x0001.

Table of Contents

Related product manuals