23.09.2017, 21:18
(This post was last modified: 23.09.2017, 22:33 by Erwin van der Zwart.)
(23.09.2017, 16:38)uadmin Wrote: While Erwin's code works it easier to use built-in datatype read function:
Code:-- read 32-bit floating point value from input register nr 123, use word swap
res, err = mb:readinputregistervalue(123, "float32", "w")
Aha, i thought i know most stuff by now but still new items to discover (:
Is this all documented somewhere?
Thanks admin!
BR,
Erwin
Hi Buuuudzik,
Modbus specification specify daisy chain ( in -> out ) and not a star topology...
The reflections in your star can cause weird behavior..
BR,
Erwin