
3. USER PROGRAMS FOR G-CODE MENU
SAMPLE PROGRAM B-63423EN/02
-136-
#[value 2] = #22
#[address 3] = add_X
#[attribute 3] = att_decimal
#[value 3] = #0
#[address 4] = add_Y
#[attribute 4] = att_decimal
#[value 4] = #0
#[address 5] = add_Z
#[attribute 5] = att_decimal
#[value 5] = #0
#[address 6] = add_R ; Radius
#[attribute 6] = att_decimal
#[value 6] = #0
#[address 7] = add_I
#[attribute 7] = att_decimal
#[value 7] = #0
#[address 8] = add_J
#[attribute 8] = att_decimal
#[value 8] = #0
#[address 9] = add_K
#[attribute 9] = att_decimal
#[value 9] = #0
#[address 10] = add_F ; Feedrate
#[attribute 10] = att_decimal
#[value 10] = #0
if[#22 eq 17]then
#[attribute 7] = att_not_use
#[attribute 9] = att_not_use
endif
if[#22 eq 18]then
#[attribute 4] = att_not_use
#[attribute 8] = att_not_use
endif
if[#22 eq 19]then
#[attribute 3] = att_not_use
#[attribute 7] = att_not_use
endif
#[address 11] = add_end
previous_cursor = 1 /* Previous cursor position clear
m99
O8408 ;############################################### CCW Circle
#20 = P3402 AND 2
#21 = P3402 AND 4
if[#20 eq 0 && #21 eq 0]then #22 = 17
if[#20 eq 0 && #21 eq 1]then #22 = 18
if[#20 eq 1 && #21 eq 0]then #22 = 19
#[address 0] = 3
#[address 1] = add_A ; Plane Selection Output
#[attribute 1] = att_character + att_detail + att_not_output
#[value 1] = 0
#[address 2] = add_G02G ; Plane Selection
#[attribute 2] = att_character + att_not_output
#[value 2] = #22
#[address 3] = add_X
#[attribute 3] = att_decimal
#[value 3] = #0
#[address 4] = add_Y
#[attribute 4] = att_decimal
#[value 4] = #0
#[address 5] = add_Z
#[attribute 5] = att_decimal
#[value 5] = #0
#[address 6] = add_R ; Radius