Two 16bit integers that represent one 32bit float

Success! :geek:

It doesn't help that the MicroLogix documentation for the CPW doesn't actually say what value should be in the length field... have to infer it from other parts of the manual or guess and test.
 
I'm confused.

Are the original two 16 bit 'integers' in the appropriate floating point (FP) bit format (sign, mantissa, exponent) to form a 32 bit IEEE floating point value, once moved to a word in FP format?

Or are the original two 16 bit 'integers' a 'long integer' with an assumed decimal point?

I'm assuming it is the first, because no decimal point was considered in the conversion.
 
I'm confused.

Are the original two 16 bit 'integers' in the appropriate floating point (FP) bit format (sign, mantissa, exponent) to form a 32 bit IEEE floating point value, once moved to a word in FP format?

Or are the original two 16 bit 'integers' a 'long integer' with an assumed decimal point?

I'm assuming it is the first, because no decimal point was considered in the conversion.

The original value was already in the proper bit pattern for a floating point number. This is why there was bit conversion done - just changing the way that the PLC is interpreting those same bits.

The original value was in two 16 bit words, but not of an integer datatype.
 
The RSLogix500 help file is more explicit concerning CPW's length in that it is number of words.

Too bad this varies between platforms. I tend to forget also.
 
Just to put the official rubber stamp on the CPW for the MicroLogix...

43310 - Floating point in two integers to Float
Access Level: TechConnect

Regards,
George
 

Similar Topics

The analog array has 16 individual bits and each bit is an alarm. SCADA is having issues getting the BIT bool value. However they can get the...
Replies
9
Views
1,036
Hello, I'm using Compact Logix L33 in RSLogix 5000. I'm trying to message over modbus register that is 16bit UINT. In Rslogix 5000 do I message...
Replies
3
Views
1,530
Hey all, I have an AcuDC energy meter which provides data on voltage, current, and power over RS-485/Modbus RTU. It provides float values in two...
Replies
8
Views
2,045
I am having problems expressing an ANALOG OUTPUT 16bit INT word (0-10V Proportional Valve Voltage) as a REAL decimal number. From my...
Replies
6
Views
9,188
:banghead: Got my E-Designer 7 yesterday, and using E-410 landscape to read some data (currently) from FX1S-15MR-ES/UL. I am able to read IOs...
Replies
1
Views
2,504
Back
Top Bottom