SlideShare a Scribd company logo
1 of 14
Special G codes of CNCSpecial G codes of CNC
ProgrammingProgramming
Prepared by
M.Ganesh Murugan
Mirror Image On / Off: G15.1 /Mirror Image On / Off: G15.1 /
G50.1G50.1Function and Purpose:-
Mirror image mode can be turned on and off for each axis using G-codes. Higher priority is given to
the mirror image setting with the G-codes over setting by any other methods.
Programming Format
G51.1 X__ Y__ Z__ Mirror image ON
G50.1 X__ Y__ Z__ Mirror image OFF
Detailed:-
 Use the address and coordinates in a G51.1 block to specify the mirroring axis and mirroring
center (using absolute or incremental data), respectively
 If the coordinate word is designated in G50.1, then this denotes the axis for which the mirror image
is to be cancelled .Coordinate data, even if specified, is ignored in that case
 After mirror image processing has been performed for only one of the axes forming a plane, the
rotational direction and the offset direction become reverse during arc interpolation, tool diameter
offsetting, or coordinate rotation
 Since the mirror image processing function is valid only for local coordinate systems, the center of
mirror image processing moves according to the particular counter preset data or workpiece
coordinate offsetting data
Sample ProgramsSample Programs
G00 G90 G40 G49 G80
M98 P100
G51.1 X0.0
M98 P100
G51.1 Y0.0
M98 P100
G50.1 X0.0
M98 P100
G50.1 Y0.0
M30.
(SUB PROGRAM O100)
O0100
G91 G28 X0.0 Y0.0
G90 G00 X20.0 Y20.0
G42 G01 X40. D.01F120
Y40.
X20.
Y20.
G40 X0.0 Y0.0
M99
G68 and G69 - Coordinate SystemG68 and G69 - Coordinate System
RotationRotation
 A rotation transformation can be applied to the controlled point
coordinates commanded by a part program or by the MDI line.To do this
program
G68 X__Y__R__
 The X andY words specify the center about which the rotation is to be
applied in the current coordinate system. R is the angle of rotation in
degrees with positive values being counter-clockwise.
 If X orY are omitted then zero is assumed.A and B can be used as
synonyms for X andY respectively.
 To cancel rotation program G69.
 If a G68 is used while rotation is in operation a G69 is implied before it. In
other words successive G68s are not cumulative and the X andY points
are always in an un-rotated system.
 When a rotation is in use the X andY axis DROs will be red to remind
the operator that these values are program coordinate values which will
be rotated
An ExampleAn Example
G68 X0Y0 R30
M98 P0001
G68 X0Y0 R60
M98 P0001
G68 X0Y0 R120
M98 P0001
G68 X0Y0 R180
M98 P0001
And
O0001
G83 G99 R2 Z-10 Q1 F100
X 20Y-20
<etc >
M99
Note:
• G68 may only be used in the XY plane (G17 mode)
• The effects of changing work offsets when a rotation transformation is in
effect will be non-intuitive so it is wiser not to program this. Indeed care
should be taken proving any program including transformations.
• There is very little standardization of the functions of this code across
different CNC controls so careful checks should be made on code written for
other machines.
• Jogging always takes place in the direction of the machine axes. The tool
path display frame is oriented to the physical axes and will show the part at
the angle at which it will be cut
No relationship between program and
diagram It is just a model
G15 and G16 - Exit and Enter PolarG15 and G16 - Exit and Enter Polar
ModeMode
 It is possible for G0 and G1 moves in the X/Y plane only to specify
coordinates as a radius and angle relative to a temporary center point;
program G16 to enter this mode.The current coordinates of the
controlled point are the temporary center
 Format
G15 to revert to normal Cartesian coordinates
G0 X2.0Y2.0
( normal G0 move to 2.0,2.0 )
G16 - start of polar mode.
G01 X1.0Y45
( this will move to X = 2.7071,Y = 2.7071 which is a spot on a circle) (of
radius 1.0 at 45 degrees from the initial coordinates of 2.0,2.0 )
Example - Drilling a circle of holesExample - Drilling a circle of holes
 The code below moves to a circle of holes every 90 degrees on a circle of radius
