SlideShare a Scribd company logo
1 of 49
Manufacturing Processes
CNC part programming
How CNC machine performs an operation on the work
piece?
To perform an operation we have to write a Part Program
which can be prepared manually(generally for small
programs) or automatically prepared(for complex
geometrical shapes) with the help of software packages.
The program need to specify:
- Which tool should be loaded on the machine spindle?
- What are the cutting conditions (speed, feed, coolant ON/OFF etc.)?
- What is the start point and end point of a motion segment?
- How to move the tool with respect to a work piece in a machine?
Program Structure
 The CNC machine receives a series of commands via CNC program through the
machine control.
 These commands are structured using letters and numbers such as G00 and S2300.
 There are some code differences between the various machine tool and control
manufactures.
 Each machine and control manufacturer provides a specific manual listing all the
commands.
 Most letter address codes fall into two categories: modal or non modal.
 Non modal codes are command codes that are only active in the block in
which they are specified and executed.
 Modal codes are command codes that once executed will remain active
throughout the program until another code in the same group overrides or
cancel it.
Address
Preparatory Function (G Address)
Basic codes and terms used are:
o Preparatory Codes (G ) for initial machining setup and
operating conditions.
o Miscellaneous Codes ( M) for on/off of coolant flow, spindle
rotation etc.
o Spindle Speed (S)
o Feed Rate (F)
o Tool number (T)
Cutting speed (SFM) and spindle speed (RPM) for hole
operation:
 The cutting speed is defined as the speed of any point on the
circumference of the cutter.
 It is usually expressed in surface feet per minute ( SFM).
 The tool speed and cutter diameter selected will be used to
calculate the spindle RPM.
 The cutting speed (SFM) selected for a particular hole operation will
depend on:
o Type of hole operation
o Material type
o Material hardness
o Hole depth
o Type of tool to be used
o Type of coolant system used
o Rigidity of the tool
 For reaming the cutting speeds ( SFM) are approximately one-half of what
is used for drilling.
 The cutting speeds (SFM) for tapping are usually much slower than for
drilling.
 Counter boring and countersinking speeds are approximately one-forth f
what is used for drilling.
 The cutting speeds of boring are approximately five times faster than for
drilling.
 For a drilling operation of mild steel plate:
o Part material is mild steel.
o Drill diameter is 0.750 inch
o Drill material is HSS.
o Choose cutting speed (CS), say 80 SFM
o RPM= ( 4 x CS)/ DIA = (4 x 80)/0.75 = 427 RPM
Cutting speed (SFM) and spindle speed (RPM) for hole
operation:
Tool Feed rate (IPR and IPM)for hole operations:
 The tool feed rate for hole operation (IPR) is defined as the amount (
inches) at which the tool advances into the work per one revolution.
 IPM= IPR x RPM ( of spindle).
