Operator Task Priority

Operator Task Priority

hhnaing2
Not applicable
13 Views
4 Replies
Message 1 of 5

Operator Task Priority

hhnaing2
Not applicable

[ FlexSim 23.1.1 ]

Hi there,

I would like to fix a few thing in the attached model.

1. Operator 3 should attend to when processor 1 or 2 are down and operator 1 and 2 are not available.

2. I want operator 1 and 2 do some animation as long as they are in busy state.

3. I notice that operator 1 is not attending to processor 1 even thought he is in idle state when the processor 1 is down.


Could someone help me fix these issues? Thanks a lot.


Operator3 task priority_V2.fsm

0 Likes
Accepted solutions (1)
14 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Observer
Observer
Accepted solution

1. and 3.

You do not need the second dispatcher. It is (part of) the reason the first processor never gets fixed. When the first dispatcher can't pass the task to Operator1 or 2 the task will always go to dispatcher2. From there it can only go to Operator3, so even if one of the other two becomes available, they won't receive the task.

Furthermore, because there is no pause between Operator3 finishing a task sequence and a new one being given from the process flow, the second dispatcher never gets to pass the pending tasks on. Use a Breathe to make it possible to interrupt Operator 3 for a different task.

capture1.png

2. Check out the other parameters you can pass into the function when starting an animation. In this case you need to overwrite the default repeat type of the animation, so it plays more than once.

https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Animation.htm...

0 Likes
Message 3 of 5

hhnaing2
Not applicable

Hmm, would you mind to modify for me? Thanks a lot.

0 Likes
Message 4 of 5

moehlmann_fe
Observer
Observer

I am confident that you can manage to remove dispatcher2 and connect operator3 to the first one yourself.

The speed type can probably stay as the default, to repeat the animation you can use REPEAT_TYPE_TIME_AFTER_END which restarts the animation X seconds after it ends, where X is given as the fourth parameter in the function.

...animations["..."].start(SPEED_TYPE_DEFAULT, 0, REPEAT_TYPE_TIME_AFTER_END, 0);
0 Likes
Message 5 of 5

hhnaing2
Not applicable

Ok. Thanks.

0 Likes