question

Jimmy G2 avatar image
0 Likes"
Jimmy G2 asked Jimmy G2 commented

Operator State Process Flow

I'm having some issues setting custom states in process flow for my operator. I tried following some previous threads to no avail. In my Drain Belt 1 Filling box, I'm attempting to use a custom task to have my operator shown as "busy" during a filling operation taking place by a combiner. I got that far, but further down the line the same operator won't complete the next load task. I set a custom code to idle the operator, but that didn't seem to free him up either.

On the Drain Belt 2 box I attempted using 2 custom codes to set the operator state while filling, and that didn't work at all.

I'm just curious what the best solution is to manually set my operators state while "waiting for an event"?

Basket Filling Op _1.fsm2021-10-01-14-57-42.png

Thanks

FlexSim 20.2.3
operator state
5 |100000

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

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jimmy G2 commented

Hi @Jimmy G2,

the operator does not load the item after the process finishes because he is still stuck in the "Utilize" task. The state and the task(-sequence) of a task executer are independent of each other. Starting a task will in most cases set the corresponding state, but changing the state won't stop the task. To have the operator stop the custom utilize task, use the "freeoperator()" command.

https://docs.flexsim.com/en/21.2/Reference/TaskSequences/TaskSequenceTypes/#utilize

Your other solution of setting the state in a custom code activity also works. You have to put a delay (can be 0-seconds, devs call these "Breathe") inbetween finishing the last task and setting the state though. This makes sure that the operator first returns to the idle state and then gets set to a different state and not the other way around.

basket-filling-op-1_fm.fsm


· 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.

Jimmy G2 avatar image Jimmy G2 commented ·
Thank you for updating my model with the code!
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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