Appendix B Modbus TCP Communication
B
Byte NO. Name Byte
Byte3
Low byte
Byte4
Modbus data length
High byte
Byte5
Low byte
Byte6
Modbus ID Single byte
Byte7
Function code Single byte
Byte8
The start address of the bit registers where to write values
High byte
Byte9
Low byte
Byte10
The number of bit registers where to write values
High byte
Byte11
Low byte
Byte12
How many bytes occupied by bit registers where to write
values
Single byte
Byte13 The value written in a bit register
Single byte
Byte n The value written in a bit register
Single byte
Response message data structure
Byte NO. Name Byte
Byte0
Transaction identifier
High byte
Byte1
Low byte
Byte2
Protocol identifier
High byte
Byte3
Low byte
Byte4
Modbus data length Single byte
Byte5
Modbus ID
High byte
Byte6
Low byte
Byte7
Function code Single byte
Byte8
The start address of bit registers where to read
status
High byte
Byte9
Low byte
Byte10
The number of bit registers where to write values
High byte
Byte 11
Low byte
Exception response message data structure
Byte NO. Name Byte
Byte0
Transaction identifier
High byte
Byte1
Low byte
Byte2
Protocol identifier High byte
B-11