Chris Radek wrote: > On Mon, Jul 07, 2008 at 10:19:44PM -0500, Jon Elson wrote: > >>Interesting how this comes up every July! Well, no question the >>touch-off menu in Axis works correctly, but I'm trying to figure >>out how to do it from within a G-code program. I will have to >>experiment with it some more next time I have the machine set up. >> >>And, yes, I have a piece of G-code laboriously created with >>Bobcad/CAM to cut out a pattern of 12 pie-shaped holes for a >>3.15" boxer fan. The center of the fan is coord (0,0) and I >>just set up a coord system for the offset to the center of the >>fan's location. > > > I see what you're trying to do now. I still suggest that G92 is the > way to do it. Say for clarity's sake you have your fan program in a > subroutine called O100 and it cuts around 0,0. You want a fan every > six inches. You have used touch-off to set the G54 system's origin > wherever you want the leftmost fan to be. > > O100 call (cut leftmost fan around G54 origin) > > G0 X0 Y0 (go back to the center of the first fan) > G92 X-6 (now set this point to be X-6) > O100 call (cut second fan at X0, which is 6 right of the first) > > G0 X0 Y0 (go to the center of the second fan) > G92 X-6 (now set this point to be X-6) > O100 call (cut third fan at X0, which is 12 right of the first) > > G92.1 (clear G92 offset to go back to the normal G54) > M2 Well, this will work, but it upsets the alignment of the G54 system, and you can't get that restored with a G54. So, I kind of like my scheme to set the G55 system relative to the G54 system by use of a G10 L2 P2 X#5211+(value) I still have to test this out, but it seems like it has to work, possibly with a little tweak.
Then, if I have to abort, the coordinate system is still safe. Jon ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
