how do i set the limit of items processed in a processor (number)?

how do i set the limit of items processed in a processor (number)?

nicofdz10
Not applicable
156 Views
6 Replies
Message 1 of 7

how do i set the limit of items processed in a processor (number)?

nicofdz10
Not applicable

[ FlexSim 23.1.1 ]

I have one source with some processors, and need to set a limit for each of them so the machines stop working when they have done an exact number of items,

0 Likes
Accepted solutions (1)
157 Views
6 Replies
Replies (6)
Message 2 of 7

natalie_white
Not applicable
Accepted solution

You can create a trigger on your processor. When selecting the trigger, point to "Control" and then to "Close and Open Ports." Then, you can specify the condition to set a limit on the number of items processed.

Let me know if you have further questions about using triggers!

0 Likes
Message 3 of 7

nicofdz10
Not applicable
Hi Natalie, thank you.

I have some more questions...

The trigger: On Exit? On stop? On process finish?


And then, the action: Closeoutput?

How do you fill Object and Condition boxes?

0 Likes
Message 4 of 7

joerg_vogel_HsH
Mentor
Mentor
Hi @nicofdz10, if you look closer at all your questions, you find all you need in given answers and comments. You have to decide, which condition closes when an input or output.

And by the way, there are several tutorials you can do in the manual.

0 Likes
Message 5 of 7

natalie_white
Not applicable

When filling in your condition box, it is helpful to know that you can reference the number of flow items that have entered the current object with "current.stats.input.value" (or "current.stats.output.value" for the number of flow items that have left).

0 Likes
Message 6 of 7

julie_weller
Not applicable

Hi @nicofdz10, was Natalie White's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes
Message 7 of 7

priyanka_g
Not applicable

I have attached the reference model that could help you. Create a label on each processor as "Item_Limit" and give the value as per your requirement. Then create "On Entry/On Exit" trigger with "Close and Open ports" option in Processor and give a condition as shown in image.

1686819450346.png

Every time the part enter or exit the processor it will check if the input of processor is matching the "Item_Limit" label of processor. When reaches condition it closes the port.

Open_or_Close_port _Modelv1.fsm