[go: up one dir, main page]

0% found this document useful (0 votes)
494 views8 pages

CNC G-Code Programming Guide

The document contains 4 examples of G-code programs for turning operations on a lathe. Each program contains code for rapid positioning, tool changes, spindle control, cooling, and main turning cycles using G90 or G77. The turning cycles perform axial cuts by incrementally stepping the X-axis position and making multiple depth cuts by stepping the Z-axis position. Some examples also include taper turning cycles that reduce the workpiece diameter using incremental R values.

Uploaded by

Tatiana Olegovna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
494 views8 pages

CNC G-Code Programming Guide

The document contains 4 examples of G-code programs for turning operations on a lathe. Each program contains code for rapid positioning, tool changes, spindle control, cooling, and main turning cycles using G90 or G77. The turning cycles perform axial cuts by incrementally stepping the X-axis position and making multiple depth cuts by stepping the Z-axis position. Some examples also include taper turning cycles that reduce the workpiece diameter using incremental R values.

Uploaded by

Tatiana Olegovna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Exemplo 1

Friends this cycle has many names like ; turning cycle , fixed cycle , ID/OD cutting cycle ,
Box cycle.
G90 IS mostly used but sometime machine model can not adopt G90 , that time we can
insert G77 or G20 which is accept by machine model . G90/G77/G20  these g code
meaning is same

O1453
N10 G28 U0 W0 ;
N20 M06 T02 02 ;
N30 G50 S1500 ;
N40 M03 G97 S200 ;
N50 M08 ;
N60 G00 X80 Z2 ;
N70 G90 X80 Z-80 F0.25 ;
        X75 ;
        X70 ;
        X65 ;
        X60 ; 
        X55 Z-30 ;
        X50 ;
        X45 ;
        X40 ;
N80 G28 U0 W0 ;
N90 M05 M09 M30 ;
DESCRIPTION OF MAIN PROGRAM :-

O1453 - Name of main program


N10 - Referance point command X0 and Z0
N20- Tool change command , select tool no 2
N30- Maximum spindle speed command , speed is 1500 rpm
N40- Spindle ON clockwise , constant spindle speed , speed is 200 rpm
N50- Coolant ON
N60- Rapid action command , where X80 and Z2
N70- Turning /ID/OD/Fixed/axial cutting cycle command , starting position in X- axis is 80 ,
cutting upto 80 in z- axis(for first step ) , feed rate is 0.25

         First cut start from x- axis is 75


                                     second cut 70
                                         third cut 65
                                       fourth cut 60 ( first step is complete)
       second step x axis cut is 55 and cutting up to 30
                                        sixth cut  50
                                        seventh cut 45
                                        last cut 40
N80- Referance point command X0 and Z0 
N90- Spindle OFF , coolant OFF , main prog. end 
Exemplo 2

Friends this cycle has many names like ; turning cycle , fixed cycle , ID/OD cutting cycle ,
Box cycle. G90 IS mostly used but sometime machine model can not adopt G90 , that time
we can insert G77 or G20 which is accept by machine model . G90/G77/G20  these g code
meaning is same .

O1453
N10 G28 U0 W0 ;
N20 M06 T02 02 ;
N30 G50 S1500 ;
N40 M03 G97 S200 ;
N50 M08 ;
N60 G00 X60 Z2 ;
N70 G90 X60 Z-40 F0.25 ;
               X55 ;
               X50 ;
               X45 ;
               X40 ;
               Z-30  R2 F0.2 ;                       ...........................1
               R3 ;                                         ...........................2
N80 G28 U0 W0 ;
N90 M05 M09 M30 ;
DESCRIPTION OF MAIN PROGRAM :-

O1453 - Name of main program


N10 - Referance point command X0 and Z0
N20- Tool change command , select tool no 2
N30- Maximum spindle speed command , speed is 1500 rpm
N40- Spindle ON clockwise , constant spindle speed , speed is 200 rpm
N50- Coolant ON
N60- Rapid action command , where X80 and Z2
N70- Turning /ID/OD/Fixed/axial cutting cycle command , starting position in X- axis is 60 ,
cutting upto 40 in z- axis(for first step ) , feed rate is 0.25
           First cut start from x- axis is 55
                                     second cut 50
                                         third cut 45
                                       fourth cut 40 ( first step is complete)
          1. Taper turning is start cutting upto 30 mm in  z axis and taper value is 2 mm for one
