3/20/2018 8:28 AM | |
Posts: 167 Rating: (1) |
Hi, 1. And I want to load a float value who is inside word 5 and 6.
AttachmentBender.pdf (193 Downloads) |
Last edited by: AutoGen_7361160 at: 3/20/2018 8:36:57 AMLast edited by: AutoGen_7361160 at: 3/20/2018 8:37:24 AM |
|
3/20/2018 12:25 PM | |
Posts: 167 Rating: (1) |
Thank you both. I now understand how you take out status from a bit inside a word. Dfx I don`t understand what you are saying, sorry... Lets say word 2 and 3 in the array is a float together, how can I program so I get the float value out of the two words? AttachmentBender.pdf (176 Downloads) |
3/20/2018 2:24 PM | |
Joined: 9/19/2016 Last visit: 2/2/2024 Posts: 64 Rating: (5) |
Siemens have swap (Correct name is endianness of system), and it may concern : - Bytes in your word - Word in your real If your value doesn't match sent value, then consider testing each possibilities. Don't forget that we all supposed that your datatype would be IEEE float. But by the past I've faced some modbus float that were Integer part in first word and decimal part in second word. EDIT: added endianness EDIT2: without typo |
Last edited by: -dFx- at: 3/20/2018 2:25:56 PMLast edited by: -dFx- at: 3/20/2018 2:26:22 PMWhy does it is so hard to make it simple ? |
|
This contribution was helpful to1 thankful Users |
Follow us on