
8. USER PROGRAMS FOR SIDE CUTTING MENU
SAMPLE PROGRAM B-63423EN/02
-372-
G242X[7-shift_grap_X]Y[88+shift_grap_Y] /* Start Tool
G02X[7-shift_grap_X]Y[88+shift_grap_Y]I[0-shift_grap_X]J[88+shift_grap_Y]Q4
G206P0X[0-shift_grap_X]Y[88+shift_grap_Y]
G242X[7-shift_grap_X]Y[56+shift_grap_Y] /* End Tool
G02X[7-shift_grap_X]Y[56+shift_grap_Y]I[0-shift_grap_X]J[56+shift_grap_Y]Q4
G206P0X[0-shift_grap_X]Y[56+shift_grap_Y]
else
G242X[7-shift_grap_X]Y[72+shift_grap_Y]
G02X[7-shift_grap_X]Y[72+shift_grap_Y]I[0-shift_grap_X]J[72+shift_grap_Y]Q4
G206P0X[0-shift_grap_X]Y[72+shift_grap_Y]
endif
/* Edge Line
color sky_blue /* for Work(blue green)
G242X[-32-shift_grap_X]Y[8+shift_grap_Y]
G01X[152-shift_grap_X]Y[8+shift_grap_Y]
G01X[152-shift_grap_X]Y[136+shift_grap_Y]
G01X[-32-shift_grap_X]Y[136+shift_grap_Y]
G01X[-32-shift_grap_X]Y[8+shift_grap_Y]
G242X[24-shift_grap_X]Y[24+shift_grap_Y]
G01X[96-shift_grap_X]Y[24+shift_grap_Y]
G03X[96-shift_grap_X]Y[120+shift_grap_Y]I[96-shift_grap_X]J[72+shift_grap_Y]
G01X[24-shift_grap_X]Y[120+shift_grap_Y]
G03X[24-shift_grap_X]Y[24+shift_grap_Y]I[24-shift_grap_X]J[72+shift_grap_Y]
color purple /* for Tools(purple)
if[#[value 1] eq 3 || #[value 1] eq 4]then
G242X[8-shift_grap_X]Y[88+shift_grap_Y] /* for Start Tool
G02X[8-shift_grap_X]Y[88+shift_grap_Y]I[0-shift_grap_X]J[88+shift_grap_Y]Q4
G242X[8-shift_grap_X]Y[56+shift_grap_Y] /* for End Tool
G02X[8-shift_grap_X]Y[56+shift_grap_Y]I[0-shift_grap_X]J[56+shift_grap_Y]Q4
else
G242X[8-shift_grap_X]Y[72+shift_grap_Y]
G02X[8-shift_grap_X]Y[72+shift_grap_Y]I[0-shift_grap_X]J[72+shift_grap_Y]Q4
endif
/* red for Path
color red
G242X[24-shift_grap_X]Y[32+shift_grap_Y]
G01X[96-shift_grap_X]Y[32+shift_grap_Y]
G03X[96-shift_grap_X]Y[112+shift_grap_Y]I[96-shift_grap_X]J[72+shift_grap_Y]
G01X[24-shift_grap_X]Y[112+shift_grap_Y]
G03X[24-shift_grap_X]Y[32+shift_grap_Y]I[24-shift_grap_X]J[72+shift_grap_Y]
#1=64-shift_grap_X
#2=32+shift_grap_Y
#3=63-shift_grap_X
#4=#2
#5=1
call fig_line
#1=58-shift_grap_X
#2=112+shift_grap_Y
#3=59-shift_grap_X
#4=#2
#5=1
call fig_line
if[#[value 1] eq 3 || #[value 1] eq 4]then
#1=0-shift_grap_X
#2=88+shift_grap_Y
#3=0-shift_grap_X
#4=56+shift_grap_Y
#5=0-shift_grap_X
#6=72+shift_grap_Y
#7=0
call fig_ccw
else
G242X[0-shift_grap_X]Y[72+shift_grap_Y]
G01X[-15-shift_grap_X]Y[72+shift_grap_Y]
endif