
5. USER PROGRAMS FOR HOLE MACHINING MENU
SAMPLE PROGRAM B-63423EN/02
-246-
if[#[value 1] eq 91]then /* for R & Z
G242X[32-shift_grap_X]Y[88+shift_grap_Y]
G01X[53-shift_grap_X]Y[88+shift_grap_Y]
G242X[32-shift_grap_X]Y[8+shift_grap_Y]
G01X[53-shift_grap_X]Y[8+shift_grap_Y]
#1=40-shift_grap_X
#2=119+shift_grap_Y
#3=#1
#4=89+shift_grap_Y
#5=2
call fig_line
#1=40-shift_grap_X
#2=87+shift_grap_Y
#3=#1
#4=9+shift_grap_Y
#5=2
call fig_line
endif
/* Characters
if[#[value 1] eq 91]then
if[cursor eq 6]then
color -white C blue L1
else
color white C blue L0
endif
G243X[43-shift_char_X]Y[12-shift_char_Y](Z)
#1=7
call fig_cursor
G243X[43-shift_char_X]Y[9-shift_char_Y](R)
if[cursor eq 10]then
if[previous_cursor ne 3]then
cursor_off
G243X[43-shift_char_X]Y[9-shift_char_Y](R)
endif
endif
else
if[cursor eq 6]then
color -white C blue L1
else
color white C blue L0
endif
G243X[50-shift_char_X]Y[14-shift_char_Y](Z)
#1=7
call fig_cursor
G243X[45-shift_char_X]Y[9-shift_char_Y](R)
if[cursor eq 10]then
if[previous_cursor ne 3]then
cursor_off
G243X[45-shift_char_X]Y[9-shift_char_Y](R)
endif
endif
endif
cursor_off
m99
O6100 ;############################################### G86 Boring cycle
/* Work
color blue /* blue for Inner
G242X[-23-shift_grap_X]Y[-23+shift_grap_Y]
G01X[143-shift_grap_X]Y[-23+shift_grap_Y]
G01X[143-shift_grap_X]Y[71+shift_grap_Y]
G01X[-23-shift_grap_X]Y[71+shift_grap_Y]
G01X[-23-shift_grap_X]Y[-23+shift_grap_Y]
if[#[value 1] eq 91]then /* for Z