question

Christine B avatar image
0 Likes"
Christine B asked Matthew Gillespie edited

How to tell combiner to pull items from port 2 based on certain label?

I am sending boxes to a queue with labels of which depot they then have to be sent to. I want to pack them into a trailer based only on which depot they are going to. My setup is:

Que --> Combiner: Trailer loads 30 boxes. --> Depot (there are 4 different ones).

Is there a way to tell the combiner that if the trailer is destined for Depot 1, only pull the boxes labeled Depot 1?

queuecombinerpull
5 |100000

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

gilbert jerald avatar image
2 Likes"
gilbert jerald answered gilbert jerald edited

@Christine B

Hi,

I have attached a sample model related to your condition " How to tell combiner to pull items from port 2 based on certain label".

I have used Process flow to combine the correct boxes with required quantity for each type based on the Depot Label and the pallet will be send to there respective Depot location.

In the model the created boxes are send to a list and the boxes are pull from list in process flow and this logic will instruct the combiner to pull the boxes from port 2 based on destination label (Deport ).

I have attached the model bellow have a look on it.Make a comment if you have any doubt.

Thank you.

combiner-pulls-items-based-on-labels-sample-model.fsm


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

gilbert jerald avatar image gilbert jerald commented ·

@Christine B

Hi,

The problem with your model is you have not referred the combiner1 correctly in send to port on shipping Floor L

The proper reference is the bellow attached fig:

I have attached 2 model. first model by correcting the above mistakes and second model by using process flow. instead of using pull from list activity in combiner and separator I have used it in the process flow. The items that are created on shipping Floor L will be sent to list on process flow and the process flow logic will direct the truck to load the correct items and move to the respective location via network node.

Model1:model1-sample-model.fsm

Model2:model2-sample-model-process-flow.fsm

Thank You

0 Likes 0 ·
Christine B avatar image Christine B gilbert jerald commented ·

@gilbert jerald

Thank you for your reply! I'm sure you can tell that my understanding of Flexsim is pretty basic, so I'm trying really hard to go with the first model you attached since it makes more sense to me personally. I see it technically works, however, if the trailer in the combiner is labelled Lane 2, it is still pulling boxes labelled Depot 1. So although your corrections to my syntax makes sense, I'm not sure it actually solved the core issue.

I will try to dig into the second attachment and make sense of it.

0 Likes 0 ·
gilbert jerald avatar image gilbert jerald Christine B commented ·

@@Christine B

Hi,

Based on your comments we can further move our idea via Model1 itself. In model 1 have written a code in input pull logic that pulls the correct depot boxes from Shipping Floor L Queue by matching with the truck Lane label and the truck will move to correct destination after loading

The below Image illustrates the code that I have written:

And I have done a small change in OnEntry trigger in Yard L2 queue to create both LANE 1 and Lane2 truck. Here you can get a clear picture of which truck is loading which item and whether it is moving to correct destination or not.

The below fig illustrates the change done in coding:

I have attached the model below for your reference have a look on it.

model1-sample-model-1.fsm

Thank you.

0 Likes 0 ·
image2.png (29.1 KiB)
image1.png (40.1 KiB)
David Seo avatar image
0 Likes"
David Seo answered David Seo commented

@Christine B

I uploaded the example model. The model pull three items of item type == 2 from input port #2.

You can use the label replacing with item type. item type is the special label ready.

combiner-item-label.fsm

That is your want? If is not yours, upload your example model you want.


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

Christine B avatar image Christine B commented ·

@david.seo @gilbert jerald

Thank you both for your replies and attached models. I have attached an example of my model for further clarification. In the Combiner pull custom code, you will see that I am trying to tell the combiner that if the trailer/container that comes in is labelled as LANE 1, pull dollies from Queue that are labelled as DEPOT 1.

I must be doing something wrong, because the dollies and trailers are stuck. I am using Process Flow to create the dollies.

sample-model-1.fsm

0 Likes 0 ·
sample-model-1.fsm (402.8 KiB)
David Seo avatar image David Seo Christine B commented ·

@Christine B

Which edition of flexsim do you use now? Any items does not appear in the model.

And I can't find any items shape in the item bin. The item bin do not show any item shapes.

It looks like your installation of flexsim has a problem in your pc. It is same with 3D view and process flow.

Please re-install flexsim after remove it.

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.