Cancel
Showing results for 
Search instead for 
Did you mean: 

Wait until Parallel Proc is full to start processing time?

Creator
Creator

I am in need of having a station that can hold 3 units and then wait until there are 3 units inside before it starts the processing time, then release all 3 parts at the same time.

 

Would this be easier to acheive using a buffer or parallel proc?

8 REPLIES 8

Re: Wait until Parallel Proc is full to start processing time?

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

You can do it with parallel proc.

But using a buffer in front would be a good idea.

So buffer tree parts and when they are ready you release them together into the parallel proc, so the proctime for the 3 parts start at the same simulation time.

 

This can be done with the exitlocked method.

Re: Wait until Parallel Proc is full to start processing time?

Creator
Creator

How do I get the buffer to wait until the three parts are ready?

Re: Wait until Parallel Proc is full to start processing time?

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Create an Init method within the buffer user defined variables

 

@.exitlocked:=true

 

Buffer must have:

entrance control that will keep track of how many parts have entered.

If ?.numMU=3
    ?.exitlocked:=false
end

exit control to close exit again

If ?.nummu=0 
 ?.exitlocked:=true
end

 

It will always accumulate 3 parts, release 3 parts at the same time and accumulate 3 parts again.

Parallel proc will be in charge of giving the same proc time to all 3.

 

Re: Wait until Parallel Proc is full to start processing time?

Creator
Creator

I'm very new to plant sim and I'm trying to self learn with no previous experience.

How do I create a Init method?

 

Re: Wait until Parallel Proc is full to start processing time?

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

OK, that in itself is an area of opportunity.

Taking a good training may reduce your learning curve by some months.

 

You create an init method 2 ways:

1. Add a method object from the Information Flow tab in your Toolbox and rename it "Init".

2. Open an object go to the user defined tab, click the "+ New" button, select "method" from the dropdown list and name it "Init".

 

Also all of this information is in the PlantSim help 

Re: Wait until Parallel Proc is full to start processing time?

Creator
Creator

Thank you for your help. I know this is off topic, but do you know of any good training materials out there? I have been trying to find some way to learn how to use PlantSim but I can't seem to find anything.

Re: Wait until Parallel Proc is full to start processing time?

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

First step would be to go through the Step by Step which is inside Plant Sim.

Second could be to buy @Steffen_Bangsow book which is of great help for newbies.

Third you could reach to many of us consultants to get a training most likely depending on your location. But this applies more to companies who have bought the software.

Re: Wait until Parallel Proc is full to start processing time?

Creator
Creator

I did exactly as you said but the buffer doesn't release any parts.

I created a method named Init that locks the exit and assigned it to the buffer as a user created variable, then I assigned entrance and exit control methods to the buffer using the code you posted.