Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Remaining ProcTime call the gantry

Hi!

 

Before machine finishes the part, I want to "call" the gantry. I know that we have the simtalk remaining.Proctime but how can I "send" this signal to the gantry when the remaining time is 20s, for example.  I did a method to the gantry, to waituntil when the remaining time of machine is 20s, but during waituntil, this machine can be on failure and lost the opportunity to loads another machine that is available(parallel machines). So, I want this "signal" from singleProc. 

 

Thanks in advanced.

 

Débora

2 REPLIES
Solution
Solution
Accepted by topic author DeboraFernandes
‎01-20-2017 12:33 PM

Re: Remaining ProcTime call the gantry

The easiest way (without failures) would be to create a call in the entrance control of the SingleProc of a external method e.g.

 

ref(callGantry).methCall(?.procTime-20)

 

This will not work, if you want to take into account failures and/or pause. In the case of failure the remaining process time is recalculated by Plant Simulation (at the end of the failure).

 

So you need to check the calculated end of process (e.g. each 10 seconds) to find the right point in time.

This will work with a generator.

 

eg.

if singleProc.occupied then

   if singleProc.cont.remainingProcTime <= 20 then

      --call the gantry

   end;

end;

 


Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net


Re: Remaining ProcTime call the gantry

Thanks Steffen!

 

It was the first time that I used the Generator and it worked.