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 03-25-2013
Gavin Douglas Gavin Douglas is offline
Flexsim User
 
Join Date: Feb 2008
Posts: 65
Downloads: 1
Uploads: 0
Thanks: 27
Thanked 1 Time in 1 Post
Rep Power: 152
Gavin Douglas is on a distinguished road
Default Simple TS question

I have a situation where I need to create a task sequence for an operator. I want the operator to load a flow item, carry it to the downstream process and be captured for the Set-Up and Process parts of the cycle time. The TS is quite easy:

treenode dispatcher = centerobject(current,1); // the dispatcher or task executer
treenode ess= outobject (current,2); //downstream workstation
treenode ts = createemptytasksequence(dispatcher,0,0);
inserttask(ts,TASKTYPE_FRLOAD,item,current);
inserttask(ts,TASKTYPE_TRAVEL,ess,NULL);
inserttask(ts,TASKTYPE_FRUNLOAD,item,ess);
inserttask(ts, TASKTYPE_UTILIZE, item, NULL, STATE_UTILIZE);
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);
dispatchtasksequence(ts);


And for the downstream station I have this: freeoperators(centerobject(current, 1), item); on the process finish trigger.

Sounds great but this isn''t working. Any ideas??
__________________
"A bird is an instrument working according to mathematical law, which is within the capacity of man to reproduce." -Leonardo da Vinci, 1502
  #2  
Old 03-27-2013
Clair A Clair A is offline
Simulation Engineer
 
Join Date: Dec 2011
Location: France
Posts: 26
Downloads: 11
Uploads: 0
Thanks: 68
Thanked 90 Times in 20 Posts
Rep Power: 162
Clair A is a jewel in the roughClair A is a jewel in the roughClair A is a jewel in the roughClair A is a jewel in the rough
Default

Hi Gavin,

I attach the model that you sent me to illustrate the answer.

This is a simple model with a three-stage production line. The custom task sequence for the operator is defined as follows:

1. Travel to Processor 1
2. Load the item
3. Travel to Processor 2
4. Unload the item
5. Stay for the setup and process times
6. Load the item
7. Travel to Processor 3
8. Unload the item
9. Stay for the setup and process times

If you want the operator to load the item after the process time is finished on Processor 2, you need to:
a) check the option Use Transport in the Flow tab of Processor 2
b) select in the picklist the option Free Operators
If you take a look at the code behind this option, the command freeoperators is called, AND the code returns 0, meaning it is assumed that a task sequence has already been created, and this task sequence will continue.

In Processor 3, you can simply call freeoperators in the OnProcessFinish trigger because it is the end of your task sequence: the operator does not transport the item to the next downstream object.
Attached Files
File Type: fsm Custom TS.fsm (33.3 KB, 298 views)

Last edited by Clair A; 11-12-2014 at 10:20 AM. Reason: re-uploaded attachment


Thread Thread Starter Forum Replies Last Post
Probably a simple question Jelmer Js Q&A 2 04-01-2011 06:29 AM
Simple TS Question Gavin Douglas Q&A 2 02-01-2010 11:51 AM
Simple Separator Question Anthony Timmiss Q&A 1 01-25-2010 08:22 AM
Seek for some help in a simple question KelvinHo Q&A 3 01-20-2010 02:52 AM
simple pallet question (i think) bsantens Q&A 2 03-23-2009 11:39 AM


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.