2.5", center X = 0.5,Y = 0.6 and high- speed peck drills to Z = -0.6
G00 Z0.0;
G01 X0.5Y0.6; (go to the center point)
G16; (enable Polar coordinates)
G81 X2.5Y0.0 R0.0 Z-.6 F3;(in G16 mode the X becomes the offset from center
and theY becomes the degrees of rotation from the center)
X2.5Y90;
X2.5Y180;
X2.6Y270;
G15; (cancels the g16)
G80; (cancels the canned cycle)
G01 Z0.0;
G00 X0.0Y0.0;
M30;
Note:
(1) You must not make X or Y moves other than by using G0 or
G1 when G16 is active;
(2) This G16 is different to a Fanuc implementation in that it
uses the current point as the polar center. The Fanuc version
requires a lot of origin shifting to get the desired result for any
circle not centered on 0, 0
No relationship between program and
diagram It is just a model
CIRCULAR POCKET MILLING
EXERCISE
• G12 CIRCULAR POCKET MILLING CW (or)
• G13 CIRCULAR POCKET MILLING CCW
X Position to center of pocket
Y Position to center of pocket
Z Depth of cut or increment down
I Radius of First Circle (or the
finish radius If K is not used)
K Radius of Finished Circle
(if specified)
Q Radius step over Increment
(must be used with K)
D Cutter Comp. number
(Enter cutter size into offset display register number)
L Loop count for repeating
deeper cuts
F Feedrate in inch (mm) per min
EXAMPLE: G13 ONE PASS "I" ONLY
O01041
N1 (D01 DIA. OFFSET IS .500)
N2 T1 M06 (1/2 DIA. 2 FLT END MILL)
N3 G90 G54 G00 X2.5 Y2.5 (position
to X Y center of circular pocket)
N4 M03 S2600
N5 G43 H01 Z0.1 M08
N6 G13 Z-0.5 I0.5 D01 F15. (1.0 Dia.
x .5 deep circular pocket 1 pass)
N7 G00 Z1. M09
N8 G28 G91 Y0 Z0
N9 M30
EXAMPLE: G13 MULTIPLE PASSES
I, K & Q
O01042
N1 (D01 DIA. OFFSET IS .500)
N2 T1 M06 (1/2 dia. 2 FLT end mill)
N3 G90 G54 G00 X2.5 Y2.5
(X Y center location of circular
pocket)
N4 S2600 M03
N5 G43 H01 Z0.1 M08
N6 G13 Z-0.5 I0.3 K1.5 Q0.3 D01 F15
(3.0 Dia. x .5 dp circular
pocket)
N7 G00 Z1. M09
N8 G28 G91 Y0 Z0
N9 M30
G18 ZX CIRCULAR PLANE
SELECTION
• The G18 code is used to select the ZX plane for circular motion. In the XZ plane
• (G18), circular motion is defined as clockwise for the operator looking from
the rear of the machine out toward the control panel
Pattern defined by AnglePattern defined by Angle
02704 (ANGULAR ROW)
N1 G20;
N2 G17 G40 G80;
N3 G90 G54 G00 X2.0Y2.0 S900 M03;
N4 G43 Z1.0 H01 M08;
N5 G99 G81 R0.1 Z-0.163 F3.0;
N6 G91 X3.8637Y1.0353 L6;
N7 G80 M09;
N8 G28 Z0 M05;
N9 G28 X0Y0;
N10 M30;
No relationship between program and
diagram It is just a model
ThanksThanks
M.Ganesh Murugan

More Related Content

What's hot (20)

Limits, fits and tolerances
Limits, fits and tolerancesLimits, fits and tolerances
Limits, fits and tolerances
 
