question

Michael O'Connell avatar image
0 Likes"
Michael O'Connell asked Sam Stubbs answered

What parameter is returned when "Send to Port" logic is "Push to ItemTypeFlowList"?

If I'm using "Push to ItemTypeFlowList" port logic and I'm using a transport, what parameter indicates the port through which the item is being pulled and will travel.

Other portr logics allow me to use the following in "Use Transport" logic.

int port = param(2);

FlexSim 16.1.0
pull from list
· 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.

Michael O'Connell avatar image Michael O'Connell commented ·

int port = param(2) produces port=0.

0 Likes 0 ·

1 Answer

·
Sam Stubbs avatar image
2 Likes"
Sam Stubbs answered

When you push and pull items to and from a list, you aren't actually using ports. The item is simply being put onto a list until another object sends a request to pull the item off the list. Once the pull happens, then any connected transports will get the task sequence to retrieve the item and then drop off the item at the pulling object. So, of you need a reference to the object the item is going to, you can use the "destination" variable found within the Use Transport code.


destination.png (9.6 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.

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.