The way I would have done that is to write a gcode subroutine that took 
arguments of the center X and center Y points. (That's probably because 
I never did learn to use offsets -- other than through Axis).

If I were doing it today, I would also make sure that my gcode 
subroutine is general enough that it could be come a wizard. (I'm making 
good progress on GWiz.)

Ken

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
> 
> 
> -------------------------------------------------------------------------
> 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

-------------------------------------------------------------------------
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

Reply via email to