Convert Decimal to Fractions

Just FYI: If you use 32nds, Then .99/.3125=31.68 which the PLC will round up to 32.

Fraction9932.PNG

If you use 64ths then .99/.015625=63.36 which would show as 63/64

If you use the code example I offered then add one additional rung and use bit.5 to divide by 32

fraction99.PNG
 

Similar Topics

Hi all! looking for help converting an 8 bit word SINT tag into decimal. I have an IFM SBN246 flow sensor wired in my controller (L310ER) and it...
Replies
4
Views
2,163
Hey All, i have been fortunate enough to play around with an Applied Motion Products Servo Drive SV200 with 100 watt/ 24vdc congif. I managed...
Replies
2
Views
1,873
Hey all, Here's a tricky decimal to binary conversion project I could use some help with: In my RSLogix 5000 application, I have a "checklist"...
Replies
7
Views
3,051
Hey all, I've reviewed many threads regarding converting one data type to another and I have something I'm working on that I'm stumped on and...
Replies
9
Views
5,904
I'm working with SLC 500 Data File. I have a few numbers like 8.313452e+07 . I forget , how do you convert these numbers . Thanks so much.
Replies
11
Views
2,485
Back
Top Bottom