I am developing a windows form application that interacts with a Siemens PLC S7 cpu. When I get a parameter from the CPU I get an Object that I convert in double using the Convert.ToDouble method.
Doing this I get extremely huge numbers e. g. I get 1162660659 when the property should be 28. I talket to the guy that developed the PLC software and he told me that the variables are stored in IEEE 754 format.
Is it possible the PLC presents the bytes of the floating point value in a different order--that is, with different endianness--than the PC running my .net software?
Do you have any suggestion on how to convert them?
Thank you in advance, best regards.