LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Modbus holding register value as floating point

Solved!
Go to solution

Hi,

working with a system Crowcon make Gasmonitor having communication protocol as RS232 but having multiple instrument, I used Modcon module (RS232-Modbus RTU converter used to read 3 devices). Reading value of registers and as per requirement using typecast function also. However, not able to interpret data format.

Also tried with modscan software which is also gives some number which is difficult to understand, image attached.

On Hardware crowcon make Gasmonitor+ values in 20ppm while in labview it shows -3.7782E+8.

 

How to co relate this, can anyone help to understand this logic?? or  any other suggestions.

Download All
0 Kudos
Message 1 of 4
(1,179 Views)
Solution
Accepted by hussey

The resulting floating point value has 4 bytes, therefore you need to type cast to a SGL, not a DBL.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 4
(1,167 Views)

Try this:

CombineConvert.png

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 4
(1,121 Views)