Programming Example 5
Sketch for machining file is as follows:
The corresponding programming is as follows:
N01 G92 X0 Y0 Z0 'workpiece coordinates system establishment
N02 G91 M03 S800 M08 'incremental coordinates adopted, spindle CW at 800 rpm, coolant on
N03 G65 P9001 L6 'subprogram 9001 call, executed six times
N04 G00 Z12 M05 M09 M30 'rapid traverse to X0, Y0, Z0, spindle stop, coolant off, end of program
and return to the program header
O9001 'subprogram 9001
N100 G00 X10 Y0 Z-2 'rapid traverse to X10, Y0, Z-2
N110 G01 Y60 F1000 'linear interpolation to X10, Y60, feed speed 1000mm/min
N120 X50 'linear interpolation to X60, Y60
N130 Y-50 'linear interpolation to X60, Y10
N140 X-60 'linear interpolation to X0, Y10
N150 G00 Y-10 'rapid traverse to X0, Y0
N160 M17 'subprogram return