Help - Search - Members - Calendar
Full Version: Cannot ML1000 convert Long Integers to Float
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
rajsiyer
Hi guys,

Those of you who have used Micrologix 1100 might have observed that it does not have the CPT function.

So my question is ..What is the way then to read in a 2 -word integer from a slave device (This is easy with the MSG instruction) and convert it to Floating point. You see. there are still a number of small manufacturers of instruments who do not use the 1EEE754 format for floating points.They store the floating point data in 2 integers.

Thanks a million to anybody who helps out.

Regards,

Raj S. Iyer wow.gif
Alaric
If the 32 bits you input are in IEEE 754 format then use CPW to make a bit/bit copy into the float. Note that sometimes you need to reverse the words first. If they are in some other format then we will need more information about what that format is.

Give us an example of the contents of the two words and what you expect to see as a result.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.