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
|
|||
|
|||
Tasksequence - Operator adds several different items to a combiner
Hi all,
I am a fairly new Flexsim user and I hope you all can help me with some of my problems to get a kick start! In this example I need operators to combine several different items in to one product and then follow it through stages of processing. Basically I want one operator to do the following: - Pick up item1 from one queue and place it on the combiner - Go to another queue and pick up another item and place it on the combiner etc. He will have to pick up different items and he is only able to carry one at a time. - After he will combine the items in the combiner - Load the combined item and bring it to the processer - Work at the processer - Pick up the processed item and bring it to the queue for finished goods. I have tried some coding as seen in my simple example with two items to combine and 2 workstations. First question, how do I name the different items in such a long sequence so the operator know what to load? I tried here with a global treenode variable but have not got it to work... Best Regards Elenor |
#2
|
||||
|
||||
Hi,
sadly it isn´t possible for me to have a look into your model. I would try to solve your problems that way: After building up the standard process and setting the maximum capacity of the operator to 1, I would do a run to see what the operator does with standard options. If the operator doesn´t work exactly in the order you want him to do, try to open and close the outputport or inputport of the different queues or processors/combiner. This way the operator only would do the thinks it can, because it only gets this tasksequences. Greetings
__________________
Hemmi |
#3
|
||||
|
||||
Oh I forgot to say, if you really want to solve this with coding you should look in the download section for modells of Tom David. I remember he shared some modells with task_sequences and in this there even are solutions for unique names of Items ;-)
__________________
Hemmi |
#4
|
|||
|
|||
Hi Elenor,
Have you been able to solve your problem? If not, I have done some changes in your model and get it to work like you want. But I need to know the version of your Flexsim, I did the model in 4.52. Lars-Olof |
#5
|
|||
|
|||
Hi Lars-Olof,
I have been looking at some models recommended by Sebastian (thank you Sebastian!) but have not yet been able to found a solution that could tackle my problem in an easy way. Therefore I would very much appreciate if you could send me your solution! I am sitting with a bit older version, version 4.01. Thank you! Best Regards Elenor Arkesten |
#6
|
|||
|
|||
Hi,
Can you upgrade your version to 4.52 or 5? I am attacheing the model I have buld but it is for version 4.52 (have not 4.01 installed). If you can not upgrade I will try to explain what I have done. First change your queue you use now to have Maximum content of 1 and then add 1 new queue between your source and queue Item 1, do the same between Source and queue Item 2. In Item1 close the input port on reset, and open it OnMessage. Also add closeinput to OnEntry on Item1. On Item2 in OnEntry I have added this line: Code:
senddelayedmessage(centerobject(current,1),0.0001,current); Code:
treenode ts = createemptytasksequence(centerobject(current,1),0,0); treenode combiner = outobject(current,port); treenode processor = outobject(outobject(current,port),1); treenode FromWorkstations = outobject(outobject(outobject(current,port),1),1); treenode Glaslager2 = inobject(outobject(current,port),2); treenode item2=first(Glaslager2); inserttask(ts,TASKTYPE_TRAVEL,current,NULL); inserttask(ts,TASKTYPE_FRLOAD,item,current,port); inserttask(ts,TASKTYPE_TRAVEL,combiner,NULL); inserttask(ts,TASKTYPE_FRUNLOAD,item,combiner,opipno(current,port)); //Gets Item1 and place it on the combiner inserttask(ts,TASKTYPE_TRAVEL,Glaslager2,NULL); inserttask(ts,TASKTYPE_FRLOAD,item2,Glaslager2,NULL); inserttask(ts,TASKTYPE_TRAVEL,combiner,NULL); inserttask(ts,TASKTYPE_FRUNLOAD,item2,combiner,opipno(current,port)); //Gets Item2 and place it on the combiner inserttask(ts,TASKTYPE_UTILIZE,item,combiner,STATE_UTILIZE); //Working by combiner inserttask(ts,TASKTYPE_FRLOAD,item,combiner,NULL); inserttask(ts,TASKTYPE_TRAVEL,processor,NULL); inserttask(ts,TASKTYPE_FRUNLOAD,item,processor,NULL); //Taking the product from combiner to processor inserttask(ts,TASKTYPE_UTILIZE,item,processor,STATE_UTILIZE); //Working by processor inserttask(ts,TASKTYPE_FRLOAD,item,processor,0); inserttask(ts,TASKTYPE_TRAVEL,FromWorkstations,NULL); inserttask(ts,TASKTYPE_FRUNLOAD,item,FromWorkstations, NULL); //Taking finished product to stock dispatchtasksequence(ts); Hope this put you in right direction, if you need more let me know. Lars-Olof |
The Following User Says Thank You to Lars-Olof Leven For This Useful Post: | ||
Tom David (05-10-2010) |
#7
|
|||
|
|||
Thank you Lars-Erik,
Looks like this will solve my problem! Unfortunatley I am working at a company where the 4.01 is standard so an update will be hard to do... Still I can open your model and follow your steps to build my own solution where I will also need to add some more items to the combiner. Tack igen! Best Regards Elenor Arkesten |
Tags |
tasksequence |
Thread | Thread Starter | Forum | Replies | Last Post |
Can a combiner process multi items simultaneously? | KelvinHo | Q&A | 6 | 11-08-2010 11:29 AM |
one question about tasksequence? | LINWEIXU | Q&A | 12 | 08-12-2009 08:01 PM |
one question about tasksequence priority? | LINWEIXU | Q&A | 6 | 08-07-2009 09:15 PM |
Operator not unloading items before picking up priority items | Howe Chiat Cheng | Q&A | 2 | 05-28-2008 02:05 AM |
Remove a tasksequence from a tasksequencequeue? | AlanZhang | Q&A | 11 | 10-19-2007 03:50 PM |