Cancel
Showing results for 
Search instead for 
Did you mean: 

Pause state

Pioneer
Pioneer

Hi community!

I have two machines, one in a pause state for a period and the other one is working. When this machine finishes this working, i want that it goes in a pause state till the end the pause period of the other one. What can i write in the method?

 

thank you! Smiley Happy

 

Cecilia

5 REPLIES

Re: Pause state

Phenom
Phenom

have a look at the attributes

  object.pause

and the methods

  object.startPause

 object.endPauseIn

 

to start/end the pause state of an object

 

 

Re: Pause state

Pioneer
Pioneer
thanks! i know them but i don't know how to say
if other machine is in pause then
startpause (till the end of the pause of the other machine);

thanks!
cecilia Smiley Happy

Re: Pause state

Phenom
Phenom
do you know the end of the pause of the other machine ?

Re: Pause state

Pioneer
Pioneer

i put the machine 1 in pause state for a period of time which depends on remainingProcTime of other machines of the system so i don't know exactly the time

 

Re: Pause state

Phenom
Phenom

ok, have a look at the attached model.

 

at the end of an operation,  station010 goes into pause state

depending if station020 is in pause state or not. ( exit control)

 

when station020 goes back into non pause state

it switches station010 to non pause state depending if station010 was in pause state or not.(Observer control)