Hi Jon,
I did this years ago. It is really pretty easy as the emc docs lay  
out modal G codes pretty  well. It really  isn't too many lines of code.
Unfortunately, I cannot find the source and at one time it was in the  
dropbox but could be retrieved today only if someone happened to
find an old archive.

IMO the way to do this is a script that runs the program to find  
current state. Makes Gcode out ot it. Cats this in front of the  
remaining lines of the
program and starts it ...  at the end of the run deletes the temp run  
file and you are done. Now to fine someone  bright enough to do this.
I can do the first part but not the rest or it would have happened by  
now. ;-)

Dave
On Feb 4, 2009, at 10:54 AM, Jon Elson wrote:

> Tom wrote:
>> Hi all,
>>
>> In an earlier post I commented on pausing Emc2/Axis in the middle  
>> of a cut in
>> order to clear swarf and the problem of using the "stop" button  
>> which turns off
>> the spindle and coolant: how to "set next line" and resume where  
>> you left off
>> when the spindle and coolant are off?  Alex J. replied that there  
>> was an ini
>> file setting that governed this behavior.
>>
>>
> Yup, this is a current problem in EMC2.  There is a way to set EMC to
> not turn off the spindle and coolant on mode changes.  But,  
> actually, in
> most cases you DO want it to turn them off, it is only in the "start
> from line" case that you want them turned back on.  I looked  
> through the
> docs for the parameter that controls this, but I couldn't find it.  I
> know there is something that can keep the spindle running with a mode
> change.  Does it require a recompile?  I vaguely remember such a thing
> being discussed.
>
> I still say that the way this SHOULD work is that during the scan  
> of the
> G-code while checking all modal states, spindle speed setting (S word)
> and spindle on-off (G03, G04, G05) should be held in a variable, and
> then that state should be established before the "start from line"  
> line
> is executed.  I admit, I totally do NOT know how to do this, and it
> would take me weeks of careful reading of all the relevant code to  
> even
> begin to think about doing this.
>
> Jon
>
> ---------------------------------------------------------------------- 
> --------
> Create and Deploy Rich Internet Apps outside the browser with Adobe 
> (R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills  
> and code to
> build responsive, highly engaging applications that combine the  
> power of local
> resources and data with the reach of the web. Download the Adobe  
> AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/ 
> adobe-com
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to