Trouble with Custom Function Code: Unable to Decode Response from Slave Device #1776
-
Hello everyone, I am working on a project where I am communicating with a Modbus slave device using PyModbus. My specific use-case requires me to use a custom function code (65), instead of the standard Modbus function codes. Here is the Python code I am using:
Issue:When I execute this code, I get the following log output:
Even though I get a response from the slave device, I am unable to decode it. The error message suggests that there is no response, which is clearly not the case as seen from the logs. If I change the custom function_code for 3 or 4, I get the following log output:
Questions:
Any help or pointers would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
A couple of things:
To your questions:
I think that should be help enough, otherwise ask. |
Beta Was this translation helpful? Give feedback.
A couple of things:
To your questions:
I think that should be help enough, otherwise ask.