question

Leandro Meirelles avatar image
0 Likes"
Leandro Meirelles asked Felix Möhlmann edited

Decide which Process Flow use based on Parameter

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

FlexSim 24.0.2
process flowoperatornetworknodes
5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann edited

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


1709884666853.png (28.2 KiB)
1709884689162.png (12.2 KiB)
1709884757569.png (17.5 KiB)
1709885721250.png (12.8 KiB)
· 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.

Gustavo Teodoro avatar image Gustavo Teodoro commented ·

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 0 ·
Leandro Meirelles avatar image
0 Likes"
Leandro Meirelles answered

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

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.