Field
|
Description
|
inv_id
|
[2 bytes] invocation id used for transaction pairing
|
proto_id
|
[2 bytes] used for intra-system multiplexing, default is 0 for Modbus services
|
len
|
[2 bytes] the len field is a byte count of the remaining fields, and it includes the dst_id and data fields
|
Field
|
Description
|
dst_idx
|
[1 byte] destination index is used for intra-system routing of packets (currently not implemented)
|
data
|
[n bytes] this is the service portion of the Modbus pdu, mb_pdu, and it is defined below
|
Field
|
Description
|
func_code{1 byte
|
Modbus function code
|
data
|
[n bytes] this field is function code dependent and usually contains information such as variable references, variable counts, and data offsets
|
00 01 00 00 00 06 01 03 00 00 00 01
inv_id
|
00 01
|
|
proto_id
|
00 00
|
|
len
|
00 00
|
|
dst_idx
|
01
|
|
func_code
|
03
|
|
data
|
00 00 00 01
|