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.

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.