Appendix A. Modbus Communication
A_
Example
Write 0x0100 and 0x0200 to the addresses 0x0000 and 0x0001 in DVP15MC11T respectively
via function code 0x10. 0x0000 and 0x0001 are Modbus addresses of %MW0 and %MW1 in
DVP15MC11T respectively.
Request message: 01 10 00 00 00 02 04 01 00 02 00 F3 33
Response message: 01 10 00 00 00 02 41 C8
Function code 0x01 reads multiple output bit register values
Data structure of a request message:
Byte NO.
Name
Byte
Byte0
Modbus ID
Single byte
Byte1
Function code
Single byte
Byte2
The start address of DVP15MC11T bit registers to
be read
High byte
Byte3
Low byte
Byte4
The number of DVP15MC11T bit registers to be
read
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
Read the number of bytes of bit registers.
Single byte
Byte3
Read the state value of the bit register.
Single byte
…
Read the state value of the bit register.
Single byte
Byte n
Read the state value of the bit register.
Single byte
Byte n+1
Low byte of CRC check sum
Low byte
Byte n+2
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
0x80+ function code
Single byte
Byte2
Exception response message
Single byte
Byte3
Low byte of CRC check sum
Low byte
Byte4
High byte of CRC check sum
High byte
Note:
The value of Byte 2 in the response message is determined by the values of Byte 4 and Byte 5
in the request message. For example, the number of the read bit registers in the request
A-11
Содержание DVP15MC11T
Страница 9: ...Memo viii...
Страница 15: ...DVP15MC11T Operation Manual _2 MEMO 2 4...
Страница 71: ...DVP15MC11T Operation Manual _7 Memo 7 10...
Страница 81: ...DVP15MC11T Operation Manual _8 Timing Chart F_TRG_CLK F_TRG_Q 8 10...
Страница 158: ...Chapter 8 Logic Instructions 8_ The program 1 ASIN EN ENO In Out ASIN_EN ASIN_In Out1 8 87...
Страница 213: ...DVP15MC11T Operation Manual _8 The program 1 LIMIT EN ENO MN Out MX In LIMIT_EN LIMIT_MN LIMIT_MX LIMIT_In Out1 8 142...
Страница 216: ...Chapter 8 Logic Instructions 8_ The program 1 BAND EN ENO MN Out MX In BAND_EN BAND_MN BAND_MX BAND_In Out1 8 145...
Страница 249: ...DVP15MC11T Operation Manual _8 8 178...
Страница 285: ...DVP15MC11T Operation Manual _8 Memo 8 214...
Страница 286: ...9 Chapter 9 Introductions of Axis Parameters Table of Contents 9 1 Description of Axis Parameters 9 2 9 1...
Страница 323: ...DVP15MC11T Operation Manual 10 MEMO 10 34...
Страница 549: ...DVP15MC11T Operation Manual A MEMO A 16...
Страница 571: ...DVP15MC11T Operation Manual C Memo C 10...
Страница 572: ...D Appendix D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2 D 1...