Jump to content

Filling batches and reseting batches

Recommended Posts

So I have wrote a program  that we use on our conveyor for sorting tubing.  We get a good/bad signal from a gauge, then use this to tell the conveyor when to blow a part into the conveyor.  So the program works well for what we need, but I have found an issue when we started using it.  I want to fill batch 1, then start to fill batch 2.  When I am filling batch 2 I pull the parts and reset the part count on batch 1 to 0, well when I do this is starts counting again in batch 1.  looking at my program this is exactly how I wrote it.  I went to solve this issue today,  and I cant seem to come up with how to get it to fill batch 1 until its full, switch to batch 2 and not stop filling on batch 2 until it's full.  Then when its full it goes back to see if batch 1 if full still, if not then it will start filling that again.  its coming clearer now that I try to explain it here.  





1 blow 2 batch.vlp

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...