• Tool speed ( RPM) for milling operations:
o Part material is mild steel
o Use a 4 inch cutter with 6 inserts ( coated carbide).
o Choose cutting speed (CS), say 700 SFM.
o RPM= 4 x CS/ Dia
• Tool Feed rate ( IPM) for milling operations:
o The tool feed rate, which is expressed in IPM, is defined as the rate at which
the cutter advances into the work.
IPM=RPM x T x N
o RPM= speed of milling cutter.
o T=feed per tooth (FPT)
o N= number of inserts on the milling cutter.
Rapid Traverse and feed moves:
G00Rapid Movement:
o The G00 rapid code is primarily used to move the X-, Y-, or Z- axis as fast as
possible.
o Therefore, after the G00 code an axis or combination of axes follows.
o G00 code is modal and will remain active for each subsequent line until it
is canceled.
o Therefore, any axis letter present in a subsequent line of the CNC program
will move in rapid traverse mode whether the G00 code is present or not.
o The G00 code is canceled by either the G01, G02, or G03 code.
Rapid Positioning
G00 X- axis Rapid Traverse Description for VMC:
G00 Y- axis Rapid Traverse Description for VMC:
G00 Z- axis Rapid Traverse Description for VMC:
G00 X- axis Rapid Traverse Description for HMC:
G00 Y- axis Rapid Traverse Description for HMC:
G00 Z- axis Rapid Traverse Description for HMC:
G01 Feed Movement: (Linear Interpolation)
o The G01 feed code is primarily used to move the X-, Y-, Z- axis at a
predetermined feed rate to cut the work piece.
o For the G01 code a feed rate value is required.
o The G01 code and the F code are also modal and will remain active for
each subsequent line until they are changed or canceled.
o feed move are mainly executed for cutting the part material, and
therefore the spindle must be rotating prior to reading the G01 command
code.
Linear Interpolation
G01 X- axis Feed Move Description for VMC:
G01 Y- axis Feed Move Description for VMC:
G01 Z- axis Feed Move Description for VMC:
G28 Machine Home Return:
o The CNC machine must be homed in all axes ( X,Y, Z, and B for HMC) before
the CNC program can be cycled.
o The CNC machine axes can be homed manually with the control, or
automatically with the G28 code.
Part Programming
M03, M04 and S spindle function code:
o M03 code is used to rotate the spindle in a CW direction.
o M04 code is used to rotate the spindle in a CCW direction.
o To start the spindle rotation, the CNC program must read the S code
and RPM value. Either before or at the same time that the M code
is read.
o S1525 M03
M05 spindle stop code:
o The M05 code is used in situation when the spindle rotation needs to be
stopped during the automatic execution of the CNC program.
o The M05 spindle stop code is required in situations such as the following:
o Before tool changes
o To inspect a machines feature size.
o To remove machining metal chips
o To unload or load a workpiece
o To manually change a tool.
o There are also situations when the spindle rotation is stopped without an
M05 code. The spindle rotation is stopped internally by the MCU in
situations such as the following:
o When the emergency stop button is pressed.
o During the execution of an automatic tool change.
o During the execution of some canned cycles.
Circular Interpolation:
o Circular interpolation is used to cut circular features on a work piece.
o To perform circular interpolation basically requires a code ( G02 or G03),
the arc radius size, and the starting and ending coordinates of the arc.
o For CNC machining centers, circular interpolation is typically performed
using an end mill cutter to machine the work piece.
Circular Interpolation:
Circular Interpolation
Cutter Compensation
Cutter Compensation
Cutter Compensation
Program Example 1
CNC Turning Program
CNC Turning Program

More Related Content

What's hot

Manufacturing Technology -II Unit 1
Manufacturing Technology -II Unit 1Manufacturing Technology -II Unit 1
Manufacturing Technology -II Unit 1Ravi Sankar
 
Gd&T Presentation1111
Gd&T Presentation1111Gd&T Presentation1111
Gd&T Presentation1111zuhaib ansar
 
CNC Milling
CNC MillingCNC Milling
CNC Millingendika55
 
Tool compensationCNC
Tool compensationCNCTool compensationCNC
Tool compensationCNCArpit Agarwal
 
NC pogramming
NC pogrammingNC pogramming
NC pogrammingillpa
 
SURFACE MODELLING .pptx
SURFACE MODELLING .pptxSURFACE MODELLING .pptx
SURFACE MODELLING .pptxjntuhcej
 
Chamfer in CNC Programming
Chamfer in CNC ProgrammingChamfer in CNC Programming
Chamfer in CNC ProgrammingAmir Dawa
 
Chapter 4 cnc part programming
Chapter 4 cnc part programmingChapter 4 cnc part programming
Chapter 4 cnc part programmingRAHUL THAKER
 
CNC principle & machining centre
CNC principle & machining centreCNC principle & machining centre
CNC principle & machining centreNirmalRaja3
 
Force analysis of lathe tool dynamometer
Force analysis of lathe tool dynamometerForce analysis of lathe tool dynamometer
Force analysis of lathe tool dynamometersathish sak
 
CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1Prof. S.Rajendiran
 

What's hot (20)

Cnc lab manual
Cnc lab manualCnc lab manual
Cnc lab manual
 
Manufacturing Technology -II Unit 1
Manufacturing Technology -II Unit 1Manufacturing Technology -II Unit 1
Manufacturing Technology -II Unit 1
 
Gd&T Presentation1111
Gd&T Presentation1111Gd&T Presentation1111
Gd&T Presentation1111
 
Cnc lecture1
Cnc lecture1Cnc lecture1
Cnc lecture1
 
CNC Milling
CNC MillingCNC Milling
CNC Milling
 
CNC
CNCCNC
CNC
 
Tool compensationCNC
Tool compensationCNCTool compensationCNC
Tool compensationCNC
 
Numeric control
Numeric controlNumeric control
Numeric control
 
5 g-code
5   g-code5   g-code
5 g-code
 
NC pogramming
NC pogrammingNC pogramming
NC pogramming
 
SURFACE MODELLING .pptx
SURFACE MODELLING .pptxSURFACE MODELLING .pptx
SURFACE MODELLING .pptx
 
