On 18 May 2010 01:01, John Kasunich <jmkasun...@fastmail.fm> wrote:

> I'll bet anyone a pint of their favorite beer that for any suggested
> implementation of run-from-line, I can come up with g-code that breaks
> it.

On the basis that I owe all the devs a fair number of beers already:

Pause is hit:
Save all modal parameters (spindle speeds, coolants, all variables-I
don't think we can allow changes to any variables)
Save the motion queue and the fraction of the current move completed.
Clear the queue
Allow one straight, linear jog out of the work and save its end point.
(If you can't get out in one linear jog, sorry)
Allow freeform jogging to do whatever you want to do.
Hit resume.
Rapid to the end of the "escape" jog.
Rapid to the saved position in relative coordinates.
Compare the current absolute position to the prior absolute position.
calculate any offsets.
      if there are any offsets, then add the offsets to all moves in
the old motion queue.
Restore the modal parameters.
Restore the motion queue.

Continue.

Right, off I go to the off-license to stock up on Black Sheep and
airmail envelopes.

-- 
atp

------------------------------------------------------------------------------

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to