side (it means in one cut reduce 4 mm dia)[in these case dia is 40 mm due to taper value it
reduce 4mm ; dia is 36 mm]
2. Taper value is 3 , it means dia is reduce 6 mm , final dia is 30 mm .

N80- Referance point command X0 and Z0


N90- Spindle OFF , coolant OFF , main prog. end 
Exemplo 3

Friends this cycle has many names like ; turning cycle , fixed cycle , ID/OD cutting cycle ,
Box cycle. G90 IS mostly used but sometime machine model can not adopt G90 , that time
we can insert G77 or G20 which is accept by machine model . G90/G77/G20  these g code
meaning is same

O1453
N10 G28 U0 W0 ;
N20 M06 T02 02 ;
N30 G50 S1500 ;
N40 M03 G97 S200 ;
N50 M08 ;
N60 G00 X80 Z2 ;
N70 G90 X60 Z-30 F0.25 ;
        X55  ;
        X50 ;
        X45 ;
        X40 ;
N80 G28 U0 W0 ;
N90 M05 M09 M30 ;  
DESCRIPTION OF MAIN PROGRAM :-

O1453 - Name of main program


N10 - Referance point command X0 and Z0
N20- Tool change command , select tool no 2
N30- Maximum spindle speed command , speed is 1500 rpm
N40- Spindle ON clockwise , constant spindle speed , speed is 200 rpm
N50- Coolant ON
N60- Rapid action command , where X80 and Z2
N70- Turning /ID/OD/Fixed/axial cutting cycle command , starting position in X- axis is 60 ,
cutting upto 30 in z- axis(for first step ) , feed rate is 0.25
             First cut start from x- axis is 55

                                       second cut  50

                                            third cut 45

                                             last cut 40

N80- Referance point command X0 and Z0 

N90- Spindle OFF , coolant OFF , main prog. end 


Exemplo 4

Friends this cycle has many names like ; turning cycle , fixed cycle , ID/OD cutting cycle ,
Box cycle. G90 IS mostly used but sometime machine model can not adopt G90 , that time
we can insert G77 or G20 which is accept by machine model . G90/G77/G20  these g code
meaning is same .

O1453
N10 G28 U0 W0 ;
N20 M06 T02 02 ;
N30 G50 S1500 ;
N40 M03 G97 S200 ;
N50 M08 ;
N60 G00 X60 Z2 ;
N70 G90 X60 Z-40 F0.25 ;
               X55 ;
               X50 ;
               X45 ;
               X40 ;
               Z-30  R2 F0.2 ;                       ...........................1
               R3 ;                                         ...........................2
N80 G28 U0 W0 ;
N90 M05 M09 M30 ;
DESCRIPTION OF MAIN PROGRAM :-

O1453 - Name of main program


N10 - Referance point command X0 and Z0
N20- Tool change command , select tool no 2
N30- Maximum spindle speed command , speed is 1500 rpm
N40- Spindle ON clockwise , constant spindle speed , speed is 200 rpm
N50- Coolant ON
N60- Rapid action command , where X80 and Z2
N70- Turning /ID/OD/Fixed/axial cutting cycle command , starting position in X- axis is 60 ,
cutting upto 40 in z- axis(for first step ) , feed rate is 0.25
           First cut start from x- axis is 55
                                     second cut 50
                                         third cut 45
                                       fourth cut 40 ( first step is complete)
          1. Taper turning is start cutting upto 30 mm in  z axis and taper value is 2 mm for one
side (it means in one cut reduce 4 mm dia)[in these case dia is 40 mm due to taper value it
reduce 4mm ; dia is 36 mm]
2. Taper value is 3 , it means dia is reduce 6 mm , final dia is 30 mm .

N80- Referance point command X0 and Z0


N90- Spindle OFF , coolant OFF , main prog. end 

You might also like