
Wecon VD2 SA Series Servo Drives User Manual (Full V1.0)
102
WECON technology Co., Ltd
8.2.4 Error response frame
Address
Function code
Error code CRC check code
1 byte
Command code+0x80 Error code
2 bytes
When an error occurs, set the function code bit7 issued by the host to 1, and return (for
example, 0x03 returns 0x83, 0x06 returns 0x86); the description of the error code are as follows:
Error code
Coding description
0x0001
Illegal command code
0x0002
Illegal data address
0x0003
Illegal data
0x0004
Slave device failure
8.2.5 Communication example
[03 Function Code Read]
Read the monitoring volume [U0-31] bus voltage, the modbus register address corresponding to
this variable is 7716 (0x1E24)
Request format:
Address
Function
code
Register address
high byte
Register address
low byte
Data high
byte
Data low
byte
CRC check
code
1 byte
06
1 byte
1 byte
1 byte
1 byte
2 bytes
The slave responds normally:
Address
Function
code
Number of
bytes
Data high
byte
Data low
byte
CRC low
byte
CRC high
byte
01
03
02
0C
26
3C
9E
The value read is 0x0C26, which means that the voltage is 311.0V.
[06 Function Code Write]
[P1-10] The maximum speed threshold is set to 3000rpm. This variable corresponds to the modbus
address: 266 (0x010A)
Request format:
Address
Function
code
Register address
high byte
Register address
low byte
Data high
byte
Data low
byte
CRC low
byte
01
06
01
0A
0B
B8
AF
The slave responds normally:
Address
Function
code
Register address
high byte
Register address
low byte
Data high
byte
Data low
byte
CRC low
byte
01
06
01
0A
0B
B8
AF