
9. USER PROGRAMS FOR POCKETING MENU
SAMPLE PROGRAM B-63423EN/02
-432-
call fig_cursor
G243X[46-shift_char_X]Y[11-shift_char_Y](X)
#1=18
call fig_cursor
G243X[48-shift_char_X]Y[11-shift_char_Y](Y)
#1=19
call fig_cursor
G243X[45-shift_char_X]Y[12-shift_char_Y](R)
cursor_off
G243X[45-shift_char_X]Y[11-shift_char_Y]('(')
G243X[47-shift_char_X]Y[11-shift_char_Y](',')
G243X[49-shift_char_X]Y[11-shift_char_Y](')')
m99
O6154 ;############################################### Track
/* blue for Work
color blue
G242X[-31-shift_grap_X]Y[9+shift_grap_Y]
G01X[151-shift_grap_X]Y[9+shift_grap_Y]
G01X[151-shift_grap_X]Y[135+shift_grap_Y]
G01X[-31-shift_grap_X]Y[135+shift_grap_Y]
G01X[-31-shift_grap_X]Y[9+shift_grap_Y]
G242X[24-shift_grap_X]Y[31+shift_grap_Y]
G01X[96-shift_grap_X]Y[31+shift_grap_Y]
G03X[96-shift_grap_X]Y[113+shift_grap_Y]I[96-shift_grap_X]J[72+shift_grap_Y]
G01X[24-shift_grap_X]Y[113+shift_grap_Y]
G03X[24-shift_grap_X]Y[31+shift_grap_Y]I[24-shift_grap_X]J[72+shift_grap_Y]
G206P0X[0-shift_grap_X]Y[24+shift_grap_Y]
/* green for Tool
color green
if[#[value 1] eq 3 || #[value 1] eq 4]then
G242X[1-shift_grap_X]Y[88+shift_grap_Y] /* Start Tool
G02X[1-shift_grap_X]Y[88+shift_grap_Y]I[8-shift_grap_X]J[88+shift_grap_Y]Q4
G206P0X[8-shift_grap_X]Y[88+shift_grap_Y]
G242X[1-shift_grap_X]Y[56+shift_grap_Y] /* End Tool
G02X[1-shift_grap_X]Y[56+shift_grap_Y]I[8-shift_grap_X]J[56+shift_grap_Y]Q4
G206P0X[8-shift_grap_X]Y[56+shift_grap_Y]
else
G242X[17-shift_grap_X]Y[72+shift_grap_Y] /* Start Tool
G02X[17-shift_grap_X]Y[72+shift_grap_Y]I[24-shift_grap_X]J[72+shift_grap_Y]Q4
G206P0X[24-shift_grap_X]Y[72+shift_grap_Y]
G242X[121-shift_grap_X]Y[72+shift_grap_Y] /* End Tool
G02X[121-shift_grap_X]Y[72+shift_grap_Y]I[128-shift_grap_X]J[72+shift_grap_Y]Q4
G206P0X[128-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[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]
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