You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the spec, for the Read Holding registers request that comes from the Modbus client, byte 3+4 combined forms the 2-byte starting address of the register to start reading from. Please refer to https://www.simplymodbus.ca/FC03.htm
In the ReadHoldingRegistersResponseBody.fromRequest function, requestBody.start is multiplied by 2 to arrive at startByte that I think is not needed, requestBody.start should be treated as starting address in the holding register buffer
The text was updated successfully, but these errors were encountered:
Hey @ameyat2812
the Modbus Specs define the holding register to be of 2-byte sized absolutes. So a address in modbus for, example 4, is located in a 1-byte based buffer at offset 8.
In the spec, for the Read Holding registers request that comes from the Modbus client, byte 3+4 combined forms the 2-byte starting address of the register to start reading from. Please refer to https://www.simplymodbus.ca/FC03.htm
In the
ReadHoldingRegistersResponseBody.fromRequest
function, requestBody.start is multiplied by 2 to arrive at startByte that I think is not needed, requestBody.start should be treated as starting address in the holding register bufferThe text was updated successfully, but these errors were encountered: