Hello!
I’m using a MikroTik KNOT to read values via Modbus RTU. Reading works perfectly!
However, when I try to write a value, I very often get a Timeout error. For example, with the command:
/iot modbus transceive address=1 function=16 data=0001000204000A0014
I’ve tried several devices, and all of them have exactly the same issue.
Is this a MikroTik KNOT bug!?
Port settings:
iot/modbus/print
disabled: no
hardware-port: modbus
tcp-port: 502
timeout: 1000ms
disable-security-rules: yes
Hi,
I’m not familiar with the Knot per se, but am familiar with modbus. Can you confirm first that writie values from another tool on your PC works? Once you confirm from your PC then we can look at the knot.
Alex
Thanks for your help. Yes, everything works fine with a different master. I tried various port settings — same result. The 16 (0x10) function works only about 1 out of 20 times. I tested both with MikroTik as the requester and as the gateway — the result is the same. I also tried using another MikroTik (KNOT) and a different slave device, but still got the same timeout issue.
Hi teretere,
I hit the same problem. reading with function=3, but with function=16 says timeout.
It seems the problem is with routerOS version. I downgraded to 7.14.1, as I have on another mikrotik and it works ok function 16 also.
I issued a bug report at Log into Atlassian - Support [SUP-204078]