Fanuc Ot Cnc Training Manual
Fanuc Ot Cnc Training ManualFanuc Ot Cnc Training Manual
Fanuc Ot Cnc Training Manual
 
Cnc milling
Cnc millingCnc milling
Cnc milling
 
Cnc turning(Fanuc system)
Cnc turning(Fanuc system)Cnc turning(Fanuc system)
Cnc turning(Fanuc system)
 
Cnc milling programs
Cnc milling programsCnc milling programs
Cnc milling programs
 
CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1
 
G and m codes
G and m codesG and m codes
G and m codes
 
5 g-code
5   g-code5   g-code
5 g-code
 
HAAS Mill Workbook
HAAS Mill WorkbookHAAS Mill Workbook
HAAS Mill Workbook
 
Cnc lathe ppt
Cnc lathe pptCnc lathe ppt
Cnc lathe ppt
 
CNC Turning.ppt
CNC Turning.pptCNC Turning.ppt
CNC Turning.ppt
 
CNC Milling
CNC MillingCNC Milling
CNC Milling
 
Cnc Programming Basics
Cnc Programming BasicsCnc Programming Basics
Cnc Programming Basics
 
Fanuc g code
Fanuc g codeFanuc g code
Fanuc g code
 
Cnc control systems
Cnc control systemsCnc control systems
Cnc control systems
 
CNC Lathe Operating & Programming
CNC Lathe Operating & ProgrammingCNC Lathe Operating & Programming
CNC Lathe Operating & Programming
 
Indexing or dividing_head
Indexing or dividing_headIndexing or dividing_head
Indexing or dividing_head
 
jigs and fixture design lecture note by Aragaw Gebremedhin
jigs and fixture  design lecture note  by Aragaw Gebremedhinjigs and fixture  design lecture note  by Aragaw Gebremedhin
jigs and fixture design lecture note by Aragaw Gebremedhin
 
CNC MILLING
CNC MILLINGCNC MILLING
CNC MILLING
 
CNC Milling
CNC MillingCNC Milling
CNC Milling
 

Viewers also liked

Introduction to cnc machines (1)
Introduction to cnc machines (1)Introduction to cnc machines (1)
Introduction to cnc machines (1)someshking
 
Dark matter ~ Introduction
Dark matter ~ Introduction Dark matter ~ Introduction
Dark matter ~ Introduction Taliya Hemanth
 
cutting forces(static) simulation on lathe
cutting forces(static) simulation on lathecutting forces(static) simulation on lathe
cutting forces(static) simulation on latheTaliya Hemanth
 
G and m_programming_for_mills_manual
G and m_programming_for_mills_manualG and m_programming_for_mills_manual
G and m_programming_for_mills_manualTaliya Hemanth
 
pnuematic valve symbols
pnuematic valve symbolspnuematic valve symbols
pnuematic valve symbolsTaliya Hemanth
 
chess pieces program of cnc lathe .
chess pieces program of cnc lathe .chess pieces program of cnc lathe .
chess pieces program of cnc lathe .Amit Garg
 
Scientific knowledge in Vedas
Scientific knowledge in VedasScientific knowledge in Vedas
Scientific knowledge in VedasTaliya Hemanth
 
Cncpresentation CNC lathe machine
Cncpresentation CNC lathe machineCncpresentation CNC lathe machine
Cncpresentation CNC lathe machineHaseeb Butt
 
CNC Turning and Milling centres
CNC Turning and Milling centresCNC Turning and Milling centres
CNC Turning and Milling centresAchyuth Padmanabh
 

Viewers also liked (14)

Introduction to cnc machines (1)
Introduction to cnc machines (1)Introduction to cnc machines (1)
Introduction to cnc machines (1)
 
Dark matter ~ Introduction
Dark matter ~ Introduction Dark matter ~ Introduction
Dark matter ~ Introduction
 
cutting forces(static) simulation on lathe
cutting forces(static) simulation on lathecutting forces(static) simulation on lathe
cutting forces(static) simulation on lathe
 
