question

SaiKrsih avatar image
0 Likes"
SaiKrsih asked SaiKrsih edited

How to assign multiple destinations for a Task Excecuter using Global Table?

Hello Flexsim answers group,

I would like to ask a question as an extension to my old question which I posted earlier. Check the lik 1 processor to multiple processors.

I made some changes to earlier model and replaced the human task executor with an AGV. I added more processors and used a global table to allocate pickup and drop-off destinations. A few pickup points have multiple drop-off destinations, whereas others only have one, according to my model. I noticed a problem with unloading when I was simulating the model, especially those pickup points with single destinations. I found that i was unable to conect global table data to unloading activity in process flow.

How to instruct a task executor so that it reads data from a global table and operates in accordance with defined pickup and dropoff destinations (sometimes multiple destinations).

Any advice or assistance would be much appreciated!

Multiple dropoff desitinations issue.fsm

FlexSim 22.2.0
taskexecutorglobaltable
5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered SaiKrsih edited

To split the items between the possible destinations, you need to know how many destinations there are. In the attached model I added an extra column to the "GT" table that stores this number ("NumDests").

(You could write some code that updates this column on every reset, based on how many non-null entries there are in columns 3+.)

With this number and the amount of loaded items, you can then calculate which "bracket" each item belongs to. In the attached model this is "DestIndex" label. That label can then be used to directly access the correct column.

1676895668640.png

I added a third destination to the first row to show that this will work more destinations as well.

multiple-dropoff-desitinations-issue_fm.fsm


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

SaiKrsih avatar image SaiKrsih commented ·

@Felix Möhlmann Super, it is working good. Thanks for your explination and logic. Ya, sure i will update the model based on further modifications

0 Likes 0 ·
Ajay M avatar image
0 Likes"
Ajay M answered SaiKrsih commented

@SaiKrsih . I made a little adjustment to your model. Replicate the Destination1 into the Destination2 column as well. For eg: The destination1 you assigned for Q6 was Q5. Just type Q5 in destination 2 as well. 1676896053643.png




1676896053643.png (3.7 KiB)
· 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.

SaiKrsih avatar image SaiKrsih commented ·
@Ajay M Thank you for the answer.
0 Likes 0 ·

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.