palsson Posted June 7, 2018 Report Share Posted June 7, 2018 HI, I'm trying to communicate with another device via my V350. I'm using Modbus IP and I can successfully connect and read the 16-bit registers. However when I try to read the 32-bit registers I get either some very small numbers, below was my best guess, but as you can see I get a very small number. (should be 32856.876) I would also like to be able to read the 64-bit registers if possible Thanks All the best, Palsson Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted June 7, 2018 MVP 2023 Report Share Posted June 7, 2018 Is it possible the 32 bit registers are longs and not floats? Try reading holding registers in blocks of two and pointing the output of the block at MLS. Joe T. Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted June 7, 2018 MVP 2023 Report Share Posted June 7, 2018 Further to Joe's response, use Modbus poll or similar on your PC to interrogate the device and see how the answers come back. Much quicker than trying changes on the 350, and then points you in the right direction. cheers, Aus Link to comment Share on other sites More sharing options...
palsson Posted June 8, 2018 Author Report Share Posted June 8, 2018 Thank you guys for the responses, I found the structure of the registers here. Joe Tauser, you were correct that it indeed isn't a float :) Do you know how it would be best to handle this data structure in the v350? Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted June 8, 2018 MVP 2023 Report Share Posted June 8, 2018 Decision at 1015 makes no sense to me given the number relationships in the table at the top. I would be expecting the decision at 1014 if the values are 32-bit. Is this perhaps a typo? Or am I missing something? It wouldn't be the first time I've seen wrong info from a maker that completely screws up attempts to read things correctly. I'd be doing Joe's thoughts but as 2 steps, with the 2nd step being the decision block into the MI as you have already done successfully. But Joe does way more of this sort of thing than me, so will likely have a much better way. cheers, Aus Link to comment Share on other sites More sharing options...
Edgar Gomez Uribe Posted July 25, 2018 Report Share Posted July 25, 2018 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now