TimD
Lifetime Supporting Member
Hi,
looks like I can't datalog floating point numbers using a micrologix cpu and logix500. I CAN use Long and Int. My problem, I need to record very low values (0.00123)
If I simply multiply to an int, I lose all the leading zeroes plus the digits 'behind' the floating point.
I was thinking of converting to strings and appending leading zeroes, but I can't assume how many leading zeroes!
There must be an easy way, right? I'm just missing the point (no pun intended!)
Thanks
looks like I can't datalog floating point numbers using a micrologix cpu and logix500. I CAN use Long and Int. My problem, I need to record very low values (0.00123)
If I simply multiply to an int, I lose all the leading zeroes plus the digits 'behind' the floating point.
I was thinking of converting to strings and appending leading zeroes, but I can't assume how many leading zeroes!
There must be an easy way, right? I'm just missing the point (no pun intended!)
Thanks