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
|
|||
|
|||
How to using TaskExecuter ...
Hi,Everyone
I have a problem, I want using TaskExecuter transport item,But the TaskExecuter will stop at the place where it unload item, and does not return,until the last station have item will return one TaskExecuter . I hope the TaskExecuter to unload the item,and return to the previous,Kept circulating. Sorry,my english is poor. |
#2
|
|||
|
|||
Instead of just checking "Use Transport" and leaving "Request Transport From" as "Port By Expression Center Port Number 1", try making your own task sequence, such as this one based on the "Task Sequence Example_1":
Code:
treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Task Sequence Example 1*/ /** \nCreates a standard task sequence manually.*/ /** \nIf this "Request Transport From" field returns a 0 rather than a valid pointer to either a dispatcher or taskexecuter, then no call is made, and it is assumed that the user will dispatch their own tasksequence. This example shows the code that is required to create the exact same tasksequence that is normally created automatically and dispatched to the object referenced by this field.*/ treenode ts = createemptytasksequence(centerobject(current,1),0,0); inserttask(ts,TASKTYPE_TRAVEL,current,NULL); inserttask(ts,TASKTYPE_FRLOAD,item,current,port); inserttask(ts,TASKTYPE_BREAK,NULL,NULL); inserttask(ts,TASKTYPE_TRAVEL,outobject(current,port),NULL); inserttask(ts,TASKTYPE_FRUNLOAD,item,outobject(current,port),opipno(current,port)); inserttask(ts,TASKTYPE_TRAVEL,current,NULL);//I added this (return back to the queue after unloading) dispatchtasksequence(ts); 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 |
The Following User Says Thank You to Alex Christensen For This Useful Post: | ||
Wen Hsing Huang (05-29-2011) |
#3
|
|||
|
|||
To get the Task Executer to travel some where after it has dropped off its load you need to use the OnResourceAvaliable Trigger for the Task Executer. Use the "Travel to a Home Location" pick-list option. If you want the Task Executer to travel back to the Starting Node, which is NN5 in the case of your model, you need to create a Global Variable of the Tree Node type that points to that Node in your tree before hand. Then you need to assign the destination under the "Travel to a Home Location" option pick-list to be that Global Variable.
|
The Following User Says Thank You to Brittany Quinn For This Useful Post: | ||
Wen Hsing Huang (05-29-2011) |
#4
|
|||
|
|||
I found that to do this well some further consideration is needed, such is whether you have jobs queued locally or on a dispatcher.
There's an example here. |
The Following User Says Thank You to Jason Lightfoot For This Useful Post: | ||
Wen Hsing Huang (05-29-2011) |
Thread | Thread Starter | Forum | Replies | Last Post |
Dispatcher: Which TaskExecuter did the task? | Stefan Trabut | Q&A | 3 | 04-05-2011 05:49 AM |
a question about taskexecuter | oliver xie | Q&A | 1 | 01-18-2011 03:19 AM |
How to transfer a flowitem from a taskexecuter-team to another taskexecuter-team? | Frans Zeng | Q&A | 12 | 05-20-2010 11:23 PM |
TaskExecuter should unload more then one item...How? | TilmanDHL | Tips and Tricks | 1 | 01-28-2009 01:54 AM |
Need help urgently - model with multiple lifts (taskexecuter) | chrisquek | Q&A | 7 | 07-11-2008 07:50 PM |