Iam facing with Fail to read holding registers Error code is 226/227

hai everyone i have been trying to read the holding registers values but its showing error code as a 226 please help me to resolve the issue it will be helpful to me.
iam using modbusTCP over wifi.
my target is modbus Master want to send the request like read holding register slave will receive the request and generates random data and sends back to slave code at master side I want to see that data on serial terminal.
For that iam using two boards .

  1. ESP32 DEVKIT V1

  2. ESP32S

Hi @prawinuu ,

I may not be able to help you but if you like anyone else to support you should post your code!

Make sure you use code tags. You create those tags by clicking the code button in the editor window (the one which is marked gray here):

image

and copy your sketch between the tags
image

Good luck!

1 Like

What is your question, that should be followed by code that has been auto formatted (under tools menu) in code tags as well as any error logs in code tags (verbose mode) If applicable, a picture of a hand drawn wiring diagram is acceptable.

check in the library what the meaning of 226 (0xE2) or 227 (0xE3) is.
If you need further help

  • post your master code and your slave code in code tags
  • post the datasheet of your device you want to read

That is a time out; it usually means the comms parameters are not set correctly, or a wiring issue.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.