This takes some special work for your g code, but I have done something remotely similar. What I did was use the G54-59 offset system and G file subroutines called from pyvcp.
If I have this straight in my mind what you are doing, it would be something like this. 1. Home to G54 x,y, and z. 2. Pre-define some variable(for Z offset) that is set using a g subroutine called from a pyvcp button/value combo. 3. Include a subroutine or code in your G code(set up your post processor to include it) that sets up G55 based on G54 + your Z offset, and sets the coordinate system to G55. 4. Include code ending to put back to coordinate G54. One downside to this, is that unless your chosen variable is persistent, it won't show up correctly in the axis preview. One workaround is to use one of the unused persistent variables from something, or the way I did it, I custom built linuxcnc to add some loose persistent variables. On Thu, Jan 17, 2013 at 6:38 PM, Kirk Wallace <kwall...@wallacecompany.com>wrote: > On Thu, 2013-01-17 at 17:19 -0500, Todd Zuercher wrote: > > > > Is there a simple way to add or subtract a small amount to the offset > > for an axis. It seems all the G10 commands replace the stored value, > > What I would like is a comand that adds to the old one regaurdless of > > machine position . Is there such a thing? How hard would it be to > > make one? > > I seem to recall something like this with the G92 code: > http://www.linuxcnc.org/docs/html/gcode/coordinates.html > > Sorry, if this is a red herring. > -- > Kirk Wallace > http://www.wallacecompany.com/machine_shop/ > http://www.wallacecompany.com/E45/index.html > California, USA > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122712 > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users