ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 04-15-2010
Alan Pope Alan Pope is offline
Flexsim User
 
Join Date: Apr 2010
Location: Warwick - UK
Posts: 4
Downloads: 0
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Alan Pope is on a distinguished road
Default 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  
Old 04-15-2010
Anthony Timmiss Anthony Timmiss is offline
Flexsim User
 
Join Date: Aug 2007
Location: Sunderland - UK
Posts: 78
Downloads: 41
Uploads: 0
Thanks: 65
Thanked 45 Times in 28 Posts
Rep Power: 187
Anthony Timmiss will become famous soon enoughAnthony Timmiss will become famous soon enough
Default

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  
Old 04-15-2010
Alan Pope Alan Pope is offline
Flexsim User
 
Join Date: Apr 2010
Location: Warwick - UK
Posts: 4
Downloads: 0
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Alan Pope is on a distinguished road
Default

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  
Old 04-15-2010
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

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)
  #5  
Old 04-15-2010
Alan Pope Alan Pope is offline
Flexsim User
 
Join Date: Apr 2010
Location: Warwick - UK
Posts: 4
Downloads: 0
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Alan Pope is on a distinguished road
Default

Thanks for your help, guys - seems to be working well now


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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.