Jon Elson wrote: > Chris Radek wrote: >> 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. >
Huh? This approach _never_ alters G54 coordinates. IMO this seems like one of the few cases where G92 _is_ usefull. If there is an abort, just issue G92.1 to cancel the G92 offsets, and you get your G54 coords back unchanged. I think Chris's description may be a bit confusing because it assumes that you want the first fan pattern at G54X0Y0. You could put it anywhere. For example: G54 (turn on G54 coord system for this part) (cut things other than the fan holes, using G54 coords) G0 X3 Y4 (go to center of first fan location - using G54 coords) G92 X0 Y0 (turn on G92 and make the current location be X0Y0) (cut the first fan pattern) (could be a subroutine call, or just copy/pasted code, or whatever) G92.1 (cancel G92 offsets, return to G54 coordinates) G0 X3 Y-4 (go to center of second fan location - using G54 coords) G92 X0 Y0 (turn on G92 and make the current location be X0Y0) (cut the second fan pattern) (could be a subroutine, copy/pasted code, whatever) G92.1 (cancel G92 offsets, return to G54 coordinates) (continue other cutting using G54 coords) Note that I haven't tested this, if somebody sees an error, please speak up! Regards, John Kasunich ------------------------------------------------------------------------- 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 Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers