question

Kamil KS avatar image
0 Likes"
Kamil KS asked Kamil KS commented

Transport to different locations depending on amount.

Hello,

I created some transportation logic but i am struggling with some conditions of it.

Pallets form Bufor need to go to Queue1 or Queue2 or Queue3 in equal of total amount. So after all Queue1 has 33,33% of pallets from Bufor, Queue2 33,33% of pallets and Queue3 also. It needs to go Randomly, not in the sequence like first 33% to Queue1 and so on.

How to crate a token ,,Destination" that tells Transporter which Queue it needs to choose by the total amount ?

transportationcondition.fsm

transportation model
5 |100000

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

1 Answer

·
Kari Payton avatar image
2 Likes"
Kari Payton answered Kamil KS commented

@Kamil KS you can use a decide in the process flow to direct the logic. The decide is set to a percentage, sot he drop-off locations are randomly assigned.

Create a label for the queue called "Destination" that references the options for dropping off the pallets.

Also make15802-transportationcondition.fsm sure all of your token labels have are the same in spelling and caps. for example you talled token.destination and token.Destination (the capital D matters).


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

Kamil KS avatar image Kamil KS commented ·

Thank you very much, that is the perfect solution of my problem :). On the other hand do you know how to create a logic when a transporters capacity equals 2 and he can only pull 2 pallets from a ,,Bufor". Am i supposed to use Wait for Event or can i change properties in Event-triggered Source ?

0 Likes 0 ·
Kari Payton avatar image Kari Payton Kamil KS commented ·

@Kamil KS in this situation I would use a list if you are familiar with that concept...? If not it would probably be easier to use the logic in 3D. Post your question as a new question to get more views.

0 Likes 0 ·
Kamil KS avatar image Kamil KS Kari Payton commented ·

I am not sure how to fill gaps in the Pull from List. Is it request number ?

twopalletslogic.fsm

0 Likes 0 ·
twopalletslogic.fsm (135.7 KiB)

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.