SSH Troubleshooting modbus_client

Hello everyone,

I have Trouble with my modbus client configuration because iget
lots of failed connections in the modbus status. But i need more information or errorcodes of the modbus_client.

I would read the event log over SSH with command: logread -f | grep client_modbus but nothing shows up . Now to my question is there a special log file for the modbus client or is my command wrong ?

FW 07.14.03

Best Regards
Chris

hi,

system → maintenance → troubleshoot → download

open the file → system.log

This worked but i seek for specific modbus errorcodes. Because there are many failed connection of one device. so i want an errorcode or function code when the modbus client enables an connection and try to poll the values. In don’t find some modbus poll log in there. MFG Chris

Hello,

The command modbus_client -D <debug level number> should allow you to view the logs.

Regards,
M.

Hello MatasR,

Thanks for the fast answer. I must first seek the debug level number that you can enter because I had never seen this bevore. However, this command is often based on the libmodbus toolset, where debug levels typically work like this:

  • -D 0: No debugging (default)
  • -D 1: Basic debugging (shows Modbus messages sent/received)
  • -D 2 and higher: More detailed debugging (e.g., internal library functions, timestamps, error details) -D 3 Hex description and more specific Error Codes.

Hello, the highest level it goes up to is 9.

Regards,
M.

This topic was automatically closed after 60 days. New replies are no longer allowed.