Hello Mauri,
If its any use, here is a 4th axis gear cutting file written by hand. Its for a really small watch gear replacement.
I found the machine set-up G codes important.
%
G17 G21 G40 G64 G90 G49
(Winding Gear Cutting Path)
(48 teeth cutter)
(No Z Motion - set to wheel centre line)
(X0 = 6mm out from front face of gear, cutter touching blank,Y0,Z0)
M03 S500
G1 A90.0 F300 (take up any lash - assuming starting at 0deg)
G0 X1.87 Y6.71
M98 P48 L48 (do roughing cycle 48 48 times)
M05 (Stop Spindle)
M30 (End and Rewind)
O48 (Gear Path Subroutine)
G1 X-0.72 Y6.71 F30
X-2.0 Y8.79
X-2.0 Y11.24
X-7.64 Y11.24
X-7.64 Y13.41
G0 X1.87 Y13.41
X1.87 Y6.71
G91 (INC MODE!!)
G1 A7.5 F300
G90 (ABS MODE!!)
M99 (Subroutine Return)
The Mach3 path is attached (I hope).
Does that help a little?
By the way, if anyone finds a free 4th axis code generator for milling radial shapes from a 3D model, please share!!
Woody.