Modbustcp-read Function Script

This is a great way to go if you want inconsistent data.

Since the op is requesting registers between 100 and 176, The better solution would be to have one single poll of 78 items from address 100 and then grab & convert the values from the returned buffer in one go. That's 1 single poll & guaranteed data consistency.

The flow would simply become...

Inject > read fc3 from address 100 x78 > buffer-parser

That's it. All values would be extracted and parsed and named in the object.

If I get a chance tomorrow I'll provide a demo.

Alternatively, see this previous thread: Need some help with float numbers - #2 by Steve-Mcl