NetNathan
Lifetime Supporting Member
Jees...
Continuing from this thread...
http://www.plctalk.net/qanda/showthread.php?t=85341
I now have the correct pressure in Torr and mBar.
However, in the logic I am working in, the original developer converted his Torr reading to mantissa and exponent, and used the mantissa and exponent tags in the rest of the logic.....go figure.
What CPT instructions do I need to convert a number to mantissa and exponent?
I assume I need 1 CPT to compute mantissa and another CPT for the exponent.
Example:
Pressure reading is 0.0005 Torr
Scientific conversion = 5x10-4 Torr
5 is the mantissa
-4 is the exponent
Continuing from this thread...
http://www.plctalk.net/qanda/showthread.php?t=85341
I now have the correct pressure in Torr and mBar.
However, in the logic I am working in, the original developer converted his Torr reading to mantissa and exponent, and used the mantissa and exponent tags in the rest of the logic.....go figure.
What CPT instructions do I need to convert a number to mantissa and exponent?
I assume I need 1 CPT to compute mantissa and another CPT for the exponent.
Example:
Pressure reading is 0.0005 Torr
Scientific conversion = 5x10-4 Torr
5 is the mantissa
-4 is the exponent