
B-63423EN/02 SAMPLE PROGRAM
9. USER PROGRAMS FOR POCKETING MENU
-429-
G242X[-24-shift_grap_X]Y[16+shift_grap_Y]
G01X[128-shift_grap_X]Y[16+shift_grap_Y]
G01X[128-shift_grap_X]Y[128+shift_grap_Y]
G01X[-24-shift_grap_X]Y[128+shift_grap_Y]
G01X[-24-shift_grap_X]Y[16+shift_grap_Y]
G242X[-8-shift_grap_X]Y[32+shift_grap_Y]
G01X[104-shift_grap_X]Y[32+shift_grap_Y]
G03X[112-shift_grap_X]Y[40+shift_grap_Y]I[104-shift_grap_X]J[40+shift_grap_Y]
G01X[112-shift_grap_X]Y[104+shift_grap_Y]
G03X[104-shift_grap_X]Y[112+shift_grap_Y]I[104-shift_grap_X]J[104+shift_grap_Y]
G01X[-8-shift_grap_X]Y[112+shift_grap_Y]
G03X[-16-shift_grap_X]Y[104+shift_grap_Y]I[-8-shift_grap_X]J[104+shift_grap_Y]
G01X[-16-shift_grap_X]Y[40+shift_grap_Y]
G03X[-8-shift_grap_X]Y[32+shift_grap_Y]I[-8-shift_grap_X]J[40+shift_grap_Y]
color purple /* for Tools(purple)
if[#[value 1] eq 3 || #[value 1] eq 4]then
G242X[0-shift_grap_X]Y[88+shift_grap_Y] /* Start Tool
G02X[0-shift_grap_X]Y[88+shift_grap_Y]I[8-shift_grap_X]J[88+shift_grap_Y]Q4
G242X[0-shift_grap_X]Y[56+shift_grap_Y] /* End Tool
G02X[0-shift_grap_X]Y[56+shift_grap_Y]I[8-shift_grap_X]J[56+shift_grap_Y]Q4
else
G242X[8-shift_grap_X]Y[72+shift_grap_Y] /* Start Tool
G02X[8-shift_grap_X]Y[72+shift_grap_Y]I[16-shift_grap_X]J[72+shift_grap_Y]Q4
G242X[112-shift_grap_X]Y[72+shift_grap_Y] /* End Tool
G02X[112-shift_grap_X]Y[72+shift_grap_Y]I[104-shift_grap_X]J[72+shift_grap_Y]Q4
endif
/* red for Path
color red
G242X[-4-shift_grap_X]Y[40+shift_grap_Y]
G01X[100-shift_grap_X]Y[40+shift_grap_Y]
G03X[104-shift_grap_X]Y[44+shift_grap_Y]I[100-shift_grap_X]J[44+shift_grap_Y]
G01X[104-shift_grap_X]Y[100+shift_grap_Y]
G03X[100-shift_grap_X]Y[104+shift_grap_Y]I[100-shift_grap_X]J[100+shift_grap_Y]
G01X[-4-shift_grap_X]Y[104+shift_grap_Y]
G03X[-8-shift_grap_X]Y[100+shift_grap_Y]I[-4-shift_grap_X]J[100+shift_grap_Y]
G01X[-8-shift_grap_X]Y[44+shift_grap_Y]
G03X[-4-shift_grap_X]Y[40+shift_grap_Y]I[-4-shift_grap_X]J[44+shift_grap_Y]
if[#[value 1] eq 3 || #[value 1] eq 4]then
#1=8-shift_grap_X
#2=88+shift_grap_Y
#3=8-shift_grap_X
#4=56+shift_grap_Y
#5=8-shift_grap_X
#6=72+shift_grap_Y
#7=0
call fig_ccw
else
G242X[12-shift_grap_X]Y[56+shift_grap_Y]
G01X[84-shift_grap_X]Y[56+shift_grap_Y]
G03X[88-shift_grap_X]Y[60+shift_grap_Y]I[84-shift_grap_X]J[60+shift_grap_Y]
G01X[88-shift_grap_X]Y[84+shift_grap_Y]
G03X[84-shift_grap_X]Y[88+shift_grap_Y]I[84-shift_grap_X]J[84+shift_grap_Y]
G01X[12-shift_grap_X]Y[88+shift_grap_Y]
G03X[8-shift_grap_X]Y[84+shift_grap_Y]I[12-shift_grap_X]J[84+shift_grap_Y]
G01X[8-shift_grap_X]Y[60+shift_grap_Y]
G03X[12-shift_grap_X]Y[56+shift_grap_Y]I[12-shift_grap_X]J[60+shift_grap_Y]
G242X[16-shift_grap_X]Y[72+shift_grap_Y]
G01X[103-shift_grap_X]Y[72+shift_grap_Y]
endif
/* green Line
color green
G242X[-16-shift_grap_X]Y[105+shift_grap_Y] /* for U
G01X[-16-shift_grap_X]Y[136+shift_grap_Y]
G242X[112-shift_grap_X]Y[105+shift_grap_Y]
G01X[112-shift_grap_X]Y[136+shift_grap_Y]