question

EK avatar image
0 Likes"
EK asked EK commented

Use transport: define centerport connection by output port

Hi, will you be able to advise me on how to setup different TE (centerport connection) based on port number? For output port 1, use transport centerport connection 1, for output port 2, use transport centerport connection 2.

I am hoping to be able to avoid item labels and process flow because this piece of simulation sits between 2 zones where each zone has a dedicated TE. If any items arrive at this area, depending on the destination zone, the correct zone shuttle should transport the flow item.

Use transport by outport port.fsm

FlexSim 23.2.2
output portuse transport
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered EK commented

use-transport-default-source-code.jpg

If you look sharply at the header of this source code, you see a local variable declared as "port".

Now I assume that this is the output port the object item will leave this object. And if you edit the template in a manner that output port number is identical to centerport number of involved taskexecuter you get probably a desired behavior.

use-declared-local-variable-in-template-editor.jpg


· 3
5 |100000

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

EK avatar image EK commented ·

Thanks Joerg for the tip and direction, I managed to make it work.

I've edited the use transport to match port which is param (2). This works if output port number is identical to the centerport connection

1700968609779.png

If there are more output port than centerport connections, I have found I needed to edit the script

1700968385728.png

Use transport by outport port_edited.fsm

0 Likes 0 ·
1700968385728.png (22.9 KiB)
Joerg Vogel avatar image Joerg Vogel EK commented ·
@EK, if you have a more complex connection setting, you can use a switch by case structure.
0 Likes 0 ·
EK avatar image EK Joerg Vogel commented ·
Thanks for the tip! It is helpful
0 Likes 0 ·