question

Zach B avatar image
0 Likes"
Zach B asked Kari Payton edited

Select a Task executer from a global list?

Hello,

I am trying to populate a list of assigned task executers as well as start and end locations for my items created in Process flow. Then I want to use that token data to tell the item where to be placed in the model space. I could potentially have 100 different token.Types, robots and start and end locations, so I wanted to make it using a Global List. I have the Process Flow and Model setup, but I am newer to Flexsim so I just don't know all of the correct syntax to be used in Process Flow. If someone could look at my model and see what I am doing wrong I would appreciate it. transporting-tote-full-of-boxes-lists.fsm

Thanks!

@Regan Blackett

FlexSim 18.0.0
global listpulling from listsassigning task executer
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
1 Like"
Kari Payton answered Kari Payton edited

@Zach B I couldn't figure out your exact problem but maybe this will help you.

To add task executor to a list I put a sample model. You can acquire them from a resource then push to a list. te-from-list.fsm

To make a reference to start and end locations:

1. In the toolbox create a global table. Here you can add pointers to the starting/ending locations and task executors.

2. In process flow there are a few options to create a different tokens with different labels. The principle is to have the token label reference the cell on the table using the function Table("TableName")[Row][Column]. The way I set it up is using a block called "Create Tokens" to create 10 tokens. Then for each token there's a label "rowNum" with the creationRank value. This means whatever order it was created in that will reference to its row number. Then in the assign label box, make labels for each token that references the table. So in this example for token 1, use Table("GlobalTable1")[token.rowNum][1] to get the StartLoc.

3. Then you can create the object and add add the labels from the token or add it directly using Table("TableName")[Row][Column]. From there if you push the item to a list it will have the labels on the items.

Hope this gives some ideas how to create your process flow. transportwithtablelist.fsm


push.png (64.0 KiB)
te-from-list.fsm (18.7 KiB)
5 |100000

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