
11. USER PROGRAMS FOR MEASURING CYCLE MENU
SAMPLE PROGRAM B-63423EN/02
-490-
#[attribute 2] = att_character
#[value 2] = 1 /* 1:X AXIS,2:Y AXIS
/* Web Width */
#[address 3] = add_V
#[attribute 3] = att_decimal
#[value 3] = #0
/* Feedrate for Move */
#[address 4] = add_F
#[attribute 4] = att_decimal
#[value 4] = #0
/* Work co-ord. System */
#[address 5] = add_W
#[attribute 5] = att_character
#[value 5] = #0 /* 1:G54,2:G55,3:G56,4:G57,5:G58,6:G59
/* Work co-ord. System */
#[address 6] = add_W
#[attribute 6] = att_not_use
#[value 6] = #0
/* End */
#[address 7] = add_end
previous_cursor = 1 /* Previous cursor position clear
guidance_write_flag = flag_on /* Guidance Write
m99
O6523 ;############################################### Measurement of Groove Width (G182)
/* Cycle G Code */
#[address 0] = 182
/* Height for Z Axis */
#[address 1] = add_Z
#[attribute 1] = att_decimal
#[value 1] = #0
/* Measure Direction */
#[address 2] = add_D
#[attribute 2] = att_character
#[value 2] = 1 /* 1:X AXIS,2:Y AXIS
/* Groove Width */
#[address 3] = add_V
#[attribute 3] = att_decimal
#[value 3] = #0
/* Feedrate for Move */
#[address 4] = add_F
#[attribute 4] = att_decimal
#[value 4] = #0
/* Work co-ord. System */
#[address 5] = add_W
#[attribute 5] = att_character
#[value 5] = #0 /* 1:G54,2:G55,3:G56,4:G57,5:G58,6:G59
/* Work co-ord. System */
#[address 6] = add_W
#[attribute 6] = att_not_use
#[value 6] = #0
/* End */
#[address 7] = add_end
previous_cursor = 1 /* Previous cursor position clear
guidance_write_flag = flag_on /* Guidance Write
m99
O6524 ;############################################### Measurement of Outside Circle (G183)
/* Cycle G Code */
#[address 0] = 183
/* Height for Z Axis */
#[address 1] = add_Z
#[attribute 1] = att_decimal
#[value 1] = #0
/* Hole Outside Radius */
#[address 2] = add_R
#[attribute 2] = att_decimal