Alan_NC

Incrementing Counter Error

4 posts in this topic

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?

Case Counter.JPG

Share this post


Link to post
Share on other sites

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

Thanks for letting us know you got it working Alan.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now