
B-63423EN/02 SAMPLE PROGRAM
4. USER PROGRAMS FOR CONTOUR PROFILE MENU
-193-
#5=2
call fig_line
if[#[address 0] eq 102]then
G242X[-24-shift_grap_X]Y[88+shift_grap_Y]
G01X[64-shift_grap_X]Y[88+shift_grap_Y]
G242X[-11.8017-shift_grap_X]Y[72+shift_grap_Y]
G01X[34.3863-shift_grap_X]Y[152+shift_grap_Y]
G242X[21.4359-shift_grap_X]Y[88+shift_grap_Y]
G03X[9.4359-shift_grap_X]Y[108.7846+shift_grap_Y]I[-2.5641-shift_grap_X]J[88+shift_grap_Y]
else
G242X[56-shift_grap_X]Y[88+shift_grap_Y]
G01X[144-shift_grap_X]Y[88+shift_grap_Y]
G242X[128.8017-shift_grap_X]Y[72+shift_grap_Y]
G01X[85.6137-shift_grap_X]Y[152+shift_grap_Y]
G242X[98.5641-shift_grap_X]Y[88+shift_grap_Y]
G02X[110.5641-shift_grap_X]Y[108.7846+shift_grap_Y]I[122.5641-shift_grap_X]J[88+shift_grap_Y]
endif
/* yellow Cross Mark
color yellow
if[#[address 0] eq 102]then #1=136-shift_grap_X
else #1=-16-shift_grap_X
#2=8+shift_grap_Y
call fig_mark
/* Characters
#1=13
call fig_cursor
if[#[address 0] eq 102]then
G243X[45-shift_char_X]Y[8-shift_char_Y](L)
else
G243X[47-shift_char_X]Y[7-shift_char_Y](L)
endif
#1=14
call fig_cursor
if[#[address 0] eq 102]then
G243X[43-shift_char_X]Y[9-shift_char_Y](A)
else
G243X[51-shift_char_X]Y[9-shift_char_Y](A)
endif
cursor_off
m99
O6080 ;############################################### Chamfering
/* Line for Figure
color red
G242X[-8-shift_grap_X]Y[136+shift_grap_Y]
G01X[72-shift_grap_X]Y[136+shift_grap_Y]
G01X[104-shift_grap_X]Y[104+shift_grap_Y]
G01X[104-shift_grap_X]Y[8+shift_grap_Y]
G242X[-8-shift_grap_X]Y[135+shift_grap_Y]
G01X[72-shift_grap_X]Y[135+shift_grap_Y]
G01X[103-shift_grap_X]Y[104+shift_grap_Y]
G01X[103-shift_grap_X]Y[8+shift_grap_Y]
/* green Line
color green
G242X[73-shift_grap_X]Y[136+shift_grap_Y]
G01X[104-shift_grap_X]Y[136+shift_grap_Y]
G01X[104-shift_grap_X]Y[105+shift_grap_Y]
G242X[105-shift_grap_X]Y[136+shift_grap_Y] /* for C
G01X[120-shift_grap_X]Y[136+shift_grap_Y]
G242X[105-shift_grap_X]Y[104+shift_grap_Y]
G01X[120-shift_grap_X]Y[104+shift_grap_Y]
#1=112-shift_grap_X
#2=135+shift_grap_Y
#3=#1