Jump to content

Recommended Posts

Posted

Hello,

I am developping an application that uses Bronkhorst mass flow controllers with modbus communication. Some years later, I used a vision V570 with success. This time, I am using an Unistream and reading floats with modbus doesn't work properly : the 2 registers are inverted so the value is wrong. I tried to revert the register by using buffers and it works perfectly for read values but values to be written are rounded so I can't send setpoint to my controllers. Does anyone have an explanation ?

Below is a snapshot of the conversion code :

SwapFloat.thumb.jpg.d276438d661536f41c9b85ec3e759ff3.jpg

  • 5 years later...
Posted
Hello, 
I am new to Modbus programming and would like to ask for advice on the above topic. 
In my application I should write a decimal number into a register of a Danfoss control valve. 
What is the best way to convert a REAL value to a UINT?

Below is my first draft, but I get a status error. Can someone explain to me what I did wrong?

 

Screenshot 2023-11-06 100639.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.