Loss of Floating point resolution in MSG

Earthscape

Member
Join Date
Sep 2011
Location
PNW
Posts
86
I'm messaging a Floating point from a ControlLogix to a Micrologix 1400, and for some reason the full float value from the CL doesn't come make it to the destination file.

The ControlLogix real tag has a value of 1.000035e-08, but when its writing the float on the Micro, it shows up as 1.0e-8 . Its not a huge deal, but I was surprised to see this. I suspect its something with the way Rockwell handles their messaging statements, or ?

Anyone else ever notice this ? Is there a work-around to get that point over to my Micro ?

weird.jpg
 
Last edited:
All A-B controllers use the same Floating Point representation; 32-bit IEEE 754 Single-Precision Floating Point. The data is sent as four bytes so I'm confident it's really getting from the ControlLogix to the MicroLogix.

RSLogix 500 and RSLogix 5000 take different approaches to displaying floating point data.

RSLogix 5000 attempts to show the "exact value", while I think that RSLogix 500 has a number of zeros after which it won't display digits.

The value is exactly the same, and will have the same result if you use it in a math operation or show it in an HMI.
 
Ken, thanks. I figured you'd know the answer. I noticed that even when I pointed my HMI to the CL the data was represented the same way. Thanks again.
 
I'm not sure if this proves my point or disproves it: FactoryTalk View ME 6.0 shows that value from both the SLC and Logix (emulators) as 1.0000000000.

I guess that FTView has yet another way of displaying very small fractions.


If the value 1.00000035 is copied from a FLOAT into two INTs or a DINT, it shows as 0x3F800003 in both the SLC and the Logix, verifying that the two editors are just displaying the same value differently.
 
Those values out to the 5th and 6th decimal place are meaningless.

Here's several accuracy statements for Agilent Pirani style vacuum sensors.

902dt5.jpg


2e3a849.jpg


2r386mh.jpg


The accuracy statements are in the whole percentages of reading (2.5% to 50%, 30%, 15%), which means the 10's and 100's of thousandths values in the 5th and 6th decimal places number is pure noise.

A 2 digit truncated mantissa value is all the sensors are capable of, so the value the Micrologix is using is just fine.
 
Accuracy wasn't my primary concern, it's the fact that the msg'd value didn't appear to contain exactly the same data. I've never seen this, so I asked. I have multiple display points, Wonderware and a PV600 and panel mounted meters, etc. I'd prefer that they all display as to close to the same as possible.
 
Haven't tried that. I'll be out at the client site again Tuesday, and was curious to see this myself. I'll let you know.
 

Similar Topics

Dear team, We are constantly facing M07 incremental loss on one of our kinetix 6500 safe torque. We have changed Servo motor (MPL-B4530K-MJ72AA)...
Replies
1
Views
144
Hi folks ! Got an older Modicom BM85 and I suspect that it's not passing data to ModBus+ network. We had a power loss for a few days and I suspect...
Replies
0
Views
74
Communication between devices will stop working for a certain period of time. I caught the error message using WireShark. I cannot identify the...
Replies
0
Views
121
The client has an application that when communication between the PLC and the Factory Talk VIEW supervisory fails, the object in the supervisory...
Replies
5
Views
328
Dear all, in wincc advanced RT (same as in wincc flexible), when connection to PLC is loss, output field (real) goes to ####. I suppose that tag...
Replies
1
Views
173
Back
Top Bottom