C.Guillo Posted May 31, 2018 Report Share Posted May 31, 2018 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 : Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted June 3, 2018 MVP 2022 Report Share Posted June 3, 2018 Have you tried the Swap Single Tag Bytes function? It's in the Logic tools. Joe T. Quote Link to comment Share on other sites More sharing options...
C.Guillo Posted June 8, 2018 Author Report Share Posted June 8, 2018 In fact, I have solved my problem by storing the result of the conversion in an UINT32 and write it in the modbus register. Chris. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.