Ieee Fp

hard_Wear

Guest
H
Can someone explain bit by bit the difference between a 16 bit register and a 32 bit floating point register and how the FP is
read in an HMI. Beside the fact that the FP uses two registers and can hold a larger value.
 
maybe this will get you started ...

I’m assuming (gosh I hate that word) that you’re using an Allen-Bradley system ...

this is the best explanation I’ve ever seen ...

SLC Instruction Set Reference Manual

take a look at page F-6 [Adobe Reader page 608 of 648] ...

the individual bits are not normally viewable ... but ... if you want to examine the bits in the floating point location ... try using the COP instruction to copy the floating point value into two consecutive integer words ... it’s been quite awhile since I tried this but if I remember correctly, it will reveal the bit pattern for you ...

Peter Nachtwey is one of the best resources around for topics like this ... maybe he’ll drop by and answer any specific questions that you might have ... if you want “how to” help on your HMI, etc. then you’ll get better responses if you’ll post again and tell us what system you’re using ...
 
This one is a modicon. but I do have some AB's TI's Mitchibitchi,
Triplex, Triconex, Etc. The problem I have is in this particular
instance is an analog input that is converted to a FP and then is compared with a setpoint in another FP register. I'm not sure what the value of the setpoint should be. I like to research things myself but am having a little trouble with finding a satisfactory answer.
 
The layout example Ron pointed to is pretty good. It's a bit thin of how to actually determine a value (as I remember the mantissa has an assumed base) but it does give you a feel for the bit pattern.
One thing to be a little careluf of is that what some HMIs refer to as a 'floating point' number is actually a formatted integer. For example, the HMI might let you enter a floating point representation as a double integer but will send that back as the double integer with the value plus a byte or single integer with a decimal point location. This is not the format of a float in the SLC. If you send a float out from an SLC to an HMI that uses formatted double integers the number will look REALLY screwy.

Keith
 
I've been investigating a little in the nature of floating point regs in Allen Bradley SLC's as I was trying to convert a long integer (32-bit integer) into a floating point and back. I needed accurate numbers up to +/- 2 billion for a positioning system.

The SLC does not support long integers, so I was trying to use floating point. I works well until the floating point register have to convet the value into 1.xxxxxx powered by a number of tens (e.g. 1.23456+E008). When the floting point reaches this number, the rounding is a problem (to my situation, as could not accept to miss out up to approx. 25 numbers when the value closed in on +/- 2 billion.

I even went to speak with Allen Bradley to find a way to extract a floating point value into a double integer (as the SLC do not support long integers), but the answer was, that they would ask me to pay development time for them to create the nescessary code/instruction set. This was back in january 2004.
 
ejessen,
You evidently do not have nights and weekends comprehensive support
with AB. I to have had problems with Rockwell support. Even when it was a problem with "their" code.
 

Similar Topics

Looking for some explanation/history between North American electrical symbols standards (how they relate, what are the latest, what is the...
Replies
3
Views
1,663
Hello! Long time lurker and gatherer of information - love this forum. I am trying to find some sort of tag naming standard if it exists...
Replies
18
Views
8,350
Dear friends across the pond, Does anyone know which one is the IEEE standard regarding the harmonics performance of the VSDs? Regards Nik
Replies
4
Views
2,109
OK, so I have a ControlLogix L61 Processor and I am communicating with a Veeder-Root 350+. I have established the comm and am getting valid data...
Replies
15
Views
5,521
Back
Top Bottom