question

Paúl Alejandro R avatar image
0 Likes"
Paúl Alejandro R asked Paúl Alejandro R commented

stop and resume object using process flow

Hello;

I am working on a model with to processors (asset 1_1 and asset 1_2). While Asset 1_1 is processing items, Asset 1_2 must not process anything. I used process flow to stop Asset 1_2 when Q1 increase its content, and then resume Asset 1_2 when its content decrease to cero. I works pretty well but green items acumulate in Asset 1_2 when it stops. I need that no item enter to Asset 1-2 while it stops, and only when it resumes green items enter to it one by one respecting its processing time equal to 500 seconds.

model-stopresume-object.fsm

FlexSim 18.1.1
stop objectresume object
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

·
Joshua S avatar image
0 Likes"
Joshua S answered Paúl Alejandro R commented

I changed your model to fit your description. I added a breath activity at the very beginning to stop a token that would sneak past. I then changed your resource which was pulling 2 at a time because it was based on group size. I also added a wait for event activity so that it would wait till an item would exit the processor before pulling another item.16324-model-stopresume-object.fsm


· 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.

Paúl Alejandro R avatar image Paúl Alejandro R commented ·

Thank you @Joshua S.

It works as I described. However, I realized that when the last red item leaves Queue 1 (Queue 1 content = 0), the first green item gets in the processor. Is there a way to change the custom code to resume Asset 1_2 when Queue 1's content is cero, but also when Asset 1_1 is not processing any item? I mean when the last red item leaves Asser 1_1. I was trying to incorporate both conditions but I did not succeed.

0 Likes 0 ·
Joshua S avatar image Joshua S Paúl Alejandro R commented ·

Just add a wait for event activity right below the wait for event activity waiting for the contents of the queue to decrease to zero.16326-16324-model-stopresume-object-1.fsm

1 Like 1 ·
Paúl Alejandro R avatar image Paúl Alejandro R Joshua S commented ·

Thank you, that works.

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.