building your own cnc lathe, mill or routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf ·...

54
BUILDING YOUR OWN CNC LATHE, MILL OR ROUTER Martin Kennedy HMSC January 9, 2016

Upload: dangnhi

Post on 30-Jan-2018

219 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

BUILDING YOUR OWNCNC LATHE, MILL OR ROUTERMartin Kennedy

HMSCJanuary 9, 2016

Page 2: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

OUTLINECNC Overview What is CNC? Why CNC? Options for Getting into CNCSample CNC Machines Mill Lathe Commercial Conversion Custom

CNC Process Overall Process Conversational vs Conventional CNC Software Required G-codeHardware Control System Components Machine ModificationsCost

Page 3: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC OVERVIEW

Page 4: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC – COMPUTER NUMERICAL CONTROLAutomation of machine tools Operated by precisely programmed commands encoded on a storage medium As opposed to controlled manually by hand wheels or levers, or mechanically automated by cams aloneFirst built in the 1940’s and 1950’s Modification of existing tools Controlled by paper tapeTypically used by hobbyists for: Mills Lathes Routers Torch, plasma or laser cutting 3D Printing

Page 5: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

WHY CNC?Pros Can make complex parts Easy to manufacture a number of identical parts Machining fast compared to manual operations Not subject to calculation errors / high precision and repeatability “Built in” DROCons Requires more time for simple one-off parts due to programming time Steep learning curve Cost and complexity of support software required (CAD/CAM/control) Cost and complexity of hardware required Somewhat complicated to build and debug

Page 6: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

PARTS THAT LEND THEMSELVES TO CNC

Page 7: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

HOW CAN I GET INTO CNC?Commercial CNC machine Upside

Relatively inexpensive for older machines No need to design / install control equipment No need to modify hardware

Downside Relatively expensive for newer machine, although hobbyist equipment available (eg. Tormach) Older machines have:

Software obsolescence Software limitations Electronics obsolescence Can be complicated to repair, find parts and obtain service information Limited commercial support

Page 8: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

HOW CAN I GET INTO CNC?Conversion of commercial CNC machine Upside

Already has CNC hardware installed ball screws, drive motors, VFD, switches etc.

Downside Complicated to integrate hardware to new control system Some hardware may be non-functional or obsolete Parts may be very expensive Requires time commitment

Page 9: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

HOW CAN I GET INTO CNC?Conversion of non-CNC machine Upside

Can be less expensive Complete understanding of working of system Can build exactly what you want Custom specialized equipment can be built

Downside Complicated – lots of hardware and software options Requires large time commitment

Page 10: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

HOW CAN I GET INTO CNC?Kit Upside

Can be less expensive Design details all figured out and tested Parts and assistance available from vendor Great option for router Retrofit kits available for popular equipment

Downside Requires medium time commitment

Page 11: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

SAMPLE CNC MACHINES

Page 12: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC MILLRong Fu MillOriginally a commercial conversionControl system completely rebuilt4-axis controlMach3 controllerTouch screenPendantFeed up to 200 ipm!

4-Axis Milling

High Speed

Page 13: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC LATHEMonarch 10eeWork in progress

Page 14: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CONTROL SYSTEM

Page 15: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

COMMERCIAL CONVERSIONHardinge CHNC LatheCentroid ControlTurret tool holder w/8 slotsAutomatic stock feederAutomatic colletAutomatic finished part collector

Making Part

Page 16: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

SPECIALTY CNC – GLASS DRILLCustom MachineMakes tray plates for glass distillation columnDrills holes in glassReplaced lathe with index plateTakes about 1/3 as much time as latheMuch more flexible in hole placement

Page 17: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

OLD GLASS DRILLCraftsman LatheIndex PlateMotor driven drill on cross slide

Page 18: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

NEW GLASS DRILL24,000 rpm water-cooled motorChuck on cross slideCustom program

to generate G-code

Drilling

Page 19: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC PROCESS

Page 20: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC PROCESS

CAD CAM

GCode CNC

ControllerConversational

Page 21: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CONVERSATIONAL PROGRAMMINGBuilt in to most CNC controller packages, including hobbyist (such as Mach3)In many cases, eliminates need for CAD and CAM softwareSimple to learnCan be used for relatively simple tasks Basic shapes Drilling on patterns TappingMay not be suitable for complicated or 3D geometriesMay address all or most of your machining needs

Page 22: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CONVERSATIONAL PROGRAMMING

Page 23: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC PROCESS

CAD CAM

GCode CNC

ControllerConversational

Page 24: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CAD – COMPUTER AIDED DESIGNComputer version of paper drawingsExample Programs 2D

DraftSight –FREE! AutoCad - $900+

3D SketchUp – FREE! (but no path to CAM in free version) Fusion 360 – FREE! TurboCAD - $130 BobCAD - $395 Alibre / Geomagic – was $200, now $1,000+ Solidworks - $6,000+ Inventor - $6,000+

Many programs available is multiple versions, depending on desired functionality

Page 25: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

2D VS 3D 3D Milling

Page 26: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

DRAFTSIGHT – 2D

Page 27: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

