ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 05-26-2011
Wen Hsing Huang Wen Hsing Huang is offline
Flexsim User
 
Join Date: Dec 2010
Posts: 9
Downloads: 8
Uploads: 0
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
Wen Hsing Huang is on a distinguished road
Default 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.
Attached Files
File Type: fsm test.fsm (434.0 KB, 134 views)
  #2  
Old 05-26-2011
Alex Christensen Alex Christensen is offline
Flexsim Technical Support
 
Join Date: Nov 2007
Location: Provo, UT
Posts: 96
Downloads: 41
Uploads: 8
Thanks: 29
Thanked 141 Times in 56 Posts
Rep Power: 298
Alex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to behold
Default

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  
Old 05-26-2011
Brittany Quinn Brittany Quinn is offline
Flexsim User
 
Join Date: May 2011
Posts: 3
Downloads: 10
Uploads: 0
Thanks: 1
Thanked 5 Times in 3 Posts
Rep Power: 0
Brittany Quinn is on a distinguished road
Default

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  
Old 05-26-2011
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

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)
  #5  
Old 05-29-2011
Wen Hsing Huang Wen Hsing Huang is offline
Flexsim User
 
Join Date: Dec 2010
Posts: 9
Downloads: 8
Uploads: 0
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
Wen Hsing Huang is on a distinguished road
Default

thanks every one!!!


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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.