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
|
|||
|
|||
Coordinated task movement error
I am using operator team and forklift team together in transport flow. Model is very simple, it has one source, one queue, one processor and one sink. From queue to processor, transport flow is happening through operator team and forklift together.
Model runs perfectly well till the time processor max content level is not reached, for ex if max content is 1, only one item flows from queue to processor and flow stopped after wards,if it is 10 , only 10 items flows then it stopped. I am using customized flow movement in the queue flow box, script in it as following. I have devoted lot of time in understanding why it is happening, kindly help me. treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Construction flow movement */ treenode operatorteam = centerobject(current,1); treenode forkteam = centerobject(current,2); treenode loadstation = current; treenode unloadstation = outobject(current,port); treenode myts = createcoordinatedtasksequence(operatorteam); int opkey = insertallocatetask(myts,operatorteam,0,0); int forkliftkey = insertallocatetask(myts,forkteam,0,0); int traveltask = insertproxytask(myts,opkey,TASKTYPE_TRAVEL,forklif tkey,NULL,0,0,0,0); int Sync; insertsynctask(myts,traveltask); insertproxytask(myts,forkliftkey,TASKTYPE_MOVEOBJE CT,opkey,forkliftkey,0,0,0,0); insertproxytask(myts,opkey,TASKTYPE_SENDMESSAGE,fo rkliftkey,opkey,0,0,0); insertproxytask(myts,forkliftkey,TASKTYPE_TRAVEL,l oadstation,NULL,0,0,0,0); insertproxytask(myts,forkliftkey,TASKTYPE_LOAD,ite m,loadstation,0,0,0,0); insertproxytask(myts,forkliftkey,TASKTYPE_TRAVEL,u nloadstation,NULL,0,0,0,0); insertproxytask(myts,forkliftkey,TASKTYPE_UNLOAD,i tem,unloadstation,0,0,0,0); Sync = insertproxytask(myts,forkliftkey,TASKTYPE_TRAVEL,f orkteam,NULL,0,0,0,0); insertsynctask(myts,Sync); insertproxytask(myts,opkey,TASKTYPE_SENDMESSAGE,fo rkliftkey,opkey,1,0,0); insertproxytask(myts,forkliftkey,TASKTYPE_MOVEOBJE CT,opkey,model(),0,0,0,0); insertproxytask(myts,opkey,TASKTYPE_SENDMESSAGE,fo rkliftkey,opkey,2,0,0); insertdeallocatetask(myts,forkliftkey); insertdeallocatetask(myts,opkey); dispatchcoordinatedtasksequence(myts); return 0; //return a 0 so this object will know that you made your own tasksequence and it doesn't need to make the standard tasksequence automatically Regards Shashank Trivedi |
#2
|
|||
|
|||
Hello,
I have found the solution to your problem. In your queue flow code you wrote, all you need to do is change your TASKTYPE_LOAD to TASKTYPE_FRLOAD and your TASKTYPE_UNLOAD to TASKTYPE_FRUNLOAD. This will solve your problem because the processor is a fixed resource. When you use TASKTYPE_LOAD and TASKTYPE_UNLOAD it is incrementing your content of the second processor each time an item is unloaded. Therefore, when you reach your Maximum Content for the processor it stops your model. With the use of TASKTYPE_FRLOAD and TASKTYPE_FRUNLOAD, we stop this from happening. If you have more questions about these Task Types, feel free to consult the User's Manual. If that doesn't help, please feel free to ask more questions. ~ Brittany Quinn |
The Following 2 Users Say Thank You to Brittany Quinn For This Useful Post: | ||
Sebastian Hemmann (05-09-2011) |
Tags |
coordinated, flow |
Thread | Thread Starter | Forum | Replies | Last Post |
About Coordinated Task Sequences | Normand Côté | Gripes and Goodies | 1 | 06-21-2008 06:08 AM |
Can coordinated task sequence and "break to requirement" be used together? | qin tian | Q&A | 1 | 05-26-2008 10:44 AM |
coordinated task sequence, need help. | qin tian | Q&A | 4 | 05-12-2008 05:52 PM |
Changing the direction of flowitem movement on a processor | shivrash | Q&A | 3 | 04-09-2008 10:31 PM |
Queuing coordinated task sequences? | Nico Zahn | Q&A | 19 | 04-02-2008 08:30 AM |