> -----Original Message-----
> From: andy pugh [mailto:bodge...@gmail.com]
> Sent: May-22-20 6:01 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] CNC Helical Gear Cutting -- was RE: Face Milling
> 
> On Sat, 23 May 2020 at 01:38, John Dammeyer <jo...@autoartisans.com> wrote:
> 
> > So for LinuxCNC, if you have the A Axis and an encoder on the horizontal 
> > spindle, how do you tell the system to hob the gear?
> 
> The A axis isn't just connected to axis.4.motor-pos-cmd. Instead it is
> connected to the sum of the commanded position and the spindle revs /
> teeth (a simple calculation done in HAL).
> 
> It is only connected to the A command at all so that I can jog it to
> tweak the phase relationship if I ever need to re-cut a gear.
> 
> >  But ultimately what does the G-Code look like for hobbing that gear?
> 
> It's just a G1 Xnnn move to feed the gear through the hob. The hob
> moves at spindle/teeth time all the time.
> 
> --
> atp


Thanks Andy,
I'm studying what you provided in the zip file:  (Going to have to find the 
G-Code reference for some of this).

; [#1]feed [#2]distance [#3]cut [#4]finish [#5]end
o <hobbing> sub
        #10 = #<_x>
        #12 = #<_z>
        #30 = FUP[[#12 - #5 - #4] / #3]
        #3 = [[#12 - #5 - #4] / #30]
        (debug, #30 cuts of #3)
        #20 = [#12 - #3]
        G95 F#1 
        o100 while [#20 GE [#5]]
                G1 Z#20
                G1 X[#10 + #2]
                G0 Z[#20 + #3]
                G0 X #10
                G0 Z[#20 + #3]
                #20 = [#20 - #3]
        o100 endwhile
        G1 Z#5
        G1 X[#10 + #2]
        G0 Z#12
        G0 X#10
        M2
o <hobbing> endsub
M2



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to