From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,601 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,592 Views)
Solution
Accepted by topic author 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,583 Views)