As shown in the figure above, 8D, 10D and 20D holes are to be drilled on a slab of thickness 15mm (not shown in the figure). After drilling, central hole has to be bored. For drilling four 8D holes tool T01 is used and for 10D and 20D holes tools T02 & T03 are used. T04 will be used for boring the central hole.
The program will be as follows
N001 G92 X0 Y0 Z0 F0
N002 G90
N003 G81 X40000 Y20000 Z-68000 R-48000 F100 T01 M03
N004 X-40000
N005 Y-20000
N006 X-40000
N007 G80 Z0 F0 M05
N008 G81 X15000 Y0 Z68000 R48000 F150 T02 M03
N009 X0 Y 15000
N010 X-15000 Y0
N011 X0 Y-15000
N012 G80 Z0 F0 M05
N013 G81 X0 Y0 Z-68000 R-48000 F50 T03 M03
N014 G80 Z0 F0 M05
N015 G86 X0 Y0 Z-8000 R-48000 F50 T03 M03
N016 G80 Z0 F0 M05
N017 X100000
N018 M30