
3. USER PROGRAMS FOR G-CODE MENU
SAMPLE PROGRAM B-63423EN/02
-154-
#1=56-shift_grap_X
#2=56+shift_grap_Y
call fig_mark
/* Characters
cursor_off
G243X[52-shift_char_X]Y[14-shift_char_Y](G43)
G243X[52-shift_char_X]Y[16-shift_char_Y](G44)
color white C green L0
G243X[45-shift_char_X]Y[11-shift_char_Y](G49)
m99
O6061 ;############################################### Line
/* Input
/** #32 1:called from Line 40:called from Compensation
/* Output
/** non
/*********************************/
color red
dot_line
#1=0-shift_grap_X
#2=88+shift_grap_Y
#3=104-shift_grap_X
#4=120+shift_grap_Y
#5=0
call fig_line
solid_line
#1=0-shift_grap_X
#2=8+shift_grap_Y
#3=104-shift_grap_X
#4=40+shift_grap_Y
#5=0
call fig_line
/* Characters
if[#32 eq 1]then #1=1
else #1=3
call fig_cursor
G243X[45-shift_char_X]Y[7 -shift_char_Y](G00)
G243X[45-shift_char_X]Y[12-shift_char_Y](G01)
if[#32 eq 1]then #1=2
else #1=6
if[#32 eq 1]then
if[#[value 1] eq 0 || #[value 1] eq 1]then
if[#[value 1] ne 0]then
cursor_off
G243X[51-shift_char_X]Y[7 -shift_char_Y](X)
call fig_cursor
G243X[51-shift_char_X]Y[12-shift_char_Y](X)
else
call fig_cursor
G243X[51-shift_char_X]Y[7 -shift_char_Y](X)
cursor_off
G243X[51-shift_char_X]Y[12-shift_char_Y](X)
endif
else
call fig_cursor
G243X[51-shift_char_X]Y[7 -shift_char_Y](X)
G243X[51-shift_char_X]Y[12-shift_char_Y](X)
endif
else
if[#[value 3] eq 0 || #[value 3] eq 1]then
if[#[value 3] ne 0]then
cursor_off
G243X[51-shift_char_X]Y[7 -shift_char_Y](X)