question

Moisés Cálderon avatar image
0 Likes"
Moisés Cálderon asked Kavika F commented

Enable and disable port in flow processes?

Base 1.3.fsm

How can I activate and deactivate a port of the Separator1 machine? I want it to open when there is a client in Queue2 and close when there is nobody.

So if there is no client in Queue2 it must be empty with no product.


I have made some logics and they are not working, what could be happening.


In addition you can add that the customer has a pickup with a uniform distribution of 1 to 10 units (ie at least 1 and at most 10).

Thank you very much for your support

1693404682657.png


FlexSim 23.0.8
logistics
1693404682657.png (635.0 KiB)
base-13.fsm (46.3 KiB)
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

Kavika F avatar image
0 Likes"
Kavika F answered Kavika F commented

Hey @Moisés Cálderon, I think you're close to getting your desired functionality. I reworked your model a little and I think I got it working how you want it. port-changes-with-condition.fsm

I changed the names of activities to represent their functionality so it's easier to see what's going on at a glance without diving into each activity's properties.

1693410171367.png

I added a 5th activity block in the top-right that will close Separator1's Input port when the model starts. I then explicitly changed the middle-right activity block to only close the Separator1 Input port when it reaches content of 0. Before it was closing whenever there was a change, so it was firing even when you were increasing to a content of 1. I think everything else works as intended. You can try out the model I posted above to see.


· 4
5 |100000

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