question

Asante Adwoa Asantewaa avatar image
0 Likes"
Asante Adwoa Asantewaa asked Asante Adwoa Asantewaa commented

specific quantity of flowitems to be processed at a time by a processor

Please we are building a model but encountering some difficulties.We would like processor2 to wait until operator24 fills it with 600 flowitems before it start processing making the processor2 to process 600 flowitems at a time and the same operation repeats again.We also want the particular color of flowitem being accumulated by sink25 to be 1,500 in total.Thank you.

flowitem.fsm

Choose One
flowitemprocessor capacitysink capacity
flowitem.fsm (44.7 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

·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Asante Adwoa Asantewaa commented

@Asante Adwoa Asantewaa,

Attached is your model with the changes that I've made to your model. But I'll admit, I'm not sure what you are expecting your model to do. After the second batch of 600 is released from Processor2, you will have total model grid lock with no where for the flowitems to go. All of the output conveyors from the mergesort conveyor fill up quickly with no where else to go. After Sink25 has 1600 (if it can even get there with the grid lock) then you have no more "exits" for your model flowitems.

What I've done in your model is to add code in the OnEntry trigger of Sink25 to close its input port after 1600 flowitems have entered.

I added a queue, AccumQueue, between Queue24 and Processor2. It has a batch of 600 with the "Flush contents between batches" check box checked. Then I placed this queue on top of Processor2 at its entry point. This way it will "look" like flowitems are accumulating on the processor when in reality they are accumulating in the queue. Then they will all be released at once to Processor2.

Again, making those changes does nothing for "fixing" the problems of the model. But that is how I would do what you asked for.

flowitem-jn1.fsm


flowitem-jn1.fsm (46.5 KiB)
· 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.

Asante Adwoa Asantewaa avatar image Asante Adwoa Asantewaa commented ·

Thank you very much for the assistance @ Jeff Nordgren.This is not the complete model,i will add the rest of the objects and processes soon.Counting on you for more assistance.Thank you.

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.