CNC - Assignments - 1 2 3 4
CNC - Assignments - 1 2 3 4
ASSIGNMENT 1:
N10 G00 G40 G80 G71 G90; (rapid positioning, cutter compensation off, cancel canned cycle, metric
units, absolute distance mode)
N30 G43 Z0. H01 M07; (tool length offset, approach Z0, coolant on)
N40 G00 X-12 Y-12 S80; (rapid travel to X=-12, Y=-12, spindle speed 80 RPM)
N50 G01 Z0 F480; (linear interpolation, move to Z0, feedrate 480 mm/min)
N60 G00 X-15 Y-15 Z50; (rapid travel to X=-15, Y=-15, Z=50)
N80 G41 X0 Y0 F100; (cutter compensation on, move to X=0, Y=0, feedrate 100 mm/min)
N100 G02 X20 Y80 R10; (circular interpolation, clockwise, end point X=20, Y=80, radius 10)
N120 G02 X40 Y75 R5; (circular interpolation, clockwise, end point X=40, Y=75, radius 5)
N170 G03 X85 R13; (circular interpolation, counterclockwise, end point X=85, radius 13)
N190 G02 X30 R12; (circular interpolation, clockwise, end point X=30, radius 12)
ASSIGNMENT 2:
N10 G00 G40 G80 G71 G90; (rapid positioning, cutter compensation off, cancel canned cycle, metric
units, absolute distance mode)
N30 G43 Z0. H01 M07 (tool length offset, approach Z0, coolant on)
N40 G00 X-12 Y-12 S800 M03; (rapid travel to X=-12, Y=-12, spindle speed 800 RPM, spindle on
clockwise)
N80 G41 X0 Y0 F100; (cutter compensation left, move to X=0, Y=0 at feedrate of 100 mm/min)
N130 G02 X100 Y27.5 R17.5; (circular interpolation counterclockwise, end point X=100, Y=27.5,
radius=17.5)
N140 G02 X68.5 Y17 R17.5; (circular interpolation counterclockwise, end point X=68.5, Y=17,
radius=17.5)
N150 G03 X55 Y13.5 R7.5; (circular interpolation clockwise, end point X=55, Y=13.5, radius=7.5)
N180 G02 X38 Y13.5 R7.5; (circular interpolation counterclockwise, end point X=38, Y=13.5, radius=7.5)
N190 G03 X27.5 Y45 R17.5; (circular interpolation clockwise, end point X=27.5, Y=45, radius=17.5)
N200 G03 X17 Y13.5 R17.5; (circular interpolation clockwise, end point X=17, Y=13.5, radius=17.5)
N200 G02 X12.5 Y0 R7.5; (circular interpolation counterclockwise, end point X=12.5, Y=0, radius=7.5)
ASSIGNMENT 3:
N10 G00 G40 G80 G71 G90; (Initialize machine)
N40 G00 X-12 Y-12 S2200 M03; (Rapid travel to [-12,-12], spindle speed 2200, spindle on clockwise)
N50 G01 Z-18.75 F0.08; (Linear interpolation, move to Z-18.75 at a feed rate of 0.08)
N60 G01 X12.5 Y37.5 F175.; (Linear interpolation, move to [12.5,37.5] at a feed rate of 175)
N90 G01 X62.5 Y12.5 F175.; (Linear interpolation, move to [62.5,12.5] at a feed rate of 175)
N140 G00 X12.5 Y37.5 S1590 M03; (Rapid travel to [12.5,37.5], spindle speed 1590, spindle on
clockwise)
N150 G01 Z-7. F0.125; (Linear interpolation, move to Z-7 at a feed rate of 0.125)
N160 G01 X12.5 Y37.5 F125; (Linear interpolation, move to [12.5,37.5] at a feed rate of 125)
N190 G01 X62.5 Y12.5 F125; (Linear interpolation, move to [62.5,12.5] at a feed rate of 125)
N240 G00 X12.5 Y12.5 S3180 M03; (rapid travel to [12.5, 12.5], spindle speed 3180, spindle on
clockwise)
N260 G01 X12.5 Y12.5 F250; (move to [12.5, 12.5] at feed rate 250)
N290 G01 X62.5 Y37.5 F250; (move to [62.5, 37.5] at feed rate 250)
N330 G43 Z0. H04 M07; (apply tool length offset for tool 4)
N340 G00 X62.5 Y12.5 S2890 M03; (rapid travel to [62.5, 12.5], spindle speed 2890, spindle on
clockwise)
N360 G01 X12.5 Y12.5 F250; (move to [12.5, 12.5] at feed rate 250)
N390 G01 X62.5 Y37.5 F250; (move to [62.5, 37.5] at feed rate 250)
N430 G43 Z0. H05 M07; (apply tool length offset for tool 5)
N440 G00 X12.5 Y12.5 S2650 M03; (rapid travel to [12.5, 12.5], spindle speed 2650, spindle on
clockwise)
N490 G01 X62.5 Y37.5 F250; (move to [62.5, 37.5] at feed rate 250)
ASSIGNMENT 4:
N10 G00 G40 G80 G71 G90; (rapid positioning, cancel cutter radius compensation, cancel canned cycle,
set units to millimeters, set programming to metric)
N20 G92 M42 S1000; (set spindle speed override to 1000 RPM)
N60 G43 Z0. H01 M07; (enable tool length compensation, move Z-axis to tool change position, turn
coolant on)
N90 G01 X16 Z-3 FO.35 S1000; (linear interpolation, move to X=16, Z=-3 at a feedrate of 0.35 units per
minute and spindle speed of 1000 RPM)
N110 G02 X22 Z-14 R5; (circular interpolation, clockwise, end point X=22, Z=-14, radius 5)
N130 G02 X33 Z-28 R5; (circular interpolation, clockwise, end point X=33, Z=-28, radius 5)
N140 X33 Z-34 R5; (circular interpolation, end point X=33, Z=-34, radius 5)
N180 M05 M09 M02; (stop spindle rotation, coolant off, end of program)