
B-63423EN/02 SAMPLE PROGRAM
5. USER PROGRAMS FOR HOLE MACHINING MENU
-221-
#1=40-shift_grap_X
#2=40+shift_grap_Y
#3=#1
#4=136+shift_grap_Y
#5=0
call fig_line
#1=91-shift_grap_X /* for G98
#2=136+shift_grap_Y
#3=117-shift_grap_X
#4=#2
#5=0
call fig_line
#1=120-shift_grap_X
#2=133+shift_grap_Y
#3=#1
#4=91+shift_grap_Y
#5=0
call fig_line
solid_line
#1=120-shift_grap_X
#2=85+shift_grap_Y
#3=#1
#4=43+shift_grap_Y
#5=0
call fig_line
dot_line
#1=136-shift_grap_X
#2=40+shift_grap_Y
#3=#1
#4=88+shift_grap_Y
#5=0
call fig_line
solid_line
/* Characters
cursor_off
G243X[40-shift_char_X]Y[15-shift_char_Y](G98)
G243X[52-shift_char_X]Y[15-shift_char_Y](G99)
call fig_language
G243X[42-shift_char_X]Y[5-shift_char_Y] P[#1+80]
G243X[42-shift_char_X]Y[6-shift_char_Y] P[#1+81]
G243X[49-shift_char_X]Y[9-shift_char_Y] P[#1+82]
G243X[50-shift_char_X]Y[10-shift_char_Y] P[#1+83]
m99
O6092 ;############################################### G73 High-speed peck drilling cycle
/* Work
if[previous_cursor eq 6 || previous_cursor eq 7 || previous_cursor eq 9] goto 900
color blue /* blue for Inner
G242X[-31-shift_grap_X]Y[-31+shift_grap_Y]
G01X[151-shift_grap_X]Y[-31+shift_grap_Y]
G01X[151-shift_grap_X]Y[103+shift_grap_Y]
G01X[-31-shift_grap_X]Y[103+shift_grap_Y]
G01X[-31-shift_grap_X]Y[-31+shift_grap_Y]
if[#[value 1] eq 91]then /* for Z
#1=38-shift_char_X
#2=12-shift_char_Y
#3=1
call fig_character
else
#1=54-shift_char_X
#2=16-shift_char_Y
#3=1
call fig_character