
8. USER PROGRAMS FOR SIDE CUTTING MENU
SAMPLE PROGRAM B-63423EN/02
-378-
#4=#2
if[cursor eq #19]then
#5=0
else
#5=1
endif
call fig_line
/* Characters
#8509 = string_o_number
color white
call fig_language
G243X[43-shift_char_X]Y[6 -shift_char_Y]P[#1+90]
G243X[43-shift_char_X]Y[10-shift_char_Y]P[#1+91]
G243X[43-shift_char_X]Y[14-shift_char_Y]P[#1+92]
m99
O6141 ;############################################### Contour : Approach/Escape Circle
if[#[address 0] eq 224]then #19=22
else #19=27
/* blue for Work
color blue
#20=72+shift_grap_Y
G242X[-8-shift_grap_X]Y[#20-95]
G01X[-8-shift_grap_X]Y[#20+95]
G02X[-8-shift_grap_X]Y[#20-95]I[-136-shift_grap_X]J#20
G206P0X[0-shift_grap_X]Y#20
/* Edge Line
color sky_blue /* for Work(blue green)
#20=72+shift_grap_Y
G242X[-8-shift_grap_X]Y[#20+96]
G02X[-8-shift_grap_X]Y[#20-96]I[-136-shift_grap_X]J#20
/* red for Path
color red
if[cursor lt [#19+2]]then
#1=105-shift_grap_X
#2=152+shift_grap_Y
#3=25-shift_grap_X
#4=72+shift_grap_Y
else
#1=25-shift_grap_X
#2=72+shift_grap_Y
#3=105-shift_grap_X
#4=-8+shift_grap_Y
endif
#5=105-shift_grap_X
#6=72+shift_grap_Y
#7=0
call fig_ccw
/* green Line
color green
if[cursor lt [#19+2]]then
G242X[105-shift_grap_X]Y[72+shift_grap_Y] /* Radius
G01X[25-shift_grap_X]Y[72+shift_grap_Y]
#1=105-shift_grap_X
#2=72+shift_grap_Y
#3=#1
#4=152+shift_grap_Y
#5=0
call fig_line
G242X[105-shift_grap_X]Y[88+shift_grap_Y] /* for Angle