
5. USER PROGRAMS FOR HOLE MACHINING MENU
SAMPLE PROGRAM B-63423EN/02
-224-
#5=2
call fig_line
#1=24-shift_grap_X
#2=23+shift_grap_Y
#3=#1
#4=-23+shift_grap_Y
#5=2
call fig_line
if[#[value 1] eq 91]then /* for R & Z
G242X[-8-shift_grap_X]Y[144+shift_grap_Y]
G01X[13-shift_grap_X]Y[144+shift_grap_Y]
G242X[-8-shift_grap_X]Y[120+shift_grap_Y]
G01X[15-shift_grap_X]Y[120+shift_grap_Y]
G242X[-8-shift_grap_X]Y[-24+shift_grap_Y]
G01X[15-shift_grap_X]Y[-24+shift_grap_Y]
#1=0-shift_grap_X
#2=143+shift_grap_Y
#3=#1
#4=121+shift_grap_Y
#5=2
call fig_line
#1=0-shift_grap_X
#2=119+shift_grap_Y
#3=#1
#4=-23+shift_grap_Y
#5=2
call fig_line
endif
/* Characters
N900
if[#[value 1] eq 91]then
if[cursor eq 6]then
color -white C blue L1
else
color white C blue L0
endif
G243X[38-shift_char_X]Y[12-shift_char_Y](Z)
#1=7
call fig_cursor
G243X[38-shift_char_X]Y[7-shift_char_Y](R)
else
if[cursor eq 6]then
color -white C blue L1
else
color white C blue L0
endif
G243X[54-shift_char_X]Y[16-shift_char_Y](Z)
#1=7
call fig_cursor
G243X[41-shift_char_X]Y[7-shift_char_Y](R)
endif
if[cursor eq 9]then
color -white C blue L1
else
color white C blue L0
endif
G243X[41-shift_char_X]Y[12-shift_char_Y](Q)
color white C blue L0
G243X[41-shift_char_X]Y[9-shift_char_Y](Q)
G243X[41-shift_char_X]Y[15-shift_char_Y](Q)
m99
O6093 ;############################################### G74 Left-hand tapping cycle
/* Work