Chamfer in CNC Programming
Chamfer in CNC ProgrammingChamfer in CNC Programming
Chamfer in CNC Programming
 
Cnc milling
Cnc millingCnc milling
Cnc milling
 
Chapter 4 cnc part programming
Chapter 4 cnc part programmingChapter 4 cnc part programming
Chapter 4 cnc part programming
 
CNC principle & machining centre
CNC principle & machining centreCNC principle & machining centre
CNC principle & machining centre
 
Data standard - IGES
Data standard - IGESData standard - IGES
Data standard - IGES
 
Apt programming
Apt programmingApt programming
Apt programming
 
Force analysis of lathe tool dynamometer
Force analysis of lathe tool dynamometerForce analysis of lathe tool dynamometer
Force analysis of lathe tool dynamometer
 
CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1
 
Cnc lathe
Cnc latheCnc lathe
Cnc lathe
 

Similar to Cnc program writing

Similar to Cnc program writing (20)

CNC part programming
CNC part programmingCNC part programming
CNC part programming
 
Production automation lab
Production automation labProduction automation lab
Production automation lab
 
CNC PART PROGRAMMING.pptx
CNC PART PROGRAMMING.pptxCNC PART PROGRAMMING.pptx
CNC PART PROGRAMMING.pptx
 
internship presentation.pptx
internship presentation.pptxinternship presentation.pptx
internship presentation.pptx
 
Manual part programming
Manual part programmingManual part programming
Manual part programming
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
CNC1 (1).ppt
CNC1 (1).pptCNC1 (1).ppt
CNC1 (1).ppt
 
CNC Training.ppt
CNC Training.pptCNC Training.ppt
CNC Training.ppt
 
Cnc1
Cnc1Cnc1
Cnc1
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
(me81056) face milling on cnc machine
(me81056) face milling on cnc machine(me81056) face milling on cnc machine
(me81056) face milling on cnc machine
 
Cnc programming basics.doc
Cnc programming basics.docCnc programming basics.doc
Cnc programming basics.doc
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
CNC Programmingmodifies1
CNC Programmingmodifies1CNC Programmingmodifies1
CNC Programmingmodifies1
 
CNC.ppt
CNC.pptCNC.ppt
CNC.ppt
 
Me3m02 expt p3
Me3m02 expt p3Me3m02 expt p3
Me3m02 expt p3
 
CNC Maching.pptx
CNC Maching.pptxCNC Maching.pptx
CNC Maching.pptx
 
introduction to cnc machines
 introduction to cnc machines introduction to cnc machines
introduction to cnc machines
 
CNC Turning and Milling centres
CNC Turning and Milling centresCNC Turning and Milling centres
CNC Turning and Milling centres
 
Cam presentation..
Cam presentation..Cam presentation..
Cam presentation..
 

Recently uploaded

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 

