What’s new in 7.10beta5 (2023-May-09 13:38):
*) iot - added option to send Modbus function code commands directly from RouterOS (CLI only);
This means that you can now communicate with the Modbus connected device dirrectly from within RouterOS.
You can script the KNOT to send specific function code commands and store replies (from the Modbus device) as variables. Then, you can send Modbus device’s replies via MQTT further. KNOT can be Modbus “client” now. The guide with examples is on the way (the original Modbus guide will be updated).
This is the only solution/function that is availible as of this moment.
Based on QModMaster working via the Knot I conclude communications are working to the device but the Knot is not encoding or decoding the data as expected ?.
Is their a way to log Modbus Output and Input to see what is actually being sent and received ?
I have also tried disabling Modbus interface to see if that might be an issue but then I get a message “Connection Refused”
Could you try to set the board to a different ID instead of 255? MODBUS spec calls for the ID in the range 1-247, perhaps KNOT enforces it and the Windows software doesn’t. And, double check serial port settings are the same on both sides - 2 stop bits, no parity. Also, expect random failures when the last byte of the response frame (2nd byte of CRC) is zero - known bug, already reported and MT working on a fix. Modbus works for me otherwise.