
B-63423EN/02 SAMPLE PROGRAM
3. USER PROGRAMS FOR G-CODE MENU
-133-
3.2 DATA ATTRIBUTE
/****************************************************************************
/*
/* PROC1.SRC :: System Menue
/*
/***** 8402: Initial Set
/***** 8403: Tool Def
/***** 8404: MSB Codes
/***** 8405: Compensation
/***** 8406: Line
/***** 8407: CW Circle
/***** 8408: CCW Circle
/****************************************************************************
$INCLUDE SYMBOL.DEF
O8402 ;############################################### Initial Set
/* Cycle G Code */
#[address 0] = 300
/* Work Coordinate */
#[address 1] = add_W
#[attribute 1] = att_character
#[value 1] = 7
/* Work Shape */
#[address 2] = add_P
#[attribute 2] = att_character
#[value 2] = 1 /* 1:rectangular,2:cylinder,3:no putput */
/* Work X Co-ord. */
#[address 3] = add_X
#[attribute 3] = att_decimal
#[value 3] = #0
/* Work Y Co-ord. */
#[address 4] = add_Y
#[attribute 4] = att_decimal
#[value 4] = #0
/* Work Z Co-ord. */
#[address 5] = add_Z
#[attribute 5] = att_decimal
#[value 5] = #0
/* Work X Width */
#[address 6] = add_I
#[attribute 6] = att_decimal
#[value 6] = #0
/* Work Y Width */
#[address 7] = add_J
#[attribute 7] = att_decimal
#[value 7] = #0
/* Work Thickness */
#[address 8] = add_K
#[attribute 8] = att_decimal
#[value 8] = #0
/* Abs/Inc
#[address 9] = add_A
#[attribute 9] = att_character + att_detail
#[value 9] = 3 /* 1:G90,2:G91,3:no putput */
/* Plane Selection */
#[address 10] = add_S
#[attribute 10] = att_character + att_detail
#[value 10] = 4 /* 1:G17,2:G18,3:G19,4:no putput */
/* Base Point */
#[address 11] = add_B
#[attribute 11] = att_character + att_detail