I hope this best described my situation.....What i am trying to do in the sample attached is that when a bit is true an initial value is mov into (o:i.5) but if one of the condition we set come through (i.e B3:8/0 on rung 0001 not 7 my mistake)and the force is less than 15000 add 100 and replace (O:1.5) with with the new value , which will make it our new number. For example if b3:8/0 comes through add 100 to initial setting and the new number will be 15100. By the way i am using micrologix 1100. Hope this helps
Well, that is somewhat less vague, however, your first and second examples are completely different.
Based on your second example, if B8/0 comes true and O:1.5 is less than 15000 for 20 ms (Did you really want that short of a delay?) you will add the current value in N7:6 to O:1.5 for one scan because of the one shot.
However, if B7/0 is still true O:1.5 will go back to 15000 on the next scan. If it is not true, then O:1.5 will go to zero, because there is nothing updating it.
Also in Rung 2, when T4:13 is not done, you will be adding 100 to N7:6 every scan until the timer is done, or you overlflow N7:6 (Maximum 32,767).
Again, better information about what you are trying to do, what are you controlling, why would the two B3 Bits come true, and what response you would expect from the output device, would greatly help us in giving your advice.