
B-63423EN/02 SAMPLE PROGRAM
5. USER PROGRAMS FOR HOLE MACHINING MENU
-241-
G242X[-32-shift_grap_X]Y[-32+shift_grap_Y]
G01X[152-shift_grap_X]Y[-32+shift_grap_Y]
G01X[152-shift_grap_X]Y[104+shift_grap_Y]
G01X[-32-shift_grap_X]Y[104+shift_grap_Y]
G01X[-32-shift_grap_X]Y[-32+shift_grap_Y]
/* Tool
#20=16-shift_grap_X /* X coordinate of Top of Tool
#21=147+shift_grap_Y /* Y coordinate of Top of Tool
color green /* green for Inner
G242X[#20]Y[#21+1] /* Left Side
G01X[#20-8+1]Y[#21+1]
G01X[#20-8-3+1]Y[#21+3*1]
G01X[#20-8 +1]Y[#21+3*2]
G01X[#20-8-3+1]Y[#21+3*3]
G01X[#20-8 +1]Y[#21+3*4]
G01X[#20-8-3+1]Y[#21+3*5]
G01X[#20-8 +1]Y[#21+3*6]
G01X[#20-8+1]Y[#21+20]
G01X[#20]Y[#21+20]
G242X[#20]Y[#21+1] /* Right Side
G01X[#20+8-1]Y[#21]
G01X[#20+8+3-1]Y[#21+3*1]
G01X[#20+8 -1]Y[#21+3*2]
G01X[#20+8+3-1]Y[#21+3*3]
G01X[#20+8 -1]Y[#21+3*4]
G01X[#20+8+3-1]Y[#21+3*5]
G01X[#20+8 -1]Y[#21+3*6]
G01X[#20+8-1]Y[#21+20]
G01X[#20]Y[#21+20]
G206P0X[#20]Y[#21+8]
color purple /* purple for Edge
G242X[#20]Y[#21] /* Left Side
G01X[#20-8]Y[#21]
G01X[#20-8-3]Y[#21+3*1]
G01X[#20-8 ]Y[#21+3*2]
G01X[#20-8-3]Y[#21+3*3]
G01X[#20-8 ]Y[#21+3*4]
G01X[#20-8-3]Y[#21+3*5]
G01X[#20-8 ]Y[#21+3*6]
G01X[#20-8]Y[#21+21]
G01X[#20]Y[#21+21]
G242X[#20]Y[#21] /* Right Side
G01X[#20+8]Y[#21]
G01X[#20+8+3]Y[#21+3*1]
G01X[#20+8 ]Y[#21+3*2]
G01X[#20+8+3]Y[#21+3*3]
G01X[#20+8 ]Y[#21+3*4]
G01X[#20+8+3]Y[#21+3*5]
G01X[#20+8 ]Y[#21+3*6]
G01X[#20+8]Y[#21+21]
G01X[#20]Y[#21+21]
/* Circle for Point
color red
G242X[16-shift_grap_X]Y[146+shift_grap_Y]
G02X[16-shift_grap_X]Y[146+shift_grap_Y]I[16-shift_grap_X]J[144+shift_grap_Y]Q4
G206P0X[16-shift_grap_X]Y[144+shift_grap_Y]
G242X[40-shift_grap_X]Y[146+shift_grap_Y]
G02X[40-shift_grap_X]Y[146+shift_grap_Y]I[40-shift_grap_X]J[144+shift_grap_Y]Q4
G206P0X[40-shift_grap_X]Y[144+shift_grap_Y]
G242X[40-shift_grap_X]Y[122+shift_grap_Y]
G02X[40-shift_grap_X]Y[122+shift_grap_Y]I[40-shift_grap_X]J[120+shift_grap_Y]Q4
G206P0X[40-shift_grap_X]Y[120+shift_grap_Y]
G242X[104-shift_grap_X]Y[-22+shift_grap_Y]
G02X[104-shift_grap_X]Y[-22+shift_grap_Y]I[104-shift_grap_X]J[-24+shift_grap_Y]Q4
G206P0X[104-shift_grap_X]Y[-24+shift_grap_Y]