Hi folks, anyone used Modbus RTU and sucessfully polled from any device?
I’m really struggling to get anything from the Meanwell DRS device I’m currently working on, no matter what setting or configuration I cannot get a response.
Try swapping the A/B pins (+/-) between the DRS and KNOT. Also, I couldn’t get the /iot/modbus/transceive commands to work, but using a TCP app to connect to the KNOT works just fine.
values=a,b,c,d
a - will be called function with number as sum (function + 128)
b - start register address
c - don’t understand yet
d - number of registers
And now the real explanation:
a + b: start register address, 16 bit / 2 bytes length, in this example a = 0x00 b = 0x50
c + d: number of registers, 16 bit / 2 bytes length, in this example c = 0x00 d = 0x01
If I read the manual correctly, this is also possible:
Thanks, brambo123! I’m tired of guessing
With my device (maybe it makes a difference), if pass (a) as non-zero value, then the function (passed function number + 128) will be called, this is probably the behavior of the device when accessing non-existent registers. Now it became clear to me why any (c) value causes an error.