​How to define a traveler's path based on a label?

​How to define a traveler's path based on a label?

lucas_antonio_risso
Not applicable
17 Views
4 Replies
Message 1 of 5

​How to define a traveler's path based on a label?

lucas_antonio_risso
Not applicable

[ FlexSim 19.1.1 ]

Hello everyone,

I'd appreciate to have some orientation about how to develop a model to represent the following situation:

20376-flex.jpg


As soon as a person reaches node 4, it has to be triggered a logic to decide whether to enter in the loop or to keep going based on a number label, which will be further controled by messages. It sounds kind of like a standard "port by case", but in this case related to the node output ports.

The point is that the person inside the red circle has to allow the one inside the blue circle to pass due to an emergency occurrence, and then he/she can return the regular path once the special need was already prioritized.

The person particularly has to be kept moving the whole time.

I attached the model and I will be thankful for any instruction. teste-1.fsm


Best regards from Brazil.
Lucas

0 Likes
Accepted solutions (1)
18 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor

You find triggers at the network node. You can dispatch a preempting tasksequence that tells the traveler go to a sequence of network nodes and then you can decide to let the FlexSim engine to continue the interrupted tasksequence or you force to continue the tasksequence by using a break tasktype to insert a link to the interrupted tasksequence at the end.

0 Likes
Message 3 of 5

lucas_antonio_risso
Not applicable

Hi @Jörg Vogel

First of all, thank you for your attention.

I was not considering the possibility you have mentioned at first. Could you please attach an small illustrative example?

I am attaching a new version of the model, I have changed a connection and inserted a label named path. 20378-teste-1.fsm

Taking the flowitem, my intention is "if label path is 1" continue in the straight direction, "if label path is 2", get inside the loop. (The red shape is just for visual purposes, to highlight the specific node.)

I am considering that the node triggers "on arrival" and "on continue" work similar to "on entry/on exit" work on a fixed resource. Is this approach correct?

I will set messages to tell the person on the loop when it is possible to come back to the regular path, possbly guarding a value on a focus node label.

The closest I got was this command on FlexSim HC.
https://answers.flexsim.com/questions/34711/provider-only-pathing.html

Once again, thank you for helping.

0 Likes
Message 4 of 5

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

The attach model divert an item as taskexecuter a node before the detour node. I dispatch a preempting tasksequence, which leads the taskexecuter into the loop. In the loop I repeat the method again to keep the taskexecuter into the loop until the conditional label value changes.

itemte-divert-by-label.fsm

0 Likes
Message 5 of 5

lucas_antonio_risso
Not applicable

Thank you once again @Jörg Vogel. Your idea was pretty good and gave me some insights.

0 Likes