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.
Solved! Go to Solution.
The easiest way (without failures) would be to create a call in the entrance control of the SingleProc of a external method e.g.
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.
if singleProc.occupied then
if singleProc.cont.remainingProcTime <= 20 then
--call the gantry
freelance simulation specialist