question

Osman Eralp avatar image
0 Likes"
Osman Eralp asked Adrian Haws answered

How do I set a destination without using ports?

In my model, I have been using "Send To Port -> By Expression" to set the destination of a flow item. However, I need to add dozens more destinations. I don't want to have to draw all of the port connections by hand because I know I will make mistakes. Is there a way to set a destination without requiring port connections? I was thinking of using an OnEntry trigger, but I can't figure out the syntax. I'm using the AGV Process Flow if that makes a difference.

Thanks,

Osman

FlexSim 16.1.2
destination
· 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.

1 Answer

Adrian Haws avatar image
2 Likes"
Adrian Haws answered

If I understand your problem correctly, you could send the items to a list, then have each AGV pull from the list. In your Process Flow you can then reference a global table cell based on the item type, in which you have your different destinations. Then the AGV would travel and unload to that destination. That way you can contain the logic in the Process Flow and not use ports. Here's how you might reference that:

  1. var rack = gettablestr("GlobalTable1", getlabel(token, "itemtype"), 1);
  2. return node(rack, model());

You can also refer to a global table in the "Send to Port" trigger of a fixed resource, but that would be using output ports. However, you can rearrange the order of the output ports in the "General" tab of your fixed resource.

5 |100000

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