escoplcguy
Member
Hey guys, im working on another measuring program, this time they want me to display the fraction equivalent of the decmal that is currently being shown. what i did was subtracted the whole number out of the measurment reading and used 8 different bits to represent their fractional equivalent. on the HMI (rsview32) i displayed the whole number and left out the decmal then have 7 different fractions that use visibality based upon their corresponding bit. If none of this makes sense i will post a piece of the ladder.
so my problem is, we log 9 different points....in order to show the fraction part of the decmal do i need to set this up 9 different times using 72 different bits??? or is there an easier way to get this task done.....this program is not finished there are 2 lines that will be added and they will use the same PLC...as you will see "line1 or line2" so if it was 72 bits that would end up being 216 and i need to conserve as much space as possible.
alot of times i will write tons of code cause it was how i thought about it in my head then look at it and think...."hmm, if i did this i could have saved so much memory and much less rungs"
Thanks guys!
file posted is a logix500 file......i am using a SLC processor.
so my problem is, we log 9 different points....in order to show the fraction part of the decmal do i need to set this up 9 different times using 72 different bits??? or is there an easier way to get this task done.....this program is not finished there are 2 lines that will be added and they will use the same PLC...as you will see "line1 or line2" so if it was 72 bits that would end up being 216 and i need to conserve as much space as possible.
alot of times i will write tons of code cause it was how i thought about it in my head then look at it and think...."hmm, if i did this i could have saved so much memory and much less rungs"
Thanks guys!
file posted is a logix500 file......i am using a SLC processor.