FUSION 360 – 3D

Page 28: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC PROCESS

CAD CAM

GCode CNC

ControllerConversational

Page 29: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CAM – COMPUTER AIDED MANUFACTURINGUse of computer software to control machine toolsInput – CAD model, Output - G-codeRequires “Post Processor” to customize code generation to your particular equipmentExample Programs Fusion 360 – FREE! (for low use) CamBam - $150 Aspire - $350 - 2,000 (Router) BobCam - $2,000+ MasterCam - $6,000+Plugins are available for popular CAD software Typically less expensiveMost programs have simulators

Page 30: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CAMBAM

Page 31: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

MASTERCAM

Page 32: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC PROCESS

CAD CAM

GCode CNC

ControllerConversational

Page 33: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

G-CODENumerical control programming languageMost equipment manufacturers have their own variant May address special capabilities of machine Hence the need for Post ProcessorsTypical codes G – preparatory commands, such as move X or Y M – miscellaneous functions, such as turn on spindle F – set feed rate S – set speed

Page 34: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

SIMPLE G-CODE EXAMPLE

Page 35: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC PROCESS

CAD CAM

GCode CNC

ControllerConversational

Page 36: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC CONTROLLERConverts G-Code into electronic pulses to drive machineryExample software LinuxCNC – FREE! Mach3 - $175 Centroid - $5,000+, including hardware Proprietary (Fanuc, Hass, Bridgeport, etc)For hobbyist systems, includes ability to customize for your particular machinery

Page 37: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

MACH3

Page 38: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

LINUXCNC

Page 39: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

HARDWARE

Page 40: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC CONTROL SYSTEM

Input Devices

BreakoutBoard

PendantMPG

Computer

MotorDriver

SpindleVFD

Stepper orServer Motor

Page 41: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC MILL

Stepper Motors

VFD(in enclosure)

CNCElectronics

ComputerDisplay

PendantMPG

Page 42: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

CNC ELECTRONICS70VDC

Power Supply

12/5VDCPower Supply

Break OutBoardSmoothStepper

MotorDrivers

Page 43: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

MOTOR DRIVERInput is step signal and direction signal at 5V levelOutput is stepper motor drive signals at 50-80VDC (typically)May include ability to do micro-stepsI’ve used Gecko, Pacific Scientific and Chinese

Page 44: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

STEPPER MOTORTypically 200 steps per revolution, or 1.8° per stepSpecified in oz-in of torque / frame size Torque drops off as speed increases More ipm speed and greater table+stock mass require larger motor I used NEMA 34 w/975 oz-in for millMotor locked when not activeTypically drive a ball screw or Acme screw

Page 45: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

SERVO MOTORMore expensive alternate to stepper motorsUses feedback (“closed loop”) from rotary encoder to correct performance Typically quadrature encoding Encoder may provide index pulse – once per revolutionUnlike stepper motors, can self-correct on error or stallRequires different motor controllerSupported by LinuxCNCIndirect support by Mach3

Page 46: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

BREAKOUT BOARDTakes signals from computer and breaks them out to individual terminalsUsually include I/O w/Opto-isolation Relays VFD control (0-10V)Interfaces Parallel

most popular / widest support USB

Not much hardware available Timing issues

Ethernet Growing support

Page 47: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

A LITTLE MATHStep frequency calculation exampleStepper motor has 200 steps / revolutionMicrostepper controller card provides 8 microsteps / stepScrew is 8 turns / inch (or 1/8” per turn)We want to be able to move at 100 inches / minuteSo:Frequency = 200 * 8 * 8 * 100 / 60Frequency = 21.3 kHz

Page 48: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

MOTION CONTROLOffloads stepper signal generation from computer / Mach3Increases maximum step signal generation frequencyReduces jitterIncreases maximum movement speedMay offer alternate to parallel interface I used Smooth Stepper with USB interface

Page 49: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

PENDANTAllows control of CNC machineIncludes MPG (Manual Pulse Generator)Very useful for “Manual” MillingI use VistaCNC.com pendants

Page 50: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

VFD – VARIABLE FREQUENCY DRIVEMakes motor speed variableGreat for changing single phase 220VAC to 3 phaseFrequency typically 20Hz to 120Hz Very low or high frequencies can cause motor overheatingFor 1750 rpm motor => 580 to 3500 rpmTypically driven with 0-10VDC signalIncludes many control and monitoring options Ramp-up and ramp-down timing Currents, voltage

Page 51: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

MACHINE HARDWARE MODIFICATIONSTypical additions / replacements Ball screws Limit Switches

Home, Max/Min Brackets, pulleys, etc. for stepper motorsOptional VFD Flood / mist system Rotary encoder

Spindle, X-Y-Z servos Probe / digitizer

Page 52: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

COST

Page 53: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

SYSTEM COSTS

Sample costs.“Your mileage may vary!”

Page 54: Building Your Own CNC Lathe, Mill or Routerhomemetalshopclub.org/news/16/kennedy_on_cnc.pdf · Microsoft PowerPoint - Building Your Own CNC Lathe, Mill or Router.pptx Author: marti

QUESTIONS?