need help removing whole number from floating point.

2004sk4

Member
Join Date
May 2005
Location
Georgia
Posts
172
What is the best way to remove the whole number from a floating point so i can do a math function on just the decimal with a allen bradley 5/05 processor

Here is what i am trying to fix.

I have a time into shift clock which is used to display the avg products per hr. The clock stops during the 2 20min breaks. At the end of a 8 hour shift the clock reads 7.33 hrs which accounts for the 40 mins break. I would like the .33 to be displays as actual mins instead of hundredth of a minute.

.33---- x
---- * ---
100---- 60

60*.33= 19.8 / 100 = .198 minute( which would be 20)

7+.20 =:20

I am sure i am looking over a easy way of doing this but i'm drawing a blank.
 
Last edited:
See picture:
Minute.jpg
 

Similar Topics

I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
9
Views
165
Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
137
Good day all! Can someone help me with the procedure to update Beijers E700 firmware? The Panel I am working on is firmware 2.04v and I would...
Replies
1
Views
56
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
314
Back
Top Bottom