Excellent. G28 was what I was looking for. At least that allows me to remeasure the z offsets for the lathe tools pretty quickly - z travel into a touch plate.
Any suggestions on how to do this with the x axis? Currently, I mount some stock and machine a bit away and measure the diameter. Then I use the Axis "touch-off" command to set the tool offset. > -----Original Message----- > From: Andy Pugh [mailto:a...@andypugh.fsnet.co.uk] > Sent: Monday, 1 March 2010 4:59 AM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Touch off in gcode > > On 27 February 2010 23:33, Frank Tkalcevic > <fr...@franksworkshop.com.au> wrote: > > > Can this be done in Gcode? I can't see how to get the > current machine > > position in gcode. > > I found a clunky way to do it by using G92 X0 Z0 then reading > the offsets stored in #5211 and #5213. > > This assumes you want the current relative (working) > coordinates. If the absolute coordinates are better then you > can use G28.1 to store the current position in #5161-#5166. > > It might be possible to connect some HAL variables to a pair > of analogue input virtual pins to read them with M6. I > haven't looked into that as currently the G92 way works well > enough for my purposes. > > -- > atp > > -------------------------------------------------------------- > ---------------- > Download Intel® Parallel Studio Eval Try the new > software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users