question

mUg24 avatar image
0 Likes"
mUg24 asked mUg24 commented

Pick up items depending on batch size

Hello!!

I want to make a process flow where an operator can pick the number of items batched by a queue and transport all of them to another queue. The target size of the first queue is 3 and if after 30 seconds the queue can't complete the batch, it is released.

Attached to this question you can find my first attempt.

The first problem I have is that the operator loads 3 boxes but only unloads 1. The other 2 are still carried by the operator.

The second problem is that I don't know how to assign to Run subflow quantity, the released batched size (in case the target size is not completed).

Thank you in advance!

Intento PF carga mas de 1.fsm


FlexSim 20.2.1
process flowflexsim 20.2.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.

1 Answer

·
Gokulakrishnan Kandasamy avatar image
2 Likes"
Gokulakrishnan Kandasamy answered mUg24 commented

Intento PF carga mas de_gk.fsm @Mercedes U I have done small changes in your model. Please look into the model let me know if you have any doubt.


· 3
5 |100000

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

mUg24 avatar image mUg24 commented ·

Thank you so much @Gokulakrishnan Kandasamy. Can you explain me how the following works:

1. Aggregation: Make Array at Batch label assigment

2. Item value at Run Subflow.

Thank you in advance!

0 Likes 0 ·
1606150648677.png (26.2 KiB)
Joerg Vogel avatar image Joerg Vogel mUg24 commented ·

@Mercedes U, token.items holds all items as an array.token.items[num index] returns an element of the aray by its index. creationRank is a declared variable of the source code header of the code editor at the assign field. It returns an index of the currently created child token of the sub flow.

3 Likes 3 ·
mUg24 avatar image mUg24 Joerg Vogel commented ·

Thank you!

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.