question

Telmo_Silva avatar image
1 Like"
Telmo_Silva asked Telmo_Silva commented

Open/Close output of a separator by condition

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

FlexSim 22.2.0
separatorcloseoutputopenoutput
screenshot-1.png (19.2 KiB)
screenshot-2.png (170.2 KiB)
cenario-3.fsm (155.3 KiB)
· 2
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

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 0 ·
Telmo_Silva avatar image Telmo_Silva Jeanette F ♦♦ commented ·
Sorry about that. Completely forgot. Thank you
0 Likes 0 ·

1 Answer

Julie Weller avatar image
1 Like"
Julie Weller answered Telmo_Silva commented

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!


1685467573760.png (21.2 KiB)
1685467594430.png (24.4 KiB)
cenario-3-1.fsm (154.7 KiB)
· 2
5 |100000

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

Carter Walch avatar image Carter Walch commented ·

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

1 Like 1 ·
1685467915417.png (47.0 KiB)
1685467956426.png (51.7 KiB)
cenario-3.fsm (156.0 KiB)
Telmo_Silva avatar image Telmo_Silva commented ·

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

1 Like 1 ·