
B-63423EN/02 SAMPLE PROGRAM
3. USER PROGRAMS FOR G-CODE MENU
-135-
#[value 1] = #0
#[address 2] = add_G08G ; Length Comp.
#[attribute 2] = att_character
#[value 2] = #0
#[address 3] = add_G01G ; G00/01
#[attribute 3] = att_character
#[value 3] = #0
#[address 4] = add_D
#[attribute 4] = att_not_use
#[value 4] = #0
#[address 5] = add_H
#[attribute 5] = att_not_use
#[value 5] = #0
#[address 6] = add_X
#[attribute 6] = att_decimal
#[value 6] = #0
#[address 7] = add_Y
#[attribute 7] = att_decimal
#[value 7] = #0
#[address 8] = add_Z
#[attribute 8] = att_decimal
#[value 8] = #0
#[address 9] = add_F
#[attribute 9] = att_not_use
#[value 9] = #0
#[address 10] = add_end
previous_cursor = 1 /* Previous cursor position clear
m99
O8406 ;############################################### Line
#[address 0] = -1
#[address 1] = add_G01G ; G00/01
#[attribute 1] = att_character
#[value 1] = #0
#[address 2] = add_X
#[attribute 2] = att_decimal
#[value 2] = #0
#[address 3] = add_Y
#[attribute 3] = att_decimal
#[value 3] = #0
#[address 4] = add_Z
#[attribute 4] = att_decimal
#[value 4] = #0
#[address 5] = add_F
#[attribute 5] = att_decimal
#[value 5] = #0
#[address 6] = add_end
previous_cursor = 1 /* Previous cursor position clear
m99
O8407 ;############################################### CW 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] = 2
#[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