
B-63423EN/02 SAMPLE PROGRAM
11. USER PROGRAMS FOR MEASURING CYCLE MENU
-489-
11.2 DATA ATTRIBUTE
/****************************************************************************
/*
/* PROC9.SRC :: Measuring Cycles
/*
/***** 6521: Measurement of X/Y/Z Single Surface (G180)
/***** 6522: Measurement of Web Width (G181)
/***** 6523: Measurement of Groove Width (G182)
/***** 6524: Measurement of Outside Circle (G183)
/***** 6525: Measurement of Inside Circle (G184)
/***** 6526: Measurement of Outside Rectangular (G185)
/***** 6527: Measurement of Inside Rectangular (G186)
/***** 6528: Measurement of Outside Corner (G187)
/***** 6529: Measurement of Inside Corner (G188)
/***** 6530: Measurement of Bolt-Hole-Circle (G189)
/***** 6531: Measurement of 4 Holes Center(G190)
/***** 6532: Measurement of Work Piece Angle (G191)
/***** 6533: Measurement of 2 Holes Angle (G192)
/****************************************************************************
$INCLUDE SYMBOL.DEF
O6521 ;############################################### Measurement of X/Y/Z Single Surface (G180)
/* Cycle G Code */
#[address 0] = 180
/* Measure Position */
#[address 1] = add_A
#[attribute 1] = att_character
#[value 1] = 1 /* 1:X AXIS,2:Y AXIS,3 Z AXIS
/* Work co-ord. Value */
#[address 2] = add_V
#[attribute 2] = att_decimal
#[value 2] = #0
/* Distance for Move */
#[address 3] = add_D
#[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
O6522 ;############################################### Measurement of Web Width (G181)
/* Cycle G Code */
#[address 0] = 181
/* Height for Z Axis */
#[address 1] = add_Z
#[attribute 1] = att_decimal
#[value 1] = #0
/* Measure Direction */
#[address 2] = add_D