Procesor with max units to trait

Procesor with max units to trait

sekai_mohamedelamine
Explorer Explorer
188 Views
1 Reply
Message 1 of 2

Procesor with max units to trait

sekai_mohamedelamine
Explorer
Explorer

Hi there ,
i want to make that a processor can trait only 50 pieces in total , so 1,2,3,4...50 and the processor stop, even if the Queue is full 
how can i do this 

0 Likes
Accepted solutions (1)
189 Views
1 Reply
Reply (1)
Message 2 of 2

kavika_faleumu
Autodesk
Autodesk
Accepted solution

Hey @sekai_mohamedelamine, one solution would be to use Process Flow (PF). Here's an example:

kavika_faleumu_0-1748551415695.png

kavika_faleumu_2-1748551430509.png

You can start by having an event-triggered source which listens to the Processor's "On Entry" event. When a flowitem in the 3D space enters the Processor, then a "token" will be created at the "Processor: On Entry" activity.

Next, the PF will wait for 50 tokens in the "Batch" activity. Once there are 50 tokens, it will delete the 50 tokens and release 1 token to the next step in the PF.

Next, there is a custom code activity that closes the input port of the Processor and changes its color to "Red".

After that, I wait 500 seconds to simulate "down time" or whatever you'd like.

Finally, we open the Processor's input port and change the color back to green.

 

I've attached the model (FlexSim 25.1) -- I hope this helps.