Hello all,
I have been working on a progam for some time now. I have been here a few times and have always been lead in the correct direction, for that thank you. It is that time again..... I have some questions about Koyo (AD) and math with large numbers. I am using a D0-06DR-D PLc. What I am trying to do is calculate the % of gallons that can be treated in a pretretment softner before it has to be regenerated. I hope you got that....lol The math is rather easy, just large numbers, I cannot get the answers to come out correct. Most of these numbers are stored in a Vmem location and change depending on system perameters. Here are some of the numbers that will be used to help out. 17,700 X 2 = 35,400. 35,400 / 5 = 7080. 7080 - 273 = 6708. 6708 / 7080 = 0.96. 0.96 X 100 = 96% charge left. I keep getting 0 for an answer.
Thanks,
Micheal
I have been working on a progam for some time now. I have been here a few times and have always been lead in the correct direction, for that thank you. It is that time again..... I have some questions about Koyo (AD) and math with large numbers. I am using a D0-06DR-D PLc. What I am trying to do is calculate the % of gallons that can be treated in a pretretment softner before it has to be regenerated. I hope you got that....lol The math is rather easy, just large numbers, I cannot get the answers to come out correct. Most of these numbers are stored in a Vmem location and change depending on system perameters. Here are some of the numbers that will be used to help out. 17,700 X 2 = 35,400. 35,400 / 5 = 7080. 7080 - 273 = 6708. 6708 / 7080 = 0.96. 0.96 X 100 = 96% charge left. I keep getting 0 for an answer.
Thanks,
Micheal