Appendix A. Modbus Communication
A-7
A_
return reg_crc; // the value that sent back to the CRC register finally
}
A.3
Modbus Function Codes Supported
The function codes which are supported by DVP-15MC series motion controller are listed in the
following table when COM2 port is possessed by the motion control module.
Function
code
Explanation
Available register
16#01
Read output bit register values; the data of 256 bits at
most can be read at a time
%QX
16#02
Read bit register values; the data of 256 bits at most
can be read at a time
%IX,%QX
16#03
Read one single or multiple word register value; the
data of 100 words at most can be read at a time.
%MW,%QW,%IW
16#05
Write one single bit register value.
%QX
16#06
Write one single word register value.
%MW,%QW
16#0F
Write multiple bit register value; the data of 256 bits at
most can be written at a time.
%QX
16#10
Write multiple word register value; the data of 100
words at most can be written at a time.
%MW,%QW
A.4
Modbus Exception Response Code Supported
Exception response codes supported by DVP-15MC series motion controller are listed in the
following table.
Exception
response
code
Explanation
16#01
Illegal command codes: the command codes in the command message
which PLC receives are invalid.
16#02
Illegal register address: the address in the command message received is
invalid.
16#03
Illegal register value: the data in the command message received by PLC
are invalid.
16#07
Check sum fault
Check if the check sum is correct.
Illegal command message
Too short command message
The length of the command message exceeds the valid range.
Summary of Contents for DVP-15MC Series
Page 19: ...DVP 15MC Series Motion Controller Operation Manual 1 4 _1 MEMO...
Page 23: ...DVP 15MC Series Operation Manual 2 4 _2 MEMO...
Page 31: ...DVP 15MC Series Motion Controller Operation Manual 3 8 _3 MEMO...
Page 75: ...DVP 15MC Series Motion Controller Operation Manual 6 26 _6 MEMO...
Page 87: ...DVP 15MC Series Motion Controller Operation Manual 7 12 _7 MEMO...
Page 432: ...Chapter 8 Logic Instructions 8 345 8_ MEMO...
Page 470: ...DVP 15MC Series Motion Controller Operation Manual 10 34 10 MEMO...
Page 878: ...DVP 15MC Series Motion Controller Operation Manual 11 408 11 1 MEMO...
Page 920: ...DVP 15MC Series Motion Controller Operation Manual A 16 A MEMO...
Page 941: ...D 1 D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2...
Page 966: ...DVP 15MC Series Motion Controller Operation Manual D 26 D MEMO...