DaveB Posted July 29, 2019 Report Share Posted July 29, 2019 Dear colleagues. I hope you are doing fine. I have 5 power meters in a RS485 bus communicating through Modbus RTU with one Unistream which is acting as master. 3 of them are from the same brand and model. They are all ok, connecting and communicating. The registers are 32 bit length (treated as INT32 in the Unilogic). So far everything is good. For the other 2, from different manufacturer, It seems I am receiving the data in a strange way because the data is not coherent. It seems I am receiving the words or bytes inverted. if I use a external Modbus client in my laptot, I can see the value correctly displayed as a FLOAT32 ABCD and it matches with the actual value (12.3, 24.1, 48.3 volts... etc). In contrast, with the PLC I see gigantic values. I tried to use the swap byte funcions but couldn't get it. I don't know whether there is a way to compose a REAL from two INT... Does anybody ever had similar problems/solutions? I am kind of desperate. Thank you and best regards. Quote Link to comment Share on other sites More sharing options...
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.