question

sylvain DAMOIS avatar image
0 Likes"
sylvain DAMOIS asked sylvain DAMOIS commented

How to close one input port of a processor?

Dear all,

Here is my project:

I want to have 2 configurations:

- First: I put 3 cylinders in each carton. For that, I need to close the input port n°1 of my processor

- Second: I pass directly cylinders inside the processor. For that, I close the Output port of my box source.

My issue is that on the first case, when I use the function closeip on the processor "on reset", it doesn't work and my port stays open.

For the second case, I use "closeoutput" function on my source and it seems working.

Can you please help me to understand?

Thank you

Sylvain

FlexSim 16.2.2
close one objet port
capture2.jpg (49.2 KiB)
capture3.jpg (14.2 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

·
Clair A avatar image
3 Likes"
Clair A answered sylvain DAMOIS commented

Hello Sylvain,

I don't recommand you to use closeip in this case. As said in the description of closeip, "Modelers should only use this command when working with fluid objects".

I think that using the pull strategy is more relevant in your situation. In the attached model, I've checked the pull strategy on the Processor, and it will pull an item either from input port 1 or 2, that means from the Combiner or the conveyor. I reversed the port order compared to your screenshot, so that configuration 1 = input port 1, configuration 2 = input port 2.

For more convenience, I outsourced the choice of the input port in a label on the Processor, and also added a Combobox in the dashboard to switch between configuration 1 or 2. You can even change the configuration while the model is running.

If you reset the model in configuration 1, you'll notice on the Processor inputs that port #1 is green and port #2 is red, meaning it's ready to receive from the combiner.

If you reset the model in configuration 2, you'll notice on the Processor inputs that port #1 is red and port #2 is green, meaning it's ready to receive from the conveyor.


config1.png (43.8 KiB)
config2.png (44.1 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.

Joerg Vogel avatar image Joerg Vogel commented ·

You can always place a queue between the conveyor exit transfer and the combiner or processor. Then you can close and open the input of the queue. If you don't like an extra storage capacity you can set maximum content to one and open the input of the queue in OnExit trigger of the combiner. If you don't like to see the queue you can switch of the 3D view or make it extremely small.

0 Likes 0 ·
sylvain DAMOIS avatar image sylvain DAMOIS commented ·

Helo,

Thank you for your help, it is going to save me a lot of time. I have read the complete description of closeip function. Sorry for the mistake.

Sylvain

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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