Free 186 More Best Homemade Tools eBook:  
New: 300+ fresh build posts/day from 275 forums → BuildThreads.com

User Tag List

Results 1 to 6 of 6

Thread: CNC Fourth Axis Build

  1. #1
    Supporting Member
    Join Date
    Dec 2015
    Posts
    24
    Thanks
    1
    Thanked 58 Times in 15 Posts

    bbutcher85's Tools

    CNC Fourth Axis Build

    This versatile tool is a great addition to any CNC milling machine, especially a knee mill.
    It can be used to cut gears, add splines to shafts, and to engrave on a cylindrical surface. The assembly uses a NEMA32 stepper motor; the type with an encoder is preferred. A two-step timing belt drive system provides increased angular resolution, and tapered roller bearings provide an easily adjustable zero axial endplay. A removable mounting plate can be attached to mount the axis either horizontal or vertical. The compact size easily fits onto the milling machine table. A 4 axis Mach3 or Mach4 controller system can be utilized to drive the fourth axis.

    The basis for the tool is an ER40 collet chuck with a 4-inch long 1-inch diameter straight shank. The end of the shank is likely threaded for an M12 bolt. ER40 Collets are available in either inch or metric sizes, and the metric set will hold from 3mm to 26mm diameter round parts. Since the collet sizes overlap, any diameter within this range can be held, either metric or inch size.


    The 1-inch diameter shank is well suited to mount tapered roller bearings; L44643/L44610 sometimes called L44643/10 set will fit. These are inexpensive bearings often used on mowers. The OD of the outer race is 1.980.

    The housing is machined from a rectangular steel tube 4 X 6 inch, with a 0.375 wall thickness, having a cut-out on the side for motor clearance, and both ends drilled, tapped, and dowel pinned to fit the mounting plate or vertical adapter plates.

    CNC Fourth Axis Build-er40-spindle-housing.jpg

    The housing is mounted to a steel mount plate, with slots to fit the milling machine. This plate is drilled and holes to fit the dowels are added to allow accurate repeat alignment. Two vertical adapter plates can be added, and the mount plate is drilled to attach to these as well, to mount the spindle in a vertical orientation if desired. A rectangular bar to fit the slots in the milling machine table may be added under the mount plate to simplify alignment if desired.

    CNC Fourth Axis Build-vertical-horiz-mounting.jpg

    The housing has a cutout on one side for motor clearance. The ends are drilled, tapped, and dowel pinned to fit the mount plate and the vertical adapter plates if used. I selected GX16 aviation connectors for the interface to the motor driver. Since I used a stepper motor/encoder combo, I used a GX16-4 for the motor leads, and a GX16-5 for the encoder. This ensures always getting them plugged in correctly to the controller.
    The ring for the bearing is rough machined and welded to the backside of the housing; a motor plate (not shown) is machined and welded to the front side of the housing. After welding, the ring and motor plate are bored to final size for the tapered roller bearings; carefully aligning the housing to ensure it is perpendicular to the bearing bores.


    CNC Fourth Axis Build-housing-details.jpg

    The motor, timing pulleys, and belt tensioners are mounted onto a motor plate after it is welded onto the housing. The timing pulleys I chose were L12 and L32 for the final drive, with XL10 & XL60 for the motor drive. This combination provides a speed reduction of 16 to 1, and increases the stepper motor’s 200 steps per revolution to 3200 steps per revolution. This calculates to be 0.1 degrees per step. Using micro stepping on the stepper motor driver if desired may increase this further.

    The L12 pulley is dowel pinned to the XL60 pulley to provide a zero backlash connection. The XL32 pulley is also dowel pinned to the ER40 collet holder shank for a zero backlash connection. A spacer may be required between the ER40 shank end and the L32 pulley to provide the correct alignment of the two L series pulleys. The XL60 pulley utilizes a flat roller thrust bearing with hardened washers between the pulley and a recess in the motor plate for a low friction fit. The recess depth plus the thickness of the thrust bearing, positions the XL32 pulley for clearance between the motor plate and the L32 pulley. The idler pulley assembly (L12/XL60) is held in place with a ½-20 bolt and washer, threaded into the motor plate. The L32 pulley is attached to the ER40 shank with a metric bolt as required to match the thread in the shank. It may be advisable to use Belleville or wave washers under both bolt heads to apply a spring preload to the tapered roller bearings and the flat roller thrust bearing.

    The motor is mounted to the backside of the motor plate, with the XL10 pulley locked to the motor shaft with a setscrew on the shaft flat. Position this pulley axially for alignment with the XL60 pulley.


    CNC Fourth Axis Build-motor-plate-detail.jpg

    Belt tensioners are added to the motor plate to eliminate any slack in the timing belts and thus eliminate backlash in the speed reducer assembly. I used one or two ball bearings on an eccentric or adjustable arm to apply tension to the belts. A 602-RS bearing is suitable. For timing belts I selected a wider belt for the L series pulleys since it will see more torque than the XL series pulleys. This required using two bearings for the tensioner on that belt.

    CNC Fourth Axis Build-belt-tensioners.jpg

    Mount the fourth axis assembly on the milling machine table. In order to calibrate the unit, I fabricated an arm on a shaft, held in the collet. For one calibration I wanted the “A” axis to be calibrated in degrees, with 360 degrees of travel being exactly one revolution. I placed a dial indicator on the machine spindle and zeroed it touching the end of the arm. I then rotated the “A” axis 360 degrees (a 360 f 1000), and measured the vertical position of the end of the arm. I tweaked the motor tuning until one revolution returned the arm to the same vertical position.

    To use the fourth axis for engraving on a cylindrical surface, a more useful measurement of the A axis rotation is the circumferential distance traveled by the outside diameter of the part. For example a 1 inch diameter part would travel pi (3/14159) times the diameter, or 3.14159 inches along the surface. You can either adjust the height of your letters, or change the calibration of the motor tuning to travel this distance for one revolution of the motor. For example with a 1-inch diameter, to achieve 0.25-inch letter height, you would need to travel 28.65 degrees.

    I needed a M1 48 tooth spur gear to replace a broken gear in my lathe. I wrote a simple G-Code program, installed the M1 gear cutter, and attached the gear blank to the end of an arbor in the collet holder. I used a combination of variables, subroutines, absolute and relative positioning to write the G-Code.

    %
    O100
    #100 = 48 (number of teeth on gear)
    #101 = [360 / #100] (degrees per tooth)
    #102 = 0 (present angle)
    #103 = 0 (new angle)
    #104 = 0.089 (depth of cut)
    #105 = -0.029666 (incremental Y change)
    G20 G40 G49 G54 G80 G90 G91.1

    G1 X-1.5 F16 (set feed rate)

    G1 X -1.5 Y 0
    M98 P1000 L [#100 ] (go to subroutine L times)
    M30
    O1000 (subroutine)
    G1 X-1.5
    Y #105 (1/3 depth of cut)
    X 0
    X-1.5
    G91
    Y #105
    G90
    X 0 (2/3 depth of cut)
    X -1.5
    G91
    G1 Y #105
    G90
    X 0 (full depth of cut)
    X-1.5
    X 0 (spring pass)
    X-1.5 (back to start)
    Y 0 (Y back to zero)
    G91 (incremental mode)
    G0 A #101
    G90 (back to absolute mode)
    G4 P1 (wait 1 second)

    M99 (end of routine)

    (END OF PROGRAM)
    %

  2. The Following 3 Users Say Thank You to bbutcher85 For This Useful Post:

    emu roo (Mar 20, 2026), Jon (Mar 19, 2026), nova_robotics (Mar 20, 2026)

  3. #2
    Supporting Member
    Join Date
    Sep 2018
    Posts
    2,919
    Thanks
    13,818
    Thanked 1,776 Times in 999 Posts

    nova_robotics's Tools
    That's so cool. I'm working on a 4th axis right now for but for a Fanuc control. I'll post it here one I'm done. That's really cool. I think Mach3/4 is so much more versatile than crappy old Fanuc controls.

  4. The Following User Says Thank You to nova_robotics For This Useful Post:

    emu roo (Mar 20, 2026)

  5. #3
    Supporting Member Saltfever's Avatar
    Join Date
    Apr 2012
    Location
    NorCal
    Posts
    473
    Thanks
    430
    Thanked 219 Times in 159 Posts

    Saltfever's Tools
    The overall design and especially the compactness of the double belt drive is nice. And thanks for fabrication suggestions like boring the two bearing bores together! Since I am trying to nail down a design I have questions that are not meant to be negative or critical in any way.

    There is no brake which means the “stiffness” or holding power is dependent on the belt tensioners, belt composition, and the motor’s holding torque. Have you cut steel and what was the result? Or, any insight to what could be changed? The numbers on the drawing are not the same as your text. Probably typos but should the overall ratio be 18:1 x 200 steps thus an 0.1 degree resolution? Thanks also for the beautiful drawings.


  6. The Following User Says Thank You to Saltfever For This Useful Post:

    nova_robotics (Mar 26, 2026)

  7. #4
    Content Editor
    Supporting Member
    DIYer's Avatar
    Join Date
    Aug 2013
    Posts
    3,049
    Thanks
    848
    Thanked 2,969 Times in 2,523 Posts


    Thanks bbutcher85! We've added your CNC Fourth Axis to our CNC category,
    as well as to your builder page: bbutcher85's Homemade Tools. Your receipt:



    New: BuildThreads.com - 300+ build posts/day (with photos)

  8. #5
    Supporting Member
    Join Date
    Dec 2015
    Posts
    24
    Thanks
    1
    Thanked 58 Times in 15 Posts

    bbutcher85's Tools

    Results in steel

    I did cut a spline on a steel shaft to fit a steering wheel. It was only about 1/2" diameter, and I used an 1/8" end mill, so the cutting force was not enough to be a problem.
    CNC Fourth Axis Build-20260211_123825.jpg CNC Fourth Axis Build-20260211_123756.jpg

    To some extent the stiffness would depend on how stiff your machine is. I have considered adding a brake, perhaps something along the lines of a bicycle disc brake with an air cylinder to actuate it.
    Bob

  9. The Following User Says Thank You to bbutcher85 For This Useful Post:

    nova_robotics (Apr 2, 2026)

  10. #6
    Supporting Member Saltfever's Avatar
    Join Date
    Apr 2012
    Location
    NorCal
    Posts
    473
    Thanks
    430
    Thanked 219 Times in 159 Posts

    Saltfever's Tools
    Tony Foale posted a novel brake idea here. Thanks for the update and the pic.



    2,500+ Tool Plans

  11. The Following User Says Thank You to Saltfever For This Useful Post:

    nova_robotics (Apr 3, 2026)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •