question

Raja Sekaran avatar image
2 Likes"
Raja Sekaran asked Raja Sekaran commented

How to set allocated idle state for operator?

FlexSim 16.0.0
operatorstatesallocated idle
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Dawid Dabal avatar image
1 Like"
Dawid Dabal answered Raja Sekaran commented

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));

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Raja Sekaran avatar image Raja Sekaran commented ·

Thank you for your reply

2 Likes 2 ·
Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered Raja Sekaran commented

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

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Raja Sekaran avatar image Raja Sekaran commented ·

Thank you for your reply

2 Likes 2 ·
Kari Payton avatar image
2 Likes"
Kari Payton answered Raja Sekaran commented

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.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Raja Sekaran avatar image Raja Sekaran commented ·

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?

2 Likes 2 ·