I have a problem with a PLC (programmable logic controller) that does not handle denormalized floating points.
Here are some hexadecimal representations of the numbers (denormalized) that I get from the controller on the opposite side of my PLC: 0x00004180, 0x0000C180, 0x00006FA0
Would anyone be so kind to share an example of a little code (C ++ / C # or similar) on how to bitwise normalize a value like the one above? I cannot use any floating point operations on numbers, since they are not recognized in the PLC, therefore only HEX / BIN operations.
Accuracy is not a problem.
source
share