Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Modbus formatting


Jamal Oct 23, 2023 07:05 AM

Hello,

I'm using the CR1000X as a Modbus TCP server using the ModbusServer instruction.

When I read the modbus variables, I find that they do not have exactly the same values ​​as on the CR1000X.

# Example 1 (air temperature in °C):

 -on the datalogger: 26.4

 -on modbus client: 26.3999996185303

 # Example 2 (wind speed in m/s):

 -on the datalogger:1.9

 -on the client modbus: 1.89999997615814

 Please help me to correct this problem.

Regards 


JDavis Oct 26, 2023 09:44 PM

The client software is converting the numbers to double precision floating point. Look for an option in the Modbus client to round up the display to one decimal place. Then, it would display the way you want.


Laurent59T Nov 6, 2023 09:00 AM

This post is under review.

Log in or register to post/reply in the forum.