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 |
|
Downloads |
Q&A Using Flexsim and building models |
#1
|
|||
|
|||
different capacity for different flow item for a same TE
Hi,
since a TE might need to transfer difference flow item, is there a way for a TE to have different capacity for different flow item? Thanks. Kelvin |
#2
|
|||
|
|||
kelvin,
Try OnLoad write the capacity to the maxcontent based on the flowitem type. This should work David
__________________
Advent2 Labs David |
The Following 3 Users Say Thank You to David Chan For This Useful Post: | ||
qin tian (07-07-2008) |
#6
|
|||
|
|||
Kevin,
You were close. You forgot the breaks on your switch statement. Next time just select the "Set color by value" pick option and replace the colorred(item), colorgreen(item), etc. with setvarnum(current,"maxcontent",1) leaving breaks. I also set the transporter's Break To Requirement to "Same Itemtype". So far we are assuming that your transporter only carries one itemtype at a time. Let us know if this is not the case. Kris |
The Following User Says Thank You to Kris Geisberger For This Useful Post: | ||
KelvinHo (07-08-2008) |
#8
|
|||
|
|||
Hi, Kris,
I just tried to learn your trick by copying and building the model. However, it doesn't work for me. Most of time, it follows the rule, but from time to time, it loads different types together ignoring the capacity. The first exception happens around 700 sec in my model. I don't know what I missed in my model. Can you help me to find what I did wrong? Thanks. |
#9
|
|||
|
|||
Hi, Kris,
I think I found the problem. The reason was because I used label to check the flow item type instead of using "itemtype". Acordingly, the break to requirement condition has to compare the label. Here is the modification I made. if( //getitemtype(involved) == getitemtype(first(current)) // Check to see if the itemtypes match getlabelnum(involved, "SKUType") == getlabelnum(first(current), "SKUType") && gettotalnroftasks(curts) == getnroftasks(curts) // Make sure it is a complete sequence ) Thank you for the tip!! Sung |
#10
|
|||
|
|||
Dynamic capacity based on item label
Hi Sung,
I noticed in the OnLoad you replaced getitemtype(item) with getlabelnum(item,"SKUType"), so I'm assuming that you want the capacity to be changed based on this label. You did this correctly. In the previous example we set the transporter's Break To Requirement to "Same Itemtype" such that it would only carry like itemtypes. In your case you will want to again replace the getitemtype with getlabelnum such that it only loads like "SKUTypes". See attached. Kris |
The Following 2 Users Say Thank You to Kris Geisberger For This Useful Post: | ||
Sung Kim (08-28-2008) |
Thread | Thread Starter | Forum | Replies | Last Post |
Flow item in object in time 0 | KelvinHo | Q&A | 17 | 04-17-2012 09:12 AM |
Task Sequence Delay for Multiple Capacity | Sung Kim | Q&A | 6 | 06-16-2008 03:11 PM |
Changing the height that a Transporter drops off an item to a Processor | KelvinHo | Q&A | 1 | 04-10-2008 09:29 AM |
change 3D shape of a packed flow item | KelvinHo | Q&A | 2 | 02-27-2008 09:41 PM |
Flow items with states | AlanZhang | Q&A | 16 | 11-30-2007 10:32 AM |