G and m_programming_for_mills_manual
G and m_programming_for_mills_manualG and m_programming_for_mills_manual
G and m_programming_for_mills_manual
 
pnuematic valve symbols
pnuematic valve symbolspnuematic valve symbols
pnuematic valve symbols
 
chess pieces program of cnc lathe .
chess pieces program of cnc lathe .chess pieces program of cnc lathe .
chess pieces program of cnc lathe .
 
Funuc progaming
Funuc progamingFunuc progaming
Funuc progaming
 
Ejemplos fresadora cnc
Ejemplos fresadora cncEjemplos fresadora cnc
Ejemplos fresadora cnc
 
Scientific knowledge in Vedas
Scientific knowledge in VedasScientific knowledge in Vedas
Scientific knowledge in Vedas
 
Cnc Milling
Cnc MillingCnc Milling
Cnc Milling
 
Cncpresentation CNC lathe machine
Cncpresentation CNC lathe machineCncpresentation CNC lathe machine
Cncpresentation CNC lathe machine
 
CNC Seminar
CNC SeminarCNC Seminar
CNC Seminar
 
Clean room technology
Clean room technologyClean room technology
Clean room technology
 
CNC Turning and Milling centres
CNC Turning and Milling centresCNC Turning and Milling centres
CNC Turning and Milling centres
 

Similar to Cnc milling (20)

cadcampart11.ppt
cadcampart11.pptcadcampart11.ppt
cadcampart11.ppt
 
Fadal Parts Manual
Fadal Parts ManualFadal Parts Manual
Fadal Parts Manual
 
Fadal Rotary Axes - User Manual
Fadal Rotary Axes - User ManualFadal Rotary Axes - User Manual
Fadal Rotary Axes - User Manual
 
Fadal Rotary Axes - User Manual | ITSCNC.COM
Fadal Rotary Axes - User Manual | ITSCNC.COMFadal Rotary Axes - User Manual | ITSCNC.COM
Fadal Rotary Axes - User Manual | ITSCNC.COM
 
Fadal Parts Manual
Fadal Parts ManualFadal Parts Manual
Fadal Parts Manual
 
Fadal rotary axes user manual
Fadal rotary axes user manualFadal rotary axes user manual
Fadal rotary axes user manual
 
LATHE - TRAINING.pptx
LATHE - TRAINING.pptxLATHE - TRAINING.pptx
LATHE - TRAINING.pptx
 
5 g-code
5   g-code5   g-code
5 g-code
 
MILL - TRAINING.pptx
MILL - TRAINING.pptxMILL - TRAINING.pptx
MILL - TRAINING.pptx
 
5 g-code
5   g-code5   g-code
5 g-code
 
CNC(computerized Numeric Coding) Lecture.pptx
CNC(computerized Numeric  Coding) Lecture.pptxCNC(computerized Numeric  Coding) Lecture.pptx
CNC(computerized Numeric Coding) Lecture.pptx
 
Cnc lathe
Cnc latheCnc lathe
Cnc lathe
 
Lecture 25.pdf
Lecture 25.pdfLecture 25.pdf
Lecture 25.pdf
 
CNC-LATHE MPP1.ppt
CNC-LATHE MPP1.pptCNC-LATHE MPP1.ppt
CNC-LATHE MPP1.ppt
 
Cnc02 6573
Cnc02 6573Cnc02 6573
Cnc02 6573
 
CNC Circular Interpolation
CNC Circular InterpolationCNC Circular Interpolation
CNC Circular Interpolation
 
cnc_codes_and_letters.ppt
cnc_codes_and_letters.pptcnc_codes_and_letters.ppt
cnc_codes_and_letters.ppt
 
CAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptx
CAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptxCAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptx
CAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptx
 
Computer integrated Manufacture & design Lab Manual
Computer integrated Manufacture & design Lab  ManualComputer integrated Manufacture & design Lab  Manual
Computer integrated Manufacture & design Lab Manual
 
