Back to main site

WatchGuy CNC Stuff

Wheel Cutting

ParameterValue
Direction of round stock
Wheel Cutter coming in from the front (-Y)
Number of Teeth
Depth of Gear (mm)
Number of cuts per tooth
Spindle Speed (rpm)
Horizontal Cutting Speed [mm/min]
Cutting Width (mm)

GCode

Looks good, download the code
(----------------------------------------------------------------)
(           Created by http://bwcmg.org.uk/cgi-bin/cnc           )
(           a free service provided by WatchGuy.co.uk            )
(                       no warranty given                        )
(             PLEASE ALWAYS TRY THIS IN WOOD FIRST!              )
(                 Cutting a wheel with 78 teeth                  )
(                  and a tooth depth of 0.15 mm                  )
(----------------------------------------------------------------)
(                            Preamble                            )
G90 G40
G53 G00 G49
G21 G17
M3 S24000
(                Wait 5s for spindle to start up                 )
G4 P5
(----------------------------------------------------------------)
(                     moving the cutter back                     )
G0 Y-0.1
(                     tooth #1 0.000 degrees                     )
G0 A0.000
G0 X-2
(              moving in by 0.15 for tooth cut 1/1               )
G1 Y+0.15 F20
(              now cutting the tooth with speed 20               )
G1 X+2 F20
(                     moving the cutter back                     )
G0 Y-0.1
(----------------------------------------------------------------)
(                     tooth #2 4.615 degrees                     )
G0 A4.615
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                     tooth #3 9.231 degrees                     )
G0 A9.231
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #4 13.846 degrees                     )
G0 A13.846
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #5 18.462 degrees                     )
G0 A18.462
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #6 23.077 degrees                     )
G0 A23.077
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #7 27.692 degrees                     )
G0 A27.692
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #8 32.308 degrees                     )
G0 A32.308
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #9 36.923 degrees                     )
G0 A36.923
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #10 41.538 degrees                    )
G0 A41.538
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #11 46.154 degrees                    )
G0 A46.154
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #12 50.769 degrees                    )
G0 A50.769
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #13 55.385 degrees                    )
G0 A55.385
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #14 60.000 degrees                    )
G0 A60.000
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #15 64.615 degrees                    )
G0 A64.615
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #16 69.231 degrees                    )
G0 A69.231
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #17 73.846 degrees                    )
G0 A73.846
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #18 78.462 degrees                    )
G0 A78.462
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #19 83.077 degrees                    )
G0 A83.077
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #20 87.692 degrees                    )
G0 A87.692
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #21 92.308 degrees                    )
G0 A92.308
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                    tooth #22 96.923 degrees                    )
G0 A96.923
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #23 101.538 degrees                    )
G0 A101.538
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #24 106.154 degrees                    )
G0 A106.154
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #25 110.769 degrees                    )
G0 A110.769
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #26 115.385 degrees                    )
G0 A115.385
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #27 120.000 degrees                    )
G0 A120.000
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #28 124.615 degrees                    )
G0 A124.615
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #29 129.231 degrees                    )
G0 A129.231
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #30 133.846 degrees                    )
G0 A133.846
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #31 138.462 degrees                    )
G0 A138.462
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #32 143.077 degrees                    )
G0 A143.077
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #33 147.692 degrees                    )
G0 A147.692
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #34 152.308 degrees                    )
G0 A152.308
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #35 156.923 degrees                    )
G0 A156.923
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #36 161.538 degrees                    )
G0 A161.538
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #37 166.154 degrees                    )
G0 A166.154
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #38 170.769 degrees                    )
G0 A170.769
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #39 175.385 degrees                    )
G0 A175.385
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #40 180.000 degrees                    )
G0 A180.000
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #41 184.615 degrees                    )
G0 A184.615
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #42 189.231 degrees                    )
G0 A189.231
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #43 193.846 degrees                    )
G0 A193.846
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #44 198.462 degrees                    )
G0 A198.462
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #45 203.077 degrees                    )
G0 A203.077
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #46 207.692 degrees                    )
G0 A207.692
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #47 212.308 degrees                    )
G0 A212.308
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #48 216.923 degrees                    )
G0 A216.923
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #49 221.538 degrees                    )
G0 A221.538
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #50 226.154 degrees                    )
G0 A226.154
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #51 230.769 degrees                    )
G0 A230.769
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #52 235.385 degrees                    )
G0 A235.385
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #53 240.000 degrees                    )
G0 A240.000
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #54 244.615 degrees                    )
G0 A244.615
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #55 249.231 degrees                    )
G0 A249.231
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #56 253.846 degrees                    )
G0 A253.846
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #57 258.462 degrees                    )
G0 A258.462
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #58 263.077 degrees                    )
G0 A263.077
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #59 267.692 degrees                    )
G0 A267.692
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #60 272.308 degrees                    )
G0 A272.308
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #61 276.923 degrees                    )
G0 A276.923
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #62 281.538 degrees                    )
G0 A281.538
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #63 286.154 degrees                    )
G0 A286.154
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #64 290.769 degrees                    )
G0 A290.769
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #65 295.385 degrees                    )
G0 A295.385
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #66 300.000 degrees                    )
G0 A300.000
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #67 304.615 degrees                    )
G0 A304.615
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #68 309.231 degrees                    )
G0 A309.231
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #69 313.846 degrees                    )
G0 A313.846
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #70 318.462 degrees                    )
G0 A318.462
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #71 323.077 degrees                    )
G0 A323.077
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #72 327.692 degrees                    )
G0 A327.692
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #73 332.308 degrees                    )
G0 A332.308
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #74 336.923 degrees                    )
G0 A336.923
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #75 341.538 degrees                    )
G0 A341.538
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #76 346.154 degrees                    )
G0 A346.154
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #77 350.769 degrees                    )
G0 A350.769
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(                   tooth #78 355.385 degrees                    )
G0 A355.385
G0 X-2
G1 Y+0.15 F20
G1 X+2 F20
G0 Y-0.1
(----------------------------------------------------------------)
(   teeth all done; let's move back and power down the spindle   )
G0 X0
M5

Method

The set-up is as follows:
The wheel to be cut is held in the fourth axis motor, with the outer wheel centre facing the direction chosen. The wheel cutter is coming in from the direction indicated.
Now move the wheel cutter in so that is just touches the round stock in the middle of the wheel, and set everything to 0, and start the program.
Note that the cutter will be moved by "Cutting Width" to either side of the middle, so you effectively get a cut length from -width to +width around the middle position that you indicated as 0.