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 > Flexsim Student Forum
Downloads

Flexsim Student Forum Forum for discussion for Flexsim Students using the Flexsim Textbook.

  #1  
Old 05-28-2015
Seunguk Park
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Default Setup Priority problem

I'm working on a one man 4 machine problem.The operator is responsible for loading / unloading parts

Problem - Please take a look at the model.
when loading/unloading time of operator is 0 sec, operator is working that I want.
But When I change loading/unloading time to 4 sec, operator isn't working that I want.
Operator should do the next work after he finish the current work.
but when loading/unloading time is 4 sec, operator go to the next work before he doesn't finish current work.
I think that priority or preemtion is cause of this problem.

Can someone please help me fix the model?

You help is much appreciated!
Attached Files
File Type: fsm problem.fsm (33.4 KB, 340 views)
  #2  
Old 05-29-2015
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

Hi,

what is your intention to use the preempting value 3

Quote:
3 - PREEMPT_AND_ABORT_ALL - If a task sequence has this value, then the TaskExecuter will stop the currently active task sequence, destroy it, and destroy all task sequences in its task sequence queue.
Manual: Task Sequences; Concept; Task Sequence Preempting.

You delete with it all task sequences which have been allready created and stored at your dispatcher. The Transfer of Products won't happen, for all the Products (items) your modell created task sequences so far.

How or in which order do you want to transfer the products?

You created a custom code in the separator. Therein you use "a" for a variable name. That might work here, but "a" has got a relation to special functions in the flexsim engine. The use is not advisable.
Here is another hint to you source code for the if-conditions in the separator at the flow end. Port 1 is the connection to the sink. For the Port 2 and 3 you set the return value to the reference towards the task executer. All this is correct.
You can shorten this:
Code:
/**Custom Code*/
treenode item = parnode(1);
treenode current = ownerobject(c);
int port = parval(2);
if(port>1)
return tonum(centerobject(current,1));
else {
    transportoutcomplete(current, item, port);
    transportincomplete(outobject(current, port), item, opipno(current, port));
    moveobject(item, outobject(current, port), port);
}
Jörg

Last edited by Jörg Vogel; 05-29-2015 at 02:59 AM. Reason: Remark using "a" as a name
The Following User Says Thank You to Jörg Vogel For This Useful Post:
Steven Hamoen (05-29-2015)


Thread Thread Starter Forum Replies Last Post
Setup priority problem Varsha Venugopal Marketing and Sales Information 2 07-26-2013 12:10 PM
Preempt, Priority or Port Control Lorenzo Gutierrez Q&A 1 04-10-2013 10:08 AM
Task Priority john mic Q&A 1 11-17-2010 03:56 AM
one question about tasksequence priority? LINWEIXU Q&A 6 08-07-2009 09:15 PM
I have a problem about " priority" Vic Li Q&A 0 03-20-2008 06:31 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.