CIMS Lab.ppt
CIMS Lab.pptCIMS Lab.ppt
CIMS Lab.ppt
 

More from Taliya Hemanth

Ukraines conflict and_resolution
Ukraines conflict and_resolutionUkraines conflict and_resolution
Ukraines conflict and_resolutionTaliya Hemanth
 
heizer jay operations management Supp10pp
heizer jay operations management Supp10ppheizer jay operations management Supp10pp
heizer jay operations management Supp10ppTaliya Hemanth
 
heizer jay operations managementSupp07pp
 heizer jay operations managementSupp07pp heizer jay operations managementSupp07pp
heizer jay operations managementSupp07ppTaliya Hemanth
 
heizer jay operations management Mod dpp
heizer jay operations management Mod dppheizer jay operations management Mod dpp
heizer jay operations management Mod dppTaliya Hemanth
 
heizer jay operations management Mod app
 heizer jay operations management Mod app heizer jay operations management Mod app
heizer jay operations management Mod appTaliya Hemanth
 
heizer jay operations management Ch17pp
 heizer jay operations management Ch17pp heizer jay operations management Ch17pp
heizer jay operations management Ch17ppTaliya Hemanth
 
heizer jay operations management Ch14pp
 heizer jay operations management Ch14pp heizer jay operations management Ch14pp
heizer jay operations management Ch14ppTaliya Hemanth
 
heizer jay operations management Ch11pp
heizer jay operations management Ch11ppheizer jay operations management Ch11pp
heizer jay operations management Ch11ppTaliya Hemanth
 
heizer jay operations management Ch08pp
heizer jay operations management Ch08ppheizer jay operations management Ch08pp
heizer jay operations management Ch08ppTaliya Hemanth
 

More from Taliya Hemanth (20)

Ch11pp
Ch11ppCh11pp
Ch11pp
 
Ch17pp
Ch17ppCh17pp
Ch17pp
 
Dmt assignment
Dmt assignmentDmt assignment
Dmt assignment
 
Sociology of work
Sociology of work   Sociology of work
Sociology of work
 
Ukraines conflict and_resolution
Ukraines conflict and_resolutionUkraines conflict and_resolution
Ukraines conflict and_resolution
 
heizer jay operations management Supp10pp
heizer jay operations management Supp10ppheizer jay operations management Supp10pp
heizer jay operations management Supp10pp
 
heizer jay operations managementSupp07pp
 heizer jay operations managementSupp07pp heizer jay operations managementSupp07pp
heizer jay operations managementSupp07pp
 
Mod fpp
Mod fppMod fpp
Mod fpp
 
heizer jay operations management Mod dpp
heizer jay operations management Mod dppheizer jay operations management Mod dpp
heizer jay operations management Mod dpp
 
heizer jay operations management Mod app
 heizer jay operations management Mod app heizer jay operations management Mod app
heizer jay operations management Mod app
 
heizer jay operations management Ch17pp
 heizer jay operations management Ch17pp heizer jay operations management Ch17pp
heizer jay operations management Ch17pp
 
Ch16pp
Ch16ppCh16pp
Ch16pp
 
Ch15pp
Ch15ppCh15pp
Ch15pp
 
heizer jay operations management Ch14pp
 heizer jay operations management Ch14pp heizer jay operations management Ch14pp
heizer jay operations management Ch14pp
 
Ch13pp
Ch13ppCh13pp
Ch13pp
 
Ch12pp
Ch12ppCh12pp
Ch12pp
 
heizer jay operations management Ch11pp
heizer jay operations management Ch11ppheizer jay operations management Ch11pp
heizer jay operations management Ch11pp
 
Ch10pp
Ch10ppCh10pp
Ch10pp
 
Ch09pp
Ch09ppCh09pp
Ch09pp
 
