How to assign destination label by global table lookup

How to assign destination label by global table lookup

e_yiing98
Not applicable
98 Views
11 Replies
Message 1 of 12

How to assign destination label by global table lookup

e_yiing98
Not applicable

[ FlexSim 18.1.2 ]

Hi there~

I am simulating a jobshop, I have a routing table and processing time table.

I have put label "type", "station" and "Process" on item on creation.1688540520694.png For processor, after finish processing, I also put label "station" and incremental value on label "Process"

But, how could I sync the label on 3D object item and process flow token?

Fyi, the subflow is for multiload AGV, such that it could load 2 items.

I am confused, any help or idea is appreciated!

0 Likes
Accepted solutions (1)
99 Views
11 Replies
Replies (11)
Message 2 of 12

moehlmann_fe
Explorer
Explorer
Accepted solution

The token must already have a reference to the item (in order to tell the AGV what to load). You can read the labels on the item directly. There is no need to have the destination (or other references) as labels on the token itself.

token.item.station

If this doesn't help, please attach your model (or at least an example model), so we can better understand what the issue is.

0 Likes
Message 3 of 12

e_yiing98
Not applicable

Thanks for your prompt reply!
Sorry that I didn't mention I didn't post a model, here is it

How to assign destination according to type.fsm

I have modified it, but it then has a tasksequence error, should I post another question?

0 Likes
Message 4 of 12

moehlmann_fe
Explorer
Explorer

- You mistyped some label names: Sometimes you use loadIten and loadItem at other points.

- You need to provide an actual object reference for the station, not just a number. You can use Object By Case for this.

capture1.png

- In your Process Flow, each token represents an item. These then pull an AGV and have it move the item. The lower part of the Flow (Run Sub Flow activities) look like they are set up under the assumption that a single token represents more than one item. This would likely be the better approach, since the travel and unload tasks for the items interfere with each other.

The items should probably be pushed to a list and tokens that represent the AGVs pull items from that list.

0 Likes
Message 5 of 12

e_yiing98
Not applicable

Thanks Felix! I have modified the model according to your suggestion 🙂

Item list is added, but there are two weird situation:

  1. AGV can load 3 items even its capacity is 2.
  2. Items "fly" to processors when AGV return to source point.

Instead of use order by case in travel activity, can I use assign label activity to assign "station" on token, if station value=1, find object IN1? Or is it possible to code like: Group("machine")[token.machine]?How to assign destination according to type_v2.fsm

0 Likes
Message 6 of 12

moehlmann_fe
Explorer
Explorer

I meant more like this:

how-to-assign-destination-according-to-type-v2_1.fsm

Create one (persistent) token per AGV at the start of the simulation which then pull the items.

Yes, Group("machine")[token.loadItem.station] would certainly be possible.

0 Likes
Message 7 of 12

jason_lightfootVL7B4
Autodesk
Autodesk

In your JobShop question I've suggested you have the machine pull based on matching [Job,Operation] values - in that case the pulling machine should write the item destination. This will end up being more powerful since the machine column in your table could be a type and you can then consider the effect of adding machines of each type, just by adding another machine to your model without data changes.

0 Likes
Message 8 of 12

e_yiing98
Not applicable

Thanks Felix and Jason! Appreciate all your effor!

0 Likes
Message 9 of 12

e_yiing98
Not applicable

@Felix Möhlmann , Hi Felix

Many thanks for providing a model for me to take referece!

I have some questions, does the picture below means the quantity of token/arrival equals to number of AGVs? In this model, token indicates to AGV not items?

1688743188501.png

Based on usermanual, I guess zone is used to restrict the access of tokens, but I would like to understand the logic you choose to use zone in this pf.

1688745053954.png

I do some modifications to the model, OUT queue of processors will push finished items into the item list, and change the travel activity in first subflow to token.loadItem.up. Could you tell why this exception comes out?

Thanks for your patience.How to assign destination according to type_v3.fsm

0 Likes
Message 10 of 12

Jeanette_Fullmer
Community Manager
Community Manager
Hello @Emily K,

Please follow our best practices and start a new post for your new questions.

0 Likes
Message 11 of 12

e_yiing98
Not applicable

Hi Janette, thanks for the advice, I will post another question for the exception

Is it okay to keep the first two question? Because I need explanations for the model.

0 Likes
Message 12 of 12

Jeanette_Fullmer
Community Manager
Community Manager
Yes,

The answer to your first question is yes.

The answer to your second question is that the zone is there to ensure that a single AGV only executes those tasks for one item at a time. If you removed the zone the there would be several travel and load tasks happening for the same AGV at the same time. In newer versions of FlexSim this is more easily handled.