
3. USER PROGRAMS FOR G-CODE MENU
SAMPLE PROGRAM B-63423EN/02
-144-
O6053 ;############################################### Work Size Rectangular
color red
G242X[0-shift_grap_X]Y[40+shift_grap_Y]
G01X[96-shift_grap_X]Y[40+shift_grap_Y]
G01X[144-shift_grap_X]Y[72+shift_grap_Y]
G01X[48-shift_grap_X]Y[72+shift_grap_Y]
G01X[0-shift_grap_X]Y[40+shift_grap_Y]
G242X[0-shift_grap_X]Y[88+shift_grap_Y]
G01X[96-shift_grap_X]Y[88+shift_grap_Y]
G01X[144-shift_grap_X]Y[120+shift_grap_Y]
G01X[48-shift_grap_X]Y[120+shift_grap_Y]
G01X[0-shift_grap_X]Y[88+shift_grap_Y]
G242X[0-shift_grap_X]Y[40+shift_grap_Y]
G01X[0-shift_grap_X]Y[88+shift_grap_Y]
G242X[96-shift_grap_X]Y[40+shift_grap_Y]
G01X[96-shift_grap_X]Y[88+shift_grap_Y]
G242X[48-shift_grap_X]Y[72+shift_grap_Y]
G01X[48-shift_grap_X]Y[120+shift_grap_Y]
G242X[144-shift_grap_X]Y[72+shift_grap_Y]
G01X[144-shift_grap_X]Y[120+shift_grap_Y]
color sky_blue
if[#[value 11] eq 1 ]then
#1=0-shift_grap_X
#2=89+shift_grap_Y
#3=120-shift_grap_X
#4=89+shift_grap_Y
#5=0
call fig_line
#1=0-shift_grap_X
#2=89+shift_grap_Y
#3=60-shift_grap_X
#4=128+shift_grap_Y
#5=0
call fig_line
#1=0-shift_grap_X
#2=89+shift_grap_Y
#3=0-shift_grap_X
#4=120+shift_grap_Y
#5=0
call fig_line
else
#1=72-shift_grap_X
#2=104+shift_grap_Y
#3=136-shift_grap_X
#4=104+shift_grap_Y
#5=0
call fig_line
#1=72-shift_grap_X
#2=104+shift_grap_Y
#3=112-shift_grap_X
#4=136+shift_grap_Y
#5=0
call fig_line
#1=72-shift_grap_X
#2=104+shift_grap_Y
#3=72-shift_grap_X
#4=136+shift_grap_Y
#5=0
call fig_line
endif
G242X[0-shift_grap_X]Y[39+shift_grap_Y] /* for I
G01X[0-shift_grap_X]Y[24+shift_grap_Y]
G242X[96-shift_grap_X]Y[39+shift_grap_Y]
G01X[96-shift_grap_X]Y[24+shift_grap_Y]
#1=1-shift_grap_X