Appendix A Note: The value of Byte 2 in response message is determined by Byte 4 and Byte 5. For example, the number of the read bit device in request message is A. Dividing A by 8 produces B. If the quotient is an integer, the byte number in response message is B; if the quotient is not an integer, the byte number will be the integer part of the quotient plus 1. Example: Read the state value of M0~M19 in DVP10MC11T via function code 02. M0 address is 0x0800. Suppose M0~M7=1000 0001, M8~M15=0001 1000, M16~M19=0110. Request message: “01 02 08 00 00 14 7A 65” Response message: “01 02 03 81 18 06 A2 64” Function code:
0x05 to set one single bit-device register value Data structure of request message: Data structure of response message:
DVP-MC operating manual A-21 Data order Name Byte Byte0 Modbus ID Single byte Byte1 Function code Single byte Byte2 Modbus address of bit device High byte Byte3 Low byte Byte4 The written value of bit device High byte Byte5 Low byte Byte6 Low byte of CRC check sum Low byte Byte7 High byte of CRC check sum High byte Data order Name Byte Byte0 Modbus ID Single byte Byte1 Function code Single byte Byte2 Modbus address of bit device High byte Byte3 Low byte Byte4 The written value of bit device High byte Byte5 Low byte Byte6 Low byte of CRC check sum Low byte Byte7 High byte of CRC check sum High byte