Cancel
Showing results for 
Search instead for 
Did you mean: 

Running Setup time on a singleproc during a method

Valued Contributor
Valued Contributor

Is it possible to have a method set as an entrance control on a singleproc so that the method runs on MU entrance, then pauses part way through for the setup time to commence, then have the method start back up where it left off after the setup time?

 

Here is my situation: I have a singleproc with a method running as an entrance control. The entrance control sets the setup time and processing time on MU entrance. At this point I want the singleproc to run its setup time. After the setup time the method will continue with this code:

 

?.Pause := true
waituntil .Models.Frame.BurstTest2.Pause = true and .Models.Frame.BurstTest3.Pause = true prio 1

?.Pause :=false

 

basically the method will pause the singleproc until certain conditions are met. Once the conditions are met the singleproc will be unpaused, and the singleproc will begin its processing time.

 

I am currently modeling this with a wait command within the code, but I would rather use the setup time if possible. Any thoughts?

 

Thanks

5 REPLIES 5

Re: Running Setup time on a singleproc during a method

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
you could use a entrance control before actions in connection with the set-up-setting "only when empty",
set your times, wait for the end of the setup time and start a pause, after the end of the pause the procTime will start;
e.g (as method attribute of the station).
waituntil self.~.setup=false prio 1;
--pause for 10 minutes
self.~.startPause(600);
--then the procTimeStarts
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Running Setup time on a singleproc during a method

Valued Contributor
Valued Contributor

In experimenting with your suggested code I have realized a major flaw in my plans for this.

 

I would like this setup to run for every part that comes into the station. I realize that usually Plant Sim doesn't behave this way. Is there an easy way to force the processing station to setup for every single part that comes in? 

 

I had tried using methods to set the setup attribute to false, but it will not allow me to do that.

 

Also, is there a way to make the setup occur after the part has actually landed on the processing station, but before processing? From what I was seeing, the current method causes the processing station to setup before the part is allowed entry.

Highlighted

Re: Running Setup time on a singleproc during a method

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
Maybe you should explain a bit about your "real-world problem" and what you want to study. It looks like you try to program something in a complex way that is mostly achievable with standard settings.

The Set-up tab gives the setting After N parts. On the Controls tab you can set a Setup-control.
.

Gert Nomden
Digital Factory Consultant
cardsplmsolutions.com

Re: Running Setup time on a singleproc during a method

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
for setup all parts just select in tab setup: After 1 parts

There is no way, if you also want to change the times for the actual part in the same method.
This you need to do before the part is placed on the machine.

You need to split in this case the method: set times in the exit control of the predecessor, wait for the end of the setup and pause the machine in the entrance control of the machine (not before action)
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Running Setup time on a singleproc during a method

Valued Contributor
Valued Contributor
Thank you, I appreciate you answering my questions. In this case, the way I have things setup, it would not be very convenient to do two methods for this. I think I'm going to just stick with the wait the way I had it. The setup wasn't a huge deal, just would have been nice. Again thank you for all the help and suggestions!