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
|
|||
|
|||
remove from rack
HI everybody
I wonder if we want to remove some items randomly(not by dwell time) from a rack what needs to be done? Well, the dwelltime is set to a big number and a random number between 1 and content(rack) will determine the container. now how to send it to exit port? |
#2
|
|||
|
|||
To control the release you can hold the item by returning -1 in the sendtoport trigger, and then release it using the command "releaseitem(<theitem>,<theport>)".
You can randomly choose the item using something like: rank(<rackobj>,uniform(1,content(<rackobj>))) By specifying the port you will bypass the sendtotrigger. Without it the send to trigger would fire again and in the simple case described above would hold the item again. |
The Following 2 Users Say Thank You to Jason Lightfoot For This Useful Post: | ||
Shahin Gelareh (05-29-2012) |
#3
|
|||
|
|||
Hi,
Can you please specify in which trigger the "releasetiem" comment has to be written. I have tried it in send to port trigger below "return -1". If a sample model is attached it will be very useful. Thanks in advance. |
#4
|
|||
|
|||
Nothing gets executed after "return" since it's marks the exit point(s) of the code.
It's not a question of where so much as 'when' - since if you have a reference to the item, you can call it from anywhere. If this gets you into 'hot water' then try using attributes, a pull rule and opening ports instead (to retrigger the pull). |
Thread | Thread Starter | Forum | Replies | Last Post |
Remove the arrows and green dots from the link joining 2 network nodes | Nischith Kashyap | Q&A | 3 | 09-19-2011 09:27 AM |
"Invalid node remove command" at UNLOAD | Lydia Franck | Gripes and Goodies | 10 | 08-30-2011 02:57 AM |
Remove a tasksequence from a tasksequencequeue? | AlanZhang | Q&A | 11 | 10-19-2007 03:50 PM |