Link between token (processflow) and itemtype (model)

Link between token (processflow) and itemtype (model)

blandine_de_romemont
Not applicable
22 Views
5 Replies
Message 1 of 6

Link between token (processflow) and itemtype (model)

blandine_de_romemont
Not applicable

[ FlexSim 17.0.2 ]

Dear all,

I am searching how to link a token with an item type. I create the token with a source (of pallet), and then I am able to have the item type of the pallet.

Now I want to wait for the pallet to be processed, with the right itemtype, but I am not able to do that. Have you a solution for me, because it moves an other pallet that is processing ?

Thank you in advance,

Blandine

0 Likes
Accepted solutions (1)
23 Views
5 Replies
Replies (5)
Message 2 of 6

jason_botha
Not applicable

Hi there,

You can do this by using the wait for event trigger and setting it to match on the item label, as show in the image below.

6231-wait-for-event.png

i have also attached a small test model where i match the token in process flow to the pallet in the 3D model as it exits processor2.

I hope this helps.

20170410-match-item-in-pf-with-3d.fsm

0 Likes
Message 3 of 6

clair_augsburgerZGWRZ
Collaborator
Collaborator
Accepted solution

Hello Blandine,

If I understood well your question, I don't think you need to use itemtype.

In the attached model, the 1st activity is an event-triggered source, fired by the creation of a pallet. In the properties of this activity, I added a label name for the created item: "pallet". It means that each token will have a label called "pallet" which stores a reference to the created pallet.

The second activity is Wait for Event, fired by OnProcessFinish. The issue is that if I have several tokens in this activity when OnProcessFinish is fired, all tokens will move to the next step. Instead I want to move only the token that points to the pallet which finished its process. So that's why in the properties of this activity, I used the match operation on the label "pallet".

6235-s1.png

If I didn't understand well your issue, don't hesitate to post your model to illustrate your question.

Message 4 of 6

clair_augsburgerZGWRZ
Collaborator
Collaborator

Good job Jason, you crossed the finished line of writing your answer before me 😉

0 Likes
Message 5 of 6

blandine_de_romemont
Not applicable

Thanks a lot to you two.

It helped me a lot. I was searching for the system to wait for the palletType, but it works by waiting for the pallet itself. I used the solution from Clair. But your approch Jason could match too.

Thank you,

Blandine

0 Likes
Message 6 of 6

jason_botha
Not applicable

Thanks Clair, looks like i got my answer in first but your solution was chosen, looks like you win this round 😉