Modbus TCP Communication Errors
Asked by
Nuno Santos
Hello Sirs,
I'm trying to read some registers from a energy meter with libmodbus and I always get one of the following errors:
- ERROR Communication time out (-12) --> most common
- ERROR Target device failed to respond (-11)
I checked modbus_param_t is Ok, modbus_connect function returns 0 but I got the errors above when I execute the
read_holding_
However, I can read the same registers with modpoll without any problem..
Do you have any ideia about what could be wrong?
Best Regards,
Nuno Santos
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- libmodbus Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stéphane Raimbault
- Solved:
- Last query:
- Last reply:
To post a message you must log in.