LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange TCP/IP Modbus received signal

Solved!
Go to solution

Hallo everyone:

i am confronting a strange problem about TCP/IP modbus communication, we builded the connection and use NI modbus libary to read analog signals, it works, but the return signals seems strange, for example(40A0 for value:5, 3F80 for value:2 and 4000 for value 1), i went throngh modbus specification documents, but these values do not follow the rules, is there anyone has idea about it?

thanks in advance.

best regards

 

0 Kudos
Message 1 of 3
(2,918 Views)
With which device do you communicate ? Do you have any documentation about the format it uses to write the values in its memory ?
0 Kudos
Message 2 of 3
(2,909 Views)
Solution
Accepted by zybear
Are you expecting floating point values?? Modbus transfers bytes. It is up to the receiving end software to convert the bytes back into floating point or other signed/unsigned integer values, 32 bit integers,......
0 Kudos
Message 3 of 3
(2,900 Views)