question

Brayan Leonardo Gil Guevara avatar image
0 Likes"
Brayan Leonardo Gil Guevara asked Brayan Leonardo Gil Guevara commented

Limit the quantity of specific itemtype created.

How to process an specific quantity for a itemtype, then after reached said quantity process itemtype2 ?

Hi, I have this question and I can't figure out how to represent this in FlexSim.

I have 2 itemtype. What I need is this: after finishing 500 units of itemtype1, i will no longer need more itemtype1.
I just need to limit the quantity of itemtype1 that are created. I just don't have a clue on how to do it.

Do you have any suggestions for me?
Thank you in advanced.

FlexSim 17.2.2
itemtypeitemprocesslimit
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

·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Brayan Leonardo Gil Guevara commented

@Brayan Leonardo Gil Guevara

Here is a sample model of the way that I would do it. I would have two Sources feeding into a single queue. This is because you didn't specify if they were processed in any particular order. Then in the OnExit trigger of Source1 (itemtype 1) after it has produced 500 flowitems, I close its output port. In the code it looks like 499 but that is because I'm checking for the number of flowitems that have left the Source and that last flowitem hasn't "left" the Source yet. But you can see from the graphic below that it produces 500 flowitems and then no more are produces (it shows as blocked). Is this what you had in mind? If not, please be more specific on what you actually need to have happen.

Thanks.

control-output-jn1.fsm


· 1
5 |100000

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

Brayan Leonardo Gil Guevara avatar image Brayan Leonardo Gil Guevara commented ·

Thank you so much @Jeff Nordgren, it does just what I need.

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.