question

Fabio O4 avatar image
0 Likes"
Fabio O4 asked Fabio O4 commented

Item in a processor limited for a certain type

Hello, in the model attached i want to limitate the item.sez == 1 input at a max of 4 at the same time. another item of the same type can enter only if one of them exit. The processor can have a max of 9 items in process at the time. The other item.sez don't have a input max content rule. I'm trying to make work the processflow u see in the model but i'm missing something.

FlexSim 22.2.0
processflowitemtypeprocesor
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
Did you upload a model to the shared folder? If so, what was it called? If not then please use the link at the top of the page in the "Answer Upload Issue" section.
0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Fabio O4 commented

I don't know how you tried to implement this logic, but I would suggest to use a zone in the process flow. It can have both a general limit to how tokens can enter it, as well as subsets with additional contraints attached to them.

So the zone can limit the token count to 9 while also limiting the count of tokens where the sez equals 1 to 4.

1660806360960.png

1660806375841.png


1660806360960.png (20.1 KiB)
1660806375841.png (32.4 KiB)
· 3
5 |100000

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

Fabio O4 avatar image Fabio O4 commented ·

Sorry, i can't update the model for a issue in the forum at the moment. i can link on dropbox

https://www.dropbox.com/s/u1qls1nac8vtgbw/Sample_1.fsm?dl=0

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Fabio O4 commented ·

It looks like you copied the queues and processor from a different model since there are a lot of invalid references and missing labels.

I think I see what you tried to do with the process flow. However, there will never be any tokens because the source only creates tokens at time 0 and the quantity is set as the subnodes of the processor, which won't have any items in it when the model starts.

I added the solution I suggested above to the model and removed a lot of the invalid trigger functions so the model can run without errors. I also changed the setup and process times of the processor to highlight how the process flow works a bit better, hopefully.

1660846950379.png

https://drive.google.com/file/d/1DUFzLaRQ0PLOZh0M5_D85TXFQMCp--ne/view?usp=sharing

0 Likes 0 ·
1660846950379.png (18.0 KiB)
Fabio O4 avatar image Fabio O4 Felix Möhlmann commented ·
Yes, was an extract of an already existing model, i had to implement the logic for the processor. Thanks again the problem is fixed.
0 Likes 0 ·