Hello all,
I have never used modbus protocol before and I am trying to get data from a 3rd party sensor in our facility using Modbus TCP. I have installed the NI Modbus Library v1.2.1.42 using the VI package manager. It looks like I am able to connect, however I can't seem to get the data.
I received some general instructions from the company who monitors these sensors that contains the IP address and the register of the sensors.
I was able to connect with the provided example in the modbus library but it errored out with any command I gave it. I tried to create my own basic VI to pull the data with no luck (see attached snippet). I incremented/decremented the register number by 1 to see if there was an offset (i read that somewhere) and that did not help.
To be honest, I'm not sure if the "read holdings register" is the appropriate VI to use, it just seemed the most logical as I don't want to write anything. Any advice would be much appreciated.
Thanks