Luciak Posted May 15, 2012 Report Share Posted May 15, 2012 Hi, I have to read Siemens Flowmeter (MAG 6000) via MODBUS and all of this I want to do with V130. The problem is with Siemens' memory map (they are just oing it different than everybody else ) as they have swaped values. I have to read a float value which is of course 4 bytes (2 holding registers). As I read them, I get registers filled in V130 with data like this: AA BB CC DD. But to display those values as on Flowmeters screen I have to show them as CC DD AA BB. And here is my problem. When I read the value as MF, I have to change bytes order inside the MF register (from AA BB CC DD to CC DD AA BB) - couldn't figure out how to do that :/ or when I read the value as 2 x MI, I put them in the right order (CC DD AA BB) but than I have to put the together into one MF register - couldn't figure this out neither :/ (convert function from Math->Float->Convert menu is not giving me the right value). Any tips on this? 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.