How to set allocated idle state for operator?

How to set allocated idle state for operator?

raja_sekaran
Not applicable
49 Views
6 Replies
Message 1 of 7

How to set allocated idle state for operator?

raja_sekaran
Not applicable

[ FlexSim 16.0.0 ]

Accepted solutions (1)
50 Views
6 Replies
Replies (6)
Message 2 of 7

kari_payton
Not applicable

Hey Raja,

I asked a similar question and got an answer here. If you're using process flow, one method is to create a custom task sequence to set the operator state, then insert a custom code to free operators. Let me know if you have trouble with that other post I linked.

Message 3 of 7

raja_sekaran
Not applicable

Thank you for your reply. In my model, I have not used the Process flow. Is there any other solution to set operator state as allocated idle in my model?

Message 4 of 7

dawid_dabal
Not applicable
Accepted solution

Hey Raja,

You can do it with stopobject() and resumeobject(). "Allocated idle" is state 29.

I've attached a small sample model. I entered the following code in the OnEntry trigger of a processor:

stopobject(centerobject(current, 1), 29);

And this is the code I put in the OnExit trigger:

resumeobject(centerobject(current, 1));
Message 5 of 7

raja_sekaran
Not applicable

Thank you for your reply

Message 6 of 7

SCHamoen
Advisor
Advisor

you can simply use the setstate() command but be careful, if the operator is currently doing another task it might overwrite your state.

Message 7 of 7

raja_sekaran
Not applicable

Thank you for your reply