I know you can get the current position, then do some math to move to a multiple of 3600...
# save the current absolute position in 5161-5166 G28.1 # move to a multiple of 3600. #5164 should have the current A position G0 A[ROUND[[#5164]/3600]*3600] # set A to 0 G? I just don't know how you 0 the coordinate system from Gcode. In the Axis source code, it uses G10 L2 to touch off, but I don't think that is what is wanted. > -----Original Message----- > From: Alan Battersby [mailto:alan.batter...@ntlworld.com] > Sent: Thursday, 1 October 2009 5:54 AM > To: emc-users@lists.sourceforge.net > Subject: [Emc-users] Question about using a rotary table > > Hi everyone, > > If I make a full turn from 0 to 360 degrees say on the C > axis, I want then to reset the coordinate system back to > angle zero degrees in order to save an "unwinding" movement > that occurs if I make a rapid move back to zero. For a > couple of rotations I could use g54 etc but there is > obviously a limit to this method. Perhaps I could use g92 but > can it be cumulatively used over and over again? > > I envisage cutting paths which require several depth and > width passes and this is multiplicative so 3 width passes and > 4 depth passes gives 12 rotations to be unwound when the path > is complete in order to go onto the next path and that is > with the pattern cut in a single rotation. I can generate > patterns that take up to 20 rotations to complete. > > So I am wondering which is the best way of resetting back to > the original zero position and can I avoid multiple > unwindings? On should I think in terms of many smaller > programs run sequentially? > > My apologies If this is an obvious beginners question I admit > it I am, band I could not see anything obvious in the emc > documentation. > > Thanks > Alan > > -------------------------------------------------------------- > ---------------- > Come build with us! The BlackBerry® Developer Conference > in SF, CA is the only developer event you need to attend this > year. Jumpstart your developing skills, take BlackBerry > mobile applications to market and stay ahead of the curve. > Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users