question

Asma I avatar image
0 Likes"
Asma I asked Ben Wilson commented

Operator picks up items quantity based on Label (id)

In this project I have 5 operators with label (id) who are connected with a flow items that have the same label (id).

My question is how can I make the operator picks up a number of items (quantity) based on the label (id).

Like:

operator1 with id=1 will only take 1 item that have label id(1) in one travel and then goes to a sink and disappear

operator2 with id=2 will only take 2 items that have label id(2) in one travel and then goes to a sink and disappear

operatorloaditem-support-v10.fsm

FlexSim 20.2.0
conveyorprocessflowoperatortaskexecuterid
· 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·

@Asma I,

I'm not sure I follow the logic of your model. For each flowitem that is generated from Source1 you send one entry to the ItemList. Now that flowitem may have a label "ID" on it with a value between 1 and 5. You say that this is the number of flowitems that you want the Operator to load and drop off. But where do these "other" flowitems that the Operator is to pick up generated? If Source 1 generates a flowitem with an ID label of 5 (which means the operator should pickup 5 flowitems with the label of 5, right?) and is pulled from your PF, where do the other 4 flowitems come from that the Operator is supposed to pick up? Because the second flowitem out of Source1 might have an ID label of 3, so your code is not going to pickup that one because it is going to request 3 different flowitems. So I don't understand where these "other" flowitems that are supposed to be picked up are coming from.

May need a better description of exactly how the model should work. And just as a comment, the conveyor isn't the best place to "wait" for items to come to be picked up. A queue would be better for that purpose. Anyway, any additional information that you can provide would be helpful.

Thanks.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Asma I, was Parker S's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Parker S avatar image
0 Likes"
Parker S answered

@Asma I

This can be done in process flow using lists. I would suggest doing this tutorial:

https://docs.flexsim.com/en/20.2/Tutorials/TaskLogic/Tutorial3ConditionalTasks/ConditionalTasksOverview/

It is very similar to what you are trying to do.

5 |100000

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