Open/Close output of a separator by condition

Open/Close output of a separator by condition

Telmo_Silva
Not applicable
230 Views
5 Replies
Message 1 of 6

Open/Close output of a separator by condition

Telmo_Silva
Not applicable

[ FlexSim 22.2.0 ]

Cenário 3.fsmHi there,


I am trying to block a separator using close and open the output of it. The condition is that the queue which is receiving the output of this separator has a length less then 60. I.e., when the number of elements in the queue is 60 the separator should have a closed output and when the queue has less then 30 elements it should open the output again.


However, what I am seeing is that, the output is not opening even though there is less then 30 elements in the queue. What am I doing wrong?

screenshot-1.pngscreenshot-2.png

Accepted solutions (1)
231 Views
5 Replies
Replies (5)
Message 2 of 6

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Telmo_Silva,

To receive a more accurate solution, please post your model or a sample model that demonstrates your question. It would be helpful to know what trigger these actions are attached to.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes
Message 3 of 6

Telmo_Silva
Not applicable
Sorry about that. Completely forgot. Thank you
0 Likes
Message 4 of 6

julie_weller
Not applicable
Accepted solution

Hi @Telmo_Silva!

It's a lot easier to do that logic directly from queue PJ2 using triggers like you did. For example I added an on entry and on exit trigger to close and open ports and my logic for them looks like this:

1685467573760.png

1685467594430.png

I'm attaching the model here for reference:

cenario-3_1.fsm

Let us know if that helps!

Message 5 of 6

carter-walch
Not applicable

You can also perform the same logic in process flow, but it is easier to do in the 3D model like @Julie Weller did. The following process flow closes the input port when arriving at content 60 in the queue, and reopens it when content arrives at 30

cenario-3.fsm

1685467915417.png1685467956426.png

Message 6 of 6

Telmo_Silva
Not applicable

Perfect. It works as I asked for. Thank you so much for your help.