Decide which Process Flow use based on Parameter

Decide which Process Flow use based on Parameter

leandroom
Not applicable
107 Views
3 Replies
Message 1 of 4

Decide which Process Flow use based on Parameter

leandroom
Not applicable

[ FlexSim 24.0.2 ]

Hello,

Follow attached a internal logistic model that I created using Process Flow, which operators collect boxes from warehouse and delivery them at manufacturing.

There are 3 blocks of Process Flow, and I only want to run one at a time:

Blue- Process without cart and one piece flow (Ignore in question 1).

Red- Process with cart and one piece flow.

Green- Process with cart and batch.


I have 2 questions:

1) I am manually enabling all sources of the block and disabling the others, but I need to automate it so i can use Experimenter, I tried to place a decide condition on top of the blocks and based on a parameter "Batch", if batch is true, use the Green block, else use Red. (Ignore Blue block here). How can I do that? Or is there a better way?

2) About the Blue block, after the first cycle, the operator jumps to a delivery position of the last cycle before collecting the box on warehouse (Simulation time: 800 seconds). I've read on this forum that Its needed to Move the operator to model and reconnect the operator to the node, but Its not working, what did I do wrong?


Thank you in advance!

Exemple-Transport.fsm

0 Likes
Accepted solutions (1)
108 Views
3 Replies
Replies (3)
Message 2 of 4

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

1) There are numerous ways to do this. As you say, one possibility is to use a Decide activity that determines where to send the token based on a parameter.

1709884666853.png

1709884689162.png


From the current state of your model a quick solution would be to make the created quantity depend on the model parameter. The expression below multiplies the quantity (1) by either 1 or 0, depending on whether the comparison is true or false. Only if the parameter has the right value a token will be created.

1709884757569.png


The most complex (but not necessarily best) option would be to automate the enabling/disabling of the various sources through code in the parameter's On Set trigger.

1709885721250.png

All of these options are demonstrated in some way in the attached model.

exemple-transport_1.fsm

0 Likes
Message 3 of 4

gustavo_teodoroD8NVF
Advocate
Advocate

Doubt number 2:

  1. In the first block, in "Travel to WH," all locations have been replaced by WH (object), and there is no need to travel to the node.
  2. In the second block, in "Travel to Line," all nodes have also been replaced by the names of the Lines.
  3. In the third block, the activities "Travel to WH," "Move Operator to model," and "Connect operator to node" are not required.
  4. Finally, it is necessary to establish the "connection A" from all nodes to the locations where items will be loaded and unloaded.

I have attached the model.
exemple-transport.fsm

0 Likes
Message 4 of 4

leandroom
Not applicable

Thank you for the support, that's exactly what I needed!!!

0 Likes