Help with "Wait for Event" / "Synchronize" Function

Help with "Wait for Event" / "Synchronize" Function

svedullapalli
Participant Participant
331 Views
6 Replies
Message 1 of 7

Help with "Wait for Event" / "Synchronize" Function

svedullapalli
Participant
Participant

Hello, 

I am trying to model the following:

PL enters Station PLPLA -> Some work to be performed on PL -> Once PL work is completed PLA enters (PL is still in station) -> Work is performed on PLA and PL when both are in station -> Both PL and PLA are moved to Stock after work is completed

 

I have used "Wait for Event" function with On Exit referencing PLPLA Delay for PL. By doing this, The tokens are getting stuck at PLPLA Acquire for PL. 

 

Can I get help on why this is happening? Also, is there a better way to model the scenario I laid out?

svedullapalli_0-1753825822940.png

 

 

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

moehlmann_fe
Enthusiast
Enthusiast

Both tokens want to acquire PLPLA1 of which there is only one copy. You describe the process as being sequential, so it should be modelled that way. A good way to wait for the second item to be available is to use list.

Instead of delays you should always wait for the "On Process Finish" event of the current processor to guarantee that the Process Flow and 3d model stay synced (in case you change to random process times).

Is it on purpose that the processors can hold any number of items while they wait to enter the next station? Because otherwise the previous resource should only be returned after the item was moved.

0 Likes
Message 3 of 7

svedullapalli
Participant
Participant

Thank you so much for your response. Your solution helps with the logic I was trying to build.

 

Also, answer to your comment "Is it on purpose that the processors can hold any number of items while they wait to enter the next station? Because otherwise the previous resource should only be returned after the item was moved." - I missed logic into that. I would like the item to enter only after the other item leaves. What is the best way build that into the process flow?  

Image below is from your model.

svedullapalli_0-1753980600847.png

 

0 Likes
Message 4 of 7

moehlmann_fe
Enthusiast
Enthusiast

To prevent items from entering an occupied processor only release the previous resource after the next one has been acquired. To make that work properly either use different label names when acquiring each resource or make sure to set the Release activity to release the "First Acquired" resource.

0 Likes
Message 5 of 7

svedullapalli
Participant
Participant

Hi,

I changed the Release activity to release the "First Acquired" resource. That doesn't seem to be working. Also, I tried using "Wait for Event" with reference to Object "PLA Station 3" and On Content Change to Arrive at Value 0. That also, does not work.

 

svedullapalli_0-1754080403110.png

 

0 Likes
Message 6 of 7

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

In the Wait for Event activity you would need to activate the "Fire If Initial Value Meets Rule" checkbox, so that a token can continue if the next processor is already empty when it reaches this point.

In the attached model I rearranged the Release activities to prevent items from accumulating in the processors.

 

0 Likes
Message 7 of 7

svedullapalli
Participant
Participant

Thank you so much @moehlmann_fe ! This helps!

0 Likes