Cnc program writing

  • 2. How CNC machine performs an operation on the work piece? To perform an operation we have to write a Part Program which can be prepared manually(generally for small programs) or automatically prepared(for complex geometrical shapes) with the help of software packages. The program need to specify: - Which tool should be loaded on the machine spindle? - What are the cutting conditions (speed, feed, coolant ON/OFF etc.)? - What is the start point and end point of a motion segment? - How to move the tool with respect to a work piece in a machine?
  • 4.  The CNC machine receives a series of commands via CNC program through the machine control.  These commands are structured using letters and numbers such as G00 and S2300.  There are some code differences between the various machine tool and control manufactures.  Each machine and control manufacturer provides a specific manual listing all the commands.  Most letter address codes fall into two categories: modal or non modal.  Non modal codes are command codes that are only active in the block in which they are specified and executed.  Modal codes are command codes that once executed will remain active throughout the program until another code in the same group overrides or cancel it.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Basic codes and terms used are: o Preparatory Codes (G ) for initial machining setup and operating conditions. o Miscellaneous Codes ( M) for on/off of coolant flow, spindle rotation etc. o Spindle Speed (S) o Feed Rate (F) o Tool number (T)
  • 14.
  • 15.
  • 16.
  • 17. Cutting speed (SFM) and spindle speed (RPM) for hole operation:  The cutting speed is defined as the speed of any point on the circumference of the cutter.  It is usually expressed in surface feet per minute ( SFM).  The tool speed and cutter diameter selected will be used to calculate the spindle RPM.  The cutting speed (SFM) selected for a particular hole operation will depend on: o Type of hole operation o Material type o Material hardness o Hole depth o Type of tool to be used o Type of coolant system used o Rigidity of the tool
  • 18.  For reaming the cutting speeds ( SFM) are approximately one-half of what is used for drilling.  The cutting speeds (SFM) for tapping are usually much slower than for drilling.  Counter boring and countersinking speeds are approximately one-forth f what is used for drilling.  The cutting speeds of boring are approximately five times faster than for drilling.  For a drilling operation of mild steel plate: o Part material is mild steel. o Drill diameter is 0.750 inch o Drill material is HSS. o Choose cutting speed (CS), say 80 SFM o RPM= ( 4 x CS)/ DIA = (4 x 80)/0.75 = 427 RPM Cutting speed (SFM) and spindle speed (RPM) for hole operation:
  • 19. Tool Feed rate (IPR and IPM)for hole operations:  The tool feed rate for hole operation (IPR) is defined as the amount ( inches) at which the tool advances into the work per one revolution.  IPM= IPR x RPM ( of spindle).
  • 20. • Tool speed ( RPM) for milling operations: o Part material is mild steel o Use a 4 inch cutter with 6 inserts ( coated carbide). o Choose cutting speed (CS), say 700 SFM. o RPM= 4 x CS/ Dia • Tool Feed rate ( IPM) for milling operations: o The tool feed rate, which is expressed in IPM, is defined as the rate at which the cutter advances into the work. IPM=RPM x T x N o RPM= speed of milling cutter. o T=feed per tooth (FPT) o N= number of inserts on the milling cutter.
  • 21.
  • 22. Rapid Traverse and feed moves: G00Rapid Movement: o The G00 rapid code is primarily used to move the X-, Y-, or Z- axis as fast as possible. o Therefore, after the G00 code an axis or combination of axes follows. o G00 code is modal and will remain active for each subsequent line until it is canceled. o Therefore, any axis letter present in a subsequent line of the CNC program will move in rapid traverse mode whether the G00 code is present or not. o The G00 code is canceled by either the G01, G02, or G03 code.
  • 24. G00 X- axis Rapid Traverse Description for VMC:
  • 25. G00 Y- axis Rapid Traverse Description for VMC:
  • 26. G00 Z- axis Rapid Traverse Description for VMC:
  • 27. G00 X- axis Rapid Traverse Description for HMC:
  • 28. G00 Y- axis Rapid Traverse Description for HMC:
  • 29. G00 Z- axis Rapid Traverse Description for HMC:
  • 30. G01 Feed Movement: (Linear Interpolation) o The G01 feed code is primarily used to move the X-, Y-, Z- axis at a predetermined feed rate to cut the work piece. o For the G01 code a feed rate value is required. o The G01 code and the F code are also modal and will remain active for each subsequent line until they are changed or canceled. o feed move are mainly executed for cutting the part material, and therefore the spindle must be rotating prior to reading the G01 command code.
  • 32. G01 X- axis Feed Move Description for VMC:
  • 33. G01 Y- axis Feed Move Description for VMC:
  • 34. G01 Z- axis Feed Move Description for VMC:
  • 35. G28 Machine Home Return: o The CNC machine must be homed in all axes ( X,Y, Z, and B for HMC) before the CNC program can be cycled. o The CNC machine axes can be homed manually with the control, or automatically with the G28 code.
  • 36. Part Programming M03, M04 and S spindle function code: o M03 code is used to rotate the spindle in a CW direction. o M04 code is used to rotate the spindle in a CCW direction. o To start the spindle rotation, the CNC program must read the S code and RPM value. Either before or at the same time that the M code is read. o S1525 M03
  • 37. M05 spindle stop code: o The M05 code is used in situation when the spindle rotation needs to be stopped during the automatic execution of the CNC program. o The M05 spindle stop code is required in situations such as the following: o Before tool changes o To inspect a machines feature size. o To remove machining metal chips o To unload or load a workpiece o To manually change a tool. o There are also situations when the spindle rotation is stopped without an M05 code. The spindle rotation is stopped internally by the MCU in situations such as the following: o When the emergency stop button is pressed. o During the execution of an automatic tool change. o During the execution of some canned cycles.
  • 38. Circular Interpolation: o Circular interpolation is used to cut circular features on a work piece. o To perform circular interpolation basically requires a code ( G02 or G03), the arc radius size, and the starting and ending coordinates of the arc. o For CNC machining centers, circular interpolation is typically performed using an end mill cutter to machine the work piece.
  • 44.
  • 45.
  • 47.