Best Way to Dynamically Enable 1 or 2 Conveyor Stations

Best Way to Dynamically Enable 1 or 2 Conveyor Stations

borja_lorenzo
Advocate Advocate
239 Views
2 Replies
Message 1 of 3

Best Way to Dynamically Enable 1 or 2 Conveyor Stations

borja_lorenzo
Advocate
Advocate

[FlexSim 25.2.0]

 

Hi everyone,
Following the advice from my previous post Controlling Item Release Between a Decision Point and Two Conveyor Stations , I managed to correctly control the routing and reservation of items between a Decision Point and two downstream stations.

Now I would like to ask about the best way to dynamically switch between:

  • using only 1 station,
  • or using both stations.

To do this, I added a model parameter (`num_ST`) with possible values `1` or `2`.

I modified the `On Arrival` logic of the upstream Decision Point so that:

  • when the parameter is `1`, only Station1 is considered,
  • when the parameter is `2`, both stations are evaluated.

The logic works correctly, but I would like to know whether this approach is considered appropriate or efficient within FlexSim conveyor logic, or if there is a cleaner or more standard way to handle this type of dynamic configuration.

I attached a model with my current proposal.

Any feedback or best practices would be greatly appreciated.

borja_lorenzo_0-1778576501208.png

borja_lorenzo_1-1778576540876.png

 

 



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

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

That's a good solution. You can clean up the code a bit by using "Model.parameters.ParamName" to get the parameter value. And you can also use the value as the starting value of the counter in the for-loop, making it so you don't need the if-else-condition.

Screenshot 2026-05-12 111545.png

Message 3 of 3

borja_lorenzo
Advocate
Advocate

Oh... brilliant.

I honestly do not know how I did not realize that myself. 😞

That simplifies the logic a lot and makes the code much cleaner.

Thank you very much again!

0 Likes