
B-63423EN/02 SAMPLE PROGRAM
9. USER PROGRAMS FOR POCKETING MENU
-433-
else
G242X[16-shift_grap_X]Y[72+shift_grap_Y] /* Start Tool
G02X[16-shift_grap_X]Y[72+shift_grap_Y]I[24-shift_grap_X]J[72+shift_grap_Y]Q4
G242X[120-shift_grap_X]Y[72+shift_grap_Y] /* End Tool
G02X[120-shift_grap_X]Y[72+shift_grap_Y]I[128-shift_grap_X]J[72+shift_grap_Y]Q4
endif
/* red for Path
color red
G242X[24-shift_grap_X]Y[40+shift_grap_Y]
G01X[96-shift_grap_X]Y[40+shift_grap_Y]
G03X[96-shift_grap_X]Y[104+shift_grap_Y]I[96-shift_grap_X]J[72+shift_grap_Y]
G01X[24-shift_grap_X]Y[104+shift_grap_Y]
G03X[24-shift_grap_X]Y[40+shift_grap_Y]I[24-shift_grap_X]J[72+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[24-shift_grap_X]Y[56+shift_grap_Y]
G01X[96-shift_grap_X]Y[56+shift_grap_Y]
G03X[96-shift_grap_X]Y[88+shift_grap_Y]I[96-shift_grap_X]J[72+shift_grap_Y]
G01X[24-shift_grap_X]Y[88+shift_grap_Y]
G03X[24-shift_grap_X]Y[56+shift_grap_Y]I[24-shift_grap_X]J[72+shift_grap_Y]
G242X[25-shift_grap_X]Y[72+shift_grap_Y]
G01X[127-shift_grap_X]Y[72+shift_grap_Y]
endif
/* green Line
color green
#1=97-shift_grap_X /* for R
#2=73+shift_grap_Y
#3=124.2843-shift_grap_X
#4=100.2843+shift_grap_Y
#5=0
call fig_line
G242X[24-shift_grap_X]Y[73+shift_grap_Y] /* for U
G01X[24-shift_grap_X]Y[152+shift_grap_Y]
G242X[96-shift_grap_X]Y[73+shift_grap_Y]
G01X[96-shift_grap_X]Y[152+shift_grap_Y]
#1=25-shift_grap_X
#2=148+shift_grap_Y
#3=95-shift_grap_X
#4=#2
#5=2
call fig_line
/* yellow Cross Mark
color yellow
#1=24-shift_grap_X
#2=72+shift_grap_Y
call fig_mark
/* Characters
#1=17
call fig_cursor
G243X[42-shift_char_X]Y[10-shift_char_Y](X)
#1=18
call fig_cursor
G243X[44-shift_char_X]Y[10-shift_char_Y](Y)
#1=19
call fig_cursor