deadlyAxolotl
Member
Is there any simple way to convert a Double precision floating point to a single precision float due to the Micrologix limitation that it only supports IEEE 754.
I am reading density from a sensor via Modbus. For example, I read the hexadecimal value: 3FB7440962841440 with which I should get a float of: 0.0908819070355813, I don't mind losing precision but manual conversion is driving me crazy. If you have an easier way to do it I would appreciate it.
I am reading density from a sensor via Modbus. For example, I read the hexadecimal value: 3FB7440962841440 with which I should get a float of: 0.0908819070355813, I don't mind losing precision but manual conversion is driving me crazy. If you have an easier way to do it I would appreciate it.