0% found this document useful (0 votes)
224 views5 pages

CNC Programming

The document contains examples of CNC programming code for turning, rough turning and tapering, milling, and subroutines. The turning operation code rough turns a part and finishes the taper. The milling operation code mills a pocket shape. The subroutine code defines and calls a subprogram to perform a pocket milling operation multiple times with different tool positions.

Uploaded by

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

CNC Programming

The document contains examples of CNC programming code for turning, rough turning and tapering, milling, and subroutines. The turning operation code rough turns a part and finishes the taper. The milling operation code mills a pocket shape. The subroutine code defines and calls a subprogram to perform a pocket milling operation multiple times with different tool positions.

Uploaded by

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

CNC Programming

Turning N10  G90 G21 F100 ;


N20  G28 X0 Z0 ;
N30  MO6 TO1;
N40  MO3 S1000 ;
N60  G00 X42 Z2 M08;
N70  G01 X37 Z-40 ;
N80  G00 X32 Z 2 ;
N90  G01 X34 Z-40 ;
N100 G00 X42 Z 2 ;
N110 G01 X31 Z-40 ;
N120 G00 X42 Z2 ;
N130 G01 X28 Z-40 ;
N140 G00 X42 Z2;
N150 G01 X25 Z-40 ;
N160 G01 X40;
N170 G00 X42 Z2 ;
N180 G28 X0 Z0 ;
N190 M05 M09 ;
N200 M30;
Rough Turning, Taper and Finishing
N10   G21;
N20   G98;
N30   MO6 TO1;
N40   MO3 S1500 ;
N50   G00 X30 Z0 ;
N60   G71 U1 R0.5 ;
N70   G71 P80 Q140 U0.5 W0.5 F70;
N80   G01  X0  Z0 ;
N90 G03 X15 Z-7.5 R7.5;
N100 G01 X15 Z-15 ;
N110 G02 X25 Z-20 R5 ;
N120 G01 X25 Z-30 ;
N130 G01 X30 Z-35;
N140 G70 P80 Q140 F70;
N180 M05 ;
N200 M30;
Milling operation N10   G21 G90;
N20   G98;
N30   MO6 TO1;
N40   MO3 S1500 ;
N50   G28 X0 Y0 ;
N60   G28 Z0;
N70   G00 X-35 Y-35 Z5;
N80   G01  X-5  F50 ;
N90 G01 X-35 Y35;
N100 G01 X25 Z35 ;
N110 G01 X35 Z25;
N120 G01 X35 Z-35 ;
N130 G01 X10 Z-35;
N140 G03 X-10 Y-35 R10;
N150 G01 X-35 Y-35;
N160 G00 Z5;
N170 G28 X0 Y0;
N180 M05 ;
N200 M30;
Subroutine Sub Program N10   G21 G40 G94;
O1111 N20   G91;
G00 X10 Y10 Z5; N30   G28 X0 Y0 Z0;
G01 Z-5; N40   MO3 S1500 ;
G01 X30; N50   90;
G01 Y20;
G03 X40 Y30 R10; N60   G00 X0 Y0 Z5;
G01 Y40; N70   M98 P1111;
G01 X30; N80   M70;
G03 X20 Y30 R10; N90 M98 P1111;
G01 X10; N100 M71;
G01 X10 Y10;
N110 M98 P1111;
G01 Z5;
G00 X0 Y0; N120 M80;
M99 N130 M98 P1111;
N140 M81;
N150 G01 Z5;
N160 G28 X0 Y0;
N170 M05;
N180 M30;

You might also like