# macro startup: calls speeds for constant surface speed (G96)
#                    and rpm speed  (G97)
#
ASSIGN: Tcode= 101;
CLEAR_NOTES.TOOLS:
CLEAR_NOTES.TIME:
CLEAR_NOTES.COST:
CLEAR_NOTES:
NOTEPAD.TOOLS:    Tooling List for Program  {Prog_desc}.
NOTEPAD.TOOLS:
NOTEPAD.TOOLS: ***************************************
NOTEPAD.TOOLS:    Tool number:       T{Tcode}
NOTEPAD.TOOLS:    Tool description:  {Tool_desc}
NOTEPAD.TIME:    Time Analysis for Program  {Prog_desc}.
NOTEPAD.TIME:
MACRO: ../common/lstartup.html
#MACRO: header_info
MACRO: get_tool_info
ASSIGN: Feed_rem= Feed;
ASSIGN: Feed= 9999;
ASSIGN: X=Diahome/2; Z=Zhome;
ASSIGN: Setcoordinates
ASSIGN: Feed= Feed_rem;
ASSIGN: Part_rotate=1;
GEOMETRYON: 
#
OUTPUT: **o{Prog_num}
OUTPUT: ** ( {Prog_desc})
ASSIGN: Tool_desc= UPC$(Tool_desc);
OUTPUT: ** (  {Tool_desc} )
ASSIGN: Comments= "(APPROACH FEEDRATE FOR G43.4)";
OUTPUT: **#600=1200.  {Comments}
ASSIGN: Comments= "(FEEDRATE FOR PLUNGE CUTTING)";
OUTPUT: **#601=40.   {Comments}
ASSIGN: Comments= "(FEEDRATE FOR ENTRY INTO CUTS)";
OUTPUT: **#602=40.   {Comments}
ASSIGN: Comments= "(LINEAR FEEDRATE FOR 2D ROUGH CUTS)";
OUTPUT: **#603=40.   {Comments}
ASSIGN: Comments= "(LINEAR FEEDRATE FOR B AXIS ONLY FINISH CUTS)";
OUTPUT: **#604=40.   {Comments}
#ASSIGN: Comments= "(RADIAL FEEDRATE FOR MOSTLY B AND SOME C AXIS CUTS)";
#OUTPUT: **#605=40.   {Comments}
#ASSIGN: Comments= "(RADIAL FEEDRATE FOR MOSTLY C AND SOME B AXIS CUTS)";
#OUTPUT: **#606=200.  {Comments}
#ASSIGN: Comments= "(PULLOUT FEEDRATE)";
#OUTPUT: **#607=100.  {Comments}
#ASSIGN: Comments= "(TRANSITIONAL FEEDRATE)";
#OUTPUT: **#608=25.  {Comments}
#
SELECT: Power_tool
CASE: 1
MACRO: caxis_od_setup
CASE: 2
MACRO: cfacesetup
CASE: 3
MACRO: caxis_id_setup
END SELECT:
OUTPUT: G53.5
MACRO: establish_home
#MACRO: engage_caxis     Repeats= (Power_tool> 0);
#
#
ASSIGN: Plot_on= 1;
TOOLSYMBOL:
ASSIGN: Plot_on= (Power_tool<1);
MACRO: speeds                   Repeats= (Thr_cycle<>1);
ASSIGN: Plot_on= 1;
#
#
ASSIGN: Tool_descr= Tool_desc;
ASSIGN: Tool_filer= Tool_file; Tool_numr= Tool_num;
ASSIGN: Tcoder= Tcode;
ASSIGN: Power_toolr= Power_tool;
ASSIGN: Prev_odid= Odid_cycle;
ASSIGN: Dia_comp= Tcode;
ASSIGN: Tool_ch= 1;
#
ASSIGN: Tape_on= 0; Plot_on= 0;
ROTARY_POS: A= -.001; C= -.001;
ASSIGN: Tape_on= 1; Plot_on= 1;
ASSIGN: Clast= -.001; Blast= -.001;
