CNC Milling and Turning Program


.

CNC Milling Program
O1234;
Name of program
N10 G21 G40 G49;
Metric programming, tool compensation cancel
N20 G91 G30 Z0;
Incremental programming, Return to zero position for z
N30 T02 M06;
Change tool no. 2
N40 M03 S1000;
Spindle rotates clockwise 1000RPM
N50 G43 H5 Z2.;
Tool length compensation +ve direction up to 2 mm
N60 G55 G90 G00 X0 Y0;
Working coordinate G55, Absolute programming, Tool at X=0 Y=0 position
N70 G01 Z-5. F10;
Cutting in Z-direction until it reaches z = –5mm with feed 10mm/min
N80 G01 X0 Y50. F100;
Cutting to Y-direction to Y=50 with 100mm/min
N90 Y100.;
Cutting to Y-direction Y=100
N100 X100.;
Cutting to X-direction X=100
N110 X0;
Cutting to X-direction X=0
N120 G30 Z0
Return to zero position for z

CNC Turning Program
O1234;
Program name
N10 G28 U0 W0;
Go to Reference point (Machine Zero position)
N20 G92 S1200 M41 M03;
Max. spindle speed, 1200 RPM, Low gear, Spindle CW
N30 G96 S400 T0404;
Constant surface speed, 400 RPM, Tool no. 4 with tool offset no. 4
N40 G00 X2.6 Z0 M08;
Rapid positioning(without cutting) to position X=2.6, Z=0 in mm, coolant ON
N50 G01 X0.74 F0.5;
Facing process tool will move to position X=0.74 with feed 0.5mm/min
N60 G00 X3. Z5. M09;
Rapid positioning(without cutting) to position X=3, Z5 in mm, coolant OFF
N70 G28 U0 W0;
Go to Reference point (Machine Zero position)
N80 M30;
End of program

Your Reply