
B-63423EN/02 SAMPLE PROGRAM
5. USER PROGRAMS FOR HOLE MACHINING MENU
-229-
call fig_character
else
#1=53-shift_char_X
#2=14-shift_char_Y
#3=1
call fig_character
endif
#1=49-shift_char_X /* for Q
#2=13-shift_char_Y
#3=1
call fig_character
#1=46-shift_char_X /* for P
#2=15-shift_char_Y
#3=1
call fig_character
G206P0X[0-shift_grap_X]Y[0+shift_grap_Y]
color sky_blue /* blue green for Edge
G242X[-24-shift_grap_X]Y[-24+shift_grap_Y]
G01X[144-shift_grap_X]Y[-24+shift_grap_Y]
G01X[144-shift_grap_X]Y[72+shift_grap_Y]
G01X[-24-shift_grap_X]Y[72+shift_grap_Y]
G01X[-24-shift_grap_X]Y[-24+shift_grap_Y]
/* Tool
#20=24-shift_grap_X /* X coordinate of Top of Tool
#21=123+shift_grap_Y /* Y coordinate of Top of Tool
color green /* green for Inner
G242X[#20+1]Y[#21+1]
G01X[#20+5]Y[#21+4]
G01X[#20+5]Y[#21+20]
G01X[#20+4+12]Y[#21+20]
G01X[#20+4+12]Y[#21+1]
G01X[#20+1]Y[#21+1]
G206P0X[#20+8]Y[#21+5]
color purple /* purple for Edge
G242X[#20]Y[#21]
G01X[#20+4]Y[#21+4]
G01X[#20+4]Y[#21+21]
G01X[#20+4+13]Y[#21+21]
G01X[#20+4+13]Y[#21]
G01X[#20]Y[#21]
/* Circle for Point
color red
G242X[24-shift_grap_X]Y[122+shift_grap_Y]
G02X[24-shift_grap_X]Y[122+shift_grap_Y]I[24-shift_grap_X]J[120+shift_grap_Y]Q4
G206P0X[24-shift_grap_X]Y[120+shift_grap_Y]
G242X[56-shift_grap_X]Y[122+shift_grap_Y]
G02X[56-shift_grap_X]Y[122+shift_grap_Y]I[56-shift_grap_X]J[120+shift_grap_Y]Q4
G206P0X[56-shift_grap_X]Y[120+shift_grap_Y]
G242X[56-shift_grap_X]Y[90+shift_grap_Y]
G02X[56-shift_grap_X]Y[90+shift_grap_Y]I[56-shift_grap_X]J[88+shift_grap_Y]Q4
G206P0X[56-shift_grap_X]Y[88+shift_grap_Y]
G242X[56-shift_grap_X]Y[10+shift_grap_Y]
G02X[56-shift_grap_X]Y[10+shift_grap_Y]I[56-shift_grap_X]J[8+shift_grap_Y]Q4
G206P0X[56-shift_grap_X]Y[8+shift_grap_Y]
G242X[96-shift_grap_X]Y[10+shift_grap_Y]
G02X[96-shift_grap_X]Y[10+shift_grap_Y]I[96-shift_grap_X]J[8+shift_grap_Y]Q4
G206P0X[96-shift_grap_X]Y[8+shift_grap_Y]
if[#[value 2] eq 99]then
G242X[96-shift_grap_X]Y[90+shift_grap_Y]
G02X[96-shift_grap_X]Y[90+shift_grap_Y]I[96-shift_grap_X]J[88+shift_grap_Y]Q4
G206P0X[96-shift_grap_X]Y[88+shift_grap_Y]
else
G242X[96-shift_grap_X]Y[122+shift_grap_Y] ;
G02X[96-shift_grap_X]Y[122+shift_grap_Y]I[96-shift_grap_X]J[120+shift_grap_Y]Q4
G206P0X[96-shift_grap_X]Y[120+shift_grap_Y]