question

Daniel Saravia avatar image
0 Likes"
Daniel Saravia asked Joerg Vogel edited

How to send a TE to a specific destination that matches label value of flowitem?

Hello,

I need to match the label values (Order Number) of 2 different flow items contained in different queues. One is the "Order" (box), the other is the "Customer" (tote).I have TEs that needs to find the order that matches the customer waiting on a queue. I generated lists and tables the contain all the information but I don't know how to direct the TE to pick the right box and travel to the right queue (where the customer is waiting). The customer and the box that belongs to him have the same label value for the label "Order Number". When the customer arrives at the waiting queue I copied the label of the Order Number to queue. Also when the order is "packed" and matches a customer waiting at the waiting queue I push the to a list "Customer and Pack ready to Load". I have tried to use matching label properties on send to port but not luck.

@jeff.nordgren @logan.gold @benjamin.w2 @Jacob Gillespie @Jörg Vogel

CPU Example2_7.fsm

FlexSim 20.2.2
flexsim 20.2.2match label
cpu-example2-7.fsm (82.1 KiB)
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

You have prepared a lot, but you forget to fill some of your lists. But as you see in my example that it isn't necessary to use them.

You will run into a problem where you duplicate the order_number to all items of an order, because you collects each single item for customer A without combining the items as a single packed one, what you do for the other orders. You cannot distinguish between order or items of an order. You can only count how many items are missing to fulfill the order.

The unload activity releases the items to a queue. The destination should be the tote in the queue. If you can guarantee that the queue holds only one tote at a time, then you can address this tote as

Model.find("yourQueueName").first  


0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

You find attached an example to wait for matching label value. The idea of an unique ID is taken from your model.

PF_find_matching_label_value.fsm


· 6
5 |100000

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

Daniel Saravia avatar image Daniel Saravia commented ·

Hi,

I can guarantee just one tote at the time on the queues but I do have 3 queues (in reality each queue is a parking spot where the customer is waiting for his order 27 spots). How the order find the right queue? Can I group all the queues then use the code you are proposing to find the right queue?

What would be the best way to combine the order in PF so I don't run into the issue with the Order Number in all items?


Thanks!

@Jörg Vogel

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Daniel Saravia commented ·

The tokens create items, one for products, one for a tote. Create Object activity create these items. There you can store a reference on both branches to a label name and in Batch activity you can aggregate those labels as an array. Because the reference of the aggregated labels contains a path to the items, you know where they are in the model.

0 Likes 0 ·
Daniel Saravia avatar image Daniel Saravia Joerg Vogel commented ·

Thanks for all your help. I got the loader to go load the tote but still not the right one. I added your suggestion and make an array but still I don't get the right queue. I did duplicate the token too at the beginning of the model.

CPU Example2_9.fsm

@Jörg Vogel

0 Likes 0 ·
Show more comments