heizer jay operations management Ch08pp
heizer jay operations management Ch08ppheizer jay operations management Ch08pp
heizer jay operations management Ch08pp
 

Recently uploaded

CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxachiever3003
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectErbil Polytechnic University
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the weldingMuhammadUzairLiaqat
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate productionChinnuNinan
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxVelmuruganTECE
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptbibisarnayak0
 

Recently uploaded (20)

CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptx
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction Project
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the welding
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate production
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptx
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.ppt
 

Cnc milling

  • 1. Special G codes of CNCSpecial G codes of CNC ProgrammingProgramming Prepared by M.Ganesh Murugan
  • 2. Mirror Image On / Off: G15.1 /Mirror Image On / Off: G15.1 / G50.1G50.1Function and Purpose:- Mirror image mode can be turned on and off for each axis using G-codes. Higher priority is given to the mirror image setting with the G-codes over setting by any other methods. Programming Format G51.1 X__ Y__ Z__ Mirror image ON G50.1 X__ Y__ Z__ Mirror image OFF Detailed:-  Use the address and coordinates in a G51.1 block to specify the mirroring axis and mirroring center (using absolute or incremental data), respectively  If the coordinate word is designated in G50.1, then this denotes the axis for which the mirror image is to be cancelled .Coordinate data, even if specified, is ignored in that case  After mirror image processing has been performed for only one of the axes forming a plane, the rotational direction and the offset direction become reverse during arc interpolation, tool diameter offsetting, or coordinate rotation  Since the mirror image processing function is valid only for local coordinate systems, the center of mirror image processing moves according to the particular counter preset data or workpiece coordinate offsetting data
  • 3. Sample ProgramsSample Programs G00 G90 G40 G49 G80 M98 P100 G51.1 X0.0 M98 P100 G51.1 Y0.0 M98 P100 G50.1 X0.0 M98 P100 G50.1 Y0.0 M30. (SUB PROGRAM O100) O0100 G91 G28 X0.0 Y0.0 G90 G00 X20.0 Y20.0 G42 G01 X40. D.01F120 Y40. X20. Y20. G40 X0.0 Y0.0 M99
  • 4. G68 and G69 - Coordinate SystemG68 and G69 - Coordinate System RotationRotation  A rotation transformation can be applied to the controlled point coordinates commanded by a part program or by the MDI line.To do this program G68 X__Y__R__  The X andY words specify the center about which the rotation is to be applied in the current coordinate system. R is the angle of rotation in degrees with positive values being counter-clockwise.  If X orY are omitted then zero is assumed.A and B can be used as synonyms for X andY respectively.  To cancel rotation program G69.  If a G68 is used while rotation is in operation a G69 is implied before it. In other words successive G68s are not cumulative and the X andY points are always in an un-rotated system.  When a rotation is in use the X andY axis DROs will be red to remind the operator that these values are program coordinate values which will be rotated
  • 5. An ExampleAn Example G68 X0Y0 R30 M98 P0001 G68 X0Y0 R60 M98 P0001 G68 X0Y0 R120 M98 P0001 G68 X0Y0 R180 M98 P0001 And O0001 G83 G99 R2 Z-10 Q1 F100 X 20Y-20 <etc > M99 Note: • G68 may only be used in the XY plane (G17 mode) • The effects of changing work offsets when a rotation transformation is in effect will be non-intuitive so it is wiser not to program this. Indeed care should be taken proving any program including transformations. • There is very little standardization of the functions of this code across different CNC controls so careful checks should be made on code written for other machines. • Jogging always takes place in the direction of the machine axes. The tool path display frame is oriented to the physical axes and will show the part at the angle at which it will be cut No relationship between program and diagram It is just a model
  • 6.
  • 7. G15 and G16 - Exit and Enter PolarG15 and G16 - Exit and Enter Polar ModeMode  It is possible for G0 and G1 moves in the X/Y plane only to specify coordinates as a radius and angle relative to a temporary center point; program G16 to enter this mode.The current coordinates of the controlled point are the temporary center  Format G15 to revert to normal Cartesian coordinates G0 X2.0Y2.0 ( normal G0 move to 2.0,2.0 ) G16 - start of polar mode. G01 X1.0Y45 ( this will move to X = 2.7071,Y = 2.7071 which is a spot on a circle) (of radius 1.0 at 45 degrees from the initial coordinates of 2.0,2.0 )
  • 8. Example - Drilling a circle of holesExample - Drilling a circle of holes  The code below moves to a circle of holes every 90 degrees on a circle of radius 2.5", center X = 0.5,Y = 0.6 and high- speed peck drills to Z = -0.6 G00 Z0.0; G01 X0.5Y0.6; (go to the center point) G16; (enable Polar coordinates) G81 X2.5Y0.0 R0.0 Z-.6 F3;(in G16 mode the X becomes the offset from center and theY becomes the degrees of rotation from the center) X2.5Y90; X2.5Y180; X2.6Y270; G15; (cancels the g16) G80; (cancels the canned cycle) G01 Z0.0; G00 X0.0Y0.0; M30; Note: (1) You must not make X or Y moves other than by using G0 or G1 when G16 is active; (2) This G16 is different to a Fanuc implementation in that it uses the current point as the polar center. The Fanuc version requires a lot of origin shifting to get the desired result for any circle not centered on 0, 0 No relationship between program and diagram It is just a model
  • 9. CIRCULAR POCKET MILLING EXERCISE • G12 CIRCULAR POCKET MILLING CW (or) • G13 CIRCULAR POCKET MILLING CCW X Position to center of pocket Y Position to center of pocket Z Depth of cut or increment down I Radius of First Circle (or the finish radius If K is not used) K Radius of Finished Circle (if specified) Q Radius step over Increment (must be used with K) D Cutter Comp. number (Enter cutter size into offset display register number) L Loop count for repeating deeper cuts F Feedrate in inch (mm) per min
  • 10. EXAMPLE: G13 ONE PASS "I" ONLY O01041 N1 (D01 DIA. OFFSET IS .500) N2 T1 M06 (1/2 DIA. 2 FLT END MILL) N3 G90 G54 G00 X2.5 Y2.5 (position to X Y center of circular pocket) N4 M03 S2600 N5 G43 H01 Z0.1 M08 N6 G13 Z-0.5 I0.5 D01 F15. (1.0 Dia. x .5 deep circular pocket 1 pass) N7 G00 Z1. M09 N8 G28 G91 Y0 Z0 N9 M30
  • 11. EXAMPLE: G13 MULTIPLE PASSES I, K & Q O01042 N1 (D01 DIA. OFFSET IS .500) N2 T1 M06 (1/2 dia. 2 FLT end mill) N3 G90 G54 G00 X2.5 Y2.5 (X Y center location of circular pocket) N4 S2600 M03 N5 G43 H01 Z0.1 M08 N6 G13 Z-0.5 I0.3 K1.5 Q0.3 D01 F15 (3.0 Dia. x .5 dp circular pocket) N7 G00 Z1. M09 N8 G28 G91 Y0 Z0 N9 M30
  • 12. G18 ZX CIRCULAR PLANE SELECTION • The G18 code is used to select the ZX plane for circular motion. In the XZ plane • (G18), circular motion is defined as clockwise for the operator looking from the rear of the machine out toward the control panel
  • 13. Pattern defined by AnglePattern defined by Angle 02704 (ANGULAR ROW) N1 G20; N2 G17 G40 G80; N3 G90 G54 G00 X2.0Y2.0 S900 M03; N4 G43 Z1.0 H01 M08; N5 G99 G81 R0.1 Z-0.163 F3.0; N6 G91 X3.8637Y1.0353 L6; N7 G80 M09; N8 G28 Z0 M05; N9 G28 X0Y0; N10 M30; No relationship between program and diagram It is just a model