question

Blandine de Romémont avatar image
0 Likes"
Blandine de Romémont asked Blandine de Romémont commented

Link between token (processflow) and itemtype (model)

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

FlexSim 17.0.2
item type in process flow
5 |100000

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

Clair A avatar image
1 Like"
Clair A answered Blandine de Romémont commented

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

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


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

Blandine de Romémont avatar image Blandine de Romémont commented ·

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 0 ·
Jason Botha avatar image
0 Likes"
Jason Botha answered Jason Botha commented

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.

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


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

Clair A avatar image Clair A commented ·

Good job Jason, you crossed the finished line of writing your answer before me ;-)

0 Likes 0 ·
Jason Botha avatar image Jason Botha Clair A commented ·

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

1 Like 1 ·

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.