I am trying to read some Modbus registers with Node-RED, but I have a problem with the registers.
The voltage registers are from adress 0 to 46 and the current registers from 128 to 236.
When I set the 'Quantity' on 236, I receive an error because there are a lot of registers not used (from 47 to 127). Two 'modbustcp' nodes in parallel didn't work because I they want to connect to the same server.
Is there anyone who knows how to solve this problem?
PS, buffer-parser can make simple work of converting the int16 values into sensible results (bools/floats/32 bit numbers, all in a nicely named object)
What is the error. Have you reported this anywhere?
It was a non working demo (for visual purposes) whereby i try to show that you should copy the output of each modbus read into a single objects properties so that later in the flow, all parts of the modbus data would be available in one place for the buffer parser node can convert all the int16 data into nicely formatted int32/float/bool or whatever.
You probably didnt install the "build tools" when you installed node-js - these are required for some nodes (like the serial port nodes which are part of modbus nodes)
I would recommend you uninstall node-js V17, re-install V16 LTS and be certain to install the "build tools"