question

Rocio A avatar image
0 Likes"
Rocio A asked Rocio A commented

Array of operators to make a Task Sequence

Hello,

I'm doing a FlexSim demo and I wanted to go a little further.

Using a parameter I modified the number of Pickers that I have in the model, so that I can increase or decrease it.

1729519030355.png

In the case that I put 6 pickers I want the first StagningArea to be used by 2 operators and the rest by 1. I have achieved this in the custom code that I indicate in the image.

The problem I have is because those operators appear as Array in the token and when I use a TS to perform the displacement, loading and unloading tasks, it only uses 1 of the operators, leaving the other idle.

Could you help me so that each operator of that Array takes a different box that is in the same order order and takes it to the pallet in StagningArea1?

Thank you very much in advance.

20241021_Demo_WAREHOUSE_8.fsm

FlexSim 24.1.1
process flowoperatortask sequencearrayrun subflow
5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

I would run the subflow per picker rather than per item. Each subflow token first checks if there are any items left in the array. If so, they remove the first item from the array and move it to the staging area then loop back to the start.

20241021-demo-warehouse-8_1.fsm

The Release activity for the pickers must be set to "Release All", otherwise a token that acquired two pickers would only release one.

And after that activity a "Breathe" activity is needed. Otherwise the pickers' state won't have changed back to idle by the time you logic next determines how many to acquire. This results in a 0 getting returned and breaking the logic because no pickers are acquired.


5 |100000

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

Rocio A avatar image
0 Likes"
Rocio A answered Rocio A commented

Hello @Felix Möhlmann ,

Thank you very much for the information. It is very useful for me.

But I have a question: why in the Run sub Flow "Recoger las Cajas" in Quantity "token.parent.Picker.length" do we have to put parent?

1729574923054.png

Thank you very much in advance


1729574923054.png (35.7 KiB)
· 2
5 |100000

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

It's not actually necessary to use "parent" there. I was troubleshooting the model and tried different things before finding out that the missing "Breathe" was the issue. I then just forgot to reset the expression.
0 Likes 0 ·
Rocio A avatar image Rocio A Felix Möhlmann commented ·
Ok.

Thank you very much.

0 Likes 0 ·