question

Carlos Blay avatar image
0 Likes"
Carlos Blay asked Kavika F commented

How to assign Travel Destination from a Global Table

Trial Train route_W.fsm

Hi.

I'm trying to assign "Destination" property on a TRAVEL task from a Global Table.

First I Push the value from the table to a LIST and then Pull this value from it.

The problem is to assign this value to the "Destination" property.

Also the same with the Delay Time.

Thanks In Advance for your answers.

FlexSim 23.0.10
agv traveltravel agv
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

Kavika F avatar image
0 Likes"
Kavika F answered Kavika F commented

Hey @Carlos Blay, I don't think you need to use a list here if you're going to immediately pull the value you push. It makes more sense just to get the value from the Global Table instead.

If you're going to get an Object by its name from a Global Table, you should either store the object as a pointer in the table or call "Model.find(...)" on the name to get the Object so the AGV can travel to that specifically.

1698871816405.png

1698871826038.png

Something like this would work better.


1698871816405.png (17.5 KiB)
1698871826038.png (31.1 KiB)
· 2
5 |100000

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

Carlos Blay avatar image Carlos Blay commented ·

Thanks a Lot, works fine, but I try to use the same with the delay time but it doesn't work.

Could it be anything related with the table format???

Any idea???

Thanks in advance.

0 Likes 0 ·
Kavika F avatar image Kavika F ♦ Carlos Blay commented ·
@Carlos Blay, do you have a screenshot of the error you're getting? Or maybe the line of code you're putting for your Delay?
0 Likes 0 ·