pymodbus-dev / pymodbus

A full modbus protocol written in python
Other
2.16k stars 891 forks source link

Fix field encoding of Read File Record Response #2075

Closed justinsg closed 4 months ago

justinsg commented 4 months ago

The Modbus spec V1.1b3 states the following field order:

  1. Function Code (0x14)
  2. Resp. data Length (in bytes)
  3. Sub-Req. x, File Resp. length (in registers)
  4. Sub-Req. x, Reference Type: 0x6 (fixed)
  5. Sub-Req. x, Record Data
  6. Sub-Req. x+1, ...

Previously, field 4 was before field 3.

janiversen commented 4 months ago

Thanks.