Appendix A. Modbus Communication
A-9
A_
Example
To read the contents of address 16#0000 and 16#0001 in DVP-15MC series motion controller
via function code 03.
16#0000 and 16#0001 are the Modbus addresses of %MW0 and %MW1 in DVP-15MC series
motion controller respectively.
Suppose the value of %MW0 is 16#0001 and %MW1 is 16#0002:
Request message: 01 03 00 00 00 02 C4 0B
Response message: 01 03 04 00 01 00 02 2A 32
Function code 06 writes one single word register value
Data structure of a request message:
Byte NO.
Name
Byte
Byte0
Modbus ID
Single byte
Byte1
Function code
Single byte
Byte2
Controller’s register address where to write
the value
High byte
Byte3
Low byte
Byte4
The written value
High byte
Byte5
Low byte
Byte6
Low byte of CRC check sum
Low byte
Byte7
High byte of CRC check sum
High byte
Data structure of a response message:
Byte NO.
Name
Byte
Byte0
Modbus ID
Single byte
Byte1
Function code
Single byte
Byte2
Controller’s word register address where to
write the value
High byte
Byte3
Low byte
Byte4
The written value
High byte
Byte5
Low byte
Byte6
Low byte of CRC check sum
Low byte
Byte7
High byte of CRC check sum
High byte
Data structure of an exception response message:
Byte NO.
Name
Byte
Byte0
Modbus ID
Single byte
Byte1
16#80+ function code
Single byte
Byte2
Exception response code
Single byte
Byte3
Low byte of CRC check sum
Low byte
Byte4
High byte of CRC check sum
High byte
Example
Write 16#0100 to the address 16#0000 in DVP-15MC series motion controller via function
code 06.
Request message: 01 06 00 00 01 00 88 5A
Response message: 01 06 00 00 01 00 88 5A
Содержание DVP-15MC Series
Страница 16: ...1 1 1 Preface Table of Contents 1 1 Explanation of Symbols in This Manual 1 2 1 2 Revision History 1 3...
Страница 19: ...DVP 15MC Series Motion Controller Operation Manual 1 4 _1 MEMO...
Страница 20: ...2 1 2 Overview Table of Contents 2 1 Product Description 2 2 2 2 Functions 2 2 2 3 Profile and Components 2 3...
Страница 23: ...DVP 15MC Series Operation Manual 2 4 _2 MEMO...
Страница 31: ...DVP 15MC Series Motion Controller Operation Manual 3 8 _3 MEMO...
Страница 75: ...DVP 15MC Series Motion Controller Operation Manual 6 26 _6 MEMO...
Страница 87: ...DVP 15MC Series Motion Controller Operation Manual 7 12 _7 MEMO...
Страница 432: ...Chapter 8 Logic Instructions 8 345 8_ MEMO...
Страница 433: ...9 1 9 Chapter 9 Introductions of Axis Parameters Table of Contents 9 1 Description of Axis Parameters 9 2...
Страница 470: ...DVP 15MC Series Motion Controller Operation Manual 10 34 10 MEMO...
Страница 878: ...DVP 15MC Series Motion Controller Operation Manual 11 408 11 1 MEMO...
Страница 920: ...DVP 15MC Series Motion Controller Operation Manual A 16 A MEMO...
Страница 941: ...D 1 D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2...
Страница 966: ...DVP 15MC Series Motion Controller Operation Manual D 26 D MEMO...