ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Pull rule
I have the following setup:
Queue (unlimited size) > combiner > seperator > Queue (200 max) I'd like to add coding to the combiner so it does not pull parts from the queue if the second queue is full (i.e., contains 200 parts). Any help would be greatly appreciated! |
#2
|
|||
|
|||
Alan
I usually find opening and closing ports is the easiest way to control this type of situation. If you can link Queue 2 to the combiner then you can use the triggers on queue 2 to open and close the ports of the combiner depending on the content of queue 2. Anth |
The Following User Says Thank You to Anthony Timmiss For This Useful Post: | ||
Alan Pope (04-15-2010) |
#3
|
|||
|
|||
Thanks for your quick reply!
I guess it'll be a case of using the "OnEntry" trigger on the second queue that looks at the current number of parts in it. Will this be an nObjects type code? |
#4
|
||||
|
||||
I'm not sure what you mean by nObjects, but on the onentrytrigger the code would look something like:
if( content( current ) >199 ) closeinput( centerobject( current, 1) ); and on the exit trigger if( content( current ) <190 ) openinput( centerobject( current, 1) ); (I choose 190 to prevent jittering) |
The Following User Says Thank You to Steven Hamoen For This Useful Post: | ||
Alan Pope (04-15-2010) |
Thread | Thread Starter | Forum | Replies | Last Post |
How to pull items from a queue? | Daglys Brizo | Q&A | 3 | 09-04-2009 08:17 AM |
Using Reevaluate Send To vs Pull | Brandon Peterson | Tips and Tricks | 4 | 11-19-2008 08:56 AM |
Pull items out of a rack | BenjaminBuecklein | Q&A | 1 | 09-22-2008 03:59 AM |
MergeSort Spacing Rule For Recirculation | Sung Kim | Q&A | 2 | 01-21-2008 09:26 AM |
Pull Logic Dillema | William Proctor | Q&A | 2 | 09-14-2007 12:46 PM |