question

Quintin L avatar image
0 Likes"
Quintin L asked Andrew O commented

Assign Label To an Item based on resource assignment

Hello, I have a conveyor system that can send products to 1 of 6 testers depending on the availability of the tester. In PF i have the tokens being assigned to the resource (1 of the testers) and i am trying to put a label on that token depending on which resource it is assigned. This way i can use the decide tool to split up tokens to the correct process flow based on which tester it is assigned.

FlexSim 22.1.2
label assignment
· 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.

Andrew O avatar image Andrew O commented ·

Hi @Quintin L, were Felix Möhlmann's and Jeanette F's answers helpful? If so, please click the "Accept" button at the bottom of 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jeanette F edited

When you acquire the object as a resource in Process Flow, you can assign it to a label on the token. Through this reference you could then access labels on the testers themselves and use them those in the decide activity.

1658991141552.png

1658991158140.png

1658991174355.png

ResourceLabel.fsm


1658991141552.png (15.1 KiB)
1658991158140.png (9.9 KiB)
1658991174355.png (27.2 KiB)
resourcelabel.fsm (50.0 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.

Quintin L avatar image Quintin L commented ·

AAH02 Simulation 7.26.fsmI am still having some issues. I have attached my model. That is what i had but it still isnt working. I am sure it is something simple i am missing.

1659037622949.png

1 Like 1 ·
Jeanette F avatar image Jeanette F ♦♦ Quintin L commented ·

In Felix's model He set a label on the stations called Num and that is what he is referencing in the decide activity to decide which connector to take.

In the model I uploaded I provided another way of doing this, it looks at the group of stations and returns the index of the station.

1659044633632.png


However, I do not suggest proceeding with your current process flow. There is a considerable amount of repetition which usually means there is a way to consolidate.

I added a label that assigns the conveyor that the station is center port connected to. This label is then used through the other activities to reference the conveyor.

1659044779321.png

aah02-simulation-726_1.fsm

0 Likes 0 ·