Posted 19 Apr 2020 I have a counter tracking the number of cases packed through a robot program and an option to count less than a case (pack now). In order to update the correct number, I'm using math (ADD) to increment the counter by one. I used that in conjunction with a MOV instruction to increment up the counter by one. However, when I energize the button, my accumulated value goes up by +220 or so. Any way to fix this? Share this post Link to post Share on other sites
Posted 19 Apr 2020 Hi Alan. You need to use a ONS instruction so that your add instruction executes only once instead of each time the rung is scanned. I talk about it more in this video. https://www.youtube.com/watch?v=eQF-HGxXzAc Share this post Link to post Share on other sites
Posted 20 Apr 2020 Tim: Thanks for your help. I figured it out that it requires a OSR. The counter is incrementing with full case completion. With a less-than-full case, the Pack Now pushbutton (in this case, I:0/0) can increment the counter by one and continue to be available through-out the shift. Thanks, Share this post Link to post Share on other sites
Posted 21 Apr 2020 Thanks for letting us know you got it working Alan. Share this post Link to post Share on other sites