Floating integer decimal set (F8)

bright676

Member
Join Date
Nov 2012
Location
va
Posts
494
RSLogix 500
FTVS-ME

I have a floating integer that I only want to go 2 places to the right of the decimal point(100th) but I can't find the instructions to do so.

Can some one point me in the right direction as to where the I can find this?

Thanks
 
Are you wanting this done in the PLC?

If so, just multiply by 100 and store as an integer (if the whole portion times one hundred is less than 32768) and then divide by 100 again and store as a float.

"floating integer"... I am not going to let that confuse me...maybe you have an integer that represents a floating point value and you need to make the decimal point reappear? If you are using a direct reference to the tag, you'll have to do that in an expression everywhere it is used in Factory Talk (divide by 100). If you are using an HMI tag, look for scaling options to allow it to be done in one place for all references to the tag.
 

Similar Topics

Hi eveyone. I need transfer signal from system 1 to DCS via modbus. System 1 only can send 32 bit floating point. DCS receive 16 bit integer. How...
Replies
20
Views
10,569
Hello everyone ! Is there a way to get a variable, like a Word Memory (MW) and separate the integer part and the float part and save them in...
Replies
5
Views
1,600
Does anyone know of any such PLCs? Usually I'm lazy and don't want to think about precision and overflows.
Replies
20
Views
6,978
Hi i have micrologix 1100 and load cell. i need to change the floating f8:0 to n7:0 so i can use fll (first in) how is that posibuel ?
Replies
15
Views
3,761
I have noticed in one of our PLC5 programs there is a copy instruction that copies a integer into a floating file. The integer value being copied...
Replies
17
Views
9,139
Back
Top Bottom