Skip to main content
Skip table of contents

AAC20 - Inaccurate floating-point values

Issue

After changing an integer high-value variable to float, the float value is not equal to the initial integer value.

Solution

The issue can be solved in two ways:

Method 1

The example integer value is 72046070:

  • first, the variable has to be split into 2 16-bit registers, using, for example, a built-in calculator:

09d94451-409c-441b-b2a9-9226c9e549af.png
  • then, enter the decimal values from the calculator to the added components (Modbus points):

image-20240313-102511.png
  • read added Modbus points in the higher-level system, for example, Niagara, as a LongType data type:

29e405a9-144a-4fbd-b311-0c21d23c7421.png
3a73d382-6fa1-4342-a1ed-5f26c01019f0.png

Method 2

Use the IntSplit component (available from 6.4 firmware version):

d4e49b90-3094-4f92-9186-0bd47fee060e.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.