1
General Mach Discussion / Re: Gear Cutting Wizard
« on: February 04, 2012, 11:37:28 AM »
Yes, it is the gear and spline cutting wizard. Tried setting the Y axis 0 as centre of shaft but still moves one side of the blank to the other so not sure what happening really
While I was waiting for reply I decided to have a go try and write something.
Based on the G code the gear wizard generates, I managed to write what is below to cut a 108 tooth gear. Never written any G code before and chuffed it works even though it's simple!
Ideally I would like to have 5 passes of cut depth 0.05mm, and rather than put each one in as separate lines in the code, can a sub program be entered to do these passes then move the A axis and repeat and how would I do it?
Thanks
M04 S4000
G00 G64 A0
M98 P0001 Q108
M5
M30
O0001
G01 Y1.5
G01 X-25 F50
G00 Y-3
G00 X0
G00 Y0
G01 Y2.54
G01 X-25 F50
G00 Y-3
G00 X0
G91 A3.3333
Y0
G90
M99
While I was waiting for reply I decided to have a go try and write something.
Based on the G code the gear wizard generates, I managed to write what is below to cut a 108 tooth gear. Never written any G code before and chuffed it works even though it's simple!
Ideally I would like to have 5 passes of cut depth 0.05mm, and rather than put each one in as separate lines in the code, can a sub program be entered to do these passes then move the A axis and repeat and how would I do it?
Thanks
M04 S4000
G00 G64 A0
M98 P0001 Q108
M5
M30
O0001
G01 Y1.5
G01 X-25 F50
G00 Y-3
G00 X0
G00 Y0
G01 Y2.54
G01 X-25 F50
G00 Y-3
G00 X0
G91 A3.3333
Y0
G90
M99