question

Che-Wei Chou avatar image
0 Likes"
Che-Wei Chou asked Che-Wei Chou commented

How to assign a item to the station where access the same Type

Hi guys,

I tried to setup a item to the station where access the specifically type. In "Acquire" setting, I used WHERE (Filter) to match the station, however, I can't find the correct query. Could you help me to clarify how to setting it? Thank you.

1683284069322.png

1683284468877.png


Best regards,

Wade


Conveyor-based assembly line_practice.fsm


FlexSim 22.2.0
process flowacquire
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Che-Wei Chou commented

WHERE Type == puller.Type

This checks if the Type label on the queried object is equal to the Type label on the puller. In an Acquire activity, the puller is always the token. (In Pull from List activities the user can specify which object is used as the puller.)

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

Che-Wei Chou avatar image Che-Wei Chou commented ·

Hi Felix,

I set Query as "WHERE Type == puller.Type", however, the item (pallect) entered two different stations that have different Type settting.

1683290809975.png

1683291005473.png

Is there other setting that I didn't set?

By the way, the error msg showed as below:

time: 15.879422 exception: FlexScript exception: label item doesn't exist on token id: 4 at MODEL:/Tools/ProcessFlow/ProcessFlow/stop object>variables/codeNode


Wade


Conveyor-based assembly line_practice_v1.fsm

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Che-Wei Chou commented ·
You forgot to switch the label name (item -> product) in the Stop Object activity. This is also the reason why the item is at the wrong station. It is not stopped and continues down the main path despite the token not having acquired the station yet.
0 Likes 0 ·
Che-Wei Chou avatar image Che-Wei Chou Felix Möhlmann commented ·
Thanks for your reply, Felix.

It works.

0 Likes 0 ·